query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "5c0d9457ea2a14710eef8fd8ac435b55", "score": "0.0", "text": "public\n function update(Request $request, $id)\n {\n //\n }", "title": "" } ]
[ { "docid": "995ba0c8f03901b2d9d4e3a2b71aed6a", "score": "0.7192627", "text": "public function put($resource);", "title": "" }, { "docid": "bde449baf550552e043ec18452e05f5c", "score": "0.69665116", "text": "function update($resource, $content)\n {\n }", "title": "" }, { "docid": "23bd42dc38bca65e850c1b8f771c0f0f", "score": "0.6837518", "text": "public function update(ResourceInterface $resource)\n {\n $this->_em->flush($resource);\n }", "title": "" }, { "docid": "191338cd6ef896bff360364575acf011", "score": "0.67335975", "text": "function update( $resource ){\n\n\n\n}", "title": "" }, { "docid": "82d962f8a232812e11e659906a06c4bf", "score": "0.64792234", "text": "abstract function updateResource(array $resource): array;", "title": "" }, { "docid": "3e0f043be946ab7842b0af2e1d74c916", "score": "0.6411816", "text": "protected function _update ()\n {\n $storage = $this->_make_storage ();\n $storage->update_object ($this);\n }", "title": "" }, { "docid": "94019d08a7f8811e4983869c0f46c3d1", "score": "0.63963556", "text": "public function update(ResourceRequest $request, Resource $resource)\n {\n $data = $request->validated();\n\n $status = $resource->fill($data)->save();\n\n if($status) {\n return redirect()->route('resource.index')->with('success', 'Обновлено успешно');\n }\n\n return back()->withInput();\n }", "title": "" }, { "docid": "f3a644eac430ac72a35e4e871bd91db8", "score": "0.6383551", "text": "public function update(Request $request, $id, $resource='typeProduct')\n {\n //\n }", "title": "" }, { "docid": "4f3179762365be3e1ddb7c5eec12dffb", "score": "0.6367317", "text": "public function update($id)\n\t{\n\t\t$inputs = Input::all();\n\t\t$validator = Validator::make($inputs , \\App\\Resource::$rules_edit);\n\t\tif($validator->passes()){\n\n\n\t\t\t$resource = \\App\\Resource::find($id);\n\n\t\t\tif(isset($inputs['image'])){\n\n\t\t\t\t$file = $resource->image;\n\n\t\t\t\tunlink('pictures/' . $file);\n\n\t\t\t\t$destinationPath = 'pictures/'; // upload path\n\t\t\t\t$extension = Input::file('image')->getClientOriginalExtension(); // getting image extension\n\t\t\t\t$fileName = rand(11111,99999). '_' . time() . '.'.$extension; // renameing image\n\t\t\t\tImage::make(Input::file('image')->getRealPath())->resize(300, null,function($constrain){\n\t\t\t\t\t$constrain->aspectRatio();\n\t\t\t\t})->save($destinationPath . $fileName);\n\t\t\t\t// Input::file('image')->move($destinationPath, $fileName); // uploading file to given path\n\t\t\t\t$inputs['image'] = $fileName;\n\t\t\t}\n\n\t\t\t$resource->update($inputs);\n\t\t\treturn Redirect::to('/');\n\n\t\t}\n\n\t\treturn Redirect::back()\n\t\t\t->withInput(Input::all())\n\t\t\t->withErrors($validator);\n\t}", "title": "" }, { "docid": "8c18bfa316f6f5346468923c884b7854", "score": "0.62746567", "text": "public function update(ResourceRequest $request, $id)\n {\n $resource = $this->resources->findOrFail($id);\n\n $this->resources->update($resource, $request->only([\n 'author_id',\n 'category_id',\n 'title',\n 'body',\n 'description',\n 'meta_description',\n 'status',\n ]));\n\n if ($request->hasFile('mini_image')) {\n $uploadedFile = $request->file('mini_image');\n\n if ($resource->mini_image) {\n Storage::delete('public/' . $resource->mini_image);\n }\n\n $pathFile = $uploadedFile->store($this->resources->makeImagePath(), 'public');\n $resource->update(['mini_image' => $pathFile]);\n }\n\n if ($request->hasFile('featured_image')) {\n $uploadedFile = $request->file('featured_image');\n\n if ($resource->featured_image) {\n Storage::delete('public/' . $resource->featured_image);\n }\n\n $pathFile = $uploadedFile->store($this->resources->makeImagePath(), 'public');\n $resource->update(['featured_image' => $pathFile]);\n }\n\n if ($resource->category->isCaseStudies()) {\n return redirect()->route('spark.kiosk.resources.case-studies.edit', ['id' => $id])\n ->with('alert.success', __('Updated successfully!'));\n }\n\n return redirect()->route('spark.kiosk.resources.edit', ['id' => $id])\n ->with('alert.success', __('Updated successfully!'));\n }", "title": "" }, { "docid": "125e988ea4b035f1db7a8b5327bfb780", "score": "0.61922735", "text": "public function update(Request $request, $id)\n {\n $this->validate($request, [\n \"file_upload\" => \"required\",\n \"title\" => \"required|min:1|max:30\",\n \"credit\" => \"required|integer\",\n ]);\n\n $res = Resource::find($id);\n $res->owner_user_id = Auth::id();\n $res->access_role = implode('|', $request->access_role);\n $res->description = $request->description;\n $res->credit = $request->credit;\n // $res->file_upload = FileHelper::saveResourceFile($request->file_upload);\n $res->file_upload = $request->file_upload; // as url\n // $res->type = ($request.file_upload)->getClientOriginalExtension();\n $res->type = \"url\";\n if(!empty($request->book_id) and Book::find($requst->book_id))\n $res->owner_book_id = $request->book_id;\n $res->update();\n \n Session::flash('success', '资源信息修改成功');\n\n return redirect()->route('resource.show', $res->id);\n }", "title": "" }, { "docid": "2faaf8ddd37fb3a3dd00d2067935e627", "score": "0.618546", "text": "public function update(UpdateResourceArticleRequest $request, Resource $resource): JsonResponse\n {\n\n if ($request->hasFile('url')) {\n Storage::disk('article')->delete($resource->url);\n $resource->url = $request->url->store('articles', 'article');\n }\n\n if ($resource->isClean()) {\n return $this->errorResponse('Se debe especificar al menos un valor diferente para actualizar', 422);\n }\n\n $resource->save();\n return $this->api_success([\n 'data' => new ResourceArticleResource($resource),\n 'message' => __('pages.responses.updated'),\n 'code' => 200\n ]);\n }", "title": "" }, { "docid": "41d9c906adb39164a3ea97f83f0d6b4c", "score": "0.6004039", "text": "public function update(Request $request, $id) {\n //\n $resource = Resource::find($id);\n if($request->resourceislink == \"No\"){\n if($resource->external_link == \"Yes\"){\n $validator = Validator::make($request->all(), [\n 'resource_name' => 'required',\n 'file' => 'required|mimes:pdf,xls,xlsm,xlsx,doc,docx,ppt,pptm,pptx,jpeg,bmp,png,bmp,gif,svg',\n ]);\n }else{\n $validator = Validator::make($request->all(), [\n 'resource_name' => 'required',\n ]);\n }\n }else{\n $validator = Validator::make($request->all(), [\n 'resource_name' => 'required',\n 'file' => 'required|url',\n ]);\n }\n\n if ($validator->fails()) {\n $access_log = new AccessLog;\n $access_log->user = Auth::user()->username;\n $access_log->link_accessed = str_replace(url('/'),\"\",url()->current());\n $access_log->action_taken = \"Edit \".$resource->resource_type.\" Resource\";\n $access_log->action_details = \"Editing of \".$resource->resource_type.\" Resource interrupted due to validation errors\";\n $access_log->action_status = \"Failed\";\n $access_log->save();\n\n return back()->withErrors($validator)->withInput()->with('editresource',$resource);\n }else{\n if($request->resourceislink == \"No\"){\n if($request->file){\n //Upload the resource file in storage/app/public/resources folder \n $file_name = (string) ($request->file->store('public/resources'));\n $file_name = str_replace('public/', '', $file_name);\n \n $edit_resource = Resource::find($id);\n $edit_resource->resource_name = $request->resource_name;\n $edit_resource->resource_location = $file_name;\n $edit_resource->external_link = $request->resourceislink;\n $edit_resource->subfolder_id = $request->subfolder_id;\n $edit_resource->save();\n }else{\n $edit_resource = Resource::find($id);\n $edit_resource->resource_name = $request->resource_name;\n $edit_resource->external_link = $request->resourceislink;\n $edit_resource->subfolder_id = $request->subfolder_id;\n $edit_resource->save();\n }\n }else{\n $edit_resource = Resource::find($id);\n $edit_resource->resource_name = $request->resource_name;\n $edit_resource->resource_location = $request->file;\n $edit_resource->external_link = $request->resourceislink;\n $edit_resource->subfolder_id = $request->subfolder_id;\n $edit_resource->save();\n } \n \n return back()->with('resouce','Resource was succesfully uploaded')->with('resoucetype',$resource->resource_type);\n }\n }", "title": "" }, { "docid": "1b397375316ae1351b5a50f45f20bc46", "score": "0.6000568", "text": "public function update(Request $request, $id)\n {\n if($request->session()->exists('resources')){\n $resources = $request->session()->get('resources');\n $idInput = $request->input('id');\n $nameInput = $request->input('name');\n $priceInput = $request->input('price');\n \n if(isset($resources[$id]) && (isset($resources[$idInput])==false || $idInput==$id)){\n // $resource = $resources[$id];\n $resource = ['id' => $idInput, 'name' => $nameInput, 'price' => $priceInput];\n unset($resources[$id]);\n $resources[$idInput]=$resource;\n $request->session()->put('resources', $resources);\n \n return redirect('resource')->with('message', 'Se editado el elemento correctamente');\n }\n \n }\n return back()->withInput();\n }", "title": "" }, { "docid": "dd769c108800c8271a7f2c99245c843e", "score": "0.597514", "text": "public function updateStream($path, $resource, Config $config)\n {\n\n }", "title": "" }, { "docid": "eaee54943a52f02e9d836bade5ff0c75", "score": "0.59377414", "text": "public function updateStream($path, $resource, Config $config)\n {\n }", "title": "" }, { "docid": "98fadc36fd3a4194a25023de21dae9ff", "score": "0.59242314", "text": "public function save($resource);", "title": "" }, { "docid": "c94044d21c7dac20d5d21a469d63f195", "score": "0.59235406", "text": "public function testItShouldUpdateSpecifiedResource()\n {\n $this->json('PUT', $this->base_url . $this->getId(), $this->data, $this->getHeaders())\n ->assertStatus(200)\n ->assertJsonStructure($this->json);\n }", "title": "" }, { "docid": "9645d8e1c1b4d32587e5589c88868755", "score": "0.5878462", "text": "public function update(Request $request, $id)\n {\n $resource = Resource::find($id);\n $resource->fill($request->all());\n $resource->save();\n\n $resource->tags()->sync($request->tags);\n\n $message = 'El recurso literario \"' . $resource->title . '\" fue modificado.';\n $class = 'warning';\n\n Session::flash('message', $message);\n Session::flash('class', $class);\n\n return redirect()->route('admin.resources.index');\n }", "title": "" }, { "docid": "630a533750db7d2a089a96d2e8e1e2d0", "score": "0.5843074", "text": "public function update(Request $request, $id)\n\t{\n\t\t$accessLevel = $request->user()->hasAccessTo('storage', 'edit', 0);\n\t\tif ($accessLevel < 1) {\n\t\t\tthrow new AccessDeniedHttpException('You don\\'t have permission to access this page');\n\t\t}\n\n\t\t$this->validate($request, [\n\t\t\t'title' => 'required'\n\t\t]);\n\n\t\t$storage = storage::where('organization_id', $request->user()->organization_id)->where('storage_id', $id)->first();\n\t\tif (is_null($storage)) {\n\t\t\treturn 'No such storage';\n\t\t}\n\n\t\t$storage->title = $request->title;\n\t\t$storage->type = $request->type;\n\t\t$storage->description = $request->description;\n\t\t$storage->organization_id = $request->user()->organization_id;\n\n\t\t$storage->save();\n\n\t\tSession::flash('success', 'Новый склад успешно сохранен!');\n\n\t\treturn redirect()->route('storage.show', $storage->storage_id);\n\t}", "title": "" }, { "docid": "a6fd2ebf36845fedc38da71edc963161", "score": "0.58306503", "text": "public function update(Request $request, $id)\n {\n $product = Product::findOrFail($id);\n\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->available_colors = $request->available_colors;\n $product->available_sizes = $request->available_sizes;\n $product->discount = $request->discount;\n $product->image = $request->image;\n $product->stock = $request->stock;\n $product->save();\n\n return new ProductResource($product);\n }", "title": "" }, { "docid": "f0482e3ac4ae9626608914e5608b9630", "score": "0.58134246", "text": "public function updateStream($path, $resource, array $config = [])\n {\n $result = parent::updateStream($path, $resource, $config);\n\n if ($result && $resource = $this->get($path)) {\n return $this->dispatch(new SyncFile($resource));\n }\n\n return $result;\n }", "title": "" }, { "docid": "44b2a146d07735a49eec32f23fe41df0", "score": "0.5792586", "text": "public function updateById();", "title": "" }, { "docid": "3ebf4ac6712058cf5111ea2fb1b3f69d", "score": "0.5789821", "text": "public function updateStream($path, $resource, Config $config)\n {\n $this->delete($path);\n\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "f67879fb9debb5940a340430c2ce7193", "score": "0.5784806", "text": "public function update(Request $request, Problem $problem, Storage $storage)\n {\n if ($storage->name !== $request->name) {\n $isExists = $problem->storages()->where('name', $request->name)->exists();\n if ($isExists) {\n dd(\"storage `\" . $request->name . \"` is already exists\");\n }\n }\n $storage->fill($request->all());\n $storage->save();\n return redirect(route('problems.show', [\n 'problem' => $problem,\n ]));\n }", "title": "" }, { "docid": "3042155ddc4627ea088faa7fbe4fcbfd", "score": "0.57552326", "text": "public function update($id, Request $request)\n\t{\n\n\t\t$entity = $this->manager->getRepository()->findResource($id);\n\n\t\tif (empty($entity))\n\t\t\tabort(404);\n\n\t\t$params = $request->all();\n\t\t$params = array_merge($params, ['resource_container' => $entity, 'user' => $this->getUser()]);\n\n\t\t$entity = $this->manager->updateOrCreate([\n\t\t\t'resource_container_id' => $entity->id,\n\t\t\t'user_id' => $this->getUser()->id\n\t\t], $params);\n\t\t\n\t\treturn $this->success([\n\t\t\t'message' => 'ok',\n\t\t\t'data' => [\n\t\t\t\t'resource' => $this->serialize($entity)\n\t\t\t]\n\t\t]);\n\n\n\t}", "title": "" }, { "docid": "eaf18f66946228a152f8b83c6b49e31e", "score": "0.5747208", "text": "public function update($id, $data) {}", "title": "" }, { "docid": "3ec7c5a8877f8c46b7760a665414271c", "score": "0.5738682", "text": "public function update(Request $request, int $id)\n {\n $data = $request->except(\"image\");\n $product = $this->product->findOrFail($id);\n if($request->hasFile(\"image\") && $request->image->isValid()){\n Storage::delete($product->image);\n $data[\"image\"] = $request->image->store(\"products/\".$request->name);\n }\n $product->update($data);\n return redirect()->route(\"products.index\");\n }", "title": "" }, { "docid": "7fa7323735ca22c15cfa4866e023dcb7", "score": "0.57337505", "text": "public function setResource($resource);", "title": "" }, { "docid": "6b5928bfd8cfb173f6ff973bf5da429a", "score": "0.5725117", "text": "public function update(Request $request)\n {\n //\n\n $item = $request->id;\n if ($request->hasFile('thumb')) {\n $thumb = $request->file('thumb');\n $thumb_file = $this->uploadImage($thumb, '');\n $data['image'] = $thumb_file;\n\n }\n $data = $request->all();\n\n\n $slug = \\Illuminate\\Support\\Str::slug($data['name']);\n $data['slug'] = $slug;\n\n\n $product = Product::find($item);\n\n $product->fill($data);\n\n if ($product->save()) {\n return redirect()->back()->with('success', 'Product updated Successfully');\n }\n\n }", "title": "" }, { "docid": "9002704608400a526dfa928357d65ebf", "score": "0.57221955", "text": "public function update(Request $request)\n {\n\n $product = Products::find($request->id);\n\n $product->update([\n 'name' => $request->name,\n 'stock' => $request->stock,\n 'id_user' => Auth::user()->id\n ]);\n\n if($request->file('imagen')){\n $imagename = $request->file('imagen')->getClientOriginalName();\n $request->file('imagen')->storeAs('public/image', $imagename);\n // $path = Storage::disk('public')->put('image', $request->file('imagen')->getClientOriginalName());\n $product->fill(['imagen' => 'storage/image/'.$imagename])->save();\n }\n\n return $product;\n }", "title": "" }, { "docid": "72e37fd6c46c81cc34e4aad069244d7f", "score": "0.5696679", "text": "abstract function put($path, $data);", "title": "" }, { "docid": "e298ed6e92031fa9134c5a6ed2507d24", "score": "0.5691853", "text": "public function update($object);", "title": "" }, { "docid": "615ba40be5a0af225501e371af76c0b2", "score": "0.5691626", "text": "public function update(Request $request, $id)\n {\n \n $social = Social::find($id);\n $this->validate(request(), [\n 'name' => 'required',\n 'link' => 'required',\n 'icon' => 'required'\n ]);\n\n Storage::Delete('public/social/'.$social->icon);\n\n if ($request->hasFile('icon')) {\n $filename=$request->icon->getClientOriginalName();\n $request->icon->storeAs('public/social',$filename);\n $social->icon=$filename;\n $social->name = $request->get('name');\n $social->link = $request->get('link');\n $social->save();\n return redirect('/admin/social')->with('success','Social has been updated');\n \n }\n\n\n\n }", "title": "" }, { "docid": "d55f58a252de4e09d616136ab381ea2d", "score": "0.5689798", "text": "public function update(Request $request, $id)\n {\n $request->validate([\n 'group_id'=>'exists:groups,id|integer',\n 'name'=>'required|min:1|max:16|unique:resources,name,'.$id,\n 'description'=> 'max:255'\n ]);\n\n $resource = Resource::find($id);\n $resource->group_id = $request->get('group_id');\n $resource->name = $request->get('name');\n $resource->description = $request->get('description');\n $resource->save();\n\n return redirect('/resources')->with('success', 'Resource has been updated');\n }", "title": "" }, { "docid": "09f959fbad30c2f941ea086cc7dad93f", "score": "0.56853646", "text": "public function update(ProductUpdateRequest $request, $id)\n {\n $product = Product::find($id);\n $product->fill($request->all())->save();\n if($request->file('image')){\n $path = Storage::disk('public')->put('image', $request->file('image'));\n $product->fill(['file' => asset($path)])->save();\n } \n return redirect()->route('products.edit', \n $product->id)->with('info', 'Info de product actualizada con éxito');\n }", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5675671", "text": "public function update($data);", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5675671", "text": "public function update($data);", "title": "" }, { "docid": "8c2162a8e7fe286f725a1d03ccd562a3", "score": "0.5662784", "text": "public function update(Request $request, $id)\n {\n $update = HomeT::find($id); \n Storage::disk('public')->delete('img/avatar/'.$update->src);\n $update->src = $request->file('src')->hashName();\n $update->temoignage = $request->temoignage; \n $update->nom = $request->nom; \n $update->prenom = $request->prenom; \n $update->fonction = $request->fonction; \n\n $update->save(); \n $request->file('src')->storePublicly('img/avatar/', 'public');\n\n return redirect()->back(); \n }", "title": "" }, { "docid": "c0268fd89d504e7e3334bdc92717f035", "score": "0.5641325", "text": "public function update() {\n\t\t\n\t\t$mods = $this->_data_modified[$this->_data_position];\n\t\tif (count($mods) < 1) return true; // no changes.\n\t\t\t\n\t\t// Build data\n\t\t$changes = [];\n\t\tforeach ($mods as $mod) $changes[$mod] = $this->__get($mod);\n\t\t\n\t\t// Build URL\n\t\t$url = \"table/\".$this->_table_name.\"/\".$this->__get(\"sys_id\");\n\t\t\n\t\t// Use GlideAccess to run the PUT command \n\t\t// Throw a GlideAccessException or a GlideAuthenticationException on error \n\t\t$result = $this->_access->put($url, json_encode($changes));\n\t\t\t\n\t\t// Clear out the pending updates for this record\n\t\t$this->_data_modified[$this->_data_position] = [];\n\t}", "title": "" }, { "docid": "194348e8143807f54599362cf6318737", "score": "0.5635772", "text": "public function update (object $entity);", "title": "" }, { "docid": "3f82a5c4e0e6d64fd1809d61189f5d3d", "score": "0.56336915", "text": "public function update(Request $request)\n {\n $slider=Slider::find($request->id);\n if($request->hasFile('image')) {\n $file = $request->file('image');\n $file_name = $file->getClientOriginalName();\n $path = $request->file('image')->storeAs('public/slider',$file_name);\n $slider->image=$file_name;\n $Image = str_replace('/storage', '', $request->old_image);\n #Using storage\n if(Storage::exists('public/slider/' . $Image)){\n $delete= Storage::delete('/public/slider/' . $Image);\n }\n } \n $slider->title=$request->title;\n $slider->updated_at=date('Y-m-d H:m:s');\n $slider->update();\n alert::success('Slider Updated Successfully');\n return redirect()->back();\n }", "title": "" }, { "docid": "bba4992ee37e44374ffa661fa659a09a", "score": "0.56323135", "text": "public function update (EntityInterface $entity);", "title": "" }, { "docid": "072d1df8727e8fc01d135f9b601cd0cc", "score": "0.5626336", "text": "public function update(Request $request, int $resource_id)\n {\n $data = $request->all();\n $validatedData = $request->validate([\n \"name\" => \"required\"\n ]);\n $store = self::store($data, $resource_id);\n return response()->json(['status'=> 'ok', 'data'=> $store, 'msg'=> 'listing category updated successfully']);\n }", "title": "" }, { "docid": "7afe1f5b389ba43a34c655b4630cdebb", "score": "0.56085145", "text": "public function update (Request $request, $id)\n {\n// $product = Product::find($id);\n//\n// $product->name='foo';\n//\n// $product->save();\n }", "title": "" }, { "docid": "b7bac3ceb1b9b8584ebd61b08fa09788", "score": "0.5604227", "text": "public function putAction()\n {\n /** XXX **/\n\n $this->view->message = sprintf('Resource #%s Updated', $id);\n $this->_response->ok();\n }", "title": "" }, { "docid": "ced4b17a4ea0a670f0d46db8e5a71e1f", "score": "0.5600381", "text": "function setResource($resource);", "title": "" }, { "docid": "c5d23e5b9877982ada89cdd5d607b6f1", "score": "0.5595249", "text": "public function put($path);", "title": "" }, { "docid": "2617ce73a1286e2959b6286b9cbb5cdc", "score": "0.55937576", "text": "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required|max:30|unique:sizes,name,'.$id \n ]);\n\n $size = Size::findOrFail($id);\n $size->name = $request->name; \n $size->save();\n\n return new SizeResource($size);\n }", "title": "" }, { "docid": "828dbd6951736580bd5869c57009736a", "score": "0.559071", "text": "public function update(int $resourceId): JsonResponse\n {\n $resource = static::resource();\n $resource = $resource::findOrFail($resourceId);\n\n $request = app(static::resourceFormRequest());\n\n $resource = $resource->fill($request->validated());\n\n DB::transaction(function () use ($resource, $request) {\n $this->authorize('isAdmin');\n $resource->save();\n });\n\n return $this->sendResponse($resource, 'Record Updated Successfully');\n }", "title": "" }, { "docid": "222e617c89991e0979d369309504472e", "score": "0.55868655", "text": "function put($resource, $payload = array(), $headers = array())\n {\n $result = $this->client->put($this->build_url($resource), [\n 'headers' => array_merge([\n 'Content-Type' => $this->getContentType(),\n 'Authorization' => $this->getBearer(),\n 'Content-Length' => (!count($payload)) ? 0 : strlen(json_encode($payload)),\n ], $headers),\n 'body' => json_encode($payload)\n ]);\n\n return $result;\n }", "title": "" }, { "docid": "aeb943a599e58a4bbe6bd7e228755660", "score": "0.55803686", "text": "public function update(Request $request, $id)\n {\n $this->validate($request,\n [\n 'title'=>'required|max:50',\n 'price'=>'required',\n 'description'=>'required|max:100'\n ,\n 'imagePath'=>'required'\n ],[\n 'required'=>'El campo :attribute es obligatorio'\n ]\n );\n $product=Product::find($id);\n $product->title = $request->input('title');\n $product->price = $request->input('price');\n $product->description = $request->input('description');\n // $product->imagePath = $request->input('imagePath');\n\n $nombreImagen = str_slug($product->title) . '.' .request()->imagePath->extension();\n // storeAs recibe dos parametros el nombre de la carpeta y el nombre del archivo\n request()->imagePath->storeAs('public', $nombreImagen);\n $product->imagePath = $nombreImagen;\n \n $product->save();\n\n return redirect()->action('Admin\\ProductsController@index');\n\n }", "title": "" }, { "docid": "cc73a907b4a48e339742b8c2bd070415", "score": "0.5572921", "text": "public function update(Request $request, $id) {\n $resource = static::$resource::findOrFail($id);\n \n $data = $request->validate(static::$validation);\n\n $resource->update($data);\n\n foreach($data as $key => $value) {\n if(is_array($value) && method_exists($resource, $key)) {\n call_user_func([$resource, $key])->sync($value);\n }\n }\n\n return redirect($this->getUrl())->with('success', $this->getResourceName(false) . ' updated successfully');\n }", "title": "" }, { "docid": "3220bb444c54147e54b8e439712c9f11", "score": "0.55686116", "text": "public function update(Request $request, $id)\n\t{\n ob_start(); // not needed if output_buffering is on in php.ini\n ob_implicit_flush(); // implicitly calls flush() after every ob_flush()\n\n $product = Product::findOrFail($id);\n $this->validate($request,\n [\n 'dish' => 'required|min:5',\n 'menu_category_id' => 'required|Integer',\n 'price' => 'required'\n ]\n );\n\n \n $product->update($request->all());\n\n if($request->file('image')) {\n\n // get product id and sku and use it to identify image\n $imageName = $product->sku . '-' . $product->id . '.' . \n $request->file('image')->getClientOriginalExtension();\n\n // save the new image\n $request->file('image')->move(\n base_path() . '/public/images/', $imageName\n );\n $product->image = $imageName;\n\n // update product with new image name\n $product->update();\n //flush();\n ob_clean();\n ob_flush();\n //clearstatcache ();\n $products = Product::all();\n\n } // if updated image was submitted\n \n return redirect('products_admin');\n }", "title": "" }, { "docid": "c270afb4bf92903f6af7a541b2310395", "score": "0.55680007", "text": "public function update(Request $request, $id)\n {\n $product = Product::where('slug', $id)->first();\n $product->name = $request->name;\n $product->slug = str_slug($request->name);\n $product->category_id = $request->category_id;\n $product->price = $request->price;\n $product->old_price = $request->old_price;\n $product->min_order = $request->min_order;\n $product->description = $request->description;\n\n if(!$request->has('in_stock')){\n $product->in_stock = false;\n }else{\n $product->in_stock = true;\n }\n\n if(!$request->has('is_featured')){\n $product->featured = false;\n }else{\n $product->featured = true;\n }\n\n if($request->hasFile('image')){\n $path = storage_path('app/public/products');\n \\File::isDirectory($path) or \\File::makeDirectory($path, 0777, true, true);\n\n $image = $request->file('image');\n $filename = time().'.'.$image->getClientOriginalExtension();\n $image->move($path,$filename);\n $oldfile = $product->photo;\n $product->photo = $filename;\n \\File::delete($path.'/'.$oldfile);\n }\n\n $product->update();\n \\Session::flash('success', 'Product was successfully updated');\n return back();\n }", "title": "" }, { "docid": "9b0a1be95f266f1629ffadd26d65152d", "score": "0.55679286", "text": "protected function updateResource($resource, $id, array $data, $message = null)\n {\n $resource = $resource->findOrFail($id);\n\n $resource->update($data);\n\n return $resource;\n }", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.55661047", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.55661047", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "a262aa354909e0f60e98829ffd019274", "score": "0.5557795", "text": "public function update(Request $request, $id)\n {\n $instrument = Instruments::find($id);\n if(isset($request->path)){\n $path = $request->file('path')->store('uploads', 'public');\n } else {\n $path = $instrument->path;\n }\n\n $instrument->update([\n 'name' => $request->name,\n 'href' => $request->href,\n 'description' => $request->content,\n 'photo' => $path\n ]);\n session()->flash('success','Инструмент успешно обновлен');\n return redirect()->route('instrument.index');\n }", "title": "" }, { "docid": "392bdf3b4d83d7a822d671646207f552", "score": "0.55553967", "text": "public function update($request, int $id);", "title": "" }, { "docid": "3cc3c8178bfb516c83781b7b045205b3", "score": "0.5553084", "text": "public function update()\n\t{\n\t\t$this->reset_error_msg();\n\t\t$result = ajax::asset_update(\n\t\t\t\t\t\t$this->schema->folder_id,\n\t\t\t\t\t\t$this->schema->view_name,\n\t\t\t\t\t\t$this->fields,\n\t\t\t\t\t\t$this->id\n\t\t);\n\t\tif (!is_int($result)) {\n\t\t\t$this->set_error_msg($result);\n\t\t}\t\n\t}", "title": "" }, { "docid": "39ec1d6074d8d2034e596ad13d30da68", "score": "0.55506486", "text": "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required',\n 'price' => 'required|min:1',\n 'image' => 'image|mimes:jpeg,png,jpg,gif,svg|max:2048',\n 'quantity' => 'required|min:1',\n ]);\n\n $product = Product::find($id);\n $product->store_id = Auth::guard('store')->user()->id;\n $product->product_name = $request->get('name');\n $product->product_description = $request->get('description');\n $product->product_price = $request->get('price');\n $product->product_quantity = $request->get('quantity');\n $current_image = $product->product_image;\n $new_image = \"\";\n\n if ($request->has('subcategory')) {\n $product->subcategory_id = $request->get('subcategory');\n }\n if ($request->has('parameter')) {\n $product->product_parameter_id = $request->get('parameter');\n }\n if ($request->has('image')) {\n $new_image = $request->file('image');\n $extension = $new_image->getClientOriginalExtension();\n $filename = 'product-' . time() . '.' . $extension;\n $product->product_image = $filename;\n $new_image->storeAs('products', $filename, 'public');\n }\n $product->save();\n if (Storage::disk('public')->exists('products/' . $new_image)) {\n Storage::disk('public')->delete('products/' . $current_image);\n }\n return redirect()->route('products.index')->with('success', 'Product updated');\n }", "title": "" }, { "docid": "b2529b99a7a37449008d06dce086f0aa", "score": "0.55367374", "text": "public function update(Request $request, $id)\n {\n $validateData = $request->validate([\n 'image' => ['max:1024','nullable'],\n 'link' => ['url','nullable']\n ]);\n\n $store = Promotionalslider::find($id);\n $store->link = $request->link;\n if($request->hasfile('image')){\n\n $imagePath = $store->image;\n\n if(File::Exists($imagePath)){\n File::delete($imagePath);\n }\n\n $filename = str_replace(' ','-', $request->image->getClientOriginalName());\n $request->image->move(public_path('media/promotional_slider/'),$filename);\n $store->image ='public/media/promotional_slider/'.$filename;\n }\n \n\n if($store->save()){\n $notification = array(\n 'message'=>'Successfully Promotional Slider Updated',\n 'alert-type'=>'success'\n );\n\n return redirect()->route('promotional-slider')->with($notification);\n }else{\n $notification = array(\n 'message'=>'Something Went Wrong',\n 'alert-type'=>'error'\n );\n\n return redirect()->route('promotional-slider')->with($notification);\n }\n }", "title": "" }, { "docid": "91039ce0cfc444382b037c86ba4ab01d", "score": "0.55300915", "text": "public function update( $data );", "title": "" }, { "docid": "e8f2a79f2bd8c3eb405e389cd50395bf", "score": "0.5526578", "text": "public abstract function update($data);", "title": "" }, { "docid": "21ec885e595c2bf310bc026dbe22811d", "score": "0.5520187", "text": "public function update(Request $request, $id)\n {\n\n\n $contents = $request->data;\n\n if ($id === 'options') {\n\n Storage::put('options.json', json_encode($contents));\n\n }\n\n if ($id === 'templates') {\n\n Storage::put('templates.json', json_encode($contents));\n\n }\n\n if ($id === 'documentation') {\n\n Storage::put('documentation.json', json_encode($contents));\n\n }\n\n\n return response('', 200);\n }", "title": "" }, { "docid": "ac2aad33da58e5ad706eece6ab1eea86", "score": "0.55200577", "text": "public function update(Request $request, $id): \\Illuminate\\Http\\RedirectResponse\n {\n $request->validate([\n 'name' => 'required',\n ]);\n $br = BaseResources::find($id);\n $br->name = $request->name;\n $br->save();\n return redirect()->route('bases.index')\n ->with('success','Base Resource has been updated successfully');\n }", "title": "" }, { "docid": "8f3102dfb73015454da2f2685b058666", "score": "0.5517063", "text": "public function update(Request $request, $id)\n {\n // $request->validate([\n // 'title' => 'required',\n // 'price' => 'required',\n // 'description' => 'required|numeric',\n // 'image' => 'required|image|mimes:jpeg,png,jpg,gif',\n // ]);\n\n\n $product = Product::find($id);\n $product->title = $request->get('Title');\n $product->description = $request->get('Description');\n //$product->image = $request->get();\n $product->price = $request->get('Price');\n if($request->hasFile('Image')){\n $file = $request->file('Image');\n $filename = time().'.'.$file->getClientOriginalExtension();\n $location = public_path('/images');\n $file->move($location,$filename);\n $oldImage = $product->image;\n \\Storage::delete($oldImage);\n $product->image = $filename;\n\n }\n $product->save();\n return back()->withInfo('product successfully update');\n }", "title": "" }, { "docid": "b5d2b22e695863a96f5a335c883dea91", "score": "0.55156153", "text": "public function update($item);", "title": "" }, { "docid": "59cc7aa6a27c614e6dbea168303030cb", "score": "0.5510812", "text": "public function update(Request $request, Memory $memory)\n {\n //\n }", "title": "" }, { "docid": "b54270ca9c777eb769ba1aabcadc3d1e", "score": "0.55085415", "text": "public function update($object){\n \n }", "title": "" }, { "docid": "265c7e4e1d9ccb8f2d919846c5c6d0e1", "score": "0.55072427", "text": "public function update($id, $input);", "title": "" }, { "docid": "550e526ae84b71f87da655893d62fd3e", "score": "0.55022335", "text": "public function update(Request $request, $id)\n {\n $productPic = $this->productRepo->find($id);\n $product = $request->except('_token', 'photo', '_method', 'product_categ', 'ar', 'en', 'volume', 'measure', 'num_of_item', 'item_cost');\n $product_categ = $request->get('product_categ');\n\n $activeLangCode = \\LanguageHelper::getLangCode();\n\n $product_trans = $request->only($activeLangCode);\n\n if ($request->hasFile('photo')) {\n // Delete old image first.\n $thumbnail_path = public_path() . '/images/products/thumb/' . $productPic->photo;\n File::delete($thumbnail_path);\n\n // Save the new one.\n $image = $request->file('photo');\n $imageName = $this->upload($image, 'products', true);\n $product['photo'] = $imageName;\n }\n\n $this->productRepo->update($id, $product, $product_trans, $product_categ);\n\n return redirect('/admin-panel/product')->with('updated', 'updated');\n }", "title": "" }, { "docid": "a43ab06ada401992dd7f3fdb88d45bfc", "score": "0.5498034", "text": "public function update(Model $acl_resource, array $info) {\n\n // Update record\n return parent::_update($acl_resource, $info);\n }", "title": "" }, { "docid": "e12ba95416c234deaa01e27943c5b363", "score": "0.5497075", "text": "public function update(ProductStoreRequest $request, $id)\n {\n //\n $product = Product::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->category_id = $request->category_id;\n $product->price = $request->price;\n $product->image_path = $product->image_path;\n\n \n if($product->save()) {\n if($request->hasFile('image_path')) {\n $extension = $request->file('image_path')->getClientOriginalExtension();\n\n $filename = $product->id . '.' . $extension;\n\n $path = $request->file('image_path')->storeAs('products', $filename);\n $product->image_path = $filename;\n $product->save();\n }\n }\n\n return redirect()->route('products.index')->with('success', 'Product has been updated');\n }", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "5e25fde2b05dc8aa69161eca66edd608", "score": "0.5493595", "text": "public function update()\n\t\t{\n\t\t\t// with an insert instead.\n\t\t\t$this->save();\n\t\t}", "title": "" }, { "docid": "97425bf86b91309c01997fb129746a78", "score": "0.5489399", "text": "public function testUpdate() {\n\n $book = $this->bookFactory->generate(1, TRUE);\n $book->set('name', 'Changed name');\n $res = $this->patch('/api/books' . $book->getId(), $this->toJson($book->getValues(TRUE)));\n $this->assertEquals(204, $res->getStatusCode());\n $book = $this->bookStorage->find($book->getId());\n $this->assertEquals('Changed name', $book->get('name'));\n }", "title": "" }, { "docid": "85714b33bdb1da52c9f3c38b3fb0e4fd", "score": "0.54882276", "text": "abstract public function update($id);", "title": "" }, { "docid": "684d005a26a2cb523ebddd9952606e58", "score": "0.54879177", "text": "public function update(Request $request, Product $product)\n {\n //\n \n $product=Product::find($request->input('id'));\n $filename=$product->image;\n if($request->hasFile('img')){\n Storage::delete($filename);\n $filename=Storage::put('public/products', $request->file('img'));\n }\n $product->name=$request->input('name');\n $product->image=$filename;\n $update=$product->save();\n if($update){\n return redirect()->route('product.show',['product'=>$product])->with(['scucess' => 'Sucessfully updated']);\n }\n }", "title": "" }, { "docid": "69899e5cc810b430e81a78ef78bbb9aa", "score": "0.54833865", "text": "public function putAction()\n\t{\n\t\t$this->_connectionApi->put();\n\t}", "title": "" }, { "docid": "f84f36825279804eeb3fa246acad7d33", "score": "0.5482953", "text": "public function update(Request $request, $id)\n {\n //\n $data = $request->all();\n unset($data['_token']);\n unset($data['_method']);\n unset($data['image']);\n $rs = Pr::find($id)->update($data);\n if($rs) {\n if($request->image){\n $prs = Pr::find($id);\n $image_u = $prs->media;\n $image_u = str_replace('/storage/app/', '', $image_u);\n $path = '/storage/app/'.@$request->file('image')->store('prs');\n $prs->image = $path;\n $prs->save();\n Storage::delete($image_u);\n }\n return redirect(route('prs.index'));\n }else{\n return back();\n }\n }", "title": "" }, { "docid": "c583b303a0fc1fb0c4ff1107b3e09e10", "score": "0.5479377", "text": "public function update(StoreSlide $request, $id)\n {\n $slide = Slide::find($id);\n $slide->url = $request->input('url');\n\n if ($request->hasFile('cover')) {\n // upload and rsize image\n $file_handler = new CarouselFiles($slide, $request);\n $image = $file_handler->save();\n\n $slide->image = $image;\n }\n\n $slide->save();\n\n return redirect()->route('admin_carousel_edit', ['slide' => $id]);\n }", "title": "" }, { "docid": "9597f2dbc4718b9f333e4446e6945f31", "score": "0.5478411", "text": "public function update($data) {\n }", "title": "" }, { "docid": "749485fd3edd17fca5d56cd2e62d0c66", "score": "0.547553", "text": "public function update(Request $request, $id)\n {\n $item = Item::find($id);\n\n $requestData = $request->all();\n\n if ($request->hasFile('image_url')) {\n\n $old_image = $item->image_url;\n $file = $request->file('image_url');\n $path = $this->fileUpload($file, 'items');\n $requestData['image_url'] = $path;\n File::delete(public_path() . $old_image);\n\n }\n\n $item->update($requestData);\n\n return redirect('/admin/items');\n }", "title": "" }, { "docid": "9f003d2b5bf2d688d40ed0c072d56402", "score": "0.5468303", "text": "public function update(Request $request, $id)\n {\n Auth::User()->authorizeRoles(['admin']);\n $this->validate($request, [\n 'title' =>'required',\n 'description' =>'required',\n 'isbn' =>'required',\n 'quantity' =>'required',\n 'price' =>'required',\n 'author' =>'required',\n 'genre' =>'required',\n 'image' =>'image|nullable|max:1999'\n ]);\n\n $item = Catalog::find($id);\n if ($request->hasFile('image')) {\n $path = $request->file('image')->store('catalog_images', 's3');\n if ($item->image != 'catalog_images/noimage.jpg') {\n Storage::disk('s3')->delete($item->image);\n }\n $item->image=$path;\n }\n $item->title=$request->input('title');\n $item->description=$request->input('description');\n $item->isbn=$request->input('isbn');\n $item->quantity=$request->input('quantity');\n $item->price=$request->input('price');\n $item->authorId=$request->input('author');\n $item->genreId=$request->input('genre');\n $item->save();\n return redirect('/catalog/'.$id)->with('success', 'Item updated');\n }", "title": "" }, { "docid": "dbac649412e8591fc3a2a2615f2f7767", "score": "0.5468077", "text": "abstract protected function update($entity);", "title": "" }, { "docid": "6555dceeb8fb592d28c1c54627f3087e", "score": "0.5467873", "text": "public static function updateResource($path, $object, $email)\n {\n if (is_array($object)) {\n $object = (object)$object;\n }\n self::connection()->addHeader('X-BEHALF-KEY', $email);\n return self::connection()->put(self::$api_path . $path, $object);\n }", "title": "" }, { "docid": "6dbe9a80c3cc7c4c7214a73b919cb78b", "score": "0.54670787", "text": "public function update($request);", "title": "" }, { "docid": "fff4ed84e179c6d810f4109953693135", "score": "0.5464452", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "13060cd318eed312852c00ed17885787", "score": "0.5460793", "text": "public function update($object)\n {\n }", "title": "" }, { "docid": "4360333bf1732261e8e76d77713982a2", "score": "0.54556817", "text": "private function updateEntity(Model\\BaseModel $entity, string $uri, string $resourceFieldKey): void {\n\t\t$tags = [];\n\t\tif ($entity instanceof Model\\TaggableInterface) {\n\t\t\t// Preserve the tags temporarily.\n\t\t\t// We'll sync them later.\n\t\t\t$tags = $entity->getTags();\n\t\t}\n\n\t\t$rawApiResponse = $this->communicator->put($uri, [], [\n\t\t\t$resourceFieldKey => $entity->export(),\n\t\t]);\n\n\t\t$newData = $rawApiResponse->getValue(sprintf('[%s]', $resourceFieldKey));\n\t\t$entity->hydrate($newData);\n\n\t\tif ($entity instanceof Model\\TaggableInterface) {\n\t\t\t// The requests (and hydration) above made us lose the tags,\n\t\t\t// since they're managed through another API.\n\t\t\t// Let's assign/de-assign tags now.\n\t\t\t$this->ensureTagsSynced($entity, $tags);\n\t\t}\n\t}", "title": "" }, { "docid": "95ec1039e714eda8d36c46e04fc2aeae", "score": "0.54446787", "text": "public function updateResource(Resources $resources) {\n $preparedStmt = \"UPDATE \" . $resources->getTableName() . \" SET title=?, categoryName=?, linkResource=? WHERE resourceID=?\";\n $resources->setSql($preparedStmt);\n $response = $this->connection->update($resources);\n return $response;\n }", "title": "" }, { "docid": "7db59e65f55b9762d20b09aede45101b", "score": "0.54399514", "text": "public function update(Request $request, Product $product)\n {\n if($request['image']){\n $file = $request['image'];\n $image = $this->ImageUploader($file,'images/');\n// unlink($product->image);\n }else{\n $image = $product->image;\n }\n if($request['file']){\n $file = $request['image'];\n $val = $this->ImageUploader($file,'files/');\n// unlink($product->file);\n }else{\n $val = $product->file;\n }\n\n\n $data = $request->all();\n $product->tags()->sync($data['tag_id']);\n $data['image'] = $image;\n $data['file'] = $val;\n\n $product->update($data);\n return redirect(route('product.index'));\n }", "title": "" }, { "docid": "80ec716f79dfea9cd0d35ec83acd6fad", "score": "0.54376215", "text": "public function update(Request $request, $id)\n {\n $input = $request->all();\n \t\n \tif(isset($input['image']))\n\t \t$input['image'] = $this->upload ($input['image']);\n \t\n \tItem::findOrFail($id)->update($input);\n \t\n \treturn redirect()->back();\n }", "title": "" }, { "docid": "45006333af499b7a8ef5e992e8465995", "score": "0.54331666", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n\t\tself::storeOrUpdate($product, $request);\n\n\t\treturn redirect('/products')->with('edited', \"Product edited: $product->name\");\n }", "title": "" }, { "docid": "8fb9613a7e05f846bb10235d1d3c4c4b", "score": "0.54254407", "text": "public function update(Request $request, $id)\n {\n $validation=$request->validate([\n \"text\"=>\"required\",\n\n \n ]);\n $update=Slider::find($id);\n if (request()->hasFile(key:'img')) {\n $img=request()->file(key:'img')->hashName();\n request()->file(key:'img')->storeAs(path:'',name:$img);\n $update->img=$img;\n }\n $update->text=$request->text;\n $update->save();\n return redirect()->back();\n\n }", "title": "" }, { "docid": "2ff7fd3eab671b99901b6f6734766160", "score": "0.54233396", "text": "abstract public function update($entity);", "title": "" }, { "docid": "f34a06d4191c968bf71a45ea518e7ed0", "score": "0.54212976", "text": "public function updateObject( $id, $acl = null, $metadata = null, \n\t\t$extent = null, $data = null, $mimeType = null, $checksum = null );", "title": "" }, { "docid": "b67a35c68f5872515b02fce609275aaa", "score": "0.54202235", "text": "public function update(Request $request, $id)\n {\n\n $product = \\App\\Product::find($id);\n\n if ($request->hasFile('image')) {\n $file = $request->file('image');\n\n $destinationPath = 'uploads/products/images'; // upload path\n $extension = $file->getClientOriginalExtension(); // getting image extension\n $fileName = rand(11111,99999).'.'.$extension; // renameing image\n\n $imageName = $destinationPath . '/' . $fileName;\n\n $file->move($destinationPath, $fileName); // uploading file to given path \n\n $picPath = $imageName;\n\n }else{\n $picPath = $product->pic;\n }\n \n $name = $request->get('product_name') ?: $product->name;\n $desc = $request->get('product_desc') ?: $product->desc;\n $price = $request->get('product_price') ?: $product->price; \n\n $product = \\App\\Product::find($id)->update([\n 'name' => $name,\n 'desc' => $desc,\n 'price' => $price,\n 'pic' => $picPath\n ]);\n\n return redirect('/admin/viewProducts');\n }", "title": "" }, { "docid": "cdb8493452b057388fcb678d2dccb96c", "score": "0.5417866", "text": "public function update($id, Request $request);", "title": "" } ]
6f7afb4f679924328ef1291df334d5f8
Test the fixture bcc.eml
[ { "docid": "a593ba179892dbd5b9df4e20412df648", "score": "0.7862054", "text": "public function testFixture() : void {\n $message = $this->getFixture(\"bcc.eml\");\n\n self::assertEquals(\"test\", $message->subject);\n self::assertEquals(\"<return-path@here.com>\", $message->return_path);\n self::assertEquals(\"1.0\", $message->mime_version);\n self::assertEquals(\"text/plain\", $message->content_type);\n self::assertEquals(\"Hi!\", $message->getTextBody());\n self::assertFalse($message->hasHTMLBody());\n self::assertEquals(\"2017-09-27 10:48:51\", $message->date->first()->setTimezone('UTC')->format(\"Y-m-d H:i:s\"));\n self::assertEquals(\"from@there.com\", $message->from);\n self::assertEquals(\"to@here.com\", $message->to);\n self::assertEquals(\"A_€@{è_Z <bcc@here.com>\", $message->bcc);\n self::assertEquals(\"sender@here.com\", $message->sender);\n self::assertEquals(\"reply-to@here.com\", $message->reply_to);\n }", "title": "" } ]
[ { "docid": "3a5c4152d2369b884ba42de1a9b76c91", "score": "0.7463651", "text": "public function testFixture() : void {\n $message = $this->getFixture(\"email_address.eml\");\n\n self::assertEquals(\"\", $message->subject);\n self::assertEquals(\"123@example.com\", $message->message_id);\n self::assertEquals(\"Hi\\r\\nHow are you?\", $message->getTextBody());\n self::assertFalse($message->hasHTMLBody());\n self::assertFalse($message->date->first());\n self::assertEquals(\"no_host@UNKNOWN\", (string)$message->from);\n self::assertEquals(\"\", $message->to);\n self::assertEquals(\"This one: is \\\"right\\\" <ding@dong.com>, No-address@UNKNOWN\", $message->cc);\n }", "title": "" }, { "docid": "ed9a7c90bc33adb714e55c7aca03ab55", "score": "0.71505237", "text": "public function testFixture() : void {\n $message = $this->getFixture(\"four_nested_emails.eml\");\n\n self::assertEquals(\"3-third-subject\", $message->subject);\n self::assertEquals(\"3-third-content\", $message->getTextBody());\n self::assertFalse($message->hasHTMLBody());\n self::assertFalse($message->date->first());\n self::assertEquals(\"test@example.com\", $message->from->first()->mail);\n self::assertEquals(\"test@example.com\", $message->to->first()->mail);\n\n $attachments = $message->getAttachments();\n self::assertCount(1, $attachments);\n\n $attachment = $attachments[0];\n self::assertInstanceOf(Attachment::class, $attachment);\n self::assertEquals(\"2-second-email.eml\", $attachment->name);\n self::assertEquals('text', $attachment->type);\n self::assertEquals('eml', $attachment->getExtension());\n self::assertEquals(\"message/rfc822\", $attachment->content_type);\n self::assertEquals(\"85012e6a26d064a0288ee62618b3192687385adb4a4e27e48a28f738a325ca46\", hash(\"sha256\", $attachment->content));\n self::assertEquals(1376, $attachment->size);\n self::assertEquals(2, $attachment->part_number);\n self::assertEquals(\"attachment\", $attachment->disposition);\n self::assertNotEmpty($attachment->id);\n\n }", "title": "" }, { "docid": "d9e136073a0b73719541917b40b8de84", "score": "0.6882743", "text": "public function testFixture() : void {\n $message = $this->getFixture(\"structured_with_attachment.eml\");\n\n self::assertEquals(\"Test\", $message->getSubject());\n self::assertEquals(\"Test\", $message->getTextBody());\n self::assertFalse($message->hasHTMLBody());\n\n self::assertEquals(\"2017-09-29 08:55:23\", $message->date->first()->setTimezone('UTC')->format(\"Y-m-d H:i:s\"));\n self::assertEquals(\"from@there.com\", $message->from->first()->mail);\n self::assertEquals(\"to@here.com\", $message->to->first()->mail);\n\n self::assertCount(1, $message->attachments());\n\n $attachment = $message->attachments()->first();\n self::assertInstanceOf(Attachment::class, $attachment);\n self::assertEquals(\"MyFile.txt\", $attachment->name);\n self::assertEquals('txt', $attachment->getExtension());\n self::assertEquals('text', $attachment->type);\n self::assertEquals(\"text/plain\", $attachment->content_type);\n self::assertEquals(\"MyFileContent\", $attachment->content);\n self::assertEquals(20, $attachment->size);\n self::assertEquals(2, $attachment->part_number);\n self::assertEquals(\"attachment\", $attachment->disposition);\n self::assertNotEmpty($attachment->id);\n }", "title": "" }, { "docid": "2f599d1179180886a93d47985a1714a2", "score": "0.68751186", "text": "public function testFixture() : void {\n $message = $this->getFixture(\"missing_date.eml\");\n\n self::assertEquals(\"Nuu\", $message->getSubject());\n self::assertEquals(\"Hi\", $message->getTextBody());\n self::assertFalse($message->hasHTMLBody());\n self::assertFalse($message->date->first());\n self::assertEquals(\"from@here.com\", $message->from->first()->mail);\n self::assertEquals(\"to@here.com\", $message->to->first()->mail);\n }", "title": "" }, { "docid": "b2be2625d0d52ba4295db3c79b93bb0b", "score": "0.65107197", "text": "public function testETL()\n {\n foreach ($this->test_emlp_cases as $config) {\n Mockery::mock('Eloquent');\n $extract_model = new stdClass;\n\n $command = $this->getMockedCommand();\n\n $extract_model->uri = __DIR__ . '/../data/' . $config['extract']['file'];\n\n $json_extractor = new \\Tdt\\Input\\ETL\\Extract\\Json($extract_model, $command);\n\n // We only extract one item, and check for conversion correctness\n\n $this->assertTrue($json_extractor->hasNext());\n\n if ($json_extractor->hasNext()) {\n $chunk = $json_extractor->pop();\n\n // Serialize the object to make comparing object easy\n $encoded_obj = serialize($chunk);\n\n // Fetch the correct object to which the test must be verified\n $verified_obj = serialize(json_decode(file_get_contents(__DIR__ . '/../data/' . $config['extract']['verify']), true));\n\n $this->assertEquals($verified_obj, $encoded_obj);\n\n // Map the object from the json extraction and compare the amount of\n // triples as a parameter of test\n\n $map_model = Mockery::mock('map\\Rdf');\n\n $map_model->mapfile = __DIR__ . '/../map/' . $config['map']['file'];\n $map_model->base_uri = $config['map']['base_uri'];\n }\n }\n }", "title": "" }, { "docid": "3da3682493ef9d3506e022e595579116", "score": "0.64835095", "text": "public function test()\n {\n $o_fixture = new \\DbFixture();\n\n $ar_business_a = $o_fixture->rs_business();\n\n $ar_business_b = $o_fixture->rs_business();\n\n $ar_location = $o_fixture->rs_location();\n $ar_location->k_business = $ar_business_a;\n $ar_location->s_email = 'test-email@gmail.com';\n $ar_location->s_phone = '111-111-1111';\n\n $ar_skin_application_resource = $o_fixture->wl_skin_application_resource();\n $ar_skin_application_resource->k_business = $ar_business_b->k_business;\n $ar_skin_application_resource->text_description = 'Description';\n $ar_skin_application_resource->text_email = 'test@milo.ru';\n $ar_skin_application_resource->text_phone = '111-111-1111';\n $ar_skin_application_resource->text_website = 'site.com';\n\n $o_fixture->save();\n\n //Checks the method without data for current business in the database.\n Backend::set($ar_business_a->k_business);\n $o_edit_controller = new EditController();\n $o_edit_controller->k_business = $ar_business_a->k_business;\n $o_edit_controller->text_name = 'text_name';\n $o_edit_controller->text_website = 'test.web.com';\n $o_edit_view = new EditView();\n $a_load = $o_edit_view->load($o_edit_controller);\n\n $this->assertArrayCount(18, $a_load);\n $this->assertArrayHasKey('o_controller', $a_load);\n $this->assertTrue( $a_load['o_controller'] instanceof EditController);\n $this->assertStringEquals($ar_location->s_email, $a_load['html_email']);\n $this->assertStringEquals($o_edit_controller->text_name, $a_load['html_name']);\n $this->assertStringEquals($ar_location->s_phone, $a_load['html_phone']);\n $this->assertStringEquals($o_edit_controller->text_website, $a_load['html_website']);\n\n //Checks the method in read mode from the database.\n Backend::set($ar_business_b->k_business);\n $o_edit_controller = new EditController();\n $o_edit_controller->k_business = $ar_business_b->k_business;\n $o_edit_view = new EditView();\n\n $html_template = $o_edit_view->render($o_edit_controller);\n $this->assertXss($html_template);\n $this->assertStringContains(\n htmlspecialchars($ar_skin_application_resource->text_name),\n $html_template\n );\n\n $this->assertStringContains(\n htmlspecialchars($ar_skin_application_resource->text_description),\n $html_template\n );\n\n $this->assertStringContains(\n htmlspecialchars($ar_skin_application_resource->text_email),\n $html_template\n );\n\n $this->assertStringContains(\n htmlspecialchars($ar_skin_application_resource->text_phone),\n $html_template\n );\n\n $this->assertStringContains(\n htmlspecialchars($ar_skin_application_resource->text_website),\n $html_template\n );\n }", "title": "" }, { "docid": "dd8ce374992ab878bfd6774b18816bb6", "score": "0.645193", "text": "public function testBake()\n {\n $this->generatedFile = ROOT . 'tests/Fixture/ArticlesFixture.php';\n $this->exec('bake fixture --connection test Articles');\n\n $this->assertExitCode(Shell::CODE_SUCCESS);\n $this->assertFileContains('class ArticlesFixture extends TestFixture', $this->generatedFile);\n $this->assertFileContains('public $fields', $this->generatedFile);\n $this->assertFileContains('$this->records =', $this->generatedFile);\n $this->assertFileNotContains('public $import', $this->generatedFile);\n }", "title": "" }, { "docid": "4ad41d7408346417ee2c40a52f37290b", "score": "0.6442697", "text": "public function testFixture() : void {\n $message = $this->getFixture(\"attachment_long_filename.eml\");\n\n self::assertEquals(\"\", $message->subject);\n self::assertEquals(\"multipart/mixed\", $message->content_type->last());\n self::assertFalse($message->hasTextBody());\n self::assertFalse($message->hasHTMLBody());\n\n $attachments = $message->attachments();\n self::assertCount(3, $attachments);\n\n $attachment = $attachments[0];\n self::assertInstanceOf(Attachment::class, $attachment);\n self::assertEquals(\"Buchungsbestätigung- Rechnung-Geschäftsbedingungen-Nr.B123-45 - XXXX xxxxxxxxxxxxxxxxx XxxX, Lüdxxxxxxxx - VM Klaus XXXXXX - xxxxxxxx.pdf\", $attachment->name);\n self::assertEquals(\"Buchungsbestätigung- Rechnung-Geschäftsbedingungen-Nr.B123-45 - XXXXX xxxxxxxxxxxxxxxxx XxxX, Lüxxxxxxxxxx - VM Klaus XXXXXX - xxxxxxxx.pdf\", $attachment->filename);\n self::assertEquals('text', $attachment->type);\n self::assertEquals('pdf', $attachment->getExtension());\n self::assertEquals(\"text/plain\", $attachment->content_type);\n self::assertEquals(\"ca51ce1fb15acc6d69b8a5700256172fcc507e02073e6f19592e341bd6508ab8\", hash(\"sha256\", $attachment->content));\n self::assertEquals(4, $attachment->size);\n self::assertEquals(0, $attachment->part_number);\n self::assertEquals(\"attachment\", $attachment->disposition);\n self::assertNotEmpty($attachment->id);\n\n $attachment = $attachments[1];\n self::assertInstanceOf(Attachment::class, $attachment);\n self::assertEquals('01_A€àäąбيد@Z-0123456789-qwertyuiopasdfghjklzxcvbnmopqrstuvz-0123456789-qwertyuiopasdfghjklzxcvbnmopqrstuvz-0123456789-qwertyuiopasdfghjklzxcvbnmopqrstuvz.txt', $attachment->name);\n self::assertEquals(\"f7b5181985862431bfc443d26e3af2371e20a0afd676eeb9b9595a26d42e0b73\", hash(\"sha256\", $attachment->filename));\n self::assertEquals('text', $attachment->type);\n self::assertEquals('txt', $attachment->getExtension());\n self::assertEquals(\"text/plain\", $attachment->content_type);\n self::assertEquals(\"ca51ce1fb15acc6d69b8a5700256172fcc507e02073e6f19592e341bd6508ab8\", hash(\"sha256\", $attachment->content));\n self::assertEquals(4, $attachment->size);\n self::assertEquals(1, $attachment->part_number);\n self::assertEquals(\"attachment\", $attachment->disposition);\n self::assertNotEmpty($attachment->id);\n\n $attachment = $attachments[2];\n self::assertInstanceOf(Attachment::class, $attachment);\n self::assertEquals('02_A€àäąбيد@Z-0123456789-qwertyuiopasdfghjklzxcvbnmopqrstuvz-0123456789-qwertyuiopasdfghjklzxcvbnmopqrstuvz-0123456789-qwertyuiopasdfghjklzxcvbnmopqrstuvz.txt', $attachment->name);\n self::assertEquals('02_A€àäąбيد@Z-0123456789-qwertyuiopasdfghjklzxcvbnmopqrstuvz-0123456789-qwertyuiopasdfghjklzxcvbnmopqrstuvz-0123456789-qwertyuiopasdfghjklzxcvbnmopqrstuvz.txt', $attachment->filename);\n self::assertEquals('text', $attachment->type);\n self::assertEquals(\"text/plain\", $attachment->content_type);\n self::assertEquals('txt', $attachment->getExtension());\n self::assertEquals(\"ca51ce1fb15acc6d69b8a5700256172fcc507e02073e6f19592e341bd6508ab8\", hash(\"sha256\", $attachment->content));\n self::assertEquals(4, $attachment->size);\n self::assertEquals(2, $attachment->part_number);\n self::assertEquals(\"attachment\", $attachment->disposition);\n self::assertNotEmpty($attachment->id);\n }", "title": "" }, { "docid": "6ae45d8ae1e6547327eb7d028267a5a0", "score": "0.6032295", "text": "public function testEm()\n {\n $cmd = $this->createCommand();\n $cmd->addArg('--enable-strong=', 0);\n $cmd->addArg($this->getPathToData('input.md'));\n $cmd->execute();\n\n $this->assertEquals(0, $cmd->getExitCode());\n $expectedContents = trim(file_get_contents($this->getPathToData('em.html')));\n $this->assertEquals($expectedContents, trim($cmd->getOutput()));\n }", "title": "" }, { "docid": "b5a37477383feeb6d8de316924933694", "score": "0.5998737", "text": "public function testFixtureRecords() {\n\t\t$this->_createShellMock(\n\t\t\tarray('in', 'out', 'hr', 'createFile', 'error', 'err', '_stop', '_showInfo', 'dispatchShell', '_getParameter'),\n\t\t\t'PropertiesSetSeederTaskBase'\n\t\t);\n\n\t\t$result = $this->_task->fixtureRecords();\n\t\t$expected = array(array('foo' => 'bar'));\n\n\t\t$this->assertEquals($expected, $result);\n\t}", "title": "" }, { "docid": "660d5a3ce6358d0f14c25efb59d6a59e", "score": "0.5875805", "text": "public function testMainIntoAll()\n {\n $this->generatedFiles = [\n ROOT . 'tests/Fixture/ArticlesFixture.php',\n ROOT . 'tests/Fixture/CommentsFixture.php',\n ];\n $this->exec('bake fixture all --connection test');\n\n $this->assertExitCode(CommandInterface::CODE_SUCCESS);\n $this->assertFilesExist($this->generatedFiles);\n $this->assertFileContains('class ArticlesFixture', $this->generatedFiles[0]);\n $this->assertFileContains('class CommentsFixture', $this->generatedFiles[1]);\n }", "title": "" }, { "docid": "f477f3df5559af7b2681d9ea9e1a8351", "score": "0.5864878", "text": "public function testExample()\n {\n $materi = Materi::create([\n 'judul' => 'Adaptasi Kebiasaan Baru',\n 'nip'=> '1805037',\n 'video'=> 'adaptasi.mp4',\n 'kategori' => 'Covid 19',\n 'foto' => 'adaptasi.jpg',\n 'deskripsi' => 'Pada masa pandemi covid 19 ............',\n ]);\n $this->assertDatabaseHas('materis',[\n 'judul' => 'Adaptasi Kebiasaan Baru',\n 'nip' => '1805037',\n 'video' => 'adaptasi.mp4',\n 'kategori' => 'Covid 19',\n 'foto' => 'adaptasi.jpg',\n 'deskripsi' => 'Pada masa pandemi covid 19 ............',\n ]);\n }", "title": "" }, { "docid": "2f317da86527476bf78351a4bb17a02c", "score": "0.5851127", "text": "protected function setUp()\n {\n $this->emma = new Emma('','','','');\n }", "title": "" }, { "docid": "b8f6af049593cb352ff8429a502873cd", "score": "0.58396614", "text": "public function getFixture();", "title": "" }, { "docid": "6588156a0e4d4758cf749a6fb91b7514", "score": "0.5794105", "text": "public function testdoCompileFixtureModel() {\n $autoLoader = $GLOBALS['env']['container']->getAutoLoader();\n $boot = $GLOBALS['env']['container'] = new \\Webforge\\Setup\\BootContainer($GLOBALS['env']['root'], NULL);\n $boot->setAutoLoader($autoLoader);\n $this->webforge = $boot->getWebforge();\n\n $dir = $this->getPackageDir('build/package/');\n $dir->create()->wipe();\n $this->getTestDirectory('acme-blog/')->copy($dir, NULL, NULL, $recursive = TRUE);\n\n self::$package = $this->webforge->getPackageRegistry()->addComposerPackageFromDirectory(\n $dir\n );\n\n // we are the first test in the suite, so we (and only we) construct the model once\n $compileCommand = new CompileCommand('orm:compile', $this->frameworkHelper->getSystem());\n $compileCommand->injectWebforge($this->webforge);\n\n $application = new \\Webforge\\Console\\Application('test application in create model test', '0.0');\n $application->add($compileCommand);\n\n $application->find('orm:compile');\n chdir(self::$package->getRootDirectory()->wtsPath());\n\n $commandTester = new CommandTester($compileCommand);\n $ret = $commandTester->execute(array(\n 'command'=>$compileCommand->getName(),\n 'model'=>'etc/doctrine/model.json',\n '--extension'=>'Serializer',\n 'psr0target'=>'lib/'\n ));\n\n $this->assertSame(0, $ret, 'compiling with command failed: '.$commandTester->getDisplay());\n\n $this->assertFileExists($dir->getFile('etc/doctrine/model-compiled.json'));\n \n // register dynamically with autoloader from composer\n $this->frameworkHelper->getBootContainer()->getAutoLoader()->add('ACME\\Blog', self::$package->getDirectory('lib')->wtsPath());\n }", "title": "" }, { "docid": "03d1c6808727a519385d5f0a42e8394b", "score": "0.579303", "text": "public function testMainWithPluginModel()\n {\n $this->loadPlugins(['FixtureTest' => ['path' => APP . 'Plugin/FixtureTest/']]);\n\n $this->generatedFile = APP . 'Plugin/FixtureTest/tests/Fixture/ArticlesFixture.php';\n $this->exec('bake fixture --connection test FixtureTest.Articles');\n\n $this->assertExitCode(Shell::CODE_SUCCESS);\n $this->assertFileContains(\"class ArticlesFixture\", $this->generatedFile);\n }", "title": "" }, { "docid": "ec1f2aaff80196caec362c696d99d500", "score": "0.57794076", "text": "protected function setUp()\n {\n \t$this->allId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:catalog/all');\n $this->mcugId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:catalog/MCUG');\n $this->miisId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:catalog/MIIS');\n $this->unknownId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:unknown_id');\n \n $this->manager = $this->sharedFixture['CourseManager'];\n $this->session = $this->manager->getCourseOfferingLookupSession();\n $this->session->useFederatedCourseCatalogView();\n \n $this->physId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:course/PHYS0201');\n $this->mathId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:course/MATH0300');\n $this->chemId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:course/CHEM0104');\n \n \t$this->physOfferingId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:section/200890/90143');\n \t$this->geolOfferingId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:section/200420/20663');\n $this->unknownOfferingId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:section/178293/2101');\n \n $this->termId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:term/200890');\n \n $this->physDeptTopicId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:topic/department/PHYS');\n $this->chemDeptTopicId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:topic/department/CHEM');\n $this->physSubjTopicId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:topic/subject/PHYS');\n $this->chemSubjTopicId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:topic/subject/CHEM');\n $this->dedReqTopicId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:topic/requirement/DED');\n $this->sciReqTopicId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:topic/requirement/SCI');\n \n $this->unknownType = new phpkit_type_URNInetType(\"urn:inet:osid.org:unknown_type\");\n \t\n $this->generaNoneType = new phpkit_type_URNInetType(\"urn:inet:osid.org:genera:none\");\n $this->secondaryType = new phpkit_type_URNInetType(\"urn:inet:osid.org:genera:secondary\");\n $this->undergraduateType = new phpkit_type_URNInetType(\"urn:inet:osid.org:genera:undergraduate\");\n \n $this->lectureType = new phpkit_type_URNInetType('urn:inet:middlebury.edu:genera:offering/LCT');\n\t\t$this->labType = new phpkit_type_URNInetType('urn:inet:middlebury.edu:genera:offering/LAB');\n\t\t$this->discussionType = new phpkit_type_URNInetType('urn:inet:middlebury.edu:genera:offering/DSC'); \n\t}", "title": "" }, { "docid": "0e72cc95d1039098ba942208b3847955", "score": "0.5776733", "text": "protected function setUp()\n {\n $this->fixture = new Translator();\n\n $this->filename = sys_get_temp_dir() . '/en.php';\n file_put_contents(\n $this->filename,\n <<<TRANSLATION_FILE\n<?php\nreturn array(\n 'KEY' => 'value',\n);\nTRANSLATION_FILE\n );\n }", "title": "" }, { "docid": "4714185071dc0c3062053a1f579ab349", "score": "0.5765899", "text": "public function test_createEmailSettings() {\n\n }", "title": "" }, { "docid": "e92da824ae3c3a299cefa3f28c9bbd15", "score": "0.5759057", "text": "public function setUpFixtures() {\n }", "title": "" }, { "docid": "c2607d1297c796bce7deb98a48e563fa", "score": "0.57435465", "text": "public static function loadFixture()\n {\n include __DIR__ . '/_files/setup_simple_products.php';\n }", "title": "" }, { "docid": "dc9ac9ff0a42bd5cdeb478dbb1cdf0e8", "score": "0.5740296", "text": "public function setUp()\n {\n $this->fixture = new AddVariants();\n }", "title": "" }, { "docid": "e711b982ddd1ffb7b97828dfa52c17ef", "score": "0.57366854", "text": "public function setUp() {\n $this->fixture= new RoutinesVerification();\n }", "title": "" }, { "docid": "def119611c077f1c61ccb29ffded3604", "score": "0.57096666", "text": "public function testChatbotImportPost()\n {\n }", "title": "" }, { "docid": "d567c2ea4b77cd0c17fac736cabc80d7", "score": "0.5707578", "text": "public function testMake()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "2e88d9fe649f7d6d363e151a91d82271", "score": "0.56868035", "text": "public function testMakeACall()\n {\n }", "title": "" }, { "docid": "3dc3ad1286040eac1276c2836a0e105a", "score": "0.56765413", "text": "protected function setUp() {\n\t\t$this->fixture = new tx_pttools_testCollection();\n\t}", "title": "" }, { "docid": "502f080d0efe99782a07188fa0d84c48", "score": "0.5666135", "text": "public function test()\n {\n $this->call([\n CategoriesTableSeeder::class,\n RegionsTableSeeder::class,\n ThemesTableSeeder::class,\n MenusTableSeeder::class,\n SettingsTableSeeder::class,\n ]);\n\n Actor::factory(100)->create();\n Director::factory(100)->create();\n Tag::factory(100)->create();\n\n for ($i = 1; $i < 1000; $i++) {\n Movie::factory(1)\n ->state([\n 'publish_year' => rand(2018, 2022)\n ])\n ->hasAttached(Region::all()->random())\n ->hasAttached(Category::all()->random(3))\n ->hasAttached(Actor::all()->random(rand(1, 5)))\n ->hasAttached(Director::all()->random(1))\n ->hasAttached(Tag::all()->random(5))\n ->has(Episode::factory(5)->state([\n 'server' => 'Vietsub #1',\n 'type' => 'embed',\n 'link' => 'https://aa.nguonphimmoi.com/20220309/2918_589b816d/index.m3u8'\n ]))\n ->create();\n }\n }", "title": "" }, { "docid": "5330d37fc6b4d2917f3ae8f0c1f47aeb", "score": "0.56265795", "text": "public function testDescartes()\n\t{\n\t\t$this->assertTrue( true );\n\t}", "title": "" }, { "docid": "23446d8c8b095b655f5bde56b01a022a", "score": "0.560899", "text": "final public function test_room_seeder()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "17f6eea7c6931cadecc74291e7175324", "score": "0.56048965", "text": "public function testCheckEmailMailbox()\n {\n\n }", "title": "" }, { "docid": "a9e7f91ed781c3df84792a951ad01c52", "score": "0.5585352", "text": "public function testLoad()\n {\n $this->todo('stub');\n }", "title": "" }, { "docid": "0e36202b55657338d2c871bb80ba1a84", "score": "0.5580096", "text": "public function testChecking3()\n {\n $this->fixture->setAmount(1000)\n ->setCurrency('USD')\n ->setCustomerFullName('John Wick')\n ->setCCHolderName('John Wick')\n ->setCCExpirationMonth('05')\n ->setCCExpirationYear('2020')\n ->setCCNumber('4111111111111111')\n ->setCCV2('100');\n $this->assertTrue($this->fixture->isValid());\n }", "title": "" }, { "docid": "1d398aa829b8ea25a4c639f175009077", "score": "0.5579301", "text": "public function testMain()\n {\n echo \"\\n >----------- Test Main : ---------> \\n\";\n // error_log($this->save());//\n // $this->update(1, \"ECE\");//\n // $this->delete(1);//\n // error_log($this->findOne(2));\n // $this->getCurrentLoggedUserID();\n // $this->getAllEducation(1000);\n\n $this->insertingManyJobs();\n }", "title": "" }, { "docid": "3845e3e74dcd4e34d27bc8e0c30d233c", "score": "0.557442", "text": "protected function setUp()\n {\n $this->docBlock = new DocBlock('');\n\n $this->fixture = new File(static::EXAMPLE_HASH, static::EXAMPLE_PATH, static::EXAMPLE_SOURCE, $this->docBlock);\n }", "title": "" }, { "docid": "91c81b41b34cab94db939846c9968114", "score": "0.5572963", "text": "public function getModelWithDataTest() {\n\t\t$data = array('name' => 'Daniel Corn');\n\t\t$path = 'MyExt-MyModel';\n//\t\t$model = $this->fixture->getModelWithDataForPath($data, $path);\n//\t\t$this->assertEquals('Daniel Corn', $model->getName());\n\t}", "title": "" }, { "docid": "78cf11ca46b60faa867dcd03e7d527cc", "score": "0.55715096", "text": "public function test_createEnvelope() {\n\n }", "title": "" }, { "docid": "2c1687f164c33c5cdbab9b38bd7b04de", "score": "0.5569644", "text": "public function testExport1()\n {\n // SET THESE TO TRUE TO DEBUG\n $this->config['db_debug'] = false;\n $this->config['file_debug'] = false;\n //===========================\n $order = new Unit('order');\n $order->setMapping([]);\n $order->setReversedMapping([]);\n $invoice = new Unit('invoice');\n $invoice->setMapping([]);\n $shipment = new Unit('shipment');\n $shipment->setMapping([]);\n $address = new Unit('address');\n $address->setMapping([]);\n $orderItem = new Unit('order_item');\n $orderItem->setMapping([]);\n $invoiceItem = new Unit('invoice_item');\n $invoiceItem->setMapping([]);\n $shipmentItem = new Unit('shipment_item');\n $shipmentItem->setMapping([]);\n\n $invoiceItem->setParent($invoice);\n $invoice->setParent($order);\n $shipmentItem->setParent($shipment);\n $shipment->setParent($invoice);\n $address->setParent($order);\n $orderItem->setParent($order);\n $orderItem->addSibling($invoiceItem);\n $orderItem->addSibling($shipmentItem);\n\n $bag = new SimpleBag();\n $bag->addSet([$order, $invoice, $shipment, $address, $orderItem, $invoiceItem, $shipmentItem]);\n\n $input = new ArrayInput();\n\n $reverseMove = new ReverseMove($bag, $this->config, $this->resource);\n $dump = new Dump($bag, $this->config, $this->resource);\n $assemble = new AssembleInput($bag, $this->config, $this->getLanguageAdapter(), $input, new ArrayMap());\n\n $result = new Result();\n $workflow = new QueueWorkflow($this->config, $result);\n $workflow->add($reverseMove);\n $workflow->add($dump);\n $workflow->add($assemble);\n\n// $workflow->execute();\n //=====================================================================\n // assert that customers are in the file\n\n // TODO assertions\n }", "title": "" }, { "docid": "3e7e9866a0bcf0da26a387404c3e55ff", "score": "0.55515695", "text": "public function setUp()\n {\n \n //initialize Propel configuration\n Propel::init('C:\\Art_Request\\module\\ArtRequest\\tests\\Model\\configs\\orm-conf.php');\n\n //initialize Propel\n Propel::initialize();\n\n //get Propel connection\n $con = Propel::getConnection();\n\n //initialize database structure\n PropelSQLParser::executeFile('C:\\Art_Request\\module\\ArtRequest\\tests\\Model\\configs\\schema.sql', $con);\n\n //insert master data\n PropelSQLParser::executeFile('C:\\Art_Request\\module\\ArtRequest\\tests\\Model\\configs\\data.sql', $con);\n\n //explicitly call parent tear down method\n parent::setUp();\n \n }", "title": "" }, { "docid": "9bab6f56444f1b746d2582e5a1cd991c", "score": "0.55475724", "text": "public function testRtmRetailManagerGetAvailableBundles()\n {\n\n }", "title": "" }, { "docid": "ba7d325d455809943122d81c5bbaaa31", "score": "0.5544579", "text": "protected function setUp()\n {\n $this->fixture = new TestDTABase();\n }", "title": "" }, { "docid": "a0d3c0673c4a1c595910397b06e32032", "score": "0.55409443", "text": "public function test2() {\n //create Event\n $eventData = [\n 'name' => 'Ketab event',\n 'location' => 'City Stars , Helioplis',\n 'date' => '2017-09-06',\n 'admin_id' => 1,\n ];\n $Eventreq = new Request($eventData);\n $evt = new Event();\n $evt->InsertInDataBase($Eventreq);\n //create Stand\n $standData = [\n 'event_id' => $evt->id,\n 'company_id' => NULL,\n 'code' => 'KKKL',\n 'price' => 4444,\n ];\n $req = new Request($standData);\n $std = new Stand();\n $std->StoreInStand($req);\n //success Modify Stand\n $this->assertTrue($std->ModifyInStandCompany(2));\n $this->assertFalse($std->ModifyInStandCompany(3));\n }", "title": "" }, { "docid": "a158a68d9bfdd570cc87275eec41382c", "score": "0.553867", "text": "public function test_createTemplate() {\n\n }", "title": "" }, { "docid": "fc371dbb820377f3a57ffe19474a547f", "score": "0.553693", "text": "public function setUp(){\n // Setup User\n $this->user = new User();\n $this->user->setUsername('tuser');\n $this->user->setFirstName('Test');\n $this->user->setLastName('User');\n $this->user->setEmail('tuser@domain.com');\n $this->user->setId(99999);\n // Setup Household\n $this->household = new Household();\n // Setup Unit\n $this->unit = array();\n $this->unit['dozen'] = new Unit();\n $this->unit['dozen']->setId(9);\n $this->unit['dozen']->setName('Dozen');\n $this->unit['dozen']->setBaseEqv(12);\n $this->unit['dozen']->setBaseUnit('piece');\n $this->unit['piece'] = new Unit();\n $this->unit['piece']->setId(2);\n $this->unit['piece']->setName('Piece');\n $this->unit['piece']->setBaseEqv(1);\n $this->unit['piece']->setBaseUnit('piece');\n // Setup Quantity\n $this->qty = new Quantity(2,$this->unit['dozen']);\n // Setup Category\n $this->category = new Category();\n $this->category->setId(4);\n $this->category->setName('Grains');\n // Setup Food\n $this->food = new FoodItem();\n $this->food->setId(32423);\n $this->food->setName('Bread');\n $this->food->setStock(20);\n $this->food->setUnit($this->unit['piece']);\n $this->food->setCategory($this->category);\n // Setup Recipe and Ingredient\n $this->recipe = new Recipe('PB&J','1) Spread PB, 2) Spread Jelly, 3) Put together',1);\n $this->ingredient = new Ingredient($this->food, 2, 5, $this->unit['piece']);\n $this->recipe->addIngredient($this->ingredient);\n // Setup Meal\n $this->meal = new Meal();\n $this->meal->setId(43);\n $this->meal->setRecipe($this->recipe);\n $this->meal->setScaleFactor(4);\n // Setup GroceryItem\n $this->groceryItem = new GroceryListItem();\n $this->groceryItem->setId(34245);\n $this->groceryItem->setFoodItem($this->food);\n $this->groceryItem->setAmount(10);\n }", "title": "" }, { "docid": "bac941e73ee8a6778c285bb77398bb4f", "score": "0.5533745", "text": "public function testGetDatasetAttachements()\n {\n }", "title": "" }, { "docid": "0b0eb17adda6a6b67e79f850e266c86f", "score": "0.5517397", "text": "public function setUp()\n {\n $this->fixtures('articles');\n }", "title": "" }, { "docid": "24e67cb25ba00ea6819c9a4f03958186", "score": "0.5515762", "text": "public function testExample()\n {\n $masyarakat = Masyarakat::create([\n 'nik' => '1122334455667787',\n 'nama' => 'Kosong',\n 'password' => '1122334455667787',\n 'jk' => 'Kosong',\n 'tl' => '0001-01-01',\n 'no_hp' => 'Kosong',\n 'alamat' => 'Kosong',\n 'foto' => 'Kosong.jpg',\n 'alamat' => 'Kosong',\n ]);\n $this->assertDatabaseHas('masyarakats',[\n 'nik' => '1122334455667787',\n 'nama' => 'Kosong',\n 'password' => '1122334455667787',\n 'jk' => 'Kosong',\n 'tl' => '0001-01-01',\n 'no_hp' => 'Kosong',\n 'alamat' => 'Kosong',\n 'foto' => 'Kosong.jpg',\n 'alamat' => 'Kosong',\n ]);\n }", "title": "" }, { "docid": "1124b99f23122aee91e3ba93d303b60a", "score": "0.5512705", "text": "public function testComAdobeAemFormsndocumentsConfigAEMFormsManagerConfiguration() {\n\n }", "title": "" }, { "docid": "c369fd52e4a6ea09cec70f228de06660", "score": "0.55087054", "text": "function test_tests() {\n\n\t\t$this->assertTrue( true );\n\n\t }", "title": "" }, { "docid": "3753e2ddda4e62aebba0c3f83f7c253c", "score": "0.5501292", "text": "public function testAsset()\n {\n }", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.5499156", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.5499156", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.5499156", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.5499156", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.5499156", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.5499156", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.5499156", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.5499156", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.5499156", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.5499156", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.5499156", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.5499156", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.5499156", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.5499156", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.5499156", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.549849", "text": "protected function setUp() {}", "title": "" } ]
906fe77948b7463aa1c246bef77dddc3
Calculates total, if payment method is cash 5.00 is added as post payment fees.
[ { "docid": "90ecbc13a91be6b6675e282c2d8b42f1", "score": "0.7073668", "text": "public function calculateTotal($paymentMethod)\n {\n $this->subTotal = 95.00;\n if ('Cash' === $paymentMethod) {\n $this->cashOnDeliveryFee = self::CASH_ON_DELIVERY_FEE;\n }\n\n return $this->subTotal + $this->cashOnDeliveryFee;\n }", "title": "" } ]
[ { "docid": "bd0e27346456c0d7c96a7056b8b1eff5", "score": "0.6431865", "text": "public function getPaymentSumTotal() { \n \n $paymentSumTotal = $this->getOrderSumTotal(0);\n \n // if a paymentModifierCollObj is set: substract payment modifiers sum from order sum total, handle eventually resulting excess\n if (!is_null($this->paymentModifierCollObj)) {\n \n $paymentSumTotal = bcsub($this->getOrderSumTotal(0), $this->paymentModifierCollObj->getValue(), 4);\n \n if ($paymentSumTotal < 0) {\n $this->paymentModifierCollObj->handleValueExcess($paymentSumTotal);\n $paymentSumTotal = 0;\n }\n }\n \n // round payment sum _down_ to 2 decimal digits \n $paymentSumTotal = tx_pttools_finance::roundDownTwoDecimalPlaces((double)$paymentSumTotal);\n \n return $paymentSumTotal;\n \n }", "title": "" }, { "docid": "dfc4f6eafbec58d91b40fe4731753fe8", "score": "0.6366961", "text": "public function testFeeTotals()\n {\n $this->laracart->addFee('test', 5);\n $this->laracart->addFee('test_2', 20);\n\n $this->assertEquals('$25.00', $this->laracart->feeTotals());\n $this->assertEquals(25, $this->laracart->feeTotals(false));\n\n }", "title": "" }, { "docid": "c424d0578cb5e3d0a5fe211d6b6d3bbb", "score": "0.63452077", "text": "private function calculateTotalPaid()\n {\n $totalPaid = new Money(0, $this->getCurrency());\n\n foreach ($this->expenditureItems as $expenditureItem) {\n $totalPaid = $totalPaid->add($expenditureItem->getAmountPaid());\n }\n\n $this->totalPaid = $totalPaid->getAmount();\n }", "title": "" }, { "docid": "4cc2e4bb43c3f3693f589fb6c0a455e2", "score": "0.6319716", "text": "public function calculate_totals( $totals ) {\n\t\t\t global $woocommerce;\n\t\t\t $available_gateways = $woocommerce->payment_gateways->get_available_payment_gateways();\n\t\t\t $current_gateway = '';\n\n\t\t\t if ( ! empty( $available_gateways ) ) {\n\t\t\t if ( isset( $woocommerce->session->chosen_payment_method ) && isset( $available_gateways[ $woocommerce->session->chosen_payment_method ] ) ) {\n\t\t\t $current_gateway = $available_gateways[ $woocommerce->session->chosen_payment_method ];\n\t\t\t } elseif ( isset( $available_gateways[ get_option( 'woocommerce_default_gateway' ) ] ) ) {\n\t\t\t $current_gateway = $available_gateways[ get_option( 'woocommerce_default_gateway' ) ];\n\t\t\t } else {\n\t\t\t $current_gateway = current( $available_gateways );\n\t\t\t\n\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t\t if($current_gateway!=''){\n\t\t\t $current_gateway_id = $current_gateway -> id;\n\t\t\t $extra_charges_id = 'woocommerce_'.$current_gateway_id.'_extra_charges';\n\t\t\t $extra_charges_type = $extra_charges_id.'_type';\n\t\t\t $extra_charges = (float)get_option( $extra_charges_id);\n\t\t\t $extra_charges_type_value = get_option( $extra_charges_type);\n\t\t\t \n\t\t\t if($extra_charges){\n\t\t\t \n\t\t\t\t\t\tif($extra_charges_type_value==\"percentage\"){\n\t\t\t\t\t\t\tif($totals->tax_display_cart === 'incl'){\n\t\t\t\t\t\t\t\t$totals->fee_total = round(($totals->subtotal/100)*$extra_charges,2);\n\t\t\t\t\t\t\t}elseif($totals->tax_display_cart === 'excl'){\n\t\t\t\t\t\t\t\t$totals->fee_total = round(($totals->cart_contents_total/100)*$extra_charges);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tif($totals->tax_display_cart == 'incl'){\n\t\t\t\t\t\t\t\t$totals->fee_total = $extra_charges;\n\t\t\t\t\t\t\t}elseif($totals->tax_display_cart == 'excl'){\n\t\t\t\t\t\t\t\t$totals->fee_total = $extra_charges;\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 $this -> current_gateway_title = $current_gateway -> title;\n\t\t\t $this -> current_gateway_extra_charges = $extra_charges;\n\t\t\t $this -> current_gateway_extra_charges_type_value = $extra_charges_type_value;\n\t\t\t add_action( 'woocommerce_review_order_before_order_total', array( $this, 'add_payment_gateway_extra_charges_row'));\n\t\t\t }\n\t\t\t }\n\t\t\t return $totals;\n\t\t\t}", "title": "" }, { "docid": "36bcf164944f9523d33326a5f32eeb0e", "score": "0.62733024", "text": "public function calculatePayment()\n {\n }", "title": "" }, { "docid": "686b4d9c4f68b6cc922f4ec861d2add5", "score": "0.6230059", "text": "function webmoney_calculate_fee($amount){\n\t$total = $amount + ($amount*0.008);\n\treturn $total;\n}", "title": "" }, { "docid": "ae4fd2ea41d432b50486a52009d3715f", "score": "0.6173674", "text": "public function getTotalAmount();", "title": "" }, { "docid": "ae4fd2ea41d432b50486a52009d3715f", "score": "0.6173674", "text": "public function getTotalAmount();", "title": "" }, { "docid": "b9baea9dcf242a7cb6381fdbc47862f3", "score": "0.6165596", "text": "public function payment_fields() {\n\t\t\tglobal $woocommerce;\n\t\t\t//$total_ex_fees = $woocommerce->cart->total;\n\t\t\t$total_ex_fees = number_format( $woocommerce->cart->cart_contents_total + $woocommerce->cart->tax_total + $woocommerce->cart->shipping_tax_total + $woocommerce->cart->shipping_total - $woocommerce->cart->discount_total, 2, '.', '');\n\t\t\t$payment_currency = get_woocommerce_currency();\n\t\t\t$payment_fee = 0;\n\t\t\techo $this->instructions;\n\t\t\techo '<br>';\n\t\t\t$this->check_cookies();\n\n\n\t\t\t$i = 0;\n\t\t if ( $this->card_details ) {\n\t\t foreach ( $this->card_details as $card ) {\n\t\t\t\t\t\t$payment_min_fee = floatval(str_replace(\",\", \".\", esc_attr( $card['card_min_fee'])));\n\t\t\t\t\t\t$payment_min_fee_1 = floatval(str_replace(\",\", \".\", esc_attr( $card['card_min_fee_1'])));\n\t\t\t\t\t\t$payment_min_fee_2 = floatval(str_replace(\",\", \".\", esc_attr( $card['card_min_fee_2'])));\n\t\t\t\t\t\t$payment_min_fee_3 = floatval(str_replace(\",\", \".\", esc_attr( $card['card_min_fee_3'])));\n\t\t\t\t\t\t$payment_percent_fee = floatval(str_replace(\",\", \".\", esc_attr( $card['card_percentage_fee'] )));\n\t\t\t\t\t\t$payment_interval_fee = intval(esc_attr($card['card_interval_fee']));\n\t\t\t\t\t\t$payment_card_type = esc_attr( $card['card_code'] );\n\t\t\t\t\t\tif ($payment_interval_fee) {\n\t\t\t\t\t\t\tif ($total_ex_fees > 50 && $total_ex_fees <= 100) {\n\t\t\t\t\t\t\t\t$payment_min_fee = $payment_min_fee_1;\n\t\t\t\t\t\t\t} elseif ($total_ex_fees > 100 && $total_ex_fees <= 500) {\n\t\t\t\t\t\t\t\t$payment_min_fee = $payment_min_fee_2;\n\t\t\t\t\t\t\t} elseif ($total_ex_fees > 500) {\n\t\t\t\t\t\t\t\t$payment_min_fee = $payment_min_fee_3;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( ($total_ex_fees*$payment_percent_fee) < $payment_min_fee) {\n\t\t\t\t\t\t\t$payment_fee = $payment_min_fee;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$payment_fee = ($total_ex_fees*$payment_percent_fee);\n\t\t\t\t\t\t}\n\n\t\t echo '<div><span><input type=\"radio\" name=\"payment_card_type\" value=\"'. $payment_card_type .'\" data-minfee=\"'.$payment_min_fee.'\" data-feepercent=\"'.$payment_percent_fee.'\" data-fee=\"'.$payment_fee.'\" data-minfee_1=\"'.$payment_min_fee_1.'\" data-minfee_2=\"'.$payment_min_fee_2.'\" data-minfee_3=\"'.$payment_min_fee_3.'\"';\n\n\t\t if (($i == 0 && !isset($_COOKIE['payment_card_type'])) || $_COOKIE['payment_card_type'] == $payment_card_type) {\n\t\t\t\t\t\t\techo ' checked';\n\t\t\t\t\t\t}\n\t\t\t\t\t\techo ' /><img style=\"margin:0 6px;\" src=\"'. dirname( plugin_dir_url( __FILE__ ) ) .'/'. dirname( plugin_basename( __FILE__ ) ) .'/cards/'.str_replace(\",\", \"_\", $payment_card_type).'.png\" /> ' . esc_attr( $card['card_name'] ) . ' (+'. str_replace(\".\",\",\", str_replace(\",\",\"\",number_format($payment_fee,2))) .' '.$payment_currency.')</span></div>';\n\t\t\t\t\t\t//echo 'test: ' . $_COOKIE['payment_card_type'] . ' : ' . $_POST['payment_card_type'];\n\t\t\t $i++;\n\t\t }\n\t\t echo '<script language=\"javascript\">payment_cards();</script>';\n\t\t }\n\n\n\t\t}", "title": "" }, { "docid": "68cd5d79f711eaa193be4180a34ebb3b", "score": "0.614894", "text": "public function calculatePaymentTotal(SupplierOrderInterface $order): float;", "title": "" }, { "docid": "67036a266809413486d7bfe05f22da5e", "score": "0.6134902", "text": "public function calculerTotal()\r\n\t{\r\n\t\t$this->setTotal(($this->getQuantite())*($this->getPrix()));\r\n\t}", "title": "" }, { "docid": "e43cebd9c207a607ea2c8799c5e8d514", "score": "0.6076741", "text": "public function getTotal()\n\t{\n\t\tif (strpos($this->benefits_sale, \"%\") && strpos($this->benefits_sale, \"€\")) {\n\t\t\t// Check witch one goes first\n\t\t\tif (strpos($this->benefits_sale, \"%\") < strpos($this->benefits_sale, \"€\")) {\n\t\t\t\t// Check if it adds or subtracts\n\t\t\t\tif ($this->benefits_sale[0] != \"-\") {\n\t\t\t\t\tpreg_match('/[+](.*?)%/', $this->benefits_sale, $output_percent);\n\t\t\t\t\t$total_percent = $this->subtotal * ($output_percent[1] / 100);\n\t\t\t\t\t$benefit = $this->subtotal + $total_percent;\n\t\t\t\t\t$benefit1 = str_replace($output_percent[0], \"\", $this->benefits_sale);\n\t\t\t\t\tif ($benefit1[0] != \"-\") {\n\t\t\t\t\t\tpreg_match('/[+](.*?)€/', $benefit1, $output_currency);\n\t\t\t\t\t\t$this->benefit = $total_percent + $output_currency[1];\n\t\t\t\t\t\t$this->total = $benefit + $output_currency[1];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpreg_match('/[-](.*?)€/', $benefit1, $output_currency);\n\t\t\t\t\t\t$this->benefit = $total_percent - $output_currency[1];\n\t\t\t\t\t\t$this->total = $benefit - $output_currency[1];\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tpreg_match('/[-](.*?)%/', $this->benefits_sale, $output_percent);\n\t\t\t\t\t$total_percent = $this->subtotal * ($output_percent[1] / 100);\n\t\t\t\t\t$benefit = $this->subtotal - $total_percent;\n\t\t\t\t\t$benefit1 = str_replace($output_percent[0], \"\", $this->benefits_sale);\n\t\t\t\t\tif ($benefit1[0] != \"-\") {\n\t\t\t\t\t\tpreg_match('/[+](.*?)€/', $benefit1, $output_currency);\n\t\t\t\t\t\t$this->benefit = $total_percent + $output_currency[1];\n\t\t\t\t\t\t$this->total = $benefit + $output_currency[1];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpreg_match('/[-](.*?)€/', $benefit1, $output_currency);\n\t\t\t\t\t\t$this->benefit = $total_percent + $output_currency[1];\n\t\t\t\t\t\t$this->total = $benefit - $output_currency[1];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($this->benefits_sale[0] != \"-\") {\n\t\t\t\t\tpreg_match('/[+](.*?)€/', $this->benefits_sale, $output_currency);\n\t\t\t\t\t$total_currency = $this->subtotal + $output_currency[1];\n\t\t\t\t\t$benefit1 = str_replace($output_currency[0], \"\", $this->benefits_sale);\n\t\t\t\t\tif ($benefit1[0] != \"-\") {\n\t\t\t\t\t\tpreg_match('/[+](.*?)%/', $benefit1, $output_percent);\n\t\t\t\t\t\t$this->benefit = $total_currency * ($output_percent[1] / 100);\n\t\t\t\t\t\t$this->total = $total_currency + $this->benefit;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpreg_match('/[-](.*?)%/', $benefit1, $output_percent);\n\t\t\t\t\t\t$this->benefit = $total_currency * ($output_percent[1] / 100);\n\t\t\t\t\t\t$this->total = $total_currency - $this->benefit;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tpreg_match('/[-](.*?)€/', $this->benefits_sale, $output_currency);\n\t\t\t\t\t$total_currency = $this->subtotal - $output_currency[1];\n\t\t\t\t\t$benefit1 = str_replace($output_currency[0], \"\", $this->benefits_sale);\n\t\t\t\t\tif ($benefit1[0] != \"-\") {\n\t\t\t\t\t\tpreg_match('/[+](.*?)%/', $benefit1, $output_percent);\n\t\t\t\t\t\t$this->benefit = $total_currency * ($output_percent[1] / 100);\n\t\t\t\t\t\t$this->total = $total_currency + $this->benefit;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpreg_match('/[-](.*?)%/', $benefit1, $output_percent);\n\t\t\t\t\t\t$this->benefit = $total_currency * ($output_percent[1] / 100);\n\t\t\t\t\t\t$this->total = $total_currency - $this->benefit;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} elseif (strpos($this->benefits_sale, \"%\") && !strpos($this->benefits_sale, \"€\")) {\n\t\t\tif (!strpos($this->benefits_sale, \"-\")) {\n\t\t\t\tpreg_match('/[+](.*?)%/', $this->benefits_sale, $output_percent);\n\t\t\t\t$this->benefit = $this->subtotal * ($output_percent[1] / 100);\n\t\t\t\t$this->total = $this->subtotal + $this->benefit;\n\t\t\t} else {\n\t\t\t\tpreg_match('/[-](.*?)%/', $this->benefits_sale, $output_percent);\n\t\t\t\t$this->benefit = $this->subtotal * ($output_percent[1] / 100);\n\t\t\t\t$this->total = $this->subtotal - $this->benefit;\n\t\t\t}\n\t\t} elseif (!strpos($this->benefits_sale, \"%\") && strpos($this->benefits_sale, \"€\")) {\n\t\t\tif (!strpos($this->benefits_sale, \"-\")) {\n\t\t\t\tpreg_match('/[+](.*?)€/', $this->benefits_sale, $output_currency);\n\t\t\t\t$this->benefit = $output_currency[1] * $this->quantity;\n\t\t\t\t$this->total = $output_currency[1];\n\t\t\t} else {\n\t\t\t\tpreg_match('/[-](.*?)€/', $this->benefits_sale, $output_currency);\n\t\t\t\t$this->benefit = $output_currency[1] * $this->quantity;\n\t\t\t\t$this->total = $this->subtotal - $output_currency[1];\n\t\t\t}\n\t\t}\n\t\treturn $this->total;\n\t}", "title": "" }, { "docid": "e3c125801c8a9c6b8bc1c8e376ebb979", "score": "0.6068666", "text": "public function getTotalsForDisplay()\n {\n $fontSize = $this->getFontSize() ? $this->getFontSize() : 7;\n\n $totals = array();\n\n $displayMode = $this->getDisplayMode();\n $paymentMethod = $this->getOrder()->getPayment()->getMethod();\n $baseLabel = Mage::helper('buckaroo3extended')->getBuckarooFeeLabel(\n $this->getOrder()->getStoreId(), $paymentMethod\n );\n\n /**\n * Get the fee excl. tax.\n */\n if ($displayMode === self::DISPLAY_MODE_EXCL || $displayMode === self::DISPLAY_MODE_BOTH) {\n /**\n * Get the amount excl. tax and format it.\n */\n $amount = $this->getAmount();\n $formattedAmount = $this->getOrder()->formatPriceTxt($amount);\n if ($this->getAmountPrefix()) {\n $formattedAmount = $this->getAmountPrefix() . $formattedAmount;\n }\n\n /**\n * Determine the label.\n */\n $label = $baseLabel;\n if ($displayMode === self::DISPLAY_MODE_BOTH) {\n $label .= ' (' . $this->getTaxLabel(false) . ')';\n }\n\n $label .= ':';\n\n /**\n * Add the total amount.\n */\n $totals[] = array(\n 'amount' => $formattedAmount,\n 'label' => $label,\n 'font_size' => $fontSize\n );\n }\n\n /**\n * Get the fee incl. tax.\n */\n if ($displayMode === self::DISPLAY_MODE_INCL || $displayMode === self::DISPLAY_MODE_BOTH) {\n /**\n * Get the amount incl. tax and format it.\n */\n $amount = $this->getAmount() + $this->getSource()->getBuckarooFeeTax();\n $formattedAmount = $this->getOrder()->formatPriceTxt($amount);\n if ($this->getAmountPrefix()) {\n $formattedAmount = $this->getAmountPrefix() . $formattedAmount;\n }\n\n /**\n * Determine the label.\n */\n $label = $baseLabel;\n if ($displayMode === self::DISPLAY_MODE_BOTH) {\n $label .= ' (' . $this->getTaxLabel(true) . ')';\n }\n\n $label .= ':';\n\n /**\n * Add the total amount.\n */\n $totals[] = array(\n 'amount' => $formattedAmount,\n 'label' => $label,\n 'font_size' => $fontSize\n );\n }\n\n return $totals;\n }", "title": "" }, { "docid": "da4fc2b2c87ef1fc8433a179891afe33", "score": "0.60629857", "text": "function test_get_total_basic(){\n\n\t\t$order = new APP_Draft_Order();\n\n\t\t// By default, order's totals should be 0\n\t\t$this->assertEquals( 0, $order->get_total() );\n\n\t\t// Total should reflect added items prices\n\t\t$order->add_item( 'payment-test', 5, $order->get_id() );\n\t\t$this->assertCount( 1, $order->get_items() );\n\t\t$this->assertEquals( 5, $order->get_total() );\n\n\t\t// Adding another item should increase the price\n\t\t$order->add_item( 'payment-test', 5, $order->get_id() );\n\t\t$this->assertCount( 2, $order->get_items() );\n\t\t$this->assertEquals( 10, $order->get_total() );\n\n\t\t// Adding another item type should increase the price\n\t\t$order->add_item( 'payment-test1', 5, $order->get_id() );\n\t\t$this->assertCount( 3, $order->get_items() );\n\t\t$this->assertEquals( 15, $order->get_total() );\n\n\t\t// Adding a float value as a price should correctly calculate the total with cents\n\t\t$order->add_item( 'payment-test1', 5.99, $order->get_id() );\n\t\t$this->assertCount( 4, $order->get_items() );\n\t\t$this->assertEquals( 20.99, $order->get_total() );\n\n\t}", "title": "" }, { "docid": "765ec6052da285f04831e45b7438ff05", "score": "0.6039465", "text": "private function calculateTotalPrice()\n {\n $totalPrice = 0;\n $totalDiscount = 0;\n $cartItems = $this->cart->getCartItems();\n /** @var CartItem $item */\n foreach ($cartItems as $item) {\n $item->calculatePrice();\n $totalPrice += $item->getOriginalPrice();\n $totalDiscount += $item->getDiscountPrice();\n }\n $this->cart->setOriginalTotalPrice($totalPrice);\n $this->cart->setTotalDiscount($totalDiscount);\n $this->cart->setActualTotalPrice($this->cart->getOriginalTotalPrice() - $totalDiscount);\n }", "title": "" }, { "docid": "3fce5b218355cdbce8717bd93a83f7ba", "score": "0.6025406", "text": "function get_trans_total() {\n\t\t\n\t\t$total = $this->get_items_total() + $this->freight_cost;\n\n\t\t$dec = user_price_dec();\n\t\tif (!$this->tax_included) {\n\t\t\t$total += $this->get_shipping_tax();\n\t\t\t$taxes = $this->get_taxes();\n\t\t\tforeach($taxes as $tax)\n\t\t\t\t$total += round($tax['Value'], $dec);\n\t\t}\n\n\t\treturn $total;\n\t}", "title": "" }, { "docid": "250e8e111e25fe7b2311052548e80add", "score": "0.60123014", "text": "public function total_amount()\n\t{\n\t\t$get_amount = $this->db->get('bill_pay_refund');\n\t\tif($get_amount -> num_rows()>0)\n\t\t{\n\t\t\t$sum = 0;\n\t\t\tforeach($get_amount->result() as $a)\n\t\t\t{\n\t\t\t\t$amount = $a->amount;\n\t\t\t\t$sum = $sum + $amount;\n\t\t\t}\n\t\t\treturn $sum;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "6e4e8cb9edce0ed36214076ad08395d2", "score": "0.5995978", "text": "function dokan_calculate_totals( $total ) {\n $total_discount_amount_for_lot = dokan_discount_for_lot_quantity();\n $total_discount_amount_for_min_order = dokan_discount_for_minimum_order();\n\n return $total - $total_discount_amount_for_lot - $total_discount_amount_for_min_order;\n}", "title": "" }, { "docid": "cd0c97e58eda4a33c01aba320dfae541", "score": "0.5967417", "text": "function calculate_total($transaction,$shipping_method=FALSE,$discount_code=FALSE) { \r\n $this->SC->load_library(array(\r\n 'Shipping',\r\n 'Discounts',\r\n )); \r\n \r\n $cart = $this->explode_cart($transaction->items); \r\n \r\n $messages = array();\r\n \r\n if ($discount_code) {\r\n list($messages[],$cart) = $this->SC->Discounts->run_item_discount($discount_code,$cart);\r\n }\r\n \r\n //Calculate shipping\r\n $shipping = ($shipping_method) ? 0 : FALSE;\r\n \r\n $shipping_cart = $this->SC->Cart->explode_cart($cart);\r\n\r\n $shipping_required = $this->shipping_required($cart);\r\n if ($discount_code) {\r\n $pretty_discount = $this->SC->Discounts->get_discount($discount_code);\r\n if ($pretty_discount['single'] && $this->SC->Discounts->modifier_isset($pretty_discount,'free_shipping')) {\r\n foreach ($shipping_cart as $line => $item) {\r\n if ($item['id'] == $pretty_discount['item']) {\r\n unset($shipping_cart[$line]);\r\n }\r\n } \r\n }\r\n } \r\n\r\n if (!$this->SC->Shipping->shipping_enabled && $shipping_required) {\r\n die ('<span style=\"color:red; background:white\"> Items require shipping, however the store owner \r\n has not enabled it. The they will be notified</span>');\r\n \r\n $this->SC->Messaging->message_store('A customer has attempted to purchase an item requiring shipping, \r\n but you have no shipping methods available! <a href=\"'.sc_cp('Settings/shipping').'\" title=\"Control \r\n Panel\">Remedy this by navigating to your control panel settings</a> and enabling shipping.',\r\n 'URGENT MESSAGE FROM YOUR eSTORE!');\r\n }\r\n \r\n if ($shipping_method && $this->SC->Shipping->shipping_enabled && $shipping_required) { \r\n list($ship_service,$ship_method) = explode('-',$shipping_method);\r\n list($ship_status,$ship_foo) = $this->SC->Shipping->Drivers->$ship_service->get_rate_from_cart(\r\n $this->SC->Config->get_setting('storeZipcode'),\r\n $transaction->ship_postalcode,\r\n $transaction->ship_country,\r\n $ship_method,\r\n $shipping_cart\r\n );\r\n if ($ship_status) {\r\n $shipping = $ship_foo; \r\n } else {\r\n $shipping = FALSE;\r\n $messages[] = $ship_foo;\r\n }\r\n }\r\n \r\n if ($discount_code && !$this->SC->Discounts->is_single($discount_code) && $this->SC->Discounts->modifier_isset($discount_code,'free_shipping') || empty($shipping_cart)) {\r\n //Check if they have free shipping\r\n $shipping = 0;\r\n }\r\n \r\n //Calculate tax\r\n $billable_states = $this->SC->Config->get_setting('taxstates');\r\n \r\n $tax = 0;\r\n \r\n if (strpos($billable_states,'rgx:') === 0) {\r\n $taxes = explode(',',substr($billable_states,4));\r\n foreach ($taxes as $k => $tax) {\r\n list($regex,$rate) = explode('|',$tax); \r\n echo $regex;\r\n if (preg_match($regex,$transaction->bill_postalcode)) {\r\n $tax = $this->calculate_tax($cart,$rate); \r\n break;\r\n } \r\n }\r\n } else {\r\n $billable_states = explode(',',$billable_states); \r\n if (array_search(strtolower($transaction->bill_state),array_to_lower($billable_states))!==FALSE) {\r\n $tax = $this->calculate_tax($cart); \r\n } \r\n }\r\n \r\n //Calculate total\r\n\r\n $subtotal = $this->subtotal($cart); \r\n\r\n $total_discount = 0;\r\n if (isset($_POST['discount'])) {\r\n $total_discount = $this->SC->Discounts->run_total_discount($_POST['discount'],$subtotal);\r\n } \r\n \r\n $subtotal -= $total_discount;\r\n \r\n return array(\r\n 'subtotal' => $subtotal,\r\n 'shipping' => $shipping, \r\n 'taxrate' => $tax,\r\n 'items' => $cart,\r\n 'discount' => $total_discount,\r\n 'total' => $subtotal + $shipping + $tax,\r\n 'messages' => $messages\r\n ); \r\n }", "title": "" }, { "docid": "bbf982e0537d45d97be12526ff92f22c", "score": "0.59369224", "text": "public function paymentAmount() {\n\n\t\t$payment_amount = 0.00;\n\t\tforeach($this->payments() as $payment) {\n\t\t\t$payment_amount += $payment->amount;\n\t\t}\n\n\t\treturn $payment_amount;\n\t}", "title": "" }, { "docid": "1bee26e165d5aa7b8717444785800149", "score": "0.59211856", "text": "public function handler_ajax_calc_fee_pay_order()\n\t{\n\t\tcheck_ajax_referer( self::AJAX_NONCE, self::AJAX_NONCE );\n\t\t\n\t\t\t// response output\n\t\theader( \"Content-Type: application/json\" );\n\t\t$response = array( self::AJAX_NONCE => wp_create_nonce( self::AJAX_NONCE ) );\n\t\t\n\t\t$response ['alert'] = __( 'An error occured in calculation of additional fees for your selected payment gateway. Kindly contact us to recheck your invoice or try to change the payment gateway. ', self::TEXT_DOMAIN );\n\t\t$response ['recalc'] = true;\n\t\t\n\t\t$error_div = '<div id=\"addfeeerror\" style=\"color: red; font-size: 3em; line-height: 1.2;\">';\n\t\t\n\t\t$order_id = isset( $_REQUEST['add_fee_order'] ) ? absint( $_REQUEST['add_fee_order'] ) : 0;\n\t\t$pay_for_order = $_REQUEST[ 'add_fee_pay' ];\n\t\t$order_key = $_REQUEST[ 'add_fee_key' ];\n\t\t$add_fee_new_paymethod = $_REQUEST[ 'add_fee_paymethod' ];\t\t\n\t\t\n\t\t\t// Check for handle payment\n\t\tif ( ! ( isset( $_REQUEST['add_fee_pay'] ) && isset( $_REQUEST['add_fee_key'] ) && isset ( $_REQUEST[ 'add_fee_paymethod' ] ) && $order_id ) ) \n\t\t{\n\t\t\t$response ['success'] = false;\n\t\t\t$response ['message'] = $error_div. '<div class=\"woocommerce-error\">' . __( 'Invalid pay order parameters. ', self::TEXT_DOMAIN ) . ' <a href=\"' . get_permalink( wc_get_page_id( 'myaccount' ) ) . '\" class=\"wc-forward\">' . __( 'My Account', self::TEXT_DOMAIN ) . '</a>' . '</div>' . '</div>';\n\t\t\techo json_encode( $response );\n\t\t\texit;\n\t\t}\n\t\t\n\t\t//\tskip, if all disabled globally\n\t\tif( ! $this->options[self::OPT_ENABLE_ALL] )\n\t\t{\n\t\t\t$response ['success'] = true;\n\t\t\t$response ['recalc'] = false;\n\t\t\techo json_encode( $response );\n\t\t\texit;\n\t\t}\n\t\t\n\t\t$pm = self::get_post_meta_order_default( $order_id );\n\t\tif( $pm[WC_Add_Fees::OPT_ENABLE_RECALC] != 'yes' )\n\t\t{\n\t\t\t$response ['success'] = true;\n\t\t\t$response ['recalc'] = false;\n\t\t\techo json_encode( $response );\n\t\t\texit;\n\t\t}\n\t\t\n\t\t$order = new WC_Order_Add_Fees( $order_id );\n\t\tif( ! $this->request_data_loaded)\t\n\t\t{\n\t\t\t$this->load_request_data( $add_fee_new_paymethod );\n\t\t}\n\t\t\n\t\tif( ! isset( $this->gateways[$this->payment_gateway_key] ) )\n\t\t{\n\t\t\t$response ['success'] = false;\n\t\t\t$response ['message'] = $error_div. '<div class=\"woocommerce-error\">' . __( 'Invalid payment gateway selected - it is no longer available. ', self::TEXT_DOMAIN ) . ' <a href=\"' . get_permalink( wc_get_page_id( 'myaccount' ) ) . '\" class=\"wc-forward\">' . __( 'My Account', self::TEXT_DOMAIN ) . '</a>' . '</div>' . '</div>';\n\t\t\techo json_encode( $response );\n\t\t\texit;\n\t\t}\n\t\t\t\n\t\t// Pay for existing order\t\t\n\t\t\n\t\t/**\n\t\t * Problem with WC versions using wc- in status > 2.2.0, fixed later ($order->post_status is stored with wc-)\n\t\t * To provide backward comp check for this situation\n\t\t */\n//\t\tif(version_compare( WC()->version, '2.2.0', '<' ) )\n//\t\t{\n//\t\t\t$valid_order_statuses = apply_filters( 'woocommerce_valid_order_statuses_for_payment', array( 'pending', 'failed' ), $order );\n//\t\t}\n//\t\telse\n//\t\t{\n//\t\t\t$valid_order_statuses = apply_filters( 'woocommerce_valid_order_statuses_for_payment', array( 'wc-pending', 'wc-failed' ), $order );\n//\t\t}\n\t\t\n\t\t\t//\tcheck, if we get returned wc-\n\t\t$temp_stat = apply_filters( 'woocommerce_valid_order_statuses_for_payment', array(), $order );\n\t\t$false_wc = false;\n\t\tif( ! empty( $temp_stat) )\n\t\t{\n\t\t\t$false_wc = ( 'wc-' === substr( $temp_stat[0], 0, 3 ) );\n\t\t}\n\t\t\n\t\t$allowed = $false_wc ? array( 'wc-pending', 'wc-failed' ) : array( 'pending', 'failed' );\n\t\t$valid_order_statuses = apply_filters( 'woocommerce_valid_order_statuses_for_payment', $allowed, $order );\n\t\t\n\t\tif( $false_wc )\n\t\t{\n\t\t\tforeach( $valid_order_statuses as $key => $value )\n\t\t\t{\n\t\t\t\t$valid_order_statuses[ $key ] = substr( $value, 3 );\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ( ! current_user_can( 'pay_for_order', $order_id ) ) \n\t\t{\n\t\t\t$response ['success'] = false;\n\t\t\t$response ['message'] = $error_div. '<div class=\"woocommerce-error\">' . __( 'Invalid order. ', self::TEXT_DOMAIN ) . ' <a href=\"' . get_permalink( wc_get_page_id( 'myaccount' ) ) . '\" class=\"wc-forward\">' . __( 'My Account', self::TEXT_DOMAIN ) . '</a>' . '</div>' . '</div>';\n\t\t\techo json_encode( $response );\n\t\t\texit;\n\t\t}\n\t\t\n\t\t//\toutput order using WC default template checkout/form-pay.php\n\t\tob_start();\n\t\t$template_loaded = true;\n\t\t\n\t\tif ( $order->id == $order_id ) \n\t\t{\n\t\t\t/**\n\t\t\t * see above wc-\n\t\t\t */\n\t\t\tif( ! method_exists( $order, 'get_status' ) )\n\t\t\t{\n\t\t\t\t$order_status = ( version_compare( WC()->version, '2.2.0', '<' ) ) ? $order->status : $order->post_status;\n\t\t\t\tif( 'wc-' === substr( $order_status, 0, 3 ) )\n\t\t\t\t{\n\t\t\t\t\t$order_status = substr( $order_status, 3 );\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$order_status = $order->get_status();\n\t\t\t}\n\t\t\t\n\t\t\tif ( in_array( $order_status, $valid_order_statuses ) ) \n\t\t\t{\n\t\t\t\t// Set customer location to order location\n\t\t\t\tif ( $order->billing_country )\n\t\t\t\t{\n\t\t\t\t\tWC()->customer->set_country( $order->billing_country );\n\t\t\t\t}\n\t\t\t\tif ( $order->billing_state )\n\t\t\t\t{\n\t\t\t\t\tWC()->customer->set_state( $order->billing_state );\n\t\t\t\t}\n\t\t\t\tif ( $order->billing_postcode )\n\t\t\t\t{\n\t\t\t\t\tWC()->customer->set_postcode( $order->billing_postcode );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * For compatibility with EU-VAT-Number plugin we have to check VAT Number from order\n\t\t\t\t * \n\t\t\t\t * We do not check for valididity of EU-VAT-Number with post meta values\n\t\t\t\t * see class WC_Customer_Add_Fees\n\t\t\t\t */\n\t\t\t\t$vat_number = get_post_meta( $order->id , '_vat_number', true );\n\t\t\t\tWC()->customer->is_vat_exempt = ( ! empty( $vat_number ) ) ? true : false;\n\t\t\t\t$order->is_vat_exempt = ( ! empty( $vat_number ) ) ? 'yes' : 'no';\n\t\t\t\n\t\t\t\t//\tmaipulate order recalculating fee based on new payment gateway\n\t\t\t\t$this->calculate_gateway_fees_order( $order_id, $order );\n\t\t\t\t\n\t\t\t\t$available_gateways = WC()->payment_gateways->get_available_payment_gateways();\n\t\t\t\tif ( sizeof( $available_gateways ) ) {\n\t\t\t\t\tcurrent( $available_gateways )->set_current();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\twc_get_template( 'checkout/form-pay.php', array(\n\t\t\t\t\t\t\t\t\t\t'order' => $order,\n\t\t\t\t\t\t\t\t\t\t'available_gateways' => $available_gateways,\n\t\t\t\t\t\t\t\t\t\t'order_button_text' => apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay for order', self::TEXT_DOMAIN ) )\n\t\t\t\t\t\t\t) );\n\t\t\t} \n\t\t\telse \n\t\t\t{\n\t\t\t\t$template_loaded = false;\n\t\t\t\tif(version_compare(WC()->version, '2.2.0', '<' ) )\n\t\t\t\t{\t\t\n\t\t\t\t\t$status = get_term_by( 'slug', $order->post_status, 'shop_order_status' );\n\t\t\t\t\t$status = $status->name;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$status_defined = wc_get_order_statuses();\n\t\t\t\t\t$status = isset( $status_defined[$order->post_status] ) ? $status_defined[$order->post_status] : $order->post_status;\n\t\t\t\t}\n\t\t\t\twc_add_notice( sprintf( __( 'This order&rsquo;s status is &ldquo;%s&rdquo;&mdash;it cannot be paid for. Please contact us if you need assistance. ', self::TEXT_DOMAIN ), $status ), 'error' );\n\t\t\t}\n\t\t} \n\t\telse \n\t\t{\n\t\t\t$template_loaded = false;\n\t\t\twc_add_notice( __( 'Sorry, this order is invalid and cannot be paid for. ', self::TEXT_DOMAIN ), 'error' );\n\t\t}\n\t\t\n\t\tif( ! $template_loaded )\n\t\t{\n\t\t\twc_print_notices();\n\t\t}\n\t\t\n\t\t$buffer = ob_get_contents();\n\t\tob_end_clean();\n\t\t\n\t\t//\tremove parts of template not needed\n\t\tif( $template_loaded )\n\t\t{\n\t\t\t$buffer = $this->extract_order_template( $buffer );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$buffer = $error_div . $buffer . '</div>';\n\t\t}\n\t\t\n\t\t$response ['success'] = $template_loaded;\n\t\t$response ['message'] = $buffer;\n\t\t\n\t\techo json_encode( $response );\n\t\texit;\n\t}", "title": "" }, { "docid": "d82e435964b60e4e57975389170b93bd", "score": "0.59161824", "text": "public function aggregatePayment($fee_id){\n $fee = Fee::findorfail($fee_id);\n $total_paid = 0;\n foreach($fee->payments()->where('student_id',$this->id)->get() as $payment)\n {\n $total_paid += $payment->ammount;\n }\n return $total_paid;\n }", "title": "" }, { "docid": "b18b35062761408001ae373661cffaee", "score": "0.5879765", "text": "function getCashPaidTotal()\n {\n\t\t $cashTrans = new RowManager_CashTransactionManager();\n\t\t $cashTrans->setRegID($this->reg_id);\n\t\t $cashTrans->setReceived(true);\n\t\t $cashTransTotal = new MultiTableManager();\n\t\t $cashTransTotal->addRowManager($cashTrans);\t\t \n\t\t $cashTransTotal->setFunctionCall('SUM','cashtransaction_amtPaid');\n\t\t $cashTransTotal->setGroupBy('reg_id');\n\t\t \n\t $cashTransList = $cashTransTotal->getListIterator(); \n $cashTransArray = $cashTransList->getDataList();\t\t \n\t\n $cash_total = 0;\n reset($cashTransArray);\n \tforeach(array_keys($cashTransArray) as $k)\n\t\t\t{\n\t\t\t\t$cash_trans = current($cashTransArray);\t\n\t\t\t\t$cash_total = $cash_trans['SUM(cashtransaction_amtPaid)'];\t\t\n\t\t\t\t\n\t\t\t\tnext($cashTransArray);\n\n\t\t\t}\n\t\t\t\n\t\t\treturn $cash_total;\n\t\t}", "title": "" }, { "docid": "9a15e1df56a8feb91ef8f03be92a1ca4", "score": "0.58750534", "text": "function feesAddedAmount($amount, $gateway) \r\n {\r\n $gateway_fees = array(\r\n 'paypal' => '2.9'\r\n );\r\n if (empty($gateway_fees[$gateway])) {\r\n trigger_error('*** dev1framework: Invalid payment gateway name passed', E_USER_ERROR);\r\n }\r\n return (((((100*$gateway_fees[$gateway]) /(100-$gateway_fees[$gateway])) /100) *$amount) +$amount);\r\n }", "title": "" }, { "docid": "21e82ed71aeb869a00a5e452fa54e588", "score": "0.5874518", "text": "public function testTotalAmount()\n {\n $cart = new ApplePayCart();\n $cart->addItem('', '', 3, 10);\n $cart->addShipping('My Shipping 1', 3.49);\n\n $this->assertEquals(33.49, $cart->getAmount());\n }", "title": "" }, { "docid": "fddf06246ed1d9262bbb8dff980f9c2d", "score": "0.58697855", "text": "protected function calculatetotal(){\n\t\t$total = $this->UnitPrice() * $this->Quantity;\n\t\t$this->extend('updateTotal',$total);\n\t\t$this->CalculatedTotal = $total;\n\t\treturn $total;\n\t}", "title": "" }, { "docid": "7b1d4fc3e1906e742673073e6e893b63", "score": "0.58552325", "text": "public function userCash($type = 'in'){\n $query = '\n SELECT\n ID_PAYMENT,\n PaymentProvider,\n PaymentText\n FROM\n fi_payments\n WHERE\n PaymentType = \"'.$type.'\"\n AND\n PaymentPrice = 0\n ';\n $NoPaymentValue = doo::db()->fetchAll($query);\n \n foreach($NoPaymentValue as $k => $v)\n {\n $PaymentArray = unserialize($v['PaymentText']);\n if($v['PaymentProvider'] == 'paypal')\n {\n if(isset($PaymentArray['amount']))\n {\n $amount = $PaymentArray['amount'];\n }\n \n }\n elseif (isset($PaymentArray['amount']))\n {\n $amount = $PaymentArray['amount'];\n }\n elseif(isset($PaymentArray['out']))\n {\n $amount = $PaymentArray['out'];\n }\n else\n {\n if(isset($PaymentArray['out'])){\n $amount = $PaymentArray['out'];\n }\n }\n \n if(isset($amount))\n {\n doo::db()->query('UPDATE fi_payments SET PaymentPrice='.$amount.' WHERE ID_PAYMENT='.$v['ID_PAYMENT']);\n }\n }\n \n $query = '\n SELECT\n SUM(PaymentPrice) AS sum\n FROM\n fi_payments\n WHERE\n PaymentType = \"'.$type.'\"\n ';\n \n $return = doo::db()->fetchRow($query);\n return $return['sum'];\n }", "title": "" }, { "docid": "e4da19808b5c90b961e62f01a44ed29b", "score": "0.5840852", "text": "public function getCalculateTotal()\n {\n $this->updateFreight();\n\n $totals = $this->getProductsTotal();\n\n $this->setvlsubtotal($totals['vlprice']);\n $this->setvltotal($totals['vlprice'] + $this->getvlfreight());\n }", "title": "" }, { "docid": "5e0da0cfb4cb33efd173173567b90ee2", "score": "0.5824075", "text": "public function handler_wc_calculate_totals( $total, WC_Cart $obj_wc_cart )\n\t{\n\t\t//\tignore cart\n\t\tif ( ! is_checkout() && ! defined( 'WOOCOMMERCE_CHECKOUT' ) )\n\t\t{\n\t\t\treturn $total;\n\t\t}\n\n\t\t//\tskip, if all disabled\n\t\tif( ! $this->options[self::OPT_ENABLE_ALL] )\n\t\t{\n\t\t\treturn $total;\n\t\t}\n\n\t\tif( ! $this->request_data_loaded)\t\n\t\t{\n\t\t\t$this->load_request_data();\n\t\t}\n\t\t\n\t\t\t\t//\tallows to skip adding total fees by third party\n\t\tif( ! apply_filters( 'wc_add_fees_cart_before_add_total_fee', true, $obj_wc_cart ))\n\t\t{\n\t\t\treturn $total;\n\t\t}\n\t\t\n\t\t// Grand Total as calculated by WC - other plugins may change total value at this point:\n\t\t// \n\t\t//\tDiscounted product prices, discounted tax, shipping cost + tax, and any discounts to be added after tax (e.g. store credit)\n\t\t\n\t\t$cart_discount_total = version_compare( WC()->version, '2.3', '>=') ? 0 : $obj_wc_cart->discount_total;\n\t\t$total_incl_tax = max( 0, round( $obj_wc_cart->cart_contents_total + $obj_wc_cart->tax_total + $obj_wc_cart->shipping_tax_total + $obj_wc_cart->shipping_total - $cart_discount_total + $obj_wc_cart->fee_total, $obj_wc_cart->dp ) );\n\n\t\t//\ttax_total includes tax of fees but not shipping tax, therefore add it\n\t\t$total_tax = round( $obj_wc_cart->tax_total + $obj_wc_cart->shipping_tax_total, $obj_wc_cart->dp );\n\t\t$total_excl_tax = round( $total_incl_tax - $total_tax, $obj_wc_cart->dp );\n\t\t\n\t\t$cart_tax = ( version_compare ( WC()->version, '2.3', '>=' ) ) ? new WC_Tax() : $obj_wc_cart->tax;\n\t\t$fee_total = $this->calculate_gateway_fee_total( $cart_tax, $obj_wc_cart->prices_include_tax, $total_excl_tax, $total_incl_tax );\n\t\tif( ! isset( $fee_total ) )\n\t\t{\n\t\t\treturn $total;\n\t\t}\n\t\t\n\t\t$this->add_fee_to_cart( $fee_total, $obj_wc_cart );\n\t\t\n\t\t$obj_wc_cart->fee_total += $fee_total->amount_no_tax;\n\t\t$fee_sum_tax = 0.0;\n\t\t\n\t\tif( $fee_total->taxable )\n\t\t{\n\t\t\tif( isset( $fee_total->tax_amount ) )\n\t\t\t{\n\t\t\t\t$obj_wc_cart->tax_total += $fee_total->tax_amount;\n\t\t\t\t$fee_sum_tax += $fee_total->tax_amount;\n\t\t\t}\n\n\t\t\t$taxes = isset( $fee_total->taxes) ? $fee_total->taxes : array();\n\n\t\t\t\t\t// Tax rows - merge the totals we just got\n\t\t\tforeach ( array_keys( $obj_wc_cart->taxes + $taxes ) as $key ) \n\t\t\t{\n\t\t\t\t$obj_wc_cart->taxes[ $key ] = ( isset( $taxes[ $key ] ) ? $taxes[ $key ] : 0 ) + ( isset( $obj_wc_cart->taxes[ $key ] ) ? $obj_wc_cart->taxes[ $key ] : 0 );\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\t$total += $fee_total->amount_no_tax + $fee_sum_tax;\n\t\t\n\t\treturn $total;\t\n\t}", "title": "" }, { "docid": "0399342217fde1e101c8dd3fd4be8a4c", "score": "0.58132917", "text": "public function amountTotal(){\n\t\t$callback = function($carry,$value){\n\t\t\treturn 0;//$carry += $value->cost();\n\t\t};\n\n\t\tif (count($this->itemList) > 0){\n\t\t\treturn array_reduce($this->itemList, $callback, 0);\n\t\t}else{\n\t\t\treturn \"0\";\n\t\t}\n\t}", "title": "" }, { "docid": "f5f43d4c801a00eb91b48881526aab33", "score": "0.5800393", "text": "public function getInvoiceDeliveryUahSum(): float\n {\n return $this->invoice->delivery_sum * $this->invoice->rate;\n }", "title": "" }, { "docid": "67659e9e94c9b9e3e0ad44268a73923f", "score": "0.57982314", "text": "public function testTotal()\n {\n $prixList = ['enfant' => 0, 'junior' => 8, 'adulte' => 16, 'senior' => 12];\n\n $total = 0;\n $age = new P4Forms($prixList);\n\n $total = $total + $age->prix(60) + $age->prix(14) + $age->prix(2) + $age->prix(6);\n\n $this->assertEquals(36, $total);\n }", "title": "" }, { "docid": "42e127ec3082f17e6f5d6032b27bca83", "score": "0.5792163", "text": "public function calculate()\n {\n if (!is_a($this->paymentList, 'oePayPalOrderPaymentList')) {\n return;\n }\n foreach (array_keys($this->paymentMatch) as $target) {\n $this->$target = 0.0;\n }\n foreach($this->paymentList as $payment) {\n $status = $payment->getStatus();\n $action = $payment->getAction();\n $amount = $payment->getAmount();\n\n foreach ($this->paymentMatch as $target => $check) {\n if ( in_array( $action, $check['action']) && in_array($status, $check['status']) ) {\n $this->$target += $amount;\n }\n }\n }\n }", "title": "" }, { "docid": "fd63295ebe0faad35d3b9189cadf21cc", "score": "0.57871747", "text": "public function getTotal(): float\n {\n return $this->getItemsSubtotal() + $this->getAddOnsSubtotal() - $this->getTotalDiscount();\n }", "title": "" }, { "docid": "b424ecaf470eb171113e06acdc93b7c1", "score": "0.5772362", "text": "public function calcularTotal() {\n $this->total = costos::getCosto($this->getHorario());\n //(($this->getHorario() == 'matutino' || $this->getHorario() == 'vespertino') ? costos::getCosto($this->getHorario()) : costos::getCosto('doble_horario'));\n $this->_applyDiscount()->_applyActividades()->_applyImpuesto()->_applyBilletera()->_applyMatricula();\n return number_format($this->total, 2, '.', '');\n }", "title": "" }, { "docid": "8efe2037b68e9a8670ad5048def188a5", "score": "0.57693034", "text": "public function calculateTotalAmount(): float\n {\n $amount = 0;\n $workHoursAmountByTiers = $this->calculateTimeIntervals();\n\n $amount += $workHoursAmountByTiers['firstTierAmount'] * $this->first_tier_hourly_rate / 60;\n $amount += $workHoursAmountByTiers['secondTierAmount'] * $this->second_tier_hourly_rate / 60;\n $amount += $workHoursAmountByTiers['thirdTierAmount'] * $this->third_tier_hourly_rate / 60;\n $amount += $workHoursAmountByTiers['fourthTierAmount'] * $this->fourth_tier_hourly_rate / 60;\n\n return $amount;\n }", "title": "" }, { "docid": "cf742515a59872ff5f62912416f34242", "score": "0.57682896", "text": "function fee($key,$amount) : float\n {\n $fee = \\App\\Models\\Fee::where('key',$key)->first();\n if(!$fee) {\n return 0;\n }\n $fixed = $fee->fixed;\n $per = (float) ($fee->percentage/100) * $amount;\n return ($amount+$fixed+$per);\n }", "title": "" }, { "docid": "8e5d8d981968efc71a7cc4f714ce2474", "score": "0.5764794", "text": "private function calculateTotalOutgoing()\n {\n $totalOutgoing = new Money(0, $this->getCurrency());\n\n foreach ($this->expenditureItems as $expenditureItem) {\n $totalOutgoing = $totalOutgoing->add($expenditureItem->getPrice());\n }\n\n $this->totalOutgoing = $totalOutgoing->getAmount();\n }", "title": "" }, { "docid": "79699b14ffbacc9a2330958205261bc6", "score": "0.5762614", "text": "public function getTotalPaid();", "title": "" }, { "docid": "49731c18dbbdd4089a3911ad659a72ec", "score": "0.5758989", "text": "public function getBaseTotalPaid();", "title": "" }, { "docid": "5acfcf3c95a630b0e69546492c36d7ec", "score": "0.57437515", "text": "function calculate_total($plan_id = null) {\n\t$total = 0;\n\t$os_tmpl = $_SESSION['shopping_cart']['os_tmpl'];\n\t$period = $_SESSION['shopping_cart']['period'];\n\t$platform = $_SESSION['shopping_cart']['platform'];\n\t$is_trial = $period === 'trial' ? 1 : 0;\n\n\tif($_SESSION['plans'][$plan_id]) {\n\t\t//Package\n\t\tif($is_trial) {\n\t\t\t$period = $_SESSION['plans'][$plan_id]['trial_period'];\n\t\t}\n\t\tif(!$is_trial) {\n\t\t\tforeach($_SESSION['plans'][$plan_id]['fee_list'] as $fee) {\n\t\t\t\tif($fee['period'] == $period) {\n\t\t\t\t\t$total += $fee['setup_fee']['price'] + $fee['subscr_fee']['price'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Applications\n\t\t$panel = $_SESSION['shopping_cart'][$plan_id]['addons']['panels'][$os_tmpl] ? \n\t\t\t$_SESSION['shopping_cart'][$plan_id]['addons']['panels'][$os_tmpl] :\n\t\t\tarray( 'id' => 'none' );\n\t\tif($panel['id'] != 'none') {\n\t\t\t## Panel fee\n\t\t\t$total += $panel['setup_fee']['price'] + $panel['subscr_fee']['price'] * ($period/BILL_PERIOD);\n\t\t\t## Panel addons fee\n\t\t\tif(is_array($_SESSION['shopping_cart'][$plan_id]['addons']['app_list'][$os_tmpl][$panel['id']])) {\n\t\t\t\tforeach($_SESSION['shopping_cart'][$plan_id]['addons']['app_list'][$os_tmpl][$panel['id']] AS $application) {\n\t\t\t\t\tif($application['is_included']) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t$total += $application['setup_fee']['price'] + $application['subscr_fee']['price'] * ($period/BILL_PERIOD);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t## Standalone apps fee\n\t\tif(is_array($_SESSION['shopping_cart'][$plan_id]['addons']['app_list'][$os_tmpl]['none'])) {\n\t\t\tforeach($_SESSION['shopping_cart'][$plan_id]['addons']['app_list'][$os_tmpl]['none'] AS $application) {\n\t\t\t\tif($application['is_included']) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$total += $application['setup_fee']['price'] + $application['subscr_fee']['price'] * ($period/BILL_PERIOD);\n\t\t\t}\n\t\t}\n\n\t\t//Custom Attributes\n\t\tif(is_array($_SESSION['shopping_cart'][$plan_id]['addons']['custom_attributes'])) {\n\t\t\tforeach($_SESSION['shopping_cart'][$plan_id]['addons']['custom_attributes'] as $attribute) {\n\t\t\t\tif($attribute['is_included']) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$total += $attribute['setup_fee']['price'] + $attribute['subscr_fee']['price'] * ($period/BILL_PERIOD);\n\t\t\t}\n\t\t}\n\n\t\t//Sitebuidler\n\t\tif($_SESSION['shopping_cart'][$plan_id]['addons']['sitebuilder'] && !$_SESSION['plans'][$plan_id]['sb_plan']['included_value']) {\n\t\t\t$total += $_SESSION['plans'][$plan_id]['sb_plan']['setup_fee']['price'] + $_SESSION['plans'][$plan_id]['sb_plan']['subscr_fee']['price'] * ($period/BILL_PERIOD);\n\t\t}\n\n\t\t//Licenses\n\t\tif(!$is_trial && is_array($_SESSION['shopping_cart'][$plan_id]['addons']['license_list'])) {\n\t\t\tforeach($_SESSION['shopping_cart'][$plan_id]['addons']['license_list'] AS $license) {\n\t\t\t\t$total += _calculate_license_price($license, $period);\n\t\t\t\tif(array_key_exists('addon_list', $license) && is_array($license['addon_list'])) {\n\t\t\t\t\tforeach($license['addon_list'] as $addon) {\n\t\t\t\t\t\t$total += _calculate_license_price($addon, $period);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t## Resources\n\t\tif(is_array($_SESSION['plans'][$plan_id]['qos_list']) && is_array($_SESSION['shopping_cart'][$plan_id]['configuration']['qos_list'])) {\n\t\t\tforeach($_SESSION['plans'][$plan_id]['qos_list'] as $qos) {\n\t\t\t\tif(\n\t\t\t\t\tarray_key_exists($qos['id'], $_SESSION['shopping_cart'][$plan_id]['configuration']['qos_list']) &&\n\t\t\t\t\t($qos['platform_id'] == $platform || $platform == 0)\n\t\t\t\t) {\n\t\t\t\t\t$total += $qos['overuse_rate']['price'] * \n\t\t\t\t\t\t($_SESSION['shopping_cart'][$plan_id]['configuration']['qos_list'][$qos['id']]['value'] - $qos['incl_amount']) * \n\t\t\t\t\t\t($period/BILL_PERIOD);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t$series_key = $plan_id != 'domains' ? $_SESSION['plans'][$plan_id]['assigned_dm_plan'] : 'default';\n\t$dm_plan_id = $_SESSION['domain_package'][$series_key]['assigned_dm_plan'];\n\tif(is_array($_SESSION['domains'][$dm_plan_id])) {\n\t\t$dns_hosting_count = 0;\n\t\tforeach($_SESSION['domains'][$dm_plan_id] AS $key => $value) {\n\t\t\t$tld = $_SESSION['domain_package'][$dm_plan_id]['tld_list'][$value['tld']];\n\t\t\tswitch ($value['dm_action']) {\n\t\t\t\tcase 'register_new':\n\t\t\t\t\t$total += $tld['fee_list'][$value['period_id']]['registration_fee'];\n\t\t\t\tbreak;\n\t\t\t\tcase 'reg_transfer':\n\t\t\t\t\t$total += $tld['transfer_fee'];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif($value['whois_privacy']) {\n\t\t\t\t$total += $tld['protect_fee'] * $tld['fee_list'][$value['period_id']]['period'];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn $total;\n}", "title": "" }, { "docid": "3aa2c895a89dc767078abf6658436fc5", "score": "0.5738064", "text": "public function payment_fields()\n {\n $amount = get_woocommerce_currency_symbol().' '.floatval(preg_replace('#[^\\d.]#', '', WC()->cart->total));\n include 'views/front/payment_detail.php';\n }", "title": "" }, { "docid": "8e218dccd46ade3f88ab6425af5ec93e", "score": "0.5729919", "text": "public function pay () {\n\t\t$rc = false;\n\t\tif (\\JambageCom\\Div2007\\Utility\\CompatibilityUtility::isLoggedIn()) {\n//\t\t\t$whereGeneral = '(fe_users_uid=\"'.$GLOBALS['TSFE']->fe_user->user['uid'].'\" OR fe_users_uid=0) ';\n\n\t\t\t$creditpointsTotal = $this->getBasketTotal();\n\n\t\t\tif ($creditpointsTotal) {\n\t\t\t\t$fieldsArrayFeUsers = [];\n\t\t\t\t$fieldsArrayFeUsers['tt_products_creditpoints'] = $GLOBALS['TSFE']->fe_user->user['tt_products_creditpoints'] - $creditpointsTotal;\n\t\t\t\tif ($fieldsArrayFeUsers['tt_products_creditpoints'] < 0) {\n\t\t\t\t\t$fieldsArrayFeUsers['tt_products_creditpoints'] = 0;\n\t\t\t\t\t$rc = $GLOBALS['TSFE']->fe_user->user['tt_products_creditpoints'];\n\t\t\t\t}\n\t\t\t\tif ($GLOBALS['TSFE']->fe_user->user['tt_products_creditpoints'] != $fieldsArrayFeUsers['tt_products_creditpoints']) {\n\t\t\t\t\t$GLOBALS['TSFE']->fe_user->user['tt_products_creditpoints'] = $fieldsArrayFeUsers['tt_products_creditpoints']; // store it also for the global FE user data\n\t\t\t\t\t$GLOBALS['TYPO3_DB']->exec_UPDATEquery('fe_users', 'uid=' . intval($GLOBALS['TSFE']->fe_user->user['uid']), $fieldsArrayFeUsers);\n\t\t\t\t\t$rc = $creditpointsTotal;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $rc;\n\t}", "title": "" }, { "docid": "d70bb8b9150b6fd37d352d5e1504035d", "score": "0.56999654", "text": "protected function &calculate_gateway_fee_total ( WC_Tax &$obj_wc_tax, $includes_tax, $total_excl, $total_incl, $tax_rates_base = array() )\n\t{\n\t\t$fees_calc = null;\n\t\t\n\t\t//\tif add fees for gateway is disabled\n\t\tif( ! $this->payment_gateway_option[self::OPT_KEY_ENABLE] )\n\t\t{\n\t\t\treturn $fees_calc;\n\t\t}\n\t\t\n\t\t$maxval = 0.0;\n\t\tif( isset( $this->payment_gateway_option[self::OPT_KEY_MAX_VALUE] ) )\n\t\t{\n\t\t\t$maxval = $this->payment_gateway_option[self::OPT_KEY_MAX_VALUE];\n\t\t}\n\n\t\tif( ! is_numeric( $maxval ) )\n\t\t{\n\t\t\t$maxval = 0.0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$maxval = (float) $maxval;\n\t\t}\n\n\t\tif( ! empty( $maxval ) )\n\t\t{\n\t\t\t$check_total = ( $includes_tax ) ? $total_incl : $total_excl;\n\t\t\t\n\t\t\tif( $check_total >= $maxval )\n\t\t\t{\n\t\t\t\treturn $fees_calc;\n\t\t\t}\n\t\t}\n\n\t\t//changed with 2.1.0 - replaced $total_excl with $total_incl\n\t\t$fees_calc = $this->calculate_fees( $obj_wc_tax, $includes_tax, $total_incl, $this->payment_gateway_option, 1, $tax_rates_base );\n\t\t\n\t\t/**\n\t\t * Allows to filter and alter calculated fee\n\t\t * \n\t\t * @since 2.2.21\n\t\t */\n\t\t$fees_calc = apply_filters( 'wc_add_fees_calculated_fee', $fees_calc, 'total', $includes_tax, $total_incl, $this->payment_gateway_option, 1, $tax_rates_base );\n\n\t\t$fees_calc->id = substr( ( 'ADD_FEE_TOTAL' ), 0, 15 );\t\t\n\t\t$fees_calc->source = self::OPTIONNAME;\n\t\t$fees_calc->type = WC_Fee_Add_Fees::VAL_TOTAL_CART_ADD_FEE;\n\t\t$fees_calc->gateway_key = $this->payment_gateway_key;\n\t\t$fees_calc->gateway_title = $this->gateways[ $this->payment_gateway_key ]->title;\n\t\t$fees_calc->gateway_option = $this->payment_gateway_option;\n\t\t\n\t\treturn $fees_calc;\n\t}", "title": "" }, { "docid": "a20bd5d2bd1325a74e201ddaa11a2718", "score": "0.5697971", "text": "public function total()\n {\n $totalAmount = 0;\n\n foreach ($this->items as $item) {\n $totalAmount += $item['total_price'];\n }\n\n $totalAmount = $this->promotion->applyPromo($this->items, $totalAmount);\n\n return $this->helper->formatPrice($totalAmount);\n }", "title": "" }, { "docid": "5cd6ed3eb22430c1ef29fb8c18046991", "score": "0.569525", "text": "public function total() {\n $price = 49.99;\n\n \treturn $this->quantity * $price;\n }", "title": "" }, { "docid": "7fbd4a73997fc41d11e945eb7bb73e37", "score": "0.5687426", "text": "public function total()\n {\n $total = 0;\n\n if ($this->active) {\n for ($qty = 0; $qty < $this->qty; $qty++) {\n $total += LaraCart::formatMoney($this->subTotalPerItem(false) + array_sum($this->taxSummary()[$qty]), null, null, false);\n }\n\n $total -= $this->getDiscount(false);\n\n if ($total < 0) {\n $total = 0;\n }\n }\n\n return $total;\n }", "title": "" }, { "docid": "decfa4143c7bf7a2fd67446e614b92e9", "score": "0.5686327", "text": "function getSum( $incShiping = 0, $incRabatt = 0, $incPayment = 0 ) {\n $jshopConfig = JSFactory::getConfig();\n \n $this->summ = $this->price_product;\n \n if ($jshopConfig->display_price_front_current==1){\n $this->summ = $this->summ + $this->getTax($incShiping, $incRabatt, $incPayment);\n }\n\n if ($incShiping){\n $this->summ = $this->summ + $this->getShippingPrice();\n $this->summ = $this->summ + $this->getPackagePrice();\n }\n \n if ($incPayment){\n $price_payment = $this->getPaymentPrice();\n $this->summ = $this->summ + $price_payment;\n }\n \n if ($incRabatt){\n $this->summ = $this->summ - $this->getDiscountShow();\n if ($this->summ < 0) $this->summ = 0;\n }\n $dispatcher = JDispatcher::getInstance();\n $dispatcher->trigger('onAfterCartGetSum', array(&$this, &$incShiping, &$incRabatt, &$incPayment));\n return $this->summ;\n }", "title": "" }, { "docid": "393ee208f9ef1bd981dd66916e14a155", "score": "0.5681197", "text": "public function calcularTotalPrestaciones()\n {\n $total = $this->getSueldo() +\n $this->getBonificacionIncentivo() +\n $this->getOtraBonificacion() +\n $this->getGasolina() +\n $this->getPrestacionesSobreSueldo() +\n $this->getOtrasPrestaciones() +\n $this->getViaticos() +\n $this->getOtros() +\n $this->getGastosIndirectos();\n //Esto ya está integrado en el costo\n //La indemnizacion, aguinaldo, bono14,cuota patronal\n //ya está integrado en el costo\n\n return $total;\n }", "title": "" }, { "docid": "d63fb87a9a8c32076fd9bd93d13dccb9", "score": "0.56717974", "text": "public function feeCalculation($data = [])\n {\n return $this->curl('/merchant/fee-calculator',Constant::HTTP_GET,$data);\n }", "title": "" }, { "docid": "b30f03ca54e96f1ba33a77b92600f334", "score": "0.56674194", "text": "public static function calculate_total($invoice_id , $actualTotal ,$returnNewValueOrDiscount='newvalue'){\r\n\r\n\t\t$invoice_id = (int) $invoice_id;\r\n\t\t\r\n\t\t$invoice_meta = get_post_meta($invoice_id,'_invoice_discount_and_vat',true);\r\n\r\n\t\t//if we have i.e subtotal set ... it means we are good to go\r\n\t\tif(!isset($invoice_meta['invoice_subtotal'])){\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t$discountValueEntered = $invoice_meta['discountValue'];\r\n\t\t$discountTypeEntered = $invoice_meta['discountType'];\r\n\t\t\r\n\t\tif( $discountValueEntered && $discountTypeEntered != 'none' ){\r\n\t\t\t\r\n\t\t\tif($discountTypeEntered=='percent'){\r\n\t\t\t\t//check so discounted value isnt lower than 0\r\n\t\t\t\t\r\n\t\t\t\t$valueAfterDiscount = $actualTotal - ( $actualTotal * $discountValueEntered/100 );\r\n\r\n\t\t\t\tif( $valueAfterDiscount > 0 ){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif($returnNewValueOrDiscount=='newvalue'){\r\n\t\t\t\t\t\t$value_to_return = $valueAfterDiscount;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t$value_to_return = $discountValueEntered ;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif($discountTypeEntered=='amount'){\r\n\r\n\t\t\t\t//check so discounted value isnt lower than 0\r\n\t\t\t\tif( $actualTotal - $discountValueEntered > 0 ){\r\n\r\n\t\t\t\t\tif($returnNewValueOrDiscount=='newvalue'){\r\n\t\t\t\t\t\t$toreturn = $actualTotal - $discountValueEntered;\r\n\r\n\t\t\t\t\t\t$value_to_return = $toreturn;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t$value_to_return = $discountValueEntered ;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(isset($invoice_meta['vat'])){\r\n\t\t\t\tif($invoice_meta['vat']>0){\r\n\t\t\t\t\treturn number_format ($value_to_return + ($value_to_return * $invoice_meta['vat']/100),2) ;\r\n\t\t\t\t}else{\r\n\t\t\t\t\treturn number_format($value_to_return,2);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//return $value_to_return \r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tif(isset($invoice_meta['vat'])){\r\n\t\t\t\tif($invoice_meta['vat']>0){\r\n\t\t\t\t\treturn number_format ($actualTotal + ($actualTotal * $invoice_meta['vat']/100),2) ;\r\n\t\t\t\t}else{\r\n\t\t\t\t\treturn number_format($actualTotal,2);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "91e01c27432602255529a254ea1eca66", "score": "0.5666709", "text": "public function getBaseTotalRefunded();", "title": "" }, { "docid": "338a32fcd3490e10dd967e1a6f6d5094", "score": "0.5656431", "text": "public function getTotalAmount() {\n $invoiceposkus = $this->invoicePoskus;\n $totalskuprice = 0;\n\n foreach($invoiceposkus as $invoiceposku){\n if($invoiceposku->activ == 1){\n if($this->iddept0->idlocation == 1){\n $totalskuprice += ($invoiceposku->shipqty * (ComSpry::calcSkuCost($invoiceposku->idsku)));\n\n }else{\n $locationstocks = Deptskulog::model()->findByAttributes(array('idsku'=>$invoiceposku->idsku,'iddept'=>$this->idlocation,'po_num'=>$invoiceposku->idpo));\n if (isset($locationstocks))\n $totalskuprice += ($invoiceposku->shipqty * ($locationstocks->pricepp));\n\n }\n }\n }\n\n if(!empty($totalskuprice)){\n return(round($totalskuprice ,2));\n }\n }", "title": "" }, { "docid": "1e47ea75f5577025e854d54d1cb197c4", "score": "0.5654719", "text": "public function getFifthPaymentAmountPaid()\r\n {\r\n $con = $this->getConnection();\r\n $query = \"SELECT SUM(amount_paid) AS overallFifthAmountPaid FROM tbl_5thpayment\";\r\n $get_data = $con->query($query);\r\n if ($get_data) {\r\n return $get_data;\r\n } else {\r\n die($con->error);\r\n }\r\n $con->close();\r\n }", "title": "" }, { "docid": "79a6653032235995d156acbd0356befa", "score": "0.5651886", "text": "public function getTotal() {\n // todo: add discount\n $shippingPrice = 0;\n if($this->shippingOption) {\n $shippingPrice = $this->shippingOption->price;\n }\n\n $discount = 0;\n if($this->discount) {\n $discount = $this->discount->discountPercentage;\n }\n\n $totalPrice = session('cart')->getTotalPrice();\n $totalPriceWithDiscount = $totalPrice - ($totalPrice / 100 * $discount);\n\n return number_format($totalPriceWithDiscount + $shippingPrice, 2);\n }", "title": "" }, { "docid": "a8e5341ee7a4d346c5bef6c0ca1fc966", "score": "0.5641989", "text": "public function getCalculateTotal()\n\t{\n\n\t\t$this->updateFreight();\n\n\t\t// observe que quando fazemos um get, estamos pegando algum dado por isso o get vem precedido de parenteses\n\t\t// agora quando fazemos um set, estamos passando uma informação, então sempre existe valor dentro dos parenteses.\n\t\t$totals = $this->getProductsTotals();\n\t\t// veja que para pegar o valor total do select, temos que jogar o array em uma variável \"$totals\" e depois seta-la no array do metodo set com \"$this->setvlsubtotal($totals['vlprice'])\". Neste caso estamos criando mais uma variável dentro do array seteres chamada vlsubtotal...\n\t\t$this->setvlsubtotal($totals['vlprice']);\n\t\t$this->setvltotal(($totals['vlprice'] + $this->getvlfreight()));\n\n\t}", "title": "" }, { "docid": "0a87238a141aff396eaf1b833acb249e", "score": "0.56365097", "text": "function TotalPayAableAmount($total,$tax1='',$tax2='')\n\t{\n\t\treturn $amount = $total+$tax1+$tax2;\n\t}", "title": "" }, { "docid": "07e79d339ad8d88f3fd20bdae1007dd6", "score": "0.563496", "text": "public function get_real_paid_cost($id){\n $Fees_Cost=invoicedetails::where('INVOICE_IDENT',$id)->sum('REAL_FEE_AMOUNT');\n $Fees_exchange=invoicedetails::where('INVOICE_IDENT',$id)->first()->EXCHANGE_PRICE;\n\n if(invoice::findOrFail($id)->PAYMENT_FLAG==1)\n {\n return $Fees_Cost * $Fees_exchange;\n }else\n {\n return 0;\n }\n\n}", "title": "" }, { "docid": "be89f4633c1064c53bcbcce7f8321bb1", "score": "0.5622209", "text": "public function total()\n {\n return decimalFormat($this->products->sum(function ($product) {\n return $product->pivot->price_with_tax * $product->pivot->quantity;\n }, 0) + $this->carrier->price);\n }", "title": "" }, { "docid": "86500d5dbfa3b50b8dc1746fb5ca24bf", "score": "0.56209743", "text": "public function total()\n {\n $total = $this->invoice->amount;\n return $total;\n }", "title": "" }, { "docid": "2da506171af698dec885598948463b5e", "score": "0.5611615", "text": "public static function computeFees($cart) {\r\n $fees = [\r\n 'items' => collect($cart['items'])->sum('quantity'),\r\n 'subtotal' => collect($cart['items'])->reduce(function ($carry, $item) { return $carry + ($item['price'] * $item['quantity']); })\r\n ];\r\n\r\n // Compute tax\r\n $fees['tax'] = round($fees['subtotal'] * config('custom.tax') / 100, 2);\r\n\r\n // Compute shipping fees\r\n $shipping = [\r\n 'config' => config('custom.checkout.shipping')\r\n ];\r\n\r\n $shipping['default'] = $shipping['config']['default'];\r\n\r\n if (isset($cart['shipping'])) {\r\n if ($cart['shipping'] == 'cash_on_delivery') {\r\n $fees['shipping'] = 0;\r\n } else {\r\n $fees['shipping'] = $shipping['config']['carriers'][$cart['shipping']['carrier']]['plans'][$cart['shipping']['plan']]['fee'];\r\n }\r\n } else {\r\n $fees['shipping'] = $shipping['config']['carriers'][$shipping['default'][0]]['plans'][$shipping['default'][1]]['fee'];\r\n }\r\n\r\n $fees['total'] = $fees['subtotal'] + $fees['tax'] + $fees['shipping'];\r\n\r\n return $fees;\r\n }", "title": "" }, { "docid": "3dba4b8b33005b4075a5775e2237fb4c", "score": "0.56060106", "text": "public function getInvoiceDeliverySum(): float\n {\n return $this->invoice->delivery_sum;\n }", "title": "" }, { "docid": "6157b1e47587bfb26476ab98c7603638", "score": "0.5604328", "text": "private function apply()\n {\n if ( !$this->isTaxFree ) { // Afecto\n $this->netPrice = round( $this->price / ( 1 + SaleConstant::IVA ), 2 );\n } else { // Exento\n $this->netPrice = $this->price;\n }\n $this->netSubtotal = (int) round( $this->netPrice * $this->quantity );\n $this->discountOrChargeValue = $this->discountUnitPrice;\n // Nota: No utilizo $this->netSubtotal, porque se pierden pesos al ya estar redondeado\n $amountPercentageDiscount = (int) round( $this->netPrice * $this->quantity * $this->discountOrChargePercentage / 100.0, 0);\n $amountLineDiscount = (int) round( $this->discountUnitPrice/(1 + SaleConstant::IVA), 0 );\n $this->newNetSubtotal = $this->netSubtotal - $amountPercentageDiscount - $amountLineDiscount;\n $this->total = (int) round( $this->price * $this->quantity * ( 100 - $this->discountOrChargePercentage) / 100.0 ) - $this->discountOrChargeValue;\n\n }", "title": "" }, { "docid": "6b35c907af98eb689efbb0896365626a", "score": "0.5595927", "text": "public function fees();", "title": "" }, { "docid": "6799d86fdcc84d2499c785a20ee8dd91", "score": "0.55934876", "text": "public function getTotal(): float\n {\n\n $total = 0;\n\n //recuperation $monPanier en faisant appel a la fonction ci-dessus getContenu\n $monPanier = $this->getContenu();\n\n foreach ($monPanier as $contenu) {\n\n //calcul du prix total du panier\n $total += $contenu['produit']->getPrix() * $contenu['quantite'];\n }\n return $total;\n\n }", "title": "" }, { "docid": "00198341b0ffd7da76f989aa7599f711", "score": "0.5589525", "text": "public function calculateTotal()\n {\n $total = $this->Subtotal = $this->OrderItems()->sum('Total');\n\n // Calculate any price modifications if added\n if ($this->PriceModifiers()->exists()) {\n foreach ($this->PriceModifiers() as $priceModifier) {\n $priceModifier->updateTotal($total, $this);\n }\n }\n\n return $this->Total = $total;\n }", "title": "" }, { "docid": "63c6990e6ba3cec0a465c0c681b8b5f9", "score": "0.5576371", "text": "public static function calculate_total($purchase_id , $actualTotal ,$returnNewValueOrDiscount='newvalue'){\r\n\r\n\t\t$purchase_id = (int) $purchase_id;\r\n\t\t\r\n\t\t$purchase_meta = get_post_meta($purchase_id,'_purchase_discount_and_vat',true);\r\n\r\n\t\t//if we have i.e subtotal set ... it means we are good to go\r\n\t\tif(!isset($purchase_meta['purchase_subtotal'])){\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t$discountValueEntered = $purchase_meta['discountValue'];\r\n\t\t$discountTypeEntered = $purchase_meta['discountType'];\r\n\t\t\r\n\t\tif( $discountValueEntered && $discountTypeEntered != 'none' ){\r\n\t\t\t\r\n\t\t\tif($discountTypeEntered=='percent'){\r\n\t\t\t\t//check so discounted value isnt lower than 0\r\n\t\t\t\t\r\n\t\t\t\t$valueAfterDiscount = $actualTotal - ( $actualTotal * $discountValueEntered/100 );\r\n\r\n\t\t\t\tif( $valueAfterDiscount > 0 ){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif($returnNewValueOrDiscount=='newvalue'){\r\n\t\t\t\t\t\t$value_to_return = $valueAfterDiscount;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t$value_to_return = $discountValueEntered ;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif($discountTypeEntered=='amount'){\r\n\r\n\t\t\t\t//check so discounted value isnt lower than 0\r\n\t\t\t\tif( $actualTotal - $discountValueEntered > 0 ){\r\n\r\n\t\t\t\t\tif($returnNewValueOrDiscount=='newvalue'){\r\n\t\t\t\t\t\t$toreturn = $actualTotal - $discountValueEntered;\r\n\r\n\t\t\t\t\t\t$value_to_return = $toreturn;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t$value_to_return = $discountValueEntered ;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(isset($purchase_meta['vat'])){\r\n\t\t\t\tif($purchase_meta['vat']>0){\r\n\t\t\t\t\treturn number_format ($value_to_return + ($value_to_return * $purchase_meta['vat']/100),2) ;\r\n\t\t\t\t}else{\r\n\t\t\t\t\treturn number_format($value_to_return,2);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//return $value_to_return \r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tif(isset($purchase_meta['vat'])){\r\n\t\t\t\tif($purchase_meta['vat']>0){\r\n\t\t\t\t\treturn number_format ($actualTotal + ($actualTotal * $purchase_meta['vat']/100),2) ;\r\n\t\t\t\t}else{\r\n\t\t\t\t\treturn number_format($actualTotal,2);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2c4c3a5bdea12d87bf7495351c3323ee", "score": "0.5574289", "text": "public function getAmountAfterAdjustment()\n {\n $total = 0;\n\n $this->getFeeTransactions()->forAll(\n function ($key, $ft) use (&$total) {\n /** @var FeeTransaction $ft */\n unset($key); // unused\n if (is_null($ft->getReversedFeeTransaction())) {\n $total += Fee::amountToPence($ft->getAmount());\n }\n return true;\n }\n );\n\n return Fee::amountToPounds($total);\n }", "title": "" }, { "docid": "92c4924a1b1adc9a788c7865a65c6cd6", "score": "0.55691516", "text": "protected function getFinancialTotals()\n {\n\t // get scholarship total\n\t\t$scholarship_total = $this->getScholarshipsTotal();\n\t\t\n\t\tif (!isset($scholarship_total))\n\t\t{\n\t\t\t$scholarship_total = 0;\n\t\t}\t\t\t\t\n// \t\t$this->template->set('scholarshipTotal', $scholarship_total );\n\t\t\n\t\t\n\t\t// get cash total\n\t\t$cash_total = $this->getCashPaidTotal();\n\t\tif (!isset($cash_total))\n\t\t{\n\t\t\t$cash_total = 0;\n\t\t}\n// \t\t$this->template->set('cashTotal', $cash_total );\n\t\t\n\t\t// get cash owed\n\t\t$cash_owing = $this->getCashOwedTotal();\n\t\tif (!isset($cash_owing))\n\t\t{\n\t\t\t$cash_owing = 0;\n\t\t}\n// \t\t$this->template->set('cashOwed', $cash_owing );\t\t\t\n\n\t\t\n\t // get credit card total\n\t $cc_total = $this->getCCtransTotal();\n\n\t\tif (!isset($cc_total))\n\t\t{\n\t\t\t$cc_total = 0;\n\t\t}\t\t\t\n// \t\t$this->template->set('ccTotal', $cc_total );\t\n\t\t\t\n\t\t$totalPaid = $scholarship_total + $cash_total + $cc_total; \n\t\tif (($totalPaid + $cash_owing) >= $this->deposit)\n\t\t{\n\t\t\t$this->linkLabels[ 'cont' ] = $this->labels->getLabel( '[Continue]'); \t\t\n\t\t}\t\n\t\t\n\t\t\n\t\t// set the balance-owing column in the cim_reg_registration table\n\t\t$owed = $this->basePriceForThisGuy - $scholarship_total - $cash_total - $cc_total; \n\t\t$registration = new RowManager_RegistrationManager($this->reg_id);\n\t\t$registration->setBalanceOwing($owed);\n\t\t\n\t\t$balance = array();\n\t\t$balance['registration_balance'] = $owed;\n\t\t$registration->loadFromArray( $balance );\n\t\t$registration->updateDBTable();\n\t\t\n\t\treturn $scholarship_total.','.$cash_total.','.$cash_owing.','.$cc_total;\n\t}", "title": "" }, { "docid": "27340c9c10136415d7313a35e26b63cc", "score": "0.5565133", "text": "public function total()\n {\n return $this->priceRule->calculateTotal($this->goods);\n }", "title": "" }, { "docid": "de961313b3860b470decdc570d803d2d", "score": "0.5564366", "text": "public function cashPayment()\n {\n }", "title": "" }, { "docid": "050fd28cef7c6c3c84cb16e72b8c2e79", "score": "0.5563044", "text": "public function calculateForwarderTotal(SupplierOrderInterface $order): float;", "title": "" }, { "docid": "51b0c092433b1292a0aff0b3d48423ea", "score": "0.55552924", "text": "public function totalOfMoneyCurrentTier()\n {\n // TODO: Implement totalOfMoneyCurrentTier() method.\n $totalAfter = $this->data->totalOfMoneyCurrentTier();\n if ($this->tier->hasAwardValue($this->data->getMoneyType())) {\n $moneyType = $this->data->getMoneyType();\n $actual = $this->tier->getAwardValue($moneyType);\n $referralsValue = $actual->getReferralsValue();\n\n return $totalAfter + $referralsValue;\n }\n\n return $totalAfter;\n }", "title": "" }, { "docid": "8f707899753db6a10dbafddb3134a13e", "score": "0.5554868", "text": "public function total()\n {\n return ($this->count * $this->cateringMenu->price) + ($this->delivery ? 150 : 0);\n }", "title": "" }, { "docid": "954eba313239a27d2d836604759c074d", "score": "0.55455965", "text": "public function valorTotal( $payments ){\n\t\t$total = 0;\n //Verifica se é um array, senão não altera o valor total\n if(is_array($payments)){\n foreach ( $payments as $p ) {\n $total += $p['valor'];\n }\n } \n\t\treturn round( $total, 2 );\n\t}", "title": "" }, { "docid": "816f63e1275ac752928d2bf6eb74ebe3", "score": "0.5540301", "text": "public function getInvoiceSum(): float\n {\n return $this->invoice->invoice_sum;\n }", "title": "" }, { "docid": "5ebec2629d39fd39c0328b9fbaab3fdb", "score": "0.55314523", "text": "public function get10KAmountPaidFifthPayment()\r\n {\r\n $con = $this->getConnection();\r\n $query = \"SELECT SUM(amount_paid) AS total10KFifthPayment FROM tbl_5thpayment WHERE type_of_loanAccount = '10k'\";\r\n $get_data = $con->query($query);\r\n if ($get_data) {\r\n return $get_data;\r\n } else {\r\n die($con->error);\r\n }\r\n $con->close();\r\n }", "title": "" }, { "docid": "24b8cf52766d69e5537335c73a1c9768", "score": "0.5526166", "text": "public function totalForMethod(int $ecashierId, int $status = Payment::STATUS['pending']) {\r\n\r\n $pence = 0;\r\n $sql = 'SELECT SUM(points) as pence FROM '.self::DB_TABLE.' WHERE ecashier_id = '.$ecashierId.' AND status = '.$status;\r\n $result=$this->db->sql_query($sql);\r\n if ( $row=$this->db->sql_fetchrow($result) ) {\r\n $pence = $row['pence'];\r\n }\r\n return round($pence/100,2);\r\n }", "title": "" }, { "docid": "c10b3e3edf9bd8b3b5412542ed089cde", "score": "0.5523342", "text": "public function calculateFee($amount): float\n {\n $fee = $amount * config('fee_config.FEE_PERCENT');\n $fee = $fee * config('fee_config.IVA');\n\n return (float)number_format((float)$fee, 2, '.', '');\n }", "title": "" }, { "docid": "5aafcea0d2d0ab2709fb9d175653e45c", "score": "0.55230373", "text": "public function totalAmount() {\n $total = 0;\n\n foreach ($this->ticketDetails as $detail) {\n $total += ($detail->horse->runs()->find($this->id)->pivot->static_table * $detail->tables);\n $total += $detail->gain_amount;\n }\n\n return $total;\n }", "title": "" }, { "docid": "b75f14f437887f6f09c156ed3c9a059a", "score": "0.55146706", "text": "public function get_total_salaries_paid() {\n\t $query = $this->db->query(\"SELECT SUM(payment_amount) as paid_amount FROM make_payment\");\n \t return $query->result();\n\t}", "title": "" }, { "docid": "38c1dde543aa443f84658bfb5d259975", "score": "0.5508456", "text": "public function get_delivery_fee($payment_method_code) {\r\n $this->load->model('extension/shipping/flat');\r\n if(isset($this->request->post['api_call']) && isset($this->request->post['payment_method'])){\r\n $payment_method_code = $this->request->post['payment_method'];\r\n if(($this->request->post['payment_method'] != 'BAMA Cash' && $this->request->post['payment_method'] !='DD')){\r\n $this->session->data['payment_method'] = $this->session->data['payment_methods'][$this->request->post['payment_method']];\r\n }else{\r\n $this->session->data['payment_method'] = $this->request->post['payment_method'];\r\n }\r\n if($this->request->post['speedy_fee'] == \"yes\"){\r\n $this->session->data['speedy_delivery'] = \"yes\";\r\n }\r\n }\r\n\r\n $payment_method_id = $this->model_extension_shipping_flat->getPaymentCode($payment_method_code);\r\n \r\n $result = $this->model_extension_shipping_flat->getDeliveryFee($payment_method_id);\r\n \r\n \r\n $this->response->addHeader('Content-Type: application/json');\r\n $this->response->setOutput($result);\r\n \r\n return $result;\r\n }", "title": "" }, { "docid": "e38e565567416995c5fce6e0e388a84c", "score": "0.5489944", "text": "private function __checkTotalAmount(){\r\n $priceTotal = array();\r\n foreach($this->session->get('cart_item') as $key=>$value){\r\n $priceTotal[] = $value['price'] * $value['qty'];\r\n }\r\n return array_sum($priceTotal);\r\n }", "title": "" }, { "docid": "dbc4a3f633e5dd17d12cbbe8abd1750f", "score": "0.54892176", "text": "public function total()\n {\n return $this->billable->formatCurrency($this->amount);\n }", "title": "" }, { "docid": "6238ab5d6839ef7ac7a6457ed51fa026", "score": "0.54879916", "text": "public function getOrderSumTotal($getNetSum) { \n \n $orderSumTotal = 0;\n \n // override getNetSum request parameter (set to true) if order is tax free (=always net)\n if ($this->isTaxFree == 1) {\n $getNetSum = 1;\n }\n \n foreach ($this->deliveryCollObj as $delObj) { \n // float operations may lead to precision problems (see www.php.net/float), using bcmath instead: this requires PHP to be configured with '--enable-bcmath'\n $orderSumTotal = bcadd($orderSumTotal, $delObj->getDeliveryTotal($getNetSum), 4);\n // original calculation: $orderSumTotal += $delObj->getDeliveryTotal($getNetSum);\n }\n \n // round total sum _down_ to 2 decimal digits \n $orderSumTotalRounded = tx_pttools_finance::roundDownTwoDecimalPlaces((double)$orderSumTotal);\n \n return $orderSumTotalRounded;\n \n }", "title": "" }, { "docid": "b3ffc7bcc1bc4542314a48c5413356cf", "score": "0.5487372", "text": "public function getMonthlyFee() {\r\n return 5.0;\r\n }", "title": "" }, { "docid": "bac9c3f09058d84bf843d8ad7f9d4fa5", "score": "0.5478498", "text": "public function total() {\n\t\t\t$subtotal = $this->subtotal();\n\n\t\t\treturn round(\n\t\t\t\t$subtotal * (1 - $this->discount / 100) * (1 + $this->tax / 100), 2\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "2832f16a65e66d00c584272cafcb95c4", "score": "0.5473788", "text": "public function calculate()\n {\n $subtotal = $this->calculateNetSubtotal();\n\n $this->setSubtotal($subtotal);\n $this->setDiscountedSubtotal($subtotal);\n $this->setTotal($subtotal);\n }", "title": "" }, { "docid": "0b69a4af7eda991b0ebface8d80654be", "score": "0.5471922", "text": "protected function attach_to_woocommerce()\n\t{\n\t\t/**\n\t\t * Attach to add fees applied to single products (works only when a cart is existong)\n\t\t *\n\t\t * classes/class-wc-cart\n\t\t * do_action( 'woocommerce_before_calculate_totals', $this );\n\t\t */\n\t\tadd_action( 'woocommerce_cart_calculate_fees', array( $this, 'handler_wc_cart_calculate_fees' ), 500, 1 );\n\n\t\t/**\n\t\t * Attach to add fees applied to total cart (works only when a cart is existong)\n\t\t *\n\t\t * classes/class-wc-cart\n\t\t * previous do_action( 'woocommerce_calculate_totals', $this );\n\t\t * now changed to do apply_filter( 'woocommerce_calculated_total', $total); because of compatibility issues with subscription plugin\n\t\t */\n\t\tadd_filter( 'woocommerce_calculated_total', array( $this, 'handler_wc_calculate_totals' ), 500, 2 );\n\t\t\n\t\t/**\n\t\t * Needed to properly set selected payment gateway radiobox on form-pay page for the order\n\t\t * (wc-core only selects default gateway)\n\t\t * \n\t\t * includes/shortcodes/class-WC-Shortcode-Checkout\n\t\t * do_action( 'before_woocommerce_pay' );\n\t\t */\n\t\tadd_action( 'before_woocommerce_pay', array( $this, 'handler_wc_before_pay' ), 500 );\n\t\t\n\t\t/**\n\t\t * Order items are deleted - Removes the information about our fees\n\t\t * \n\t\t * includes/class-wc-checkout.php\n\t\t * do_action( 'woocommerce_resume_order', $order_id );\n\t\t */\n\t\tadd_action( 'woocommerce_resume_order', array( $this, 'handler_wc_resume_order' ), 500, 1 );\n\t\t\n\t\t/**\n\t\t * Saves the type of fee for each fee in a post meta to be able to recognize\n\t\t * fees from our plugin from other fees on recalculation of fees in the order\n\t\t * initiated from the admin page or from the pay for order page.\n\t\t * (e.g. manually added fees on admin page, ..) \n\t\t * \n\t\t * includes/class-wc-checkout.php\n\t\t * do_action( 'woocommerce_add_order_fee_meta', $order_id, $item_id, $fee, $fee_key );\n\t\t */\n\t\tadd_action( 'woocommerce_add_order_fee_meta', array( $this, 'handler_wc_add_order_fee_meta' ), 500, 4 );\n\t\t\n\t\t\n\t\t/**\n\t\t * Possible bugfix - status of post is sometimes reset to old style without wc- when recalc of order\n\t\t * \n\t\t * do_action( \"save_post_{$post->post_type}\", $post_ID, $post, $update );\n\t\t */\n\t\tif(version_compare(WC()->version, '2.2.0', '>=' ) )\n\t\t{\n\t\t\tadd_action( 'save_post_shop_order', array( $this, 'handler_wp_save_post_shop_order' ), 5000, 3 );\n\t\t}\n\t\t\n\t\t/**\n\t\t * WCGM Bug fixes: adds all fee taxes to total taxes - result is, that our fee taxes are added twice -> substract fee taxes\n\t\t */\t\t\n\t\tadd_filter( 'woocommerce_cart_get_taxes', array( $this, 'handler_wc_add_fee_to_cart_tax_totals' ), 500, 2 );\n\t\tadd_filter( 'woocommerce_order_tax_totals', array( $this, 'handler_wc_add_fee_to_order_tax_totals' ), 500, 2 );\n\t\t\t\t//\thigher priority than WCGM to detach WCGM handler !!!!!\n\t\tadd_action( 'woocommerce_saved_order_items', array( $this, 'handler_wc_re_calculate_tax_on_save_order_items' ), 5, 1 );\t\n\t}", "title": "" }, { "docid": "946388eb067ca62e278d801aba2131d8", "score": "0.5455596", "text": "public static function getTransactionFees($processor, $amount)\n {\n // when payment is done through wallet no extra fees would be deducted afterwards\n return 0;\n }", "title": "" }, { "docid": "b6d74fb7daa7513f8dce3c08ba8a5257", "score": "0.5451316", "text": "public function total()\n {\n $itemTotal = 0;\n $taxTotal = 0;\n\n $items = [];\n foreach($this->items as $item){\n\n $price = number_format($item['price'],2,'.','');\n $tax = number_format($item['tax'],2,'.','');\n\n $itemTotal += $price * $item['quantity'];\n $taxTotal += $tax;\n }\n\n return $itemTotal + $taxTotal;\n }", "title": "" }, { "docid": "3bb3c78811c9b6956df5071ecffe5897", "score": "0.5450885", "text": "public function updateTotal()\n {\n // $total = $this->vouchers()->where('status', '<>', 'bounced')->sum('amount');\n $total = $this->vouchers()->sum('amount');\n\n return $this->update( ['total' => $total] );\n }", "title": "" }, { "docid": "40dde192a1762632ace55514c7f5b170", "score": "0.5450162", "text": "function process_payment( $order_id ) {\n\n $order = wc_get_order( $order_id );\n\n if ( (float)$order->get_total() != WC()->session->get(\"APtotal\") ) {\n wc_add_notice( __( 'Error:', WOOPAYDOCKTEXTDOMAIN ) . ' The order total has changed, <a href=' . (new WC_Cart)->get_checkout_url() .'><strong>please click here and try again</strong></a>', 'error' );\n } else {\n\n $item_name = sprintf( __( 'Order %s from %s.', WOOPAYDOCKTEXTDOMAIN ), $order->get_order_number(), urlencode( remove_accents( wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ) ) ) );\n\n try {\n // make sure token is set at this point\n if ( !isset( $_POST['confirmStatus'] ) || !( $_POST['confirmStatus'] == \"paymentready\") ){\n error_log(\"exception detected3\");\n throw new Exception( __( 'The PayDock Token was not generated correctly. Please go back and try again.', WOOPAYDOCKTEXTDOMAIN ) );\n }\n $testtoken = WC()->session->get(\"PDtoken\");\n\n $postfields = json_encode( array(\n 'amount' => (float)$order->get_total(),\n 'currency' => strtoupper( get_woocommerce_currency() ),\n 'reference' => $item_name,\n 'description' => $item_name,\n 'token' => $testtoken,\n ));\n\n $args = array(\n 'method' => 'POST',\n 'timeout' => 45,\n 'httpversion' => '1.1',\n 'blocking' => true,\n 'sslverify' => false,\n 'body' => $postfields,\n 'headers' => array(\n 'Content-Type' => 'application/json',\n 'x-user-secret-key' => $this->secret_key,\n ),\n );\n $result = wp_remote_post( $this->api_endpoint . 'v1/charges', $args );\n \n if ( !empty( $result['body'] ) ) {\n\n $res= json_decode( $result['body'], true );\n\n if ( !empty( $res['resource']['type'] ) && 'charge' == $res['resource']['type'] ) {\n if ( !empty( $res['resource']['data']['status'] ) && 'complete' == $res['resource']['data']['status'] ) {\n\n $order->payment_complete( $res['resource']['data']['_id'] );\n\n // Remove cart\n WC()->cart->empty_cart();\n\n return array(\n 'result' => 'success',\n 'redirect' => $this->get_return_url( $order )\n );\n\n }\n\n } elseif ( !empty( $res['error']['message'] ) ) {\n error_log(\"exception detected2\");\n throw new Exception( $res['error']['message'] );\n }\n } else {\n error_log(\"exception detected1\");\n throw new Exception( __( 'Unknown error', WOOPAYDOCKTEXTDOMAIN ) );\n }\n\n } catch( Exception $e ) {\n error_log(\"exception caught\");\n wc_add_notice( __( 'Error:', WOOPAYDOCKTEXTDOMAIN ) . ' ' . $e->getMessage(), 'error' );\n }\n }\n\n return '';\n }", "title": "" }, { "docid": "f6a148e468b194c21668deb71d0e7012", "score": "0.5448339", "text": "public function getInvoiceTotal(): Amount\n {\n return $this->getItems()->getTotalCost()->subtract($this->getDeduction());\n }", "title": "" }, { "docid": "97242028adf95d551df9fd952c18ddfd", "score": "0.54441655", "text": "public function get_meal_total_price($app_reference)\n\t{\n\t\t$query = 'select sum(FML.price) as meal_total_price\n\t\t\tfrom flight_booking_passenger_details FP\n\t\t\tleft join flight_booking_meal_details FML on FP.origin=FML.passenger_fk\n\t\t\twhere FP.app_reference=\"'.$app_reference.'\" group by FP.app_reference';\n\t\t$data = $this->db->query($query)->row_array();\n\t\t\n\t\treturn floatval(@$data['meal_total_price']);\n\t}", "title": "" }, { "docid": "67f2c83762986f8c96cfb82e297e0d6a", "score": "0.54333913", "text": "function getPaymentHTML() {\n\t\t\n\t\t$grand = $this->_invoice->getVar('grand');\n\t\t\n\t\tif ($GLOBALS['xoopsModuleConfig']['feecomphensate']) {\n\t\t\t$invoice_transaction_handler = xoops_getmodulehandler('invoice_transactions', 'xpayment');\n\t\t\t$feepercentile = (($invoice_transaction_handler->getFeePercentile('ccbill', $grand)+$this->_gateway->_options['fee'])/2)/100;\n\t\t\t$html .= '<div>'._XPY_MF_FEE.number_format(($grand*$feepercentile),2).' '.$this->_invoice->getVar('currency').'</div>';\n\t\t\t$grand = $grand + ($grand*$feepercentile);\n\t\t}\n\t\t\n\t\tif ($GLOBALS['xoopsModuleConfig']['depositcomphensate']) {\n\t\t\t$invoice_transaction_handler = xoops_getmodulehandler('invoice_transactions', 'xpayment');\n\t\t\t$depositpercentile = (($invoice_transaction_handler->getDepositPercentile('ccbill', $grand)+$this->_gateway->_options['deposit'])/2)/100;\n\t\t\t$html .= '<div>'._XPY_MF_DEPOSIT.number_format(($grand*$depositpercentile),2).' '.$this->_invoice->getVar('currency').'</div>';\n\t\t\t$grand = $grand + ($grand*$depositpercentile);\n\t\t}\n\t\t\n\t\t$html .= '<div>'._XPY_MF_TOTAL.number_format($grand,2).' '.$this->_invoice->getVar('currency').'</div><br/>';\n\t\t\n\t\t$html .= '<div><form action=\"'.$this->_gateway->_options['url'].'\" name=\"gateway\" id=\"gateway\" method=\"post\">';\n\n\t\t$html .= '<input type=\"hidden\" name=\"clientAccnum\" value=\"'.$this->_gateway->_options['clientAccnum'].'\">';\n\t\t$html .= '<input type=\"hidden\" name=\"clientSubacc\" value=\"'.$this->_gateway->_options['clientSubacc'].'\">';\n\t\t$html .= '<input type=\"hidden\" name=\"formName\" value=\"'.$this->_gateway->_options['formName'].'\">';\n\t\t$html .= '<input type=\"hidden\" name=\"formPrice\" value=\"'.$this->_invoice->getVar('grand').'\">';\n\t\t$html .= '<input type=\"hidden\" name=\"formPeriod\" value=\"'.$this->_gateway->_options['formPeriod'].'\">';\n\t\t$html .= '<input type=\"hidden\" name=\"formRecurringPrice\" value=\"0\">';\n\t\t$html .= '<input type=\"hidden\" name=\"formRecurringPeriod\" value=\"0\">';\n\t\t$html .= '<input type=\"hidden\" name=\"currencyCode\" value=\"'.$this->returnNUMCurr($this->_invoice->getVar('currency')).'\">';\n\t\t$html .= '<input type=\"hidden\" name=\"formRebills\" value=\"0\">';\n\t\t$html .= '<input type=\"hidden\" name=\"formDigest\" value=\"'.md5($grand.$this->_gateway->_options['formPeriod'].$this->returnNUMCurr($this->_invoice->getVar('currency')).$this->_gateway->_options['salt']).'\">';\n\t\t$html .= '<input type=\"hidden\" name=\"custom\" value=\"'.$this->calcCustom().'\">';\n\t\t$html .= '<input type=\"hidden\" name=\"iid\" value=\"'.$this->_invoice->getVar('iid').'\">';\n\t\t$html .= '<input type=\"hidden\" name=\"gross\" value=\"'.$grand.'\">';\n\t\t$html .= '<input type=\"submit\" value=\"'.$this->_gateway->_options['paywith'].'\">';\n\t\t$html .= '</form></div>';\n\t\t\n\t\treturn $html;\n\t\t\n\t}", "title": "" }, { "docid": "40be0104f2f9e2f0fc3be980d6e1690c", "score": "0.54307985", "text": "public function get_total_payments()\n\t{\n\t\t$this->db->select('SUM(income_payment_amount) AS total_amount');\n\t\t//$this->db->where('MONTH(payment_date) = \\''.$month.'\\' AND YEAR(payment_date) = \\''.$year.'\\'');\n\t\t$this->db->from('income');\n\t\t$query = $this->db->get();\n\t\t\n\t\t$result = $query->row();\n\t\t\n\t\treturn $result->total_amount;\n\t}", "title": "" }, { "docid": "26111aeda7a856f900a2840eeeff0d9b", "score": "0.5422256", "text": "protected function updateTotal()\n {\n $total = 0;\n\n foreach ($this->products as $product) {\n $total += $product->getUnitPrice();\n }\n\n $this->total = $total;\n }", "title": "" }, { "docid": "bf9de38d2d7829bbc4e7b84284efcdf2", "score": "0.5407863", "text": "private function calculateTotal()\n\t{\n\t\t// Totals\n\t\t$total_data = array();\t\t\n\t\t\n\t\t$this->load->model('setting/extension');\t\t\n\t\t$total = 0;\n\t\t/*if(isset($this->session->data['totalAddOnPrice']))\n\t\t{\n\t\t\t$total = $this->session->data['totalAddOnPrice'] ;\n\t\t}\t*/\n\t\t$taxes = $this->cart->getTaxes();\n\t\t// Display prices\n\t\tif (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) {\n\t\t\t\t$sort_order = array(); \n\t\t\t\t\n\t\t\t\t$results = $this->model_setting_extension->getExtensions('total');\n\t\t\t\t\n\t\t\t\tforeach ($results as $key => $value) {\n\t\t\t\t\t$sort_order[$key] = $this->config->get($value['code'] . '_sort_order');\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tarray_multisort($sort_order, SORT_ASC, $results);\n\t\t\t\t\n\t\t\t\tforeach ($results as $result) {\n\t\t\t\t\tif ($this->config->get($result['code'] . '_status')) {\n\t\t\t\t\t\t$this->load->model('total/' . $result['code']);\n\t\t\t\n\t\t\t\t\t\t$this->{'model_total_' . $result['code']}->getTotal($total_data, $total, $taxes);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$sort_order = array(); \n\t\t\t\t \n\t\t\t\t\tforeach ($total_data as $key => $value) {\n\t\t\t\t\t\t$sort_order[$key] = $value['sort_order'];\n\t\t\t\t\t}\n\t\t\n\t\t\t\t\tarray_multisort($sort_order, SORT_ASC, $total_data);\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t$totalStr = '';\n\n\t\tforeach ($total_data as $total) { \n\t $totalStr .= '<tr><td class=\"right\"><b>'.$total['title'].'</b></td><td class=\"right\">'.$total['text'].'</td></tr>';\n\t\t if($total['code'] == 'sub_total')\n\t\t {\n\t\t\t \tif(isset($this->session->data['totalAddOnPrice']))\n\t\t\t\t{\n\t\t \t\t\t$this->intCartSubTotal = $total['value'] - $this->session->data['totalAddOnPrice'];\n\t\t\t\t}\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->intCartSubTotal = $total['value'];\n\t\t\t\t}\n\t\t }\n\t\t if($total['code'] == 'total')\n\t\t {\n\t\t \t\tif(isset($this->session->data['totalAddOnPrice']))\n\t\t\t\t{\n\t\t\t\t\t$this->intCartTotal = $this->intCartSubTotal + $this->session->data['totalAddOnPrice'] ;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->intCartTotal = $this->intCartSubTotal;\n\t\t\t\t}\n\t\t\t\t\n\t\t \t\t\n\t\t }\n\t }\n\t\t \t\n\t\treturn $totalStr;\n\t}", "title": "" }, { "docid": "89bb4a2fd86cc2aa07f36ceaccb58837", "score": "0.54069597", "text": "public function total()\n\t{\n\t\treturn $this->price * $this->quantity;\n\t}", "title": "" } ]
79f2722717c9a3329c29e63aed17aebe
/ Fungsi Update / Handle request dari edit
[ { "docid": "a97bbd2fa81b7f766ba322d28d528c0b", "score": "0.0", "text": "public function update()\n {\n request()->validate([\n '_id' => 'required',\n 'old_avatar' => 'required',\n 'avatar' => 'file|image|mimes:jpeg,jpg,svg,png,gif|max:2048',\n 'name' => 'required',\n 'position' => 'required',\n 'priority' => 'required',\n ]);\n\n\n $data = [\n 'name' => request('name'),\n 'position' => request('position'),\n 'priority' => request('priority'),\n ];\n if (request()->file('avatar')) {\n // Delete old avatar\n Storage::delete(request('old_avatar'));\n // STore new avatar\n $data['avatar'] = Storage::putFile('public/kepengurusan', request()->file('avatar')->path());\n }\n\n Kepengurusan::where('id', request('_id'))->update($data);\n\n session()->flash('message', \"<script>swal('Berhasil','Memperbarui data pengurus','success')</script>\");\n return redirect(route('admin.kepengurusan'));\n }", "title": "" } ]
[ { "docid": "22f245f476f1267854b6163d62d180dd", "score": "0.78142107", "text": "public function Editar(){\n\n \t//GUARDA O ID DO CONTATO PASSADO NA VIEW\n\t\t\t$idFuncionario = $_GET['id'];\n\n\t\t\t//INSTANCIA A CLASSE CONTATO\n\t\t\t$funcionario = new Funcionario();\n\n\t\t\t//DEFINE O ID DO CONTATO COM O VALOR DA VARIÁVEL\n\t\t\t$funcionario->id_funcionario = $idFuncionario;\n $funcionario->id_cargo = $_POST['slt_cargo'];\n $funcionario->nome = $_POST['txt_nome'];\n $funcionario->sobrenome = $_POST['txt_sobrenome'];\n $funcionario->dt_nasc = $_POST['txt_dt_nasc'];\n $funcionario->rg = $_POST['txt_rg'];\n $funcionario->cpf = $_POST['txt_cpf'];\n\n $funcionario::update($funcionario);\n\t\t}", "title": "" }, { "docid": "20a46ce1c3735cea969426284af5ef76", "score": "0.77364457", "text": "public function edit($id){\n \n }", "title": "" }, { "docid": "3a1d12be6dc70dbdfe983fb58cb41e42", "score": "0.7727461", "text": "public function editar()\n\t{\n $id = intval(self::get(\"id\"));\n\n $usuario = $this->leerAtributo(\"objeto\")->filtrar(array(\"Usuario.id = '$id'\"));\n $usuario = self::leerArregloEstatico($usuario, 0);\n $this->pasarVariable(\"usuario\", $usuario);\n\n $this->pasarVariable(\"id\", $id);\n\n if(sizeof($_POST) > 0)\n {\n $this->leerAtributo(\"objeto\")->edita($id, $_POST);\n echo json_encode($this->leerAtributo(\"objeto\")->leerAtributo('errores'));\n exit;\n }\n\n\t}", "title": "" }, { "docid": "86913f06bbfcfe51069d8a86a1cca977", "score": "0.7701694", "text": "function editar() {\n $data['idCliente'] = $_POST['idCliente'];\n $data['nombre'] = $_POST['txtNombre'];\n $data['apellido'] = $_POST['txtApellido'];\n $data['direccion'] = $_POST['txtDireccion'];\n $data['telefonoCelular'] = $_POST['txtCelular'];\n $data['telefonoCasa'] = $_POST['txtCasa'];\n \n //cargamos el modelo y llamamos a la función update()\n $this->load->model('modeloMantenimientoAdministrador');\n $this->modeloMantenimientoAdministrador->update($data);\n //volvemos a cargar la primera vista\n $this->index();\n }", "title": "" }, { "docid": "60425bc3a61f570a890eaafb5c08f680", "score": "0.76974034", "text": "public function edit($id){}", "title": "" }, { "docid": "60425bc3a61f570a890eaafb5c08f680", "score": "0.76974034", "text": "public function edit($id){}", "title": "" }, { "docid": "60425bc3a61f570a890eaafb5c08f680", "score": "0.76974034", "text": "public function edit($id){}", "title": "" }, { "docid": "aec24a914a45d3801208b752b8dcd5da", "score": "0.768314", "text": "public function edit()\n {\n $escaped = $this->validate($_POST);\n extract($escaped);\n\n unset($escaped['mode']);\n unset($escaped['id']);\n //trigger exception in a \"try\" block\n try {\n $result = $this->conn->updateData($mode, $escaped, \"id =\" . $id);\n if ($result) {\n header(\"Location: /\" . $mode);\n } else {\n die(\"Something went wrong\");\n }\n } //catch exception\n catch (Exception $e) {\n echo 'Message: ' . $e->getMessage();\n }\n\n\n }", "title": "" }, { "docid": "69c9b97539bcdde17b4a6f2127efd365", "score": "0.7682303", "text": "public function Update(){\n\n $id=$_REQUEST['id'];\n // enviar id al modelo\n $datos=$this->model->ver_editar($id); \n require_once(\"Views/Index/update.php\"); \n }", "title": "" }, { "docid": "316d7143d62a90267055dd651f28cc67", "score": "0.7660329", "text": "public function edit($id)\n {\n //\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "dc0f2ce0f0521fb5a88a7e487343b928", "score": "0.76593834", "text": "public function edit($data)\n {\n }", "title": "" }, { "docid": "a480d29d28254c797ff340cd05755f53", "score": "0.76419693", "text": "public function edit($id) {\n \n }", "title": "" }, { "docid": "996a4dd9944626c012614b35e16435f1", "score": "0.76382667", "text": "public function edit($id){ }", "title": "" }, { "docid": "b9b2435ef5c1197c1ca0ab43bee2ebc4", "score": "0.7633552", "text": "public function edit(){\n if (!$id = $this->input->get('id')) {\n $this->system->flash('msg_error', 'Chưa chọn bản ghi sửa đổi');\n return rediectIndex();\n }\n\n // 2. Xu ly function now\n if (is_post()) {\n $this->postEdit($id);\n }\n\n // 3. Thong tin ban ghi hien tai\n $item = $this->menuModel->getInfo($id);\n\n // 4. Xu ly data to view\n $data = array(\n 'reg_nav_menu' => $this->system->registerNavMenu(),\n 'item' => $item\n );\n $this->loadView($this->view, $data);\n }", "title": "" }, { "docid": "35aae6e06a1ed84835f691116b092790", "score": "0.7591845", "text": "public function edit($id) {\n \n }", "title": "" }, { "docid": "35aae6e06a1ed84835f691116b092790", "score": "0.7591845", "text": "public function edit($id) {\n \n }", "title": "" }, { "docid": "35aae6e06a1ed84835f691116b092790", "score": "0.7591845", "text": "public function edit($id) {\n \n }", "title": "" }, { "docid": "d7cb578861a8b1b43fb0676bb08c07b4", "score": "0.75830793", "text": "public function editAction($id){\n \n }", "title": "" }, { "docid": "0455401d71da0092720a0cfc6ab0f961", "score": "0.7581156", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "0455401d71da0092720a0cfc6ab0f961", "score": "0.7581156", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "e8e2376236c00ce3aff18ac7e1aa4de9", "score": "0.7575572", "text": "public function edit($id){\n //\n }", "title": "" }, { "docid": "e8e2376236c00ce3aff18ac7e1aa4de9", "score": "0.7575572", "text": "public function edit($id){\n //\n }", "title": "" }, { "docid": "e8e2376236c00ce3aff18ac7e1aa4de9", "score": "0.7575572", "text": "public function edit($id){\n //\n }", "title": "" }, { "docid": "ba10b468edcb54cbe7917862523e79c7", "score": "0.75644475", "text": "public function edit($id)\n {\t\t\n\n }", "title": "" }, { "docid": "ba10b468edcb54cbe7917862523e79c7", "score": "0.75644475", "text": "public function edit($id)\n {\t\t\n\n }", "title": "" }, { "docid": "f7177282edfe3a33be1aaa093975fdba", "score": "0.7550829", "text": "public function edit($id)\n{\n\n\n}", "title": "" }, { "docid": "5f2f10474c946329f2ca54a1830ba275", "score": "0.7541541", "text": "public function update()\n\t{\n\t\ttry{\n\t\t\tArticolo::update($_POST); //pesco o array do dob\n\t\t\techo '<script>alert(\"Modifica eseguita con successo!\");</script>';\n\t\t\t//envio o admin pra page q mostra todas as publicacoes\n\t\t\techo '<script>location.href=\"/SimpleMVC/?pagina=admin&metodo=index\"</script>';\n\n\t\t}catch(Exception $e) {\n\t\t\techo '<script>alert(\"'.$e->getMessage().'\");</script>';\n\t\t\t//reecaminha p pagina do metodo change q exibe o form de modifica\n\t\t\techo '<script>location.href=\"/SimpleMVC/?pagina=admin&metodo=change&id= '.$_POST['id'].'\"</script>';\n\n\t\t}\n\n//var_dump($_POST); N PEGA\n\t}", "title": "" }, { "docid": "1765a05a55e04829bbadef53c5d28cbf", "score": "0.7536436", "text": "public function edit($id)\n {\n //\n }", "title": "" }, { "docid": "f7bd52c4216f50ae40e29aa9291a3153", "score": "0.75332713", "text": "public function edit($id) {}", "title": "" }, { "docid": "f0f6c3b9b4259d2f648cc5e2de66e973", "score": "0.75252914", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "135a52994354aacad63c140aaf231c82", "score": "0.75179017", "text": "public function edit($id)\n {\n //\n\n \n }", "title": "" }, { "docid": "135a52994354aacad63c140aaf231c82", "score": "0.75179017", "text": "public function edit($id)\n {\n //\n\n \n }", "title": "" }, { "docid": "96f41b46bd64b6f47602e22db44b4e70", "score": "0.7513644", "text": "public function edit($id) {\n//\n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "98935a9e1f0491b297508770fa4bae5a", "score": "0.7513399", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "0fc6fbacbb0efb74d54a48d62b261666", "score": "0.75129336", "text": "public function edit($id) {\r\n //\r\n }", "title": "" }, { "docid": "4ce1f08d3e86a4025dcf07fa51d385f3", "score": "0.7507722", "text": "public function edit($id) {\n//\n }", "title": "" }, { "docid": "4ce1f08d3e86a4025dcf07fa51d385f3", "score": "0.7507722", "text": "public function edit($id) {\n//\n }", "title": "" }, { "docid": "4ce1f08d3e86a4025dcf07fa51d385f3", "score": "0.7507722", "text": "public function edit($id) {\n//\n }", "title": "" }, { "docid": "c23c95d4932b89149c7cd46e06441db1", "score": "0.75058633", "text": "public function edit($id)\n {\n \n\n }", "title": "" }, { "docid": "e7b9b68aff4927ae2de2afaf85a9f2da", "score": "0.7503991", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "aeb3b0dbc1864f2456a7bf0e658dc692", "score": "0.7502197", "text": "public function editController()\n {\n $input = Input::all();\n\n $verif = array(\n 'title' => 'required',\n 'description' => 'required',\n 'prix' => 'required|integer',\n );\n\n $validator = Validator::make($input, $verif);\n\n if ($validator->passes()) {\n DB::update('update annonces set title = ?, description = ?, prix = ? where id = ? and id_user = ?', [$input['title'], $input['description'], $input['prix'], $input['id'], Auth::user()->id]);\n return redirect('published')->with('message', 'Modification enregistée !');;\n } else {\n return redirect('published');\n }\n }", "title": "" }, { "docid": "bdacc5add90b66532c467fe8d401984f", "score": "0.74974215", "text": "public function edit($id)\n {\n \n \n }", "title": "" }, { "docid": "cafb9e015387a10584f36c4e997aa7d2", "score": "0.74968743", "text": "public function edit($id)\r\n {\r\n\r\n\r\n }", "title": "" }, { "docid": "dbb68d34a1904c633473d8e8d03bce4a", "score": "0.74886394", "text": "public function edit($id)\n {\n\n\n }", "title": "" }, { "docid": "970b006085e1ab22e60991fdbf502163", "score": "0.7481953", "text": "public function edit($id){\n\t\t//\n\t}", "title": "" }, { "docid": "290162f6eee598845b26949acd1fd53d", "score": "0.7480234", "text": "public function edit();", "title": "" }, { "docid": "0ad42346f31f4738f7cb343d6f05d69b", "score": "0.746755", "text": "public function edit($id)\n {\n //\n \n }", "title": "" }, { "docid": "0ad42346f31f4738f7cb343d6f05d69b", "score": "0.746755", "text": "public function edit($id)\n {\n //\n \n }", "title": "" }, { "docid": "9bec8885d82efd359a2a225e6562ea10", "score": "0.7467438", "text": "public function edit($id)\n {\n //\n }", "title": "" }, { "docid": "9bec8885d82efd359a2a225e6562ea10", "score": "0.7467438", "text": "public function edit($id)\n {\n //\n }", "title": "" }, { "docid": "9302ce35ee65d3a798b61b8e06377949", "score": "0.7460716", "text": "public function edit($id){\n\n }", "title": "" }, { "docid": "9302ce35ee65d3a798b61b8e06377949", "score": "0.7460716", "text": "public function edit($id){\n\n }", "title": "" }, { "docid": "a2b8a40a4cb5cba79de6337f8e1012ba", "score": "0.74606895", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "a2b8a40a4cb5cba79de6337f8e1012ba", "score": "0.74606895", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "a2b8a40a4cb5cba79de6337f8e1012ba", "score": "0.74606895", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "4507f90cb87f15b8db774a4b89c3ff75", "score": "0.7459439", "text": "public function edit($id)\n {\n //\n }", "title": "" }, { "docid": "d08debad7fec05ce87e0e780f6b46bd2", "score": "0.7459128", "text": "public function edit($id)\r\n {\r\n \r\n }", "title": "" }, { "docid": "c8d432d803efa26b6c504595bb77241a", "score": "0.7458926", "text": "public function edit($id)\n {\n //\n }", "title": "" }, { "docid": "c8d432d803efa26b6c504595bb77241a", "score": "0.7458926", "text": "public function edit($id)\n {\n //\n }", "title": "" }, { "docid": "9016e741dea2ce0994781fa9a8e104f6", "score": "0.74450433", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "9016e741dea2ce0994781fa9a8e104f6", "score": "0.74450433", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "9016e741dea2ce0994781fa9a8e104f6", "score": "0.74450433", "text": "public function edit($id)\n {\n \n }", "title": "" }, { "docid": "83b762c568ca6fddd4592f4578b28706", "score": "0.7442848", "text": "public function edit($id) {\n\n }", "title": "" }, { "docid": "83b762c568ca6fddd4592f4578b28706", "score": "0.7442848", "text": "public function edit($id) {\n\n }", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "ffaff19749da8ed9fe0ce1033a43476d", "score": "0.0", "text": "public function show(Service $service)\n {\n //\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "ed9ed1fbed476a5eee2d610ee336419b", "score": "0.71668035", "text": "abstract protected function showResourceView($id);", "title": "" }, { "docid": "c4e62e5168376087aa9b98444deae068", "score": "0.7148806", "text": "public function show(Resource $resource)\n {\n return view('Resource.show',['resource'=> $resource]);\n }", "title": "" }, { "docid": "44902c3ee10218fb3f447cc879a08453", "score": "0.70435095", "text": "public function show(Resource $resource)\n {\n return view('resources.show', ['resource' => $resource]);\n }", "title": "" }, { "docid": "5d4d3f7e509fe12d5d3111211b420a10", "score": "0.6905246", "text": "public function view(User $user, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "1be3fb8370513aa7e96f7c3e96fdff88", "score": "0.6462615", "text": "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "title": "" }, { "docid": "c0e347a63f64e9f153f57a2c392b41fe", "score": "0.6432222", "text": "public function render(Resource $resource, $pretty);", "title": "" }, { "docid": "81fa13c8c056c1573dc37d9aa1fe4c76", "score": "0.6400549", "text": "public function showResource()\n {\n return new ServicoResource(Servico::find(2));\n }", "title": "" }, { "docid": "ccf6900a45d7abd55d749d2d68da838d", "score": "0.6382228", "text": "public function show($id)\n\t{\n\t\t$resource = $this->resource->findOrFail($id);\n\n\t\treturn View::make('backend.resources.show', compact('resource'));\n\t}", "title": "" }, { "docid": "d7a977eea0243f7e8227765f1af5a90a", "score": "0.6296829", "text": "public function show($id)\n\t{\n\n\t\t$resource = Resource::find($id);\n\t\t$view = new Viewable(array('ip_address' => Request::getClientIp(), 'user_id' => Auth::user()->ID));\n\t\tif (Auth::user()->role == 'admin') {\n\t\t\t$photos = $resource->photos()->get();\t\n\t\t\t$resource->views()->save($view);\n\t\t\t$views = $resource->views()->get();\n\t\t\t$this->layout->content = View::make(\"resources.show\", compact('resource', 'photos', 'views'));\t\n\n\t\t} else {\n\t\t\t$photos = $resource->approvedPhotos()->get();\n\t\t\t$resource->views()->save($view);\n\t\t\t$views = $resource->views()->get();\n\t\t\treturn View::make(\"resources.student_show\",compact('resource','photos','views'));\n\t\t}\n\n\t\t// $resource->views()->save($view);\n\t\t// $views = $resource->views()->get();\n\t\t// $this->layout->content = View::make(\"resources.show\", compact('resource', 'photos', 'views', 'roles'));\n\n\t\n\t}", "title": "" }, { "docid": "fa8779f6431b84477adcead7c3882393", "score": "0.6198625", "text": "public function display()\n {\n $action = (isset($_GET['act'])) ? $_GET['act'] : '';\n\n switch ($action)\n {\n case 'view':\n default:\n $this->viewPresentation();\n break;\n }\n }", "title": "" }, { "docid": "92b1787553445503cb75e7cfdf040a16", "score": "0.6087363", "text": "public function display($spec = null)\n {\n echo $this->fetch($spec);\n }", "title": "" }, { "docid": "751f007812b407d895922676e73e8078", "score": "0.60843635", "text": "public function show(Resource $resource, Identifier $identifier): View\n {\n return view('identifiers.show')->with([\n 'resource' => $resource,\n 'identifier' => $identifier,\n ]);\n }", "title": "" }, { "docid": "9206f8a318374093256bc92bd0bbda6b", "score": "0.6071554", "text": "function display($resource_name, $cache_id = null, $compile_id = null, $display = false) {\n\t\t\n\t\t// attempt to load the theme's requested template\n\t\tif (!is_file($this->template_dir.'/'.$resource_name))\n\t\t\t// template file not existant in theme, fallback to \"default\" theme\n\t\t\tif (!is_file($this->_themeDir.'default/'.$resource_name))\n\t\t\t\t// requested template file does not exist in \"default\" theme, die.\n\t\t\t\tdie('<img src=\"'.bm_baseUrl.'themes/shared/images/icons/alert.png\" align=\"middle\">'.$resource_name.': '._T('Template file not found in default theme.'));\n\t\t\telse\n\t\t\t\t$resource_name = $this->_themeDir.'default/'.$resource_name;\n\t\t\n\t\tglobal $poMMo;\n\t\tif ($poMMo->_logger->isMsg()) \n\t\t\t$this->assign('messages',$poMMo->_logger->getMsg());\n\t\tif ($poMMo->_logger->isErr())\n\t\t\t$this->assign('errors',$poMMo->_logger->getErr());\n\t\t\n\t\treturn parent::display($resource_name, $cache_id = null, $compile_id = null, $display = false);\n\t}", "title": "" }, { "docid": "b34c53aa313f707335a5ccb7e4b1da27", "score": "0.6059562", "text": "public function show($id)\n\t{\n\t\t// get the resource\n\t\t$resource = Resource::find($id);\n\t\t// get the task\n\t\t$tasks = DB::table('tasks')\n\t\t ->select(DB::raw('tasks.*, resource_task.hours_estimate'))\n\t\t ->where('resource_task.resource_id', '=', $id)\n\t\t ->join('resource_task', 'resource_task.task_id', '=', 'tasks.id')\n//\t\t ->groupBy('resource_task.task_id')\n\t\t ->get();\n\n\t\t// show the view and pass the resource to it\n\t\treturn view('resources.show', [\n\t\t\t'resource' => $resource,\n\t\t\t'tasks' => $tasks,\n\t\t\t\t]\n\t\t\t);\n\t}", "title": "" }, { "docid": "f1919612984d797496fb91a1df6bfc28", "score": "0.60360175", "text": "public function show(Resident $resident)\n {\n //\n }", "title": "" }, { "docid": "241d8f0da125e89b0d5a9603ceb4fa0e", "score": "0.6028905", "text": "public function index(Resource $resource): View\n {\n $this->authorize('view', [$resource, Identifier::class]);\n\n return view('identifiers.index')->with('identifiable', $resource);\n }", "title": "" }, { "docid": "7f5c97838b7df53c539faf706bfd91d8", "score": "0.6019086", "text": "function tpl_display($resource_name, $cache_id = null, $compile_id = null) {\n static $instance;\n if($instance === null) {\n $instance =& Smarty::instance();\n } // if\n $instance->display($resource_name, $cache_id, $compile_id);\n }", "title": "" }, { "docid": "49368f3fe013bdb064a37e819adcc997", "score": "0.6005115", "text": "public function show($id)\n\t{\n\t\t\n\t\tif(Request::ajax())\n\t\t{\n\n\t\t\treturn $this->resource($id);\n\n\t\t}\n\t\telse\n\t\t{\n\n\t\t\treturn $this->showResourceView($id);\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "a4cfc1a84759c0d8e11883b98eb477f8", "score": "0.60016555", "text": "public function display(){\n\t\techo $this->get();\n\t}", "title": "" }, { "docid": "63497a4ff75a6b12992600d5af4d1bbe", "score": "0.6000679", "text": "public function edit(Resource $resource)\n {\n $rsr = $resource;\n return view('admin.resource.edit',compact('rsr'));\n }", "title": "" }, { "docid": "bee357a367df224c60066eff44e0a556", "score": "0.5988955", "text": "public function show($id)\n {\n // load the resource\n $obj = Obj::where('id',$id)->first();\n // load alerts if any\n $alert = session()->get('alert');\n // authorize the app\n $this->authorize('view', $obj);\n\n if($obj)\n return view('apps.'.$this->app.'.'.$this->module.'.show')\n ->with('obj',$obj)->with('app',$this)->with('alert',$alert);\n else\n abort(404);\n }", "title": "" }, { "docid": "ddc28327288006b3d29c6bdc8761ca44", "score": "0.598783", "text": "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "title": "" }, { "docid": "562d922b44af24258ce6a87217d066b2", "score": "0.5956285", "text": "public function show(Reson $reson)\n {\n //\n }", "title": "" }, { "docid": "049b2443ae1ed7dbdbf5fa3f0c877184", "score": "0.595575", "text": "public static function resource($resource, $controller, $options = array()){}", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5954321", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "3a1720520865c12438e9e32f0ac8decb", "score": "0.59405303", "text": "public static function view_resource($resourceid) {\n global $DB, $CFG;\n require_once($CFG->dirroot . \"/mod/resource/lib.php\");\n\n $params = self::validate_parameters(self::view_resource_parameters(),\n array(\n 'resourceid' => $resourceid\n ));\n $warnings = array();\n\n // Request and permission validation.\n $resource = $DB->get_record('resource', array('id' => $params['resourceid']), '*', MUST_EXIST);\n list($course, $cm) = get_course_and_cm_from_instance($resource, 'resource');\n\n $context = context_module::instance($cm->id);\n self::validate_context($context);\n\n require_capability('mod/resource:view', $context);\n\n // Call the resource/lib API.\n resource_view($resource, $course, $cm, $context);\n\n $result = array();\n $result['status'] = true;\n $result['warnings'] = $warnings;\n return $result;\n }", "title": "" }, { "docid": "22f57665e28f701c96d09ca9ef7b2fdf", "score": "0.59396213", "text": "public function show() {\n\t\tif (!isset($this->request->arguments[2])) {\n\t\t\t$this->index();\n\t\t} else {\n\t\t\t\n\t\t\t// General setup\n\t\t\t$this->setup();\n\n\t\t\t// Try to fetch the requested object\n\t\t\t$object = $this->objects->getByLink($this->request->arguments[2]);\n\n\t\t\tif (!empty($object)) {\n\t\t\t\t// The main View\n\t\t\t\t$this->data['view_object'] = $this->viewHelper->objectView($object[0]);\n\t\t\t} else {\n\t\t\t\t$this->data['view_object'] = \"<p>Objektet hittades inte</p>\";\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "b2c60065169a03f2b724e99c8fee9b74", "score": "0.5906451", "text": "public function actionShow()\n {\n $this->render('show');\n }", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "f0a2d3f7b0390c444e8c91321acf86de", "score": "0.5875103", "text": "public function showAction() {\n\t\t$this->view->assign(t3lib_div::lcfirst($this->domainObjectName), $this->arguments[t3lib_div::lcfirst($this->domainObjectName)]->getValue());\n\t}", "title": "" }, { "docid": "e278522937d7847767c9d2ff92455995", "score": "0.5863409", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n ); \n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams()); \n \n // test if input is valid\n // retrieve requested record\n // attach to view\n if ($input->isValid()) {\n $q = Doctrine_Query::create()\n ->from('Tripjacks_Model_News i')\n ->where('i.newsid = ?', $input->id);\n\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->news = $result[0]; \n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404); \n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input'); \n }\n }", "title": "" }, { "docid": "f09a11111572f588818123ad93c4854c", "score": "0.58557", "text": "public function edit(Resource $resource)\n {\n return view('resources.edit', ['resource' => $resource]);\n }", "title": "" }, { "docid": "f999eb72e161b384685474ea01465a27", "score": "0.58499146", "text": "public function show($id){\n echo self::routeNamed();\n }", "title": "" }, { "docid": "2d015701dd9e9c87840b1d4ec5ee2e37", "score": "0.5844884", "text": "protected abstract function display();", "title": "" }, { "docid": "aed98025e8cf7b038928ec4be9d2dc72", "score": "0.58392787", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n ); \n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n \n $input = new Zend_Filter_Input($filters, $validators);\n \n $input->setData($this->getRequest()->getParams());\n\n // test if input is valid\n // retrieve requested record\n // attach to view\n if ($input->isValid()) {\n\n $id = $input->id;\n \n $stampItem = $this->service->findOneBy(array('id' =>$input->id));\n \n if (isset($stampItem)) {\n \n $this->view->item = $stampItem; \n \n } else {\n \n throw new \\Zend_Controller_Action_Exception('Page not found', 404); \n }\n } else {\n \n throw new \\Zend_Controller_Action_Exception('Invalid input'); \n }\n }", "title": "" }, { "docid": "a101fb044674f8f3ed8ccf9086bced42", "score": "0.58378935", "text": "public function display() {\n\n\t\techo $this->get_display();\n\n\t}", "title": "" }, { "docid": "ca08475732e5ee596bd5c4c81b5aeb29", "score": "0.5835936", "text": "public function display( $templateName )\n\t{\n\t\techo $this->fetch( $templateName );\n\t}", "title": "" }, { "docid": "a72554267b0fa66fd60358e2691e0731", "score": "0.58178806", "text": "public function show()\n\t{\n \n \n\t}", "title": "" }, { "docid": "d56523903af509d8db2fb4be5e9cab6f", "score": "0.58128333", "text": "public function displayAction() {\n\n $this->title = 'Display your account';\n $row = $this->_memberModel->getMember($this->_idMember);\n $this->view->item = $row;\n }", "title": "" }, { "docid": "d6af1b1d4946c54112fc9b7ca038cb20", "score": "0.58112013", "text": "public function display()\n\t{\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "0734722d684368a1a7d1931af4e97397", "score": "0.5809456", "text": "public function display() {\n\t\tinclude $this->get_view( 'main' );\n\t}", "title": "" }, { "docid": "446ef7deb6ac986e5a2f1ee9f5993536", "score": "0.580564", "text": "protected function show($id)\n {\n $object = $this->model->find($id);\n \n $this->fireEvent(new ShowBefore());\n\n if (!$object)\n return response()->errorNotFound();\n \n $this->fireEvent(new ShowAfter($object));\n \n return $this->resourceResponse($object);\n }", "title": "" }, { "docid": "e3c1fc60ee75eb693b0090ab8fb943ad", "score": "0.5803467", "text": "public function get_resource();", "title": "" }, { "docid": "c9231d5b5ecd8010030cec3885590e10", "score": "0.5759732", "text": "public function display()\n {\n $this->component->display();\n\n }", "title": "" }, { "docid": "b06d640a7b681fc35b294221c2dc067f", "score": "0.5754135", "text": "public function displayAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n $survey = $em->getRepository('SondageSurveyBundle:Survey')->find($id);\n if (!$survey) {\n throw $this->createNotFoundException('Unable to find this survey.');\n }\n\n return $this->render('SondageSurveyBundle:Survey:display.html.twig', array(\n 'survey' => $survey,\n ));\n }", "title": "" }, { "docid": "663895e98beb045be2e0c33e99dc6a65", "score": "0.5752783", "text": "public function show(restok $restok)\n {\n //\n }", "title": "" }, { "docid": "e3b51ebfe04703c114ab39fc729ba43b", "score": "0.5749091", "text": "public function show(Entry $entry)\n {\n //\n }", "title": "" }, { "docid": "49b3fe3f7253d93f1c8579116d67814a", "score": "0.5737554", "text": "public function edit() {\n $data['resources'] = Resource::get($_REQUEST['idResource']);\n $this->view->show(\"resources/updateResources\", $data);\n\n }", "title": "" }, { "docid": "a5c4f542acf75c65ff05c5578f254411", "score": "0.57365245", "text": "public function show($id)\t{\n\t\t//\n\t}", "title": "" }, { "docid": "7fb606c6d980259fc7bc2be7fb3892f7", "score": "0.57364357", "text": "public function display()\n \t{\n \t\techo $this->render();\n \t}", "title": "" }, { "docid": "78932871c36f6a29063b014a4f04161e", "score": "0.5735597", "text": "public function show(Supplier $supplier)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "7b0483ca61335e839fe505d1c7e07ea7", "score": "0.57341516", "text": "public function show($id)\n {\n echo \"Showing #$id\".\" Try changing the URL\";\n $this->rendered = true;\n }", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "cda7b02a007754bae3c8156cce73b81c", "score": "0.5718055", "text": "public function show ( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "dd1af693543629ee00d083239e902b2f", "score": "0.5717979", "text": "public function show(Retur $retur)\n {\n //\n }", "title": "" }, { "docid": "cb9307a32f6d22a33b956aed56db49ba", "score": "0.5717934", "text": "public function show($id)\n\t{\n\t\t//\n\t\t\n\t}", "title": "" }, { "docid": "c9c0812c7f53687f586de3cff87efe45", "score": "0.57175046", "text": "public function show(Human $human)\n {\n //\n }", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "7b283ba1c0546a155efc95a44dd0f9cf", "score": "0.56981397", "text": "public function show(Response $response)\n {\n //\n }", "title": "" }, { "docid": "7b283ba1c0546a155efc95a44dd0f9cf", "score": "0.56981397", "text": "public function show(Response $response)\n {\n //\n }", "title": "" }, { "docid": "6dfdcece87e2a19c38d1fa63a5bfc85a", "score": "0.5691957", "text": "public function showAction($id = NULL)\n {\n if (!$this->allowShow) {\n abort(404);\n }\n\n $this->beforeShow($id);\n $this->setHeader('title', $this->showTitle);\n\n $this->showData[$this->dataName] = $this->modelName->single($id);\n if (!$this->showData[$this->dataName]) {\n abort(404);\n }\n\n $this->afterShow();\n return $this->view('show', $this->showData);\n }", "title": "" }, { "docid": "51035ab4fcd394a0e3b07734733f45cf", "score": "0.569106", "text": "protected function show() {\n }", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" } ]
46c27f5cbcb3e165d97ed3c31b19e3a4
Introduced to help FileSockets
[ { "docid": "66f98b3d2e3e0987be35b9d6fb70a17c", "score": "0.0", "text": "function get_path($addr)\r\n {\r\n if (substr($addr['HOST'], strlen($addr['HOST']) - 1, 1) != '/' && ($addr['PATH'] == \"\" || $addr['PATH'][0] != '/'))\r\n $addr['PATH'] = '/' . $addr['PATH'];\r\n $ret = $addr['PATH'] . $addr['FILE'];\r\n if (isset($addr['QUERY'])) {\r\n if (!preg_match('~&[^a]~iUs', $addr['QUERY'])) {\r\n $addr['QUERY'] = preg_replace('~&amp;~iUs', '&', $addr['QUERY']);\r\n //ESCAPE THIS IF NEEDED!\r\n }\r\n $ret .= '?' . $addr['QUERY'];\r\n }\r\n return $ret;\r\n }", "title": "" } ]
[ { "docid": "ca6ac5e5008a2182868f3b27706c969a", "score": "0.6502187", "text": "public function socket();", "title": "" }, { "docid": "a4b38cf6bf43c21320679183c4d10179", "score": "0.64068836", "text": "public function sendfile($conn_fd, $filename, $offset = null, $length = null) {}", "title": "" }, { "docid": "70e361fdfcc0e18ccd5fe1487b25646d", "score": "0.63967866", "text": "function addUnixSocket() {}", "title": "" }, { "docid": "b566dc0fb0a36cd34b16d559466c9eb2", "score": "0.62973946", "text": "function send_files($to,$files)\n {\n if(!$this->is_connected())\n return false;\n if($this->behaviour != 1)\n return false;\n if(!$this->cn1 && !$this->cn2)\n return false;\n if(!function_exists('stream_socket_get_name'))\n return false;\n $ret['id'] = rand(0x000000,0xFFFFFF);\n $ret['files'] = array();\n $size = 0;\n for($i = 0; $i < count($files); $i++)\n if(is_file($files[$i]) && is_readable($files[$i])) {\n $ret['files'][] = array('path' => realpath($files[$i]),'name' => basename($files[$i]),'uname' => iconv('CP1251','UTF-8//IGNORE',basename($files[$i])),'size' => filesize($files[$i]));\n $size += filesize($files[$i]);\n }\n if(count($ret['files']) == 0)\n return false;\n $name = '';\n for($i = 0; $i < count($ret['files']); $i++)\n $name .= $ret['files'][$i]['name'].';'.$ret['files'][$i]['size'].';';\n $uname = iconv('CP1251','UTF-16LE//IGNORE',$name);\n $ipdata = stream_socket_get_name($this->sock,false);\n list($ip,$port) = explode(':',$ipdata);\n $ipdata = '';\n if(!$ip)\n $ip = $this->ip;\n if($this->cn1)\n $ipdata .= $ip.':2041;';\n if($this->cn2)\n $ipdata .= $ip.':443;';\n $data = pack('L2',0x01,strlen($uname)).$uname;\n $data = pack('L1',strlen($name)).$name.pack('L1',strlen($data)).$data.pack('L1',strlen($ipdata)).$ipdata;\n $data = pack('L1',strlen($to)).$to.pack('L3',$ret['id'],$size,strlen($data)).$data;\n fwrite($this->sock,$this->make_packet($this->MRIM_CS_FILE_TRANSFER,$data));\n if($this->cn1)\n $conn = stream_socket_accept($this->cn1,60);\n if($this->cn2 && !$conn)\n $conn = stream_socket_accept($this->cn2,60);\n if($conn) {\n $resp = fread($conn,512);\n if($resp != \"MRA_FT_HELLO \".$to.\"\\0\") {\n $data = pack('L2',$this->FILE_TRANSFER_STATUS_ERROR,strlen($to)).$to.pack('L2',$ret['id'],0);\n fwrite($this->sock,$this->make_packet($this->MRIM_CS_FILE_TRANSFER_ACK,$data));\n return false;\n }\n fwrite($conn,\"MRA_FT_HELLO \".$this->email.\"\\0\");\n for($j = 0; $j < count($ret['files']); $j++) {\n $resp = fread($conn,1024);\n list($cmd,$fn) = explode(' ',$resp);\n if($cmd != 'MRA_FT_GET_FILE') {\n fclose($conn);\n $data = pack('L2',$this->FILE_TRANSFER_STATUS_ERROR,strlen($to)).$to.pack('L2',$ret['id'],0);\n fwrite($this->sock,$this->make_packet($this->MRIM_CS_FILE_TRANSFER_ACK,$data));\n return false;\n }\n $fn = trim($fn);\n $flag = false;\n for($i = 0; $i < count($ret['files']); $i++)\n if($ret['files'][$i]['name'] == $fn) {\n $flag = true;\n $fp = fopen($ret['files'][$i]['path'],'r');\n while(!feof($fp))\n fwrite($conn,fread($fp,256));\n fclose($fp);\n break;\n }\n if(!$flag) {\n fclose($conn);\n $data = pack('L2',$this->FILE_TRANSFER_STATUS_ERROR,strlen($to)).$to.pack('L2',$ret['id'],0);\n fwrite($this->sock,$this->make_packet($this->MRIM_CS_FILE_TRANSFER_ACK,$data));\n return false;\n }\n }\n fclose($conn);\n } else\n $ret['error'] = true;\n return $ret;\n }", "title": "" }, { "docid": "fd881d881d189c396623fc4bbed9b5f6", "score": "0.62956446", "text": "function addTcpSocket() {}", "title": "" }, { "docid": "954ffb2cf5de498c99b9a4392f4dd3e2", "score": "0.6254574", "text": "function __construct( &$socket, $names, $file_id, $force )\n {\n parent::__construct( $socket );\n\n $this->names = $names;\n $this->file_id = $file_id;\n $this->force = $force ? true : false;\n }", "title": "" }, { "docid": "d095c85f9149c32291732121801ccebd", "score": "0.6074316", "text": "function open_file(StreamSocketInterface $socket = null, string $filenameUrl = null, $modePort = 'r', array $options = [])\n\t{\t\t\n\t\treturn Kernel::openFile($socket, $filenameUrl, $modePort, $options); \n\t}", "title": "" }, { "docid": "6950514b61446fadac07bb7316ff0be2", "score": "0.6059169", "text": "function __construct($socket, $file, $filesize, $filepointer = 0)\n\t{\n\t\t$this->socket = $socket;\n\t\t$this->filesize = $filesize;\n\t\t$this->file = fopen($file, \"rb\");\n\t\tfseek($this->file, $filepointer);\n\t}", "title": "" }, { "docid": "1652d36419f13429a6125b26e794e7c0", "score": "0.59898067", "text": "function receive_files($uinfo,$accept = true,$put = '.')\n {\n if(!$this->is_connected())\n return false;\n if(!is_array($uinfo))\n return false;\n if($this->behaviour != 1) {\n $data = pack('L2',$this->FILE_TRANSFER_STATUS_INCOMPATIBLE_VERS,strlen($uinfo['email'])).$uinfo['email'].pack('L2',$uinfo['id'],0);\n fwrite($this->sock,$this->make_packet($this->MRIM_CS_FILE_TRANSFER_ACK,$data));\n return false;\n }\n if(!$accept) {\n $data = pack('L2',$this->FILE_TRANSFER_STATUS_DECLINE,strlen($uinfo['email'])).$uinfo['email'].pack('L2',$uinfo['id'],0);\n fwrite($this->sock,$this->make_packet($this->MRIM_CS_FILE_TRANSFER_ACK,$data));\n return true;\n }\n if(!is_dir($put) || !is_writable($put)) {\n $data = pack('L2',$this->FILE_TRANSFER_STATUS_ERROR,strlen($uinfo['email'])).$uinfo['email'].pack('L2',$uinfo['id'],0);\n fwrite($this->sock,$this->make_packet($this->MRIM_CS_FILE_TRANSFER_ACK,$data));\n return false;\n }\n for($i = 0; $i < count($uinfo['ips']); $i++) {\n $conn = false;\n if($this->proxy_type) {\n $sock = fsockopen($this->proxy,$this->proxy_port,$en,$es,$this->timeout);\n if($sock)\n if($this->proxy_type == 'http') {\n if($this->proxy_user && $this->proxy_pass)\n $au = \"Proxy-Authorization: basic \".base64_encode($this->proxy_user.\":\".$this->proxy_pass).\"\\r\\n\";\n else\n $au = '';\n fputs($sock,\"CONNECT \".$uinfo['ips'][$i]['ip'].\":\".$uinfo['ips'][$i]['port'].\" HTTP/1.0\\r\\nHost: \".$uinfo['ips'][$i]['ip'].\":\".$uinfo['ips'][$i]['port'].\"\\r\\nUser-Agent: MRIM.php/3.0 (PRO; \".PHP_OS.\"; Proxy)\\r\\n\".$au.\"\\r\\n\");\n $code = intval(substr(trim(fgets($sock,1024)),9,3));\n if($code == 200) {\n while(($a = trim(fgets($sock,1024)) != ''))\n ;\n $conn = $sock;\n } else\n fclose($sock);\n } elseif($this->proxy_type == 'socks4') {\n $ip = gethostbyname($uinfo['ips'][$i]['ip']);\n if(preg_match('/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)/',$ip,$matches)) {\n $int = pack('C4',$matches[1],$matches[2],$matches[3],$matches[4]);\n $request = pack('C2',0x04,0x01).pack('n',$uinfo['ips'][$i]['port']).$int.($this->proxy_user)?$this->proxy_user:'0'.pack('C',0x00);\n fwrite($sock,$request);\n $resp = fread($sock,9);\n $answer = unpack('Cvn/Ccd',substr($resp,0,2));\n if($answer['vn'] == 0x00 && $answer['cd'] == 0x5A)\n $conn = $sock;\n else\n fclose($sock);\n } else\n fclose($sock);\n } elseif($this->proxy_type == 'socks5') {\n $flag = false;\n if($this->proxy_user && $this->proxy_pass)\n $request = pack('C4',0x05,0x02,0x00,0x02);\n else\n $request = pack('C3',0x05,0x01,0x00);\n fwrite($sock,$request);\n $resp = fread($sock,3);\n $answer = unpack('Cver/Cmethod',$resp);\n if($answer['method'] == 0x02) {\n $request = pack('C',0x01).pack('C',strlen($this->proxy_user)).$this->proxy_user.pack('C',strlen($this->proxy_pass)).$this->proxy_pass;\n fwrite($sock,$request);\n $resp = fread($sock,3);\n $answer = unpack('Cvn/Cresult',$resp);\n if($answer['vn'] != 0x01 && $answer['result'] != 0x00) {\n fclose($sock);\n $flag = true;\n } else\n $answer['method'] = 0;\n }\n if($answer['method'] == 0x00) {\n $ip = gethostbyname($uinfo['ips'][$i]['ip']);\n if(preg_match('/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)/',$ip,$matches)) {\n $int = pack('C4',$matches[1],$matches[2],$matches[3],$matches[4]);\n $request = pack('C4',0x05,0x01,0x00,0x01).$int.pack('n',$uinfo['ips'][$i]['port']);\n fwrite($fp,$request);\n $resp = fread($fp,11);\n $answer = unpack('Cver/CREP',substr($resp,0,2));\n if($answer['REP'] == 0x00)\n $conn = $sock;\n else\n fclose($sock);\n } else\n fclose($sock);\n } else\n fclose($sock);\n }\n } else\n $conn = fsockopen($uinfo['ips'][$i]['ip'],$uinfo['ips'][$i]['port'],$en,$es,$this->timeout);\n if($conn)\n break;\n }\n if(!function_exists('stream_socket_get_name') || !function_exists('stream_socket_accept')) {\n $data = pack('L2',$this->FILE_TRANSFER_STATUS_ERROR,strlen($uinfo['email'])).$uinfo['email'].pack('L2',$uinfo['id'],0);\n fwrite($this->sock,$this->make_packet($this->MRIM_CS_FILE_TRANSFER_ACK,$data));\n return false;\n }\n $passive = true;\n if(!$conn) {\n $passive = false;\n if(!$this->cn1 && !$this->cn2) {\n $data = pack('L2',$this->FILE_TRANSFER_STATUS_ERROR,strlen($uinfo['email'])).$uinfo['email'].pack('L2',$uinfo['id'],0);\n fwrite($this->sock,$this->make_packet($this->MRIM_CS_FILE_TRANSFER_ACK,$data));\n return false;\n }\n $ipdata = stream_socket_get_name($this->sock,false);\n list($ip,$port) = explode(':',$ipdata);\n if(!$ip)\n $ip = $this->ip;\n $ipdata = '';\n if($this->cn1)\n $ipdata .= $ip.':2041;';\n if($this->cn2)\n $ipdata .= $ip.':443;';\n $data = pack('L2',$this->FILE_TRANSFER_MIRROR,strlen($uinfo['email'])).$uinfo['email'].pack('L2',$uinfo['id'],strlen($ipdata)).$ipdata;\n fwrite($this->sock,$this->make_packet($this->MRIM_CS_FILE_TRANSFER_ACK,$data));\n if($this->cn1)\n $conn = stream_socket_accept($this->cn1,$this->timeout);\n if($this->cn2 && !$conn)\n $conn = stream_socket_accept($this->cn2,$this->timeout);\n }\n if(!$conn) {\n $data = pack('L2',$this->FILE_TRANSFER_STATUS_ERROR,strlen($uinfo['email'])).$uinfo['email'].pack('L2',$uinfo['id'],0);\n fwrite($this->sock,$this->make_packet($this->MRIM_CS_FILE_TRANSFER_ACK,$data));\n return false;\n }\n if($passive) {\n fwrite($conn,\"MRA_FT_HELLO \".$this->email.\"\\0\");\n $resp = fread($conn,512);\n if($resp != \"MRA_FT_HELLO \".$uinfo['email'].\"\\0\") {\n $data = pack('L2',$this->FILE_TRANSFER_STATUS_ERROR,strlen($uinfo['email'])).$uinfo['email'].pack('L2',$uinfo['id'],0);\n fwrite($this->sock,$this->make_packet($this->MRIM_CS_FILE_TRANSFER_ACK,$data));\n return false;\n }\n } else {\n $resp = fread($conn,512);\n if($resp != \"MRA_FT_HELLO \".$uinfo['email'].\"\\0\") {\n $data = pack('L2',$this->FILE_TRANSFER_STATUS_ERROR,strlen($uinfo['email'])).$uinfo['email'].pack('L2',$uinfo['id'],0);\n fwrite($this->sock,$this->make_packet($this->MRIM_CS_FILE_TRANSFER_ACK,$data));\n return false;\n }\n fwrite($conn,\"MRA_FT_HELLO \".$this->email.\"\\0\");\n }\n if(!is_resource($conn) || feof($conn)) {\n $data = pack('L2',$this->FILE_TRANSFER_STATUS_ERROR,strlen($uinfo['email'])).$uinfo['email'].pack('L2',$uinfo['id'],0);\n fwrite($this->sock,$this->make_packet($this->MRIM_CS_FILE_TRANSFER_ACK,$data));\n return false;\n }\n for($i = 0; $i < count($uinfo['name']); $i++) {\n if(is_resource($conn) && !feof($conn)) {\n $fp = fopen($put.'/'.basename($uinfo['name'][$i]['name']),'w+');\n if($fp) {\n fwrite($conn,\"MRA_FT_GET_FILE \".$uinfo['name'][$i]['name'].\"\\0\");\n for($j = 0; $j < $uinfo['name'][$i]['size']; $j++)\n fwrite($fp,fgetc($conn));\n fclose($fp);\n }\n }\n }\n fclose($conn);\n $data = pack('L2',$this->FILE_TRANSFER_STATUS_OK,strlen($uinfo['email'])).$uinfo['email'].pack('L2',$uinfo['id'],0);\n fwrite($this->sock,$this->make_packet($this->MRIM_CS_FILE_TRANSFER_ACK,$data));\n return true;\n }", "title": "" }, { "docid": "52b02625c752c47e0e6a7e58487d1776", "score": "0.5923341", "text": "function fsockopen($target,$port,&$errno,&$errstr,$timeout=NULL)\n{\n\treturn array();\n}", "title": "" }, { "docid": "d8ea0d9c7a8205a2068a87fd39d821c4", "score": "0.5855847", "text": "public function getSocket();", "title": "" }, { "docid": "d8ea0d9c7a8205a2068a87fd39d821c4", "score": "0.5855847", "text": "public function getSocket();", "title": "" }, { "docid": "e1681379b6d5fe89a14e80d0f17791c8", "score": "0.58551294", "text": "public function RemoteFiles(){\n\t\t\n\t}", "title": "" }, { "docid": "ffc5f1d36ed8daafd553951f86b3bb20", "score": "0.58322215", "text": "private function call_File() {\n\t\t\n\t\t/*\n\t\t// Check the destination host survival\n\t\tif ( My_Utility::isAliveHost( $this->host, $this->port ) === FALSE ) {\n\t\t\tself::$logger->alert( 'Failed to connect request server \"' . $this->host . ':' . $this->port . '\"' );\n\t\t\treturn false;\n\t\t}\n\t\t*/\n\t\tif ( strlen( $this->host ) > 0 && $this->host != 'localhost' ) {\n\t\t\trequire_once 'My/Exception.php';\n\t\t\tthrow new My_Exception( 'Could not support other host \"' . $this->host . '\" by this scheme ( FILE ).' );\n\t\t}\n\t\t\n\t\t//$url = $this->scheme . '://' . $this->host . $this->path;\n\t\t\n\t\tif ( ( is_file( $this->path ) && is_readable( $this->path ) ) == FALSE ) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$this->response = file_get_contents( $this->path ) ;\n\t\t\n\t\treturn true;\n\t\t\n\t}", "title": "" }, { "docid": "453ff0f61c2761ebebfbab94fcfa8255", "score": "0.580173", "text": "public function getSockets();", "title": "" }, { "docid": "9819d46967aadcfe063587f210379baf", "score": "0.5797764", "text": "function socket()\n{\n}", "title": "" }, { "docid": "46801f28bec1ff010fb46e84516a0659", "score": "0.5775639", "text": "public function sendFile($sysName, $fileName);", "title": "" }, { "docid": "a27412256916285d8eb2cab0c074b7eb", "score": "0.5674403", "text": "abstract protected function createSocketInterface();", "title": "" }, { "docid": "54b2ca1bb6ce28357fb6aac38f6d7a79", "score": "0.5657314", "text": "function file_valid(StreamSocketInterface $socket): bool\n\t{\n\t\treturn $socket->fileValid();\n\t}", "title": "" }, { "docid": "e21807566bb9dbbc31b22e43bca0ee2b", "score": "0.5654188", "text": "public function fsockopen_remote_socket(&$remote_socket)\n {\n }", "title": "" }, { "docid": "d77b318def6479132be4ea8c8c541136", "score": "0.5650297", "text": "public function transport(File $file);", "title": "" }, { "docid": "1ef763d0d0f46cfd9dd7cc01e3b5d40e", "score": "0.56134534", "text": "function socketParse()\r\n\t{\r\n\t\t//-------------------------------\r\n\t\t//\tInit\r\n\t\t//-------------------------------\r\n\t\t$data\t\t\t\t= null;\r\n\t\t$timeout\t\t\t\t= 10;\r\n\t\t$addressInfo\t\t\t= parse_url( $this->fileLocation );\r\n\t\t$errstr\t\t\t\t= '';\r\n\t\t$errno\t\t\t\t= 0;\r\n\t\t\r\n\t\t//-------------------------------\r\n\t\t//\tSet default values\r\n\t\t//-------------------------------\r\n\t\t$host\t\t\t\t= $addressInfo['host'];\r\n \t$port\t\t\t\t= ( $addressInfo['port'] ? $addressInfo['port'] : ( $addressInfo['scheme'] == 'https' ? 443 : 80 ) );\r\n \t$path\t\t\t\t= '/';\r\n \t\r\n \t//-------------------------------\r\n \t//\tDo we got host?\r\n \t//-------------------------------\r\n\t\tif ( ! $addressInfo['host'] )\r\n\t\t{\r\n\t\t\t$this->errors[] = 'Cannot find host in \"' . $this->fileLocation . '\"';\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t//-------------------------------\r\n\t\t//\tDo we got specific path?\r\n\t\t//-------------------------------\r\n \tif (! empty( $addressInfo[\"path\"] ) )\r\n\t\t{\r\n\t\t\t$path = $addressInfo[\"path\"];\r\n\t\t}\r\n \t\t\r\n\t\t//-------------------------------\r\n\t\t//\tDo we have query string?\r\n\t\t//-------------------------------\r\n\t\tif (! empty( $addressInfo[\"query\"] ) )\r\n\t\t{\r\n\t\t\t$path .= '?' . $addressInfo[\"query\"];\r\n\t\t}\r\n \t\r\n\t\t//-------------------------------\r\n\t\t//\tTry to connect via socket\r\n\t\t//-------------------------------\r\n \tif ( ($han = @fsockopen( ($port === 443 ? \"ssl://\" . $host : $host), $port, $errno, $errstr, $timeout )) === FALSE )\r\n \t{\r\n\t\t\t$this->errors[] = \"Could not use sooket to connect to \" . $host;\r\n\t\t\treturn false;\r\n \r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t//-------------------------------\r\n\t\t\t//\tPut default values\r\n\t\t\t//-------------------------------\r\n\t\t\t$content = \"\";\r\n\t\t\t\r\n\t\t\tif ( ! $this->httpAuthRequired )\r\n\t\t\t{\r\n\t\t\t\t$content = \"\\r\\n\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (! fputs( $han, \"GET \" . $path . \" HTTP/1.0\\r\\nHost:\" . $host . \"\\r\\nConnection: Keep-Alive\\r\\n\" . $content ) )\r\n\t\t\t{\r\n\t\t\t\t$this->errors[] = \"Unable to send request to \" . $host;\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//-------------------------------\r\n\t\t\t//\tDo we need to authorize ourselfs?\r\n\t\t\t//-------------------------------\r\n\t\t\tif ( $this->httpAuthRequired )\r\n\t\t\t{\r\n\t\t\t\tif ( $this->httpAuthUser && $this->httpAuthPass )\r\n\t\t\t\t{\r\n\t\t\t\t\t$header = \"Authorization: Basic \" . base64_encode( $this->httpAuthUser . ':' . $this->httpAuthPass ) . \"\\r\\n\\r\\n\";\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (! fputs( $han, $header ) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->errors[] = \"Authorization Failed.\";\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n }\r\n\t\t \r\n //-------------------------------\r\n //\tConnect\r\n //-------------------------------\r\n @stream_set_timeout($han, $timeout);\r\n \r\n $status = @socket_get_status( $han );\r\n \r\n while( ! feof($han) && ! $status['timed_out'] ) \r\n {\r\n $data .= fgets( $han, 8192);\r\n $status = socket_get_status( $han );\r\n }\r\n \r\n fclose ( $han );\r\n \r\n //-------------------------------\r\n //\tResolve the content\r\n //-------------------------------\r\n $this->httpStatusCode\t\t\t= substr( $data, 9, 3 );\r\n $this->httpStatusMessage\t\t= substr( $data, 13, ( strpos( $data, \"\\r\\n\" ) - 13 ) );\r\n\r\n $tmp\t\t\t\t\t\t\t= split(\"\\r\\n\\r\\n\", $data, 2);\r\n $data\t\t\t\t\t\t\t= $tmp[1];\r\n\r\n \t\treturn $data;\r\n\t}", "title": "" }, { "docid": "ae387c07555f4ce8885f4366fb47d27c", "score": "0.56078696", "text": "function stream_socket_client($remote_socket, &$errno = NULL, &$errstr = NULL, $timeout = false, $flags = false, $context = NULL)\n{\n}", "title": "" }, { "docid": "0875cdb43f9c87326960cb4f373a9a7a", "score": "0.55428374", "text": "public function testSendFile()\n {\n }", "title": "" }, { "docid": "8a4ac17839721a0af2a5828f4b842aee", "score": "0.54480654", "text": "abstract protected function processClient(ServerSocket $clientSocket);", "title": "" }, { "docid": "6eb8468178db13a609fa5ff96155675e", "score": "0.54471445", "text": "function dio_stat($fd) {}", "title": "" }, { "docid": "ec0dde908c96b17994c437698a5d7f08", "score": "0.54231346", "text": "function get_remote_file($host, $directory, $filename, &$errstr, &$errno, $port = 80, $timeout = 6)\n{\n\tglobal $user;\n\n\tif ($fsock = @fsockopen($host, $port, $errno, $errstr, $timeout))\n\t{\n\t\t@fputs($fsock, \"GET $directory/$filename HTTP/1.0\\r\\n\");\n\t\t@fputs($fsock, \"HOST: $host\\r\\n\");\n\t\t@fputs($fsock, \"Connection: close\\r\\n\\r\\n\");\n\n\t\t$timer_stop = time() + $timeout;\n\t\tstream_set_timeout($fsock, $timeout);\n\n\t\t$file_info = '';\n\t\t$get_info = false;\n\n\t\twhile (!@feof($fsock))\n\t\t{\n\t\t\tif ($get_info)\n\t\t\t{\n\t\t\t\t$file_info .= @fread($fsock, 1024);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$line = @fgets($fsock, 1024);\n\t\t\t\tif ($line == \"\\r\\n\")\n\t\t\t\t{\n\t\t\t\t\t$get_info = true;\n\t\t\t\t}\n\t\t\t\telse if (stripos($line, '404 not found') !== false)\n\t\t\t\t{\n\t\t\t\t\t$errstr = $user->lang['FILE_NOT_FOUND'] . ': ' . $filename;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$stream_meta_data = stream_get_meta_data($fsock);\n\n\t\t\tif (!empty($stream_meta_data['timed_out']) || time() >= $timer_stop)\n\t\t\t{\n\t\t\t\t$errstr = $user->lang['FSOCK_TIMEOUT'];\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t@fclose($fsock);\n\t}\n\telse\n\t{\n\t\tif ($errstr)\n\t\t{\n\t\t\t$errstr = utf8_convert_message($errstr);\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$errstr = $user->lang['FSOCK_DISABLED'];\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn $file_info;\n}", "title": "" }, { "docid": "2ef2472f4fe6fafb5cb1ba8da4ee441d", "score": "0.54110694", "text": "public function run() {\n // Connect to peers\n $this->bootstrap();\n\n\n /** @var $network_sockets AsyncSocket[] */\n $sockets_objects = array();\n /** @var $all_sockets resource[] */\n $all_sockets = array();\n /** @var $all_sockets resource[] */\n $all_write_sockets = array();\n\n /** @var $all_sockets AsyncSocket[] */\n $network_sockets = array_merge($this->getServerSockets(), $this->getPeers());\n\n // Translate sockets structure for stream_select\n /** @var $async_socket AsyncSocket */\n foreach($network_sockets as $async_socket) {\n $sockets_objects[] = $async_socket;\n $all_sockets[] = $async_socket->getSocketResource();\n\n // We check for write only socket with writes pending ! Else stream_select will go nuts !\n if ($async_socket->hasWritePending()) {\n $all_write_sockets[] = $async_socket->getSocketResource();\n }\n }\n\n // Duplicates array (because stream_select change arrays)\n $sockets = array(\n 'read' => $all_sockets,\n 'write' => $all_write_sockets,\n 'close' => $all_sockets,\n );\n\n // Check all sockets for read, write or error (wait .5 seconds max)\n $nb_socks = stream_select($sockets['read'], $sockets['write'], $sockets['close'], 0, 1);\n\n // Sockets have moved !\n if ($nb_socks > 0) {\n /////////////////////////////////////////\n // Read events\n foreach($sockets['read'] as $socket) {\n $socket_id = array_search($socket, $all_sockets);\n\n if ($socket_id === false) {\n $this->getLogger()->addWarning(\"Can't find a socket after stream_select : \" . $socket);\n } else {\n /** @var $sockets_object AsyncSocket */\n $sockets_object = $sockets_objects[$socket_id];\n $sockets_object->onRead();\n }\n }\n\n /////////////////////////////////////////\n // Write events\n foreach($sockets['write'] as $socket) {\n $socket_id = array_search($socket, $all_sockets);\n\n if ($socket_id === false) {\n $this->getLogger()->addWarning(\"Can't find a socket after stream_select : \" . $socket);\n } else {\n /** @var $sockets_object AsyncSocket */\n $sockets_object = $sockets_objects[$socket_id];\n $sockets_object->onWrite();\n }\n }\n\n\n /////////////////////////////////////////\n // Close events\n foreach($sockets['close'] as $socket) {\n $socket_id = array_search($socket, $all_sockets);\n\n if ($socket_id === false) {\n $this->getLogger()->addWarning(\"Can't find a socket after stream_select : \" . $socket);\n } else {\n /** @var $sockets_object AsyncSocket */\n $sockets_object = $sockets_objects[$socket_id];\n $sockets_object->onClose();\n }\n }\n }\n }", "title": "" }, { "docid": "eb7ff4807ae52ba851c814819ed79636", "score": "0.5405256", "text": "function saveContents($filename)\n\t{\n\t\tif (! ($fp = @fopen($filename, 'w+')))\n\t\t\tthrow new Naf_Net_Exception(\"Cannot open target file \" . $filename);\n\t\t\t\n\t\twhile ($buffer = fread($this->socket, 1024))\n\t\t\tfwrite($fp, $buffer);\n\t}", "title": "" }, { "docid": "04646350f1459d642cccadf8e8c94efb", "score": "0.5360502", "text": "function _connect(&$fp)\n {\n }", "title": "" }, { "docid": "b3b9733fea1e1f0a2700823b345a47a9", "score": "0.535223", "text": "function server()\n {\n $server = stream_socket_server(\"tcp://localhost:404\", $errno, $errorMessage);\n\n if ($server === false) {\n die(\"Could not bind to socket: $errorMessage\");\n }\n\n $client_socks = array();\n while (true) {\n //prepare readable sockets\n $read_socks = $client_socks;\n $read_socks[] = $server;\n\n //start reading and use a large timeout\n if (!stream_select($read_socks, $write, $except, 300000)) {\n die('something went wrong while selecting');\n }\n\n //new client\n if (in_array($server, $read_socks)) {\n $new_client = stream_socket_accept($server);\n\n if ($new_client) {\n //print remote client information, ip and port number\n echo 'Connection accepted from ' . stream_socket_get_name($new_client, true) . \"n\";\n\n $client_socks[] = $new_client;\n echo \"Now there are total \" . count($client_socks) . \" clients.n\";\n }\n\n //delete the server socket from the read sockets\n unset($read_socks[array_search($server, $read_socks)]);\n }\n\n //message from existing client\n foreach ($read_socks as $sock) {\n $data = fread($sock, 128);\n if (!$data) {\n unset($client_socks[array_search($sock, $client_socks)]);\n @fclose($sock);\n echo \"A client disconnected. Now there are total \" . count($client_socks) . \" clients.n\";\n continue;\n }\n //send the message back to client\n fwrite($sock, $data);\n }\n }\n }", "title": "" }, { "docid": "968636fec201ebdb6dc7a8957c6ba831", "score": "0.5336648", "text": "public function tell();", "title": "" }, { "docid": "968636fec201ebdb6dc7a8957c6ba831", "score": "0.5336648", "text": "public function tell();", "title": "" }, { "docid": "4d78c243cdfc17e018bfa8132a1e7cad", "score": "0.53313994", "text": "function file_contents(StreamSocketInterface $socket, int $size = 256, float $timeout_seconds = 0.5)\n\t{\n\t\treturn $socket->fileContents($size, $timeout_seconds);\n\t}", "title": "" }, { "docid": "7ee435a855e72c476efaf04f0d5d7bb3", "score": "0.52928185", "text": "public function testFsockopen() {\n $gameServerManager = $this->gameServerManager;\n $gameServerManager->updateWithMasterServer();\n $serverList = $gameServerManager->getServerList();\n\n\n $numberOfIdSet = ceil(count($serverList) / 20);\n $argSetArray = array();\n for ($i=0; $i<$numberOfIdSet; $i++) {\n $argSetArray[] = array();\n }\n\n $counter = 0;\n foreach ($serverList as $serverRecord) {\n $gameServerId = $serverRecord['game_server_id'];\n $argSetArray[$counter][] = $gameServerId;\n $counter++;\n $counter %= $numberOfIdSet;\n }\n\n define('HTTP_SERVER_PORT', 80);\n // making the php path for the fputs\n $fputsPhpPath = HTTP_PATH . 'updateTargetServer.php';\n $hostName = HTTP_HOST;\n // update each server asyncronous\n\n foreach ($argSetArray as $argSet) {\n if (!count($argSet)) {\n break;\n }\n\n $arg = implode(',', $argSet);\n\n $fp = fsockopen ($hostName, HTTP_SERVER_PORT, $errNo, $errStr, 5);\n if (!$fp) {\n echo \"Error: $errStr ($errNo)<br>\\n\";\n } else {\n socket_set_blocking($fp, false);\n fputs ($fp, \"GET {$fputsPhpPath}?serverIds={$arg} HTTP/1.0\\r\\nHost: {$hostName}\\r\\n\\r\\n\");\n //for debug\n /*\n while (!feof($fp)) {\n echo fgets($fp, 128);\n }\n */\n }\n fclose ($fp);\n echo \"Current time: \" . time() . \" [{$arg}]<br />\\n\";\n usleep(100 * 1000);\n\n }\n }", "title": "" }, { "docid": "daab9ff8e1515911f4eea041a1438708", "score": "0.5290761", "text": "public function onConnect($serv, $fd)\n {\n }", "title": "" }, { "docid": "76465957c0516dd3209fb54263f7718e", "score": "0.52822804", "text": "public function stream_stat(){\n\t\treturn fstat($this->socket);\n\t}", "title": "" }, { "docid": "acc9eaea0365b552e4e37de954420a2c", "score": "0.52622336", "text": "function socket_create(int $domain, int $type, int $protocol)\n{\n}", "title": "" }, { "docid": "08c1c13f89365504fe778281b26b55ee", "score": "0.5254591", "text": "public function receiveFile(\n string $remoteFile,\n string $localFile\n ) : ClientInterface;", "title": "" }, { "docid": "c6459dff7e66c30de15d8518cac0a48b", "score": "0.5243828", "text": "public function ftp_connect();", "title": "" }, { "docid": "888fe75645f90c9dc4c75d2f5d02c1a5", "score": "0.5225847", "text": "protected function setUp()\n {\n $this->file = sys_get_temp_dir() . '/q-fs_sockettest-' . md5(uniqid());\n\n $errno = null;\n $errstr = null;\n\t\t$this->socket = stream_socket_server('unix://' . $this->file, $errno, $errstr);\n\t\tif (!$this->socket) $this->markTestSkipped(\"Could not create socket: $errstr ($errno)\");\n \n $this->Fs_Node = new Fs_Socket($this->file);\n\n\t\tparent::setUp();\n }", "title": "" }, { "docid": "e78c2dac74fc0a4d12793db6562b3f9a", "score": "0.52246386", "text": "public function __construct($socketName);", "title": "" }, { "docid": "0108df1db7827db7b708e0867b654d60", "score": "0.52219975", "text": "public function start(){\n\n\n $this->modeOperation = 'server';\n // remove o timeout do script\n set_time_limit(0);\n\n $address = $this->address;\n $port = $this->port;\n\n // cria o socket\n $socketServer = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);\n\n // essencial para correto funcionamento de multiplos clientes, define timeout para a função socket_read\n socket_set_option($socketServer, SOL_SOCKET, SO_RCVTIMEO, array(\"sec\" => 0, \"usec\" => 50000));\n\n // vincula o socket com o endereço ip e porta\n $resultBind = @socket_bind($socketServer, $address, $port); //or die('Could not bind to address');\n \n if($resultBind === false){\n if($this->onErrorMethod != null){\n $method = $this->onErrorMethod;\n $method((object)array('ip'=>$address,'port'=>$port,'socket'=>$socketServer),$this);\n }\n return;\n }\n\n // inicia a escuta no socket criado\n socket_listen($socketServer);\n\n $ip = getHostByName(getHostName());\n $this->clients = array(array('socket'=>$socketServer,'ip'=>$ip,'port'=>$port));\n $this->clientsCompare = array(array('socket'=>$socketServer,'ip'=>$ip));\n\n \n if($this->onOpenMethod !== null){\n $method = $this->onOpenMethod;\n $response = $method((object)array('ip'=>$address,'port'=>$port,'socket'=>$socketServer),$this); \n }\n\n\n\n // loop aceitando novas conexões\n while(true){\n\n if($this->onReceiverLoopMethod !== null){\n $method = $this->onReceiverLoopMethod;\n $response = $method(reset($this->clients),$this); \n if($response === false){\n break;\n }\n }\n\n \n usleep($this->delay); \n\n $read = [];\n foreach ($this->clients as $key => $value) { \n $read[] = $value['socket'];\n }\n\n\n $this->checkConnection();\n\n // verifica se há novas mensagens\n if ( socket_select($read, $write, $except, 0) < 1) continue;\n\n $newConnection = false;\n $input = null;\n // aceita a conexão\n if (in_array($socketServer, $read)){\n $client = socket_accept($socketServer);\n\n socket_getpeername($client, $ip, $port);\n $clientData = array('ip'=>$ip,'port'=>$port,'socket'=>$client);\n $this->clients[] = $clientData; \n $this->clientsCompare[] = $clientData; \n $this->checkNewClients($clientData); \n \n }\n\n\n\n // loop lendo novas mensagens\n foreach ($this->clients as $key => $value) {\n if($key < 1)continue;\n $socket = $value['socket'];\n $ip = $value['ip'];\n \n\n\n $input = @socket_read($socket ,$this->bufferSize ); \n\n if($input === false){ \n unset($this->clients[$key]);\n continue;\n } \n\n if (!empty($input)){ \n\n if($this->socket === null )\n $this->socket = (object) array('ip'=>null,'port'=>null,'message'=>null);\n\n $this->socket->ip = $ip;\n $this->socket->port = $port;\n $this->socket->message = $input;\n \n if($this->onReceiverMethod !== null){\n $method = $this->onReceiverMethod;\n $response = $method($input,$this,$socket); \n if($response !== null){\n $this->sendToSocket($socket,$response);\n } \n }\n\n \n\n \n\n } \n\n \n }\n\n\n\n }\n\n socket_close($socketServer);\n\n if($this->onCloseMethod !== null){\n $method = $this->onCloseMethod;\n $response = $method((object)reset($this->clients),$this); \n }\n\n \n }", "title": "" }, { "docid": "51ed83cdc5a7cdfb60143f2eb73c7e7f", "score": "0.521646", "text": "protected function getWriteSockets() {\n return array();\n }", "title": "" }, { "docid": "c5d07339afd0d72f47b6d703f069e84d", "score": "0.5200461", "text": "function addTcpResolver() {}", "title": "" }, { "docid": "a8799294c42382d134c232da8d32be92", "score": "0.5198288", "text": "function addUdpSocket() {}", "title": "" }, { "docid": "22313ee1c400e15ce7100e4d4150bb3b", "score": "0.51979065", "text": "function offerFile($param){\t\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "d968da692c665b2362f498f8caad54ac", "score": "0.5182741", "text": "protected function createServer()\n {\n if ($this->localSocket) {\n // Parse socket name like `tcp://0.0.0.0:8090`.\n // TODO: Support Unix domain\n $list = explode(':', $this->localSocket);\n $this->protocol = $list[0] ?? null;\n $this->address = $list[1] ? ltrim($list[1], '\\/\\/') : null;\n $this->port = $list[2] ?? null;\n\n // `Stream` extension instead of `Socket` extension in order to support fread/fwrite on connection.\n //\n // 封装体可用的少量套接字选项.\n // Available Socket Context Options for all wrappers.\n // @doc http://php.net/manual/en/context.socket.php\n $options = [\n 'socket' => [\n // The syntax is ip:port for IPv4, and [ip]:port for IPv6.\n // Setting the IP or port to 0 will let the system choose\n // the IP and/or port.\n 'bindto' => $this->address . ':' . $this->port,\n\n // Used to liimit the number of outstanding connections in the socket's listen queue.\n 'backlog' => $this->backlog,\n\n // PHP7.0.1\n // Overrides the OS default regarding mapping IPv4 into IPv6.\n //'ipv6_v6only' => '',\n\n // 7.0.0\n // Allows multiple bindings to a same ip:port pair.\n // Avoid thundering herd.\n 'so_reuseport' => true,\n\n // PHP7.0.0\n // Enables sending and receiving data to/from broadcast addresses.\n //'so_broadcast' => '',\n\n // PHP7.1.0\n // Setting this to TRUE will set SOL_TCP,NO_DELAY=1\n // appropriately, thus disabling the TCP Nagle algorithm.\n //'tcp_nodelay' => true,\n ],\n ];\n $params = null;\n $context = stream_context_create($options, $params);\n\n // Creates a stream or datagram socket on the specified local socket.\n $errno = 0;\n $errstr = '';\n $flags = ($this->protocol === 'udp') ? STREAM_SERVER_BIND : STREAM_SERVER_BIND | STREAM_SERVER_LISTEN;\n $this->socketStream = stream_socket_server($this->localSocket, $errno, $errstr, $flags, $context);\n if (! $this->socketStream) {\n throw new Exception(sprintf('Create socket server fail, errno: %s, errstr: %s', $errno, $errstr));\n }\n\n // 把封装了套接字的流导入到socket扩展的资源中.\n // Imports a stream that encapsulates a socket into a socket extension resource.\n $socket = socket_import_stream($this->socketStream);\n\n if ($socket !== false && $socket !== null) {\n // 套接字可用的全量套接字选项.\n // Available Socket Options for the socket.\n // @doc http://php.net/manual/en/function.socket-get-option.php\n\n // Level number: `php -r \"print_r(getprotobyname('tcp'));\"`, SOL_TCP==6\n // @doc http://php.net/manual/en/function.getprotobyname.php;\n\n // Connections are kept active with periodic transmission of messages,\n // if the connected socket fails to respond to these messages,\n // the connection is broken and processes writing to that socket are notified with a SIGPIPE signal.\n socket_set_option($socket, SOL_SOCKET, SO_KEEPALIVE, 1);\n\n // Nagle TCP algorithm is disabled.\n socket_set_option($socket, SOL_TCP, TCP_NODELAY, 1);\n }\n\n // Switch to non-blocking mode, affacts calls like fgets and fread that read from the stream.\n // In non-blocking mode, an fgets call will always return right away.\n if (! stream_set_blocking($this->socketStream, false)) {\n throw new Exception('Switch to non-blocking mode fail');\n }\n\n // Store current process his socket stream.\n $this->read[] = $this->socketStream;\n $this->write[] = $this->socketStream;\n $this->except = [];\n }\n }", "title": "" }, { "docid": "e80cb0f1ba88669afee4a96b875e0275", "score": "0.5172682", "text": "function addUnixAcceptor() {}", "title": "" }, { "docid": "81c037db18c0ff4f73e3146eb6da7839", "score": "0.51705146", "text": "private function switchGetServerFile(){\n if (in_array($this->func, jboConf::$selectorServerFiles)){\n \n jboTools::sendArchivoMadre($this->func);\n }\n die;\n}", "title": "" }, { "docid": "152542d48dc00eef250450941324d3ed", "score": "0.514676", "text": "public abstract function tell();", "title": "" }, { "docid": "94bb87a65f2e4289808ab7b1ff6477bf", "score": "0.51449746", "text": "public function getSocketData();", "title": "" }, { "docid": "95ffe4ce02620c20cae421b7a38f4181", "score": "0.51439977", "text": "public function uploading ($Socket) : int\n {\n $Handler = @fopen($this->uploading[0]['file'], 'r');\n $parts = $this->uploading[0]['parts'];\n $pads = $this->uploading[0]['pads'];\n $close = $this->uploading[0]['close'];\n\n $written = 0;\n\n foreach ($parts as $index => $part) {\n $offset = $part['offset'];\n $length = $part['length'];\n\n $pad = $pads[$index] ?? null;\n\n // @ Move pointer of file to offset\n try {\n @fseek($Handler, $offset, SEEK_SET);\n } catch (\\Throwable) {\n return $written;\n }\n\n // @ Prepend\n if ( ! empty($pad['prepend']) ) {\n try {\n $sent = @fwrite($Socket, $pad['prepend']);\n } catch (\\Throwable) {\n break;\n }\n\n if ($sent === false) break;\n\n $written += $sent;\n // TODO check if the data has been completely sent\n }\n\n // @ Set over / rate\n $over = 0;\n $rate = 1 * 1024 * 1024; // 1 MB (1048576) = Max rate to read/send data file by loop\n\n if ($length < $rate) {\n $rate = $length;\n } else if ($length > $rate) {\n $over = $length % $rate;\n }\n\n // @ Upload File\n if ($over > 0) {\n $written += $this->upload($Socket, $Handler, $over, $over);\n // TODO check if the data has been completely sent\n $length -= $over;\n }\n\n $written += $this->upload($Socket, $Handler, $rate, $length);\n\n // @ Append\n if ( ! empty($pad['append']) ) {\n try {\n $sent = @fwrite($Socket, $pad['append']);\n } catch (\\Throwable) {\n break;\n }\n\n if ($sent === false) break;\n\n $written += $sent;\n // TODO check if the data has been completely sent\n }\n }\n\n // @ Try to close the file Handler\n try {\n @fclose($Handler);\n } catch (\\Throwable) {}\n\n // @ Unset current uploading\n unSet($this->uploading[0]);\n\n // @ Try to close the Socket if requested\n if ($close) {\n try {\n $this->Connection->close();\n } catch (\\Throwable) {}\n }\n\n return $written;\n }", "title": "" }, { "docid": "3edc8d6bcaa254b48dffb070ec81788b", "score": "0.5143461", "text": "function get_remote_file($host, $directory, $filename, &$errstr, &$errno, $port = 80, $timeout = 10)\n{\n\tif ($fsock = @fsockopen($host, $port, $errno, $errstr, $timeout))\n\t{\n\t\t@fputs($fsock, \"GET $directory/$filename HTTP/1.1\\r\\n\");\n\t\t@fputs($fsock, \"HOST: $host\\r\\n\");\n\t\t@fputs($fsock, \"Connection: close\\r\\n\\r\\n\");\n\n\t\t$file_info = '';\n\t\t$get_info = false;\n\n\t\twhile (!@feof($fsock))\n\t\t{\n\t\t\tif ($get_info)\n\t\t\t{\n\t\t\t\t$file_info .= @fread($fsock, 1024);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$line = @fgets($fsock, 1024);\n\t\t\t\tif ($line == \"\\r\\n\")\n\t\t\t\t{\n\t\t\t\t\t$get_info = true;\n\t\t\t\t}\n\t\t\t\telse if (stripos($line, '404 not found') !== false)\n\t\t\t\t{\n\t\t\t\t\t$errstr = 'The requested file could not be found.' . ': ' . $filename;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t@fclose($fsock);\n\t}\n\telse\n\t{\n\t\tif ($errstr)\n\t\t{\n\t\t\t$errstr = utf8_convert_message($errstr);\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$errstr = 'The operation could not be completed because the <var>fsockopen</var> function has been disabled or the server being queried could not be found.';\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn $file_info;\n}", "title": "" }, { "docid": "8dae1d17bf45a55740d87537760d26f3", "score": "0.51389474", "text": "public function run()\n\t{\n\t\t// Get the server IP and the TCP port from the configuration infos\n\t\t//$infos = explode(\":\", $this->server);\n\t\t// socket creation\n\t\t$ncid_socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);\n\t\tif ($ncid_socket === false) {\n\t\t\t$this->debug(\"NCID : socket creation failed\", 'NCID');\n\t\t}\n\t\t// socket connection\n\t\t$ncid_result = socket_connect($ncid_socket, $this->server, $this->port);\n\t\tif ($ncid_result === false) {\n $this->debug(\"NCID : socket connection failed\", 'NCID');\n }\n\t\t// read the the flow line by line from the daemon\n\t\t// When the 300 code is read, the connection can be closed\n\t\t$read_buffer = '';\n\t\t$line_index = 0;\n\t\t$continued_flag = true;\n\t\twhile ($continued_flag) {\n\t\t\t$out = socket_read($ncid_socket, 256, PHP_NORMAL_READ);\n\t\t\tif (substr($out,0,3) == '300') {\n\t\t\t\t// Last line of the received list\n\t\t\t\t// we can close the socket\n\t\t\t\t$continued_flag = false;\n\t\t\t}\n\t\t\telseif (substr($out,0,3) == '200') {\n\t\t\t\t// First line of the received list\n\t\t\t\t// do nothing\n\t\t\t\t$continued_flag = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// in the other cases\n\t\t\t\t// decode the line and build the response \n\t\t\t\t// line structue : \n\t\t\t\t// CIDLOG: *DATE*01092014*TIME*1207*LINE*RTC*NMBR*0606060606*MESG*NONE*NAME*Name*\n\t\t\t\t$exploded_line = explode('*', $out);\n\t\t\t\t// if no name given, put empty string\n\t\t\t\tif ($exploded_line[12] == 'OUT-OF-AREA') {\n\t\t\t\t\t$exploded_line[12] = '';\n\t\t\t\t}\n\t\t\t\t// if number is PRIVATE (unknown) put '-'\n\t\t\t\tif ($exploded_line[8] == 'PRIVATE') {\n\t\t\t\t\t$exploded_line[8] = '-';\n }\n\t\t\t\t$this->data[] = array('pos' => $line_index, 'dir' => '1', 'date' => substr($exploded_line[2], 2,2).'.'.substr($exploded_line[2], 0,2).'.'.substr($exploded_line[2], 4,4).' '.substr($exploded_line[4], 0,2).':'.substr($exploded_line[4], 2,2), 'number' => $exploded_line[8], 'name' => $exploded_line[12], 'duration' => '--:--');\n \t\t\t}\n\t\t$line_index ++;\n\t\t}\n\t\t// sort the retreive list to have LIFO order\n\t\tkrsort($this->data);\n\t\t// end of connection\n\t\tsocket_close($ncid_socket);\n\n\t}", "title": "" }, { "docid": "2c7421b87b22559768a88a75d812dd2c", "score": "0.51304764", "text": "public function fsockopen_remote_host_path(&$path, $url)\n {\n }", "title": "" }, { "docid": "3091ad2f44c25413659e8fde7d01920f", "score": "0.5125064", "text": "function ssh2_scp_send($session, $local_file, $remote_file, $create_mode = 644)\n{\n}", "title": "" }, { "docid": "c12c9b9c9307d868acd76ec80239da4f", "score": "0.51242566", "text": "protected function initializeIO() {}", "title": "" }, { "docid": "eb4a3f8d22afbbcc47bb77de428701b3", "score": "0.51231664", "text": "function get_contents_with_socket($file_location)\r\n\t{\r\n\t\t$data = null;\r\n\t\t$fsocket_timeout = 10;\r\n\t\t$url_parts = parse_url($file_location);\r\n\t\tif (!$url_parts['host'])\r\n\t\t{\r\n\t\t\t$this->errors[] = \"No host found in the URL '$file_location'!\";\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t$host = $url_parts['host'];\r\n\t\t$port = (isset($url_parts['port'])) ? $url_parts['port'] : 80;\r\n\t\tif (!empty($url_parts[\"path\"]))\r\n\t\t{\r\n\t\t\t$path = $url_parts[\"path\"];\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$path = \"/\";\r\n\t\t}\r\n\t\tif (!empty($url_parts[\"query\"]))\r\n\t\t{\r\n\t\t\t$path .= \"?\" . $url_parts[\"query\"];\r\n\t\t}\r\n\t\tif (!$fp = @fsockopen($host, $port, $errno, $errstr, $fsocket_timeout))\r\n\t\t{\r\n\t\t\t$this->errors[] = \"No response from $host!\";\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif (! fputs($fp, \"GET $path HTTP/1.0\\r\\nHost:$host\\r\\nCache-Control: max-age=0\\r\\nConnection: Close\\r\\n\\r\\n\"))\r\n\t\t\t{\r\n\t\t\t\t$this->errors[] = \"Unable to send request to $host!\";\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\t\t@stream_set_timeout($fp, $fsocket_timeout);\r\n\t\t$status = @socket_get_status($fp);\r\n\t\twhile(! feof($fp) && !$status['timed_out'])\r\n\t\t{\r\n\t\t\t$data .= fgets ($fp,8192);\r\n\t\t\t$status = socket_get_status($fp);\r\n\t\t}\r\n\t\tfclose ($fp);\r\n\t\t$tmp = split(\"\\r\\n\\r\\n\", $data, 2);\r\n\t\t$data = $tmp[1];\r\n\t\treturn $data;\r\n\t}", "title": "" }, { "docid": "80272625fd4978e6586956a2670389f2", "score": "0.5116075", "text": "protected function _initFTPConnection()\n {\n }", "title": "" }, { "docid": "e48cf2853b02437f9702627e97866574", "score": "0.51135033", "text": "abstract public function opened();", "title": "" }, { "docid": "1207172736ae70e6e1e7dac49833c957", "score": "0.5112281", "text": "function socketStatus(&$fh)\n {\n $return = false;\n if (is_resource($fh)) {\n $temp = socket_get_status($fh);\n if ($temp['timed_out']) {\n $this->_log('raw', 'e', 'SOCKET TIMED OUT');\n $return = true;\n }\n if ($temp['eof']) {\n $this->_log('raw', 'e', 'SOCKET EOF');\n $return = true;\n }\n unset($temp);\n }\n return $return;\n }", "title": "" }, { "docid": "b81cf347b7f27edc7a23ba130aa785ae", "score": "0.5098362", "text": "function tell () {\n return ftell($this->sock);\n }", "title": "" }, { "docid": "a85830b3d3c986559873cbd1905ffaf5", "score": "0.5094893", "text": "public function getSocket($name);", "title": "" }, { "docid": "e2acb09e110a590a7a76bb7ffc36c8c0", "score": "0.5088923", "text": "protected function getReadSockets() {\n return array();\n }", "title": "" }, { "docid": "70ec6430fa968da99fd91e8b51e857ea", "score": "0.50801677", "text": "abstract protected function open();", "title": "" }, { "docid": "a959dcb96fb8bef2a326c3ae1c75ee16", "score": "0.50691503", "text": "public function testCreate_Preserve()\n {\n $this->setExpectedException('Q\\Fs_Exception', \"Unable to create socket '{$this->file}'. Use Fs_Socket::listen() instead\");\n \t$this->Fs_Node->create(0660, Fs::PRESERVE);\n }", "title": "" }, { "docid": "cebfb2d8f40393b3c7e5bbee48c4c7a9", "score": "0.5054329", "text": "public function files();", "title": "" }, { "docid": "76142f8e89d932a4e0745f6179676b8c", "score": "0.5045811", "text": "abstract function open();", "title": "" }, { "docid": "09f736d85c051e7975b9782dfa9c7a3f", "score": "0.50400275", "text": "function connect()\n\t{\n\t\tif (! ($this->socket = @fsockopen($this->host, $this->port)))\n\t\t\tthrow new Naf_Net_Exception(\"Cannot connect to socket\");\n\t\t\n\t\t$headers = \"GET {$this->path} HTTP/1.0\\r\\n\";\n\t\t$headers .= \"Host: {$this->host}\\r\\n\";\n\t\t$headers .= \"Connection: Close\\r\\n\";\n\t\t\n\t\tif ($this->username && $this->password)\n\t\t\t$headers .= \"Authorization: Basic \".base64_encode($this->username . \":\" . $this->password).\"\\r\\n\";\n\t\t\n\t\t$headers .= \"\\r\\n\";\n\n\t\tif (false === fputs($this->socket, $headers))\n\t\t\tthrow new Naf_Net_Exception(\"Write to socket failed\");\n\t\t\n\t\t$response = fgets($this->socket);\n\t\tif (0 == substr_count($response, \"200 OK\"))\n\t\t\tthrow new Naf_Net_Exception($this->host . \" responded with an error: \" . $response);\n\t\t\n\t\twhile ($line = fgets($this->socket)) {\n\t\t\tif (\"\\r\\n\" == $line)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tlist($name, $value) = explode(\":\", $line, 2);\n\t\t\t$value = trim($value);\n\t\t\tif (preg_match(\"/filename\\s*=\\s*(.+)/i\", $value, $matches))\n\t\t\t\t$this->responseFilename = $matches[1];\n\t\t\t\n\t\t\t$this->responseHeaders[strtolower($name)] = $value;\n\t\t}\n\t\t\n\t\tif (! strlen($this->responseFilename))\n\t\t\t$this->responseFilename = basename($this->url);\n\t}", "title": "" }, { "docid": "12f638a4c956b864bd80295b7dee8efe", "score": "0.50355774", "text": "function send_file($file){\n \t$host = '192.168.15.96';\n\t\t$usr = 'transfer_nb';\n\t\t$pwd = 'sagoShip123';\n\t\t$local_file = './upload/'.$file.'.txt';\n\t\t$ftp_path = '/data/rawrecords/nb_extract/'.$file.'.txt';\n\n\t\t$local_file2 = './upload/success/'.$file.'.txt';\n\t\t$ftp_path2 = '/data/rawrecords/nb_extract/success/'.$file.'.txt';\n\n\t\t$conn_id = ftp_connect($host, 21) or die (\"Cannot connect to host\");\n\t\tftp_login($conn_id, $usr, $pwd) or die(\"Cannot login\");\n\n\t\t$upload = ftp_put($conn_id, $ftp_path, $local_file, FTP_ASCII);\n\t\tprint (!$upload) ? 'Cannot upload' : 'Upload complete';\n\t\tprint \"\\n\";\n\n\t\tif (!function_exists('ftp_chmod')) {\n\t\t function ftp_chmod($ftp_stream, $mode, $filename){\n\t\t return ftp_site($ftp_stream, sprintf('CHMOD %o %s', $mode, $filename));\n\t\t }\n\t\t}\n\t\t \n\t\tif (ftp_chmod($conn_id, 0666, $ftp_path) !== false) {\n\t\t print $ftp_path . \" chmoded successfully to 666\\n\";\n\t\t} else {\n\t\t print \"could not chmod $file\\n\";\n\t\t}\n\n\t\t$upload2 = ftp_put($conn_id, $ftp_path2, $local_file2, FTP_ASCII);\n\n\t\tprint (!$upload2) ? 'Cannot upload' : 'Success';\n\t\tprint \"\\n\";\n\n\t\tftp_close($conn_id);\n }", "title": "" }, { "docid": "4a9a7819b5396db6a4588dbf14740a8f", "score": "0.5033228", "text": "function event_buffer_fd_set($bevent, $fd)\n{\n}", "title": "" }, { "docid": "6a4cc99b18fd0d6876b0ea86e1704dc8", "score": "0.5030622", "text": "public function socket(){\n\t\treturn $this->_socket;\n\t}", "title": "" }, { "docid": "ff577e436d404bb9aa66853a205da518", "score": "0.503046", "text": "public function stdWrap_filelink() {}", "title": "" }, { "docid": "84bececd488ef151e7f7a86b50b64e5b", "score": "0.50224966", "text": "public function getFileMountRecords() {}", "title": "" }, { "docid": "26724ca1a750293c88db1b2d4657f348", "score": "0.5020627", "text": "function InputStream ( &$oSocket )\n\t{\n\t\t/*\n\t\t\t\n\t\t*/\n\t\tif( get_parent_class($oSocket) == 'socket' )\n\t\t{\n\t\t\t$this->oSocket = &$oSocket;\n\t\t}//if\n\t}", "title": "" }, { "docid": "c18b46104cc16017158ea5ee902257aa", "score": "0.50143504", "text": "function _fileHandler($errno, $errstr, $errfile, $errline, $context)\n {\n if (!($errno && $this->_level)) return;\n \n switch ($errno) {\n case E_ERROR:\n case E_USER_ERROR:\n $msg = \"ERROR: $errfile($errline): $errstr\\n\";\n\n if ($this->_apd_enabled) {\n $msg .= \" Backtrace:\\n\";\n \n foreach (apd_callstack() AS $key => $call) {\n $msg .= \" \";\n $msg .= basename($call[1]) .\":\". $call[2] .\" - \";\n $msg .= $call[0] .\"(\";\n\n foreach ($call[3] AS $key => $val) {\n $msg .= $val;\n if ($key != count($call[3])) {\n $msg .= \", \";\n }\n }\n \n $msg .= \")\\n\";\n }\n }\n\n fputs($this->_fp, $msg);\n exit(1);\n break;\n \n case E_WARNING:\n case E_USER_WARNING:\n $msg = \"WARNING: $errfile($errline): $errstr\\n\";\n fputs($this->_fp, $msg);\n break;\n \n case E_NOTICE:\n case E_USER_NOTICE:\n $msg = \"NOTICE: $errfile($errline): $errstr\\n\";\n fputs($this->_fp, $msg);\n break;\n }\n\n return true;\n }", "title": "" }, { "docid": "a320633b91eae7beb8f1a9c0d1f83a63", "score": "0.5013279", "text": "function fileinode($filename)\n{\n return 0;\n}", "title": "" }, { "docid": "c8c5c78dc9160940024f6ee39fb6963a", "score": "0.5013022", "text": "abstract function onListen();", "title": "" }, { "docid": "1c3ffa724e3464dff082c21670435caf", "score": "0.5010774", "text": "function socket_addrinfo_bind($addr) {}", "title": "" }, { "docid": "1f105d93e4f68e4d113d9653f8cb522f", "score": "0.5002944", "text": "public static function forgetFileEvent();", "title": "" }, { "docid": "6faf61b9dbc548db5d30db9f4a1e1a8d", "score": "0.50024545", "text": "function update_file($fds, $fd) {\n for ($i=0; $i<sizeof($fds); $i++) {\n if ($fds[$i]->physical_name == $fd->physical_name) {\n $fds[$i] = $fd;\n return $fds;\n }\n }\n $fds[] = $fd;\n return $fds;\n}", "title": "" }, { "docid": "5308ae53a720c06ca32cdb3af261d412", "score": "0.5000419", "text": "function socket_addrinfo_connect($addr) {}", "title": "" }, { "docid": "51a897695c8b1ba0500e55020a42266b", "score": "0.49933857", "text": "public function file();", "title": "" }, { "docid": "1396aaa79bfdbd50cd8e6e7c60b96371", "score": "0.49828047", "text": "function get_file($remote, $local) {\n /* get hostname and path of the remote file */\n $host = parse_url($remote, PHP_URL_HOST);\n $path = parse_url($remote, PHP_URL_PATH);\n \n /* prepare request headers */\n $reqhead = \"GET $path HTTP/1.1\\r\\n\" . \"Host: $host\\r\\n\" . \"Connection: Close\\r\\n\\r\\n\";\n \n /* open socket connection to remote host on port 80 */\n $fp = fsockopen($host, 8080, $errno, $errmsg, 30);\n \n /* check the connection */\n if (!$fp) {\n print \"Cannot connect to $host!\\n\";\n return false;\n }\n \n /* send request */\n fwrite($fp, $reqhead);\n \n /* read response */\n $res = \"\";\n while(!feof($fp)) {\n $res .= fgets($fp, 4096);\n } \n fclose($fp);\n \n /* separate header and body */\n $neck = strpos($res, \"\\r\\n\\r\\n\");\n $head = substr($res, 0, $neck);\n $body = substr($res, $neck+4);\n \n /* check HTTP status */\n $lines = explode(\"\\r\\n\", $head);\n preg_match('/HTTP\\/(\\\\d\\\\.\\\\d)\\\\s*(\\\\d+)\\\\s*(.*)/', $lines[0], $m);\n $status = $m[2];\n \n if ($status == 200) {\n file_put_contents($local, $body);\n return(true);\n } else {\n return(false);\n }\n}", "title": "" }, { "docid": "82562f183e26ffc9509c2df05cf127ac", "score": "0.4976096", "text": "private function create_sockets() {\n\t\t$this->request_socket = socket_create( AF_INET, SOCK_STREAM, 0 );\n\t\tsocket_set_option( $this->request_socket, SOL_SOCKET, SO_REUSEADDR, 1);\n\t\t// bind(2) ensures we don't start multiple services\n\t\tif ( ! socket_bind( $this->request_socket, $this->request_address, $this->request_port ) ) {\n\t\t\tsocket_close( $this->request_socket );\n\t\t\treturn false;\n\t\t}\n\t\tsocket_listen( $this->request_socket, $this->request_backlog );\n\t\t// Prepare to accept connections from Workers ready for requests\n\t\t$this->offer_socket = socket_create( AF_INET, SOCK_STREAM, 0 );\n\t\tsocket_set_option($this->offer_socket, SOL_SOCKET, SO_REUSEADDR, 1);\n\t\twhile ( ! socket_bind( $this->offer_socket, $this->offer_address, $this->offer_port ) )\n\t\t\t++$this->offer_port;\n\t\tsocket_listen( $this->offer_socket, $this->offer_backlog );\n\t\t// Prepare to accept connections from Workers ready with responses\n\t\t$this->response_socket = socket_create( AF_INET, SOCK_STREAM, 0 );\n\t\tsocket_set_option($this->response_socket, SOL_SOCKET, SO_REUSEADDR, 1);\n\t\twhile ( ! socket_bind( $this->response_socket, $this->response_address, $this->response_port ) )\n\t\t\t++$this->response_port;\n\t\tsocket_listen( $this->response_socket, $this->response_backlog );\n\t\treturn true;\n\t}", "title": "" }, { "docid": "94132633b78c9088996659fde97c28f4", "score": "0.49718636", "text": "function sock()\r\n\t{\r\n\t\tif(!empty($this->proxyhost) && !empty($this->proxyport))\r\n\t\t $socket = @fsockopen($this->proxyhost,$this->proxyport);\r\n\t\telse\r\n\t\t $socket = @fsockopen($this->host,$this->port);\r\n\t\t\r\n\t\tif(!$socket)\r\n\t\t die(\"Error: Host seems down\");\r\n\t\t\r\n\t\tif($this->method=='get')\r\n\t\t $this->packet = 'GET '.$this->url.\" HTTP/1.1\\r\\n\";\r\n\t\t \r\n\t\telseif($this->method=='post' or $this->method=='formdata')\r\n\t\t $this->packet = 'POST '.$this->url.\" HTTP/1.1\\r\\n\";\r\n\t\t \r\n\t\telse\r\n\t\t die(\"Error: Invalid method\");\r\n\t\t\r\n\t\tif(!empty($this->proxyuser))\r\n\t\t $this->packet .= 'Proxy-Authorization: Basic '.base64_encode($this->proxyuser.':'.$this->proxypass).\"\\r\\n\";\r\n\t\t\r\n\t\tif(!empty($this->header))\r\n\t\t $this->packet .= $this->showheader();\r\n\t\t \r\n\t\tif(!empty($this->cookie))\r\n\t\t $this->packet .= 'Cookie: '.$this->showcookie().\"\\r\\n\";\r\n\t\r\n\t\t$this->packet .= 'Host: '.$this->host.\"\\r\\n\";\r\n\t\t$this->packet .= \"Connection: Close\\r\\n\";\r\n\t\t\r\n\t\tif($this->method=='post')\r\n\t\t{\r\n\t\t\t$this->packet .= \"Content-Type: application/x-www-form-urlencoded\\r\\n\";\r\n\t\t\t$this->packet .= 'Content-Length: '.strlen($this->data).\"\\r\\n\\r\\n\";\r\n\t\t\t$this->packet .= $this->data.\"\\r\\n\";\r\n\t\t}\r\n\t\telseif($this->method=='formdata')\r\n\t\t{\r\n\t\t\t$this->packet .= 'Content-Type: multipart/form-data; boundary='.str_repeat('-',27).$this->boundary.\"\\r\\n\";\r\n\t\t\t$this->packet .= 'Content-Length: '.strlen($this->data).\"\\r\\n\\r\\n\";\r\n\t\t\t$this->packet .= $this->data;\r\n\t\t}\r\n\r\n\t\t$this->packet .= \"\\r\\n\";\r\n\t\t$this->recv = '';\r\n\r\n\t\tfputs($socket,$this->packet);\r\n\r\n\t\twhile(!feof($socket))\r\n\t\t $this->recv .= fgets($socket);\r\n\r\n\t\tfclose($socket);\r\n\r\n\t\tif($this->cookiejar)\r\n\t\t $this->getcookie();\r\n\r\n\t\tif($this->allowredirection)\r\n\t\t return $this->getredirection();\r\n\t\telse\r\n\t\t return $this->recv;\r\n\t}", "title": "" }, { "docid": "f071c22521a57c7190e5660ffa3ddc47", "score": "0.49706945", "text": "public function testAddReceivingProcessFile()\n {\n }", "title": "" }, { "docid": "157dbbe0246c7c5e7cf65a86988a9ea7", "score": "0.49693885", "text": "function mapi_open() {\n\t\t$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);\n\t\tif ($socket == FALSE) {\n\t\t\t$last_error = socket_strerror(socket_last_error());\n\t\t\treturn FALSE;\n\t\t}\n\n\t\treturn $socket;\n\t}", "title": "" }, { "docid": "e0d3ba0220bc2b83cdb3ab11a97b9c22", "score": "0.49671966", "text": "private function _listen()\n {\n $read = array($this->_socket);\n if (socket_select($read, $w = null, $e = null, 0)) {\n unset($e, $w);\n $this->spawn();\n if ($this->_role == 'child') {//we are the new process\n $conn = socket_accept($this->_socket);\n if (false === $conn) {\n throw new \\Seraphp\\Exceptions\\IOException(\n socket_strerror(socket_last_error())\n );\n }\n $this->_accepting = false;\n socket_set_nonblock($conn);\n try {\n $result = $this->process(\n \\Seraphp\\Comm\\RequestFactory::create($conn),\n $this->_timeout\n );\n } catch (\\Seraphp\\Exceptions\\IOException $e) {\n self::$_log->alert('Error: '.$e->getMessage());\n //stream_socket_shutdown($conn, STREAM_SHUT_RDWR);\n socket_shutdown($conn, 2);\n $result = 0;\n } catch (\\Exception $e) {\n self::$_log->alert('Error: '.$e->getMessage());\n //stream_socket_sendto(\n fwrite(\n $conn,\n 'HTTP/1.0 500 Internal Server Error'\n );\n $result = 1;\n }\n //stream_socket_shutdown($conn, STREAM_SHUT_RDWR);\n @socket_shutdown($conn, 2);\n @socket_close($conn);\n exit($result);\n }\n }\n return;\n }", "title": "" }, { "docid": "4e86426d0c7d77304e0fd2359ec85844", "score": "0.49656972", "text": "public function bind($fd, $uid) {}", "title": "" }, { "docid": "ef2cd8a5d280756eddda14fad38fb014", "score": "0.4964762", "text": "public function init_file_stream_transfer($name, $size, array $opt = array(), $meth = 0x00)\n\t{\n\t\t// if we're using a container directory, prepend it to the filename\n\t\tif ($this->use_container_dir)\n\t\t{\n\t\t\t// the container directory will end with a '/' so ensure the filename doesn't start with one\n\t\t\t$name = $this->container_dir_name . preg_replace('/^\\\\/+/', '', $name);\n\t\t}\n\n\t\t$algo = 'crc32b';\n\n\t\t// calculate header attributes\n\t\t$this->len = gmp_init(0);\n\t\t$this->zlen = gmp_init(0);\n\t\t$this->hash_ctx = hash_init($algo);\n\n\t\t// Send file header\n\t\t$this->add_stream_file_header($name, $size, $opt, $meth);\n\t}", "title": "" }, { "docid": "6068eb40efde55db7820c84e6da5851e", "score": "0.4957459", "text": "function __construct($socket, &$buffer)\n {\n // who is client?\n $ret = socket_getpeername($socket, $this->remote_host, $this->remote_port);\n if($ret === false) {\n $this->bad_request = true;\n $this->error_code = 500;\n return;\n }\n\n // read request header\n $header = read_header($socket, $buffer);\n if($header === null) {\n $this->bad_request = true;\n $this->error_code = 500;\n return;\n }\n\n // set $method, $uri and $version\n $this->set_request_line($header);\n if($this->bad_request)\n return;\n\n // parse $uri in an associative array containing its parts\n $uri = parse_uri($this->uri);\n if($uri === null) {\n $this->bad_request = true;\n $this->error_code = 400;\n return;\n }\n $this->uri = $uri;\n\n // parse headers\n $this->set_request_headers($header);\n if($this->bad_request)\n return;\n\n // check errors in header\n if($this->is_bad_header())\n return;\n\n // read body if method is POST\n if($this->method == \"POST\") {\n if($this->is_header_set(\"content-length\"))\n $length = intval($this->get_header(\"content-length\"));\n else\n $length = 0;\n $body = read_body($socket, $length, $buffer);\n if($body === null) {\n $this->bad_request = true;\n $this->error_code = 500;\n return;\n }\n if($body === -1) {\n $this->bad_request = true;\n $this->error_code = 400;\n return;\n }\n $this->body = $body;\n }\n }", "title": "" }, { "docid": "92af8b0543506ed9b9b66ccd976f975e", "score": "0.49480864", "text": "public function communicate();", "title": "" }, { "docid": "dd325e9a68acafea355a8f540724c95f", "score": "0.4947996", "text": "function addTcpAcceptor() {}", "title": "" }, { "docid": "ea7c032dbcfb371ed9eb62d1e36a70a7", "score": "0.4932836", "text": "public function accept()\n {\n\n\n $sock = $this->sock;\n\n $this->debug('server accepting clients now');\n\n do {\n if (($msgsock = socket_accept($sock)) === false) {\n echo \"socket_accept() fehlgeschlagen: Grund: \" . socket_strerror(socket_last_error($sock)) . \"\\n\";\n break;\n }\n\n // Neuer Client kommt\n $this->debug('*** accepting new client');\n $this->syncDecider->onClientIncoming();\n $this->loadAbsences();\n $this->loadOpenEvents();\n\n do {\n if (false === ($buf = socket_read($msgsock, 2048, PHP_NORMAL_READ))) {\n echo \"socket_read() fehlgeschlagen: Grund: \" . socket_strerror(socket_last_error($msgsock)) . \"\\n\";\n break 2;\n }\n if (!$buf = trim($buf)) {\n continue;\n }\n\n $this->debug('got command: ' . $buf);\n $response = 'unknown-command';\n $doBreak = false;\n\n if ($buf == 'reload') {\n $this->markForceLoadOpenEvents();\n $response = 'ok-reload';\n $doBreak = true;\n } else if ($buf == 'quit') {\n break;\n } else if (strpos($buf, 'reuse-') === 0) {\n $tmp = explode('-', $buf);\n $eventId = $tmp[1];\n $this->reuseEventByEventId($eventId);\n $response = 'ok';\n $this->syncDecider->forceSyncOnNextCheck();\n $this->loadOpenEvents();\n $doBreak = true;\n $this->debug(\"reused event $eventId\");\n } else if (strpos($buf, 'consume2-') === 0) {\n\n $tmp = explode('-', $buf);\n $counterType = $tmp[1];\n $userId = $tmp[2];\n\n $eventId = $this->consumeByCounterTypeAndLastUserId($counterType, $userId);\n if ($eventId === null) $eventId = 0;\n $response = \"ok-$eventId\";\n $doBreak = true;\n\n }\n $this->debug(\"sending response $response\");\n\n socket_write($msgsock, $response, strlen($response));\n\n if ($doBreak) break;\n\n } while (true);\n socket_close($msgsock);\n } while (true);\n }", "title": "" }, { "docid": "2b29f2e9d50ca702e6736bbe93a9fbcc", "score": "0.49306986", "text": "public function open( $io );", "title": "" }, { "docid": "d2dc6c287f4cdcaa446b5c08d845698c", "score": "0.49301156", "text": "public function tell() {}", "title": "" }, { "docid": "7ca4bcb3c4fc3d277716f687fcf7fb62", "score": "0.49298277", "text": "public function stream_tell();", "title": "" }, { "docid": "7ca4bcb3c4fc3d277716f687fcf7fb62", "score": "0.49298277", "text": "public function stream_tell();", "title": "" }, { "docid": "3915fad9bf4cd8e70c87a973c34b95a1", "score": "0.4929306", "text": "public function getFileStream($sysName);", "title": "" } ]
0882e3de414bd1f4e12380d1a22f9a1b
++ object method ++
[ { "docid": "1c3567ddf112fcd851cbf9c7cbedfe97", "score": "0.0", "text": "public function __toString()\n {\n return $this->get();\n }", "title": "" } ]
[ { "docid": "af1e747888c5cbb87aef01a6446d263b", "score": "0.6929884", "text": "public function getIncrement();", "title": "" }, { "docid": "08067151acf28d285da217ff26b92419", "score": "0.62714094", "text": "public function inc_whatever()\n\t{\n\t\treturn $this->x + 10;\n\t}", "title": "" }, { "docid": "e01ffb74e2359e7081ba6bdb686f4012", "score": "0.6240094", "text": "public function increment()\n {\n $this->counter++;\n }", "title": "" }, { "docid": "86dbaa05b13be019c779e9efba409bf7", "score": "0.6227507", "text": "public function addTwo(){\nreturn $this->num+2;\n}", "title": "" }, { "docid": "b8bc4e539e470931d2140ca9d067cffd", "score": "0.61055243", "text": "function addOne($out, $i) {\n println('adding 1');\n $i++;\n $out->set($i);\n}", "title": "" }, { "docid": "59de78a251857042bc91de485135b316", "score": "0.6041677", "text": "public function next()\n {\n $this->pointer += 1;\n }", "title": "" }, { "docid": "d6178f9346a197181dddd27cbee30491", "score": "0.5939993", "text": "public function next(): void\n {\n ++$this->pointer;\n }", "title": "" }, { "docid": "92f4a597f60441cb3411a9eb315c6bc7", "score": "0.59232265", "text": "#[\\ReturnTypeWillChange]\n public function next()\n {\n ++$this->position;\n }", "title": "" }, { "docid": "c3bdbaf1e08403f4a32306f8691c017d", "score": "0.5900263", "text": "public function next()\n {\n ++$this->_index;\n }", "title": "" }, { "docid": "3e43878d1bcf9559aac27d2389ca8580", "score": "0.58591294", "text": "public function next() {\n $this->pointer++;\n }", "title": "" }, { "docid": "0544dc1c58828ad7c25fc90c9d811212", "score": "0.58291113", "text": "public function next()\n {\n $this->pointer++;\n }", "title": "" }, { "docid": "0544dc1c58828ad7c25fc90c9d811212", "score": "0.58291113", "text": "public function next()\n {\n $this->pointer++;\n }", "title": "" }, { "docid": "6ab63bf3262e4f98bcd5aea28e8b1696", "score": "0.5828207", "text": "public function next()\n {\n ++$this->index;\n }", "title": "" }, { "docid": "8264f5fb50d9c610f9e36a1953b58420", "score": "0.5802829", "text": "public function next()\n {\n ++$this->current;\n }", "title": "" }, { "docid": "8ce9e649baeff2f578e5cb42158b1bca", "score": "0.57800806", "text": "public function next() {\n// var_dump(__METHOD__);\n ++$this->position;\n }", "title": "" }, { "docid": "1e7011938d1f95365e1bdd528c41cbd2", "score": "0.5753105", "text": "public function increment ( $key );", "title": "" }, { "docid": "82716d3f4476cfc26f4eb216007335af", "score": "0.57328355", "text": "public function next()\n {\n $this->key++;\n }", "title": "" }, { "docid": "0d5a5056b65f04208476092993f26460", "score": "0.5703999", "text": "abstract public function increment($key, $value, $id);", "title": "" }, { "docid": "b000dfa4254604fcdee9c185746d6fc6", "score": "0.5701547", "text": "public function incrementCounter();", "title": "" }, { "docid": "69099e5c5ff9c02f20fb862b9d9bb73a", "score": "0.5699112", "text": "public function next()\n {\n ++$this->position;\n }", "title": "" }, { "docid": "69099e5c5ff9c02f20fb862b9d9bb73a", "score": "0.5699112", "text": "public function next()\n {\n ++$this->position;\n }", "title": "" }, { "docid": "69099e5c5ff9c02f20fb862b9d9bb73a", "score": "0.5699112", "text": "public function next()\n {\n ++$this->position;\n }", "title": "" }, { "docid": "69099e5c5ff9c02f20fb862b9d9bb73a", "score": "0.5699112", "text": "public function next()\n {\n ++$this->position;\n }", "title": "" }, { "docid": "69099e5c5ff9c02f20fb862b9d9bb73a", "score": "0.5699112", "text": "public function next()\n {\n ++$this->position;\n }", "title": "" }, { "docid": "69099e5c5ff9c02f20fb862b9d9bb73a", "score": "0.5699112", "text": "public function next()\n {\n ++$this->position;\n }", "title": "" }, { "docid": "2a838ab75b7dfb29dcf3c41d15ec6cf5", "score": "0.5693864", "text": "public function next()\n {\n ++$this->position;\n }", "title": "" }, { "docid": "cf496db25085e9f6f90ad10326219d35", "score": "0.56914324", "text": "public function next() {\n ++$this->position;\n }", "title": "" }, { "docid": "eb8d0d5b0697b2d68c13551336ceecbb", "score": "0.56697017", "text": "public function next(): void\n {\n ++$this->position;\n }", "title": "" }, { "docid": "2dd6ee18aa618d87c29cbd5e2352e228", "score": "0.565772", "text": "public function next():void\n {\n ++$this->cursor;\n }", "title": "" }, { "docid": "36f6dd34cd5e455cb0970a105237afad", "score": "0.56484985", "text": "public function next(){\t\n\t\t\treturn ++$this->_pointer;\n\t\t}", "title": "" }, { "docid": "ebf102a831e8f01540dd4dd95c928ce2", "score": "0.5648486", "text": "public static function char_adjust_addition()\n {\n $method_del = explode(\"::\", __METHOD__);\n {\n PASM::$chain[PASM::$counter] = $method_del[1];\n \n PASM::$args[PASM::$counter] = func_get_args();\n PASM::$counter++;\n }\n PASM::$rdx = chr((PASM::$ecx + PASM::$ah)%256);\n if (PASM::$pdb == 1)\n echo PASM::$lop . \" \";\n PASM::$lop++;\n return new static; \n\n }", "title": "" }, { "docid": "8c342ee2a78fd58057252186d8fcb53f", "score": "0.56377447", "text": "public function next()\n {\n $this->__iterator++;\n }", "title": "" }, { "docid": "6b4d25caca7af679803c38a2b9b157a7", "score": "0.5581286", "text": "function modify( &$p ) {\n\t\t\t$p++;\n\t\t}", "title": "" }, { "docid": "11af538de8549df8ebbf9b4e665d1664", "score": "0.5577877", "text": "public function next()\n\t{\n\t\t$this->index++;\n\t}", "title": "" }, { "docid": "6c7b22e24d7e4494adbda98880a2f807", "score": "0.55772436", "text": "public function next()\n {\n $this->index++;\n }", "title": "" }, { "docid": "6c7b22e24d7e4494adbda98880a2f807", "score": "0.55772436", "text": "public function next()\n {\n $this->index++;\n }", "title": "" }, { "docid": "6c7b22e24d7e4494adbda98880a2f807", "score": "0.55772436", "text": "public function next()\n {\n $this->index++;\n }", "title": "" }, { "docid": "6c7b22e24d7e4494adbda98880a2f807", "score": "0.55772436", "text": "public function next()\n {\n $this->index++;\n }", "title": "" }, { "docid": "6c7b22e24d7e4494adbda98880a2f807", "score": "0.55772436", "text": "public function next()\n {\n $this->index++;\n }", "title": "" }, { "docid": "f2106495ddba9068bc51efed95a38d62", "score": "0.55597967", "text": "public function next(): void\n {\n $this->index++;\n }", "title": "" }, { "docid": "5ce0f2780ca8f6e082be67eb0d30266e", "score": "0.55441314", "text": "public function plusplus($id, $field, $isMinus = false){\r\n\t\t$result = $this->getDbTable()->find($id);\r\n if (0 == count($result)) {\r\n return;\r\n }\r\n $row = $result->current();\r\n $number = $row->$field;\r\n if($isMinus){\r\n \t$number--;\r\n }\r\n else{\r\n \t$number++;\r\n }\r\n \r\n $this->getDbTable()->update(array($field => $number), array('replayId = ?' => $id));\r\n\t}", "title": "" }, { "docid": "5801ed19b612520dc4224c0dd6c36299", "score": "0.5525175", "text": "function apc_inc ($key, $step = 1, &$success = null) {}", "title": "" }, { "docid": "6a3655641fe4b0ee81b9f269be363622", "score": "0.55183226", "text": "public function next() {\r\n\t\t$this->index++;\r\n\t}", "title": "" }, { "docid": "dbd6ea71119148cd59dd2543cad065f7", "score": "0.55019766", "text": "public function next() {\n\t\t$this->position ++;\n\t}", "title": "" }, { "docid": "5bb4ec408a64503922aa1689323ec468", "score": "0.55014396", "text": "public function next(): void\n {\n $this->position++;\n }", "title": "" }, { "docid": "3ffa1c07bd42e77a49f639b97fbb3cf4", "score": "0.54930276", "text": "public function next()\n\t{\n\t\t$this->iteratorIndex++;\n\t}", "title": "" }, { "docid": "7593cc5b865f960ca8d882e798bd13ac", "score": "0.5492245", "text": "public function next()\n {\n ++$this->iteratorPosition;\n }", "title": "" }, { "docid": "c9b33f3b57d580d30d2aa1d680cc24fe", "score": "0.54909635", "text": "public function next()\n\t{\n\t\t$this->_i++;\n\t}", "title": "" }, { "docid": "50b28df3d06ccc08185e72a05e505b8a", "score": "0.54727185", "text": "public function next()\n {\n $this->currentPosition++;\n }", "title": "" }, { "docid": "be1313d3d68a2ffde237b8e3dbf98cab", "score": "0.5465888", "text": "public function next()\n {\n $this->offset++;\n }", "title": "" }, { "docid": "d9f2f12f4f0f48f34af295a98ca57b16", "score": "0.5461167", "text": "public function increaseRecursion();", "title": "" }, { "docid": "19961388a6354abd50d90c2e2de4f1fc", "score": "0.5459853", "text": "public function viajePlus();", "title": "" }, { "docid": "699dfa486b339e64dc18e83e57c2b27a", "score": "0.5458805", "text": "public function next()\n {\n $this->position++;\n }", "title": "" }, { "docid": "fa44405c222b1e6f3a1ddefad5e75a83", "score": "0.54526997", "text": "public function increment($key, $increment=1);", "title": "" }, { "docid": "dd23708d988c31d30fb9d685b6acfdc7", "score": "0.54303926", "text": "private function inc($a, $b= 1) { }", "title": "" }, { "docid": "1bfee2dd9ecb6034ae8dc3ea1e4c2223", "score": "0.542798", "text": "public function next()\n {\n ++$this->position;\n\n return;\n }", "title": "" }, { "docid": "50ad85b638b0d6a55506167b681a29b1", "score": "0.54271024", "text": "public function next(): void\n {\n $this->iterator++;\n }", "title": "" }, { "docid": "50ad85b638b0d6a55506167b681a29b1", "score": "0.54271024", "text": "public function next(): void\n {\n $this->iterator++;\n }", "title": "" }, { "docid": "5c5c36ef748fd4bb7344a5710d7df02a", "score": "0.5407183", "text": "public function incrementPickables(): void;", "title": "" }, { "docid": "d01b75ee5c629d39da7f6973e4d51df6", "score": "0.5399349", "text": "function inc() {\n $n = new la_time($this->actor_id);\n $n->counter = $this->counter + 1;\n return $n;\n }", "title": "" }, { "docid": "b9483a492a74d337c09e2480f2619048", "score": "0.5397696", "text": "public function next()\n\t{\n\t\t$this->position = $this->position->add(1);\n\t}", "title": "" }, { "docid": "d727e4650dd8f555acb1ecf9603ff6d2", "score": "0.53804183", "text": "public function next()\n {\n $this->_currentKey++;\n }", "title": "" }, { "docid": "af791705e1533ea6c6dbc394d0c2f969", "score": "0.5361198", "text": "public function addPoint(): int\n {\n return ++$this->points;\n }", "title": "" }, { "docid": "2ce76dfca18959009fa49b88ad93f87f", "score": "0.5352875", "text": "public function next()\n {\n // TODO: Implement next() method.\n ++$this->pos;\n }", "title": "" }, { "docid": "3587542e8b7cf91cee9e701994708a82", "score": "0.53410774", "text": "public function next()\n {\n $this->iteratorIterationPosition++;\n }", "title": "" }, { "docid": "522bfec496fba91044a689e58302f7f8", "score": "0.53366214", "text": "public function next()\n\t{\n\t\t++$this->_iteratorPointer;\n\t}", "title": "" }, { "docid": "1b438190c744ae5dcfde6d919db70050", "score": "0.5336172", "text": "public function addPoint() {\n $this->points += 1;\n }", "title": "" }, { "docid": "b4115eb838cff5c564b1ea460f23f24c", "score": "0.53162616", "text": "function increment(&$value, $amount=1) {\n\t\t$value = $value + $amount;\n\t}", "title": "" }, { "docid": "7a6c8c6a6a3e291476ef21c4e0969dbd", "score": "0.5310723", "text": "public function next()\n\t{\n\t\t$this->iter->next();\n\t\t$this->index += 1;\n\t}", "title": "" }, { "docid": "69535a92c50741af682f093816843a23", "score": "0.5310186", "text": "public function next()\n\t{\n\t\t++$this->mPosition;\n\n\t}", "title": "" }, { "docid": "393d27ecc4b8754364c48aa76bb15edc", "score": "0.53046674", "text": "public function next() {\n ++$this->currentIndex;\n }", "title": "" }, { "docid": "e845d28ee2fe83330ab825b021b013f4", "score": "0.5289498", "text": "public function inc($key, $step = 1);", "title": "" }, { "docid": "5161cd538d76e1bde1172ecf4c78d73e", "score": "0.5287637", "text": "function uvecaj(&$a,$b) {\n $a++;\n $b++;\n}", "title": "" }, { "docid": "1f791de5eb55be38f90a35a6f3fe62c4", "score": "0.528", "text": "function add(&$num){\n\t\t$num += 5;\n\t}", "title": "" }, { "docid": "ad2d48949b5b6907564aa378b06a581e", "score": "0.5278254", "text": "function method04()\n {\n }", "title": "" }, { "docid": "07d20410d22732779299247d990f1731", "score": "0.5254824", "text": "public function next()\n\t{\n\t\t$this->pos += $this->size;\n\t\t$this->assess();\n\t}", "title": "" }, { "docid": "6817b94e5abb583a3cb3a3920141378c", "score": "0.525099", "text": "public function next() {\n\t\t++$this->position;\n\t}", "title": "" }, { "docid": "157fc3ebe0a8e5ca4b96aa5074f9d1de", "score": "0.52450347", "text": "static function add();", "title": "" }, { "docid": "628978e001d947565259681949436d37", "score": "0.5240419", "text": "public function turbo(){\n $this->hp += $this->hpTurbo;\n\n }", "title": "" }, { "docid": "e2edb6cd3471192c796ffe723e49b4d6", "score": "0.5240216", "text": "public function obtenerPlus1();", "title": "" }, { "docid": "f2026decf0ed19406653208fa5288496", "score": "0.5231858", "text": "public function next(): void;", "title": "" }, { "docid": "a51a5da97bdeaeea93ea21c9cdd72853", "score": "0.5224211", "text": "public function increment($name, $value = 1)\n\t{\n\t\t$this->get_object()->increment($name, $value);\n\t\t\n\t}", "title": "" }, { "docid": "fa7894762d2887ccff179ec4ccc2b051", "score": "0.5221824", "text": "public function incrementPager()\n {\n\n $this->_pager +=1;\n // echo 'pager-set:' . $this->_pager . \"\\n\";\n }", "title": "" }, { "docid": "fab5dc7921a8cdb24ff52723db8fd379", "score": "0.5213372", "text": "public function addMoney($money){\n $this->solde += $money;\n}", "title": "" }, { "docid": "07ffb057913d4f861fab2adb372bcb44", "score": "0.5210577", "text": "public function next(): void\n {\n }", "title": "" }, { "docid": "7cdde935a51d4526684151136a04c5c3", "score": "0.52093893", "text": "public function primitiveOperation1(): void\n {\n }", "title": "" }, { "docid": "73f16fa2cf19b84a3c8b97bf6f380bf5", "score": "0.5199923", "text": "public function next()\n {\n $this->currentIndex++;\n }", "title": "" }, { "docid": "73f16fa2cf19b84a3c8b97bf6f380bf5", "score": "0.5199923", "text": "public function next()\n {\n $this->currentIndex++;\n }", "title": "" }, { "docid": "c805caf62a05ef9e8ff79d1957d93700", "score": "0.51941097", "text": "public function incrementProgress() {\n $this->progress = $this->progress + 1;\n return $this;\n }", "title": "" }, { "docid": "9089bc75ede96f4455d536b533368a11", "score": "0.5192956", "text": "function _newobj()\n{\n\t$this->n++;\n\t$this->offsets[$this->n]=strlen($this->buffer);\n\t$this->_out($this->n.' 0 obj');\n}", "title": "" }, { "docid": "d0c9f158091e78dbaa863d4aa29e4d66", "score": "0.51925963", "text": "protected function phpInc(array $op)\n {\n return \"++\" . $this->phpGetVarname($op['name']);\n }", "title": "" }, { "docid": "8c0006f07791da45cc4d7307a3a645f9", "score": "0.51897925", "text": "public function next(): void {}", "title": "" }, { "docid": "6ff6830d259df32ca1a49bc8935ac782", "score": "0.5186964", "text": "public function add()\n\t{\n\n\t}", "title": "" }, { "docid": "6ff6830d259df32ca1a49bc8935ac782", "score": "0.5186964", "text": "public function add()\n\t{\n\n\t}", "title": "" }, { "docid": "6ff6830d259df32ca1a49bc8935ac782", "score": "0.5186964", "text": "public function add()\n\t{\n\n\t}", "title": "" }, { "docid": "6ff6830d259df32ca1a49bc8935ac782", "score": "0.5186964", "text": "public function add()\n\t{\n\n\t}", "title": "" }, { "docid": "45a0f6471278780c789797746ab03238", "score": "0.51869196", "text": "function addTen(&$num){\n $num += 10;\n }", "title": "" }, { "docid": "cf8540bb4da03efa4af5a3ec8d6606b9", "score": "0.51862043", "text": "public static function loope() // loop while ah == ecx\n {\n $method_del = explode(\"::\", __METHOD__);\n {\n PASM::$chain[PASM::$counter] = $method_del[1];\n \n PASM::$args[PASM::$counter] = func_get_args();\n PASM::$counter++;\n }\n $counter = 0;\n \n $count = count(PASM::$chain);\n PASM::$lop -= PASM::$ldp;\n if (PASM::$ah == PASM::$ecx && PASM::$lop + PASM::$counter < $count) {\n $func = PASM::$chain[PASM::$lop + PASM::$counter];\n if ($func == 'set')\n PASM::$func(PASM::$args[PASM::$lop + PASM::$counter][0],PASM::$args[PASM::$lop + PASM::$counter][1]);\n else\n PASM::$func();\n PASM::$counter++;\n if (PASM::$pdb == 1)\n echo PASM::$lop . \" \";\n }\n \n PASM::coast();\n \n if (PASM::$pdb == 1)\n echo PASM::$lop . \" \";\n PASM::$lop++;\n return new static;\n }", "title": "" }, { "docid": "bf5592334e3a0db06b195334eac04893", "score": "0.51703787", "text": "public function increaseByOne($id) {\n \t$this->items[$id]['quantity']++;\n \t$this->items[$id]['price'] += $this->items[$id]['item']['price'];\n \t$this->totalQty++;\n \t$this->totalPrice += $this->items[$id]['item']['price'];\n }", "title": "" }, { "docid": "e71c8a9c6a6f7301f6b9bb59a6649b7d", "score": "0.5169961", "text": "public function increment($key, $by = 1);", "title": "" }, { "docid": "842d6adeffecb14fe107952c5ffe6286", "score": "0.5169956", "text": "function increment( $type )\n {\n $pairs = array_pair_slice(func_get_args(), 1);\n return $this->manipulate_handler(\"increment\", $type, $pairs);\n }", "title": "" } ]
c0ff94f4f79c0067b1fdcb8a30fa665c
Get collection searchable instances by specified ids.
[ { "docid": "a877d95cb52dc01c42be2f6be85aaa42", "score": "0.5751596", "text": "public function getByIds(array $ids, array $relations = []): \\Illuminate\\Support\\Collection\n {\n $query = static::query();\n\n if (!empty($relations)) {\n $query->with($relations);\n }\n\n if ($this->keyType = 'string') {\n // Making sure string keys are escaped properly.\n $orderById = implode(', ', array_map(function ($value) {\n return $this->getConnection()->getPdo()->quote($value);\n }, $ids));\n } else {\n $orderById = implode(', ', $ids);\n }\n\n return $query->whereIn('id', $ids)\n ->orderByRaw(\"field(id, $orderById) asc\")\n ->get();\n }", "title": "" } ]
[ { "docid": "78ee1a057a7a0efd1b8f2838ccbfce2b", "score": "0.71634793", "text": "public function findByIds(array $ids);", "title": "" }, { "docid": "33930f4e81877b75ac1acf044c035e19", "score": "0.7054398", "text": "public function find (...$ids) {\n\t\treturn $this->findByIds($ids);\n\t}", "title": "" }, { "docid": "3632deba3f64bdf6bd8208c4d60d766b", "score": "0.6961358", "text": "public function getByIds(array $ids);", "title": "" }, { "docid": "88371a1bba778162ab8b20a2773fec74", "score": "0.681096", "text": "public function getByIds(array $ids): TaskCollection\n {\n }", "title": "" }, { "docid": "b0e3291d5a177dbabbcaa5cb0a091599", "score": "0.68055373", "text": "public function findByIds($ids = [])\n {\n return $this->find(function ($item) use ($ids) {\n return in_array($item->getId(), $ids);\n });\n }", "title": "" }, { "docid": "2e9c51589cb5beb61cc81a871f838581", "score": "0.6736111", "text": "public function searchEntitiesByIds($ids)\n {\n return $this->start()->uri(\"/api/entity/search\")\n ->urlParameter(\"ids\", $ids)\n ->get()\n ->go();\n }", "title": "" }, { "docid": "659c9d753457a1ec2d70528966067c26", "score": "0.65896964", "text": "public function filterByIds(int ...$ids): self\n {\n $slots = array_filter($this->collection, fn ($id) => in_array($id, $ids), ARRAY_FILTER_USE_KEY);\n\n return new static(...$slots);\n }", "title": "" }, { "docid": "a08b1d15ed7fdf048cefceb205d177a2", "score": "0.6530638", "text": "public function findHavingIds(array $ids): ResourceCollection\n {\n $models = array_map(function($id){\n return $this->find($id);\n }, $ids);\n\n return new ResourceCollection($models);\n }", "title": "" }, { "docid": "0e9609614f158f2f287d54dc14497875", "score": "0.6501395", "text": "public function getByIds($ids)\n {\n return $this->model->whereIn('posts.id', $ids);\n }", "title": "" }, { "docid": "5bfd7d00cccc65e5b54bd7d7e167d118", "score": "0.64335006", "text": "public function byId(array $ids) {\n return $this->addSearchParam('id', implode(',', $ids))->get();\n }", "title": "" }, { "docid": "8545ea3b6e2f8d8cd45380c27ceb6a75", "score": "0.6324036", "text": "public function findMany(Arrayable $ids): Collection\n {\n return $this->productRepo->findManyByIds($ids);\n }", "title": "" }, { "docid": "56c26987a454197597d9d6db3ba0b6f6", "score": "0.62888765", "text": "public function find_all($ids) {\n return $this->_all_where('`'.$this->table()->info('name').'`.`user_id` IN (?)', $ids);\n }", "title": "" }, { "docid": "d79e5cffca16257ea1132f9b662d35f6", "score": "0.62836075", "text": "public function findBy(array $where): ICollection;", "title": "" }, { "docid": "a731d161b03f8e296feda08580bda53c", "score": "0.6263044", "text": "public function findByIds(array $ids)\n {\n return $this->prepare(DB::findAll($this->table, 'id IN ('.implode(',', $ids).')'));\n }", "title": "" }, { "docid": "a6eb7ed7adae1c3c622767355e501b89", "score": "0.62336427", "text": "public function lookup($ids, $options = []);", "title": "" }, { "docid": "6fdf8fcf7edb71b09469213785822bb2", "score": "0.6231615", "text": "public function findMany($ids, $columns = ['*'])\n {\n if (empty($ids)) {\n return $this->model->newCollection();\n }\n\n $this->query->whereIn($this->model->getQualifiedKeyName(), $ids);\n\n return $this->get($columns);\n }", "title": "" }, { "docid": "8ea9bd61950051c7cbea7a53ae2e4881", "score": "0.62293774", "text": "function findByIds($ids) {\n return IncomingMails::find(array(\n 'conditions' => array('id IN (?)', $ids),\n 'order' => 'created_on DESC',\n ));\n }", "title": "" }, { "docid": "d3a369904122824ab5e522f50a31b8d4", "score": "0.61855286", "text": "public function fetchByIds(array $ids);", "title": "" }, { "docid": "af9f15541007b1149f3d5c7e6c573784", "score": "0.61616504", "text": "public function filterIds(int ...$ids): self;", "title": "" }, { "docid": "71cb85c3a9800ae726e531ebe7219313", "score": "0.60908055", "text": "public function findByIdsAsCollection(array $ids, int $limit = null): Collection\n {\n $iterator = $this->findByIds($ids, $limit);\n\n $collection = new Collection($this->db);\n $collection->fromIterable($iterator);\n\n return $collection;\n }", "title": "" }, { "docid": "a56f3dd5853e9ac86a8f0a745b5bed9a", "score": "0.60714746", "text": "public function searchUsers($ids)\n {\n return $this->start()->uri(\"/api/user/search\")\n ->urlParameter(\"ids\", $ids)\n ->get()\n ->go();\n }", "title": "" }, { "docid": "537aac43075d982054b0be825ea39566", "score": "0.60668296", "text": "public function filterByIds($ids)\n {\n $this->getInstance()->andWhere($this->mainAlias.'.id IN (:ids)')->setParameter('ids', $ids);\n\n return $this;\n }", "title": "" }, { "docid": "358e3175260b538e50497530ef063a60", "score": "0.6063966", "text": "public function getByIds($ids)\n {\n $sql = \"SELECT * FROM `%s` WHERE `%s` IN (%s)\";\n $array = array_fill(0, count($ids), \"?\");\n $places = implode(\",\", $array);\n $this->_sql[] = sprintf($sql, $this->_table, $this->_key, $places);\n\n $parameters = array();\n foreach ($ids as $id) {\n $parameters[] = array($this->_key => $id);\n }\n $this->_parameters[] = $this->parameterize($parameters);\n }", "title": "" }, { "docid": "ddf1feef2384ad66c253e211ed9f9212", "score": "0.6062974", "text": "public function findCollectionById($id);", "title": "" }, { "docid": "20403fa219ade0dcdd3e7fec983d987c", "score": "0.60495585", "text": "public function findAllByIds($ids)\n {\n $result = array();\n if (is_iterable ($ids))\n {\n foreach ($ids as $id)\n {\n $result [] = $this->model->find($id);\n }\n }\n return $result;\n }", "title": "" }, { "docid": "f8fbc2678d6ac0923e9cba73d9386165", "score": "0.60463095", "text": "public function searchUsersByIds($ids)\n {\n return $this->start()->uri(\"/api/user/search\")\n ->urlParameter(\"ids\", $ids)\n ->get()\n ->go();\n }", "title": "" }, { "docid": "a92551fc5b7ec7001567bc9cefc01b36", "score": "0.5953172", "text": "public function find($ids, $conditions = array(), $hydration = self::ML_HYDRATION_MODEL){\n\n $result = null;\n\n if ($ids){\n\n // checking for model\n if ($this->_getInstance()){\n\n if (!isset($conditions['where'])){\n $conditions['where'] = array();\n }\n\n if (is_array($ids))\n $conditions['where'][$this->_getInstance()->getPrimaryKey()] = array('op' => 'in', 'value' => $ids);\n else\n $conditions['where'][$this->_getInstance()->getPrimaryKey()] = $ids;\n\n $result = $this->findBy($conditions, $hydration);\n\n }\n\n }\n\n return $result;\n\n }", "title": "" }, { "docid": "29659089ffd5fdd03147419dabd91fa7", "score": "0.5940253", "text": "public function findByUserId(int $id) : Collection;", "title": "" }, { "docid": "8909ff1c978d598b51b90b15397d85f1", "score": "0.59226984", "text": "public function fetchCollection(string $class, array $ids) : array\n {\n $alias = lcfirst((new \\ReflectionClass($class))->getShortName());\n \n return $this->getQuery($class, [\n 'filter' => [\n [$alias.'.'.$class::getIdentifierName(), 'in', $ids]\n ]\n ], $alias)->getResult();\n }", "title": "" }, { "docid": "40400da4f4733d9131484a1c2671165a", "score": "0.5905056", "text": "function getByIdsRange(array $ids, Suggestor $suggestor, DataHolder $dataHolder = NULL);", "title": "" }, { "docid": "0f2e0787c96848ec9036f055946441cf", "score": "0.5871773", "text": "public function only(...$post_ids): Collection;", "title": "" }, { "docid": "0db17f6487123382c70e5bc08f20ce00", "score": "0.5845195", "text": "public function getMultiple($_ids, $_containerIds = NULL) {\n }", "title": "" }, { "docid": "a8ca5713eaabb2bddb3cc5d403455c98", "score": "0.58427626", "text": "public function searchPost($ids)\n {\n $query = $this->getByIds($ids);\n $withRelations = ['hashTags', 'user'];\n $withCountRelations = ['shares', 'comments'];\n\n return $this->getRelations($query, $withRelations, $withCountRelations);\n }", "title": "" }, { "docid": "cdb614fdad7a6cdedd15159c29ffceab", "score": "0.58291745", "text": "public function getCollection($id);", "title": "" }, { "docid": "0cdb9693dc785ba3efad35c31dd50ed6", "score": "0.58242893", "text": "public function findByIds($ids)\n {\n $query = $this->createQueryBuilder('m')\n ->where('m.id IN (:ids)')\n ->andWhere('m.status = :status')\n ->setParameters([\n 'ids' => $ids,\n 'status' => 1,\n ])\n ->getQuery()\n ;\n\n return $query->getResult();\n }", "title": "" }, { "docid": "1fe54a54830f8c071eb37ff44e991769", "score": "0.58191055", "text": "public function getByIds(): GetByIdsRequestBuilder {\n return new GetByIdsRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "title": "" }, { "docid": "81de736236a376690211a9cd4726a3c7", "score": "0.58030385", "text": "public function findServicesByHosts(array $hostIds): array;", "title": "" }, { "docid": "b946e8ff17800c66baf9389c2ab8b894", "score": "0.57851017", "text": "public static function findByIds( array $extras_ids )\n {\n return Lib\\Entities\\ServiceExtra::query()->whereIn( 'id', $extras_ids )->find();\n }", "title": "" }, { "docid": "c74c84d4928429d0d60d3715f52459ac", "score": "0.5784033", "text": "public function findMany($ids, $columns = ['*'])\n {\n return $this->model->findMany($ids, $columns);\n }", "title": "" }, { "docid": "18cc42b365e46b83fa3d0ecc9b918cf0", "score": "0.57772654", "text": "public function findByIds(\n\t\tarray $idsArray,\n\t\t\\Sellastica\\Entity\\Configuration $configuration = null\n\t): \\Sellastica\\Entity\\Entity\\EntityCollection\n\t{\n\t\tthrow new \\Nette\\NotImplementedException();\n\t}", "title": "" }, { "docid": "11c2003a8408da369735f2516fabe75a", "score": "0.57164586", "text": "public function search($id);", "title": "" }, { "docid": "6ca564cf73f10c9933f85df353bd70bc", "score": "0.57117283", "text": "function _read($criteria, $ids, $owner, $fields)\n {\n $results = $this->_getEntry($ids, $fields);\n return $results;\n }", "title": "" }, { "docid": "99fc360495b20a94a3cd46466453b520", "score": "0.5679502", "text": "public function getAllWhereKeysIn(array $keys): CollectionInterface;", "title": "" }, { "docid": "60a4deca9e21b0215ac7320e1a59d094", "score": "0.5663264", "text": "public function findUserByIDs($ids)\n {\n \treturn $this->createQueryBuilder('u')\n \t->where('u.id IN (:ids)')\n \t->setParameter('ids', $ids)\n \t->getQuery()\n \t->getOneOrNullResult()\n \t;\n }", "title": "" }, { "docid": "85a614af914dfa56144a4a6d6d4348c4", "score": "0.5627536", "text": "public static function findMany($ids)\n {\n if (! is_array($ids)) {\n throw new \\UnexpectedValueException(\"IDs should be an array if primary key values!\");\n }\n\n $primaryKey = Structure::getTablePrimaryKey(static::class);\n if ($primaryKey === false) {\n throw new \\Exception(\"Primary Key can't be detected!\");\n }\n // Only get column name for the primary key\n $primaryKey = $primaryKey->name;\n\n /** @var Entity[] $result */\n $result = static::query()->where(array($primaryKey => array(\"IN\" => $ids)))->all();\n\n // Return results\n return $result;\n }", "title": "" }, { "docid": "6cc6c8538e34d7f596b5c60e13bd1a8a", "score": "0.56138057", "text": "public abstract function get_ids();", "title": "" }, { "docid": "b074e32e54952138c46a8954924f3f85", "score": "0.5610314", "text": "public function findArray($id);", "title": "" }, { "docid": "835aa5c8c115ff61666df6cf12e044b8", "score": "0.5592598", "text": "public function findByIds(array $ids)\n {\n if (empty($ids)) {\n return [];\n }\n\n $qB = $this->db->createQueryBuilder()\n ->select('*')\n ->from($this->tableName)\n ->where(sprintf('id IN (%1$s)', implode(', ', $ids)));\n $products = $qB->execute()->fetchAll();\n\n return $this->buildModels($products);\n }", "title": "" }, { "docid": "3df6095c1b6bb50dba314af7a9bb76a5", "score": "0.5588737", "text": "public function findServicesByIdsForAdminUser(array $serviceIds): array;", "title": "" }, { "docid": "5b53ced44be205da7a6b9b4572d2ff89", "score": "0.5586379", "text": "public function findById($id): Collection\n {\n }", "title": "" }, { "docid": "efbe66536f7a33da7ef03d4cb5df692e", "score": "0.5575177", "text": "public static function protectFindMany($ids, $columns = ['*'])\n {\n $ids = LuhnAlgorithm::originalId($ids);\n return parent::findMany($ids, $columns);\n }", "title": "" }, { "docid": "c5378e9cf6ede58e8255bc8acbc45d26", "score": "0.5569463", "text": "public function findByIds(array $ids)\n {\n return $this->getEntityManager()\n ->createQuery(\n 'SELECT g FROM AppBundle:Group g WHERE g.id IN (:ids) OR g.name IN (:ids)'\n )\n ->setParameter('ids', $ids)\n ->getResult();\n }", "title": "" }, { "docid": "e3bec08e5369c817d75a36f419a61b2d", "score": "0.5566942", "text": "public function fetchLicencesByIds($ids)\n {\n $qb = $this->createQueryBuilder();\n $qb->andWhere($qb->expr()->in($this->alias . '.id', ':ids'));\n $qb->setParameter('ids', $ids);\n\n return $qb->getQuery()->execute();\n }", "title": "" }, { "docid": "e5984e213dd4e9866e962d355ed17936", "score": "0.5556603", "text": "public function ids( array $params = array() );", "title": "" }, { "docid": "129cc899b1a97bbcde1b40daa73b2440", "score": "0.55472666", "text": "private function searchById($id){\n \n $searchResults = null;\n $items = $this->items;\n if(strlen(trim($id)) == 0 ) return $searchResults;\n \n foreach($items as $item){\n if($item->id == $id){\n $searchResults[] = $item;\n } \n }\n \n return $searchResults;\n \n }", "title": "" }, { "docid": "f907b1b5e9ca83ea9eefe8493adf6f69", "score": "0.5547219", "text": "public function findByIds(array $ids, int $limit = null): \\Generator\n {\n $fields = [\n 'id' => $ids,\n ];\n\n yield from $this->findBy($fields, $limit);\n }", "title": "" }, { "docid": "2f307f0d353b7527ea236480099a912b", "score": "0.5545872", "text": "public static function getSome(array $ids, $needClearCache = false, $excludeUnpublised = false)\n {\n $articles = Dao_Articles::select()\n ->where('id', 'IN', $ids);\n\n if ($excludeUnpublised) {\n $articles->where('is_published', '=', true);\n }\n\n $cacheKey = 'getSome:' . implode(',', $ids);\n\n if ($needClearCache) {\n $articles->clearcache($cacheKey);\n } else {\n $articles->cached(Date::MINUTE * 5, $cacheKey);\n }\n\n $articles = $articles->execute();\n $articlesModels = array();\n\n if ($articles) {\n foreach ($articles as $article) {\n $model = new Model_Article();\n $articlesModels[] = $model->fillByRow($article);\n }\n }\n\n return $articlesModels;\n }", "title": "" }, { "docid": "ac666989ccac25185d2724b842ccfe07", "score": "0.5539877", "text": "abstract public function retrieveCollection(array $identifiers = []): array;", "title": "" }, { "docid": "4a27940b05f435e375ac768e6f6324f9", "score": "0.55165344", "text": "public function candidates($ids)\n {\n if (! is_array($ids)) {\n $ids = func_get_args();\n }\n $this->transporter->setParam('candidateIds', implode(',', $ids));\n\n return $this;\n }", "title": "" }, { "docid": "8fde930efc156622a3353d5e3ac744d0", "score": "0.55025977", "text": "public static function getInstancesByIds(array $ids): array\n {\n $toRetrieveById = [];\n $metafolders = [];\n\n // collect ids that must be read from db\n\n foreach($ids as $id) {\n if(!isset(self::$instancesById[$id])) {\n $toRetrieveById[] = (int) $id;\n }\n else {\n $metafolders[] = self::$instancesById[$id];\n }\n }\n\n // build and execute query, if necessary\n\n if(count($toRetrieveById)) {\n $rows = Application::getInstance()->getVxPDO()->doPreparedQuery(\n 'SELECT * FROM folders WHERE foldersid IN (' . implode(',', array_fill(0, count($toRetrieveById), '?')) . ')',\n $toRetrieveById\n );\n\n foreach($rows as $row) {\n $metafolders[] = new self(null, null, $row);\n }\n }\n\n return $metafolders;\n }", "title": "" }, { "docid": "42eedde51ba4ddc56caaf4a4b31e600c", "score": "0.5494327", "text": "public function findPublishedByIds(array $ids)\n {\n return $this->createPublishedQueryBuilder()\n ->field('id')->in($ids)\n ->getQuery()\n ->execute();\n }", "title": "" }, { "docid": "28cb24816642db3b0efa9c3f94b29b39", "score": "0.54926455", "text": "public function getSimpleList($ids=''){\n\n\n }", "title": "" }, { "docid": "5acad4c905c60d2fd5d36dc6b026d5e9", "score": "0.5488495", "text": "function dbQueryStudentIdList($ids)\n {\n $where = \" WHERE id IN (\" . arrayToDBString($ids) . \")\";\n $rs = $this->_getFullList($where);\n return $rs;\n }", "title": "" }, { "docid": "d91cb19d9792180c6f60656ef8fbc208", "score": "0.54791105", "text": "public static function getsBy($params = array()) {\n\t\treturn self::_getDao()->getsBy($params);\n\t}", "title": "" }, { "docid": "3a02373ad48a461477e643ed2056a60e", "score": "0.54666495", "text": "public function findBy(array $where = []);", "title": "" }, { "docid": "3c766e89e881cb0ff30a09a5944b300c", "score": "0.5461695", "text": "public static function listByIds($ids) {\n $condition = array('`id` IN ('.implode(',', $ids).')');\n $start = 0;\n $limit = count($ids);\n $result = DB_Verify_Gems::getList($condition,$start, $limit);\n $list = array();\n foreach($result as $item) {\n $list[$item['id']] = $item;\n }\n return $list;\n }", "title": "" }, { "docid": "d742925476fd2f0140a4f224dcdd7f1f", "score": "0.5451059", "text": "public function loadItems(array $ids) {\n return $this->datasource()->loadItems($ids);\n }", "title": "" }, { "docid": "33f086618457abb6477de97e6aa13446", "score": "0.5438304", "text": "public function findByIds(array $ids): array\n {\n /** @psalm-suppress LessSpecificReturnStatement */\n return $this->findBy([ 'id' => $ids ]);\n }", "title": "" }, { "docid": "016c8103c5c626ca2b1509c89988fb6d", "score": "0.54228395", "text": "public function getIds();", "title": "" }, { "docid": "016c8103c5c626ca2b1509c89988fb6d", "score": "0.54228395", "text": "public function getIds();", "title": "" }, { "docid": "84177ef593a10eb062da74db65df7d50", "score": "0.54221755", "text": "public function multiple(array $ids): ?ExternalModelListInterface;", "title": "" }, { "docid": "a980473478efb9ac3ae716a3eaca963e", "score": "0.5418316", "text": "static function getLocationsByArray(Array $p_ids): Collection\n {\n return static::whereIn(\"id\", $p_ids)->get();\n }", "title": "" }, { "docid": "63b9e82e4b4f66f293ed4fbade1fbd35", "score": "0.54181445", "text": "public static function loadMultiple(array $ids = NULL);", "title": "" }, { "docid": "de3c5cd146bdc18327377e43b9db69c1", "score": "0.54180336", "text": "public function all()\n {\n $query = $this->database->table('instances')->fetch(function ($props) {\n $props['instances'] = $this;\n return new Instance($props);\n });\n\n if (func_num_args() > 0) {\n $query = $query->where(...func_get_args());\n }\n\n return $query->all();\n }", "title": "" }, { "docid": "658b326ac23da52dd953d4bd49966f99", "score": "0.54131925", "text": "function get_maps_by_ids ($ids) {\r\n\t\tif (!is_array($ids)) return false;\r\n\t\t$clean = array();\r\n\t\tforeach ($ids as $id) {\r\n\t\t\tif ((int)$id) $clean[] = (int)$id;\r\n\t\t}\r\n\t\tif (empty($clean)) return false;\r\n\t\t$table = $this->get_table_name();\r\n\t\t$maps = $this->wpdb->get_results(\"SELECT * FROM {$table} WHERE id IN(\" . join(',', $clean) . \")\", ARRAY_A);\r\n\t\tif (is_array($maps)) foreach ($maps as $k=>$v) {\r\n\t\t\t$maps[$k] = $this->prepare_map($v);\r\n\t\t}\r\n\t\treturn $maps;\r\n\t}", "title": "" }, { "docid": "dba2bb69be6ebd5d75e57906528b8679", "score": "0.5409725", "text": "public function findCollection(array $idArray)\n\t{\n\t\treturn $this->fetchAll(array(\n\t\t\t$this->getAdapter()->quoteIdentifier($this->getPrimaryName()) . ' IN (?)' => $idArray\n\t\t));\n\t}", "title": "" }, { "docid": "b8b640b80a3250fe18b7ce43d419bc94", "score": "0.54092515", "text": "public function findBy(array $filters);", "title": "" }, { "docid": "4dc9e39812f946065de4b01e8f272330", "score": "0.5407494", "text": "public static function search() {\r\n $result = new Collection();\r\n\t\t$key_name = static::getKeyName();\r\n $users = User::all()->toArray();\r\n\t\t$usersRoles = UserRole::all(['user_id', 'role_id'])->groupBy('user_id');\r\n\t\tforeach($users as &$user) {\r\n\t\t\t$user['roles'] = isset($usersRoles[$user[$key_name]]) ? array_pluck($usersRoles[$user[$key_name]], 'role_id') : [];\r\n $result[] = new static($user);\r\n\t\t}\r\n \r\n return $result;\r\n }", "title": "" }, { "docid": "ebb286af37d7f7739d021fee4d2c9700", "score": "0.53776675", "text": "public function getByIds(Array $ids)\n {\n return $this->subjects->getByIds($ids);\n }", "title": "" }, { "docid": "aa2e67ff7946ac842787daf78ec69c4c", "score": "0.53770864", "text": "public function find($className, $ids)\n {\n return $this->manager->find($className, $ids);\n }", "title": "" }, { "docid": "9926cf5f30d39cf61a1887fb73eb8427", "score": "0.5375256", "text": "function getDocuments($ids = array(), $sort = 'menuindex', $dir = 'ASC', $fields = '*') {\r\n global $modx;\r\n\r\n if (count($ids) == 0) {\r\n return false;\r\n } else {\r\n $tblsc = $modx->getFullTableName('site_content');\r\n $tbldg = $modx->getFullTableName('document_groups');\r\n\r\n // add sc. to field names to refere to the table\r\n $fields = 'sc.' . implode(',sc.', preg_replace('/^\\s/i', '', explode(',', $fields)));\r\n $sort = ($sort == '') ? '' : 'sc.' . implode(',sc.', preg_replace('/^\\s/i', '', explode(',', $sort)));\r\n\r\n // get document groups for current user\r\n if ($docgrp = $modx->getUserDocGroups()) {\r\n $docgrp = implode(',', $docgrp);\r\n }\r\n\r\n // build the query to get documents\r\n $access = ($modx->isFrontend() ? 'sc.privateweb=0' : \"1='\" . $_SESSION['mgrRole'] . \"' OR sc.privatemgr=0\") .\r\n (!$docgrp ? '' : ' OR dg.document_group IN (' . $docgrp . ')');\r\n\r\n $sql = 'SELECT DISTINCT ' . $fields . ' FROM ' . $tblsc . ' sc ' .\r\n 'LEFT JOIN ' . $tbldg . ' dg on dg.document = sc.id ' .\r\n 'WHERE (sc.id IN (' . implode(',', $ids) . ')) ' .\r\n 'AND (' . $access . ') ' .\r\n 'GROUP BY sc.id' .\r\n ($sort ? ' ORDER BY ' . $sort . ' ' . $dir : '');\r\n\r\n $result = $modx->dbQuery($sql);\r\n $resource = array();\r\n\r\n // convert resources to array\r\n for ($i = 0; $i < @ $modx->recordCount($result); $i ++) {\r\n array_push($resource, @ $modx->fetchRow($result));\r\n }\r\n\r\n return $resource;\r\n }\r\n }", "title": "" }, { "docid": "5de088fced2c64d0ab0318aebed9e6e2", "score": "0.5374497", "text": "public function idsAction($ids)\n {\n $items = $this->get('opifer.content.content_manager')\n ->getRepository()\n ->findByIds($ids);\n\n $contents = $this->get('jms_serializer')->serialize($items, 'json', SerializationContext::create()->setGroups(['list'])->enableMaxDepthChecks());\n\n $data = [\n 'results' => json_decode($contents, true),\n 'total_results' => count($items)\n ];\n\n return new JsonResponse($data);\n }", "title": "" }, { "docid": "5de088fced2c64d0ab0318aebed9e6e2", "score": "0.5374497", "text": "public function idsAction($ids)\n {\n $items = $this->get('opifer.content.content_manager')\n ->getRepository()\n ->findByIds($ids);\n\n $contents = $this->get('jms_serializer')->serialize($items, 'json', SerializationContext::create()->setGroups(['list'])->enableMaxDepthChecks());\n\n $data = [\n 'results' => json_decode($contents, true),\n 'total_results' => count($items)\n ];\n\n return new JsonResponse($data);\n }", "title": "" }, { "docid": "3bdba5b0ee42634bb4293700b6f6280d", "score": "0.5372703", "text": "protected function filterServices(array $ids, $employee)\n\t{\n\t\tif (!count($ids))\n\t\t{\n\t\t\treturn array();\n\t\t}\n\n\t\t$dbo = JFactory::getDbo();\n\n\t\t$q = $dbo->getQuery(true)\n\t\t\t->select($dbo->qn('id_service'))\n\t\t\t->from($dbo->qn('#__vikappointments_ser_emp_assoc'))\n\t\t\t->where(array(\n\t\t\t\t$dbo->qn('id_employee') . ' = ' . (int) $employee,\n\t\t\t\t$dbo->qn('id_service') . ' IN (' . implode(',', $ids) . ')',\n\t\t\t));\n\n\t\t$dbo->setQuery($q, 0, count($ids));\n\t\t$dbo->execute();\n\n\t\tif (!$dbo->getNumRows())\n\t\t{\n\t\t\treturn array();\n\t\t}\n\n\t\treturn $dbo->loadColumn();\n\t}", "title": "" }, { "docid": "f0133c0a2089c42e2e82ff9629a539a7", "score": "0.5370381", "text": "public function search($val): AnonymousResourceCollection\n {\n $election = Election::where('election_name', 'like', '%'.$val.'%')->paginate(4);\n\n return ElectionResource::collection($election);\n }", "title": "" }, { "docid": "dc9d7a7d970d63e3a73d9dacd8e477a0", "score": "0.5366275", "text": "public function getByIds($ids){\r\n\t\t$pfx = $this->c->dbprefix;\r\n\t\t$conn = $this->conn();\r\n\r\n\t\t$sql = \"select\r\n\t\t\tid,type,title,optionlength,\r\n\t\t\toption1,option2,option3,option4,option5,option6,option7,\r\n\t\t\tdescription,cent,id_quiz,id_parent,layout,path_listen\r\n\t\t\t from \".$pfx.\"wls_question where id in (\".$ids.\") or (id_parent !=0 and id_parent in (\".$ids.\")) order by id; \";\r\n\r\n\t\t$res = mysql_query($sql,$conn);\r\n\t\tif($res==false)die($sql);\r\n\t\t$data = array();\r\n\t\twhile($temp = mysql_fetch_assoc($res)){\r\n\t\t\tif($temp==false)die($sql);\r\n\t\t\t$temp['title'] = str_replace(\"__IMAGEPATH__\",$this->c->filePath.\"images/\",$temp['title']);\r\n\t\t\t$data[] = $temp;\r\n\t\t}\r\n\r\n\t\treturn $data;\r\n\t}", "title": "" }, { "docid": "5fb3d38ae7ca3f544dfab286fd61b320", "score": "0.5354115", "text": "public function findAllByIdsAndLocale($locale, $ids);", "title": "" }, { "docid": "aa0c15edc4e4da1ab09fad7c3cfcbe2a", "score": "0.53467834", "text": "public function getByCategoryId($category_ids);", "title": "" }, { "docid": "4b2ab7091fabc1192e9006d68c11c056", "score": "0.5342976", "text": "public function findObjectAcls(\\Traversable $oids, array $sids = []): \\SplObjectStorage;", "title": "" }, { "docid": "a820f2fa04f6e6baa4e92523ba18248f", "score": "0.53423834", "text": "function searchwp_filter_search( $ids, $engine, $terms ) {\n /* https://searchwp.com/docs/hooks/searchwp_include/ */\n return \\LsbSearchUtil::books_matching_current_query_vars();\n}", "title": "" }, { "docid": "f9f0290b45a2d290753d35d9b1e79108", "score": "0.5327761", "text": "public function getMulti( $ids ){\n\n // $IdPlaceholders = trim( str_repeat('?,', count($ids) ), ',' );\n\n $ids = join(',', $ids);\n\n $sql = \"\n SELECT\n tc.*,\n tcp.id AS challenge_id,\n tcp.user_id AS challenger_id,\n tcp.img AS challenger_img,\n tcp.joined as joined\n FROM `hotornot-dev`.tblChallenges AS tc\n LEFT JOIN `hotornot-dev`.tblChallengeParticipants AS tcp\n ON tc.id = tcp.challenge_id\n WHERE tc.id IN ( $ids )\n ORDER BY tcp.joined\";\n\n $stmt = $this->prepareAndExecute( $sql );\n\n //$params = array( $ids );\n //$stmt = $this->prepareAndExecute( $sql, $params );\n\n $data = $stmt->fetchAll( PDO::FETCH_CLASS, 'stdClass' );\n }", "title": "" }, { "docid": "a5a4f8c2496a1fef75c75c43a658e395", "score": "0.5315506", "text": "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(RepositoryPeer::ID, $keys, Criteria::IN);\n\t}", "title": "" }, { "docid": "a5a4f8c2496a1fef75c75c43a658e395", "score": "0.5315506", "text": "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(RepositoryPeer::ID, $keys, Criteria::IN);\n\t}", "title": "" }, { "docid": "175c556c9221980505cd401fbd358495", "score": "0.5304828", "text": "public function findBy(array $criteria);", "title": "" }, { "docid": "a43d3e8b98a080f3714967cf23c6dc9c", "score": "0.53028786", "text": "public function findServicesByIdsForNonAdminUser(array $serviceIds): array;", "title": "" }, { "docid": "fc4a7bd8be6c4a8ac26b84cb69dbd7f0", "score": "0.52877206", "text": "public function findDocuments(array $ids, $limit = null, $offset = null)\n {\n $this->conn->initialize();\n\n $path = \"/{$this->name}/_all_docs?include_docs=true\";\n\n if (null !== $limit) {\n $path .= '&limit=' . (integer) $limit;\n }\n if (null !== $offset) {\n $path .= '&skip=' . (integer) $offset;\n }\n\n $json = JSONEncoder::encode(array('keys' => $ids));\n\n $response = $this->conn->getClient()->request(\n $path,\n ClientInterface::METHOD_POST,\n $json,\n array('Content-Type' => 'application/json')\n );\n\n $value = JSONEncoder::decode($response->getContent());\n\n return $value;\n }", "title": "" }, { "docid": "b06f397ec11e0e1b43e2e179c0b031d3", "score": "0.527859", "text": "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(CastlesPeer::ID, $keys, Criteria::IN);\n }", "title": "" }, { "docid": "2cac0b916587d73a2a9f2f5d963dba5e", "score": "0.5272595", "text": "public function getArticlesByCategory(array $ids): ResultSetInterface\n {\n $query = $this->find('all')\n ->where(['Articles.category_id IN' => $ids]);\n $query->enableHydration(true);\n $query->contain(['ArticleFeaturedImages']);\n\n /**\n * @var \\Cake\\Datasource\\ResultSetInterface\n */\n $result = $query->all();\n\n return $result;\n }", "title": "" }, { "docid": "fa8f4169591b7b80d9a9d689c69a36f6", "score": "0.52723056", "text": "public function findByIds($ids, $type = 'in')\n {\n $q = $this->createQueryBuilder()\n ->field('id');\n\n switch ($type) {\n case 'in':\n $q->in($ids);\n break;\n\n case 'notIn':\n $q->notIn($ids);\n break;\n\n default:\n return false;\n }\n\n return $q->eagerCursor(true)\n ->getQuery()\n ->execute();\n }", "title": "" }, { "docid": "50984ad100b24ff0e148ac7778280f3f", "score": "0.5267012", "text": "public function producers(array $ids)\n {\n return Producer::with([\n 'company',\n 'supplier',\n 'supplier.user.company',\n 'supplier.user.company.logo',\n ])->findMany($ids);\n }", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "1f6f181112b34aceed85a5f84a6f1a0f", "score": "0.0", "text": "public function destroy($id)\n {\n // delete\n $fav = Menu::find($id);\n $fav->delete();\n\n // redirect\n Session::flash('message', 'Menu supprimé avec succès !');\n return Redirect::to('menus');\n }", "title": "" } ]
[ { "docid": "2b9d2c85f4c5a3ea90f0276710558864", "score": "0.73587126", "text": "public function removeResource(ResourceInterface $resource);", "title": "" }, { "docid": "993b4783957b008ba5348591f59665c8", "score": "0.7277427", "text": "public function del($resource)\n {\n }", "title": "" }, { "docid": "f927c8635493c1dd0ac8db6bd602ddb2", "score": "0.6954638", "text": "protected function removeResourceFromStorage(HCResource $resource, string $disk): void\n {\n if (Storage::disk($disk)->has($resource['path'])) {\n Storage::disk($disk)->delete($resource['path']);\n }\n }", "title": "" }, { "docid": "440048b39bf8ab60c81c3f27962faaf1", "score": "0.69409096", "text": "public function deleteResource(PersistentResource $resource);", "title": "" }, { "docid": "9935d5b93e750a6c0ddc712ef3c08960", "score": "0.6876637", "text": "public function deleteResource($resourceId);", "title": "" }, { "docid": "9ce11cccf2dced06dd47b1882f8da1bb", "score": "0.6700161", "text": "public function deleted(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "6f90ef2bb7cdf15d03e7caac57f399ca", "score": "0.6653144", "text": "public function remove(ResourceInterface $resource, $files);", "title": "" }, { "docid": "062d77ad6e956ba37743db6eb7cdce0c", "score": "0.6625139", "text": "public function delete(string $resource)\n {\n $name = Normalizer::className($resource);\n $path = PATH_CUSTOM_RESOURCES . \"{$name}.php\";\n if (!file_exists($path)) {\n self::error(\"Resource not found!\", true);\n }\n\n if (!unlink($path)) {\n self::error(\"Failed to delete resource!\");\n return;\n }\n\n self::success(\"Resource deleted!\");\n }", "title": "" }, { "docid": "6c60b1eff618aa8951f7900cc60261d9", "score": "0.65714747", "text": "public static function remove()\n {\n self::$storage = null;\n }", "title": "" }, { "docid": "9bf523fe37f0dc36010278d5bebdd0a1", "score": "0.6514855", "text": "public function unpublishResource(Resource $resource) {\n if ( $this->debug ) {\n $this->systemLogger->log('target ' . $this->name . ': unpublishResource');\n }\n try {\n $this->deleteFile($this->getRelativePublicationPathAndFilename($resource));\n } catch (\\Exception $e) {\n }\n }", "title": "" }, { "docid": "c040ed02d56811524efd11951dd9e13e", "score": "0.6511542", "text": "public function delete(string $id): IStorage;", "title": "" }, { "docid": "eb8ef8644496015cbec33f776a7522f6", "score": "0.6464115", "text": "public function deleteResource($resource)\n {\n // instanceof instead of type hinting so it can be used as slot\n if ($resource instanceof \\TYPO3\\Flow\\Resource\\Resource) {\n $this->resourcePublisher->unpublishPersistentResource($resource);\n if (is_file($this->persistentResourcesStorageBaseUri . $resource->getResourcePointer()->getHash())) {\n unlink($this->persistentResourcesStorageBaseUri . $resource->getResourcePointer()->getHash());\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "b45656cb095db000c7a18b0789ffe517", "score": "0.6381826", "text": "public function delete() {\n $this->storage_file->delete();\n }", "title": "" }, { "docid": "538b378a63649cab0724cc3f9c14d7e7", "score": "0.63669956", "text": "public function delete(resource $resource) {\n $stmt = $this->db->prepare(\"DELETE from resource WHERE id=?\");\n $stmt->execute(array($resource->getIdresource()));\n }", "title": "" }, { "docid": "1a061574cc458c41cee05049e84b3d56", "score": "0.62799686", "text": "public function remove() {\n\t\t$this->assert_ready();\n\n\t\tif (is_file($this->get_internal_path())) {\n\t\t\tif (!unlink($this->get_internal_path())) {\n\t\t\t\tthrow new IntException('Failed to remove asset.');\n\t\t\t}\n\t\t}\n\t\tif (is_file($this->get_internal_thumb_path())) {\n\t\t\tif (!unlink($this->get_internal_thumb_path())) {\n\t\t\t\tthrow new IntException('Failed to remove asset thumbnail.');\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d9d905e10fc59213e9d27bf1adc77c9c", "score": "0.62419707", "text": "public function delete(Resource\\ResourceInterface $resource)\r\n\t{\r\n\t\t$resourceName = $resource->resourceName();\r\n\t\t$resourceId = $resource->resourceId();\r\n\t\t$params = $resource->params();\r\n\t\t$hash = $this->generateHash($resourceName, $resourceId, $params);\r\n\t\t$hashParts = explode(\"-\", $hash);\r\n\t\t\r\n\t\t$this->_delete($hash);\r\n\t\t\r\n\t\tif (!$resourceId || empty($params)) {\r\n\t\t\t$partialHash = !$resourceId \r\n\t\t\t\t? $hashParts[0] \r\n\t\t\t\t: $hashParts[0] .\"-\". $hashParts[1];\r\n\t\t\t\r\n\t\t\tforeach ($this->hashes as $hash) {\r\n\t\t\t\tif (preg_match(\"/^{$partialHash}/i\", $hash)) {\r\n\t\t\t\t\t$this->_delete($hash);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "23797bba0e5c4bab3f3e851d0a2e599d", "score": "0.6241274", "text": "function delete($resource, $data='') {\n\t\t\t$this->_auth();\n\t\t\treturn $this->_request('DELETE', $this->_resourcefix($resource), $data);\n\t\t}", "title": "" }, { "docid": "71cdf2c8771b0884ed0346cbff1672a0", "score": "0.62021154", "text": "abstract protected function destroyResource(): void;", "title": "" }, { "docid": "c59e81ef63187237bc9f5f3b5e74592e", "score": "0.6177348", "text": "public function deleteResourceType(ResourceTypeInterface $resourceType);", "title": "" }, { "docid": "5292bf6424220d49a3107255e329dbd6", "score": "0.61606133", "text": "public function delete()\n {\n Storage::disk('s3')->delete($this->id);\n }", "title": "" }, { "docid": "f4f09ec06bcbe6e72b5430af6aae6dd6", "score": "0.61495334", "text": "public function forceDeleted(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e13c01fffe22886d2b3f34922a8a2e93", "score": "0.61296195", "text": "public function deleteAfter($resource)\n {\n return $resource;\n }", "title": "" }, { "docid": "02d92a998dda9d4406781461e1522038", "score": "0.6128936", "text": "public function delete()\n {\n if (!$this->linked) {\n try {\n $this->storage->delete();\n } catch (Exception $e) {}\n }\n }", "title": "" }, { "docid": "e0ec0bbfbe81f9c324f82b9e4214f65b", "score": "0.61096084", "text": "public function delete()\n {\n if ($this->exists()) {\n $this->filesystem->remove($this->path);\n }\n }", "title": "" }, { "docid": "e3417229f36e4c96d533be83d06bde0c", "score": "0.6041458", "text": "public function deleteResource($id)\n\t{\n\t}", "title": "" }, { "docid": "902bb49bf75f0b9c9365d23387afb5d1", "score": "0.60388845", "text": "public function remove($resource)\n {\n $resourceName = $this->getResourceName($resource);\n $index = array_search($resourceName, $this->indexes, true);\n\n if (false !== $index) {\n unset($this->indexes[$index]);\n unset($this->resources[$resourceName]);\n\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "21644a433a62c5fd1c528ea36afc90b8", "score": "0.6036098", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n return redirect()->route('resource.index');\n }", "title": "" }, { "docid": "5cbdbc3d6fcbfefa1426cf0c64aa04ca", "score": "0.602262", "text": "public function remove($name) {\n unset($this->storage[$name]);\n }", "title": "" }, { "docid": "6c062b635ba3468052de6e300a6359c6", "score": "0.60063314", "text": "public function destroy(Resource $resource)\n {\n //\n // $this->authorize('delete',Resource::class);\n // $resource->delete();\n // return redirect('/resource');\n return response(['message'=>'Deleted']);\n }", "title": "" }, { "docid": "106ec422b24f32e2c69e65e6763760ce", "score": "0.5998401", "text": "public function remove()\n {\n $this->setId($this->getIdMd5());\n\n $filename =\n $this->_parameters->getFormattedParameter('file.cache.directory') .\n $this->_parameters->getFormattedParameter('file.cache.file');\n\n $file = new HoaFile\\Read($filename);\n $file->delete();\n $file->close();\n\n return;\n }", "title": "" }, { "docid": "9dc6c3fff99085d4ce4d32df40726961", "score": "0.5966733", "text": "public function destroy($id)\n {\n //delete existing image and file\n $userdata = Resources::findOrFail($id);\n\n $image_name = $userdata->book_image;\n $image_name='assets/uploads/cover_images/'.$image_name;\n File::delete($image_name);\n\n $file_name = $userdata->file_name;\n $file_name='assets/uploads/resources/'.$file_name;\n File::delete($file_name);\n $userdata->delete();\n return redirect('/resource/view')->with('success','Resource Successfully Deleted');\n\n }", "title": "" }, { "docid": "b23bab0dfabcc169486df5c49c4053a8", "score": "0.59365857", "text": "public function deletePersonalData()\n {\n if ($this->resource) {\n $this->resource->removeFromStorage();\n $this->resource->delete();\n }\n }", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "78f3fcb6a4df88ba8ea45797087a7e8d", "score": "0.59121597", "text": "public function remove($entity);", "title": "" }, { "docid": "1c1c61cd59ebc38ac44e886b6478a747", "score": "0.59062636", "text": "public function remove()\n {\n if ($this->id) {\n static::delete($this->id);\n }\n }", "title": "" }, { "docid": "8f6877c27ea14309583a0c11d265f37c", "score": "0.59036046", "text": "public function delete() {\n if($this->exists()) {\n unlink($this->path);\n }\n }", "title": "" }, { "docid": "94efa591f8ef8e0d19e7776ed552595e", "score": "0.59000266", "text": "public function deleteBefore($resource)\n {\n return $resource;\n }", "title": "" }, { "docid": "5336825b23ae57c225d3534fd55b1861", "score": "0.58972764", "text": "public function remove() {}", "title": "" }, { "docid": "5336825b23ae57c225d3534fd55b1861", "score": "0.58972764", "text": "public function remove() {}", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "6dbf60ad37b681821654b0dc63e31a44", "score": "0.58875144", "text": "public function destroy($path)\n {\n // Remove S3 object path\n }", "title": "" }, { "docid": "dab9609eae6b95de02e986dc8f30ef30", "score": "0.588703", "text": "public function delete($key) {\n\t\tif ($this->readOnly) {\n\t\t\tthrow new StorageException('Trying to write to a read only storage');\n\t\t}\n\n\t\t$startTime = microtime(true);\n\t\t$fileName = $this->makeFullPath($key);\n\n\t\ttry {\n\t\t\t$this->fileHandler->remove($fileName);\n\t\t}\n\t\tcatch (NotFoundException $e) {\n\t\t}\n\t\tcatch (FileException $e) {\n\t\t\tthrow new StorageException('Unable to remove the file: ' . $fileName, 0, $e);\n\t\t}\n\n\t\t$debugger = Application::getInstance()->getDiContainer()->getDebugger();\n\t\tif (!$this->debuggerDisabled && $debugger !== false) {\n\t\t\t$debugger->addItem(new StorageItem('file', 'file.' . $this->currentConfigurationName,\n\t\t\t\tStorageItem::METHOD_DELETE . ' ' . $key, null, microtime(true) - $startTime));\n\t\t}\n\t}", "title": "" }, { "docid": "34400e55dd4ebc208c4594b57d8127b5", "score": "0.58806455", "text": "public function removeResourceParent(ResourceInterface $resource, ResourceInterface $parentResource);", "title": "" }, { "docid": "e3bc23faa27c9a9250d1f82e5c8ffe69", "score": "0.5879126", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n return $this->api_success([\n 'data' => new ResourceResource($resource),\n 'message' => __('pages.responses.deleted'),\n 'code' => 201\n ], 201);\n }", "title": "" }, { "docid": "4ca008dccccbaa2670890adc84077b0d", "score": "0.58728075", "text": "public function destroy($id)\n {\n $student = Student::findOrFail($id);\n if($student->delete()){\n return new StudentResource($student);\n }\n}", "title": "" }, { "docid": "3ec1051c44bcdbf6b8f0b979de237ca0", "score": "0.5859524", "text": "public function destroy () {\n\t\treturn unlink(self::filepath($this->name));\n\t}", "title": "" }, { "docid": "a145f758f727b845157c93040e3789f9", "score": "0.5852177", "text": "public function remove(FileInterface $file);", "title": "" }, { "docid": "7c2dd27bffbd51546ccd25eded472c62", "score": "0.58518326", "text": "public static function remove(string $path): void\n\t{\n\t\tif(file_exists(storage_path($path))) {\n\t\t\tunlink(storage_path($path));\n\t\t}\n\t}", "title": "" }, { "docid": "0715c406e16677dec9ed9d1639329836", "score": "0.5848653", "text": "public function deleteResourceById(Request $request, $id = 0);", "title": "" }, { "docid": "4c976f8fadd1a0e0cd388ea9b1c3e799", "score": "0.5832527", "text": "public function destroy($id)\n {\n $get=Product::where('id',$id)->first();\n if($get->thumbnail!=null){\n unlink('storage/'.$get->thumbnail);\n }\n if($get->attachment!=null){\n unlink('storage/'.$get->attachment);\n }\n \n Product::where('id',$id)->delete();\n return redirect()->route('listProduct');\n }", "title": "" }, { "docid": "15bc067b90dbe253b89a72946214ee6f", "score": "0.58205", "text": "public function destroy($id)\n { \n if(\\File::exists(public_path().\"/uploads/\".$id)){\n \\File::deleteDirectory(public_path().\"/uploads/\".$id);\n Resource::destroy($id);\n \\Session::flash('message', 'Tutto bene, eliminato!');\n }else {\n \\Session::flash('message', 'Errore imprevisto, cartella in /uploads non trovata!');\n }\n return \\Redirect::to('admin/resources');\n }", "title": "" }, { "docid": "1006371b48f79fb503e249a0abf3d90d", "score": "0.58135617", "text": "function delete_resource($id, $type = 'thumb')\n {\n $constraints = ['clip_id' => $id];\n\n if($type != '*'){\n $constraints['type'] = $this->res_type[$type];\n }\n\n $query = $this->db->get_where('lib_clips_res', $constraints);\n $rows = $query->result_array();\n\n if ($rows) {\n foreach ($rows as $res) {\n $file = $this->config->item('clip_dir') . $type . '/' .\n $id . '.' . $res['resource'];\n if (is_file($file)) {\n unlink($file);\n }\n if($res['location']){\n if($s3Path = $this->getS3Path($res['location'])){\n $this->aws3_sqs_delete_resources_model->put_job(['MessageBody' => $s3Path]);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "7addba7772d86602ad38891183d5c5c0", "score": "0.5804717", "text": "public function destroy($id)\n {\n $obj = Obj::where('id',$id)->first();\n $this->authorize('update', $obj);\n\n // remove file\n if(Storage::disk('public')->exists($obj->image))\n Storage::disk('public')->delete($obj->image);\n\n $obj->delete();\n\n flash('('.$this->app.'/'.$this->module.') item Successfully deleted!')->success();\n return redirect()->route($this->module.'.index');\n }", "title": "" }, { "docid": "f35aaf17008b130a60b3962b50777f92", "score": "0.5800284", "text": "public function unlink();", "title": "" }, { "docid": "2f7fda6501bcbbb5f68ddb7c065c2c8f", "score": "0.57994014", "text": "private function removeResource($filesystemPath, &$removed)\n {\n if (!file_exists($filesystemPath)) {\n return;\n }\n\n ++$removed;\n\n if (is_dir($filesystemPath)) {\n $removed += $this->countChildren($filesystemPath);\n }\n\n $this->filesystem->remove($filesystemPath);\n }", "title": "" }, { "docid": "cc42a160a9315cdd157733240e749135", "score": "0.57910043", "text": "public function remove($entity): void;", "title": "" }, { "docid": "d4218bcd90f4a47f5ea0150ee353dc32", "score": "0.57905525", "text": "public function destroy($id)\n {\n $brand=Brand::find($id);\n //delete related file from storage\n $brand->delete();\n return redirect()->route('brands.index');\n }", "title": "" }, { "docid": "87a257458af9749998d2821206a44b54", "score": "0.57897776", "text": "public function destroy($id)\n {\n $producto= Producto::findOrFail($id);\n\n if(Storage::delete('public/'.$producto->imagen)){\n\n Producto::destroy($id); \n }\n\n return redirect('producto');\n }", "title": "" }, { "docid": "642f1d1205457b11ef73140be49aa079", "score": "0.5779547", "text": "public function delete($resource)\n {\n return DB::transaction(function () use ($resource) {\n $resource = $this->deleteBefore($resource);\n\n $resource->delete();\n\n return $this->deleteAfter($resource);\n });\n }", "title": "" }, { "docid": "2c0196ccc0507912483f0092cd84b4ae", "score": "0.5779229", "text": "public function removeAvatarResource($resource): bool\n {\n return imagedestroy($resource);\n }", "title": "" }, { "docid": "5760f6df7c6ebd5440da74e84ef8e734", "score": "0.57779175", "text": "public function remove($identifier);", "title": "" }, { "docid": "33b7f072f2b9b81d6150ecf51df6b25f", "score": "0.57706714", "text": "abstract public function remove($path);", "title": "" }, { "docid": "d63269c2f97e9f20ab93b60f53363fbc", "score": "0.5757352", "text": "public function destroy($class_id, $resource)\n {\n $classResource = ClassResource::find($resource);\n\n // Delete Image\n Storage::delete('public/resources/'.$classResource->classResource_location);\n $classResource->delete();\n\n return redirect('/viewClass'.'/'.$class_id.'/resources')->with('success', 'File Deleted!');\n }", "title": "" }, { "docid": "c41a8c586f3cfc39935459b577d1b862", "score": "0.575272", "text": "public function removeUpload()\n {\n if (isset($this->temp)) {\n unlink($this->temp);\n }\n }", "title": "" }, { "docid": "d142a02423f60696b0dd1bc440aa7621", "score": "0.5740473", "text": "public function deleteUploadedFile() {\n // delete file if exists\n if (file_exists(\"../uploaded_resources/\" . $this->filename)) {\n unlink(\"../uploaded_resources/\" . $this->filename);\n }\n }", "title": "" }, { "docid": "37d1f8df79d1b403823098c91384300b", "score": "0.57366985", "text": "public function destroy() {\n $filepath = $this->getFilepath();\n @unlink($filepath);\n }", "title": "" }, { "docid": "966236614f1d8ba524f6647f934a480c", "score": "0.5731254", "text": "public function destroy($id)\n {\n $slider = slider::where('slider_id', $id)->first();\n $imagename = $slider->image;\n if(!empty($imagename)){\n if(Storage::disk('s3')->exists($imagename)) {\n Storage::disk('s3')->delete($imagename);\n } \n /*$filename = public_path().'/images/slider/'.$file;\n \\File::delete($filename);*/\n }\n slider::where('slider_id',$id)->delete();\n return redirect()->route('slider.index')\n ->with('success','Slider deleted successfully.');\n }", "title": "" }, { "docid": "2433a592ecee814d4683e51a2a9ef8b4", "score": "0.5730529", "text": "public function unindex($resource)\n {\n $dataset = $this->util->getDataset($resource);\n\n if($dataset){\n //find the belonging indexes\n $index = $this->getIndexedWords($dataset);\n\n //remove indexed\n foreach($index as $currentIndexToDelete) {\n $word = $currentIndexToDelete->getWord();\n $this->em->remove($currentIndexToDelete);\n $this->searchDirty($word);\n }\n\n //remove dataset\n $this->em->remove($dataset);\n $this->em->flush();\n $this->searchUpdateTotals();\n }\n }", "title": "" }, { "docid": "f895b50d35ef0b215af95a187ee4f8e1", "score": "0.57171595", "text": "public function delete()\n {\n return Storage::disk(config('screeenly.filesystem_disk'))->delete($this->filename);\n }", "title": "" }, { "docid": "8c0c11de31899ddf1bbfd6c29f1c19a7", "score": "0.571522", "text": "public function deleteImage(){\n Storage::delete($this->image);\n }", "title": "" }, { "docid": "e5f174b2d48a7745c3be9c52c54e88b4", "score": "0.56957734", "text": "function delete()\n\t{\n\t\tglobal $sql;\n\t\t$sql->Query(\"DELETE FROM $this->tablename WHERE id = '$this->id'\");\n\n\t\tif($this->path)\n\t\t\t@unlink($this->path);\n\t\tif($this->thumbnail)\n\t\t\t@unlink($this->thumbnail);\n\t\tif($this->square)\n\t\t\t@unlink($this->square);\n\t\tif($this->small)\n\t\t\t@unlink($this->small);\n\t\tif($this->medium)\n\t\t\t@unlink($this->medium);\n\t\tif($this->large)\n\t\t\t@unlink($this->large);\n\n\t}", "title": "" }, { "docid": "9f8e141fd6e26ce3fe7a6921b622fe0e", "score": "0.5689104", "text": "public function delete()\n {\n $path = str_replace(storage_path('app'), '', $this->path);\n\n Storage::delete($path);\n\n return parent::delete();\n }", "title": "" }, { "docid": "b8c78cd19161cf7966e7567365e984a3", "score": "0.56849074", "text": "public function remove(): void;", "title": "" }, { "docid": "04406afe569e9b74ee2744b1cf4852d9", "score": "0.5684563", "text": "public function delete() {\n $this->resourceable->delete();\n return parent::delete();\n }", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "45aa00d01271e734f5db2a1fa7f76483", "score": "0.5677459", "text": "function remove($entity);", "title": "" }, { "docid": "b3f8c1c4e871f05ee3123e1f7f5255e8", "score": "0.56750923", "text": "public function destroy($id)\n {\n $Man = Manufacture::find($id);\n $image_path = storage_path('app/public/manufacturers/'.$Man->image); // Value is not URL but directory file path\n if(File::exists($image_path)) {\n File::delete($image_path);\n\n }\n $Man->delete();\n }", "title": "" }, { "docid": "37ff2347ddf9a6db6a9844965dd1ec38", "score": "0.5665463", "text": "public function destroy($id)\n\t{\n\t\t//eliminar usuario \n\t\t$filename = public_path().'/uploads/foo.bar';\n\n\t\tif (File::exists($filename)) \n\t\t{\n \t\tFile::delete($filename);\n\t\t}\n\t}", "title": "" }, { "docid": "9b8aab241578958a2469c7a9782795c1", "score": "0.5661555", "text": "public function destroy($id)\n {\n $actor=Actor::find($id);\n //delete related file from storage\n $actor->delete();\n return redirect()->route('actors.index');\n }", "title": "" }, { "docid": "493127367eaabfb3f87af291ac81b31c", "score": "0.56471384", "text": "public function remove_resource($resource)\n\t{\n\t\tif (isset($this->acl_perms['user_role'][$resource])) {\n\t\t\tunset($this->acl_perms['user_role'][$resource]);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "9c63fb3cdb6ebf314539690c581f739a", "score": "0.56405896", "text": "public function remove($id){\n $destinationPath = 'public/uploads/'.$id;\n File::delete($destinationPath);\n }", "title": "" }, { "docid": "218fe18765b1d7c380dddd8b2ac4b37b", "score": "0.5638099", "text": "public function removeFile(FileInterface $file);", "title": "" }, { "docid": "a6b9c5e2bcb825e1cfba302990ec2140", "score": "0.563637", "text": "public function remove()\n\t{\n\t\tFile::remove($this->getFilePath());\n\t}", "title": "" }, { "docid": "dc6cb92328efd21aca7092caec752017", "score": "0.5636115", "text": "public function delete(SectionStorageInterface $section_storage);", "title": "" }, { "docid": "e61268a82a87f7cb8cbe76d15484a282", "score": "0.5635627", "text": "static public function remove($objectName);", "title": "" }, { "docid": "e56ffdb12b7e8ce9ce9b709dd82f37f7", "score": "0.56325144", "text": "public function removeById($id);", "title": "" }, { "docid": "e56ffdb12b7e8ce9ce9b709dd82f37f7", "score": "0.56325144", "text": "public function removeById($id);", "title": "" }, { "docid": "cb6fd12ed6b6c067c3274543aee20401", "score": "0.5631915", "text": "public function clearResource(ResolvedObject $resource, Transaction $transaction)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "0428848b8d6110c6be21d9479ece2192", "score": "0.56237406", "text": "public function removeImage()\n {\n if (!empty($this->image) && !empty($this->id)) {\n $path = storage_path($this->image);\n if (is_file($path)) {\n unlink($path);\n }\n if (is_file($path.'.thumb.jpg')) {\n unlink($path.'.thumb.jpg');\n }\n }\n }", "title": "" }, { "docid": "a6f4504c52a348844985d64b90dad904", "score": "0.56214297", "text": "public function destroy($id)\n {\n $supplier = DB::table('suppliers')->where('id',$id)->first();\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n DB::table('suppliers')->where('id',$id)->delete();\n }\n DB::table('suppliers')->where('id',$id)->delete();\n }", "title": "" }, { "docid": "0ef712f262167f08d89550be49a07125", "score": "0.561652", "text": "public function unlinkResource($yResource){\n try{\n if (is_file($yResource->getPath())){\n unlink($yResource->getPath());\n }elseif (is_dir($yResource->getPath())){\n rmdir($yResource->getPath());\n }\n }catch(Exception $e){\n \n }\n return $this->getResource($yResource->getPath());\n }", "title": "" }, { "docid": "39948b150ec808236472ff391114e58e", "score": "0.5614384", "text": "public function delete()\n {\n File::delete([\n $this->path,\n $this->thumbnail_path\n ]);\n\n parent::delete();\n }", "title": "" }, { "docid": "1a1220576ae4b4bfabb91c580117d74a", "score": "0.5614326", "text": "public function destroy($id)\n {\n $get=Destination::where('id',$id)->first();\n if($get->thumbnail!=null){\n unlink('storage/'.$get->thumbnail);\n }\n \n Destination::where('id',$id)->delete();\n return redirect()->route('listDestination');\n }", "title": "" }, { "docid": "c3420f68b471063a55ff6b63a8e7fce0", "score": "0.56104624", "text": "public function removePurgeable($attribute);", "title": "" }, { "docid": "3c91c642d62c969c158b37413a399fd7", "score": "0.5605259", "text": "public function delete(){\n if($this->id > 0){\n SQL::delete($this::STORAGE, [\"id\" => $this->id]);\n }\n }", "title": "" }, { "docid": "554af8987fffe76970c60a65212b72cf", "score": "0.56006944", "text": "public function destroy($id)\n {\n $art = art::findOrFail($id);\n if($art->image!=null){\n $sliderimage = public_path(\"uploads/{$art->image}\");\n if(File::exists($sliderimage)){\n if(File::exists($sliderimage)){\n unlink($sliderimage);\n }\n }\n }\n $art->delete();\n return redirect()->back();\n }", "title": "" } ]
5b891641d9e21b985463cdfe84e64a1e
Extract pagination parameters from a request.
[ { "docid": "f55818aef141f3c5ff8ce17c57a1a6c1", "score": "0.6346047", "text": "public function extract(Request $request): array\n {\n $maxLimit = Arr::get($this->config, 'max_limit', static::MAX_LIMIT);\n $defaultLimit = Arr::get($this->config, 'default_limit', static::DEFAULT_LIMIT);\n\n return [\n 'page' => $request->get('page', 1),\n 'limit' => min($request->get('limit', $defaultLimit), $maxLimit),\n ];\n }", "title": "" } ]
[ { "docid": "6970e0110d03faf7f1d7d077608031b3", "score": "0.75075305", "text": "protected function extractPagination(Request $request)\n {\n $pageNr = $request->get($this->listHandlerConfig['page_nr_param_name'], 1);\n $pageLimit = $request->get($this->listHandlerConfig['page_limit_param_name']);\n\n if (!is_numeric($pageNr)) {\n throw new \\InvalidArgumentException(\n sprintf('Page number must be numeric, \"%s\" given', $pageNr)\n );\n }\n\n if ($pageLimit && !is_numeric($pageLimit)) {\n throw new \\InvalidArgumentException(\n sprintf('Page limit must be numeric, \"%s\" given', $pageLimit)\n );\n }\n\n if ($pageNr > 1 && !$pageLimit) {\n $pageLimit = $this->listHandlerConfig['default_page_limit'];\n }\n\n return [\n 'pageNr' => $pageNr,\n 'pageLimit' => $pageLimit,\n ];\n }", "title": "" }, { "docid": "1c38dc5a7ae54942070fbfa008522fef", "score": "0.705765", "text": "protected function _extractParams($request)\n {\n $params = $request->params;\n $params['?'] = $request->query;\n $params['_method'] = $request->method();\n $params['_host'] = $request->host();\n if (!isset($params['_ext'])) {\n $params['_ext'] = null;\n }\n\n $pass = isset($params['pass']) ? $params['pass'] : [];\n\n unset(\n $params['pass'],\n $params['paging'],\n $params['models'],\n $params['url'],\n $params['autoRender'],\n $params['bare'],\n $params['requested'],\n $params['return'],\n $params['_Token'],\n $params['_matchedRoute']\n );\n $params = array_merge($params, $pass);\n $params += $params['?'];\n\n $this->_normalizeParams($params);\n\n return $params;\n }", "title": "" }, { "docid": "c9fa94f092e1475b234f060a1c2c5a61", "score": "0.6975631", "text": "private function _buildFromRequest() {\n\t\tif (isset($_REQUEST['page_count']))\n\t\t\t$reqCount = intval($_REQUEST['page_count']);\n\t\telse\n\t\t\t$reqCount = $this->_provider->defaultPageCount();\n\t\t$this->_pageCount = $reqCount;\n\t\t\n\t\tif (isset($_REQUEST['page_start']))\n\t\t\t$reqStart = intval($_REQUEST['page_start']);\n\t\telse\n\t\t\t$reqStart = 0;\n\t\tif ($reqStart > $this->_totalItemCount)\n\t\t\t$reqStart = max(0, $this->_totalItemCount - $this->_pageCount);\n\t\t$this->_currentPageStart = max(0, $reqStart);\n\t\t\n\t\tforeach (array_keys($this->_extraParameters) as $k) {\n\t\t\tif (isset($_REQUEST[$k]))\n\t\t\t\t$this->_extraParameters[$k] = $_REQUEST[$k];\n\t\t}\n\t}", "title": "" }, { "docid": "df9260000132005fa3af4061cda3284d", "score": "0.66002786", "text": "public function getPaginateParams()\n {\n return $this->model->getGlobalScope(\n new \\Entrack\\RestfulAPIService\\HttpQuery\\Eloquent\\Scopes\\PaginateScope([])\n )->getPaginate();\n }", "title": "" }, { "docid": "5d01315628eac1a459f4207477dca1d6", "score": "0.65833443", "text": "private function prepareParameters($request)\n {\n $params = [];\n\n if ($request['page']) {\n $params['page'] = (int)$request['page'];\n } else {\n $params['page'] = 1;\n }\n\n if ($request['sort']) {\n $params['sort'] = strtolower($request['sort']);\n } else {\n $params['sort'] = 'id';\n }\n\n if ($request['by']) {\n $params['by'] = strtolower($request['by']);\n } else {\n $params['by'] = 'desc';\n }\n\n return $params;\n }", "title": "" }, { "docid": "39a6773285d8888aaef69962c7e9b702", "score": "0.6533191", "text": "protected static function extractParamsFromRequest($request)\n\t{\n\t\treturn array('ID' => $request['ID']); // DO NOT simply pass $request to the result, its unsafe\n\t}", "title": "" }, { "docid": "8c49e20be43a4563c1014b8e946c5da9", "score": "0.65264183", "text": "public function getRequestParams()\n {\n return array(\n 'page' => $this->getPage(),\n 'pageSize' => $this->getPageSize(),\n 'filter' => urldecode($this->getFiltersString())\n );\n }", "title": "" }, { "docid": "bf2f6863df07df9256f95155a41303d7", "score": "0.63530177", "text": "protected function readPaging(Request $request): PagingInfo\n {\n $input = $request->only(PagingInfo::KEYS);\n if (isset($input[PAGE_SIZE])) {\n $pageSize = (int)$input[PAGE_SIZE];\n if ($pageSize <= 0) {\n $input[PAGE_SIZE] = config(API_PAGE_SIZE_MAX);\n }\n if ($pageSize > config(API_PAGE_SIZE_MAX)) {\n $input[PAGE_SIZE] = config(API_PAGE_SIZE_MAX);\n }\n }\n return new PagingInfo($input);\n }", "title": "" }, { "docid": "bd8eae13b59854c47f04de9b44cc1788", "score": "0.63227534", "text": "public function extractRequestParams() \r\n\t{\r\n\t\t$params = $this->getAllowedParams();\r\n\t\t$results = array ();\r\n\r\n\t\tforeach ($params as $paramName => $paramSettings)\r\n\t\t\t$results[$paramName] = $this->getParameterFromSettings($paramName, $paramSettings);\r\n\r\n\t\treturn $results;\r\n\t}", "title": "" }, { "docid": "3909cddea1e14fd1ed742b60ce70ff36", "score": "0.6231499", "text": "protected function parseParams() {\n $params = $this->request->query;\n $options = array(\n 'limit' => isset($params['n']) ? $params['n'] : 30,\n 'page' => 1,\n 'direction' => 'DESC',\n 'order' => 'modified'\n );\n if (isset($params['order'])) {\n $orderables = array('modified', 'created', 'title');\n if (in_array($params['order'], $orderables)) \n $options['order'] = $params['order'];\n }\n if (isset($params['page'])) $options['page'] = $params['page'];\n $options['offset'] = ($options['page'] - 1) * $options['limit'];\n if (isset($params['direction']) && $params['direction'] == 'asc') {\n $options['direction'] = 'ASC';\n }\n return $options;\n }", "title": "" }, { "docid": "d80c24e9f018d16d0e7deaece0cd31cd", "score": "0.6203332", "text": "public function initRequestParameters(RequestEvent $request): void\n {\n $query = $request->getRequest()->query->all();\n\n $limit = filter_var(\n $query[RequestParameters::NAME_FOR_LIMIT] ?? RequestParameters::DEFAULT_LIMIT,\n FILTER_VALIDATE_INT\n );\n if (false === $limit) {\n throw RequestParametersException::integer(RequestParameters::NAME_FOR_LIMIT);\n }\n $this->requestParameters->setLimit($limit);\n\n $page = filter_var(\n $query[RequestParameters::NAME_FOR_PAGE] ?? RequestParameters::DEFAULT_PAGE,\n FILTER_VALIDATE_INT\n );\n if (false === $page) {\n throw RequestParametersException::integer(RequestParameters::NAME_FOR_PAGE);\n }\n $this->requestParameters->setPage($page);\n\n if (isset($query[RequestParameters::NAME_FOR_SORT])) {\n $this->requestParameters->setSort($query[RequestParameters::NAME_FOR_SORT]);\n }\n\n if (isset($query[RequestParameters::NAME_FOR_SEARCH])) {\n $this->requestParameters->setSearch($query[RequestParameters::NAME_FOR_SEARCH]);\n } else {\n /*\n * Create search by using parameters in query\n */\n $reservedFields = [\n RequestParameters::NAME_FOR_LIMIT,\n RequestParameters::NAME_FOR_PAGE,\n RequestParameters::NAME_FOR_SEARCH,\n RequestParameters::NAME_FOR_SORT,\n RequestParameters::NAME_FOR_TOTAL];\n\n $search = [];\n foreach ($query as $parameterName => $parameterValue) {\n if (\n in_array($parameterName, $reservedFields)\n || $parameterName !== 'filter'\n || !is_array($parameterValue)\n ) {\n continue;\n }\n foreach ($parameterValue as $subParameterName => $subParameterValues) {\n if (strpos($subParameterValues, '|') !== false) {\n $subParameterValues = explode('|', urldecode($subParameterValues));\n foreach ($subParameterValues as $value) {\n $search[RequestParameters::AGGREGATE_OPERATOR_OR][] = [$subParameterName => $value];\n }\n } else {\n $search[RequestParameters::AGGREGATE_OPERATOR_AND][$subParameterName] =\n urldecode($subParameterValues);\n }\n }\n }\n if ($json = json_encode($search)) {\n $this->requestParameters->setSearch($json);\n }\n }\n\n /**\n * Add extra parameters\n */\n $reservedFields = [\n RequestParameters::NAME_FOR_LIMIT,\n RequestParameters::NAME_FOR_PAGE,\n RequestParameters::NAME_FOR_SEARCH,\n RequestParameters::NAME_FOR_SORT,\n RequestParameters::NAME_FOR_TOTAL,\n 'filter'\n ];\n\n foreach ($request->getRequest()->query->all() as $parameter => $value) {\n if (!in_array($parameter, $reservedFields)) {\n $this->requestParameters->addExtraParameter(\n $parameter,\n $value\n );\n }\n }\n }", "title": "" }, { "docid": "e1e0b2b4b20363b8ee67bdd977abaa3f", "score": "0.6189709", "text": "protected function parse_pagination() {\n\n\t\tif ( $this->args['items_per_page'] == - 1 ) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif ( $this->args['page'] < 1 ) {\n\t\t\tthrow new \\InvalidArgumentException( \"page parameter must be at least 1.\" );\n\t\t}\n\n\t\t$per_page = absint( $this->args['items_per_page'] );\n\t\t$page = absint( $this->args['page'] );\n\n\t\t$count = $per_page;\n\t\t$offset = $per_page * ( $page - 1 );\n\n\t\treturn new Limit( $count, $offset );\n\t}", "title": "" }, { "docid": "9417df3ea46aab662ab0466da79470eb", "score": "0.61617893", "text": "public static function paginationQueryParameter(): array\n {\n return [\n Parameter::query()\n ->name('page')\n ->required(false)\n ->example(1)\n ->schema(Schema::number()->minimum(1)),\n\n Parameter::query()\n ->name('perPage')\n ->required(false)\n ->example(15)\n ->schema(Schema::number()->minimum(1)),\n ];\n }", "title": "" }, { "docid": "97f48cf56ce8c4810b1bdaa7b749fd04", "score": "0.6160443", "text": "protected function _setPagingParams()\n {\n $request = $this->_registry->getController()->request;\n\n $request->addParams([\n 'paging' => $this->_paginator->getPagingParams()\n + $request->getParam('paging', [])\n ]);\n }", "title": "" }, { "docid": "2bddcf673eee2cb932129288468a3e54", "score": "0.6154664", "text": "protected function initParams(Request $request)\n {\n $this->params = [\n self::PARAM_OFFSET => $request->query($this->offsetParamName, 0),\n self::PARAM_LIMIT => $request->query($this->limitParamName) ?: self::DEFAULT_LIMIT,\n ];\n if ($this->orderKeys) {\n $this->initOrderParams($request);\n $this->params[self::PARAM_ORDERS] = $this->getOrderParams();\n $this->params[self::PARAM_KEYWORD] = $this->keyword;\n }\n }", "title": "" }, { "docid": "3b809101be417bfa52c30ce96c8756f3", "score": "0.6087398", "text": "public function getRequestParameters(int $offset): array\n {\n return [\n 'query' => [\n 'page' => (int)floor($offset / $this->itemsPerPage) + 1,\n ],\n ];\n }", "title": "" }, { "docid": "7fcfa1da401cf0968958201730dfc763", "score": "0.6021127", "text": "public function getStartAndLimit($request) {\n\n $start = (int) $request->get('start');\n\n $limit = (int) $request->get('limit');\n\n\n if ($limit == 0) {\n $limit = WebService::DEFAULT_NUMBER_RESULTS;\n }\n\n return array('start' => $start, 'limit' => $limit);\n }", "title": "" }, { "docid": "2c0702d847c4613bb41e66a0d50c6e7f", "score": "0.5976947", "text": "protected function _ParsePaging()\n\t{\n\t\t//\n\t\t// Note: the kAPI_DATA_PAGING offset was created by _InitOptions().\n\t\t//\n\t\t\n\t\t//\n\t\t// Handle paging.\n\t\t//\n\t\tif( $this->offsetExists( kAPI_DATA_PAGING ) )\n\t\t{\n\t\t\t//\n\t\t\t// Init pagers block.\n\t\t\t//\n\t\t\t$options = Array();\n\t\t\t$tags = array( kAPI_PAGE_START, kAPI_PAGE_LIMIT );\n\t\t\t\n\t\t\t//\n\t\t\t// Handle options.\n\t\t\t//\n\t\t\tforeach( $tags as $tag )\n\t\t\t{\n\t\t\t\t//\n\t\t\t\t// Check option.\n\t\t\t\t//\n\t\t\t\tif( array_key_exists( $tag, $_REQUEST ) )\n\t\t\t\t{\n\t\t\t\t\t//\n\t\t\t\t\t// Set option.\n\t\t\t\t\t//\n\t\t\t\t\t$options[ $tag ] = $_REQUEST[ $tag ];\n\t\t\t\t\t\n\t\t\t\t\t//\n\t\t\t\t\t// Log to request.\n\t\t\t\t\t//\n\t\t\t\t\tif( $this->offsetExists( kAPI_DATA_REQUEST ) )\n\t\t\t\t\t\t$this->_OffsetManage( kAPI_DATA_REQUEST, $tag, $_REQUEST[ $tag ] );\n\t\t\t\t\n\t\t\t\t} // Has page start.\n\t\t\t\n\t\t\t} // Iterating options.\n\t\t\t\n\t\t\t//\n\t\t\t// Update block.\n\t\t\t//\n\t\t\t$this[ kAPI_DATA_PAGING ] = $options;\n\t\t\n\t\t} // Provided paging options.\n\t\n\t}", "title": "" }, { "docid": "d57f877ad8732e0e7539a389614ddec4", "score": "0.5908896", "text": "private function parseRequest()\n {\n if (isset($_GET['url'])) {\n $params = $_GET;\n\n $params['url'] = explode('/', filter_var(rtrim($params['url'], '/'), FILTER_SANITIZE_URL));\n\n return $params;\n }\n }", "title": "" }, { "docid": "6c8a328c26271807dd732a202f07713c", "score": "0.5888047", "text": "public function requestPages(){\n return $this->makeGetRequest('pages');\n }", "title": "" }, { "docid": "14e8783ec9f54bc7fcafcccbcb44bfc7", "score": "0.5728956", "text": "public function parse_parameters(\\phpbb\\request\\request_interface $request);", "title": "" }, { "docid": "8915dbceac99a19d8fe177be80f39fb8", "score": "0.5724766", "text": "function parsePaginacaoOrdenacao4444444(){\n \n parse_str(parse_url($_SERVER['REQUEST_URI'], PHP_URL_QUERY), $url); \n\n $order = $url['order'] ?? 'id';\n $sens = $url['sens'] ?? 'asc';\n $where = $order .' '.$sens;\n $pag = $url['pag'] ?? 1;\n $modo = $url['modo'] ?? 't';\n\n return compact('order','sens','where','pag','modo');\n }", "title": "" }, { "docid": "7142f0ac53909d13573e52f09ea94ce8", "score": "0.56938565", "text": "private static function pagination(&$result, &$search_request)\n {\n $search_request['paginate_count'] = $result->count();\n if (method_exists($result, 'currentPage')) {\n $search_request['paginate_current_page'] = $result->currentPage();\n $search_request['paginate_has_more_pages'] = $result->hasMorePages();\n $search_request['paginate_last_page'] = $result->lastPage();\n $search_request['paginate_per_page'] = $result->perPage();\n $search_request['paginate_total'] = $result->total();\n } else {\n $search_request['page'] = 0;\n $search_request['paginate_current_page'] = 1;\n $search_request['paginate_has_more_pages'] = false;\n $search_request['paginate_last_page'] = 1;\n $search_request['paginate_per_page'] = 1;\n $search_request['paginate_total'] = $result->count();\n }\n }", "title": "" }, { "docid": "628d99b85a665587c26082785881f241", "score": "0.5686528", "text": "private function calculatePageLimitAndOffset()\n {\n $pageUri = '';\n $pageUri = Url::segment(3);\n $pageNumber = ($pageUri !== '') ? $pageUri : 0;\n\n if ($pageNumber) {\n //calculate starting point of pagination\n $start = ($this->getPageNumber() - 1) * $this->perPage;\n } else {\n $start = 0; //set start to 0 by default.\n }\n\n $this->setPageNumber($pageNumber);\n $this->setPaginationOffset($start);\n }", "title": "" }, { "docid": "1f0b9111bef95d4078cab969438548c8", "score": "0.5677839", "text": "public function buildRequestParams();", "title": "" }, { "docid": "ac49275ca0de2e9b03c37b1447c25360", "score": "0.5674635", "text": "protected function requestParams(){\n if( $this->_requestParams === null ){\n parse_str($this->requestObj->getQueryString(), $parsed);\n $this->_requestParams = (object) $parsed;\n }\n return $this->_requestParams;\n }", "title": "" }, { "docid": "ae2bb691667f17bb3111b2c72e8a0022", "score": "0.5664327", "text": "public static function fromRequest($request, $prefix = 'pm', $paginator = true, $page_size = 10)\n {\n\n array_walk_recursive($request, function($key, &$item){\n $item = urldecode($item);\n });\n\n $validated_search_parameters = [];\n $conditions = array();\n\n // set the default visibility\n $conditions[] = Pressmind\\Search\\Condition\\Visibility::create(TS_VISIBILTY);\n\n if (isset($request[$prefix.'-ot']) && empty($id_object_type = intval($request[$prefix.'-ot'])) === false) {\n $conditions[] = Pressmind\\Search\\Condition\\ObjectType::create($id_object_type);\n $validated_search_parameters[$prefix.'-ot'] = $id_object_type;\n }\n\n\n if (empty($request[$prefix.'-t']) === false){\n $term = $request[$prefix.'-t'];\n $conditions[] = Pressmind\\Search\\Condition\\Fulltext::create($term, ['fulltext'], 'AND', 'NATURAL LANGUAGE MODE');\n $validated_search_parameters[$prefix.'-t'] = $request[$prefix.'-t'];\n }\n\n\n if (isset($request[$prefix.'-pr']) === true && preg_match('/^([0-9]+)\\-([0-9]+)$/', $request[$prefix.'-pr']) > 0) {\n list($price_range_from, $price_range_to) = explode('-', $request[$prefix.'-pr']);\n $price_range_from = empty(intval($price_range_from)) ? 1 : intval($price_range_from);\n $price_range_to = empty(intval($price_range_to)) ? 99999 : intval($price_range_to);\n $conditions[] = Pressmind\\Search\\Condition\\PriceRange::create($price_range_from, $price_range_to);\n $validated_search_parameters[$prefix.'-pr'] = $price_range_from.'-'.$price_range_to;\n\n }\n\n if (isset($request[$prefix.'-du']) === true && preg_match('/^([0-9]+)\\-([0-9]+)$/', $request[$prefix.'-du']) > 0) {\n list($duration_range_from, $duration_range_to) = explode('-', $request[$prefix.'-du']);\n $duration_range_from = empty(intval($duration_range_from)) ? 1 : intval($duration_range_from);\n $duration_range_to = empty(intval($duration_range_to)) ? 99999 : intval($duration_range_to);\n $conditions[] = Pressmind\\Search\\Condition\\DurationRange::create($duration_range_from, $duration_range_to);\n $validated_search_parameters[$prefix.'-du'] = $duration_range_from.'-'.$duration_range_to;\n }\n\n\n if (isset($request[$prefix.'-dr']) === true) {\n $dateRange = self::extractDaterange($request[$prefix.'-dr']);\n if($dateRange !== false){\n list($from, $to) = $dateRange;\n $conditions[] = Pressmind\\Search\\Condition\\DateRange::create($from, $to);\n $validated_search_parameters[$prefix.'-dr'] = $from->format('Y-m-d').'-'.$to->format('Y-m-d');\n }\n }\n\n\n if (\n (isset($request[$prefix.'-c']) === true && is_array($request[$prefix.'-c']) == true) ||\n (isset($request[$prefix.'-cl']) === true && is_array($request[$prefix.'-cl']) == true)\n ) {\n\n // handle the linked object feature\n $search_items = [];\n if(isset($request[$prefix.'-c']) === true && is_array($request[$prefix.'-c']) == true){\n $search_items['c'] = $request[$prefix.'-c'];\n }\n\n // this items are linked to the media object and requires a modified search condition\n if(isset($request[$prefix.'-cl']) === true && is_array($request[$prefix.'-cl']) == true){\n $search_items['cl'] = $request[$prefix.'-cl'];\n }\n\n foreach($search_items as $type => $search_item){\n\n foreach($search_item as $property_name => $item_ids){\n\n if(preg_match('/^[0-9a-zA-Z\\-\\_]+$/', $property_name) > 0){ // valid property name\n\n if(preg_match('/^[0-9a-zA-Z\\-\\,]+$/', $item_ids) > 0){ // search by OR, marked by \",\"\n $delimiter = ',';\n $operator = 'OR';\n }elseif(preg_match('/^[0-9a-zA-Z\\-\\+]+$/', $item_ids) > 0){ // search by AND, marked by \"+\"\n $delimiter = '+';\n $operator = 'AND';\n }else{ // not valid\n continue;\n }\n\n $item_ids = explode($delimiter,$item_ids);\n $conditions[] = Pressmind\\Search\\Condition\\Category::create($property_name, $item_ids, $operator, ($type == 'cl'));\n $validated_search_parameters[$prefix.'-'.$type][$property_name] = implode($delimiter, $item_ids);\n }\n\n }\n\n }\n\n\n }\n\n\n if (empty($request[$prefix.'-ho']) === false){\n if(preg_match('/^[0-9\\,]+$/', $request[$prefix.'-ho']) > 0){\n $occupancies = explode(',', $request[$prefix.'-ho']);\n $conditions[] = Pressmind\\Search\\Condition\\HousingOption::create($occupancies);\n $validated_search_parameters[$prefix.'-ho'] = implode(',', $occupancies);\n }\n }\n\n\n $order = array();\n $allowed_orders = array('rand', 'price-desc', 'price-asc', 'name-asc', 'name-desc', 'code-asc', 'code-desc');\n\n if (empty($request[$prefix.'-o']) === false && in_array($request[$prefix.'-o'], $allowed_orders) === true) {\n\n if($request[$prefix.'-o'] == 'rand'){\n $order = array('' => 'RAND()');\n }else{\n list($property, $direction) = explode('-', $request[$prefix.'-o']);\n $order = array($property => $direction);\n\n // we need a price range to order by price, so we have to change the search\n if($property == 'price' && empty($price_range_from) && empty($price_range_to)){\n $conditions[] = Pressmind\\Search\\Condition\\PriceRange::create(1, 9999);\n $validated_search_parameters[$prefix.'-pr'] = '1-9999';\n // reset the paginator, because we have modified the search\n unset($request[$prefix.'-l']);\n }\n\n\n }\n\n $validated_search_parameters[$prefix.'-o'] = $request[$prefix.'-o'];\n }\n\n if (empty($request[$prefix.'-id']) === false){\n if(preg_match('/^[0-9\\,]+$/', $request[$prefix.'-id']) > 0){\n $ids = explode(',', $request[$prefix.'-id']);\n $conditions[] = Pressmind\\Search\\Condition\\MediaObjectID::create($ids);\n $validated_search_parameters[$prefix.'-id'] = implode(',', $ids);\n\n }\n }\n\n if (empty($request[$prefix.'-po']) === false){\n if(preg_match('/^[0-9\\,]+$/', $request[$prefix.'-po']) > 0){\n $pools = explode(',', $request[$prefix.'-po']);\n $conditions[] = Pressmind\\Search\\Condition\\Pool::create($pools);\n $validated_search_parameters[$prefix.'-po'] = implode(',', $pools);\n\n }\n }\n\n if (empty($request[$prefix.'-st']) === false){\n if(preg_match('/^[0-9\\,]+$/', $request[$prefix.'-st']) > 0){\n $states = explode(',', $request[$prefix.'-st']);\n $conditions[] = Pressmind\\Search\\Condition\\State::create($states);\n $validated_search_parameters[$prefix.'-st'] = implode(',', $states);\n\n }\n }\n\n if (empty($request[$prefix.'-br']) === false){\n if(preg_match('/^[0-9\\,]+$/', $request[$prefix.'-br']) > 0){\n $brands = explode(',', $request[$prefix.'-br']);\n $conditions[] = Pressmind\\Search\\Condition\\Brand::create($brands);\n $validated_search_parameters[$prefix.'-br'] = implode(',', $brands);\n\n }\n }\n\n if (empty($request[$prefix.'-tr']) === false){\n if(preg_match('/^[a-z,A-Z\\,]+$/', $request[$prefix.'-tr']) > 0){\n $transport_types = explode(',', $request[$prefix.'-tr']);\n $conditions[] = Pressmind\\Search\\Condition\\Transport::create($transport_types);\n $validated_search_parameters[$prefix.'-tr'] = implode(',', $transport_types);\n\n }\n }\n\n if (empty($request[$prefix.'-vi']) === false){\n if(preg_match('/^[0-9\\,]+$/', $request[$prefix.'-vi']) > 0){\n $visibilities = explode(',', $request[$prefix.'-vi']);\n $conditions[] = Pressmind\\Search\\Condition\\Visibility::create($visibilities);\n $validated_search_parameters[$prefix.'-vi'] = implode(',', $visibilities);\n\n }\n }\n\n // Booking State (based on date)\n if (empty($request[$prefix.'-bs']) === false){\n if(preg_match('/^[0-9\\,]+$/', $request[$prefix.'-bs']) > 0){\n $booking_states = explode(',', $request[$prefix.'-bs']);\n $conditions[] = Pressmind\\Search\\Condition\\BookingState::create($booking_states);\n $validated_search_parameters[$prefix.'-bs'] = implode(',', $booking_states);\n }\n }\n\n if (isset($request[$prefix.'-vr']) === true) {\n $dateRange = self::extractDaterange($request[$prefix.'-vr']);\n if($dateRange !== false){\n list($from, $to) = $dateRange;\n $conditions[] = Pressmind\\Search\\Condition\\Validity::create($from, $to);\n $validated_search_parameters[$prefix.'-dr'] = $from->format('Y-m-d').'-'.$to->format('Y-m-d');\n }\n }\n\n self::$validated_search_parameters = $validated_search_parameters;\n\n $Search = new Pressmind\\Search($conditions, [\n 'start' => 0,\n 'length' => 1000\n ], $order);\n\n\n if($paginator){\n $page = 0;\n //$page_size = 10;\n if (isset($request[$prefix.'-l']) === true && preg_match('/^([0-9]+)\\,([0-9]+)$/', $request[$prefix.'-l'], $m) > 0) {\n $page = intval($m[1]);\n $page_size = intval($m[2]);\n }\n\n $Search->setPaginator(Pressmind\\Search\\Paginator::create($page_size, $page));\n }\n return $Search;\n\n }", "title": "" }, { "docid": "e01b90b8d2974e1e9c5d7a380c0141d1", "score": "0.5643521", "text": "function extract() {\n\t\t$params = array();\n\t\t$url = explode('/',$this->url);\n\t\t\n\t\tif (empty($url[0])) {\n\t\t\tarray_shift($url);\n\t\t}\n\t\t\n\t\tif (empty($url[0])) {\n\t\t\t$params['controller'] = 'docs';\n\t\t} elseif ($url[0]=='ajax') {\n\t\t\t$this->ajax = true;\n\t\t\tarray_shift($url);\n\t\t\t$params['controller'] = empty($url[0])?'docs':$url[0];\n\t\t} else {\n\t\t\t$params['controller'] = $url[0];\n\t\t}\n\t\t\n\t\tarray_shift($url);\n\t\t\n\t\tif (empty($url[0])) {\n\t\t\t$params['action'] = 'index';\n\t\t} else {\n\t\t\t$params['action'] = $url[0];\n\t\t}\n\t\t\n\t\tarray_shift($url);\n\t\t\n\t\tforeach ($url as $key=>$val) {\n\t\t\tif (!empty($val)) {\n\t\t\t\t$params['params'][$key] = $val;\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn $params;\n\t}", "title": "" }, { "docid": "637c3d4d8f557b59a66f0227e555361f", "score": "0.562899", "text": "private function getViewParams()\n {\n list($from, $to) = $this->getFromTo();\n\n return [\n 'page' => $this->page,\n 'from' => $from,\n 'to' => $to,\n 'prev' => $this->page > 1,\n 'next' => $this->page < $this->pages,\n 'url' => $this->url\n ];\n }", "title": "" }, { "docid": "98ba11884f792a7c3b9b537d65d66bc3", "score": "0.56248534", "text": "public function getStartAndLimitFromParams(ParamFetcherInterface $paramFetcher)\n {\n return $this->getStartAndLimit($paramFetcher->get('page'), $paramFetcher->get('per_page'));\n }", "title": "" }, { "docid": "7fa9af84e51516489068d7dd12b76804", "score": "0.56066364", "text": "protected function processRequestParams(): void\n {\n $this->processLimit();\n //$this->processIncludes();\n $this->processLocale();\n }", "title": "" }, { "docid": "9d1fefa2b6a9263403c3a9f1e4a1e6bf", "score": "0.5589956", "text": "public function _getPagerDropBoxData() {\r\n $perpage = (int)( \\Yii::$app->request->get( 'perpage' ) );\r\n $inPage = \\Yii::$app->params['items_per_page'];\r\n\r\n if( ! array_key_exists( $perpage, $inPage )\r\n || ! (int)$perpage || (int)$perpage > \\Yii::$app->params['max_in_page'] )\r\n {\r\n $perpage = \\Yii::$app->params['min_in_page'];\r\n }\r\n\r\n $QS = $this->_varQueryString();\r\n\r\n if( isset( $QS[ 'perpage' ] ) ) {\r\n unset( $QS[ 'perpage' ] );\r\n }\r\n\r\n if( isset( $QS[ 'per-page' ] ) ) {\r\n unset( $QS[ 'per-page' ] );\r\n }\r\n\r\n $QS = http_build_query( $QS );\r\n\r\n foreach( $inPage as $k => $v ) {\r\n $inPage[ $k ][ 'href' ] = Url::to( [ $this->_url , 'perpage' => $k ] ) . '&' .$QS;\r\n }\r\n\r\n return [ $perpage, $inPage ];\r\n }", "title": "" }, { "docid": "ee2aa0dcd555a839793fe8c5837d474e", "score": "0.5588473", "text": "public function parse(Request $request): array\n {\n $parsedBody = $this->getParsedBody($request);\n\n return $this->getParams($request, $parsedBody);\n }", "title": "" }, { "docid": "5263bf55d28d62492e635ee7a649155a", "score": "0.55814713", "text": "private function get_paging()\n {\n $iStart = $this->ci->input->post('start');\n $iLength = $this->ci->input->post('length');\n\n if ($iLength != '' && $iLength != '-1')\n $this->ci->db->limit($iLength, ($iStart) ? $iStart : 0);\n }", "title": "" }, { "docid": "ec64f1b8a990012e9afb955ff0f160b7", "score": "0.5573285", "text": "public static function getRequest(){\n\t\treturn Illuminate\\Pagination\\Environment::getRequest();\n\t }", "title": "" }, { "docid": "5696fbbb5d61ae554974480c094dcd46", "score": "0.55714023", "text": "public function getPageParam()\n {\n return $this->pageParam;\n }", "title": "" }, { "docid": "2ff35678e4f553d426dfa4355308592e", "score": "0.5543994", "text": "public function get_request_params() {\r\n return $this->request_params;\r\n }", "title": "" }, { "docid": "245229004ca21b0f7d66f62d43426ac7", "score": "0.55209774", "text": "public function getQueryParameters() {\n\n if ( count($this->params) > 0 ) return $this->params;\n\n $params = $this->getRequest()->query->all();\n\n if ( !isset($params['start']) ) $params['start'] = 0;\n\n ksort($params);\n $this->params = $params;\n\n return $params;\n }", "title": "" }, { "docid": "c71fcb20774f145101f1bf6e5670e97e", "score": "0.5509065", "text": "public function get_request_params() {\n\n $request_params = $this->get_criteria();\n\n if ( ! $request_params ) {\n\n $request_params = NULL;\n\n }\n // if\n\n\n return $request_params;\n\n }", "title": "" }, { "docid": "0744ee81a5a1e359c0d5b40add8f7187", "score": "0.5494688", "text": "protected function buildPagination()\n {\n $endRecord = $this->offset + $this->itemsPerPage;\n if ($endRecord > $this->numberOfObjects) {\n $endRecord = $this->numberOfObjects;\n }\n $pagination = [\n 'current' => $this->currentPage,\n 'numberOfPages' => $this->numberOfPages,\n 'hasLessPages' => $this->currentPage > 1,\n 'hasMorePages' => $this->currentPage < $this->numberOfPages,\n 'startRecord' => $this->offset + 1,\n 'endRecord' => $endRecord\n ];\n if ($this->currentPage < $this->numberOfPages) {\n $pagination['nextPage'] = $this->currentPage + 1;\n }\n if ($this->currentPage > 1) {\n $pagination['previousPage'] = $this->currentPage - 1;\n }\n return $pagination;\n }", "title": "" }, { "docid": "f194366787eddf0ec5a42cf0d730c064", "score": "0.5488478", "text": "public function perPage(Request $request){\n $per_page = isset($request->per_page) \n && is_numeric($request->per_page)\n ? \"?per_page=$request->per_page\" \n : \"?per_page=\".Config::get('cloudflare.per_page');\n return $per_page;\n }", "title": "" }, { "docid": "e2f7169b53c00332968fe3922c31e13f", "score": "0.5460475", "text": "public static function getAllParams(Request $request)\n {\n $params = array();\n $get = Utils::getParams($request, Utils::$METHOD_GET);\n if($get !== null && count($get) > 0)\n {\n $params[Utils::$METHOD_GET] = $get;\n }\n $post = Utils::getParams($request, Utils::$METHOD_POST);\n if($post !== null && count($post) > 0)\n {\n $params[Utils::$METHOD_POST] = $post;\n }\n if($request->getContent() !== null && strlen($request->getContent()) > 0)\n {\n $params[Utils::$CONTENT] = $request->getContent();\n }\n return $params;\n }", "title": "" }, { "docid": "1c6b717b3e60dc73a9cd387333141295", "score": "0.54567397", "text": "public function getPagination(): array\n {\n $query = $this->repository->createQueryBuilder('a');\n $pagination = $this->paginate($query->getQuery(), $this->request->get('page', 1));\n\n return [\n 'pagination' => $pagination,\n ];\n }", "title": "" }, { "docid": "d6e5d060fec2d07a04a55a0dc24eb6e5", "score": "0.5444722", "text": "public function getPageRequest($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null)\n {\n\n $resourcePath = '/cms/v3/url-redirects/';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n // query params\n $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(\n $created_at,\n 'createdAt', // param base name\n 'string', // openApiType\n 'form', // style\n true, // explode\n false // required\n ) ?? []);\n // query params\n $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(\n $created_after,\n 'createdAfter', // param base name\n 'string', // openApiType\n 'form', // style\n true, // explode\n false // required\n ) ?? []);\n // query params\n $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(\n $created_before,\n 'createdBefore', // param base name\n 'string', // openApiType\n 'form', // style\n true, // explode\n false // required\n ) ?? []);\n // query params\n $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(\n $updated_at,\n 'updatedAt', // param base name\n 'string', // openApiType\n 'form', // style\n true, // explode\n false // required\n ) ?? []);\n // query params\n $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(\n $updated_after,\n 'updatedAfter', // param base name\n 'string', // openApiType\n 'form', // style\n true, // explode\n false // required\n ) ?? []);\n // query params\n $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(\n $updated_before,\n 'updatedBefore', // param base name\n 'string', // openApiType\n 'form', // style\n true, // explode\n false // required\n ) ?? []);\n // query params\n $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(\n $sort,\n 'sort', // param base name\n 'array', // openApiType\n 'form', // style\n true, // explode\n false // required\n ) ?? []);\n // query params\n $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(\n $after,\n 'after', // param base name\n 'string', // openApiType\n 'form', // style\n true, // explode\n false // required\n ) ?? []);\n // query params\n $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(\n $limit,\n 'limit', // param base name\n 'integer', // openApiType\n 'form', // style\n true, // explode\n false // required\n ) ?? []);\n // query params\n $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(\n $archived,\n 'archived', // param base name\n 'boolean', // openApiType\n 'form', // style\n true, // explode\n false // required\n ) ?? []);\n\n\n\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json', '*/*']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json', '*/*'],\n []\n );\n }\n\n // for model (json/xml)\n if (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];\n foreach ($formParamValueItems as $formParamValueItem) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValueItem\n ];\n }\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = ObjectSerializer::buildQuery($formParams);\n }\n }\n\n // this endpoint requires OAuth (access token)\n if (!empty($this->config->getAccessToken())) {\n $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = ObjectSerializer::buildQuery($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "22964ca206fc2519056ab8fa90b275fa", "score": "0.54416674", "text": "public function paginate()\n {\n return $this->query\n ->paginate($this->limit)\n ->appends($this->request->except('page'));\n }", "title": "" }, { "docid": "d291883b7c100f114b7fd69dcd3a7fd7", "score": "0.542387", "text": "private function parseURL() {\n $requestedURI = $_SERVER['REQUEST_URI'];\n\n $url = explode('/', $_SERVER['REQUEST_URI']);\n\n if (empty($url[1])) $this->handleError('Missing params');\n\n $rawParams = explode('&', explode('?', $url[1])[1]);\n $params = array();\n\n foreach ($rawParams as $key => $value) {\n if (!empty($value)) {\n $param = explode('=', $value);\n $params[$param[0]] = $param[1];\n }\n }\n\n if (!array_key_exists('page', $params)) $this->handleError('Missing param: page');\n\n $this->url_params = $params;\n }", "title": "" }, { "docid": "477fda00a6515250a1093ba2d016be36", "score": "0.5423532", "text": "public static function getRequestedParams(){\n\t\treturn self::$requested_params;\n\t}", "title": "" }, { "docid": "df2d160a5bb9183a6296e5a033486b6e", "score": "0.54185086", "text": "protected function extractParams() {\n\t\tif ( !empty( $this->params ) )\n\t\t\treturn;\n\n\t\t$this->description = (string) $this->obj->description[0];\n\t\t$this->extractAnchors();\n\t\t\t\n\t\tforeach( self::$paramsList as $key => $extra ) {\n\t\t\n\t\t\t$method = \"extract_$key\";\n\t\t\t$this->$method();\n\t\t}\n\n\t\tunset( $this->obj );\n\t}", "title": "" }, { "docid": "e9b9ee5302ff4c0de6fced09e004f260", "score": "0.541617", "text": "protected function preparePaginatedResponse($request)\n {\n if ($this->preserveAllQueryParameters) {\n $this->resource->appends($request->query());\n } elseif (! is_null($this->queryParameters)) {\n $this->resource->appends($this->queryParameters);\n }\n\n return (new PaginatedResourceResponse($this))->toResponse($request);\n }", "title": "" }, { "docid": "699d588685c2f6f18f4dcef3e3c7c06a", "score": "0.5412796", "text": "function getParams(array $request, array $params) {\n $return_params = [];\n foreach ($params as $param_name => $param_filters) {\n $return_params[$param_name] = getParam($request, $param_name, $param_filters);\n }\n return $return_params;\n}", "title": "" }, { "docid": "ba75cee7027bc6980aeded35d1638e20", "score": "0.54088765", "text": "private function _processParameters() \n {\n // pagenumber\n $this->_processParameter('pagenumber', 'page');\n // groupby\n if (!isset($_POST[$this->_http_parameters['siteid']]) &&\n !isset($_GET[$this->_http_parameters['siteid']]) &&\n !isset($_POST[$this->_http_parameters['tag']]) &&\n !isset($_GET[$this->_http_parameters['tag']])) {\n $this->_processParameter('groupbysite', 'group');\n }\n \n // url\n $this->_processLimit('url', 'url');\n // siteid\n $this->_processParameter('siteid', 'siteid');\n // results per page\n $this->_processParameter('pagesize', 'pagesize');\n // search mode\n $this->_processParameter('mode', 'mode');\n // wordmatch\n $this->_processParameter('wordmatch', 'wordmatch');\n // tag\n $this->_processLimit('tag', 'tag');\n // type\n $this->_processLimit('type', 'type');\n // sort order\n $this->_processParameter('sortorder', 'sortorder');\n // weightfactor\n $this->_processParameter('weightfactor', 'weightfactor');\n }", "title": "" }, { "docid": "d60e1e16d0af7577403ec769148396bc", "score": "0.54048145", "text": "protected function getPagerArguments()\n {\n return array(\n 'total-rows' => $this->getTotalRecords(),\n 'total-pages' => $this->getTotalPages(),\n 'items-per-page' => $this->getItemsPerPage(),\n 'first-shown' => $this->getFirstShown(),\n 'last-shown' => $this->getLastShown(),\n );\n }", "title": "" }, { "docid": "a34cbdab97eb6f0c95bf5f68e9708923", "score": "0.5376796", "text": "private function handleGETParams($request) {\n $skipped = false;\n $postponed = false;\n $database_error = false;\n\n if (isset($_GET['skip_id'])) {\n try {\n $this->saveSkip($_GET['skip_id'], $request->request->get('skipreason'));\n $skipped = true;\n } catch (\\Exception $e) {\n $database_error = true;\n }\n } else if (isset($_GET['postpone_id'])) {\n try {\n $this->savePostpone($_GET['postpone_id']);\n $postponed = true;\n } catch (\\Exception $e) {\n $database_error = true;\n }\n }\n\n return array('skipped' => $skipped, 'postponed' => $postponed, 'database_error' => $database_error);\n }", "title": "" }, { "docid": "a774cf9e7758a3467a37b4b6328c5d4a", "score": "0.5375316", "text": "public function getRequestParameters()\n {\n return(array('lat' => $this->request['lat'],\n 'lon' => $this->request['lon'],\n 'numResults' => $this->request['numResults']));\n }", "title": "" }, { "docid": "aed6742afe255af716e1e4fd3421bcca", "score": "0.5364713", "text": "function _setup_parameters()\n\t{\n\t\tif(isset($_GET['page']))\n\t\t\t$this->params['page'] = (int)$_GET['page'];\t\n\t\t\t\n\t\t//If any form was posted, set the post params\n\t\tforeach($_POST as $form => $values)\n\t\t\t$this->params[$form] = $values;\t\t\n\t}", "title": "" }, { "docid": "6a1d12cee26977c28d58f02ed5439b40", "score": "0.53590363", "text": "abstract public function GetPages($params=[],$extra_params=[]);", "title": "" }, { "docid": "a6c3b99982a1d907e2e6b6f3198a5991", "score": "0.5351152", "text": "protected function parseParameters() {\n // first of all, pull the GET vars\n if (isset($_SERVER['QUERY_STRING'])) {\n parse_str($_SERVER['QUERY_STRING'], $parameters);\n $this->parameters = $parameters;\n // grab these again, keep them separate for building page hyperlinks\n $this->paginationParameters = $parameters;\n }\n\n if(!isset($this->paginationParameters['start'])) {\n $this->paginationParameters['start'] = 0;\n }\n if(!isset($this->paginationParameters['resultsperpage'])) {\n $this->paginationParameters['resultsperpage'] = 20;\n }\n\n // now how about PUT/POST bodies? These override what we already had\n if($this->verb == 'POST' || $this->verb == 'PUT') {\n $body = file_get_contents(\"php://input\");\n if(isset($_SERVER['CONTENT_TYPE']) && $_SERVER['CONTENT_TYPE'] == \"application/json\") {\n $body_params = json_decode($body);\n if($body_params) {\n foreach($body_params as $param_name => $param_value) {\n $this->parameters[$param_name] = $param_value;\n }\n }\n } else {\n // we could parse other supported formats here\n }\n }\n return true;\n }", "title": "" }, { "docid": "998da374f7c3df1dc62ca786f534e465", "score": "0.5349123", "text": "protected function makePaginationUrl(): string\n {\n $request = $this->getApiRequest();\n if (! $request) {\n return '';\n }\n \n $params = $request->getQueryParams();\n $params['page']['number'] = '___pageNumber___';\n \n return urldecode(http_build_query($params));\n }", "title": "" }, { "docid": "72590377e90d1a5c142e357a187e0b7c", "score": "0.53414154", "text": "public function getParams(): array\n {\n return ['type' => 'page'];\n }", "title": "" }, { "docid": "dac4d461e2a20a84bb54544fdcbf16e2", "score": "0.53359866", "text": "protected function getParams()\n {\n return [\n 'search_type' => 'scan',\n 'scroll' => '1m',\n 'size' => 25,\n 'index' => $this->getIndex(),\n 'body' => [\n 'fields' => ['_parent', '_routing', '_source'],\n 'query' => [\n 'match_all' => []\n ]\n ]\n ];\n }", "title": "" }, { "docid": "32312427100b3c080019caa9c109ad87", "score": "0.5323597", "text": "public static function getRequestParams()\n {\n return self::$requestParams;\n }", "title": "" }, { "docid": "1d84e81f05f7abb30977632ae560862e", "score": "0.53149056", "text": "public function getRequestParams()\n {\n return $this->requestParams;\n }", "title": "" }, { "docid": "6700e68e44f2b8568e5a724860a7f597", "score": "0.53129834", "text": "protected function assignPaging() {\n\t\t$this->getInputManager()->setLookupGlobals(utilityInputManager::LOOKUPGLOBALS_GET);\n\t\t$this->getInputManager()->addFilter('Offset', utilityInputFilter::filterInt());\n\t\t$this->getInputManager()->addFilter('Limit', utilityInputFilter::filterInt());\n\t\t$data = $this->getInputManager()->doFilter();\n\n\t\t$this->getModel()->setSearchOffset($data['Offset']);\n\t\t$this->getModel()->setSearchLimit($data['Limit']);\n\t}", "title": "" }, { "docid": "dfa55914058301c1fb88d579210b218d", "score": "0.53096974", "text": "private function getRequestParameters()\n {\n return [\n \"size\" => $this->thumbnailSize,\n \"url\" => $this->sourceUrl\n ];\n }", "title": "" }, { "docid": "d17216430d70aefbe4c3870271e9fffb", "score": "0.53038627", "text": "public function get_params() {\n return array_merge($this->get_order(), $this->get_search(), $this->get_limit());\n }", "title": "" }, { "docid": "107aa761b6e6698769fa60659dc2b0cc", "score": "0.53027683", "text": "public function getPerPage();", "title": "" }, { "docid": "cd6a908e8384e9fdede274b3a7c6b931", "score": "0.5294006", "text": "public function pagination()\r\n {\r\n // Quantity of books for each page\r\n $limit = 6;\r\n // Set books offset for current page\r\n if (!isset($_GET['offset'])) {\r\n $offset = 0;\r\n } else {\r\n $offset = $_GET['offset'];\r\n }\r\n // Number of rows\r\n $result = $this->db->row(\"SELECT COUNT(*) FROM library_db.books_list WHERE delete_at is null\");\r\n $num_of_rows = $result[0][\"COUNT(*)\"];\r\n // General amount of pages\r\n $total_pages = ceil($num_of_rows / $limit);\r\n // Create pagination params array\r\n $pagination['params'] = array('offset' => $offset, 'limit' => $limit, 'total' => $total_pages);\r\n return $pagination;\r\n }", "title": "" }, { "docid": "623c4c47abf4212a761fd32611d205af", "score": "0.5293842", "text": "public function getParams()\n {\n $params = [];\n \n // GET \n $elements = explode('/', $this->_request); \n unset($elements[0]);\n\n for ($i = 1; $i < count($elements); $i++) {\n $params[$elements[$i]] = $elements[$i + 1];\n $i++; // Add another one if more\n }\n\n // POST\n if ($_POST) {\n\n foreach ($_POST as $key => $value) {\n $params[$key] = $value;\n }\n\n }\n\n return $params;\n }", "title": "" }, { "docid": "34a7ad00a7704d338eeb5f740731af46", "score": "0.5281391", "text": "private function performPaging(RequestDescription $request, array $result)\n {\n //Apply (implicit and explicit) $orderby option\n $internalOrderByInfo = $request->getInternalOrderByInfo();\n if (!is_null($internalOrderByInfo)) {\n $orderByFunction = $internalOrderByInfo->getSorterFunction()->getReference();\n usort($result, $orderByFunction);\n }\n\n //Apply $skiptoken option\n $internalSkipTokenInfo = $request->getInternalSkipTokenInfo();\n if (!is_null($internalSkipTokenInfo)) {\n $matchingIndex = $internalSkipTokenInfo->getIndexOfFirstEntryInTheNextPage($result);\n $result = array_slice($result, $matchingIndex);\n }\n\n //Apply $top and $skip option\n if (!empty($result)) {\n $top = $request->getTopCount();\n $skip = $request->getSkipCount();\n if (is_null($skip)) {\n $skip = 0;\n }\n\n $result = array_slice($result, $skip, $top);\n }\n\n return $result;\n }", "title": "" }, { "docid": "c2c0a6d4343e9b566de4c9490be67fa4", "score": "0.5266038", "text": "public static function parseRequest(){\r\n\t\t\t$page=U::varFromRequest('page','Home',true);\r\n\t\t\t$action=U::varFromRequest('action','Index',true);\r\n\t\t\tif (!SessionManager::isLoggedIn()) \r\n\t\t\t\tif (($action!='SubmitLogin')||($page!='Home')){\r\n\t\t\t\t$page='Home';\r\n\t\t\t\t$action='Login';\r\n\t\t\t}\r\n\t\t\treturn array($page,$action);\r\n\t\t}", "title": "" }, { "docid": "bfa4c7030753050cd7b8e0a140deb556", "score": "0.52660245", "text": "abstract protected function getRequestParameters(): array;", "title": "" }, { "docid": "e7cc4d19985a15c41a566900a0e4597e", "score": "0.52562475", "text": "private static function getParamsForQuery(){\n $requestHeader = \"\";\n if (count(self::$aditionalDescription) > 0) {\n $requestHeader = self::$aditionalDescription.\", Headers:\";\n }\n \n $headers = getallheaders();\n foreach($headers as $key=>$val){\n $requestHeader .= $key . ': ' . $val . ', ';\n } \n return array(\n self::$currentUser,\n self::$function,\n self::$description,\n $requestHeader \n );\n }", "title": "" }, { "docid": "6f48d7abfb20fa157208e80ca2a1d3c3", "score": "0.52527654", "text": "private function set_pagination()\n {\n // A result count is required\n if ( ! $this->count)\n {\n return NULL;\n }\n\n // If page is not set lets try to get it from the query string\n if ( ! $this->page)\n {\n $this->page = $this->input->get('page') ? $this->input->get('page') : 1;\n }\n\n // Create the pagination object\n $this->pagination = new stdClass;\n $this->pagination->current_page = (int)$this->page;\n $this->pagination->per_page = $this->per_page;\n $this->pagination->first_page = (($this->page - 1) * $this->per_page) + 1;\n $this->pagination->last_page = min((($this->page) * $this->per_page), $this->count);\n $this->pagination->total_pages = ceil($this->count / $this->per_page);\n $this->pagination->total_items = $this->count;\n\n return $this->pagination;\n }", "title": "" }, { "docid": "62b1a54bc2d065384a2fd6a545a2fce5", "score": "0.524892", "text": "public function get_collection_params() {\n\t\treturn array(\n\t\t\t'context' => $this->get_context_param(),\n\t\t\t'number' => array(\n\t\t\t\t'description' => __( 'The number of items to query for. Use -1 for all.', 'affiliate-wp' ),\n\t\t\t\t'sanitize_callback' => 'absint',\n\t\t\t\t'validate_callback' => function( $param, $request, $key ) {\n\t\t\t\t\treturn is_numeric( $param );\n\t\t\t\t},\n\t\t\t),\n\t\t\t'offset' => array(\n\t\t\t\t'description' => __( 'The number of items to offset in the query.', 'affiliate-wp' ),\n\t\t\t\t'sanitize_callback' => 'absint',\n\t\t\t\t'validate_callback' => function( $param, $request, $key ) {\n\t\t\t\t\treturn is_numeric( $param );\n\t\t\t\t},\n\t\t\t),\n\t\t\t'order' => array(\n\t\t\t\t'description' => __( 'How to order results. Accepts ASC (ascending) or DESC (descending).', 'affiliate-wp' ),\n\t\t\t\t'validate_callback' => function( $param, $request, $key ) {\n\t\t\t\t\treturn in_array( strtoupper( $param ), array( 'ASC', 'DESC' ) );\n\t\t\t\t},\n\t\t\t),\n\t\t\t'fields' => array(\n\t\t\t\t'description' => __( \"Fields to limit the selection for. Accepts 'ids'. Default '*' for all.\", 'affiliate-wp' ),\n\t\t\t\t'sanitize_callback' => 'sanitize_text_field',\n\t\t\t\t'validate_callback' => function( $param, $request, $key ) {\n\t\t\t\t\treturn is_string( $param );\n\t\t\t\t},\n\t\t\t),\n\t\t\t'rest_id' => array(\n\t\t\t\t'description' => __( 'The rest ID (site:object ID combination)', 'affiliate-wp' ),\n\t\t\t\t'sanitize_callback' => 'sanitize_text_field',\n\t\t\t\t'validate_callback' => array( $this, 'validate_rest_id' ),\n\t\t\t),\n\t\t\t'response_callback' => array(\n\t\t\t\t'description' => __( 'A callback to pass the response through before returning.', 'affiliate-wp' ),\n\t\t\t\t'validate_callback' => function( $param, $request, $key ) {\n\t\t\t\t\treturn is_callable( $param );\n\t\t\t\t}\n\t\t\t),\n\t\t);\n\t}", "title": "" }, { "docid": "0ecff6d8b6290b7d7302ccb8480309d4", "score": "0.52485144", "text": "private function initPageNumberFromGet(){\n\t\tif(array_key_exists($this->getUrlParam(), $_GET) and is_numeric($_GET[$this->getUrlParam()]) and $_GET[$this->getUrlParam()] > 0){\r\n\t\t\t$this->pageNumber = intval($_GET[$this->getUrlParam()]);\r\n\t\t}\n\t}", "title": "" }, { "docid": "cb29071343b954132bc381fea7ba3227", "score": "0.52472514", "text": "public function getParams(){\n if(count($this->url)){\n $this->params = $this->url;\n }\n }", "title": "" }, { "docid": "82ae8274183a54ae5fe2c296431a36d6", "score": "0.52431875", "text": "function inicializaParametrosURL3333333(){\n parse_str(parse_url($_SERVER['REQUEST_URI'], PHP_URL_QUERY), $params);\n\n $default = [\n 'pag'=>1,\n 'modo'=>'t', \n 'order'=>'id',\n 'sens'=>'asc',\n ];\n\n return array_merge($default,array_intersect_key($params, $default));\n}", "title": "" }, { "docid": "38ca465a6c42a419527bdcf5639e2107", "score": "0.5239403", "text": "private function getCardsInfo($limit, $skip) {\n\n $query_params = array();\n $query_params['limit'] = $limit;\n $query_params['skip'] = $skip;\n return $query_params;\n }", "title": "" }, { "docid": "2a775bb041f88ae9b9a1d0432ad112ac", "score": "0.52334136", "text": "public function getRequestParameters()\n {\n return $this->request_parameters;\n }", "title": "" }, { "docid": "a6fddc67f981b53e78e89f35d52b5e77", "score": "0.5214174", "text": "function getParameters(){\n return $this->requestHandler->getParameters();\n }", "title": "" }, { "docid": "7336435430fba102e32f5a6ee4ddee20", "score": "0.5209595", "text": "public function paginationFix( $request ) {\n\t\t\tif( !thb_array_contains($this->_type, array('post', 'page')) && $this->isPublicContent() ) {\n\t\t\t\t$dummy_query = new WP_Query();\n\t\t\t\t$dummy_query->parse_query($request);\n\n\t\t\t\t$thb_works_taxonomies = $this->getTaxonomies();\n\n\t\t\t\tforeach( $thb_works_taxonomies as $tax ) {\n\t\t\t\t\tif( isset($request[$tax->getType()]) ) {\n\t\t\t\t\t\tif ( $dummy_query->is_front_page() || $dummy_query->is_archive() ) {\n\t\t\t\t\t\t\t$posts_per_page = thb_get_option( $this->getType() . '_per_page');\n\n\t\t\t\t\t\t\tif( !empty($posts_per_page) ) {\n\t\t\t\t\t\t\t\t$request[\"posts_per_page\"] = $posts_per_page;\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\n\t\t\treturn $request;\n\t\t}", "title": "" }, { "docid": "953d59ede19ba0ccd19eb51f90a58d3f", "score": "0.52074015", "text": "protected function getRequestParameters()\r\n {\r\n $data = array();\r\n\r\n // request parse data - test later, get the body of delete, put, patch req.\r\n //parse_str(file_get_contents(\"php://input\"),$post_vars);\r\n //echo $post_vars['fruit'].\" is the fruit\\n\";\r\n\r\n foreach($_POST as $key => $value){\r\n // do some security stuff here for request params\r\n if(!empty($_POST[$key])){\r\n if(strtolower($key) != 'email'){\r\n $data[$key] = urlencode($value);\r\n }else{\r\n $data[$key] = $value;\r\n }\r\n }\r\n }\r\n foreach($_GET as $key => $value){\r\n // checking for additional parameters and removing Tiny's route from GET\r\n if(!empty($_GET[$key])){\r\n if($key != 'route'){\r\n $data[$key] = $value;\r\n }\r\n }\r\n }\r\n return (object)$data;\r\n }", "title": "" }, { "docid": "64cbcb9956e08bbb27f7ea7bba87e138", "score": "0.5188115", "text": "public static function getPaginated( Request $request )\n {\n $records = ( new self )->withJoins( $request )->withFilters( $request );\n\n $aggregates = self::getAggregates( $records );\n\n $results = $records->withOrder( $request->input( 'sort' ), $request->input( 'desc' ) )\n ->forPage( $request->input( 'perPage' ), $request->input( 'page' ) )\n ->get();\n\n $resultResource = self::getCollectionResource( $results );\n\n return [ $aggregates, $resultResource ];\n }", "title": "" }, { "docid": "9910c08f8a2a95826bd7bc4115f5d0be", "score": "0.5185882", "text": "public static function getParams(Request $request, $method = null)\n {\n if($method === null)\n {\n $method = $request->getMethod();\n }\n if(strtoupper($method) === Utils::$METHOD_GET)\n {\n return $request->query->all();\n } else if(strtoupper($method) === Utils::$METHOD_POST)\n {\n return $request->request->all();\n } else\n {\n return null;\n }\n }", "title": "" }, { "docid": "c7622801feda4801103cd62b5c129569", "score": "0.5181988", "text": "function hook_cnapi_request_validate($request) {\n // maximum pagelength is 20\n if (isset($request['query']['pagelength']) && $request['query']['pagelength'] > 20) {\n return FALSE;\n }\n}", "title": "" }, { "docid": "315f4fc0a0b0cd51ba3575389f3a9e28", "score": "0.51810396", "text": "protected function buildPagination() {\n\n\t\t$pages = array();\n\n\t\tfor ($i = 1; $i <= $this->numberOfPages; $i++) {\n\t\t\t$pages[] = array('number' => $i, 'isCurrent' => ($i === $this->currentPage));\n\t\t}\n\n\t\tif ($this->maxPageNumberElements > 0) {\n\n\t\t\t$edgePages = array();\n\n\t\t\t\t// find the numbers 'at the edges' of a range\n\t\t\tforeach ($pages as $key => $value) {\n\t\t\t\t\t// generally write all keys from which a new range starts into this array\n\t\t\t\tif (($key % $this->maxPageNumberElements) == 0) $edgePages[] = $key;\n\t\t\t\t\t// determine where the current page fits in - this is the basis for the later range detection\n\t\t\t\tif ($key == $this->currentPage) $edgePages[] = $key;\n\t\t\t}\n\n\t\t\t\t// necessary if we're on the very last page - this will not yet be in edgePages since the foreach loop stops one short in regard to the values\n\t\t\tif ($this->currentPage > (count($pages)-1)) $edgePages[] = $this->currentPage;\n\n\t\t\t$currentPageLocation = array_search($this->currentPage, $edgePages);\n\t\t\t$pageRange = array_slice($pages, $edgePages[$currentPageLocation-1], $this->maxPageNumberElements);\n\n\t\t\t$pages = $pageRange;\n\t\t}\n\n\t\t$pagination = array(\n\t\t\t'pages' => $pages,\n\t\t\t'currentPage' => $this->currentPage,\n\t\t\t'numberOfPages' => $this->numberOfPages,\n\t\t\t'previousPageRange' => $edgePages[$currentPageLocation-1],\n\t\t\t'nextPageRange' => ($edgePages[$currentPageLocation+1] != NULL) ? $edgePages[$currentPageLocation+1]+1 : 0\n\t\t);\n\n\t\tif ($this->currentPage < $this->numberOfPages) {\n\t\t\t$pagination['nextPage'] = $this->currentPage + 1;\n\t\t}\n\n\t\tif ($this->currentPage > 1) {\n\t\t\t$pagination['previousPage'] = $this->currentPage - 1;\n\t\t}\n\n\t\treturn $pagination;\n\t}", "title": "" }, { "docid": "67f077e26aecbd4b03c214060aac7737", "score": "0.5181022", "text": "private function getPage(): array\n {\n $objects = $this->getObjects();\n if (0 === $this->pageSize || 0 === \\count($objects)) {\n return [];\n }\n\n if (null === $this->token) {\n //First call: continuous token is not present, so we return the first page of objects\n return \\array_slice($objects, 0, $this->pageSize);\n }\n\n $objects = $this->filterObjects($objects);\n if (0 === \\count($objects)) {\n return [];\n }\n\n if ($this->orderValueDiffers($objects) || $this->checksumDiffers($objects)) {\n // Fallback: deliver all the first-page of the filtered elements involved (the elements >= timestamp requested)\n return \\array_slice($objects, 0, $this->pageSize);\n }\n\n /*\n * else: return the page taking into account the offset of the previous request:\n * This means multiple objects have the same timestamp and different offset, so this value\n * must be taken into account\n */\n return \\array_slice($objects, $this->token->getOffset(), $this->pageSize);\n }", "title": "" }, { "docid": "445063c96a9a23c7b2c38409a2a6f56c", "score": "0.5180114", "text": "public function query_paged(){\n\t\t$args = func_get_args();\n\t\t$page = intval(array_shift($args));\n\t\t$per_page = intval(array_shift($args));\n\t\n\t\t$args[0] .= \" LIMIT \" . ($page - 1) * $per_page . \", \" . ($per_page + 1);\n\n\t\t$result = call_user_func_array(array($this, 'query'), $args);\n\t\t$rows = $this->number_rows();\n\n\t\treturn array(\n\t\t\t\t\"result\" => $result,\n\t\t\t\t\"next\" => ($rows == ($per_page+1) ? true : false),\n\t\t\t\t\"previous\" => ($page == 1 ? false : true)\n\t\t\t\t);\n\t}", "title": "" }, { "docid": "7dc70c0f1ed5ff6e050b4368ecfa00d6", "score": "0.5178936", "text": "public function getParametersForEndpoint( $endpoint ) {\n\t\t$endpointMap = [\n\t\t\t'search/search' => [\n\t\t\t\t'query',\n\t\t\t\t'limit'\n\t\t\t],\n\t\t\t'search/predictive' => [\n\t\t\t\t'query',\n\t\t\t\t'limit'\n\t\t\t],\n\t\t\t'search/categories' => [\n\t\t\t\t'query',\n\t\t\t\t'limit'\n\t\t\t],\n\t\t\t'search/suggestions' => [\n\t\t\t\t'query',\n\t\t\t\t'limit'\n\t\t\t],\n\t\t\t'search/popular' => [\n\t\t\t\t'query',\n\t\t\t\t'limit'\n\t\t\t],\n\t\t\t'recommendations/popular' => [\n\t\t\t\t'limit'\n\t\t\t],\n\t\t\t'recommendations/trending' => [\n\t\t\t\t'limit'\n\t\t\t],\n\t\t\t'recommendations/currently_watched' => [\n\t\t\t\t'limit'\n\t\t\t],\n\t\t\t'recommendations/popular' => [\n\t\t\t\t'limit'\n\t\t\t],\n\t\t\t'recommendations/keywords' => [\n\t\t\t\t'limit',\n\t\t\t\t'keywords'\n\t\t\t],\n\t\t\t'recommendations/complementary' => [\n\t\t\t\t'limit',\n\t\t\t\t'products'\n\t\t\t],\n\t\t\t'recommendations/substituting' => [\n\t\t\t\t'limit',\n\t\t\t\t'products'\n\t\t\t],\n\t\t\t'recommendations/category/popular' => [\n\t\t\t\t'limit',\n\t\t\t\t'category'\n\t\t\t],\n\t\t\t'recommendations/category/trending' => [\n\t\t\t\t'limit',\n\t\t\t\t'category'\n\t\t\t],\n\t\t\t'recommendations/visitor/history' => [\n\t\t\t\t'limit',\n\t\t\t],\n\t\t\t'recommendations/visitor/complementary' => [\n\t\t\t\t'limit',\n\t\t\t],\n\t\t\t'recommendations/visitor/substituting' => [\n\t\t\t\t'limit',\n\t\t\t],\n\t\t\t'recommendations/customer/history' => [\n\t\t\t\t'limit',\n\t\t\t\t'email'\n\t\t\t],\n\t\t\t'recommendations/customer/complementary' => [\n\t\t\t\t'limit',\n\t\t\t\t'email'\n\t\t\t],\n\t\t\t'recommendations/customer/substituting' => [\n\t\t\t\t'limit',\n\t\t\t\t'email'\n\t\t\t],\n\t\t];\n\n\t\tif ( array_key_exists( $endpoint, $endpointMap ) ) {\n\t\t\treturn $endpointMap[ $endpoint ];\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "5e94f90312dd54df193a5423f8f91a3a", "score": "0.51748675", "text": "public function getHttpQuery(): array\n {\n $result = [];\n\n if (null !== $this->page) {\n $result['page'] = $this->page;\n }\n\n if (null !== $this->pagesize) {\n $result['pagesize'] = $this->pagesize;\n }\n\n return $result;\n }", "title": "" }, { "docid": "5540b42afb759545b21408cd5653be32", "score": "0.51688355", "text": "public function addPagination();", "title": "" }, { "docid": "cf337b4a495254762e58d85f7e48511f", "score": "0.5164636", "text": "public function getPaginationInfos() {\n\t\t$infos = array(\n\t\t\t'current_page' => $this->_currentPage,\n\t\t\t'page_range' => $this->_getPageRange(),\n\t\t\t'page_count' => $this->_getPageCount(),\n\t\t);\n\t\treturn $infos;\n\t}", "title": "" }, { "docid": "e9b4278fe1af8aff969e8b8a743df951", "score": "0.5153896", "text": "function paging_query($query, $page, $lastPage = null)\n {\n parse_str($query, $params);\n if( $page < 1 ) $page = 1;\n if( $lastPage && $page > $lastPage ) $page = $lastPage;\n $params['page'] = $page;\n return implode('&', array_map(function ($v, $k) { return sprintf(\"%s=%s\", $k, $v); }, $params, array_keys($params)));\n }", "title": "" }, { "docid": "9c2f21a65e151940e11177ba05d405ca", "score": "0.51496726", "text": "public function limit () {\n\t\t$params = $this->obj->limit;\n\t\t\n\t\tif ($this->obj->offset){\n\t\t\t$params['limit'] = $this->obj->limit;\n\t\t\t$params['skip'] = $this->obj->offset;\n\t\t}\n\t\treturn $params;\n\t}", "title": "" }, { "docid": "eb45636fb8c2b6bb0ffab6ee10556fd2", "score": "0.5141745", "text": "public function getQuery() {\n $sort = $this->request->query->get('sort');\n $field = $this->request->query->get('field');\n $search = $this->request->query->get('search');\n $page = $this->request->query->get('page');\n $perPage = $this->request->query->get('perPage');\n $category = $this->request->query->get('category');\n $startPrice = $this->request->query->get('startPrice');\n $targetPrice = $this->request->query->get('targetPrice');\n\n $query = new ParamsToPaginate();\n\n if ($sort == 'ASC' || $sort == 'DESC') {\n $query->setSort($sort);\n }\n\n if ($field) {\n\n $query->setField($field);\n }\n\n if ($search) {\n $query->setSearch($search);\n }\n\n if ($page) {\n $query->setPage($page);\n }\n\n if ($perPage) {\n $query->setPerPage($perPage);\n }\n\n if ($category) {\n $query->setCategory($category);\n }\n\n if ($startPrice) {\n $query->setStartPrice($startPrice);\n }\n\n if ($targetPrice) {\n $query->setTargetPrice($targetPrice);\n }\n return $query;\n }", "title": "" }, { "docid": "eb6c88e34ec40b06995f64044d26d90f", "score": "0.51097834", "text": "private function getPagingAndFilterParameters($filters, $pageIndex, $pageSize)\n {\n /*\n * filter.categoryCode\n * filter.systemCategoryCode\n * filter.upc\n * filter.sku\n * filter.serial\n * filter.shortName\n * filter.inventoryType\n * filter.active\n * filter.lookup\n */\n $parameters = [\n 'pageIndex' => $pageIndex,\n 'pageSize' => $pageSize,\n ];\n if ($filters) {\n foreach ($filters as $filter => $value) {\n $parameters[ $filter ] = $value;\n }\n }\n\n return $parameters;\n }", "title": "" }, { "docid": "3c5dc20bc4c94ab05312489cd3629858", "score": "0.5107167", "text": "public function get_page_params() {\n $mform =& $this->_form;\n if (!$this->is_cancelled() && $this->is_submitted() && $this->is_validated()) {\n return $mform->exportValues();\n } else {\n return array();\n }\n }", "title": "" }, { "docid": "fe2142ab57b5499e1f0727db66e44984", "score": "0.5105957", "text": "public function getParams()\n {\n $lines_docs = array_filter($this->getParsedDocs(), function ($item) {\n return preg_match('/^@(param|property)/i', $item);\n });\n\n $params = [];\n\n $lines_docs = array_map(function ($item) {\n return preg_replace('/^@(param|property) (.*)/i', '$2', $item);\n }, $lines_docs);\n\n foreach ($lines_docs as $item) {\n $matches = [];\n\n if (!preg_match('/(.*)\\ ?(\\$.*)$/i', $item, $matches)) {\n continue;\n }\n\n if (empty($matches[1])) {\n $matches[1] = \"mixed\";\n }\n\n $params[$matches[2]] = array_map(function ($row) {\n return trim($row);\n }, explode('|', $matches[1]));\n }\n\n return $params;\n }", "title": "" }, { "docid": "0083777333bd336e86e2a8050eb35c23", "score": "0.5105895", "text": "protected function populateParams() {\r\n /**\r\n * @var Dzit_RequestParser\r\n */\r\n $requestParser = Dzit_RequestParser::getInstance();\r\n $this->categoryId = (int)$requestParser->getPathInfoParam(1);\r\n /**\r\n * @var Vushop_Bo_Catalog_ICatalogDao\r\n */\r\n $catalogDao = $this->getDao(DAO_CATALOG);\r\n $this->category = $catalogDao->getCategoryById($this->categoryId);\r\n if ($this->category !== NULL) {\r\n $children = $catalogDao->getCategoryChildren($this->category);\r\n $this->category->setChildren($children);\r\n }\r\n \r\n $this->itemSorting = isset($_SESSION[SESSION_ITEM_SORTING]) ? $_SESSION[SESSION_ITEM_SORTING] : DEFAULT_ITEM_SORTING;\r\n if (isset($_GET['s'])) {\r\n $this->itemSorting = $_GET['s'];\r\n }\r\n if ($this->itemSorting !== ITEM_SORTING_PRICEASC && $this->itemSorting !== ITEM_SORTING_PRICEDESC && $this->itemSorting !== ITEM_SORTING_TIMEASC && $this->itemSorting !== ITEM_SORTING_TIMEDESC && $this->itemSorting !== ITEM_SORTING_TITLE) {\r\n $this->itemSorting = DEFAULT_ITEM_SORTING;\r\n }\r\n $_SESSION[SESSION_ITEM_SORTING] = $this->itemSorting;\r\n \r\n $this->pageNum = isset($_GET['p']) ? (int)$_GET['p'] : 1;\r\n if ($this->pageNum < 1) {\r\n $this->pageNum = 1;\r\n }\r\n }", "title": "" }, { "docid": "27de752e7b89aafe868b920caa6ec933", "score": "0.51052827", "text": "private function extractProperties()\n {\n foreach (\\SecureGuestbook\\Configuration::getInputParams() as $paramName => $paramOpts) {\n if (isset($_REQUEST[$paramName])) {\n $this->createProperty($paramName, $paramOpts);\n }\n }\n }", "title": "" } ]
755164e78729de44d9d33593961434ae
Affiche la liste des billets du blog
[ { "docid": "71144231b802fe0025565fed7d2a379e", "score": "0.0", "text": "public function display()\n {\n var_dump($this->liste);\n //$this->liste;\n // $this->liste->getBillets();\n // var_dump($this->liste->getBillets());\n require __DIR__ . './../../templates/liste_billets.php';\n }", "title": "" } ]
[ { "docid": "c04c6c397ff479c76f3f5dda582da765", "score": "0.72840226", "text": "public function getBlogs();", "title": "" }, { "docid": "581703fe87a4c44f9fa9e4ed607875c3", "score": "0.7183728", "text": "public function blog_post_items()\r\n {\r\n // Check for user\r\n if (!$user = $this->_requireUser()) {\r\n $url = '/account/blog_posts';\r\n $url = '/account/login?redirect='.base64_encode($url);\r\n return $this->_redirect($url, Text::get('acc_login'), 'warn');\r\n }\r\n\r\n // Get user's submitted blogs\r\n $blogs = array();\r\n if (!empty($user['articles']['blog'])) {\r\n $blogs = $user['articles']['blog'];\r\n }\r\n\r\n // Get/set sort\r\n $sort = $this->_getSort();\r\n Session::set('sort', $sort);\r\n $itemsModel = BluApplication::getModel('items');\r\n $blogs = $itemsModel->sortItems($blogs, $sort);\r\n\r\n // Get/set layout and ordering\r\n $layout = $this->_getLayout();\r\n Session::set('layout', $layout);\r\n\r\n // Do display stuff\r\n $this->_view = 'blogs';\r\n\r\n $baseUrl = '/account/blog_posts';\r\n $pathway = $this->_getBreadcrumbs();\r\n $documentTitle = $listingTitle = 'My Blog Posts';\r\n $page = Request::getInt('page', 1);\r\n $limit = $this->_getLimit();\r\n\r\n return $this->_listItems($blogs, $page, $limit, $baseUrl, null, null, $sort, $layout, $pathway, $documentTitle, $listingTitle);\r\n }", "title": "" }, { "docid": "d509f86e997c5232c4b5226d3a219e2e", "score": "0.70260775", "text": "public function index()\n\t{\n\t\t//get the section data\n\t\t$global = new Globals();\n\t\t$this->view\n\t\t\t->assign('section', $global->getSectionData('blog'));\n\t\t\n\t\t//get the blog data\n\t\t$data = $this->model->getList();\n\t\t\t\n\t\techo \"\\n<pre>\\n\", print_r($this->filter->display($data)), \"\\n</pre>\\n\";\n\t\texit;\n\t\t\t\n\t\t$this->view\n\t\t\t->assign('posts', $this->filter->display($data))\n\t\t\t->template('list')\n\t\t;\n\t}", "title": "" }, { "docid": "d356ab1768c4a8d7adf8e670825541e2", "score": "0.70081985", "text": "public function myList()\n\t{\n\t\t\n\t\t$perPage = 5;\n\t\t$user = $_SESSION['username'];\n\t\t\n\t\t$blogModel = $this->model(\"BlogModel\");\n\t\t$count = $blogModel->getUserPostCount($user);\n\t\t\n\t\t$totalPages = ceil($count[0]['count'] / $perPage);\n\t\t$data['total']=$totalPages;\n\t\tif(isset($_GET['page'])){\n\t\t\t$page = $_GET['page'];\n\t\t}else{\n\t\t\t$page = 1;\n\t\t}\n\t\t$data['page']=$page;\n\t\t\n\t\tif ($page){\n\t\t\t$data['start'] = ($page-1) * $perPage;\n\t\t}else{\n\t\t\t$data['start'] = 0;\n\t\t}\n\t\t$data['co'] = $count[0]['count'];\n\t\t$data['perPage'] = $perPage;\n\t\t$data['postList'] = $blogModel->getUserPosts($user, $data['start'], $perPage);\n\t\t$data['index']= \"index?\";\n\t\t$this->view(\"blog/myList\", $data);\n\t\t\n\t}", "title": "" }, { "docid": "99a299096278a3aea6382d91205fc378", "score": "0.6965476", "text": "public function liste()// liste de tous les articles\n {\n //$this->allowTo('admin');\n\n $managerArticles = new \\Manager\\BlogManager();\n $managerArticles->setTable('articles');\n $articles = $managerArticles->findAll($orderBy='dateCreated', $orderDir='DESC');\n $this->searchBar();\n\n $this->show('blog/liste', ['articles'=>$articles, 'categories' => BlogController::categoriesMenu()]);\n }", "title": "" }, { "docid": "a03c20fe5206f5331cd154815a1c3abd", "score": "0.6962525", "text": "public function indexAction() {\n\t\tif ($this -> _getParam('max') != '' && $this -> _getParam('max') >= 0) {\n\t\t\t$limitMCblog = $this -> _getParam('max');\n\t\t} else {\n\t\t\t$limitMCblog = 6;\n\t\t}\n\t\t$view_mode = $this->_getParam('view_mode', 'list');\n\t\t$mode_enabled = array();\n\t\tif ($this->_getParam('mode_grid', 0))\n\t\t{\n\t\t\t$mode_enabled[] = 'grid';\n\t\t}\n\t\tif ($this->_getParam('mode_list', 0))\n\t\t{\n\t\t\t$mode_enabled[] = 'list';\n\t\t}\n\t\tif(!in_array($view_mode, $mode_enabled) && $mode_enabled)\n\t\t{\n\t\t\t$view_mode = $mode_enabled[0];\n\t\t}\n\t\t$this -> view -> mode_enabled = $mode_enabled;\n\t\t$this -> view -> view_mode = $view_mode;\n\t\t//Get blogs\n\t\t$b_table = Engine_Api::_() -> getItemtable('blog');\n\t\t$bName = $b_table -> info('name');\n\t\t$select = $b_table -> select() -> from($bName) \n\t\t\t-> order('comment_count DESC') \n\t\t\t-> where(\"search = ?\", \"1\") \n\t\t\t-> where(\"draft = ?\", \"0\") \n\t\t\t-> where(\"is_approved = ?\", \"1\") \n\t\t\t-> where(\"comment_count > ?\", \"0\") \n\t\t\t-> limit($limitMCblog);\n\n\t\t$this -> view -> blogs = $blogs = $b_table -> fetchAll($select);\n\t\t$this -> view -> limit = $limitMCblog;\n\t\tif (!count($blogs)) {\n\t\t\treturn $this -> setNoRender();\n\t\t}\n\t}", "title": "" }, { "docid": "941c4633b616ddf367d3bd5d94b89f48", "score": "0.6861654", "text": "function ciniki_blog_web_ciListPosts($ciniki, $settings, $tnid, $args, $blogtype) {\n\n //\n // Load the tenant settings\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'tenants', 'private', 'intlSettings');\n $rc = ciniki_tenants_intlSettings($ciniki, $tnid);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $intl_timezone = $rc['settings']['intl-default-timezone'];\n $intl_currency_fmt = numfmt_create($rc['settings']['intl-default-locale'], NumberFormatter::CURRENCY);\n $intl_currency = $rc['settings']['intl-default-currency'];\n\n //\n // Build the query string to get the posts\n //\n $strsql = \"SELECT ciniki_blog_posts.id, \"\n . \"ciniki_blog_posts.publish_date AS name, \"\n . \"ciniki_blog_posts.publish_date AS publish_time, \"\n . \"ciniki_blog_posts.title, \"\n . \"ciniki_blog_posts.permalink, \"\n . \"ciniki_blog_posts.primary_image_id, \"\n . \"ciniki_blog_posts.excerpt, \"\n . \"IF(ciniki_blog_posts.content<>'','yes','no') AS is_details \"\n . \"\";\n\n if( isset($args['latest']) && $args['latest'] == 'yes' ) {\n $strsql .= \", 'unknown' AS tag_name \"\n . \"FROM ciniki_blog_posts \"\n . \"WHERE ciniki_blog_posts.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \"AND ciniki_blog_posts.status = 40 \"\n . \"AND ciniki_blog_posts.publish_date < UTC_TIMESTAMP() \"\n . \"\";\n } elseif( isset($args['collection_id']) && $args['collection_id'] > 0 ) {\n $strsql .= \", 'unknown' AS tag_name \"\n . \"FROM ciniki_web_collection_objrefs \"\n . \"INNER JOIN ciniki_blog_posts ON (\"\n . \"ciniki_blog_posts.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \"AND ciniki_blog_posts.status = 40 \"\n . \"AND ciniki_blog_posts.publish_date < UTC_TIMESTAMP() \"\n . \") \"\n . \"WHERE ciniki_web_collection_objrefs.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \"AND ciniki_web_collection_objrefs.collection_id = '\" . ciniki_core_dbQuote($ciniki, $args['collection_id']) . \"' \"\n . \"AND ciniki_web_collection_objrefs.object = 'ciniki.blog.post' \"\n . \"\";\n } elseif( isset($args['tag_type']) && $args['tag_type'] != '' && isset($args['tag_permalink']) && $args['tag_permalink'] != '' ) {\n $strsql .= \", ciniki_blog_post_tags.tag_name \"\n . \"FROM ciniki_blog_post_tags \"\n . \"LEFT JOIN ciniki_blog_posts ON (ciniki_blog_post_tags.post_id = ciniki_blog_posts.id \"\n . \"AND ciniki_blog_posts.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \"AND ciniki_blog_posts.status = 40 \"\n . \"AND ciniki_blog_posts.publish_date < UTC_TIMESTAMP() \"\n . \") \"\n . \"WHERE ciniki_blog_post_tags.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \"AND ciniki_blog_post_tags.tag_type = '\" . ciniki_core_dbQuote($ciniki, $args['tag_type']) . \"' \"\n . \"AND ciniki_blog_post_tags.permalink = '\" . ciniki_core_dbQuote($ciniki, $args['tag_permalink']) . \"' \"\n . \"\";\n } elseif( isset($args['category']) && $args['category'] != '' ) {\n $strsql .= \", ciniki_blog_post_tags.tag_name \"\n . \"FROM ciniki_blog_post_tags \"\n . \"LEFT JOIN ciniki_blog_posts ON (ciniki_blog_post_tags.post_id = ciniki_blog_posts.id \"\n . \"AND ciniki_blog_posts.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \"AND ciniki_blog_posts.status = 40 \"\n . \"AND ciniki_blog_posts.publish_date < UTC_TIMESTAMP() \"\n . \") \"\n . \"WHERE ciniki_blog_post_tags.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \"AND ciniki_blog_post_tags.tag_type = 10 \"\n . \"AND ciniki_blog_post_tags.permalink = '\" . ciniki_core_dbQuote($ciniki, $args['category']) . \"' \"\n . \"\";\n } elseif( isset($args['tag']) && $args['tag'] != '' ) {\n $strsql .= \", ciniki_blog_post_tags.tag_name \"\n . \"FROM ciniki_blog_post_tags \"\n . \"LEFT JOIN ciniki_blog_posts ON (ciniki_blog_post_tags.post_id = ciniki_blog_posts.id \"\n . \"AND ciniki_blog_posts.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \"AND ciniki_blog_posts.status = 40 \"\n . \"AND ciniki_blog_posts.publish_date < UTC_TIMESTAMP() \"\n . \") \"\n . \"WHERE ciniki_blog_post_tags.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \"AND ciniki_blog_post_tags.tag_type = 20 \"\n . \"AND ciniki_blog_post_tags.permalink = '\" . ciniki_core_dbQuote($ciniki, $args['tag']) . \"' \"\n . \"\";\n } elseif( isset($args['year']) && $args['year'] != '' ) {\n if( isset($args['month']) && $args['month'] != '' ) {\n // Build the start and end datetimes\n $tz = new DateTimeZone($intl_timezone);\n $start_date = new DateTime($args['year'] . '-' . $args['month'] . '-01 00.00.00', $tz);\n $end_date = clone $start_date;\n // Find the end of the month\n $end_date->add(new DateInterval('P1M'));\n } else {\n $tz = new DateTimeZone($intl_timezone);\n $start_date = new DateTime($args['year'] . '-01-01 00.00.00', $tz);\n $end_date = clone $start_date;\n // Find the end of the month\n $end_date->add(new DateInterval('P1Y'));\n }\n $start_date->setTimezone(new DateTimeZone('UTC'));\n $end_date->setTimezone(new DateTimeZone('UTC'));\n\n $strsql .= \", 'unknown' AS tag_name \"\n . \"FROM ciniki_blog_posts \"\n . \"WHERE ciniki_blog_posts.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \"AND ciniki_blog_posts.status = 40 \"\n . \"AND ciniki_blog_posts.publish_date >= '\" . $start_date->format('Y-m-d H:i:s') . \"' \"\n . \"AND ciniki_blog_posts.publish_date < '\" . $end_date->format('Y-m-d H:i:s') . \"' \"\n . \"AND ciniki_blog_posts.publish_date < UTC_TIMESTAMP() \"\n . \"\";\n } else {\n $strsql .= \", 'unknown' AS tag_name \"\n . \"FROM ciniki_blog_posts \"\n . \"WHERE ciniki_blog_posts.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \"AND ciniki_blog_posts.status = 40 \"\n . \"AND ciniki_blog_posts.publish_date < UTC_TIMESTAMP() \"\n . \"\";\n }\n\n if( $blogtype == 'memberblog' ) {\n $strsql .= \"AND (ciniki_blog_posts.publish_to&0x04) > 0 \";\n if( isset($settings['page-memberblog-num-past-months']) && $settings['page-memberblog-num-past-months'] > 0 ) {\n $dt = new DateTime('now', new DateTimezone('UTC'));\n $dt->sub(new DateInterval('P' . preg_replace('/[^0-9]/', '', $settings['page-memberblog-num-past-months']) . 'M'));\n $strsql .= \"AND ciniki_blog_posts.publish_date > '\" . ciniki_core_dbQuote($ciniki, $dt->format('Y-m-d')) . \"' \";\n }\n } else {\n $strsql .= \"AND (ciniki_blog_posts.publish_to&0x01) > 0 \";\n if( isset($settings['page-blog-num-past-months']) && $settings['page-blog-num-past-months'] > 0 ) {\n $dt = new DateTime('now', new DateTimezone('UTC'));\n $dt->sub(new DateInterval('P' . preg_replace('/[^0-9]/', '', $settings['page-blog-num-past-months']) . 'M'));\n $strsql .= \"AND ciniki_blog_posts.publish_date > '\" . ciniki_core_dbQuote($ciniki, $dt->format('Y-m-d')) . \"' \";\n }\n }\n\n $strsql .= \"ORDER BY ciniki_blog_posts.publish_date DESC \";\n if( isset($args['offset']) && $args['offset'] > 0 && $args['offset'] < 1000000000\n && isset($args['limit']) && $args['limit'] > 0 ) {\n $strsql .= \"LIMIT \" . intval($args['offset']) . ', ' . intval($args['limit']);\n } elseif( isset($args['limit']) && $args['limit'] > 0 && $args['limit'] < 1000000000 ) {\n $strsql .= \"LIMIT \" . intval($args['limit']);\n }\n\n //\n // Get the list of posts, sorted by publish_date for use in the web CI List Categories\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbHashQueryIDTree');\n// $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.blog', '');\n $rc = ciniki_core_dbHashQueryIDTree($ciniki, $strsql, 'ciniki.blog', array(\n array('container'=>'posts', 'fname'=>'name', \n 'fields'=>array('name', 'tag_name'),\n 'utctotz'=>array('name'=>array('timezone'=>$intl_timezone, 'format'=>'M j, Y')),\n ),\n array('container'=>'list', 'fname'=>'id',\n 'fields'=>array('id', 'title', 'permalink', 'image_id'=>'primary_image_id', \n 'description'=>'excerpt', 'is_details')),\n )); \n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n// if( isset($rc['rows']) ) {\n// $posts = $rc['rows'];\n if( isset($rc['posts']) ) {\n $posts = $rc['posts'];\n } else {\n $posts = array();\n }\n\n return array('stat'=>'ok', 'posts'=>$posts);\n}", "title": "" }, { "docid": "7ee76a0ff4f23f95e7885fe093269fbc", "score": "0.67998254", "text": "public function getAllBlogEntries() {\n\t\t\n\t\t$blogEntries = new Datasource_Cms_Connect_BlogEntries();\n\t\treturn $blogEntries->getAll();\n\t}", "title": "" }, { "docid": "7fab18970228c8c32ebfdf2b9f035d4d", "score": "0.6778297", "text": "function _getBlogAll()\r\n\t{\r\n\t\treturn $this->_getBlogInfo();\r\n\t}", "title": "" }, { "docid": "11d5edc367d8f25ef1751b158fd529a1", "score": "0.6760032", "text": "public function getBlogList()\n {\n $blogs = Blog::paginate(10);\n return view('blog.frontend.blog-list', compact('blogs'));\n }", "title": "" }, { "docid": "9bf2ee46080e9a87a5f09c7ab38381c2", "score": "0.674636", "text": "public function actionBlog (){\n $query_p=Blog::find()->where(['hide' => 0]);\n $pagination =new Pagination([\n 'defaultPageSize'=> 5,\n 'totalCount' => $query_p -> count()\n ]);\n\n $blog_posts= $query_p->orderBy(['date' => SORT_DESC])\n ->offset($pagination->offset)\n ->limit($pagination->limit)\n ->all();\n\n return $this->render('blog',[\n 'blog_posts' => $blog_posts,\n 'active_page' => Yii::$app->request->get('page',1),\n 'count_pages' => $pagination ->getPageCount(),\n 'pagination' => $pagination\n ]);\n }", "title": "" }, { "docid": "12f509c3c7681b56f4e481db51d8625e", "score": "0.67391413", "text": "public function index()\n {\n\t \n\t $perPage = 5;\n\t \n $blogModel = $this->model(\"BlogModel\");\n $count = $blogModel->getCount();\n \n\t $totalPages = ceil($count[0]['count'] / $perPage);\n\t $data['total']=$totalPages;\n\t if(isset($_GET['page'])){\n\t \t$page = $_GET['page'];\n\t }else{\n\t \t$page = 1;\n\t }\n\t $data['page']=$page;\n\t\t\n\t if ($page){\n\t\t $data['start'] = ($page-1) * $perPage;\n\t }else{\n\t\t $data['start'] = 0;\n\t }\n\t $data['co'] = $count[0]['count'];\n\t $data['perPage'] = $perPage;\n $data['postList'] = $blogModel->getAll($data['start'], $perPage);\n\t\t$data['index']= \"index?\";\n $this->view(\"blog/list\", $data);\n \n }", "title": "" }, { "docid": "92852ea04daa40f445ac04c18259cfad", "score": "0.6715837", "text": "public function getBillets()\n { echo \"coucou ! \";\n $sql = \"SELECT id, titre, chapo,\n\tDATE_FORMAT(date_creation, '%d/%m/%Y à %Hh%imin%ss') AS date_creation\n\tFROM post ORDER BY date_creation DESC LIMIT 5\" ;\n return $this->executerRequete ($sql);\n }", "title": "" }, { "docid": "aa1913503871b59af788765e23c11939", "score": "0.67115384", "text": "function list_blog()\n {\n $list_articles = array(); //article data\n $article = new Article();\n $article->get_iterated();\n\n if (!$article->exists()) {\n\n $all_count = 0;\n $list_articles = null;\n } else {\n\n $all_count = $article->result_count();\n\n foreach ($article as $value) {\n\n $list_articles['user'] = $value->user_id;\n $tmp_title = $value->title;\n $tmp_content = substr(strip_tags(base64_decode($value->content)), 0, 150);\n\n $list_articles['articles'][$value->id]['id'] = $value->id;\n $list_articles['articles'][$value->id]['title'] = $tmp_title;\n $list_articles['articles'][$value->id]['content'] = $tmp_content;\n $list_articles['articles'][$value->id]['status'] = $value->status;\n $list_articles['articles'][$value->id]['createtime'] = $value->createtime;\n $list_articles['articles'][$value->id]['lastmodifiedtime'] = $value->lastmodifiedtime;\n }\n }\n unset($article);\n\n $data = array(\n 'list_articles' => $list_articles,\n 'all_count' => $all_count\n );\n\n //echo \"list_articles<pre>\"; print_r($list_articles); echo \"</pre>\"; exit;\n $this->load->vars($data);\n $this->load->view('tpl_public_header');\n $this->load->view('tpl_blog_list');\n $this->load->view('tpl_public_footer');\n }", "title": "" }, { "docid": "a1b24f45b8bbe60661cdb99dcd690062", "score": "0.66569316", "text": "function rss_for_all_blogs() {\n\t\treturn $this->_call_sub_method(\"blog_rss\", \"_display_for_all_blogs\");\n\t}", "title": "" }, { "docid": "e4080db8881e16bd43c98ed00322abd3", "score": "0.6651659", "text": "public function action_index()\n {\n $posts = DB::table('blogs')->order_by('blogs.created_at', 'desc')\n ->join('users', 'users.id', '=', 'blogs.user_id')\n ->paginate(10, array('blogs.id', 'blogs.title', 'blogs.created_at', 'blogs.comments_count', 'blogs.slug', 'users.display_name', 'users.slug as user_slug'));\n\n $this->online('Blogi', 'blog');\n $this->page->set_title('Blogi');\n $this->page->breadcrumb_append('Blogi', 'blog');\n\n $this->view = View::make('blog.index', array('posts' => $posts));\n }", "title": "" }, { "docid": "a07458473d3db6c4b76936b88959036c", "score": "0.6643127", "text": "public function blog() {\r\n\r\n $blog = $this->billet->getBlog();\r\n $vue = new Vue(\"Blog\");\r\n $vue->generer(array('blog' => $blog));\r\n }", "title": "" }, { "docid": "251042912d386e095ba99beecb6930e2", "score": "0.65716946", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n $blogPosts = $em->getRepository('SkTestBundle:table_blog')->findAll();\n var_dump($blogPosts);\n }", "title": "" }, { "docid": "07983a8d09a4755f981ae4153a847a97", "score": "0.65672326", "text": "public function allblogposts(){\n\n $data['blogs'] = $this->Admin_model->get_all_blogPosts();\n\n $this->load->view('admin/allBlogPosts.php',$data);\n }", "title": "" }, { "docid": "7c3c81ff77692bf84b6963b97aff17fa", "score": "0.6565248", "text": "function show_all_blogs () {\n\t\t// Check CPU Load\n\t\tif (conf('HIGH_CPU_LOAD') == 1) {\n\t\t\treturn common()->server_is_busy();\n\t\t}\n\t\treturn $this->_call_sub_method(\"blog_search\", \"_show_all_blogs\");\n\t}", "title": "" }, { "docid": "cf25ac072b8618840f6afceaaf440ccf", "score": "0.65323937", "text": "public function toShowAllTheBlogs()\n {\n /*$result = DB::table('Blog')->get();*/\n $result = Blog::all();\n\n\n return $result;\n\n }", "title": "" }, { "docid": "5c962400832b16975e4798ab2fa4235a", "score": "0.65279377", "text": "public function index()\n {\n $blogs = Blog::paginate(10);\n return view('admin.blog_content.List',compact('blogs'));\n }", "title": "" }, { "docid": "aa36b1bafd37a808810ab86f82266c14", "score": "0.6520846", "text": "public function listPosts()\n {\n $postRepository = new PostRepository();\n $posts = $postRepository->getByLimit();\n require '../src/View/postListView.php';\n }", "title": "" }, { "docid": "d30874a04d81b28c62bdb2d8c376270a", "score": "0.6518126", "text": "public function index()\n {\n $paginate = app()['config']['blogg.paginate'];\n $blogs = Blog::published()->with('category', 'likeCounts')->paginate($paginate);\n return $this->blogsResource::collection($blogs);\n }", "title": "" }, { "docid": "3e9226a4ab3207b736be38017857cdc7", "score": "0.6492169", "text": "public function index()\n {\n // get blog model\n $model = $this->__get('Blog');\n // get blog list\n $blogs = $model->getBlogList();\n // assign vars\n $this->View()->setAssign('blogs', $blogs);\n }", "title": "" }, { "docid": "920963861a1c83d09f011b75b31faef4", "score": "0.6485358", "text": "public function index()\n {\n return BlogPost::all();\n }", "title": "" }, { "docid": "be861ee90fbfd9835309ddf0e9a54f22", "score": "0.6479207", "text": "public function getBlogList($start = 0) {\r\n \r\n $fields = array('id', 'title', 'info', 'type');\r\n \r\n $this->_mapper->\r\n select($fields)\r\n ->whereNot( array( 'type' => '1' ) )\r\n ->orderBy('id')\r\n ->limit($start * 10, 30);\r\n \r\n return $this->_mapper->fetch();\r\n }", "title": "" }, { "docid": "01b817c5ee79657eaec4b5b9df97a541", "score": "0.6477534", "text": "public function index()\n {\n\n $posts = Blogpost::select('img','category_id','published_at','name','excerpt','cta_link','cta_text','slug','minutes_to_read')->where('status', '=', 3)->orderBy('published_at', 'desc')->paginate(10);\n\n \n $supercategories = BlogSupercategory::all();\n \n return view('blog', compact('posts','supercategories'));\n }", "title": "" }, { "docid": "e99a290edfe094be4dc6e7d31584894e", "score": "0.64712805", "text": "public function index()\n {\n return new BlogCollection(Blog::orderBy('id', 'DESC')->paginate(5));\n }", "title": "" }, { "docid": "093e7a1a41a735c6c605406141ae2b1b", "score": "0.6470009", "text": "public function getPosts()\n{\n\t$db = $this->dbConnect();\n\t$req = $db->query('SELECT id, title, content FROM billets ORDER BY ID DESC LIMIT 0, 5');\n\n\treturn $req; \n}", "title": "" }, { "docid": "3bbb08f1fb949e830be6188c37e029f2", "score": "0.6467796", "text": "public function ListBlog()\n {\n $getBlog = Blog::all()->toArray();\n return view('admin.blog.listblog',compact('getBlog'));\n }", "title": "" }, { "docid": "378a2b6d5692c2ad846a81aa90983b0e", "score": "0.6436669", "text": "public function blog_item_content() {\n\t\tbp_buffer_template_part( apply_filters( 'blos_template_blog_home', 'blogs/single/home' ) );\n\t}", "title": "" }, { "docid": "18fb3410b1d5430027b0eae7e5a21cf3", "score": "0.6401178", "text": "function getPosts() {\n\t\t\n\t\t$this->getInstagramPosts();\n\t\t$this->getFacebookPosts();\n\t\t/* echo '<pre>';\n\t\tprint_r($this->posts);\n\t\techo '</pre>'; d*/\n\t\t\t\t\n\t\tforeach ($this->posts as $post) :\n\t\t\techo sprintf('<li><div class=\"imageHolder\" style=\"background-image: url(\\'%s\\');\"></div><div class=\"caption\"><div class=\"brand\" style=\"background-color:#%s;\">%s</div><div class=\"bodyText\"><h2>%s</h2><p>%s</p><p><small>%s on %s</small></p></div></div></li>', $post->theImage(), $post->theBrandColour(), $post->theBrand(), $post->theTitle(), $post->theContent(), $post->theAuthor(), $post->thePostDate());\n\t\tendforeach;\n\t}", "title": "" }, { "docid": "a786df16c5f986a52509e21d86e8413b", "score": "0.6384133", "text": "protected function retrieve_blog_list(){\r\n global $wpdb;\r\n $this->available_blogs = $wpdb->get_col(\"SELECT blog_id FROM \" . $wpdb->blogs . \" WHERE deleted = 0\");\r\n return $this;\r\n }", "title": "" }, { "docid": "81e616f7d30d9ca36b59d06fe82d5a06", "score": "0.6327039", "text": "public function show_blogs()\n {\n $blogs=blog::paginate(5);\n //dd(Carbon::createFromDate(19,10,97).\"\\n\");\n return view('blogs.blogs')->with('blogs',$blogs);\n }", "title": "" }, { "docid": "ddec6612819eaf066089050160ea2c54", "score": "0.63145816", "text": "public function index()\n { \n return view('blogs.index', ['blogs' => Blog::paginate(5)]);\n }", "title": "" }, { "docid": "92459c497c559d5c516063c2aa2fecae", "score": "0.6305884", "text": "public function index()\n {\n \n $blogs = Blog::distinct('id',0)\n ->orderBy('created_at','desc')\n ->paginate(3);\n \n // $blogs = DB::table('blog')->paginate(3); harus use DB\n return view('Blog.index', ['blogs'=>$blogs]);\n }", "title": "" }, { "docid": "82f2450934d7ddb827c2620bc31e9280", "score": "0.63046354", "text": "public function showBlog(){\n\t\t\n\n\t\ttry {\n\n\t\t\tif(!empty($_POST)){// si un commentaire est poter\n\n\t\t\t\tBlogModel::setCommentaire($_POST[\"commentaire\"],$_POST[\"idBil\"],$_POST[\"idUsr\"]);\n\t\t\t}\n\n\t\t\t$data = BlogModel::getBilletsCommentaires();\n\t\t\textract($data);\n\t\t} catch (Exception $e) {\n\t\t\t$data = BlogModel::getBilletsCommentaires();\n\t\t\textract($data);\n\t\t\t$warning = $e->getMessage();\n\t\t}\n\t\trequire_once'ViewFrontend/blog.php';\n\t}", "title": "" }, { "docid": "642d4ba17a515ac7f010d87bfffd62bc", "score": "0.62968755", "text": "public function index()\n {\n $blogs = Blogs::orderBy('created_at','ase')->paginate(5);\n return view(\"index.blog\", ['blogs' => $blogs,\n 'pages' => $blogs->toArray(),\n 'userInfos' => UserInfosUtils::findUserInfos(),\n 'classifys' => ClassifiesUtils::findClassify(),\n 'newsTops' => BlogUtils::findNewsTop(),\n 'lovesTops' => BlogUtils::findLovesTop(),\n 'readsTops' => BlogUtils::findReadsTop(),\n 'loveWebs' => LoveWebUtils::findAllLoveWebs()\n ]);\n }", "title": "" }, { "docid": "51782be200ea48bd2c4eb44b8ed54124", "score": "0.6280443", "text": "public function index()\n {\n $blogRepository = new BlogRepository;\n $view = new View('default_index');\n $view->title = 'All Blogs';\n $view->heading = 'All Blogs';\n\n $view->blogs = $blogRepository->readAllComplete();\n $view->display();\n }", "title": "" }, { "docid": "f7c9ff256533e32c2befa6bdcfb6aee0", "score": "0.6271934", "text": "public function index()\n {\n $CategoryBlog = CategoryBlog::orderBy('id', 'DESC')->paginate(5);\n return view('admin.CategoryBlog.list', ['CategoryBlog' => $CategoryBlog]);\n }", "title": "" }, { "docid": "537e9f1fee34ee8c4281c5d638ec78b9", "score": "0.62454313", "text": "public function blogsAction()\n {\n $query = $this->getRequest()->getQuery();\n $category = $this->_categoryService->getFromName($query->name);\n $posts = $this->_postService->getPagedFromCategory($category, $query->page);\n\n return new ViewModel(array(\n 'category' => $category,\n 'posts' => $posts\n ));\n }", "title": "" }, { "docid": "47c218a16d613a4032e2d6526c5c5e1a", "score": "0.6235954", "text": "function display() {\n\t\t\tglobal $wpdb;\n\t\t\tglobal $blog_id;\n\n\t\t\treturn $wpdb->get_results( 'SELECT * from ' . $this->tableName . ' WHERE blog_id = ' . $blog_id, ARRAY_A );\n\t\t}", "title": "" }, { "docid": "a25c198d09d3c35251fff3c9a77c206c", "score": "0.6233246", "text": "public function listOfBanners() {\n $orderby = isset($_GET['orderby']) ? $_GET['orderby'] : NULL;\n $banners = $this->bannersService->getAllBanners($orderby);\n include 'view/banners.php';\n }", "title": "" }, { "docid": "8f1d9e38bce88a58e6b059c5c457b794", "score": "0.61843354", "text": "function get_all_Blogs(){\n global $db;\n $query = \"SELECT * FROM blog ORDER BY votes DESC\";\n $statement = $db->prepare($query);\n $statement->execute();\n $topics = $statement->fetchAll();\n $statement->closeCursor();\n return $topics;\n }", "title": "" }, { "docid": "40aa787ca660483930ed065c9836314f", "score": "0.61784965", "text": "public function index()\n {\n $limit = env('PAGINATION_LIMIT', 10);\n $query = Blog::where('deleted_at', null);\n if(!empty($_GET['search'])){\n $search = $_GET['search'];\n $query->whereRaw(\"blog_name like '%$search%' \");\n }\n $blogs = $query->paginate($limit);\n return view('admin.blogs',['blogs' => $blogs,'limit' => $limit]);\n }", "title": "" }, { "docid": "bc7f7aa2118dad99e7559a73902d7fe2", "score": "0.61752665", "text": "public function actionIndex() {\r\n\r\n $searchModel = new BlogSearch();\r\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\r\n\r\n return $this->render('index', [\r\n 'searchModel' => $searchModel,\r\n 'dataProvider' => $dataProvider,\r\n ]);\r\n }", "title": "" }, { "docid": "f1061568abc9d02f7872df1e68e9d22f", "score": "0.6171716", "text": "public function index()\n {\n //\n\t\t$this->page_attributes->title = 'Coming Soon';\n\t\t$this->page_attributes->sub_title = '';\n $this->page_attributes->filter = null;\n\n // $this->page_datas->datas = Blog::OrderBy('updated_at', 'desc')\n // ->paginate();\n \n // views\n $this->view = view('pages.backend.blog.index');\n return $this->generateView(); \n }", "title": "" }, { "docid": "128314577fc3bab63119baae3a7d6613", "score": "0.616705", "text": "public function Index() {\n\t\t//List Blogs\n\t\t$this->Load_model('Blog_model');\n\t\t$posts = $this->Blog_model->Get_posts();\n\t\t//$posts = $this->Blog_model->Get_latest_posts();\n\t\t$blogs = $this->Blog_model->Get_blogs();\n\n\t\treturn array(\n\t\t\t'view' => 'blog_view',\n\t\t\t'data' => array(\n\t\t\t\t'posts' => $posts,\n\t\t\t\t'blogs' => $blogs,\n\t\t\t\t'blogposts_view' => array(\n\t\t\t\t\t'view' => 'blogposts_view',\n\t\t\t\t\t'data' => array(\n\t\t\t\t\t\t'posts' => $posts\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "66218fd58ce124380516c77249b03669", "score": "0.6162042", "text": "public function allPost()\n {\n $blog = Blog::where('id','!=',Null)->orderBy('created_at','desc')->paginate(10);\n return view('front.blog.index', compact('blog'));\n }", "title": "" }, { "docid": "7d1af89c1ca59a677a3981cdc2d31bef", "score": "0.6158368", "text": "public function getSummaryBlogEntries() {\n\t\n\t\t$blogEntries = new Datasource_Cms_Connect_BlogEntries();\n\t\treturn $blogEntries->getByStatus(2);\n\t}", "title": "" }, { "docid": "404bf489ef6eba5c7b10ce21368e26b7", "score": "0.61472446", "text": "public function index()\n {\n $blogs = $this->blogService->getPaginateData(10);\n\n return view('blogs.index', ['blogs' => $blogs]);\n }", "title": "" }, { "docid": "3ce97a1d8ffd4f94d2cdbc357ab7fdeb", "score": "0.61462104", "text": "public function readAll() {\n $blogs = Blog::all();\n require_once('views/blogpost/readAll.php');\n }", "title": "" }, { "docid": "54d4aab1c234db3473e09ce1eff749f9", "score": "0.61452633", "text": "function getDescription()\r\n\t{\r\n\t\treturn 'Paginate the blog items on the index page and show a list of links that points to various pages of blog items.';\r\n\t}", "title": "" }, { "docid": "dc1826bee5798334bf072b4faf584d55", "score": "0.61443955", "text": "function index()\n {\n $params['limit'] = 20; \n $params['offset'] = ($this->input->get('per_page')) ? $this->input->get('per_page') : 0;\n \n $config = $this->config->item('pagination');\n $config['base_url'] = site_url('item_blog/index?');\n $config['total_rows'] = $this->Item_blog_model->get_all_item_blog_count();\n $this->pagination->initialize($config);\n\n $data['item_blog'] = $this->Item_blog_model->get_all_item_blog($params);\n\t\t$this->load->view('include/header');\n\t\t$this->load->view('blog/item_blog/index', $data);\n\t\t$this->load->view('include/footer');\n }", "title": "" }, { "docid": "36126dd9122f08927fdcb7c94e7ad7c8", "score": "0.61353695", "text": "public function index()\n {\n $posts=Blog::where('status',1)->paginate(6);\n\n return view('blog',compact('posts'));\n }", "title": "" }, { "docid": "444ca544da0ca0ed278eac631f4ff236", "score": "0.6133155", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('ExpresDemoAdminBundle:BlogPosts')->findAll();\n\n return $this->render('ExpresDemoAdminBundle:BlogPosts:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "title": "" }, { "docid": "29407d085666e43c387a7a0d8e095393", "score": "0.6117671", "text": "public function ScrapperAllBlog(){\n\t\t$data \t = $this->ScrapedBlogForWordpress->getAllScrapedBlog();\n\t\tforeach ($data as $object) {\n\t\t\t$check_content = $this->check_content($object);\n\t\t\tif(!$check_content){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$result = $this->build_scraper->getscraper($object,\"db\");\n\t\t\t$this->ScrapedBlogForWordpress->save_daily_scraped($object->id_blog_scrapper,$result);\n\t\t}\n\t}", "title": "" }, { "docid": "49172ca08a6b6a67cc34d326de2e21f3", "score": "0.6106637", "text": "function compte_billets()\r\n\t{\r\n\t\tglobal $bdd;\r\n\t\t// Préparation de la récupération du nombre d'articles dans la base de données\r\n\t\t$req = $bdd->prepare('SELECT COUNT(*) AS nb_billets FROM billets_blog');\r\n\t\t$req -> execute();\r\n\t\t// Récupération du nombres d'articles dans une variable\r\n\t\t$donnee = $req->fetch();\r\n\r\n\treturn $donnee['nb_billets'];\r\n\t}", "title": "" }, { "docid": "60a25da213aa05e6a2de6497e5e4dd29", "score": "0.6106403", "text": "public function viewBlogList($pg = '')\n {\n $data['global'] = $this->common_model->getGlobalSettings();\n $data = $this->common_model->commonFunction();\n $data['user_session'] = $this->session->userdata('user_account');\n #START Action :: Fetch all active Blog added by admin : \n $data['arr_blog_data'] = $this->blog_model->getAllActiveBlogList($limit = '', $offset = '');\n foreach ($data[\"arr_blog_data\"] as $key => $value) {\n $data['arr_blog_data'][$key]['user_details'] = $this->common_model->getRecords(TABLES::$ADMIN_USER, '*', array('id' => $value['posted_by']));\n $data['arr_blog_data'][$key]['comment'] = $this->common_model->getRecords(TABLES::$TRANS_BLOG_COMMENTS, 'comment_id', array('post_id' => $value['post_id'], 'status' => '1'));\n }\n $totalrows = count($data['arr_blog_data']);\n #Start:: pagination \n #load pagination library \n $this->load->library('pagination');\n $config['base_url'] = base_url() . \"blog/list\";\n $config['total_rows'] = $totalrows;\n $config['per_page'] = 6;\n $config['prev_link'] = \"<span>«</span>\";\n $config['next_link'] = \"<span>»</span>\";\n $config['cur_page'] = $pg;\n $config['num_links'] = 6;\n $config['first_link'] = FALSE;\n $config['last_link'] = FALSE;\n $config['next_tag_open'] = '<li>';\n $config['next_tag_close'] = '</li>';\n $config['prev_tag_open'] = '<li>';\n $config['prev_tag_close'] = '</li>';\n $config['num_tag_open'] = '<li>';\n $config['num_tag_close'] = '</li>';\n $config['cur_tag_open'] = '<li class=\"active\"><a href=\"javascript:void(0);\">';\n $config['cur_tag_close'] = '</a></li>';\n if ($pg == \"\") {\n $pg1 = \"\";\n } else {\n $pg1 = $pg - 1;\n }\n $from = intval(($pg1));\n if ($config['per_page'] == 1) {\n $lenth = 1;\n } else {\n $lenth = intval($config['per_page']);\n }\n $this->pagination->initialize($config);\n $data['pg_link'] = $this->pagination->create_links();\n if ($data['arr_blog_data'] != '') {\n $data['arr_blog_data'] = array_slice($data['arr_blog_data'], $from, $lenth);\n }\n\n// if ($this->session->userdata('language_id') == '17') {\n// $data['header'] = array(\"title\" => \"Blog List\", \"keywords\" => \"\", \"description\" => \"\", \"dashboard\" => '1');\n// } elseif ($this->session->userdata('language_id') == '12') {\n// $data['header'] = array(\"title\" => \"قائمة بلوق\", \"keywords\" => \"\", \"description\" => \"\", \"dashboard\" => '1');\n// } else {\n// $data['header'] = array(\"title\" => \"�?�客列表\", \"keywords\" => \"\", \"description\" => \"\", \"dashboard\" => '1');\n// }\n\n\n $this->template->set('page', 'bloglist');\n $this->template->set('arr_blog_data', $data['arr_blog_data']);\n $this->template->set('user_session', $data['user_session']);\n $this->template->set_theme('default_theme');\n $this->template->set_layout('backend')\n ->title('Razorclean | Blogs')\n ->set_partial('header', 'partials/header')\n ->set_partial('sidebar', 'partials/sidebar')\n ->set_partial('footer', 'partials/footer');\n $this->template->build('admin/blog/blog_list');\n }", "title": "" }, { "docid": "0ccc3b3ac66e7f8487c11b7109a3ce15", "score": "0.6091184", "text": "public function getBillets() {\n $sql = 'select BIL_ID as id, BIL_DATE as date,'\n . ' BIL_TITRE as titre, BIL_CONTENU as contenu from T_BILLET'\n . ' order by BIL_ID desc';\n $billets = $this->executerRequete($sql);\n return $billets;\n }", "title": "" }, { "docid": "37f041c052b2f226ce5d43e3d2bd99b2", "score": "0.6081269", "text": "public function blog()\n {\n\t\t$array = array('b.status' => '1');\n\t\t$this->db->select(\"b.id,b.name as blog_name,c.name as commenter,img_path,description,views_count,b.entry_date,COUNT(c.blog_id) as comments_count\");\n\t\t$this->db->from('blog_tb b');\n\t\t$this->db->join(\"blog_comment_tb c\",\"b.id=c.blog_id\",'left');\n\t\t$this->db->where($array);\n\t\t$this->db->group_by('c.blog_id');\n\t\t$query = $this->db->get();\n\t\treturn $query->result_array();\n }", "title": "" }, { "docid": "8e73ab0b6992710b07e624363a5a4a79", "score": "0.60799205", "text": "function list_posts($blog_query, $wp_query) {\n /* localizare */\n if(ICL_LANGUAGE_CODE == 'en'){\n $prev_posts = ' Older posts';\n $next_posts = ' Newer posts';\n }\n if(ICL_LANGUAGE_CODE == 'ro'){\n $prev_posts = ' Postari mai vechi';\n $next_posts = ' Postari mai noi';\n }\n\n if ( $blog_query->have_posts() ) :\n\n echo '<div class=\"tile_cont site_content\" id=\"img_container\">';\n while ( $blog_query->have_posts() ) : $blog_query->the_post(); \n ?>\n\n <?php\n echo '<div class=\"tile_img_container\">';\n echo '<a href=\"' . get_permalink() . '\" >';\n if (has_post_thumbnail()) {\n echo the_post_thumbnail('medium');\n }\n else {\n echo '<div class=\"placeholder\">';\n echo '</div>';\n }\n echo '</a>';?>\n\n <?php\n echo '<a class=\"no_decoration\" href=\"' . get_permalink() . '\" >';\n echo '<h5 class=\"small_margin\">' . get_the_title() . '</h5>';\n echo '</a>';?>\n <div class=\"entry-meta\">\n <?php twentythirteen_entry_meta(); ?>\n <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class=\"edit-link\">', '</span>' ); ?>\n </div><!-- .entry-meta -->\n <div class=\"entry-summary\">\n <?php the_excerpt(); ?>\n </div><!-- .entry-summary -->\n\n <?php\n echo '</div>';\n ?>\n\n <?php \n endwhile;\n echo '</div><!-- end of .col-940 -->';\n\n if ( $blog_query->max_num_pages > 1 && $blog_query->get('posts_per_page') == 9) : \n\t?>\n\t<nav class=\"navigation paging-navigation\" role=\"navigation\">\n\t\t<h1 class=\"screen-reader-text\"><?php _e( 'Posts navigation', 'twentythirteen' ); ?></h1>\n\t\t<div class=\"nav-links\">\n\n\t\t\t<?php if ( get_next_posts_link('Previous posts', $blog_query->max_num_pages) ) : ?>\n\t\t\t<div class=\"nav-previous\"><?php next_posts_link( __( '<span class=\"meta-nav\">&larr;</span> '. $prev_posts, 'twentythirteen' ), $blog_query->max_num_pages ); ?></div>\n\t\t\t<?php endif; ?>\n\n\t\t\t<?php if ( get_previous_posts_link('Next posts', $blog_query->max_num_pages) ) : ?>\n\t\t\t<div class=\"nav-next\"><?php previous_posts_link( __( $next_posts . ' <span class=\"meta-nav\">&rarr;</span>', 'twentythirteen' ), $blog_query->max_num_pages ); ?></div>\n\t\t\t<?php endif; ?>\n\n\t\t</div><!-- .nav-links -->\n\t</nav><!-- .navigation -->\n <?php\n endif;\n\nelse : \n\n get_template_part( 'loop-no-posts' ); \n\nendif; \n}", "title": "" }, { "docid": "21e2bfdd1a755847de3618f47f9bafb4", "score": "0.60600543", "text": "public function findAllBlogPosts() {\n AppLogger::info(\"Entering PostBusinessService.findAllBlogPosts()\");\n\n //create connection to database\n $conn = new DatabaseConnection();\n\n //create a post dao with this connection and try to find all blog posts\n $service = new PostDataService($conn);\n $flag = $service->findAllPosts();\n\n //return the finder results\n return $flag;\n AppLogger::info(\"Exit PostBusinessService.findAllBlogPosts() with \" . $flag);\n }", "title": "" }, { "docid": "2e9033dcc5ec6262c77fc8011efb5792", "score": "0.60594624", "text": "public function getRecentPosts()\n {\n $items = array();\n $content = Yii::app()->cache->get('CiiMS::Content::list');\n if ($content == false)\n {\n $criteria = Content::model()->getBaseCriteria()\n ->addCondition('type_id = 2')\n ->addCondition('password = \"\"');\n $criteria->order = 'published DESC';\n $criteria->limit = 5;\n\n $content = Content::model()->findAll($criteria);\n Yii::app()->cache->set('CiiMS::Content::list', $content);\n }\n\n foreach ($content as $v)\n\t\t\t$items[] = array('label' => $v->title, 'url' => Yii::app()->createAbsoluteUrl($v->slug), 'itemOptions' => array('id' => $v->id, 'published' => $v->published));\n\n return $items;\n }", "title": "" }, { "docid": "a9e69e7a0df9d4cec07d79d6539c0847", "score": "0.6058672", "text": "public function indexAction()\n {\n if (!$this->zfcUserAuthentication()->hasIdentity()) {\n return $this->redirect()->toRoute('zfcuser/login');\n }\n\n /*\n * Call of ORM template and create a database connection.\n */\n $blogs = $this->getEntityManager()->getRepository('\\Blogger\\Entity\\BloggerPost')->findAll();\n\n /*\n * Use paginator standard lib from zend studio\n */\n $adapter = $this->paginator_adapter();\n $paginator = new Paginator($adapter);\n $paginator->setDefaultItemCountPerPage(self::maxview);\n $page = (int)$this->params()->fromRoute('id');\n\n if ($page) $paginator->setCurrentPageNumber($page);\n\n /*\n * Set return values\n * $pagiator contains data values\n * $view information for the paginator \n */\n $view = new ViewModel();\n $view->setVariable('paginator', $paginator);\n\n return new ViewModel(array('blogposts' => $paginator, 'view' => $view));;\n\n }", "title": "" }, { "docid": "439a8affc206d3b5336f208b962742e9", "score": "0.60564435", "text": "public function blog()\n {\n $publicacion = publicacion::where('id_categoria',1)->orderBy('id')->paginate(6);\n return view ('mainPage/Blog', ['publicaciones' => $publicacion]);\n }", "title": "" }, { "docid": "4b48f6dcd72d30aa99e18ebec432ce7d", "score": "0.60496235", "text": "private function ListBanners()\n\t{\tob_start();\n\t\tif ($banners = $this->GetBanners())\n\t\t{\techo '<ul>';\n\t\t\t\n\t\t\tforeach ($banners as $banner_row)\n\t\t\t{\t$banner = new BannerSet($banner_row);\n\t\t\t\techo '<li>', $title = $this->InputSafeString($banner->details['title']), ' - ', $banner->id == $_GET['picked'] ? '{this is the current banner} ' : '', '<a onclick=\"BannerChoose(\\'', $banner->id == $_GET['picked'] ? '0' : $banner->id, '\\',\\'', $banner->id == $_GET['picked'] ? 'none' : addslashes($banner->details['title']), '\\');\">', $banner->id == $_GET['picked'] ? 'remove' : 'add this', '</a></li>';\n\t\t\t}\n\t\t\techo '</ul>';\n\t\t} else\n\t\t{\techo '<h3>No Banners Available</h3>';\n\t\t}\n\t\treturn ob_get_clean();\n\t}", "title": "" }, { "docid": "d61c2d0d332170b4aa84a5f9e97e2dcd", "score": "0.60488796", "text": "public function display_mostread_blog($argu = array()){\r\n\t\tglobal $db, $cm;\r\n\t\t$returntext = '';\r\n\t\t$limit = round($argu[\"limit\"], 0);\r\n\t\t$sidebar = round($argu[\"sidebar\"], 0);\r\n\t\t$category = round($argu[\"category\"], 0);\r\n\t\tif ($limit <= 0){ $limit = 3; }\r\n\t\t\r\n\t\t$sql = \"select distinct a.*, sum(b.total_view) as total_view from tbl_blog as a LEFT JOIN tbl_blog_view as b ON a.id = b.blog_id where\";\r\n\t\t\r\n\t\tif ($category > 0){\t\t\r\n\t\t\t$sql .= \" a.category_id = '\". $category .\"' and\";\r\n\t\t}\r\n\t\t$sql .= \" a.status_id = 1 GROUP BY a.id\";\r\n\t\t$sql = $sql.\" order by total_view desc limit 0, \" . $limit;\r\n\t\t$result = $db->fetch_all_array($sql);\r\n\t\t$found = count($result);\r\n\t\tif ($found > 0){\r\n\t\t $news_url = $this->get_blog_url($category);\t\t \r\n\t\t \r\n\t\t if ($sidebar == 1){\r\n\t\t\t $returntext .= '\r\n\t\t\t \t<h2 class=\"sidebartitle\">Most Read</h2>\r\n\t\t\t\t<div class=\"leftrightcolsection notopborder clearfix\">\t\t\t\t\r\n\t\t\t ';\r\n\t\t }else{\r\n\t\t\t $returntext .= '\r\n\t\t\t <h2 class=\"icon1\">Most Read</h2>\r\n\t\t\t <div class=\"widget\">\r\n\t\t\t ';\r\n\t\t }\r\n\t\t \r\n\t\t $returntext .= '\t\t \r\n\t\t <ul class=\"latestnewssidebar\">\r\n\t\t ';\r\n\t\t foreach($result as $row){\r\n\t\t\t $returntext .= $this->display_box_blog_row($row, 1);\r\n\t\t }\r\n\t\t $returntext .= '\r\n\t\t </ul>\r\n\t\t <div class=\"clear\"></div>\r\n\t\t </div>\t\t \r\n\t\t ';\r\n\t\t}\t \r\n\t\treturn $returntext;\r\n\t}", "title": "" }, { "docid": "6308741e6aac3d9f17bf532181e6977d", "score": "0.604435", "text": "function listberita(){\n\t\tcek_session_akses('listberita',$this->session->id_session);\n if ($this->session->level=='admin'){\n $data['record'] = $this->model_app->view_ordering('berita','id_berita','DESC');\n }else{\n $data['record'] = $this->model_app->view_where_ordering('berita',array('username'=>$this->session->username),'id_berita','DESC');\n }\n $data['rss'] = $this->model_utama->view_joinn('berita','users','kategori','username','id_kategori','id_berita','DESC',0,10);\n $data['iden'] = $this->model_utama->view_where('identitas',array('id_identitas' => 1))->row_array();\n $this->load->view('administrator/rss',$data);\n\t\t$this->template->load('administrator/template','administrator/mod_berita/view_berita',$data);\n\t}", "title": "" }, { "docid": "395f644aa9f9f0921cdc30f593b159e0", "score": "0.60361695", "text": "public function getBlogEntries()\n {\n try {\n $conn = DBModel::startDBConnection();\n $query = 'SELECT id, title, author_name FROM blog_entry';\n $result = $conn->query($query);\n\n $posts = $result->fetchAll(PDO::FETCH_ASSOC);\n DBModel::closeDBConnection($conn);\n\n return $posts;\n }\n catch (PDOException $e) {\n return new HttpFoundation\\Response('Resource not Found', 404);\n }\n }", "title": "" }, { "docid": "f5ef7760539acc46037de8d3efcb9172", "score": "0.6035724", "text": "public function Index() {\n $this->session->SetNextRedirect($this->request->request);\n\t$content = new CMContent();\n $this->views->SetTitle($this->config['theme']['data']['sitetitle'].' All Blog posts');\n $this->views->AddInclude(dirname(__FILE__) . '/index.tpl.php', array(\n\t\t\t'contents' => $content->ListAll(array('type'=>'post', 'order-by'=>'created', 'order-order'=>'DESC')),\n\t\t\t'hasRoleAdmin'=>$this->user['hasRoleAdmin'],\n\t\t\t'hasRoleUser'=>$this->user['hasRoleUser'],\n\t\t),'primary');\n\t$this->views->AddString(\"<p class='cloud'>To be implementet:<br>Info about blogger and statistics.</p>\", array(), 'sidebar');\n\tif ($this->user['hasRoleAdmin'] || $this->user['hasRoleUser']){\n\t\t$this->views->AddString(\"<h3 style='text-align:right'><a href='{$this->CreateUrl('content/create/post')}'>Make a new blog post >></a></h3>\", array(), 'sidebar');\n\t}\n }", "title": "" }, { "docid": "ab6f9e2b91da434cdd67e3a443836b0f", "score": "0.60356593", "text": "public function index()\n\t{\n\t\t$blogs = $this->blog->orderBy('created_at', 'desc')->get();\n\t\t\n\t\t$comics = Comic::orderByRaw(\"RAND()\")->take(4)->get();\n\t\treturn view('blogs.index')->withData([$blogs, $comics]);\n\n\t}", "title": "" }, { "docid": "cddaf22355b6f9d02683175fcd103dc3", "score": "0.6035647", "text": "public function index()\n {\n $blogs=Blog::orderBy('id', 'asc')->paginate(2);\n\n return view('admin.blog.index' , compact('blogs'));\n }", "title": "" }, { "docid": "957acdddf2af057dbff0030d61a6783c", "score": "0.60355985", "text": "public function index()\n {\n if(Auth::user()->type == 'admin')\n {\n $blogs = Blog::orderBy('id', 'DESC')->paginate(5);\n }\n else\n {\n $blogs = Blog::orderBy('id', 'DESC')->where('id_usuario',Auth::user()->id)->paginate(5);\n }\n\n\n return view('panel.blog.index')->with(compact('blogs'));\n\n }", "title": "" }, { "docid": "b42447496acb3d13ac5a542c257d7c62", "score": "0.60329306", "text": "public function getBlogList($user_id='self')\n {\n // parameter $user diisi user ID\n $token = $this->getToken();\n $ch = curl_init();\n $url = 'https://www.googleapis.com/blogger/v3/users/'.$user_id.'/blogs';\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($ch, CURLOPT_HEADER, FALSE);\n curl_setopt($ch, CURLOPT_HTTPHEADER, array(\n 'Authorization: Bearer '.$token[\"access_token\"].'',\n 'Accept: application/json',\n 'Content-Type: application/json',\n ));\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n $result = curl_exec($ch);\n if ($result === FALSE) {\n echo \"ada error curl berikut : \".curl_error($ch);\n }\n $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n curl_close($ch);\n $bentuk_json = json_decode($result,TRUE);\n $blog_list = $bentuk_json[\"items\"];\n return $blog_list;\n }", "title": "" }, { "docid": "16a2ff3afe93d496fb7209fae791890f", "score": "0.60319287", "text": "public function get_all_blogs(){\r\n if(is_null($this->available_blogs)){\r\n $this->retrieve_blog_list();\r\n }\r\n return $this->available_blogs;\r\n }", "title": "" }, { "docid": "0a3bdf9e32bc514136bbbbdaa7dfb9a8", "score": "0.6030891", "text": "public function index()\n {\n\n return view('blogs', ['blogs'=> Blog::all()]);\n }", "title": "" }, { "docid": "0c485be61d61722a565c55c771ee3113", "score": "0.60261357", "text": "function hs_show_blogfeed() {\n\t\tinclude_once(ABSPATH . WPINC . '/feed.php');\n\t\t$content = \"\";\n\t\t$maxitems = 0;\n\t\t$rss = fetch_feed(\"http://feeds.feedburner.com/HubSpot\");\n\t\tif (!is_wp_error( $rss ) ) {\n\t\t $maxitems = $rss->get_item_quantity(3); \n\t\t $rss_items = $rss->get_items(0, $maxitems); \n\t\t}\n\t\tif ($maxitems == 0) {\n\t\t\t$content .= \"<p>No Posts</p>\";\n\t\t} else {\n\t\t\tforeach ( $rss_items as $item ) { \n\t\t\t\t$content .= \"<a href='\" . $item->get_permalink(). \"' title='Posted \".$item->get_date('j F Y | g:i a') .\"'>\" . $item->get_title() . \"</a><br />- \" . $item->get_date('n/j/Y') . \"</p>\";\n\t\t\t}\n\t\t\t$content .= \"<p><a href='\" . $rss->get_permalink() . \"'>Go To HubSpot Blog &raquo;</a></p>\";\n\t\t}\n\t\treturn $this->hs_postbox('hubspot-blog-rss', 'HubSpot Blog', $content);\n\t}", "title": "" }, { "docid": "35b8f69e0fdbc2a855812b36cb48fc22", "score": "0.602322", "text": "private function get_types_of_posts() {\n $this->content = $this->fetch('SELECT name FROM Type_of_blog');\n $this->result = '';\n $i = 0;\n foreach($this->content as $row) {\n $row = $row['name'];\n $this->result .= '<a onclick=\"query_to_PHP(\\'' . $row . '\\', \\'filter\\')\" ';\n if($i === 0) {\n $this->result .= ' class=\"px-4 pt-3 btn btn-sm text-info\">';\n } else if($i === count($this->content) - 1) {\n $this->result .= ' class=\"px-4 pb-3 btn btn-sm text-info\">';\n } else {\n $this->result .= ' class=\"px-4 btn btn-sm text-info\">';\n }\n $this->result .= $row . '</a><br>';\n $i++;\n }\n return $this->result;\n }", "title": "" }, { "docid": "e3219c4200d2b711586c99cbc4bf1ad8", "score": "0.60207295", "text": "public function index()\n {\n $articles = Article::paginate(10);\n return view('admin.blog.blog')->with('articles', $articles);\n }", "title": "" }, { "docid": "8ddd96f5d31f48188f26a2091283b0e7", "score": "0.60205704", "text": "public function index(blog $blog)\n {\n //\n return $blog -> comments;\n }", "title": "" }, { "docid": "5ae93b33fb2b27b080c6c8e58fd50179", "score": "0.6020043", "text": "public function show_all_posts(){\n \tinclude('protected/config/settings.php');\n\t\tinclude('protected/includes/generalFunctions.php');\n\t\t$this->_application = Doo::session(\"web\");\n\t\tif(!$this->_application->auth){\n\t\t\treturn $auth_url;\n\t\t}\n\t\t\n\t\tif(!is_numeric($this->params['page']))\n\t\t\theader('Location: ' . $project_url . 'error');\n\t\t\n\t\t$post = ((intval($this->params['page']) - 1) * 10);\n\t\t\n\t\tDoo::loadModel('Blog');\n\t\t$blog = new Blog;\n\t\t$blog->slug = $this->params['slug'];\n\t\t$one_blog = $blog->getOne();\n\t\t\n\t\tDoo::loadModel('Post');\n\t\t$posts = new Post;\n\t\t$posts->blog_id = $one_blog->id;\n\t\t\n\t\t$data['pagination'] = paginate($posts->count(), $post);\n\t\t\n\t\t$page = ((intval($this->params['page']) - 1) * 20);\n\t\t\n\t\t$data['posts'] = $posts->get_list_contents($one_blog->id, $page, 1, 20);\n\t\t\n\t\tif(!isset($this->_application->company) || !isset($this->_application->blogs) || !isset($this->_application->lists) || !isset($this->_application->idioms)){\n\t\t\t$session = start_admin_session();\n\t\t\t$this->_application->company = $session[0];\n\t\t\t$this->_application->blogs = $session[1];\n\t\t\t$this->_application->lists = $session[2];\n\t\t\t$this->_application->idioms = $session[3];\n\t\t}\n\t\t\n\t\t$data['pagination'] = paginate($posts->count(), $this->params['page'], 20);\n\t\t\n\t\t$data['company'] = $this->_application->company;\n\t\t$data['blogs'] = $this->_application->blogs;\n\t\t$data['lists'] = $this->_application->lists;\n\t\t$data['blog'] = $one_blog->title;\n\t\t$data['blog_slug'] = $this->params['slug'];\n\t\t$data['page'] = $this->params['page'];\n\t\t$data['url'] = $auth_url;\n\t\t$data['url2'] = $project_url;\n\t\t$data['user'] = $this->_application->username;\n \t$data['title'] = \"Administración - \".$this->params['slug'];\n\t\t$data['description'] = \"\";\n \t$data['view'] = $this->admin_view.'listPosts.html';\n\t\t$this->renderc('twig', $data);\n }", "title": "" }, { "docid": "cd4965285a996c102dab542839fd6517", "score": "0.6019792", "text": "public function index()\n {\n $posts = BlogPost::orderByDesc('posted_on')->where('posted_on' , '!=' , NULL)->paginate(6);\n $categories = BlogCategory::orderBy('title')->get();\n return view ('blog.index')\n ->with('posts' , $posts)\n ->with('categories' , $categories)\n ->with('pagetitle' , 'Latest Posts');\n }", "title": "" }, { "docid": "1879ea8d0d04e0421ac82be1579fa4e7", "score": "0.6018201", "text": "public function index()\n {\n $blogs = Blog::all();\n // nella view ci va nome della cartella (blog) .index(pagina stampa), compatc(vi va la var)\n return view('blog.index',compact('blogs')); \n }", "title": "" }, { "docid": "5753b15e2262028767d98bd940a93328", "score": "0.60124856", "text": "public function index()\n {\n $blogPost=BlogPost::where(\"type\",\"news\")->orWhere(\"type\",\"fund-raise\")->orderBy('created_at','desc')->paginate(3);\n return view('blog/blog')->with('blogPosts',$blogPost);\n }", "title": "" }, { "docid": "14ee31b383a439720fdc3b1479a76f8e", "score": "0.60083836", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n $entities = $em->getRepository('AppBundle:Blog')->findAll();\n\n return array(\n 'entities' => $entities,\n );\n }", "title": "" }, { "docid": "a2656218a5c2b8dae8826cea3024408e", "score": "0.59927183", "text": "function displayPostList($bid, $page=1)\n\t{\n\t\t$pager = new Pager();\n\t\t$pager->page = $page;\n\t\t$pager->posts = $this->getNumOfEntries();\n\t\t$pager->query = sprintf(\"bid=%d&\", $bid);\n\n\t\t$vars[bid] = $bid;\n\t\t$post = $this->getEntriesVars($vars, $pager->getStartNo(), 15);\n\n\t\t$i = 0;\n\t\t$userPage = new UserPage();\n\t\twhile($post[$i] != NULL)\n\t\t{\n\t\t\t$post[$i][user] = $userPage->getEntryVars($post[$i][uid]);\n\t\t\t$i++;\n\t\t}\n\n\t\t$this->tpl->assign(\"post\", $post);\n\t\t$this->tpl->assign(\"pager\", $pager->get());\n\t\t$this->tpl->display(\"list.tpl\");\n\t}", "title": "" }, { "docid": "d906c336bd4c558cc9557198fe0a8f90", "score": "0.5992037", "text": "public function blog_index()\n {\n $posts = Post::orderBy('id', 'desc')->paginate(2);\n $categories = Categories::all();\n\n $postsByDates = Post::orderBy('created_at', 'desc')->get();\n\n\n\n return view('blog', ['posts' => $posts, 'categories' => $categories, 'postsByDates' => $postsByDates]);\n\n\n\n\n }", "title": "" }, { "docid": "4acc791733951f437b5c418f81372806", "score": "0.5990502", "text": "function allBlog($id)\r\n\t{\r\n\t\t$select = 'SELECT title, content, date, count FROM blogs WHERE id=:id';\r\n\t\t$results = $this->_pdo->query($select);\r\n\t\t \r\n\t\t$resultsArray = array();\r\n\t\t \r\n\t\t//map each blog bid to a row of data for that user\r\n\t\twhile ($row = $results->fetch(PDO::FETCH_ASSOC)) {\r\n\t\t\t$resultsArray[$row['id']] = $row;\r\n\t\t}\r\n\t\t \r\n\t\treturn $resultsArray;\r\n\t}", "title": "" }, { "docid": "2b9094ce07ef10fd9ed597f3c08bd710", "score": "0.59898317", "text": "public function index()\n {\n $blogs = Blog::orderby('created_at', 'desc')->paginate(10);\n return view('blog.index')->with('blogs', $blogs);\n }", "title": "" }, { "docid": "080af6650f767bcdfb90f3b2f4ed3cdd", "score": "0.5985568", "text": "public function index()\n\t{\n $AllBlog = Blog::all();\n\t\treturn view('blog.blog', compact('AllBlog'));\n\t}", "title": "" }, { "docid": "da96cad65fba2c0146fd431f5897ac0d", "score": "0.5984736", "text": "public function index()\n {\n $blogs = Blog::paginate(20);\n\n return view('website.blog.index',compact('blogs'));\n }", "title": "" }, { "docid": "354e12d5375695a0212cb601e5dc6b9e", "score": "0.59794146", "text": "public function index()\n {\n $blogList = BlogModel::with(['blogcategory','blogcategory.blogcategorylang' => function($query){\n $query->where('langId',1);\n }])->with('bloglang')->where('is_enable',1)->orderby('order','asc')->get();\n $data = array(\n 'blogList' => $blogList\n );\n return view('backend.blog.index',$data);\n }", "title": "" }, { "docid": "c215cdf85cb58e294d656b4d677ecd14", "score": "0.5977389", "text": "public function index () {\n // $blogs = Blog::latest()->get(); // sort based on created_at\n $blogs = Blog::where('status', 1)->latest()->get();\n return view ('blogs.index', compact('blogs'));\n }", "title": "" }, { "docid": "b4d5a2ada09472a8c7cc699a2bc7e41f", "score": "0.59773296", "text": "public function blogActionGet(...$value) : object\n {\n if ($value) {\n $page = $this->app->page;\n $title = \"View page \". $value[1];\n $sql = <<<EOD\nSELECT\n *,\n DATE_FORMAT(COALESCE(updated, published), '%Y-%m-%dT%TZ') AS published_iso8601,\n DATE_FORMAT(COALESCE(updated, published), '%Y-%m-%d') AS published\nFROM content\nWHERE\n slug = ?\n AND type = ?\n AND (deleted IS NULL OR deleted > NOW())\n AND published <= NOW()\n ORDER BY published DESC\n;\nEOD;\n $content = $this->db->executeFetch($sql, [$value[1], \"post\"]);\n if (!$content) {\n $page->add(\"cms/404\");\n $title = \"404\";\n return $page->render([\"title\" => $title, ]);\n }\n $title = $content->title;\n $arr = explode(\",\", $content->filter);\n $content->filter = $arr;\n var_dump($arr);\n $textfilter = new \\Pan\\TextFilter\\MyTextFilter();\n $content->data = $textfilter->parse($content->data, $content->filter);\n $page->add(\"cms/blogpost\", [\"content\" => $content, ]);\n return $page->render([\"title\" => $title, ]);\n }\n $page = $this->app->page;\n $title = \"View blogs of contents\";\n $sql = <<<EOD\nSELECT\n *,\n DATE_FORMAT(COALESCE(updated, published), '%Y-%m-%dT%TZ') AS published_iso8601,\n DATE_FORMAT(COALESCE(updated, published), '%Y-%m-%d') AS published\nFROM content\nWHERE type=?\nORDER BY published DESC\n;\nEOD;\n $resultset = $this->db->executeFetchAll($sql, [\"post\"]);\n // $page->add(\"cms/header\");\n $page->add(\"cms/blog\", [\"resultset\" => $resultset, ]);\n return $page->render([\"title\" => $title, ]);\n }", "title": "" }, { "docid": "25ff859ee4baa2e9e79db042555813fe", "score": "0.5973006", "text": "public function index()\n {\n return BcontentResource::collection(Bcontent::orderBy('created_at', 'desc')->paginate(5));\n }", "title": "" }, { "docid": "a9f78255bd6a0a2a4468fcc7336e6441", "score": "0.59725076", "text": "public function index()\n {\n $blog = Blog::where('status',1)->orderBy('id','asc')->get();\n return BlogResource::collection($blog);\n }", "title": "" }, { "docid": "7ee57a30380aca0bf03d69dae23ff555", "score": "0.5972446", "text": "public function index()\n {\n $page_size=env('num_per_page');\n //take: set the limit of the query\n //get: Execute the query as a \"select\" statement.\n $articles = \\App\\Article::with('tags', 'category')->published()->orderBy('updated_at', 'desc')->take($page_size)->get();\n\n return view('blog.index',compact('articles'));\n }", "title": "" }, { "docid": "16ef95e02a688a25e3ca848f4397b2e6", "score": "0.5970692", "text": "public function getAllPosts()\n {\n $db = $this->dbConnect();\n $allPosts = $db->query('SELECT id, title, SUBSTRING(content, 1, 500) AS preview, DATE_FORMAT(creation_date, \\'%d/%m/%Y à %Hh%imin%ss\\') AS creation_date_fr FROM posts WHERE statut = 1 ORDER BY creation_date');\n \n $allPosts->execute(array());\n $results = $allPosts->fetchAll();\n return $results;\n }", "title": "" }, { "docid": "612a55af1eaedeedb441270f28a8fbe8", "score": "0.59688824", "text": "function index(){\n\t\t$data = $this->m_upload->select('*', 'blog_content');\n\t\t$this->template->load('layout/template','front/index', array('data' => $data));\n\t\t\n\t}", "title": "" } ]
d7132aaad613732427981ac3ef861684
addVehicleType() is used to add new record in database. Author : Jaineesh Created on : 24.11.09 Copyright 20082000: syenergy Technologies Pvt. Ltd.
[ { "docid": "4282bd5baa4215f93fafc6bfa47da41a", "score": "0.54063326", "text": "public function addExtendVehicleFreeService($busId,$serviceType,$serviceNo,$serviceDate,$serviceKM) {\n global $REQUEST_DATA;\n\t\t\n\t\t $query = \"\tINSERT INTO bus_service (busId,serviceType,serviceNo,serviceDueDate,serviceDueKM) \n\t\t\t\t\tVALUES ($busId,$serviceType,'$serviceNo','$serviceDate','$serviceKM')\";\n\n\t\treturn SystemDatabaseManager::getInstance()->executeUpdateInTransaction($query,\"Query: $query\");\n }", "title": "" } ]
[ { "docid": "038b22b3f29c5b2ed5412748bcdece12", "score": "0.7177988", "text": "public function addVehicle($vehicleName){}", "title": "" }, { "docid": "57e13a85051020bafcc30381a16a5bfa", "score": "0.611162", "text": "function add_user_type($params)\n {\n $this->db->insert('user_types',$params);\n return $this->db->insert_id();\n }", "title": "" }, { "docid": "ee5a249859dc8488c210f8321b05f742", "score": "0.6108133", "text": "function add()\n {\n if (isset($_SESSION['isLogin'])) {\n if ($_SESSION['lgRole'] == 1) {\n if (isset($_POST) && count($_POST) > 0) {\n $params = array(\n 'Name' => $this->input->post('Name'),\n 'Note' => $this->input->post('Note'),\n );\n\n $tourtype_id = $this->Tourtype_model->add_tourtype($params);\n redirect('tourtype/index');\n } else {\n $data['_view'] = 'tourtype/add';\n $this->load->view('layouts/main', $data);\n }\n } else\n redirect(\"home\");\n } else {\n redirect(\"user/login\");\n }\n }", "title": "" }, { "docid": "c9c655bd9d4d3d26f1802a3121feabb6", "score": "0.61056185", "text": "function addType($type){\r\n\t\tglobal $conn;\r\n\r\n\t\t$addType = $conn->prepare(\"INSERT INTO type (name) VALUES(?)\");\r\n\t\t$addType->bind_param('s',$type);\r\n\t\t$addType->execute();\r\n\t\t\r\n\t\t$testType = \"SELECT name FROM type WHERE name = ?\";\r\n\t\t\r\n\t\t$test = $conn->prepare($testType);\r\n\t\t$test->execute();\r\n\t\t\r\n\t\t$res = $test->fetch();\r\n\t\tif($res[0] == $type)\r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t}", "title": "" }, { "docid": "4b61acae3f1167f7b93628e630806142", "score": "0.6105338", "text": "public function actionAddcasetype(){\n \t$model = new CaseType();\n \tif ($model->load(Yii::$app->request->post()) && $model->save()) {\n \t\treturn 'OK';\n \t} else {\n\t\t\t$case_type_length = (new User)->getTableFieldLimit('tbl_case_type');\n \t\treturn $this->renderAjax('createcasetype', [\n \t\t\t\t'model' => $model,\n \t\t\t\t'case_type_length' =>$case_type_length\n \t\t]);\n \t}\n }", "title": "" }, { "docid": "494a426d2571a31007e9a4b72221d712", "score": "0.6080024", "text": "private function insertDataInTravellerTypeTable()\n {\n $travellerTypeId = null;\n if (array_key_exists('type_traveller', $this->record)) {\n if (!IsNullOrEmptyString($this->record['type_traveller'])) {\n $travellerType = TravellerType::firstOrNew(['type' => $this->record['type_traveller']]);\n if (!$travellerType->id) {\n $travellerType->save();\n }\n $travellerTypeId = $travellerType->id;\n }\n }\n return $travellerTypeId;\n }", "title": "" }, { "docid": "973c8e053e377d5a4b21a18a3c08b848", "score": "0.60687613", "text": "public function add_contract_type($data){\n\t\t$this->db->insert('contract_type', $data);\n\t\tif ($this->db->affected_rows() > 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "1a4caaab8241beba0ce95924ce8025ae", "score": "0.60685533", "text": "static function add_type($key)\n {\n if(!$key || $key != QueryLib::scrub_string($key))\n return ErrorLib::set_error(\"Invalid ticket type key\");\n\n // all clear!\n\n $ttype['key'] = $key;\n $ttype['name'] = false;\n $ttype['conditions'] = false;\n $ttype['per_user_limit'] = 0;\n $ttype['valid'] = false;\n $id = MongoLib::insert('ttypes', $ttype);\n\n PermLib::grant_permission(array('ttypes', $id), \"admin:*\", 'root');\n PermLib::grant_permission(array('ttypes', $id), \"user:\" . $GLOBALS['X']['USER']['id'], 'edit');\n PermLib::grant_permission(array('ttypes', $id), \"user:*\", 'view');\n PermLib::grant_permission(array('ttypes', $id), \"world:*\", 'view');\n\n History::add('ttypes', $id, array('action' => 'add'));\n\n return $id;\n }", "title": "" }, { "docid": "e92801502f3f822f84a190e6b8e4943e", "score": "0.60662174", "text": "public function store(VehicleRequest $request)\n {\n $vehicleType= VehicleType::findOrFail($request->vehicleType_id);\n $vehicle= new Vehicle();\n $vehicle->regNo = $request->regNo;\n $vehicle->vehicleType_id = $request->vehicleType_id;\n $vehicle->vehicleType = $vehicleType->name;\n $vehicle->engineNo = $request->engineNo;\n $vehicle->chassisNo = $request->chassisNo;\n $vehicle->modelNo = $request->modelNo;\n $vehicle->ownerName = $request->ownerName;\n $vehicle->ownerNumber= $request->ownerNumber;\n $vehicle->brandName = $request->brandName;\n $vehicle->status = $request->status;\n $vehicle->save();\n\n return \\redirect()->route('vehicleType.index')->with('success','Vehicle Successfully added.');\n }", "title": "" }, { "docid": "a6f42a3780f03fedb1a026dd0674a373", "score": "0.6019377", "text": "function add ()\n {\n $componentType = new MtnComponentType();\n $componentType[ 'mtn_component_type_name' ] = $this->input->post ( 'mtn_component_type_name' );\n $componentType[ 'mtn_maintainer_type_id' ] = 1;\n\n try\n {\n $componentType->save ();\n $success = true;\n //Imprime el Tag en pantalla\n $msg = $this->translateTag ( 'General' , 'operation_successful' );\n }\n catch ( Exception $e )\n {\n $success = false;\n $msg = $e->getMessage ();\n }\n\n $json_data = $this->json->encode ( array ( 'success' => $success , 'msg' => $msg ) );\n echo $json_data;\n }", "title": "" }, { "docid": "734356f1bb7a4fc4831d0989640bbf4d", "score": "0.6000522", "text": "function add_player_type($params)\n {\n $this->db->insert('player_type',$params);\n return $this->db->insert_id();\n }", "title": "" }, { "docid": "1494cf8d4b1f1319ceda0409653ee304", "score": "0.5986715", "text": "function saveVehicle($vehicle)\r\n {\r\n //Create a query for the database table\r\n $sql = \"INSERT INTO vehicle VALUES (null, :accountID, :year, :make, :model, :mileage, :service, :status)\";\r\n\r\n //Prepare the statement\r\n $statement = $this->_dbh->prepare($sql);\r\n\r\n //Bind the parameters\r\n $statement->bindParam(':accountID', $vehicle->getAccountID(), PDO::PARAM_STR);\r\n $statement->bindParam(':make', $vehicle->getMake(), PDO::PARAM_STR);\r\n $statement->bindParam(':model', $vehicle->getModel(), PDO::PARAM_STR);\r\n $statement->bindParam(':year', $vehicle->getYear(), PDO::PARAM_STR);\r\n $statement->bindParam(':mileage', $vehicle->getMileage(), PDO::PARAM_STR);\r\n $statement->bindParam(':service', $vehicle->getService(), PDO::PARAM_STR);\r\n $statement->bindParam(':status', $vehicle->getStatus(), PDO::PARAM_STR);\r\n\r\n //Process the results\r\n $statement->execute();\r\n }", "title": "" }, { "docid": "de22d28941b57e178da263e76c37c74f", "score": "0.5964539", "text": "public function add_travel_arr_type($data){\n\t\t$this->db->insert('travel_arrangement_type', $data);\n\t\tif ($this->db->affected_rows() > 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "dc3f6a7f086882061e8553c0444cc26d", "score": "0.59370226", "text": "public function add($data) {\r\n if (isset($data['id'])) {\r\n $this->db->where('id', $data['id']);\r\n $this->db->update('attendence_type', $data);\r\n } else {\r\n $this->db->insert('attendence_type', $data); \r\n }\r\n }", "title": "" }, { "docid": "5d2f3b792c3558efe9a03b249cdd9297", "score": "0.5928335", "text": "public function addToVehicleType($vehicleType)\n {\n $this->vehicleType[] = $vehicleType;\n return $this;\n }", "title": "" }, { "docid": "29edc088ad8ad6787f858c1a3484e72f", "score": "0.59079236", "text": "public function insert($type);", "title": "" }, { "docid": "f9d2b954bae8239fb0d04b904452b5bd", "score": "0.5892209", "text": "private function addType(string $type): void\n {\n $this->input[$this->count]['type'] = $type;\n }", "title": "" }, { "docid": "6e299fa4e47f2f42a2367f91f7bf7bc1", "score": "0.588858", "text": "public function add()\n {\n //\\Mini\\Libs\\Helper::vdw($_POST);\n // if we have POST data to create a new entry\n if (isset($_POST[\"submit_add_offerpropertytypes\"])) {\n if (isset($_POST[\"id\"]) AND ((int)$_POST[\"id\"]>0)) {\n \n if ((int)$_POST[\"id\"]>0) {\n \n //$this->updateCategory();\n //header('location: ' . URL . 'offerproperties/');\n }\n } else {\n // Instance new Model (addCategory)\n $OPt = new OfferPropertyTypes();\n // do addCategory() in model/model.php $name, $sort, $alias, $type, $propertyvalue\n $propertyconfig = $OPt->preparepropertyconfig();\n $propertyconfig = serialize($propertyconfig);\n $idofferpropertytype = $OPt->add($_POST[\"name\"], $_POST[\"sort\"], $_POST[\"alias\"], $_POST[\"type\"], $propertyconfig);\n if ($idofferpropertytype>0) {\n // Instance new Model ()\n $OPCBt = new OfferPropertyCategoryBind();\n foreach ($_POST[\"offercategoryid\"] as $offercategoryid) {\n $OPCBt->add($_POST[\"name\"], $_POST[\"sort\"], $_POST[\"alias\"], $offercategoryid, $idofferpropertytype);\n }\n } \n }\n // where to go after has been added\n header('location: ' . URL . 'offerpropertytypes/');\n } else {\n \n \n // Instance new Model ()\n $OC = new OfferCategory();\n // getting all and amount of \n $OCs = $OC->getAll();\n \n $this->title = 'Добавление типа свойства';\n require APP . 'view/_templates/header.php';\n require APP . 'view/offerpropertytypes/add.php';\n require APP . 'view/_templates/footer.php';\n }\n\n }", "title": "" }, { "docid": "e03a39b5421a237f31b1bc606d459e6b", "score": "0.5871533", "text": "public function insert(Type $type): void\n {\n $data['name'] = $type->getName();\n \n $this->insertInDatabase($data);\n }", "title": "" }, { "docid": "c52ab19689411543a8d5851adfc2fe4f", "score": "0.5862946", "text": "function add()\n { \n if(isset($_POST) && count($_POST) > 0) \n { \n $params = array(\n\t\t\t\t'name' => $this->input->post('name'),\n\t\t\t\t'description' => $this->input->post('description'),\n\t\t\t\t'menuId' => $this->input->post('menuId'),\n );\n \n $producttype_id = $this->Producttype_model->add_producttype($params);\n redirect('producttype/index');\n }\n else\n { \n $data['_view'] = 'producttype/add';\n $this->load->view('layouts/main',$data);\n }\n }", "title": "" }, { "docid": "4085ac7d265c5f2facabe6f958751b3d", "score": "0.5853915", "text": "private function saveInsuranceType($type,$id)\t\n\t{\t\t\t\t\t\n\t\t// make sure we only pass in the fields we want\n\t\t$data = array();\n\t\t\n\t\t$data['INSURANCE_TYPE_NAME'] \t= $this->input->post('INSURANCE_TYPE_NAME');\n\t\t$data['INSURANCE_TYPE_CODE'] \t= $this->input->post('INSURANCE_TYPE_CODE');\n\t\t$data['status'] \t\t = $this->input->post('bf_status');\n\t\t$type = $this->set_type_value(); \n\t\t\n\t\tif($type == 'insert')\n\t\t{\n\t\t\t$this->auth->restrict('Lib.Insurance_Type.Create');\n\t\t\t\n\t\t\t$data['CREATED_BY']\t\t\t\t\t= $this->current_user->id;\n\t\t\t$data['MODIFY_BY']\t\t\t\t\t= null;\t\n\t\t\t$data['RECORD_MODIFY_DATE_TIME'] \t= null;\t\n\t\t\t\n\t\t\t$result = $this->insurance_type_model->insert($data);\n\n\t\t\tlog_activity($this->current_user->id, lang('bf_act_create_record') .': '. $INSURANCE_TYPE_ID .' : '. $this->input->ip_address(), 'lib_insurance_type');\n\t\t\tTemplate::set_message(lang('bf_msg_create_success'), 'success');\n\t\t\tredirect(SITE_AREA .'/insurance_type/library/show_list');\t\t\t\t\t\t\t\t\t \t\t\t\t\n\t\t}\n\t\telseif($type == 'update')\n\t\t{\n\t\t\t$target_id = $this->uri->segment(5);\n\t\t\t\n\t\t\t$this->auth->restrict('Lib.Insurance_Type.Edit');\t\n\t\t\t\n\t\t\t$insurance_type_details = $this->insurance_type_model->find_all();\n\t\t\t\n\t\t\tforeach($insurance_type_details as $row){\n\t\t\t\t$row = (object) $row;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t$data['RECORD_CREATED_DATE_TIME'] \t= $row->RECORD_CREATED_DATE_TIME;\n\t\t\tdate_default_timezone_set('Asia/Dhaka');\t\t\t\n\t\t\t$data['RECORD_MODIFY_DATE_TIME'] \t= date('Y/m/d h:i:s', time());\n\t\t\t$data['CREATED_BY']\t\t\t\t\t= $row->CREATED_BY;\n\t\t\t$data['MODIFY_BY']\t\t\t \t\t= $this->current_user->id;\n\t\t\t\n\t\t\t$result = $this->insurance_type_model->update($target_id,$data);\n\t\t\t\n\t\t\tlog_activity($this->current_user->id, lang('bf_act_edit_record') .': '. $INSURANCE_TYPE_ID .' : '. $this->input->ip_address(), 'lib_insurance_type');\n\t\t\tTemplate::set_message(lang('bf_msg_edit_success'), 'success');\n\t\t\tredirect(SITE_AREA .'/insurance_type/library/show_list');\n\t\t}\n\t\t\t\t\n\t\treturn $result;\t\t\t\n\t}", "title": "" }, { "docid": "379f5fa7cfe664655699e7f06fde696b", "score": "0.5846807", "text": "public function addVehicule($vehicule)\n {\n $reponse=$this->bdd->prepare('INSERT INTO vehicule(type,brand,modele,immatriculation,price,description) VALUES(:type,:brand,:modele,:immatriculation,:price,:description)');\n $reponse->execute(array(\n'type' => $vehicule->getType(),\n'brand' => $vehicule->getBrand(),\n'modele' => $vehicule->getModele(),\n'immatriculation' => $vehicule->getImmatriculation(),\n'price' => $vehicule->getPrice(),\n'description' => $vehicule->getDescription()\n\n ));\n }", "title": "" }, { "docid": "303356113018d152246ec93a093e2e5b", "score": "0.5820061", "text": "public function setVehicleType($vehicleType)\n {\n $this->vehicleType = isset($vehicleType) ? $vehicleType : '';\n }", "title": "" }, { "docid": "8e27e8749c74c99240873e6dbff88b1a", "score": "0.58155763", "text": "function addField($name, $type='varchar(255)', $options=null) {\n\t\t$this->fields[] = $field = new DB_Field($name, $type, $options);\n\t\tif (isset($options['primary_key']) && $options['primary_key'] == true){ $this->primary_key = $name; }\n\t\tif (isset($options['key']) && $options['key'] == true){\n\t\t\t$this->keys[$name] = $name;\n\t\t}\n\t\tif (isset($this->options['unique']) && $this->options['unique'] === true){ $field_schema .= 'NOT NULL '; }\n\n\t}", "title": "" }, { "docid": "bb0611a96af4bef7a1873a3abaf79358", "score": "0.5813216", "text": "public function add()\n {\n $insert = [\n 'manufacturer_id' => $this->input->post('manufacturer_id'),\n 'equipment_type_id' => $this->input->post('equipment_type_id'),\n 'equipment_model' => $this->input->post('equipment_model')\n ];\n\n $this->Equipment_Model->addEquipment($insert);\n redirect('/equipment', 'refresh');\n }", "title": "" }, { "docid": "aefe93305f0074b9b6dbaf496767a85d", "score": "0.57981527", "text": "public function StoreTypeRequest(AddTypeRequest $request)\n {\n\n $name = $request->get('name');\n \n $typerequest = ModelFactory::getInstance('TypeRequest');\n $typerequest->name = $name;\n $typerequest->created_id = \\Auth::User()->idsrc_login;\n\n if($typerequest->save()){\n return \\Redirect::back()->with('rmsg', $name.' has been added.');\n }\n }", "title": "" }, { "docid": "9c4ab0e83a8f41f24fb70c2ef1a8b66b", "score": "0.5777337", "text": "function add_vehicule($params)\n {\n $this->db->insert('tb_dgi_vehicules',$params);\n return $this->db->insert_id();\n }", "title": "" }, { "docid": "ed500f1700c7179b39a90ada3806ed45", "score": "0.57727844", "text": "function addComponent($name, $price, $type){\n if($type == \"motherboard\"){\n $sql = \"INSERT INTO motherboards (item,price) VALUES ('$name', '$price')\";\n }\n else if($type == \"cpu\"){\n $sql = \"INSERT INTO cpu (item,price) VALUES ('$name', '$price')\";\n }\n else if($type == \"gpu\"){\n $sql = \"INSERT INTO gpu (item,price) VALUES ('$name', '$price')\";\n }\n else if($type == \"hdd\"){\n $sql = \"INSERT INTO hdd (item,price) VALUES ('$name', '$price')\";\n }\n else if($type == \"ssd\"){\n $sql = \"INSERT INTO ssd (item,price) VALUES ('$name', '$price')\";\n }\n else{\n $sql = \"INSERT INTO ram (item,price) VALUES ('$name', '$price')\";\n }\n\n mysqli_query($this->con, $sql);\n }", "title": "" }, { "docid": "7a0c14b0436a7b81a43548c1b2132d99", "score": "0.5757812", "text": "public function saveFormType() {\n\n $form_type = $this->inputData['form_type'];\n $fid = @$this->inputData['id'];\n\n if ($fid && $form_type) {\n $this->update(compact('fid'), compact('form_type'), TABLE_ADD_TYPE);\n } else if ($form_type) {\n $this->insert(compact('form_type'), TABLE_ADD_TYPE);\n }\n }", "title": "" }, { "docid": "a62bd8a2ad94711a9e51faf3f0a03253", "score": "0.57283217", "text": "function cf_add_field_type($info)\n{\n global $g_table_prefix, $g_field_sizes;\n\n $info = ft_sanitize($info);\n\n $field_type_name = $info[\"field_type_name\"];\n $group_id = $info[\"group_id\"];\n $original_field_type_id = $info[\"original_field_type_id\"];\n $field_type_identifier = $info[\"field_type_identifier\"];\n\n $new_field_type_id = \"\";\n $num_field_types = _cf_get_num_field_types($group_id);\n $list_order = $num_field_types + 1;\n\n if (empty($original_field_type_id))\n {\n $all_field_sizes = implode(\",\", array_keys($g_field_sizes));\n\n $query = \"\n INSERT INTO {$g_table_prefix}field_types (is_editable, field_type_name, field_type_identifier, group_id,\n is_file_field, is_date_field, raw_field_type_map, raw_field_type_map_multi_select_id, list_order,\n compatible_field_sizes, view_field_smarty_markup, edit_field_smarty_markup, php_processing, resources_css,\n resources_js)\n VALUES ('yes', '$field_type_name', '$field_type_identifier', $group_id,\n 'no', 'no', '', NULL, $list_order, '$all_field_sizes', '', '', '', '', '')\n \";\n $result = mysql_query($query);\n $new_field_type_id = mysql_insert_id();\n }\n else\n {\n // get everything about the origin field type\n $original_info = ft_get_field_type($original_field_type_id, true);\n $is_file_field = $original_info[\"is_file_field\"];\n $is_date_field = $original_info[\"is_date_field\"];\n $raw_field_type_map = $original_info[\"raw_field_type_map\"];\n $raw_field_type_map_multi_select_id = (!empty($original_info[\"raw_field_type_map_multi_select_id\"])) ?\n \"'{$original_info[\"raw_field_type_map_multi_select_id\"]}'\" : \"NULL\";\n $compatible_field_sizes = $original_info[\"compatible_field_sizes\"];\n $view_field_rendering_type = $original_info[\"view_field_rendering_type\"];\n $view_field_php_function_source = $original_info[\"view_field_php_function_source\"];\n $view_field_php_function = $original_info[\"view_field_php_function\"];\n $view_field_smarty_markup = ft_sanitize($original_info[\"view_field_smarty_markup\"]);\n $edit_field_smarty_markup = ft_sanitize($original_info[\"edit_field_smarty_markup\"]);\n $php_processing = ft_sanitize($original_info[\"php_processing\"]);\n $resources_css = ft_sanitize($original_info[\"resources_css\"]);\n $resources_js = ft_sanitize($original_info[\"resources_js\"]);\n\n $query = \"\n INSERT INTO {$g_table_prefix}field_types (is_editable, field_type_name, field_type_identifier, group_id,\n is_file_field, is_date_field, raw_field_type_map, raw_field_type_map_multi_select_id, list_order, compatible_field_sizes,\n view_field_rendering_type, view_field_php_function_source, view_field_php_function,\n view_field_smarty_markup, edit_field_smarty_markup, php_processing, resources_css, resources_js)\n VALUES ('yes', '$field_type_name', '$field_type_identifier', $group_id, '$is_file_field', '$is_date_field',\n '$raw_field_type_map', $raw_field_type_map_multi_select_id, $list_order, '$compatible_field_sizes',\n '$view_field_rendering_type', '$view_field_php_function_source', '$view_field_php_function',\n '$view_field_smarty_markup', '$edit_field_smarty_markup', '$php_processing', '$resources_css', '$resources_js')\n \";\n $result = mysql_query($query) or die(mysql_error());\n $new_field_type_id = mysql_insert_id();\n\n // now add all the settings\n foreach ($original_info[\"settings\"] as $setting_info)\n {\n \t$setting_info = ft_sanitize($setting_info);\n \t$field_label = $setting_info[\"field_label\"];\n $field_setting_identifier = $setting_info[\"field_setting_identifier\"];\n $field_type = $setting_info[\"field_type\"];\n $field_orientation = $setting_info[\"field_orientation\"];\n $default_value_type = $setting_info[\"default_value_type\"];\n $default_value = $setting_info[\"default_value\"];\n $list_order = $setting_info[\"list_order\"];\n\n $query = \"\n INSERT INTO {$g_table_prefix}field_type_settings (field_type_id, field_label, field_setting_identifier,\n field_type, field_orientation, default_value_type, default_value, list_order)\n VALUES ($new_field_type_id, '$field_label', '$field_setting_identifier', '$field_type', '$field_orientation',\n '$default_value_type', '$default_value', '$list_order')\n \";\n mysql_query($query) or die(mysql_error());\n $setting_id = mysql_insert_id();\n\n // finally, add any options for the setting\n foreach ($setting_info[\"options\"] as $option_info)\n {\n $option_text = $option_info[\"option_text\"];\n $option_value = $option_info[\"option_value\"];\n $option_order = $option_info[\"option_order\"];\n $is_new_sort_group = $option_info[\"is_new_sort_group\"];\n\n $query = \"\n INSERT INTO {$g_table_prefix}field_type_setting_options (setting_id, option_text, option_value, option_order, is_new_sort_group)\n VALUES ($setting_id, '$option_text', '$option_value', '$option_order', '$is_new_sort_group')\n \";\n @mysql_query($query);\n }\n }\n\n // now add the validation\n foreach ($original_info[\"validation\"] as $rule_info)\n {\n \t$rule_info = ft_sanitize($rule_info);\n \t$rsv_rule = $rule_info[\"rsv_rule\"];\n \t$rule_label = $rule_info[\"rule_label\"];\n \t$rsv_field_name = $rule_info[\"rsv_field_name\"];\n \t$custom_function = $rule_info[\"custom_function\"];\n \t$custom_function_required = $rule_info[\"custom_function_required\"];\n \t$default_error_message = $rule_info[\"default_error_message\"];\n \t$list_order = $rule_info[\"list_order\"];\n\n $query = \"\n INSERT INTO {$g_table_prefix}field_type_validation_rules (field_type_id, rsv_rule, rule_label,\n rsv_field_name, custom_function, custom_function_required, default_error_message, list_order)\n VALUES ($new_field_type_id, '$rsv_rule', '$rule_label', '$rsv_field_name', '$custom_function',\n '$custom_function_required', '$default_error_message', $list_order)\n \";\n mysql_query($query) or die(mysql_error());\n }\n }\n\n return $new_field_type_id;\n}", "title": "" }, { "docid": "1cdbfab9915baf4903c7d725a0b30864", "score": "0.57205755", "text": "public function add_expense_type($data){\n\t\t$this->db->insert('expense_type', $data);\n\t\tif ($this->db->affected_rows() > 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "3df74b159edb22b437cfe2d0a5ecb586", "score": "0.5718007", "text": "function new_user_type($type_description) {\r\n\t\tglobal $db_link;\r\n\t\t$db_link->query(\"Insert user_type (user_type) values ('\".mysqli_escape_string($db_link, $type_description).\"')\");\r\n\t\t// Get the user_type_id for the new user Type.\r\n\t\t$typeid = mysqli_insert_id($db_link);\r\n\t\t// Now add the new user Type to the list.\r\n\t\t$results = $db_link->query(\"Select * from user_type where user_type_id = '$typeid'\");\r\n\t\twhile ($row = mysqli_fetch_array($results, MYSQLI_ASSOC)) {\r\n\t\t\t$this->add_user_type($row);\r\n\t\t}\r\n\t\t$results->close();\r\n\t\treturn $typeid;\r\n\t}", "title": "" }, { "docid": "98baf6f4abe5e7b47cff995610bdb7d8", "score": "0.57147664", "text": "public function addNew($data,$type)\n {\n $a = isset($data['lid']) ? array_combine($data['lid'], $data['l_name']) : [];\n $add = $type === 'add' ? new CategoryStore : CategoryStore::find($type);\n $add->name = isset($data['name']) ? $data['name'] : null;\n $add->status = isset($data['status']) ? $data['status'] : null;\n $add->sort_no = isset($data['sort_no']) ? $data['sort_no'] : 0;\n if(isset($data['img']))\n {\n $filename = time().rand(111,699).'.' .$data['img']->getClientOriginalExtension(); \n $data['img']->move(\"upload/categorys/\", $filename); \n $add->img = $filename; \n }\n\n $add->s_data = serialize($a);\n $add->save();\n }", "title": "" }, { "docid": "2e0526d0bb3e8f4233d26f0f8c795a31", "score": "0.5710829", "text": "function add_specimen_type($specimen_name, $specimen_descr, $test_list=array())\n{\n\tglobal $con;\n\t$specimen_name = mysql_real_escape_string($specimen_name, $con);\n\t$specimen_descr = mysql_real_escape_string($specimen_descr, $con);\n\t# Adds a new specimen type in DB with compatible tests in $test_list\n\t$saved_db = DbUtil::switchToLabConfigRevamp();\n\t$query_string =\n\t\t\"INSERT INTO specimen_type(name, description) \".\n\t\t\"VALUES ('$specimen_name', '$specimen_descr')\";\n\tquery_insert_one($query_string);\n\t$specimen_type_id = get_max_specimen_type_id();\n\tif(count($test_list) != 0)\n\t{\n\t\t# For each compatible test type, add a new entry in 'specimen_test' map table\n\t\tforeach($test_list as $test_type_id)\n\t\t{\n\t\t\t$query_string =\n\t\t\t\t\"INSERT INTO specimen_test(test_type_id, specimen_type_id) \".\n\t\t\t\t\"VALUES ($test_type_id, $specimen_type_id)\";\n\t\t\tquery_insert_one($query_string);\n\t\t}\n\t}\n\t# Return primary key of the record just inserted\n\tDbUtil::switchRestore($saved_db);\n\t//return get_max_specimen_type_id();\n\treturn get_last_insert_id();\n}", "title": "" }, { "docid": "f244b326dac75f84e0661d28ce86ac63", "score": "0.5698642", "text": "function add_tipo_asociado($params)\n {\n $this->db->insert('tipo_asociado',$params);\n return $this->db->insert_id();\n }", "title": "" }, { "docid": "f94c5e869f6f01f674d828f958a15a52", "score": "0.5697175", "text": "function newVehicle($manufacturer, $condition, $year, $vehType, $driveType, $colour,$region,$cylinders,$fuelType,$title,$transmission,$lat,$long,$odometer,$vin,$price,$model,$user) {\n\n $dbPath = $_SERVER['DOCUMENT_ROOT'] . \"/rrautosales/api/db/db.php\";\n include($dbPath);\n\n $queryManufacturer = $conn->real_escape_string($manufacturer);\n $queryManufacturer = htmlentities($queryManufacturer);\n $queryCondition = $conn->real_escape_string($condition);\n $queryCondition = htmlentities($queryCondition);\n $queryYear = $conn->real_escape_string($year);\n $queryYear = htmlentities($queryYear);\n $queryVehicleType = $conn->real_escape_string($vehType);\n $queryVehicleType = htmlentities($queryVehicleType);\n $queryDriveType = $conn->real_escape_string($driveType);\n $queryDriveType = htmlentities($queryDriveType);\n $queryColour = $conn->real_escape_string($colour);\n $queryColour = htmlentities($queryColour);\n $queryRegion = $conn->real_escape_string($region);\n $queryRegion = htmlentities($queryRegion);\n $queryCylinders = $conn->real_escape_string($cylinders);\n $queryCylinders = htmlentities($queryCylinders);\n $queryFuelType = $conn->real_escape_string($fuelType);\n $queryFuelType = htmlentities($queryFuelType);\n $queryTitle = $conn->real_escape_string($title);\n $queryTitle = htmlentities($queryTitle);\n $queryTransmission = $conn->real_escape_string($transmission);\n $queryTransmission = htmlentities($queryTransmission);\n $queryLatitude = $conn->real_escape_string($lat);\n $queryLatitude = htmlentities($queryLatitude);\n $queryLongitude = $conn->real_escape_string($long);\n $queryLongitude = htmlentities($queryLongitude);\n $queryOdometer = $conn->real_escape_string($odometer);\n $queryOdometer = htmlentities($queryOdometer);\n $queryVIN = $conn->real_escape_string($vin);\n $queryVIN = htmlentities($queryVIN);\n $queryPrice = $conn->real_escape_string($price);\n $queryPrice = htmlentities($queryPrice);\n $queryModel = $conn->real_escape_string($model);\n $queryModel = htmlentities($queryModel);\n $queryUser = $conn->real_escape_string($user);\n $queryUser = htmlentities($queryUser);\n\n if ($queryCondition == \"--Select--\") {\n $queryCondition = 0;\n }\n\n if ($queryCylinders == \"--Select--\") {\n $queryCylinders = 0;\n }\n\n if ($queryFuelType == \"--Select--\") {\n $queryFuelType = 0;\n }\n\n if ($queryOdometer == null) {\n $queryOdometer = 0;\n }\n\n if ($queryTitle == \"--Select--\") {\n $queryTitle = 0;\n }\n\n if ($queryTransmission == \"--Select--\") {\n $queryTransmission = 0;\n }\n\n if ($queryVIN == null) {\n $queryVIN = \"unknown\";\n }\n\n if ($queryDriveType == \"--Select--\") {\n $queryDriveType = 0;\n }\n\n if ($queryLatitude == null) {\n $queryLatitude = 0;\n }\n\n if ($queryLongitude == null) {\n $queryLongitude = 0;\n }\n\n $insertQuery = \"INSERT INTO `ASSIGNMENT_vehicles`(\n `region_id`, \n `price`, \n `year`, \n `manufacturer_id`, \n `model`, \n `condition_id`, \n `cylinders_id`, \n `fuel_type_id`, \n `odometer`, \n `title_status_id`, \n `transmission_id`,\n `vin_number`, \n `drive_type_id`,\n `vehicle_type_id`, \n `paint_colour_id`,\n `latitude`, \n `longitude`, \n `user_ID`, \n `date_added`,\n `vehicle_owner`) \n VALUES ($queryRegion,'$queryPrice',$queryYear,$queryManufacturer,'$queryModel',$queryCondition,$queryCylinders,$queryFuelType,$queryOdometer,$queryTitle,$queryTransmission,'$queryVIN',$queryDriveType,$queryVehicleType,$queryColour,$queryLatitude,$queryLongitude,$queryUser,NOW(), 0)\n \";\n \n $insertResult = $conn->query($insertQuery);\n\n if(!$insertResult){\n return $conn->error;\n } else {\n return 1;\n }\n \n }", "title": "" }, { "docid": "7ccf1dec19174752f48f4d7ec9bd383d", "score": "0.56961715", "text": "function insertTruck($partner)\r\n {\r\n $sql = \"INSERT INTO truck(truckType)\r\n VALUES (:truckType)\";\r\n\r\n //2. Prepare the statement\r\n $statement = $this->_dbh->prepare($sql);\r\n\r\n //3. Bind the parameter\r\n $statement->bindParam(':truckType', $partner->getTruckType());\r\n\r\n //4. Execute the statement\r\n $statement->execute();\r\n\r\n //5. Get the result\r\n $id = $this->_dbh->lastInsertId();\r\n }", "title": "" }, { "docid": "5ba20fef9f6774940a8c40f695f28add", "score": "0.5695203", "text": "function add_tryouttype($params)\n {\n $this->db->insert('TryOutType',$params);\n return $this->db->insert_id();\n }", "title": "" }, { "docid": "76f4156076e751928685d043ddc9a948", "score": "0.5694514", "text": "function AddNewTow($typ)\r\n{\r\n\tinclude \"config.php\";\r\n\t$dbh=DBConnect($DBNAME1);\t\r\n\r\n\tif ($typ ==\"sprzedaz\")\r\n\t\t{\r\n\t\t\t$TABLE=\"towary_sprzedaz\";\r\n\t\t\t$ID=\"id_tows\";\r\n\t\t}\r\n\telse\r\n\t\t{\r\n\t\t\t$TABLE=\"towary_zakup\";\r\n\t\t\t$ID=\"id_towz\";\r\n\t\t}\r\n\r\n\tswitch ($_POST[typ])\r\n\t\t{\r\n\t\t\tcase \"towar\":\r\n\t\t\t\t$Q1=\"select $ID from $TABLE where $ID like 'TOW%' order by $ID desc limit 1\";\r\n\t\t\t\t$id_tow=IncValue($dbh, $Q1, \"TOW0000\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"usluga\":\r\n\t\t\t\t$Q1=\"select $ID from $TABLE where $ID like 'USL%' order by $ID desc limit 1\";\r\n\t\t\t\t$id_tow=IncValue($dbh, $Q1, \"USL0000\");\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t$tow=array (\t\r\n\t\t\t\t\t\t$ID\t=>$id_tow, \t'symbol'\t=>\tIsNull($_POST[symbol]), 'nazwa'\t=>$_POST[nazwa], 'pkwiu'=>IsNull($_POST[pkwiu]),\r\n\t\t\t\t\t\t'vat'\t=>$_POST[vat], \t'cena'\t\t=>$_POST[cena], 'opis'=>IsNull($_POST[opis]), 'okres_gwar' => $_POST[okres_gwar], 'jm'\t=> \"szt.\",\r\n\t\t\t\t\t\t'aktywny' => 'T'\r\n\t\t\t\t\t);\r\n\tInsert($dbh, $TABLE, $tow);\r\n}", "title": "" }, { "docid": "1a44248f495857eb1c6c2da41c50dc78", "score": "0.564717", "text": "public function addUserType($params) \n {\n if ($this->db_write->insert('crossbones.usertype', $params) !== false) {\n return $this->db_write->lastInsertId();\n }\n return false;\n }", "title": "" }, { "docid": "f7ae842ad2cd82984e96c256a11e5520", "score": "0.5643645", "text": "private function addNew()\n {\n\t\tif ($this->isPostBack()){\n\t\t\t$roles = isset($_POST['roles']) && isset($_POST['years']) && count($_POST['roles']) == count($_POST['years']) ? array_combine($_POST['roles'],$_POST['years']) : false;\n\t\t\tif($roles){\n\t\t\t\t$str = '';\n\t\t\t\tforeach($roles as $key => $value){\n\t\t\t\t\tif($key != '' && $value != ''){\n\t\t\t\t\t\t$str .= 'rl:'.$key.'yr:'.$value.',';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$str = substr($str,0,-1);\n\t\t\t}\n\t\t\t$roles = $str;\n\t\t\t$keyword = isset($_POST['keyword']) ? $_POST['keyword'] : '' ;\n\t\t\t$specialization = new Specialization($this->_siteID);\n\t\t\tif($keyword != '' && $roles != ''){\n\t\t\t\t$specialization->addnew_specialization_keyword($keyword,$roles);\n\t\t\t} else {\n\t\t\t\t\n\t\t\t}\n\t\t\tCATSUtility::transferRelativeURI( 'm=settings&a=specializationPanel' );\n\t\t} else {\n\t\t\t$id = false;\n\t\t\t$rs = array('keyword'=>'','masterkeyword'=>'','roles'=>'');\n\t\t\t$this->_template->assign('data',$rs);\n\t\t\t$this->_template->assign('id',$id);\n\t\t\t$this->_template->display('./modules/specialization/Update.tpl');\n\t\t}\n }", "title": "" }, { "docid": "08e602375ce4ed2fafda022b59d3c323", "score": "0.5640606", "text": "public function addBreedTypes()\n {\n $this->validate([\n 'name' => 'required|unique:breed_types',\n 'description' => 'nullable',\n ]);\n\n BreedType::create([\n 'name' => mb_strtolower($this->name),\n 'description' => mb_strtolower($this->description),\n // 'farm_id' => auth()->user()->id,\n ]);\n\n session()->flash('success', 'We have new breed_types in the farm.');\n\n return redirect(route('breed-types.index'));\n }", "title": "" }, { "docid": "8002552987ece6f6e45cd0172d43cd5e", "score": "0.56240803", "text": "public function store($type_id)\n {\n //\n }", "title": "" }, { "docid": "ca41d2371cd8727e5349340e2d37f017", "score": "0.5620868", "text": "public function add_termination_type($data){\n\t\t$this->db->insert('termination_type', $data);\n\t\tif ($this->db->affected_rows() > 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "fdf72af59d3b25076c686056d7ad1478", "score": "0.5612278", "text": "public function AddEditRecord(Params $params) {\n $id=$params->safeGet('id',NULL,'is_integer');\n $dType=$params->safeGet('dtype',NULL,'is_notempty_string');\n $name=trim($params->safeGet('name','','is_notempty_string'));\n $tableName=$params->safeGet('table_name',NULL,'is_notempty_string');\n $columnName=$params->safeGet('column_name',NULL,'is_notempty_string');\n $target=$params->safeGet('target','','is_string');\n if(!strlen($name) || !$dType || !$tableName | !$columnName) {\n NApp::Ajax()->ExecuteJs(\"AddClassOnErrorByParent('{$target}')\");\n echo Translate::GetMessage('required_fields');\n return;\n }//ifif(!strlen($name) || !$dType || !$tableName | !$columnName)\n if($id) {\n $result=DataProvider::Get('Plugins\\DForms\\Relations','SetTypeItem',[\n 'for_id'=>$id,\n 'in_dtype'=>$dType,\n 'in_name'=>$name,\n 'in_table_name'=>$tableName,\n 'in_column_name'=>$columnName,\n 'in_display_fields'=>$params->safeGet('display_fields',NULL,'is_string'),\n 'in_state'=>$params->safeGet('state',1,'is_integer'),\n ]);\n if($result===FALSE) {\n throw new AppException('Unknown database error!');\n }\n } else {\n $result=DataProvider::Get('Plugins\\DForms\\Relations','SetNewTypeItem',[\n 'in_dtype'=>$dType,\n 'in_name'=>$name,\n 'in_table_name'=>$tableName,\n 'in_column_name'=>$columnName,\n 'in_display_fields'=>$params->safeGet('display_fields',NULL,'is_string'),\n 'in_state'=>$params->safeGet('state',1,'is_integer'),\n ]);\n if(!is_object($result) || !count($result)) {\n throw new AppException('Unknown database error!');\n }\n $id=$result->first()->getProperty('inserted_id',0,'is_integer');\n if($id<=0) {\n throw new AppException('Unknown database error!');\n }\n }//if($id)\n $this->CloseForm();\n $this->Exec('Listing',[],'main-content');\n }", "title": "" }, { "docid": "e28a1376fcb7d2f27491f96688bbc83f", "score": "0.55963796", "text": "private function add() {\n\n $newEngine = null;\n $validEngine = true;\n\n switch ( strtolower( $this->provider ) ) {\n case strtolower( Constants_Engines::MICROSOFT_HUB ):\n\n /**\n * Create a record of type MicrosoftHub\n */\n $newEngine = EnginesModel_MicrosoftHubStruct::getStruct();\n\n $newEngine->name = $this->name;\n $newEngine->uid = $this->uid;\n $newEngine->type = Constants_Engines::MT;\n $newEngine->extra_parameters[ 'client_id' ] = $this->engineData['client_id'];\n $newEngine->extra_parameters[ 'client_secret' ] = $this->engineData['secret'];\n\n break;\n case strtolower( Constants_Engines::MOSES ):\n case strtolower( Constants_Engines::TAUYOU ):\n\n /**\n * Create a record of type Moses\n */\n $newEngine = EnginesModel_MosesStruct::getStruct();\n\n $newEngine->name = $this->name;\n $newEngine->uid = $this->uid;\n $newEngine->type = Constants_Engines::MT;\n $newEngine->base_url = $this->engineData[ 'url' ];\n $newEngine->extra_parameters[ 'client_secret' ] = $this->engineData[ 'secret' ];\n\n break;\n\n case strtolower( Constants_Engines::IP_TRANSLATOR ):\n\n /**\n * Create a record of type IPTranslator\n */\n $newEngine = EnginesModel_IPTranslatorStruct::getStruct();\n\n $newEngine->name = $this->name;\n $newEngine->uid = $this->uid;\n $newEngine->type = Constants_Engines::MT;\n $newEngine->extra_parameters[ 'client_secret' ] = $this->engineData[ 'secret' ];\n\n break;\n\n case strtolower( Constants_Engines::DEEPLINGO ):\n\n /**\n * Create a record of type IPTranslator\n */\n $newEngine = EnginesModel_DeepLingoStruct::getStruct();\n\n $newEngine->name = $this->name;\n $newEngine->uid = $this->uid;\n $newEngine->type = Constants_Engines::MT;\n $newEngine->base_url = $this->engineData[ 'url' ];\n $newEngine->extra_parameters[ 'client_secret' ] = $this->engineData[ 'secret' ];\n\n break;\n case strtolower( Constants_Engines::APERTIUM ):\n\n /**\n * Create a record of type APERTIUM\n */\n $newEngine = EnginesModel_ApertiumStruct::getStruct();\n\n $newEngine->name = $this->name;\n $newEngine->uid = $this->uid;\n $newEngine->type = Constants_Engines::MT;\n $newEngine->extra_parameters[ 'client_secret' ] = $this->engineData[ 'secret' ];\n\n break;\n\n case strtolower( Constants_Engines::ALTLANG ):\n\n /**\n * Create a record of type ALTLANG\n */\n $newEngine = EnginesModel_AltlangStruct::getStruct();\n\n $newEngine->name = $this->name;\n $newEngine->uid = $this->uid;\n $newEngine->type = Constants_Engines::MT;\n $newEngine->extra_parameters[ 'client_secret' ] = $this->engineData[ 'secret' ];\n\n break;\n\n case strtolower( Constants_Engines::LETSMT ):\n\n /**\n * Create a record of type LetsMT\n */\n $newEngine = EnginesModel_LetsMTStruct::getStruct();\n\n $newEngine->name = $this->name;\n $newEngine->uid = $this->uid;\n $newEngine->type = Constants_Engines::MT;\n $newEngine->extra_parameters[ 'client_id' ] = $this->engineData['client_id'];\n $newEngine->extra_parameters[ 'system_id' ] = $this->engineData[ 'system_id' ]; // whether this has been set or not indicates whether we should\n // return the newly added system's id or the list of available systems\n // for the user to choose from. the check happens later on\n $newEngine->extra_parameters[ 'terms_id' ] = $this->engineData[ 'terms_id' ];\n $newEngine->extra_parameters[ 'use_qe' ] = $this->engineData[ 'use_qe' ];\n $newEngine->extra_parameters[ 'source_lang' ] = $this->engineData[ 'source_lang' ];\n $newEngine->extra_parameters[ 'target_lang' ] = $this->engineData[ 'target_lang' ];\n\n if ($newEngine->extra_parameters[ 'use_qe' ]) {\n $minQEString = $this->engineData[ 'minimum_qe' ];\n if (!is_numeric($minQEString)) {\n $this->result[ 'errors' ][ ] = array( 'code' => -13, 'message' => \"Minimum QE score should be a number between 0 and 1.\" );\n return;\n }\n $minimumQEScore = floatval($minQEString);\n if ($minimumQEScore < 0 || $minimumQEScore > 1) {\n $this->result[ 'errors' ][ ] = array( 'code' => -13, 'message' => \"Minimum QE score should be a number between 0 and 1.\" );\n return;\n }\n $newEngine->extra_parameters[ 'minimum_qe' ] = $minimumQEScore;\n }\n\n break;\n\n default:\n $validEngine = false;\n }\n\n if( !$validEngine ){\n $this->result[ 'errors' ][ ] = array( 'code' => -4, 'message' => \"Engine not allowed\" );\n return;\n }\n\n $engineDAO = new EnginesModel_EngineDAO( Database::obtain() );\n $result = $engineDAO->create( $newEngine );\n\n if(! $result instanceof EnginesModel_EngineStruct){\n $this->result[ 'errors' ][ ] = array( 'code' => -9, 'message' => \"Creation failed. Generic error\" );\n return;\n }\n\n if( $newEngine instanceof EnginesModel_MicrosoftHubStruct ){\n\n $engine_test = Engine::getInstance( $result->id );\n $config = $engine_test->getConfigStruct();\n $config[ 'segment' ] = \"Hello World\";\n $config[ 'source' ] = \"en-US\";\n $config[ 'target' ] = \"fr-FR\";\n\n $mt_result = $engine_test->get( $config );\n\n if ( isset( $mt_result['error']['code'] ) ) {\n $this->result[ 'errors' ][ ] = $mt_result['error'];\n $engineDAO->delete( $result );\n return;\n }\n\n } elseif ( $newEngine instanceof EnginesModel_IPTranslatorStruct ){\n\n $engine_test = Engine::getInstance( $result->id );\n\n /**\n * @var $engine_test Engines_IPTranslator\n */\n $config = $engine_test->getConfigStruct();\n $config[ 'source' ] = \"en-US\";\n $config[ 'target' ] = \"fr-FR\";\n\n $mt_result = $engine_test->ping( $config );\n\n if ( isset( $mt_result['error']['code'] ) ) {\n $this->result[ 'errors' ][ ] = $mt_result['error'];\n $engineDAO->delete( $result );\n return;\n }\n\n } elseif ( $newEngine instanceof EnginesModel_LetsMTStruct && empty($this->engineData[ 'system_id' ])){\n // the user has not selected a translation system. only the User ID and the engine's name has been entered\n // get the list of available systems and return it to the user\n\n $temp_engine = Engine::getInstance( $result->id );\n $config = $temp_engine->getConfigStruct();\n $systemList = $temp_engine->getSystemList($config);\n\n $engineDAO->delete($result); // delete the newly added engine. this is the first time in engineController::add()\n // and the user has not yet selected a translation system\n if ( isset( $systemList['error']['code'] ) ) {\n $this->result[ 'errors' ][ ] = $systemList['error'];\n return;\n }\n\n $uiConfig = array(\n 'client_id' => array('value' => $this->engineData['client_id']),\n 'system_id' => array(),\n 'terms_id' => array()\n );\n foreach ($systemList as $systemID => $systemInfo){\n $uiConfig['system_id'][$systemID] = array('value' => $systemInfo['name'],\n 'data' => $systemInfo['metadata']\n );\n }\n\n $this->result['name'] = $this->name;\n $this->result['data']['config'] = $uiConfig;\n } elseif ( $newEngine instanceof EnginesModel_LetsMTStruct){\n // The user has added and configured the Tilde MT engine (the System ID has been set)\n // Do a simple translation request so that the system wakes up by the time the user needs it for translating\n $engine_test = Engine::getInstance( $result->id );\n $engine_test->wakeUp();\n }\n\n $this->result['data']['id'] = $result->id;\n\n }", "title": "" }, { "docid": "4c15db78b1f464c9d90ce58aa99b90a9", "score": "0.5590445", "text": "function add_gebruikertype($params)\n {\n $this->db->insert('gebruikertype',$params);\n return $this->db->insert_id();\n }", "title": "" }, { "docid": "e882c002f58b7a1cfd4856ec7811d8b3", "score": "0.5590147", "text": "public function Add($data,$options = array())\n {\n $this->dbHelper->Add($data,array('ContentType_Id','Name','Type'));\n }", "title": "" }, { "docid": "d80a2d9d548eeb5172c654e8f22f3a6b", "score": "0.5574461", "text": "function add_typeannonce($params)\n {\n $this->db->insert('TypeAnnonce',$params);\n return $this->db->insert_id();\n }", "title": "" }, { "docid": "2876eb3e945f44c0d04afdbb30334fec", "score": "0.55513173", "text": "function store()\r\n {\r\n $db =& eZDB::globalDatabase();\r\n $db->begin();\r\n\r\n $this->Name = $db->escapeString( $this->Name );\r\n \r\n if ( !isset( $this->ID ) )\r\n {\r\n $timeStamp =& eZDateTime::timeStamp( true );\r\n $db->lock( \"eZTrade_VATType\" );\r\n $nextID = $db->nextID( \"eZTrade_VATType\", \"ID\" );\r\n $ret[] = $db->query( \"INSERT INTO eZTrade_VATType\r\n ( ID,\r\n Name,\r\n\t\t VATValue,\r\n\t\t Created )\r\n VALUES\r\n\t\t ( '$nextID',\r\n '$this->Name',\r\n\t\t '$this->VATValue',\r\n\t\t '$timeStamp' )\" );\r\n $db->unlock();\r\n\t\t\t$this->ID = $nextID;\r\n }\r\n else\r\n {\r\n $ret[] = $db->query( \"UPDATE eZTrade_VATType SET\r\n\t\t Name='$this->Name',\r\n\t\t VATValue='$this->VATValue',\r\n\t\t Created=Created\r\n WHERE ID='$this->ID'\" );\r\n }\r\n eZDB::finish( $ret, $db );\r\n return true;\r\n }", "title": "" }, { "docid": "4091d0f16e000c4a8cb8f8d37130251d", "score": "0.55393416", "text": "function hook_dbf_client_type_insert(DBFClientType $dbf_client_type) {\n db_insert('mytable')\n ->fields(array(\n 'id' => entity_id('dbf_client_type', $dbf_client_type),\n 'extra' => print_r($dbf_client_type, TRUE),\n ))\n ->execute();\n}", "title": "" }, { "docid": "99c5f9ecc760249da41b4deeac485636", "score": "0.5537697", "text": "public function addPlace(){\t\t\n\t\t$auth = new AuthentificationModel;\n\t\t$strDate=date_create_from_format('d/m/Y', $_POST['date']);\n\t\t$date=$strDate->format('Y-m-d');\n\t\t$strTime=date_create_from_format('H', $_POST['time']);\n\t\t$time=$strTime->format('H:i');\n\n\t\t$lat=$_POST['data-lat'];\n\t\t$lng=$_POST['data-lng'];\n\t\t\n\t\t$AdvertModel=new AdvertModel();\n\t\t$placeStr=$lat.';'.$lng;\n\n\t\t$advert=array(\n\t\t\t'id_member'=>$_SESSION['user']['id'],\n\t\t\t'id_sport'=>$_POST['id_sport'],\n\t\t\t'place'=>$placeStr,\n\t\t\t'description'=>htmlentities($_POST['description']),\n\t\t\t'level'=>$_POST['level'],\n\t\t\t'event_date'=>$date,\n\t\t\t'event_time'=>$time,\n\t\t\t'nb_participant'=>$_POST['nb_participant'],\n\t\t\t'remain_participant'=>$_POST['nb_participant'],\n\t\t\t'statut'=>'available'\n\t\t\t);\n\n\t\tif($AdvertModel->insert($advert)){\n\t\t\t$message = \"Annonce enregistrée.\";\n\t\t\t$auth-> setFlash($message, 'success');\n\t\t\t$this -> redirectToRoute('user_profil');\n\t\t}\n\t\telse{\n\t\t\t$message = \"Il y a eu problème lors de l'enregistrement de votre annonce\";\n\t\t\t$auth-> setFlash($message, 'error');\n\t\t\t$this->show('advert/register');\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "9eff202426f2134c10ef1e5c59eb6d83", "score": "0.5537143", "text": "public function store($type, $id, Request $request)\n {\n // An additional validator which makes sure form values match what is expected\n $validatedData = $request->validate([\n 'name' => 'required',\n 'description' => 'required',\n 'cost' => 'required|numeric',\n 'miles' => 'required|numeric',\n 'engineSize' => 'required|numeric',\n 'topSpeed' => 'required|numeric',\n 'taxCost' => 'required',\n 'mpg' => 'required',\n 'doors' => 'required|numeric',\n 'seats' => 'required|numeric',\n 'engineSize' => 'required|numeric',\n 'fuelType' => 'required',\n 'make' => 'required',\n 'gearbox' => 'required',\n 'bodyType' => 'required',\n 'image.*' => 'mimes:jpeg,jpg,png,gif|max:20000',\n ]);\n\n // Grab id's of fueltypes and if not insert them and grab there id's\n $fuelTypeID = self::elementCheck(\"fuelType\", \"fuelTypeName\", $request->input('fuelType'));\n $manufacturerID = self::elementCheck(\"manufacturer\", \"manufacturerName\", $request->input('make'));\n $transmissionID = self::elementCheck(\"transmission\", \"transmissionType\", $request->input('gearbox'));\n $bodyID = self::elementCheck(\"bodyType\", \"bodyTypeName\", $request->input('bodyType'));\n \n // Creates and array with all the request values in ready to be inserted into the database\n $carsTable = array('name' => $request->input('name'), 'description' => $request->input('description'), 'price' => $request->input('cost'), 'mileage' => $request->input('miles'), 'engineSize' => $request->input('engineSize'), 'topSpeed' => $request->input('topSpeed'), 'tax' => $request->input('taxCost'), 'mpg' => $request->input('mpg'), 'totalDoors' => $request->input('doors'), 'totalSeats' => $request->input('seats'), 'engineSize' => $request->input('engineSize'), 'fuelType_id' => $fuelTypeID, 'bodyType_id' => $bodyID, 'manufacturer_id' => $manufacturerID, 'transmission_id' => $transmissionID);\n\n // Inserts array into the cars table in the database\n if($type == \"store\"){\n DB::table('cars')->insert($carsTable);\n $lastCarInsertID = DB::getPdo()->lastInsertId();\n }else if($type == \"edit\"){\n DB::table('cars')->where('id', $id)->update($carsTable);\n $lastCarInsertID = $id;\n }\n\n // Updates existing alt text\n if($type == \"edit\"){\n $index2 = 0;\n $existingCarImages = DB::select('SELECT carImages.id FROM carImagesLink INNER JOIN carImages ON carImages_id = carImages.id WHERE carImagesLink.cars_id = '.$id.'');\n\n foreach ($existingCarImages as $altTextID) {\n $imageAltText = $request->input('altTextExisting')[$index2];\n\n $carImagesTable = array('imageAltText' => $imageAltText);\n\n DB::table('carImages')->where('id', $altTextID->id)->update($carImagesTable);\n $index2++;\n }\n }\n\n // Image upload\n $index = 0;\n if($request->file('image')){\n foreach ($request->file('image') as $update) {\n // Checks to see if file input is empty\n if($update != \"\"){\n $photoName = time().$index.'.'.$update->getClientOriginalExtension();\n\n $update->move(public_path('carImages'), $photoName);\n\n // Runs through image compression\n self::compressImage(\"carImages/\".$photoName.\"\");\n\n $imageAltText = $request->input('altText')[$index];\n\n $carImagesTable = array('imageURL' => $photoName, 'imageAltText' => $imageAltText);\n DB::table('carImages')->insert($carImagesTable);\n \n $lastCarImageID = DB::getPdo()->lastInsertId();\n $carImagesLinkTable = array('cars_id' => $lastCarInsertID, 'carImages_id' => $lastCarImageID);\n DB::table('carImagesLink')->insert($carImagesLinkTable);\n\n $index++;\n }\n }\n }\n\n // Send Bulk Email To Registered Users Who Consented\n // Get Users Who Consented From Database\n\n if($type == \"store\"){\n $allConsentUsers = DB::select('SELECT email, name FROM users WHERE consent_form_notifications = 1');\n $toMessage = [];\n\n foreach($allConsentUsers as $consent){\n $toMessage[] = [ \n 'From' => [\n 'Email' => \"ands3_16@uni.worc.ac.uk\",\n 'Name' => \"Worcester Cars\"\n ],\n 'To' => [\n [\n 'Email' => $consent->email, \n 'Name' => $consent->name\n ]\n ],\n 'Subject' => \"New Car For Sale!\",\n 'HTMLPart' => \"<h3>Dear \".$consent->name.\", We thought we would let you know we have a new \".$request->input('name').\" for sale. <br /> <a href='http://127.0.0.1:8000/car/\".$lastCarInsertID.\"'>Go check it out</a></h3><br />Thanks, Worcester Cars <br /> If you wish to unsubscribe from emails <a href='http://127.0.0.1:8000/login'>Please Visit This Link</a>\"\n ];\n } \n\n $mj = new \\Mailjet\\Client('a513843cbd376e6de6e6c79f2efc51d7','9fe7604278c5c3473fe317a28daff371',true,['version' => 'v3.1']);\n $body = [\n 'Messages' => $toMessage,\n ];\n\n $response = $mj->post(Resources::$Email, ['body' => $body]);\n\n // load the admin page after a new car has been added\n return redirect()->route('admin')->withSuccess('New Car Added Successfully');\n }else if($type == \"edit\"){\n return redirect()->route('admin')->withSuccess('Car Updated Successfully');\n }else{\n return redirect('/admin');\n }\n }", "title": "" }, { "docid": "81288a56aca8a746dea04216a1712ba3", "score": "0.551474", "text": "public function Add() {\n\n\t\t/* POINTS TYPE NAME CANNOT BE EMPTY */\n\t\tif (EMPTY($this->description)) { $this->Errors(\"Description name cannot be empty!\"); return False; }\n\t\t/* POINTS TYPE NAMES MUST BE CHARACTERS OR LETTERS */\n\t\tif (!IsAlphaNumeric($this->description)) { $this->Errors(\"Invalid description name. Use only alpha-numeric characters!\"); return False; }\n\t\t/* POINTS TYPE NAMES CAN'T BE DUPLICATED */\n\t\tif (RowExists(\"points_type_master\",\"description\",$this->description,\"\")) { $this->Errors(\"Description exists!\"); return False; }\n\n\t\t/* ADD */\n\t\t$db=$GLOBALS['db'];\n\t\t$sql=\"INSERT INTO \".$GLOBALS['database_ref'].\"points_type_master\n\t\t\t\t\t(description)\n\t\t\t\t\tVALUES (\n\t\t\t\t\t'\".$this->description.\"'\n\t\t\t\t\t)\";\n\t\t//echo $sql;\n\t\t$result=$db->Query($sql);\n\t\tif ($db->AffectedRows($result) > 0) {\n\t\t\tLogHistory($this->description.\" added\");\n\t\t\treturn True;\n\t\t}\n\t\telse {\n\t\t\treturn False;\n\t\t}\n\t}", "title": "" }, { "docid": "cc7c7b9acd3fc8fe67065c6c1eee2789", "score": "0.55047303", "text": "public function save()\n\t{\n\t\tAuthorizationModel::mustAuthorized(PERMISSION_PAYMENT_TYPE_CREATE);\n\n\t\tif ($this->validate()) {\n\t\t\t$paymentType = $this->input->post('payment_type');\n\t\t\t$description = $this->input->post('description');\n\t\t\t$services = $this->input->post('services');\n\n\t\t\t$this->db->trans_start();\n\n\t\t\t$this->paymentType->create([\n\t\t\t\t'payment_type' => $paymentType,\n\t\t\t\t'description' => $description\n\t\t\t]);\n\t\t\t$paymentTypeId = $this->db->insert_id();\n\n\t\t\tif (!empty($services)) {\n\t\t\t\tforeach ($services as $serviceId => $service) {\n\t\t\t\t\t$this->servicePaymentType->create([\n\t\t\t\t\t\t'id_service' => $serviceId,\n\t\t\t\t\t\t'id_payment_type' => $paymentTypeId,\n\t\t\t\t\t\t'payment_percent' => $service['payment_percent'],\n\t\t\t\t\t\t'margin_percent' => $service['margin_percent'],\n\t\t\t\t\t]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->db->trans_complete();\n\n\t\t\tif ($this->db->trans_status()) {\n\t\t\t\tflash('success', \"Payment type {$paymentType} successfully created\", 'master/payment-type');\n\t\t\t} else {\n\t\t\t\tflash('danger', 'Create payment type failed, try again or contact administrator');\n\t\t\t}\n\t\t}\n\t\t$this->create();\n\t}", "title": "" }, { "docid": "44cbdb11abf8ecb290ec13f7fa265a03", "score": "0.5496463", "text": "public function addUser($user, $type){\t\n\t\t$this->connect();\n\t\t// fix any problems with characters in the string that would mess up storage in th\n\t\t// database (i.e., apostrophes)\n\t\t$user->fName = mysql_real_escape_string($user->fName);\n\t\t$user->lName = mysql_real_escape_string($user->lName);\n\t\t// put the values contained in the user object into the database\n\t\t$sql = \"INSERT INTO users (Type, Username, FirstName, LastName) \n\t\t\tVALUES ('$type','$user->username','$user->fName','$user->lName')\";\n\t\t$result = mysql_query($sql);\t\n\t\tif (!$result){\n\t\t\tdie('Error: ' . mysql_error());\n\t\t}\n\t}", "title": "" }, { "docid": "be935fbab240291c779b6129e0f2e5c9", "score": "0.54827464", "text": "public function torturer_add() {\r\n $torturer = $this->torturers->create();\r\n $this->torturer_present($torturer);\r\n }", "title": "" }, { "docid": "e2debcff6d3353908b2f10cf07f2060a", "score": "0.5476833", "text": "public function changeDatatypeObject()\n\t{\n\t\tglobal $ilUser;\n\t\t$ilUser->writePref('svy_insert_type', $_POST['datatype']);\n\t\t$this->ctrl->setParameter($this, \"pgov\", $_REQUEST[\"pgov\"]);\n\t\t$this->ctrl->setParameter($this, \"pgov_pos\", $_REQUEST[\"pgov_pos\"]);\n\t\tswitch ($_POST[\"datatype\"])\n\t\t{\n\t\t\tcase 0:\n\t\t\t\t$this->ctrl->redirect($this, 'browseForQuestionblocks');\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\tdefault:\n\t\t\t\t$this->ctrl->redirect($this, 'browseForQuestions');\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "57d9227795dd4e11879802375c9c7cb1", "score": "0.54766095", "text": "public function add_job_type($data){\n\t\t$this->db->insert('job_type', $data);\n\t\tif ($this->db->affected_rows() > 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "dd4d08a26553faec8ab489ec5133833d", "score": "0.5475302", "text": "function add_ticket_type()\n\t{\n\t\t$title=get_page_title('ADD_TICKET_TYPE');\n\n\t\t$ticket_type=post_param('ticket_type',post_param('ticket_type_2'));\n\t\tadd_ticket_type($ticket_type,post_param_integer('guest_emails_mandatory',0),post_param_integer('search_faq',0));\n\n\t\t// Permissions\n\t\trequire_code('permissions2');\n\t\tset_category_permissions_from_environment('tickets',$ticket_type);\n\n\t\t// Show it worked / Refresh\n\t\t$url=build_url(array('page'=>'_SELF','type'=>'misc'),'_SELF');\n\t\treturn redirect_screen($title,$url,do_lang_tempcode('SUCCESS'));\n\t}", "title": "" }, { "docid": "b273c147c8116641dbab8b9383f5d27e", "score": "0.54748386", "text": "function addEquipmentType(){\t\n\n\t\t\tif($this->session->fullname==\"\"){\n\t\t\t\tredirect('admin');\n\t\t\t}\n\n\t\t\t$data['main_content']=\"addEquipmentType\";\n\t\t\t$this->load->view('admin_template',$data);\n\t\t}", "title": "" }, { "docid": "1d47f8a9484005f14cd06f89a1aaa431", "score": "0.5470242", "text": "public function add()\n\t{\n\t\t$this->Model_buku->add();\n\t}", "title": "" }, { "docid": "0478b142a4819953d26f798bce780823", "score": "0.5462187", "text": "public function add($id = NULL)\n {\n $this->loadModel('TypeTiers');\n $typetiers = $this->TypeTiers->find('list');\n if (!is_null($id)) {\n $tier = $this->Tiers->get($id);\n } else $tier = $this->Tiers->newEntity($this->request->getData());\n\n // Si la requête est de type post ou put, alors nous traitons les données reçues du formulaire\n if ($this->request->is(['post',\n 'put'])) {\n if (!is_null($id))\n $this->Tiers->patchEntity($tier, $this->request->getData()); else\n $tier = $this->Tiers->newEntity($this->request->getData());\n\n // on vérifie si les mots de passe sont identiques\n if ($this->Tiers->save($tier)) {\n // on créé le compte comptable associé\n // récupération du compte parent rattaché au type de tiers\n $this->Flash->success(__('Tier enregistré'));\n\n } else {\n $this->Flash->error(__('Erreur dans la sauvegarde'));\n }\n return $this->redirect(['action' => 'index',\n $tier->type_tier_id]);\n }\n $this->set(compact('tier', 'typetiers'));\n }", "title": "" }, { "docid": "266d5f20369b03b93c0db0c71b993046", "score": "0.54600036", "text": "function eck__entity_type__add_submit($form, &$form_state) {\n // This are required so I don't have to do any checks.\n $entity_type = $form_state['values']['entity_type'];\n $entity_type_label = $form_state['values']['entity_type_label'];\n\n // If the table does not exist, then this is a valid entity name, and we can save it.\n if (!db_table_exists(\"eck_{$entity_type}\")) {\n // Let's add the type to the table.\n if (!empty($form_state['values']['bundle'])) {\n $bundle = $form_state['values']['bundle'];\n if (!empty($form_state['values']['bundle_label'])) {\n $bundle_label = $form_state['values']['bundle_label'];\n }\n else {\n $bundle_label = ucfirst($bundle);\n }\n }\n else {\n $bundle = $entity_type;\n $bundle_label = $entity_type_label;\n }\n\n db_insert('eck_types')\n ->fields(array(\n 'entity' => $entity_type,\n 'type' => $bundle,\n 'label' => $bundle_label,\n ))\n ->execute();\n\n db_insert('eck')\n ->fields(array(\n 'name' => $entity_type,\n 'label' => $entity_type_label,\n ))\n ->execute();\n\n db_create_table(\"eck_{$entity_type}\", eck__entity_type__schema($entity_type));\n\n // Clear info caches in order to pick up newly created entities.\n drupal_get_schema(NULL, TRUE);\n entity_info_cache_clear();\n // Rebuild the menu to pick up entity related paths.\n menu_rebuild();\n\n drupal_set_message(t('Entity type %entity_type has been created.', array('%entity_type' => $entity_type_label)));\n\n drupal_goto(\"admin/structure/eck/{$entity_type}\");\n }\n else {\n drupal_set_message(t('Database table %name already exists', array('%name' => $entity_type)), 'error');\n }\n}", "title": "" }, { "docid": "8f9c593464c10f3928859121bc4284ee", "score": "0.54597205", "text": "public function add_leave_type($data){\n\t\t$this->db->insert('leave_type', $data);\n\t\tif ($this->db->affected_rows() > 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "0c8e4f4c717526ef906285b964d0fac5", "score": "0.5453257", "text": "public function add_lic_type()\n {\n if (!isset($_SESSION['admin_id'])) {\n redirect('admin/login');\n }\n $data['title'] = 'Traffic Police | License Verification';\n $data['heading'] = 'License Verification';\n $data['page_name'] = 'admin/license_verification/add-license-type';\n $data['action']\t =\tbase_url('admin/add_type_process');\n //echo '<pre>';print_r($data['data']);\n $this->load->view('template', $data);\n }", "title": "" }, { "docid": "3d106e3c6d6a5cc682f3d554535a176f", "score": "0.5435196", "text": "public function add()\n\t{\n\t\t$table = self::getTableNameFromType($this->getType());\n\t\tif ($table) {\n\t\t\t$insertData = [\n\t\t\t\t'status' => $this->get('status'),\n\t\t\t\t'value' => $this->get('value'),\n\t\t\t\t'name' => $this->getName()\n\t\t\t];\n\n\t\t\tif ('Taxes' === $this->getType()) {\n\t\t\t\tif ($this->get('default')) {\n\t\t\t\t\t$this->disableDefaultsTax();\n\t\t\t\t}\n\t\t\t\t$insertData['default'] = $this->get('default');\n\t\t\t}\n\t\t\t$db = \\App\\Db::getInstance();\n\t\t\t$db->createCommand()\n\t\t\t\t->insert($table, $insertData)->execute();\n\t\t\treturn $db->getLastInsertID($table . '_id_seq');\n\t\t}\n\t\tthrow new Error('Error occurred while adding value');\n\t}", "title": "" }, { "docid": "5ab73ce26c3ee47adacffd0bbb794dbb", "score": "0.5434949", "text": "private function _type_insertType(Widget\\Model\\Type $obj) \n {\n // socms_tbl_widgets_custom_types\n \n $data = array (\n 'config' => json_encode($obj->getConfig()),\n 'providers' => json_encode($obj->getProviders()),\n 'name' => $obj->getName()\n );\n\n $this->getAdapter()->insert('socms_tbl_widgets_custom_types', $data);\n\n $id = $this->getAdapter()->lastInsertId();\n if($id) { $obj->id = $id; }\n \n return $obj;\n }", "title": "" }, { "docid": "7bdc0c214941ef3a105ceaf71d7dcc02", "score": "0.54203725", "text": "function addNewPDIType($PDITypeName, $PDICatID, $PDITypeDescription = \"\") {\n\tglobal $db;\n\t\n\t$PDITypeName \t\t= standardizeName($PDITypeName);\n\t$PDITypeDescription = standardizeName($PDITypeDescription);\n\n\tif ($PDITypeName == \"\")\n\t\treturn -1;\n\n\tif ($PDICatID <= 0)\n\t\treturn -1;\n\n\n\t// Check if type already exists\n\t$sql = \"SELECT * FROM PDIType where Name = '\" . $PDITypeName . \"';\";\n\t$result = mysql_query($sql) or die(\"Error : $sql<br>\" . mysql_error());\n\n\t$row = mysql_fetch_array($result);\n\t$returnResult = mysql_num_rows($result);\n\n\tif ($returnResult > 0){\n\t\t// Type already exist, return the type ID\n\t\treturn $row['PDITypeID'];\n\t}\n\t\n\t// No category exists, insert a new type\t\t\n\t$sql = \"INSERT INTO PDIType (Name, PDICatID, Description) values (\\\"\" . $PDITypeName . \"\\\",\" . $PDICatID . \", \\\"\" . $PDITypeDescription . \"\\\");\";\n\t$result = mysql_query($sql) or die(\"Error : $sql<br>\" . mysql_error());\n\t$PDITypeID = mysql_insert_id();\n\n\treturn $PDITypeID;\n}", "title": "" }, { "docid": "a7a39b6e49c3a005d78b0e529ea9c6a3", "score": "0.54108596", "text": "function attach_type_save( $type='add' )\n\t{\n\t\t$this->ipsclass->input['id'] = intval($this->ipsclass->input['id']);\n\t\t\n\t\t//-----------------------------------------\n\t\t// check basics\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( ! $this->ipsclass->input['atype_extension'] or ! $this->ipsclass->input['atype_mimetype'] )\n\t\t{\n\t\t\t$this->ipsclass->main_msg = \"You must enter at least an extension and mime-type before continuing.\";\n\t\t\t$this->attach_type_form( $type );\n\t\t}\n\t\t\n\t\t$save_array = array( 'atype_extension' => str_replace( \".\", \"\", $this->ipsclass->input['atype_extension'] ),\n\t\t\t\t\t\t\t 'atype_mimetype' => $this->ipsclass->input['atype_mimetype'],\n\t\t\t\t\t\t\t 'atype_post' => $this->ipsclass->input['atype_post'],\n\t\t\t\t\t\t\t 'atype_photo' => $this->ipsclass->input['atype_photo'],\n\t\t\t\t\t\t\t 'atype_img' => $this->ipsclass->input['atype_img']\n\t\t\t\t\t\t );\n\t\t\n\t\tif ( $type == 'add' )\n\t\t{\n\t\t\t//-----------------------------------------\n\t\t\t// Check for existing..\n\t\t\t//-----------------------------------------\n\t\t\t\n\t\t\t$attach = $this->ipsclass->DB->simple_exec_query( array( 'select' => '*', 'from' => 'attachments_type', 'where' => \"atype_extension='\".$save_array['atype_extension'].\"'\" ) );\n\t\t\t\n\t\t\tif ( $attach['atype_id'] )\n\t\t\t{\n\t\t\t\t$this->ipsclass->main_msg = \"The extension '{$save_array['atype_extension']}' already exists, please choose another extension.\";\n\t\t\t\t$this->attach_type_form($type);\n\t\t\t}\n\t\t\t\n\t\t\t$this->ipsclass->DB->do_insert( 'attachments_type', $save_array );\n\t\t\t\n\t\t\t$this->ipsclass->main_msg = \"Attachment type added\";\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->ipsclass->DB->do_update( 'attachments_type', $save_array, 'atype_id='.$this->ipsclass->input['id'] );\n\t\t\t\n\t\t\t$this->ipsclass->main_msg = \"Attachment type edited\";\n\t\t}\n\t\t\n\t\t$this->attach_type_rebuildcache();\n\t\t\n\t\t$this->attach_type_start();\n\t\t\n\t}", "title": "" }, { "docid": "d55ca6a9333303d35ea18f881041688f", "score": "0.5408099", "text": "function add_lab_config_specimen_type($lab_config_id, $specimen_type_id)\n{\n\tglobal $con;\n\t$specimen_type_id = mysql_real_escape_string($specimen_type_id, $con);\n\t$lab_config_id = mysql_real_escape_string($lab_config_id, $con);\n\t$saved_db = DbUtil::switchToLabConfigRevamp($lab_config_id);\n\t$query_check =\n\t\t\"SELECT * FROM lab_config_specimen_type \".\n\t\t\"WHERE specimen_type_id=$specimen_type_id AND lab_config_id=$lab_config_id\";\n\t$flag_exists = query_associative_one($query_check);\n\tif($flag_exists != null)\n\t{\n\t\t# Mapping already exists\n\t\t# TODO: Add error handling?\n\t\treturn;\n\t}\n\t$query_add =\n\t\t\"INSERT INTO lab_config_specimen_type(lab_config_id, specimen_type_id) \".\n\t\t\"VALUES ($lab_config_id, $specimen_type_id)\";\n\tquery_insert_one($query_add);\n\tDbUtil::switchRestore($saved_db);\n}", "title": "" }, { "docid": "88e24af1d53f6ce819e4cfcd0ea6add7", "score": "0.5401062", "text": "function add($type,$name='',$value='',$extras=false,$inner_label='',$outer_label='')\r\n\t\t{\r\n\t\t\t$this->data[] = $this->wrapper(\"$type-tr\",$this->get($type,$name,$value,$extras,$inner_label),$outer_label);\r\n\t\t}", "title": "" }, { "docid": "2b132741b332c8783e033e1cd85ef3eb", "score": "0.5399635", "text": "public function insertType(Request $request){\n\t\t$input = $request->all();\n\t\t$url = URL::to('/type/list');\n\t\t$msg = \"Unknown error\";\n\t\tif(isset($input['newTypeName'])&&$input['newTypeName']){\n\t\t\t$input['newTypeName'] = strtoupper($input['newTypeName']);\n\t\t\t$find = $this->master->getJenis_ssByName($input['newTypeName']);\n\t\t\tif($find){\t\t\t\t\n\t\t\t\t$msg = \"Nama Jenis ss \".$input['newTypeName'].\" sudah terdaftar\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$resultInsert = $this->master->insertType($input['newTypeName']);\n\t\t\t\tif($resultInsert){\n\t\t\t\t\tSession::put('msg', Validation::successMessage(\"Success\"));\n\t\t\t\t\treturn Redirect($url);\n\t\t\t\t}\n\t\t\t\t$msg = \"Insert failed\";\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\t$msg = \"Name must be filled\";\n\t\t}\n\t\tSession::put('msg', Validation::validationMessage($msg));\n\t\treturn Redirect($url);\n\t}", "title": "" }, { "docid": "59fead1d50981f7b256265ab0ee93854", "score": "0.53969777", "text": "function insertTerritoryType($datapack) {\n // $date = new DateTime();\n\n $data = array(\n \"territory_type_name\" => \"$datapack\",\n \"territory_type_status\" => 1,\n \"added_date\" => date('Y:m:d'),\n \"added_time\" => date('H:i:s')\n );\n $this->db->__beginTransaction();\n $this->db->insertData(\"tbl_territory_type\", $data);\n $this->db->__endTransaction();\n return $this->db->status();\n }", "title": "" }, { "docid": "4e6910a90c476c8661f80108cf404065", "score": "0.539097", "text": "public function addDrugType(Request $request){\n $name=$request->drugType;\n $clinic=Clinic::getCurrentClinic();\n $this->authorize('add','App\\DrugType');\n\n $validator = Validator::make($request->all(), [\n 'drugType' => 'required'\n ]);\n if($validator->fails()){\n return back()->withInput()->withErrors($validator);\n }\n\n try{\n $drugType=new DrugType();\n $drugType->drug_type=$name;\n $drugType->clinic()->associate($clinic);\n $drugType->creator()->associate(User::getCurrentUser());\n $drugType->save();\n return back()->with('success', $request->drugType . ' added successfully');\n }\n catch(\\Exception $e){\n $validator->getMessageBag()->add('drugType', 'Drug Type already exists');\n return back()->withInput()->withErrors($validator);\n }\n }", "title": "" }, { "docid": "d994b30fff00e9e1986384e78f782d71", "score": "0.53900796", "text": "public function create()\n {\n\t\t$ride_category = VehicleCategory::all();\n\t\treturn view('car.type.add_car_type',['ride_category' => $ride_category]);\n \n\t\n }", "title": "" }, { "docid": "4dcc5d1eeccbf8c0c24c0efacb93ed5a", "score": "0.53863865", "text": "public function getVehicleType()\n {\n return $this->vehicleType;\n }", "title": "" }, { "docid": "4dcc5d1eeccbf8c0c24c0efacb93ed5a", "score": "0.53863865", "text": "public function getVehicleType()\n {\n return $this->vehicleType;\n }", "title": "" }, { "docid": "4dcc5d1eeccbf8c0c24c0efacb93ed5a", "score": "0.53863865", "text": "public function getVehicleType()\n {\n return $this->vehicleType;\n }", "title": "" }, { "docid": "d47fc0b625785b581ff4b3eb94870d7c", "score": "0.5384465", "text": "public function addVehicles(object $vehicle)\n {\n\n if ($vehicle instanceof Skateboard || $vehicle instanceof Bike) {\n $this->currentVehicles[] = $vehicle;\n }\n }", "title": "" }, { "docid": "a6147a7d393d4dfcb30fea49332a7a05", "score": "0.53836805", "text": "private function insertLocationTypeValues()\n {\n $this->insert('location_type', array(\n 'id' => 1,\n 'name' => 'STANDARD_RINK',\n 'display_name' => 'Standard / NHL Rink',\n 'display_order' => 1,\n 'description' => 'Suitable for practice and game sessions as well as pleasure skating. Is a standard NHL sized location or very close to standard NHL size.',\n 'created_on' => new CDbExpression('NOW()'),\n 'updated_on' => new CDbExpression('NOW()'),\n )\n );\n \n $this->insert('location_type', array(\n 'id' => 2,\n 'name' => 'PRACTICE_RINK',\n 'display_name' => 'Practice Rink',\n 'display_order' => 2,\n 'description' => 'Suitable for practice and game sessions as well as pleasure skating. May be smaller or larger than a standard NHL sized location.',\n 'created_on' => new CDbExpression('NOW()'),\n 'updated_on' => new CDbExpression('NOW()'),\n )\n );\n \n $this->insert('location_type', array(\n 'id' => 3,\n 'name' => 'OLYMPIC_RINK',\n 'display_name' => 'Olympic / International Rink',\n 'display_order' => 3,\n 'description' => 'Suitable for practice and game sessions as well as pleasure skating. Is wider and shorter than a standard NHL sized location.',\n 'created_on' => new CDbExpression('NOW()'),\n 'updated_on' => new CDbExpression('NOW()'),\n )\n );\n \n $this->insert('location_type', array(\n 'id' => 4,\n 'name' => 'OUTDOOR_RINK',\n 'display_name' => 'Outdoor Rink',\n 'display_order' => 4,\n 'description' => 'Ice sheet is outdoors and may or may not have a warming house. In addition to being suitable for practice and pleasure skating, it may also be suitable for games and freestyle.',\n 'created_on' => new CDbExpression('NOW()'),\n 'updated_on' => new CDbExpression('NOW()'),\n )\n );\n \n $this->insert('location_type', array(\n 'id' => 5,\n 'name' => 'OVAL_RINK',\n 'display_name' => 'Oval Rink',\n 'display_order' => 5,\n 'description' => 'Suitable for speed skating and pleasure skating.',\n 'created_on' => new CDbExpression('NOW()'),\n 'updated_on' => new CDbExpression('NOW()'),\n )\n );\n \n $this->insert('location_type', array(\n 'id' => 6,\n 'name' => 'FIELD_HOUSE',\n 'display_name' => 'Field House',\n 'display_order' => 6,\n 'description' => 'A facility that is not a rink and is used for various activities.',\n 'created_on' => new CDbExpression('NOW()'),\n 'updated_on' => new CDbExpression('NOW()'),\n )\n );\n \n $this->insert('location_type', array(\n 'id' => 7,\n 'name' => 'ACTIVITY_ROOM',\n 'display_name' => 'Activity Room',\n 'display_order' => 7,\n 'description' => 'A facility that is not a rink and is used mainly for parties and meetings.',\n 'created_on' => new CDbExpression('NOW()'),\n 'updated_on' => new CDbExpression('NOW()'),\n )\n );\n }", "title": "" }, { "docid": "fd6566df46bb3c43bea54009c09ed2e7", "score": "0.53822", "text": "public function add($type = null, $foreignKey = null) {\r\n\t\t$status = 'error';\r\n\t\tif (!isset($this->favoriteTypes[$type])) {\r\n\t\t\t$message = __d('favorites', 'Invalid object type.');\r\n\t\t} else {\r\n\t\t\t$Subject = ClassRegistry::init($this->favoriteTypes[$type]);\r\n\t\t\t$Subject->id = $foreignKey;\r\n\t\t\t//$this->Favorite->model = $this->favoriteTypes[$type];\r\n\t\t\t$this->Favorite->model = $type;\r\n\t\t\tif (!$Subject->exists()) {\r\n\t\t\t\t$message = __d('favorites', 'Invalid identifier');\r\n\t\t\t} else {\r\n\t\t\t\ttry {\r\n//\t\t\t\t\tdebug($this->Auth->user('id'));\r\n\t\t\t\t\t$result = $Subject->saveFavorite($this->Auth->user('id'), $Subject->name, $type, $foreignKey);\r\n\t\t\t\t\tif ($result) {\r\n\t\t\t\t\t\t$status = 'success';\r\n\t\t\t\t\t\t$message = __d('favorites', 'Record was successfully added');\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$message = __d('favorites', 'Record was not added.');\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception $e) {\r\n\t\t\t\t\t$message = __d('favorites', 'Record was not added.') . ' ' . $e->getMessage();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->set(compact('status', 'message', 'type', 'foreignKey'));\r\n\t\tif (!empty($this->request->params['isJson'])) {\r\n\t\t\treturn $this->render();\r\n\t\t} else {\r\n\t\t\treturn $this->redirect($this->referer());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0eb41bdb12a42b4237a81868a970e2e2", "score": "0.5359975", "text": "public function createAction()\n {\n $entity = new Building_type();\n $request = $this->getRequest();\n\n //Set ค่า deleted = 0\n $entity->setDeleted(0);\n\n $form = $this->createForm(new Building_typeType(), $entity);\n $form->bindRequest($request);\n\n// if (!$form->isValid()) {\n $em = $this->getDoctrine()->getEntityManager();\n\n //Check ชื่อ TypeName ซ้ำ\n $getName = $entity->getTypeName();\n if (!$this->checkName($getName, \"\")){\n echo \"finish_comp\";\n exit();\n }\n\n $em->persist($entity);\n $em->flush();\n\n //สร้าง logs\n $this->addLogger('Insert Building Type', $entity);\n\n echo 'finish';\n exit();\n// return $this->redirect($this->generateUrl('building_type_show', array('id' => $entity->getId())));\n \n //}\n\n// return $this->render('FTRAdminBundle:Building_type:new.html.twig', array(\n// 'entity' => $entity,\n// 'form' => $form->createView()\n// ));\n }", "title": "" }, { "docid": "72762865f149519dbe11e97f5cacb737", "score": "0.53595215", "text": "public function vehicleFacilitiesCreate($vehicleType)\n {\n // $facilityTypeID= $facilities;\n return view('admin.facilities.vehicleFacilitiesCreate',compact('vehicleType'));\n }", "title": "" }, { "docid": "473e6a5a68fd9623c8f7c82a6df8d62d", "score": "0.5357118", "text": "public function registersType($type);", "title": "" }, { "docid": "93946a4dc531e445f85256cdd2ebdbc9", "score": "0.53554815", "text": "public function iocAdd($name, $type, $value) {\n // table structure: id name type value value2\n // returns the newly generated id\n if ($value == '') $value = NULL;\n \n $sql = 'INSERT INTO `indicators` '.\n '(`name`, `type`, `value`) '.\n 'VALUES (?, ?, ?);';\n \n if (!$stmt = $this->mysqli->prepare($sql))\n throw new Exception('Error preparing statement [' . $this->mysqli->error . ']');\n \n if (!$stmt->bind_param('sss', $name, $type, $value)) \n throw new Exception('Error binding parameters [' . $stmt->error . ']');\n \n if (!$stmt->execute())\n throw new Exception('Error executing statement [' . $stmt->error . ']');\n \n if (!$stmt->close())\n throw new Exception('Error closing statement [' . $stmt->error . ']');\n\n return $this->lastInsertId();\n }", "title": "" }, { "docid": "abcca5786b3fddb5d3572b0a59d08b50", "score": "0.53523475", "text": "public function addAction()\n {\n $form = new Application_Form_TranscriptionType();\n $taMapper = new Application_Model_TranscriptionPriceMapper;\n $values = array();\n $paygrades = $this->_getPayrateGrades();\n\n $action = $this->view->url(array('controller' => 'transcription-type', 'action' => 'add'), null, true);\n $form->setAction($action);\n\n \tif ($this->getRequest()->isPost())\n {\n $formData = $this->_request->getPost();\n \t\tif ($form->isValid($formData))\n {\n $data = array(\n 'name' => $formData['name'],\n 'description' => $formData['description'],\n 'turnaround_id' => $formData['turnaround_id']\n );\n $transcriptionTypeId = $this->_mapper->insert($data);\n $taMapper->setPriceRows($transcriptionTypeId, $formData['turnaround_times']);\n\n $paygradeMapper = new Application_Model_TranscriptionTypistPayrateMapper();\n $paygradeData = array();\n foreach (array_keys($paygrades) as $pgId)\n {\n $paygradeData[$pgId] = $formData['payrate' . $pgId];\n }\n $paygradeMapper->updateTranscriptionPayrateData($transcriptionTypeId, $paygradeData);\n\n $url = $this->view->url(array('controller' => 'transcription-type'), null, true);\n $this->flashMessenger->addMessage(array('notice' => \"Transcription type added\"));\n $this->_redirect($url);\n }\n else\n {\n $this->_helper->FlashMessenger(array('error' => 'Form not correctly completed. Please see item(s) in red text below.'));\n $values = $formData;\n foreach (array_keys($paygrades) as $pgId)\n {\n $values['payrate' . $pgId] = $formData['payrate' . $pgId];\n }\n }\n }\n $form->populate($values);\n $this->view->form = $form;\n $this->view->payrateGrades = $paygrades;\n $this->render('edit');\n }", "title": "" }, { "docid": "895bec07f0e51bc839cfc9f3df9c03f0", "score": "0.53481674", "text": "public function addField($params)\r\n\t{\r\n\t\tif (!$params['obj_type'] || !$params['name'])\r\n\t\t\treturn $this->sendOutput(array(\"error\"=>\"obj_type and field name are required parameters\"));\r\n\r\n\t\t$def = $this->ant->getServiceLocator()->get(\"EntityDefinitionLoader\")->get($params['obj_type']);\r\n\r\n\t\t// check if the field already exists\r\n\t\tif ($def->getField($param['name']))\r\n\t\t\treturn $this->sendOutput(array(\"error\"=>\"A field by this name already exists\"));\r\n\r\n\t\t// TODO: Test permissions for the current user\r\n\r\n\t\t// Crete and add field\r\n\t\t$field = new \\Netric\\EntityDefinition\\Field();\r\n\t\t$field->fromArray($params);\r\n\t\t$def->addField($field);\r\n\r\n\t\t// Get datamapper and save\r\n\t\t$dm = $this->ant->getServiceLocator()->get(\"EntityDefinition_DataMapper\");\r\n\t\t$dm->save($def);\r\n\r\n\t\treturn $this->sendOutput($field->toArray());\r\n\t}", "title": "" }, { "docid": "8389caa0b6bd8d10e1939d7717053d18", "score": "0.53406245", "text": "function add_car_brand($params)\n {\n try{\n $this->db->insert('car_brand',$params);\n return $this->db->insert_id();\n } catch (Exception $ex) {\n throw new Exception('Car_brand_model model : Error in add_car_brand function - ' . $ex);\n } \n }", "title": "" }, { "docid": "f74d54d9a8beea0abe219455014c6760", "score": "0.5339323", "text": "public function run()\n {\n VehicleType::truncate();\n\n VehicleType::create(['name' => 'SUV']);\n VehicleType::create(['name' => 'Shuttle Van']);\n VehicleType::create(['name' => 'Luxury Car']);\n VehicleType::create(['name' => 'Helicopter']);\n }", "title": "" }, { "docid": "527cce685941edd18d647eed33a1b504", "score": "0.53388965", "text": "public function occuTypeSave($occutype) {\n $date = date_create($occutype->getDate_create());\n $date_new_create = date_format($date, \"Y-m-d H:m:s\");\n //print \"<pre>\";\n //print_r($obj);\n //print \"</pre>\";\n //exit();\n /* * *\n * Add new occutype for customers\n */\n $result = $this->db->insert('occupation', array(\n 'shortname' => $occutype->getShortname(),\n 'longname' => $occutype->getLongname(),\n 'date_create' => $date_new_create));\n //\n return $result;\n }", "title": "" }, { "docid": "0f3bdd111f426651d599201a1fed83c0", "score": "0.533482", "text": "function insert() {\n $this->fid = db_insert('flags')\n ->fields(array(\n 'content_type' => $this->content_type,\n 'name' => $this->name,\n 'title' => $this->title,\n 'global' => $this->global,\n 'options' => $this->get_serialized_options(),\n ))\n ->execute();\n foreach ($this->types as $type) {\n db_insert('flag_types')\n ->fields(array(\n 'fid' => $this->fid,\n 'type' => $type,\n ))\n ->execute();\n }\n }", "title": "" }, { "docid": "ddd3a278722e13a9db6767f6671a9f69", "score": "0.53209156", "text": "function add()\n { \n if(isset($_POST) && count($_POST) > 0) \n {\n $user = $this->ion_auth->user()->row();\n\n if($this->input->post('type') === \"pt\")\n {\n $pt = 1;\n $llab = 0;\n }\n else if($this->input->post('type') === \"llab\")\n {\n $pt = 0;\n $llab = 1;\n }\n else\n {\n $pt = 0;\n $llab = 0;\n }\n\n $event = new Event_model();\n $event->name = $this->input->post('name');\n $event->date = $this->input->post('date');\n $event->pt = $pt;\n $event->llab = $llab;\n $event->created_by_id = $user->id;\n $event->save();\n\n redirect('attendance/admin');\n }\n else\n { \n show_error(\"Something went wrong with adding a new cadet event\");\n }\n }", "title": "" }, { "docid": "7468e888743263bb143af2e3a1ec9489", "score": "0.5314937", "text": "public function store(Request $request)\n {\n $request->validate([\n 'type' => 'required|string',\n 'fee' => 'required|numeric',\n ]);\n\n VehicleType::create([\n 'admin_id' => auth()->user()->id,\n 'type' => $request->input('type'),\n 'fee' => $request->input('fee'),\n ]);\n\n $request->session()->flash('message', ' গাড়ীর ধরণ/শ্রেণী সংরংক্ষণ করা হয়েছে। ');\n $request->session()->flash('alert-type', 'success');\n return redirect()->route('admin.settings.vehicle_types.index');\n }", "title": "" }, { "docid": "03176a181c6b7c549cd27a22f3009fe5", "score": "0.5313848", "text": "static function register(){\n\n $s_type=new Service_type();\n \n //get each field from form\n $service_type=$_POST['service_type'];\n $vehicle_category=$_POST['vehicle_category'];\n $no_of_employees=$_POST['no_of_employees'];\n $duration=$_POST['duration'];\n $lift_no=$_POST['lift_no'];\n $price=$_POST['price'];\n \n \n \n //insert data\n $s_type->insert_record($service_type,$vehicle_category,$no_of_employees,$duration,$lift_no,$price);\n \n $service_notif=TRUE;\n\n header(\"Location: add_service\");\n \n \n\n //ON SUCCESS, send an email to the employee asking him to change his password immediately\n \n \n }", "title": "" }, { "docid": "3062365663b9129cced7e67ec411ccc2", "score": "0.5302895", "text": "function referentiel_set_type_competence($id, $type){\r\nglobal $DB;\r\n $DB->set_field(\"referentiel_competence\", \"type_competence\", $type, array(\"id\" => $id));\r\n}", "title": "" }, { "docid": "c02100d06b90d9c62838f1b2d53f5df1", "score": "0.52915996", "text": "public function addType(Robot $robot): bool\n {\n if(!in_array($robot, $this->types)){\n $this->types[] = $robot;\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "7b169d8076836c47b1d710abc4d380e2", "score": "0.52833205", "text": "public function addField($label,$type=\"pair\",$id='',$params=\"\");", "title": "" }, { "docid": "3ce4b7e14328fc0cf859ea0abbb23128", "score": "0.5276026", "text": "public function addTicketType(Type $type)\n {\n $this->addItem($type->getId(), $type);\n }", "title": "" }, { "docid": "3ce4b7e14328fc0cf859ea0abbb23128", "score": "0.5276026", "text": "public function addTicketType(Type $type)\n {\n $this->addItem($type->getId(), $type);\n }", "title": "" } ]
f058b08d2789128b2f503035cdf3f49b
======================== create Position ======================
[ { "docid": "6257042580f573b0f59468020fd9ae9e", "score": "0.0", "text": "public function store(Request $request)\n {\n\n $this->validate($request,[\n 'name'=> 'required|unique:templates',\n 'image'=> 'required|image|nullable|max:1999'\n ]);\n try{\n if($request->hasFile('image')){\n // Get filename with the extension\n $filenameWithExt = $request->file('image')->getClientOriginalName();\n // Get just filename\n $filename = pathinfo($filenameWithExt, PATHINFO_FILENAME);\n // Get just ext\n $extension = $request->file('image')->getClientOriginalExtension();\n // Filename to store\n $fileNameToStore= $filename.'_'.time().'.'.$extension;\n // Upload Image\n $path = $request->file('image')->storeAs('public/template_images', $fileNameToStore);\n } else {\n $fileNameToStore = 'noimage.jpg';\n }\n\n $data = $request->only('name');\n $positionData = array_merge($data , ['image' => $fileNameToStore]);\n $pakagePosition = Template::create($positionData);\n return response()->json($pakagePosition);\n\n\n\n } catch(\\Illuminate\\Database\\QueryException $e){\n $errorCode = $e->errorInfo[1];\n if($errorCode == '1062'){\n return response()->json(\"this Template is already registered!\" );\n }}\n }", "title": "" } ]
[ { "docid": "7905241961b6f9d794edf14a9cee5790", "score": "0.7428151", "text": "function position(){\r\n return new Position($this->init());\r\n }", "title": "" }, { "docid": "62f6c539efecf2aa8054ba28da51b632", "score": "0.7057541", "text": "public function create_position_table()\n {\n $this->dbforge->add_field(array(\n 'id' => array('type' => 'INT', 'constraint' => 11, 'unsigned' => TRUE, 'auto_increment' => TRUE),\n 'position' => array('type' => 'VARCHAR', 'constraint' => '50'), \n 'description' => array('type' => 'TEXT', 'null' => TRUE),\n 'custom_id' => array('type' => 'INT', 'constraint' => 11),\n 'unique_id' => array('type' => 'INT', 'constraint' => 99, 'unsigned' => TRUE),\n ));\n $this->dbforge->add_key('id', TRUE);\n if(!$this->db->table_exists('position')){\n $this->dbforge->create_table('position');\n }\n }", "title": "" }, { "docid": "04753cd9ba1521eaf8c20f923a86b88a", "score": "0.6942013", "text": "private function setPosition()\n\t{\n\t\t$yCoord = rand(1, 3);\n\t\t$xCoord = rand(1, 3);\n\t\t\t\t\n\t\t$this->arrPosition = array($yCoord, $xCoord);\n\t}", "title": "" }, { "docid": "0b5de715ae156bdc590622a1ca0df525", "score": "0.6819091", "text": "public function create(){\n\n return view('nurul_nabawi.position.create');\n }", "title": "" }, { "docid": "458df78c9a2210a6de2d63a6e98f080a", "score": "0.6804607", "text": "public function getPosition () {}", "title": "" }, { "docid": "9543094a32c09537b6b9f5e95d33ea90", "score": "0.67816794", "text": "public function getPosition();", "title": "" }, { "docid": "911d0c364288ca50fcb3ae65e8de457b", "score": "0.6722055", "text": "public function create()\n {\n //create like some kind of internal transfer that will be reflected on the movements\n }", "title": "" }, { "docid": "ec23c09694a69e79a57140d59e904a43", "score": "0.66351557", "text": "public function run()\n {\n Position::create([\n \n 'position'=>'HR',\n 'position_level'=>'1',\n ]);\n }", "title": "" }, { "docid": "8ebb1910b423b2c1ae9e124a1fda03e5", "score": "0.66250265", "text": "public function create()\n {\n return view('admin.positions.create-position');\n }", "title": "" }, { "docid": "863e5e82094c8dca33f8c836dd44cf52", "score": "0.64799243", "text": "public function createAction()\n {\n $position = new Position();\n $request = $this->getRequest();\n $form = $this->createForm(new PositionType(), $position);\n $form->submit($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $em->persist($position);\n $em->flush();\n\n return $this->redirect($this->generateUrl('position'));\n \n }\n\n return array(\n 'position' => $position,\n 'form' => $form->createView()\n );\n }", "title": "" }, { "docid": "063275cf775ec6d3831b13f952395d5a", "score": "0.6439911", "text": "public function create()\n {\n return view('admin.position.create');\n }", "title": "" }, { "docid": "063275cf775ec6d3831b13f952395d5a", "score": "0.6439911", "text": "public function create()\n {\n return view('admin.position.create');\n }", "title": "" }, { "docid": "adae5062ecf8eb35d668a222f320f164", "score": "0.63590705", "text": "public function position()\n\t\t{\t\n\t\t\t$fromDB \t\t\t= $this->Position_model->checkPosCode();\n\t\t\t//Example DIV-0003, angka 3 adalah awal angka, dan 4 jumlah angka yang diambil\n\t\t\t$index \t\t\t\t= substr($fromDB, 4, 4);\n\t\t\t$position_code_now \t= $index + 1;\n\t\t\t$data \t\t\t\t= array('position_code'=>$position_code_now);\n\n\t\t\t$data['title'] \t\t\t= 'Position';\n\t\t\t$data['position'] \t\t= $this->Position_model->getAllPositionData();\n\t\t\t$data['department'] \t= $this->Position_model->getAllDepartmentData();\n\t\t\t// $data['division'] \t\t= $this->Position_model->get_division($department_code);\n\t\t\t$this->render_backend('page/position/position_list', $data);\n\t\t}", "title": "" }, { "docid": "c388a95a8660e9f9357030b0b071e434", "score": "0.6321112", "text": "public function create()\n {\n abort_if(Gate::denies('user_access'), Response::HTTP_FORBIDDEN, '403 Forbidden');\n return view('admin.position.create');\n }", "title": "" }, { "docid": "7f5feda8d07e8aca5575eb1b0d65a8c9", "score": "0.6303889", "text": "public function create() : View\n {\n return view('pages.positions.create');\n }", "title": "" }, { "docid": "1776265cc0d2a9629207298640841c6a", "score": "0.6303765", "text": "function position($position=\"left\"){\r\n\t\t$this->_position = $position;\r\n\t\treturn $this;\r\n\t}", "title": "" }, { "docid": "fb8e5696959e3e7aeece6355a78c1ac0", "score": "0.62957704", "text": "public function create()\n {\n $position=new Position;\n $title= __(\"Añadir Cargo\");\n $textButton= __(\"Crear\");\n $route=route(\"positions.store\");\n return view(\"positions.create\", compact(\"title\",\n \"textButton\", \"route\", \"position\"\n ));\n }", "title": "" }, { "docid": "65d5b16d45e64c3cc752480b9d90844b", "score": "0.6264456", "text": "public function buildAdvancePosition(): Position\n {\n // Designated position will be similar to this one\n $position = clone $this;\n\n // Position advance shift according to facing\n if ($position->facing == 'E') {\n $position->x++;\n } elseif ($position->facing == 'W') {\n $position->x--;\n } elseif ($position->facing == 'N') {\n $position->y--;\n } elseif ($this->facing == 'S') {\n $position->y++;\n }\n\n return $position;\n }", "title": "" }, { "docid": "298adc5003d75c50aea58af6c3b8a69d", "score": "0.6223171", "text": "private function make_POS() {\r\n\t\t$qf = $this->db->query_factory();\r\n\t\r\n\t\t$qf->set_InputFactory($this->input);\r\n\t\t$query = $qf->insert( DB_GRENES_POS );\r\n\t\r\n\t\t$this->db->query($query);\r\n\t\r\n\t\tprint $this->db->error(__FUNCTION__);\r\n\t}", "title": "" }, { "docid": "deaec1c27992904afac22540133e8b63", "score": "0.61591345", "text": "protected function createState() {\n\t\t++$this->position;\n\t}", "title": "" }, { "docid": "2ebaa76fea2ca8da48bfb67a1fa353f1", "score": "0.6113107", "text": "public function run()\n {\n Position::create(['name' => 'Goal Keeper']);\n Position::create(['name' => 'Striker']);\n Position::create(['name' => 'Defender']);\n Position::create(['name' => 'MidFielder']);\n }", "title": "" }, { "docid": "9c8168bc2f410e124afd7b08907681f6", "score": "0.60911137", "text": "public function __construct(\\App\\Position $position)\n {\n $this->position = $position;\n }", "title": "" }, { "docid": "3a20e52186364647e83f9dbe824fdfe6", "score": "0.60349476", "text": "public function testPosition()\n {\n $dimension = DimensionTest::generateObject();\n\n $ref1 = strtolower(Core_Tools::generateRef());\n $ref2 = strtolower(Core_Tools::generateRef());\n\n $o1 = new Member($dimension, $ref1, new TranslatedString('A', 'fr'));\n $o1->save();\n $o2 = new Member($dimension, $ref2, new TranslatedString('B', 'fr'));\n $o2->save();\n\n $this->assertEquals(1, $o1->getPosition());\n $this->assertEquals(2, $o2->getPosition());\n // setPosition\n $o2->setPosition(1);\n $o2->save();\n $this->entityManager->flush();\n $this->assertEquals(2, $o1->getPosition());\n $this->assertEquals(1, $o2->getPosition());\n // up\n $o1->goUp();\n $o1->save();\n $this->entityManager->flush();\n $this->assertEquals(1, $o1->getPosition());\n $this->assertEquals(2, $o2->getPosition());\n // down\n $o1->goDown();\n $o1->save();\n $this->entityManager->flush();\n $this->assertEquals(2, $o1->getPosition());\n $this->assertEquals(1, $o2->getPosition());\n // Delete\n $o2->delete();\n $this->assertEquals(1, $o1->getPosition());\n\n DimensionTest::deleteObject($dimension);\n $this->entityManager->flush();\n }", "title": "" }, { "docid": "e48dd9d6aec73950b8d11c5f47236f6d", "score": "0.599453", "text": "public function create() {\n\n $viewData = $this->getDefaultFormViewData();\n $viewData[\"position\"] = new Position();\n $viewData[\"mode\"] = \"create\";\n\n return view(\"pages.positions.form\", $viewData);\n }", "title": "" }, { "docid": "cb8abd43e7b232643bc41f49730a9e59", "score": "0.59748906", "text": "public function create()\n {\n return view('pearlskin::admin.positions.create');\n }", "title": "" }, { "docid": "28dee5cc6e1ed6d0511d83483f15a356", "score": "0.59545994", "text": "function makePositionsRelative($object, $pos_x = 0, $pos_y = 0) {\n\t\t$newx = 0;\n\t\t$newy = 0;\n\t\tdebug(\"Positioning \\\"\".$object[\"id\"].\"\\\", parent coords: x=\".$pos_x.\" and y=\".$pos_y);\n\t\tdebug(\"Original positions: x=\".$object[\"position_x\"].\" and y=\".$object[\"position_y\"]);\n\t\tif(isPixelPosition($object[\"position_x\"]) && isPixelPosition($object[\"position_y\"])) {\n\t\t\t$extract_x = extractPosition($object[\"id\"], $object[\"position_x\"]);\n\t\t\t$object[\"position_x\"] = sprintf(\"%dpx\", $extract_x - $pos_x);\n\t\t\t$extract_y = extractPosition($object[\"id\"], $object[\"position_y\"]);\n\t\t\t$object[\"position_y\"] = sprintf(\"%dpx\", $extract_y - $pos_y);\n\t\t\t$newx = $extract_x;\n\t\t\t$newy = $extract_y;\n\t\t}\n\t\tif(count($object[\"children\"]) > 0) {\n\t\t\tforeach($object[\"children\"] as $child => $childobj) {\n\t\t\t\t$object[\"children\"][$child] = makePositionsRelative($childobj, $newx, $newy);\n\t\t\t}\n\t\t}\n\t\tdebug(\"New positions: x=\".$object[\"position_x\"].\" and y=\".$object[\"position_y\"]);\n\t\treturn $object;\n\t}", "title": "" }, { "docid": "1d3ab638f2bf406a065248e1728df525", "score": "0.5950921", "text": "public function setPosition(string $position){$this->position = $position;return $this;}", "title": "" }, { "docid": "5850ed384443f5e61768d9d37f418f11", "score": "0.5950338", "text": "public function canBeCreatedFromPoints(): void\n {\n $wgs84 = new Wgs84Point(2.5, 49.5);\n $lambert72 = new Lambert72Point(14637.25, 22608.21);\n\n $position = new Position($wgs84, $lambert72);\n\n $this->assertSame($wgs84, $position->wgs84());\n $this->assertSame($lambert72, $position->lambert72());\n }", "title": "" }, { "docid": "c3a880e4aea91f4f2f49b89629ba681b", "score": "0.5919718", "text": "function set_position($playerposition) {\n\t\t$this->position = $playerposition;\n\t}", "title": "" }, { "docid": "d61fbc5c0a3dfb6d7ed485b88d157847", "score": "0.5886885", "text": "function create(){\r\n\t $query = \"INSERT INTO\" . $this->table_name . \" \r\n\t SET av_pos_x=:av_pos_x, av_pos_y=:av_pos_y, av_pts_vie=:av_pts_vie\";\r\n\r\n\t // prepare query\r\n \t\t$stmt = $this->conn->prepare($query);\r\n\r\n\t // sanitize\r\n\t $this->av_pos_x=htmlspecialchars(strip_tags($this->av_pos_x));\r\n\t $this->av_pos_y=htmlspecialchars(strip_tags($this->av_pos_y));\r\n\t $this->av_pts_vie=htmlspecialchars(strip_tags($this->av_pts_vie));\r\n\r\n\t // bind values\r\n\t $stmt->bindParam(\":av_pos_x\", $this->av_pos_x);\r\n\t $stmt->bindParam(\":av_pos_y\", $this->av_pos_y);\r\n\t $stmt->bindParam(\":av_pts_vie\", $this->av_pts_vie);\r\n\r\n\t // execute query\r\n\t if($stmt->execute()){\r\n\t return true;\r\n\t }\t \r\n\t return false;\t \r\n\t}", "title": "" }, { "docid": "9bc80a01775d2dcd24f42c31b16fa6d6", "score": "0.5884353", "text": "function get_position() {\n\t\treturn $this->position;\n\t}", "title": "" }, { "docid": "9aba29211d55cf0a10d35cfdade30615", "score": "0.58084273", "text": "public function run()\n {\n factory(JobPosition::class, 100)->create();\n }", "title": "" }, { "docid": "fc717fb707b35f3c19e6abfe63abad69", "score": "0.5761231", "text": "public function getPosition()\n {\n return 50;\n }", "title": "" }, { "docid": "55ae34af29cd3d4ae70d23eb0922035d", "score": "0.5748563", "text": "public function setPosition($value)\n {\n return $this->set('Position', $value);\n }", "title": "" }, { "docid": "4299be412b0cf01d9d847b16bef35945", "score": "0.5743247", "text": "public function set_position($position) {\n $this->position = $position;\n }", "title": "" }, { "docid": "a8c106791b6049f7d38fb535760c2ad9", "score": "0.5727515", "text": "public function __construct() {\n $this->_position = 0;\n }", "title": "" }, { "docid": "2f101e2a9df6d4fba0b180d864f8d886", "score": "0.56738067", "text": "public function run()\n {\n $positions = [\n 'GK',\n 'LB',\n 'LWB',\n 'CB',\n 'RWB',\n 'RB',\n 'RW',\n 'RM',\n 'CAM',\n 'CDM',\n 'CM',\n 'LW',\n 'LM',\n 'LF',\n 'RF',\n 'CF',\n 'ST'\n ];\n\n foreach ($positions as $position){\n Position::query()->create([\n 'name' => $position\n ]);\n }\n }", "title": "" }, { "docid": "ada95b61fb6c50a3882810fb15ae6db8", "score": "0.5664825", "text": "public function setPosition($val)\n {\n $this->_propDict[\"position\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "ada95b61fb6c50a3882810fb15ae6db8", "score": "0.5664825", "text": "public function setPosition($val)\n {\n $this->_propDict[\"position\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "f59593663315e51f743683f39e0e3d8f", "score": "0.5643434", "text": "public function buildBackPosition(): Position\n {\n // Designated position will be similar to this one\n $position = clone $this;\n\n // Position back shift according to facing\n if ($position->facing == 'E') {\n $position->x--;\n } elseif ($position->facing == 'W') {\n $position->x++;\n } elseif ($position->facing == 'N') {\n $position->y++;\n } elseif ($this->facing == 'S') {\n $position->y--;\n }\n\n return $position;\n }", "title": "" }, { "docid": "925debabfd05791f1916fb5850ad6984", "score": "0.56419873", "text": "public function getPosition() {\n return Point::createInstance($this->property & 0xFFFF, ($this->property & 0xFFFF0000) >> 16);\n }", "title": "" }, { "docid": "8c13a91d8d6aa7509fe86d79da37d614", "score": "0.5612534", "text": "public static function get_position() {\n\treturn array(\n\t 'left-top' => __('Left Top', 'themify'),\n\t 'left-center' => __('Left Center', 'themify'),\n\t 'left-bottom' => __('Left Bottom', 'themify'),\n\t 'right-top' => __('Right top', 'themify'),\n\t 'right-center' => __('Right Center', 'themify'),\n\t 'right-bottom' => __('Right Bottom', 'themify'),\n\t 'center-top' => __('Center Top', 'themify'),\n\t 'center-center' => __('Center Center', 'themify'),\n\t 'center-bottom' => __('Center Bottom', 'themify')\n\t);\n }", "title": "" }, { "docid": "f52612330d064e540709df9380635567", "score": "0.55751574", "text": "public function setPosition($value)\r\n {\r\n if($this->position != $value)\r\n {\r\n $this->position = $value;\r\n $this->shape->setCustomPosition(false);\r\n $this->invalidate();\r\n }\r\n }", "title": "" }, { "docid": "200e8903e6333a90dfdabb4d523d0b41", "score": "0.5565784", "text": "public function getPosition(): int;", "title": "" }, { "docid": "83e435daaf13749c64925c9e61d3dbf1", "score": "0.55618054", "text": "public function create()\n\t{\n\t\t// Fetch all available divisions.\n\t\t// \n\t\t$divisions = $this->divisions->all();\n\n\t\t// Fetch all available ship to locations.\n\t\t// \n\t\t$locations = $this->locations->all();\n\n\t\t// Assign content to the layout.\n\t\t// \n\t\t$this->layout->content = View::make('pos.create');\n\n\t\t// Nest a form inside of the content.\n\t\t// \n\t\t$this->layout->content->nest('form', 'pos.create.form', compact('divisions', 'locations'));\n\t}", "title": "" }, { "docid": "374ac01fa321e9886a5c56cee513c83e", "score": "0.556072", "text": "private function registerPosition() {\n\t\t\ttry {\n\t\t\t\techo \"REGISTERING POSITION\";\n\n\t\t\t\t$entryData = array(\n\t\t 'row-column' => \"testCategory\"\n\t\t , 'title' => \"testTitle\"\n\t\t , 'article' => \"testArticle\"\n\t\t , 'when' => time()\n\t\t );\n\n\n\t\t\t$this->data['responseData'] = $entryData;\n\n\n\t\t\t\t// $number_of_parameter = ($this->request->parameters);\n\t\t\t\t//\n\t\t\t\t// if($number_of_parameters != 3) {\n\t\t\t\t//\n\t\t\t\t// \t$this->data['title'] = \"Position Not Registered\";\n\t\t\t\t// \t$this->response->setJsonContent(array('success' => false, 'data' => $this->data));\n\t\t\t\t// \treturn $this->response; //Supply response\n\t\t\t\t// }\n\n\t\t\t\t// $this->data['title'] = \"Registered Position\";\n\t\t\t\t// $this->data['section'] = $this->request->parameters[0];\n\t\t\t\t// $this->data['row'] = $this->request->parameters[1];\n\t\t\t\t// $this->data['column'] = $this->request->parameters[2];\n\t\t\t\t// $this->response->setJsonContent(array('success' => true, 'data' => $this->data));\n\t\t\t\t//\n\t\t\t\t// This is our new stuff\n\t\t $context = new ZMQContext();\n\t\t $socket = $context->getSocket(ZMQ::SOCKET_PUSH, 'my pusher');\n\t\t $socket->connect(\"tcp://127.0.0.1:5555\");\n\n\t\t $socket->send(json_encode($entryData));\n\n\t\t\t\treturn $this->response; //Supply response\n\n\t\t\t} catch (Exception $e) {\n\t\t\t\t$this->data['error'] = $e->getMessage();\n\t\t\t\t$this->response->setJsonContent(array('success' => false, 'data' => $this->data));\n\t\t\t}\n\n }", "title": "" }, { "docid": "d90d059f59eeb9fad10e7748ba609002", "score": "0.55537885", "text": "protected function getSetupPosition()\n {\n\t$pos = $this->getStartPosition();\n\t$AB = array();\n\t$AW = array();\n\tfor ($ypos = 0; $ypos < $this->height; $ypos++) {\n\t for ($xpos = 0; $xpos < $this->width; $xpos++) {\n $curchar = $pos[$ypos][$xpos];\n\t $position = $this->toSGFCoords($xpos, $ypos);\n\t if ($curchar == 'X')\n\t\t $AB[] = \"[$position]\";\n\t elseif ($curchar == 'O')\n\t\t $AW[] = \"[$position]\";\n\t }\n\t}\n\t$ret = '';\n\tif (count($AB))\n\t $ret .= \"\\nAB\" . join('', $AB);\n\tif (count($AW))\n\t $ret .= \"\\nAW\" . join('', $AW);\n\treturn $ret;\n }", "title": "" }, { "docid": "2673e516ee4a10878b8eee1153eb677e", "score": "0.5548409", "text": "public function position($position)\n {\n return $this->setProperty('position', $position);\n }", "title": "" }, { "docid": "7cf1522d4e0a5b227d99341c36a151a8", "score": "0.55443364", "text": "public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setRouteid($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setProviderid($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setProvidername($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setNamezh($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setNameen($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setPathattributeid($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setPathattributename($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setPathattributeename($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setBuildperiod($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setDeparturezh($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setDepartureen($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setDestinationzh($value);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$this->setDestinationen($value);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\t$this->setRealsequence($value);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\t$this->setDistance($value);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\t$this->setGofirstbustime($value);\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\t$this->setBackfirstbustime($value);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\t$this->setGolastbustime($value);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\t$this->setBacklastbustime($value);\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\t$this->setOffpeakheadway($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "title": "" }, { "docid": "d8ce573139ff5a108b0d4f7addebc159", "score": "0.5538664", "text": "public function positionPrint(){\r\n\t\techo \"Player position: X=\".(($this->x+1)/2).\" Y=\".(($this->y+1)/2).\"<br><br>\\n\";\r\n\t}", "title": "" }, { "docid": "ae810daf6d394a844d34fd02dd943aa2", "score": "0.553725", "text": "public function resize_from_position() {\n\t\t$size = $this->editor->get_size();\n\t\t\n\t\t$width = $this->params['w'];\n\t\t$height = $this->params['h'];\n\t\t\n\t\t// check and set sizes\n\t\tif(!$width && !$height) {\n\t\t\t$width = $size['width'];\n\t\t\t$height = $size['height'];\n\t\t}\n\t\t\n\t\t// generate new width or height if not provided\n\t\telse if($width && !$height) {\n\t\t\t$height = floor ($size['height'] * ($width / $size['width']));\n\t\t}\n\t\telseif(!$width && $height) {\n\t\t\t$width = floor ($size['width'] * ($height / $size['height']));\n\t\t}\n\t\t\n\t\t// timthumb like management\n\t\t$this->editor->ewpt_tt_management($width, $height, $this->params['rs'], $this->params['a'], $this->mime, $this->params['cc']);\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "9544392a9d82546296da16805aa6db37", "score": "0.5523792", "text": "public function createPoint($x, $y);", "title": "" }, { "docid": "c2dc5db938d850492288acbc67ee2e39", "score": "0.5519953", "text": "public function create()\n {\n $positions = Position::all();\n return view('liable.create', compact('positions'));\n }", "title": "" }, { "docid": "13894eb12c9d5e882a8beb0f75b36a56", "score": "0.5519768", "text": "public function constructor($object, int $position): string;", "title": "" }, { "docid": "fd28e80cd6c8f5c76de5cddee034d2e0", "score": "0.5519077", "text": "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setPenggunaId($value);\n break;\n case 1:\n $this->setSekolahId($value);\n break;\n case 2:\n $this->setLembagaId($value);\n break;\n case 3:\n $this->setYayasanId($value);\n break;\n case 4:\n $this->setLaId($value);\n break;\n case 5:\n $this->setDudiId($value);\n break;\n case 6:\n $this->setKodeLembSert($value);\n break;\n case 7:\n $this->setPesertaDidikId($value);\n break;\n case 8:\n $this->setUsername($value);\n break;\n case 9:\n $this->setABot($value);\n break;\n case 10:\n $this->setNama($value);\n break;\n case 11:\n $this->setTempatLahir($value);\n break;\n case 12:\n $this->setTglLahir($value);\n break;\n case 13:\n $this->setJenisKelamin($value);\n break;\n case 14:\n $this->setNipNim($value);\n break;\n case 15:\n $this->setJabatanLembaga($value);\n break;\n case 16:\n $this->setAlamat($value);\n break;\n case 17:\n $this->setKodeWilayah($value);\n break;\n case 18:\n $this->setNoTelepon($value);\n break;\n case 19:\n $this->setNoHp($value);\n break;\n case 20:\n $this->setApprovalPengguna($value);\n break;\n case 21:\n $this->setAktif($value);\n break;\n case 22:\n $this->setPassword($value);\n break;\n case 23:\n $this->setPasswordLama($value);\n break;\n case 24:\n $this->setTglGantiPwd($value);\n break;\n case 25:\n $this->setIdSdmPengguna($value);\n break;\n case 26:\n $this->setIdPdPengguna($value);\n break;\n case 27:\n $this->setTokenReg($value);\n break;\n case 28:\n $this->setJabatan($value);\n break;\n case 29:\n $this->setPtkId($value);\n break;\n case 30:\n $this->setCreateDate($value);\n break;\n case 31:\n $this->setLastUpdate($value);\n break;\n case 32:\n $this->setSoftDelete($value);\n break;\n case 33:\n $this->setLastSync($value);\n break;\n case 34:\n $this->setUpdaterId($value);\n break;\n } // switch()\n }", "title": "" }, { "docid": "469e5f43508b9d0a9260e912fd0b83da", "score": "0.5513634", "text": "public function moveToPosition($position);", "title": "" }, { "docid": "fc5dd17cd4e2d541ae21e5339a7a3f6b", "score": "0.5493203", "text": "public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setIdTipodireccion($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setTipovia($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setDomicilio($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setNumero($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setEscalera($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setPiso($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setLetra($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setPais($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setProvincia($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setMunicipio($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setCp($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setIdUsuario($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "title": "" }, { "docid": "1b5c793c4700c413aae1822087ca6606", "score": "0.5491399", "text": "public function position() {\n return $this->position;\n }", "title": "" }, { "docid": "f6341dd690d1fbc58282c299e39a96b9", "score": "0.54631376", "text": "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setIdEncuesta($value);\n break;\n case 1:\n $this->setIdUsuario($value);\n break;\n case 2:\n $this->setAgromandosu($value);\n break;\n case 3:\n $this->setAgromandoin($value);\n break;\n case 4:\n $this->setAgrosupervisor($value);\n break;\n case 5:\n $this->setAgrotecnico($value);\n break;\n case 6:\n $this->setAgrootro($value);\n break;\n case 7:\n $this->setIgemandosu($value);\n break;\n case 8:\n $this->setIgemandoin($value);\n break;\n case 9:\n $this->setIgesupervisor($value);\n break;\n case 10:\n $this->setIgetecnico($value);\n break;\n case 11:\n $this->setIgeotro($value);\n break;\n case 12:\n $this->setBiomandosu($value);\n break;\n case 13:\n $this->setBiomandoin($value);\n break;\n case 14:\n $this->setBiosupervisor($value);\n break;\n case 15:\n $this->setBiotecnico($value);\n break;\n case 16:\n $this->setBiootro($value);\n break;\n case 17:\n $this->setAdminmandosu($value);\n break;\n case 18:\n $this->setAdminmandoin($value);\n break;\n case 19:\n $this->setAdminsupervisor($value);\n break;\n case 20:\n $this->setAdmintecnico($value);\n break;\n case 21:\n $this->setAdminotro($value);\n break;\n case 22:\n $this->setInfomandosu($value);\n break;\n case 23:\n $this->setInfomandoin($value);\n break;\n case 24:\n $this->setInfosupervisor($value);\n break;\n case 25:\n $this->setInfotecnico($value);\n break;\n case 26:\n $this->setInfootro($value);\n break;\n } // switch()\n }", "title": "" }, { "docid": "a101814650f373e9818c42a5f09a1c5b", "score": "0.54617214", "text": "public function Get_Services_Position();", "title": "" }, { "docid": "f5cfaafe50a29e511b2c67f5cc43d64f", "score": "0.54502606", "text": "public function __construct()\n\t{\n\t\t$this->arrSize = array(1);\n\t\tself::setPosition();\n\t}", "title": "" }, { "docid": "42a9dcca128824ecec4d6442fe94a279", "score": "0.5448425", "text": "protected function initPos() {\n $gameSet = $this->bSet;\n\n $fox = -1;\n\n $gamePos = array();\n foreach($gameSet as $val) {\n $pos = $this->xy2num($val['x'], $val['y']);\n $gamePos[] = $pos;\n\n if($val['order'] == 5) {\n $fox = $pos;\n }\n }\n\n sort($gamePos);\n $gamePos = array($gamePos, array_search($fox, $gamePos));\n\n $this->bPos = $gamePos;\n }", "title": "" }, { "docid": "3e58f15be33843936f3c8d75670af62a", "score": "0.544837", "text": "function execute(Position $position): Position;", "title": "" }, { "docid": "b3e84c2fed0675a11970d6704bc2f38e", "score": "0.5438279", "text": "public function getPosition() {\n\t\tif (isset($this->_data['latitude']) && isset($this->_data['longitude'])) {\n\t\t\treturn new Position($this->_data['latitude'], $this->_data['longitude']);\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f15b9078d93c2f3da02d651377af9d2e", "score": "0.54345053", "text": "public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setMissionId($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setLegNumber($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setFromAirportId($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setToAirportId($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setReverseFrom($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setPassOnBoard($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setBaggageWeight($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setBaggageDesc($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setCoordinatorId($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setPublicCNote($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setPrivateCNote($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setCopilotWanted($value);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$this->setPilotId($value);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\t$this->setCopilotId($value);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\t$this->setMissAssisId($value);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\t$this->setBackupPilotId($value);\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\t$this->setBackupCopilotId($value);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\t$this->setBackupMissAssisId($value);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\t$this->setCancelled($value);\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\t$this->setCancelComment($value);\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\t$this->setWaiverReceived($value);\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\t$this->setWebCoordinated($value);\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\t$this->setMissionReportId($value);\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\t$this->setPilotAircraftId($value);\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\t$this->setFboId($value);\n\t\t\t\tbreak;\n\t\t\tcase 26:\n\t\t\t\t$this->setFboAddressNew($value);\n\t\t\t\tbreak;\n\t\t\tcase 27:\n\t\t\t\t$this->setFboDestId($value);\n\t\t\t\tbreak;\n\t\t\tcase 28:\n\t\t\t\t$this->setShareAfaOrgId($value);\n\t\t\t\tbreak;\n\t\t\tcase 29:\n\t\t\t\t$this->setTransportation($value);\n\t\t\t\tbreak;\n\t\t\tcase 30:\n\t\t\t\t$this->setGroundOrigin($value);\n\t\t\t\tbreak;\n\t\t\tcase 31:\n\t\t\t\t$this->setGroundDestination($value);\n\t\t\t\tbreak;\n\t\t\tcase 32:\n\t\t\t\t$this->setFlightTime($value);\n\t\t\t\tbreak;\n\t\t\tcase 33:\n\t\t\t\t$this->setAirlineId($value);\n\t\t\t\tbreak;\n\t\t\tcase 34:\n\t\t\t\t$this->setFundId($value);\n\t\t\t\tbreak;\n\t\t\tcase 35:\n\t\t\t\t$this->setConfirmCode($value);\n\t\t\t\tbreak;\n\t\t\tcase 36:\n\t\t\t\t$this->setFlightCost($value);\n\t\t\t\tbreak;\n\t\t\tcase 37:\n\t\t\t\t$this->setCommOrigin($value);\n\t\t\t\tbreak;\n\t\t\tcase 38:\n\t\t\t\t$this->setCommDest($value);\n\t\t\t\tbreak;\n\t\t\tcase 39:\n\t\t\t\t$this->setFlightNumber($value);\n\t\t\t\tbreak;\n\t\t\tcase 40:\n\t\t\t\t$this->setDeparture($value);\n\t\t\t\tbreak;\n\t\t\tcase 41:\n\t\t\t\t$this->setArrival($value);\n\t\t\t\tbreak;\n\t\t\tcase 42:\n\t\t\t\t$this->setPrefix($value);\n\t\t\t\tbreak;\n\t\t\tcase 43:\n\t\t\t\t$this->setCancelMissionLeg($value);\n\t\t\t\tbreak;\n\t\t\tcase 44:\n\t\t\t\t$this->setCopiedMissionLeg($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "title": "" }, { "docid": "9261d8d50b4e75680dbe557730462379", "score": "0.5413298", "text": "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setSekolahId($value);\n break;\n case 1:\n $this->setSemesterId($value);\n break;\n case 2:\n $this->setWaktuPenyelenggaraanId($value);\n break;\n case 3:\n $this->setKontinuitasListrik($value);\n break;\n case 4:\n $this->setJarakListrik($value);\n break;\n case 5:\n $this->setWilayahTerpencil($value);\n break;\n case 6:\n $this->setWilayahPerbatasan($value);\n break;\n case 7:\n $this->setWilayahTransmigrasi($value);\n break;\n case 8:\n $this->setWilayahAdatTerpencil($value);\n break;\n case 9:\n $this->setWilayahBencanaAlam($value);\n break;\n case 10:\n $this->setWilayahBencanaSosial($value);\n break;\n case 11:\n $this->setPartisipasiBos($value);\n break;\n case 12:\n $this->setSertifikasiIsoId($value);\n break;\n case 13:\n $this->setSumberListrikId($value);\n break;\n case 14:\n $this->setDayaListrik($value);\n break;\n case 15:\n $this->setAksesInternetId($value);\n break;\n case 16:\n $this->setAksesInternet2Id($value);\n break;\n case 17:\n $this->setBlobId($value);\n break;\n case 18:\n $this->setCreateDate($value);\n break;\n case 19:\n $this->setLastUpdate($value);\n break;\n case 20:\n $this->setSoftDelete($value);\n break;\n case 21:\n $this->setLastSync($value);\n break;\n case 22:\n $this->setUpdaterId($value);\n break;\n } // switch()\n }", "title": "" }, { "docid": "fc8f052ca53d30fd931e1ea7d597f1a0", "score": "0.5410294", "text": "function mts_new_default_review_location( $position ) {\n $position = 'top';\n return $position;\n}", "title": "" }, { "docid": "e13da53bf29bebbb58b664ba58e7d9e7", "score": "0.5406199", "text": "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setPengawasTerdaftarId($value);\n break;\n case 1:\n $this->setLembagaId($value);\n break;\n case 2:\n $this->setPtkId($value);\n break;\n case 3:\n $this->setTahunAjaranId($value);\n break;\n case 4:\n $this->setNomorSuratTugas($value);\n break;\n case 5:\n $this->setTanggalSuratTugas($value);\n break;\n case 6:\n $this->setTmtTugas($value);\n break;\n case 7:\n $this->setMataPelajaranId($value);\n break;\n case 8:\n $this->setBidangStudiId($value);\n break;\n case 9:\n $this->setJenjangKepengawasanId($value);\n break;\n case 10:\n $this->setAktifBulan01($value);\n break;\n case 11:\n $this->setAktifBulan02($value);\n break;\n case 12:\n $this->setAktifBulan03($value);\n break;\n case 13:\n $this->setAktifBulan04($value);\n break;\n case 14:\n $this->setAktifBulan05($value);\n break;\n case 15:\n $this->setAktifBulan06($value);\n break;\n case 16:\n $this->setAktifBulan07($value);\n break;\n case 17:\n $this->setAktifBulan08($value);\n break;\n case 18:\n $this->setAktifBulan09($value);\n break;\n case 19:\n $this->setAktifBulan10($value);\n break;\n case 20:\n $this->setAktifBulan11($value);\n break;\n case 21:\n $this->setAktifBulan12($value);\n break;\n case 22:\n $this->setJenisKeluarId($value);\n break;\n case 23:\n $this->setTglPengawasKeluar($value);\n break;\n case 24:\n $this->setCreateDate($value);\n break;\n case 25:\n $this->setLastUpdate($value);\n break;\n case 26:\n $this->setSoftDelete($value);\n break;\n case 27:\n $this->setLastSync($value);\n break;\n case 28:\n $this->setUpdaterId($value);\n break;\n } // switch()\n }", "title": "" }, { "docid": "224c665fbd965984f3101dd47770b769", "score": "0.5404279", "text": "public function register_help_position()\n\t{\n\t\tif ( taxonomy_exists( $this->position_taxonomy ) )\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$args = array (\n\t\t\t'hierarchical' => TRUE\n\t\t\t, 'label' => __( 'Position', PLUGIN_TEXTDOMAIN )\n\t\t\t, 'public' => FALSE\n\t\t\t, 'show_ui' => TRUE\n\t\t);\n\n\t\tregister_taxonomy(\n\t\t\t$this->position_taxonomy\n\t\t\t, array ( $this->post_type )\n\t\t\t, $args\n\t\t);\n\n\t\t// @todo extend\n\t\t// @todo I18n\n\t\t// @todo update automatically when new screens are registered\n\t\t// @todo better labels\n\t\t$predefined_positions = array (\n\t\t\t'dashboard' => array(\n\t\t\t\t'name' => __( 'Dashboard' )\n\t\t\t\t, 'description' => __( 'WordPress Dashboard with informations about your blog.', PLUGIN_TEXTDOMAIN )\n\t\t\t)\n\t\t\t, 'update-core' => array()\n\t\t\t, 'edit' => array()\n\t\t\t, 'post' => array()\n\t\t\t, 'edit-tags' => array()\n\t\t\t, 'plugins' => array()\n\t\t\t, 'plugin-install' => array()\n\t\t\t, 'plugin-editor' => array()\n\t\t);\n\t\t\n\t\tforeach ( $predefined_positions as $pos => $args )\n\t\t{\n\t\t\tif ( ! term_exists( $pos, $this->position_taxonomy ) )\n\t\t\t{\n\t\t\t\tif ( !isset($args['name']) )\n\t\t\t\t\t$args['name'] = $pos;\n\t\t\t\tif ( ( !isset($args['description']) ) )\n\t\t\t\t\t$args['description'] = '';\n\t\t\t\t\n\t\t\t\twp_insert_term( \n\t\t\t\t\t$args['name']\n\t\t\t\t\t, $this->position_taxonomy\n\t\t\t\t\t, array( \n\t\t\t\t\t\t'description' => $args['description']\n\t\t\t\t\t\t, 'slug' => $pos\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9898b57882733514af1debf51ba290f2", "score": "0.54014325", "text": "function pointLocation() {\n }", "title": "" }, { "docid": "0be3da1b9ba7f6defbb7a21387c606dd", "score": "0.53969777", "text": "function get_image_coord($pos, $sourcefile_width, $sourcefile_height, $insertfile_width, $insertfile_height)\n{\n\t$dest = array(\n\t\t'x' => 0,\n\t\t'y' => 0\n\t);\n\n\tswitch($pos)\n\t{\n\t\tcase 1: // top left\n\t\t\t$dest['x'] = 0;\n\t\t\t$dest['y'] = 0;\n\t\t\tbreak;\n\n\t\tcase 2: // top middle\n\t\t\t$dest['x'] = (($sourcefile_width - $insertfile_width) / 2);\n\t\t\t$dest['y'] = 0;\n\t\t\tbreak;\n\n\t\tcase 3: // top right\n\t\t\t$dest['x'] = $sourcefile_width - $insertfile_width;\n\t\t\t$dest['y'] = 0;\n\t\t\tbreak;\n\n\t\tcase 4: // middle left\n\t\t\t$dest['x'] = 0;\n\t\t\t$dest['y'] = ($sourcefile_height / 2) - ($insertfile_height / 2);\n\t\t\tbreak;\n\n\t\tcase 5: // middle\n\t\t\t$dest['x'] = ($sourcefile_width / 2) - ($insertfile_width / 2);\n\t\t\t$dest['y'] = ($sourcefile_height / 2) - ($insertfile_height / 2);\n\t\t\tbreak;\n\n\t\tcase 6: // middle right\n\t\t\t$dest['x'] = $sourcefile_width - $insertfile_width;\n\t\t\t$dest['y'] = ($sourcefile_height / 2) - ($insertfile_height / 2);\n\t\t\tbreak;\n\n\t\tcase 7: // bottom left\n\t\t\t$dest['x'] = 0;\n\t\t\t$dest['y'] = $sourcefile_height - $insertfile_height;\n\t\t\tbreak;\n\n\t\tcase 8: // bottom middle\n\t\t\t$dest['x'] = (($sourcefile_width - $insertfile_width) / 2);\n\t\t\t$dest['y'] = $sourcefile_height - $insertfile_height;\n\t\t\tbreak;\n\n\t\tcase 9: // bottom right\n\t\t\t$dest['x'] = $sourcefile_width - $insertfile_width;\n\t\t\t$dest['y'] = $sourcefile_height - $insertfile_height;\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t}\n\n\treturn $dest;\n}", "title": "" }, { "docid": "cb551dda33785d4bde368b96abc52be4", "score": "0.5389456", "text": "public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setName($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setAddress1($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setAddress2($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setCity($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setCounty($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setState($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setCountry($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setZipcode($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setPhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setComment($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setFaxPhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setFaxComment($value);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$this->setEmail($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "title": "" }, { "docid": "2634fd47fdb7f096856db6ada356a416", "score": "0.5389311", "text": "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setId($value);\n break;\n case 1:\n $this->setNombre($value);\n break;\n case 2:\n $this->setDireccion($value);\n break;\n case 3:\n $this->setCorreoEletronico($value);\n break;\n case 4:\n $this->setNombreContacto($value);\n break;\n case 5:\n $this->setTelefono($value);\n break;\n case 6:\n $this->setCiudad($value);\n break;\n case 7:\n $this->setObservacion($value);\n break;\n case 8:\n $this->setNit($value);\n break;\n case 9:\n $this->setRazonSocial($value);\n break;\n case 10:\n $this->setContacto($value);\n break;\n case 11:\n $this->setReferencia($value);\n break;\n case 12:\n $this->setCorreo($value);\n break;\n } // switch()\n }", "title": "" }, { "docid": "24500b1e5a57b398e054f05385c75202", "score": "0.5388363", "text": "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setKodeWilayah($value);\n break;\n case 1:\n $this->setNama($value);\n break;\n case 2:\n $this->setIdLevelWilayah($value);\n break;\n case 3:\n $this->setMstKodeWilayah($value);\n break;\n case 4:\n $this->setNegaraId($value);\n break;\n case 5:\n $this->setAsalWilayah($value);\n break;\n case 6:\n $this->setKodeBps($value);\n break;\n case 7:\n $this->setKodeDagri($value);\n break;\n case 8:\n $this->setKodeKeu($value);\n break;\n case 9:\n $this->setIdProv($value);\n break;\n case 10:\n $this->setIdKabkota($value);\n break;\n case 11:\n $this->setIdKec($value);\n break;\n case 12:\n $this->setADesa($value);\n break;\n case 13:\n $this->setAKelurahan($value);\n break;\n case 14:\n $this->setA35($value);\n break;\n case 15:\n $this->setAUrban($value);\n break;\n case 16:\n $this->setKategoriDesaId($value);\n break;\n case 17:\n $this->setCreateDate($value);\n break;\n case 18:\n $this->setLastUpdate($value);\n break;\n case 19:\n $this->setExpiredDate($value);\n break;\n case 20:\n $this->setLastSync($value);\n break;\n } // switch()\n }", "title": "" }, { "docid": "5da6744d44bbf998e9b4be5a6722b288", "score": "0.5380318", "text": "public function setPosition()\n {\n $args = func_get_args();\n\n if(isset($args[0]) && is_numeric($args[0]) && isset($args[1]) && is_numeric($args[1]))\n {\n $this->position->setLatitude($args[0]);\n $this->position->setLongitude($args[1]);\n\n if(isset($args[2]) && is_bool($args[2]))\n $this->position->setNoWrap($args[2]);\n }\n else if(isset($args[0]) && ($args[0] instanceof Coordinate))\n $this->position = $args[0];\n else if(!isset($args[0]))\n $this->position = null;\n else\n throw new \\InvalidArgumentException(sprintf('%s'.PHP_EOL.'%s'.PHP_EOL.'%s'.PHP_EOL.'%s',\n 'The position setter arguments is invalid.',\n 'The available prototypes are :',\n ' - public function setPosition(Ivory\\GoogleMapBundle\\Model\\Base\\Coordinate $position)',\n ' - public function setPosition(double $latitude, double $longitude, boolean $noWrap = true)'));\n }", "title": "" }, { "docid": "3e54b520b8f2a978831a6f46e9156ce9", "score": "0.5369972", "text": "public function position() {\r\n return $this->position;\r\n }", "title": "" }, { "docid": "29c3397ac048ed4e426829080885afb5", "score": "0.53683716", "text": "public function setPosition($position) {\n\t\t\t$this->position = $position;\n\t\t}", "title": "" }, { "docid": "1a2e6e2837949e8fe3c30d3106939592", "score": "0.5354572", "text": "private function setPosition( string $position ) {\n\t\t$this->position = $position;\n\t\t\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "d418c7cd065019bcded1b7ec697ca048", "score": "0.5346851", "text": "public function __construct($positionLeft, $positionTop, $rotation) {\n\t\t\t$this->_positionLeft = $positionLeft;\n\t\t\t$this->_positionTop = $positionTop;\n\t\t\t$this->_positionBottom = $positionTop + 105;\n\t\t\t$this->_positionRight = $positionLeft + 50;\n\t\t\t$this->_rotation = $rotation;\n\t\t\t$this->_changeOffsets();\n\t\t\t$this->_shootDistance = 200;\n\t\t\t$this->_shootPower = 5;\n\t\t\t$this->_status = 1;\n\t\t}", "title": "" }, { "docid": "bc50bd00659d33651f95eaa339114b62", "score": "0.5343746", "text": "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setPekerjaanId($value);\n break;\n case 1:\n $this->setNama($value);\n break;\n case 2:\n $this->setAWirausaha($value);\n break;\n case 3:\n $this->setAPejabatPublik($value);\n break;\n case 4:\n $this->setCreateDate($value);\n break;\n case 5:\n $this->setLastUpdate($value);\n break;\n case 6:\n $this->setExpiredDate($value);\n break;\n case 7:\n $this->setLastSync($value);\n break;\n } // switch()\n }", "title": "" }, { "docid": "1675d90c09e3da54eab1f5bba947c68c", "score": "0.5336285", "text": "public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setPayrollType($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setLastName($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setFirstName($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setMiddleName($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setProfilePict($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setEmpAddress($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setCity($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setProvince($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setBirthDate($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setBirthPlace($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setTelephoneNo($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setEducationalAttainment($value);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$this->setSex($value);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\t$this->setCivilStatus($value);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\t$this->setSpouse($value);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\t$this->setWork($value);\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\t$this->setFatherName($value);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\t$this->setFAddress($value);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\t$this->setMotherName($value);\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\t$this->setMAddress($value);\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\t$this->setDesignationId($value);\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\t$this->setEmployeeStatus($value);\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\t$this->setEmployeeType($value);\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\t$this->setDateHired($value);\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\t$this->setEndOfContract($value);\n\t\t\t\tbreak;\n\t\t\tcase 26:\n\t\t\t\t$this->setAtmNo($value);\n\t\t\t\tbreak;\n\t\t\tcase 27:\n\t\t\t\t$this->setRateAmount($value);\n\t\t\t\tbreak;\n\t\t\tcase 28:\n\t\t\t\t$this->setSssNo($value);\n\t\t\t\tbreak;\n\t\t\tcase 29:\n\t\t\t\t$this->setTinNo($value);\n\t\t\t\tbreak;\n\t\t\tcase 30:\n\t\t\t\t$this->setPhilhealthNo($value);\n\t\t\t\tbreak;\n\t\t\tcase 31:\n\t\t\t\t$this->setPagibigNo($value);\n\t\t\t\tbreak;\n\t\t\tcase 32:\n\t\t\t\t$this->setSssAmount($value);\n\t\t\t\tbreak;\n\t\t\tcase 33:\n\t\t\t\t$this->setTaxAmount($value);\n\t\t\t\tbreak;\n\t\t\tcase 34:\n\t\t\t\t$this->setPhilAmount($value);\n\t\t\t\tbreak;\n\t\t\tcase 35:\n\t\t\t\t$this->setPagibigAmount($value);\n\t\t\t\tbreak;\n\t\t\tcase 36:\n\t\t\t\t$this->setContactName($value);\n\t\t\t\tbreak;\n\t\t\tcase 37:\n\t\t\t\t$this->setContactAddress($value);\n\t\t\t\tbreak;\n\t\t\tcase 38:\n\t\t\t\t$this->setTelNo($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "title": "" }, { "docid": "9c773dd3b905649da39d563dd45d580a", "score": "0.53284514", "text": "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setId($value);\n break;\n case 1:\n $this->setUserId($value);\n break;\n case 2:\n $this->setName($value);\n break;\n case 3:\n $this->setNameSlug($value);\n break;\n case 4:\n $this->setGovermentLicense($value);\n break;\n case 5:\n $this->setJoinAt($value);\n break;\n case 6:\n $this->setAddress1($value);\n break;\n case 7:\n $this->setAddress2($value);\n break;\n case 8:\n $this->setCity($value);\n break;\n case 9:\n $this->setZipcode($value);\n break;\n case 10:\n $this->setCountryId($value);\n break;\n case 11:\n $this->setStateId($value);\n break;\n case 12:\n $this->setPhone($value);\n break;\n case 13:\n $this->setFax($value);\n break;\n case 14:\n $this->setMobile($value);\n break;\n case 15:\n $this->setEmail($value);\n break;\n case 16:\n $this->setWebsite($value);\n break;\n case 17:\n $this->setLogo($value);\n break;\n case 18:\n $valueSet = PrincipalPeer::getValueSet(PrincipalPeer::STATUS);\n if (isset($valueSet[$value])) {\n $value = $valueSet[$value];\n }\n $this->setStatus($value);\n break;\n case 19:\n $this->setIsPrincipal($value);\n break;\n case 20:\n $valueSet = PrincipalPeer::getValueSet(PrincipalPeer::CONFIRMATION);\n if (isset($valueSet[$value])) {\n $value = $valueSet[$value];\n }\n $this->setConfirmation($value);\n break;\n case 21:\n $this->setSortableRank($value);\n break;\n case 22:\n $this->setCreatedAt($value);\n break;\n case 23:\n $this->setUpdatedAt($value);\n break;\n } // switch()\n }", "title": "" }, { "docid": "fefdcb2d6bbe30de68f9d67288467fef", "score": "0.53260136", "text": "public function position() {\n\t\tif ( !isset( $this->cache[__METHOD__] ) ) {\n\t\t\t$lp = $this->lengthPercentage();\n\t\t\t$olp = Quantifier::optional( $lp );\n\t\t\t$center = new KeywordMatcher( 'center' );\n\t\t\t$leftRight = new KeywordMatcher( [ 'left', 'right' ] );\n\t\t\t$topBottom = new KeywordMatcher( [ 'top', 'bottom' ] );\n\n\t\t\t$this->cache[__METHOD__] = new Alternative( [\n\t\t\t\tnew Alternative( [ $center, $leftRight, $topBottom, $lp ] ),\n\t\t\t\tnew Juxtaposition( [\n\t\t\t\t\tnew Alternative( [ $center, $leftRight, $lp ] ),\n\t\t\t\t\tnew Alternative( [ $center, $topBottom, $lp ] ),\n\t\t\t\t] ),\n\t\t\t\tUnorderedGroup::allOf( [\n\t\t\t\t\tnew Alternative( [ $center, new Juxtaposition( [ $leftRight, $olp ] ) ] ),\n\t\t\t\t\tnew Alternative( [ $center, new Juxtaposition( [ $topBottom, $olp ] ) ] ),\n\t\t\t\t] ),\n\t\t\t] );\n\t\t}\n\t\treturn $this->cache[__METHOD__];\n\t}", "title": "" }, { "docid": "e5f3368488013ffea7165132d31c65db", "score": "0.53097975", "text": "public function _setPosition($position)\n {\n $this->position = $position;\n\n return $this;\n }", "title": "" }, { "docid": "7459a46c0e44308e226b5d72ef596969", "score": "0.5309221", "text": "public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setEnderecoId($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setAtivo($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setNome($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setCpf($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setCelular($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setTelefone($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setEmail($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "title": "" }, { "docid": "afddff9eae4204f54ce17d879ee5c7ec", "score": "0.5307878", "text": "function PopupWindow_getXYPosition(anchorname) {\n\tvar coordinates;\n\tif (this.type == \"WINDOW\") {\n\t\tcoordinates = getAnchorWindowPosition(anchorname);\n\t\t}\n\telse {\n\t\tcoordinates = getAnchorPosition(anchorname);\n\t\t}\n\tthis.x = coordinates.x;\n\tthis.y = coordinates.y;\n\t}", "title": "" }, { "docid": "82e0c7063a70b92812bd3ae4598c3fc8", "score": "0.5305392", "text": "public function getPosition()\r\n {\r\n return $this->position;\r\n }", "title": "" }, { "docid": "3ea37725d0bc8ae1e542a6d537fab93c", "score": "0.52989864", "text": "public function testCreateStartPositionLimit()\n {\n $maze = new Maze(3, 3);\n $pos = $maze->createStartPosition();\n\n $this->assertEquals(1, $pos->y());\n $this->assertEquals(1, $pos->x());\n }", "title": "" }, { "docid": "7168fba74bc4399ff2d8be6f32c2da1b", "score": "0.52984875", "text": "public function testGetPosition() {\n $this->assertEquals($this->topLeftCorner->x, $this->component->getPosition()->x);\n $this->assertEquals($this->topLeftCorner->y, $this->component->getPosition()->y);\n }", "title": "" }, { "docid": "22841dfb81a15149b972b7f93225ebb6", "score": "0.52879435", "text": "public function getPos()\n {\n return $this->pos;\n }", "title": "" }, { "docid": "161fe5d1332e5934f731f6b4f29fc27c", "score": "0.5279326", "text": "protected function calculatePositions()\n {\n $this->position['related'] = '';\n $this->position['upsell'] = '';\n $this->position['collateral'] = $this->theme->getCfg('product_page/collateral_position');\n if($this->theme->getCfg('product_page/related_position') == $this->theme->getCfg('product_page/upsell_position')){\n $this->position['upsell_related'] = $this->theme->getCfg('product_page/related_position');\n }else{\n $this->position['related'] = $this->theme->getCfg('product_page/related_position');\n $this->position['upsell'] = $this->theme->getCfg('product_page/upsell_position');\n $this->position['upsell_related'] = '';\n }\n\n $this->position['brand'] = $this->theme->getCfg('product_page/brand_position');\n }", "title": "" }, { "docid": "79843d1ed9df81304ffe6febcaf8c842", "score": "0.5277626", "text": "public function store(Request $request, Position $position)\n {\n$position->fill($request->all());\nif ($position->validate())\n{\n$position->save();\n return $this->successResponse($request, 'positions', 'Position has been added.');\n}\n return $this->failedResponse($request, $position);\n }", "title": "" }, { "docid": "e02d0de3361413906ab1d27c61b4abe6", "score": "0.5263991", "text": "function create()\n {\n }", "title": "" }, { "docid": "05daeb2b65ae0a75f0a7933f1fbc320e", "score": "0.5262676", "text": "public function setPosition($position)\n {\n $this->_position = $position;\n }", "title": "" }, { "docid": "89c06e4b25876435e046d28c7d15e5fb", "score": "0.5257716", "text": "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setid($value);\n break;\n case 1:\n $this->setdeleted($value);\n break;\n case 2:\n $this->setactionTypeId($value);\n break;\n case 3:\n $this->setidx($value);\n break;\n case 4:\n $this->settemplateId($value);\n break;\n case 5:\n $this->setname($value);\n break;\n case 6:\n $this->setdescr($value);\n break;\n case 7:\n $this->setunitId($value);\n break;\n case 8:\n $this->settypeName($value);\n break;\n case 9:\n $this->setValueDomain($value);\n break;\n case 10:\n $this->setdefaultValue($value);\n break;\n case 11:\n $this->setcode($value);\n break;\n case 12:\n $this->setisVector($value);\n break;\n case 13:\n $this->setnorm($value);\n break;\n case 14:\n $this->setsex($value);\n break;\n case 15:\n $this->setage($value);\n break;\n case 16:\n $this->setageBu($value);\n break;\n case 17:\n $this->setageBc($value);\n break;\n case 18:\n $this->setageEu($value);\n break;\n case 19:\n $this->setageEc($value);\n break;\n case 20:\n $this->setpenalty($value);\n break;\n case 21:\n $this->setvisibleInJobTicket($value);\n break;\n case 22:\n $this->setisAssignable($value);\n break;\n case 23:\n $this->settestId($value);\n break;\n case 24:\n $this->setdefaultEvaluation($value);\n break;\n case 25:\n $this->settoEpicrisis($value);\n break;\n case 26:\n $this->setmandatory($value);\n break;\n case 27:\n $this->setreadonly($value);\n break;\n } // switch()\n }", "title": "" }, { "docid": "38c8ed0ef093bee925cb8cea3310188a", "score": "0.52544194", "text": "public function getPosition ()\r\n\t{\r\n\t\trequire_once SITE_PATH.'/../model/gettersettermodel.php';\r\n\t\t$objInitiateUser = new Register ();\r\n\t\t$objInitiateUser->setUser($_REQUEST['user']);\r\n\t\t$b = $objInitiateUser->getPosition () ;\r\n\t\tif(!empty($b[0]['name']))\r\n\t\t{\r\n\t\t\tfor($i = 0 ; $i < count($b) ; $i++)\r\n\t\t\t{\r\n\t\t\t\t$arr[] = $b[$i]['name'];\r\n\t\t\t\t$arr[] = $b[$i]['avatar'];\r\n\t\t\t\t$arr[] = $b[$i]['position'];\r\n\t\t\t}\r\n\t\t\techo json_encode($arr);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn \"-1\" ;\r\n\t\t}\r\n\t\r\n\t}", "title": "" }, { "docid": "771c8a2e397c47fe04d8cbfa26276053", "score": "0.5249584", "text": "public function setPositionAttribute($input)\n {\n $this->attributes['position'] = $input ? $input : null;\n }", "title": "" }, { "docid": "a214c317feb615a5bdcdf1dca66fb822", "score": "0.52490795", "text": "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setInstCodigo($value);\n break;\n case 1:\n $this->setInstIdentificador($value);\n break;\n case 2:\n $this->setInstDv($value);\n break;\n case 3:\n $this->setInstNombre($value);\n break;\n case 4:\n $this->setInstTInstitucion($value);\n break;\n case 5:\n $this->setInstCComuna($value);\n break;\n case 6:\n $this->setInstCPais($value);\n break;\n case 7:\n $this->setInstTelefono($value);\n break;\n case 8:\n $this->setInstEmail($value);\n break;\n case 9:\n $this->setInstTratamiento($value);\n break;\n case 10:\n $this->setInstDireccion($value);\n break;\n case 11:\n $this->setInstGiro($value);\n break;\n case 12:\n $this->setInstRFechaCreacion($value);\n break;\n case 13:\n $this->setInstRFechaModificacion($value);\n break;\n case 14:\n $this->setInstRUsuario($value);\n break;\n } // switch()\n\n return $this;\n }", "title": "" }, { "docid": "ce21cf718287267061886bc165276fdc", "score": "0.5245333", "text": "protected static function createPointOrigin(): GeometryPoint\n {\n return static::createGeometryPoint('O', 0, 0);\n }", "title": "" }, { "docid": "1ff7816e53dfbcfbf3034cdd7376c863", "score": "0.52451485", "text": "public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setCampaignId($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setContactId($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setSentAt($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setFailedSentAt($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setViewAt($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setViewUserAgent($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setClickedAt($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setUnsubscribedAt($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setRaison($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setUnsubscribedLists($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setLandingActions($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setBounceType($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "title": "" }, { "docid": "928058001814265268618d4e10ce97c2", "score": "0.52410567", "text": "public static function position($line, $pos) {\n $a = new stdClass();\n $a->line = $line;\n $a->pos = $pos;\n return $a;\n }", "title": "" } ]
ec08bf718d1ef3601aa09ab1c802ae88
Get the right QuestionType instance
[ { "docid": "822bccdfc1f9a89898f244f0b45d0586", "score": "0.7356841", "text": "public static function getQuestionType($type) {\n switch($type) {\n case 'simple':\n return new Simple;\n\n case 'multiple':\n return new Multiple;\n\n default:\n return null;\n }\n }", "title": "" } ]
[ { "docid": "71d7706e11d57abf57c05e339e2b572f", "score": "0.77105844", "text": "function getQuestionType()\n\t{\n\t\treturn $this->object->getQuestionType();\n\t}", "title": "" }, { "docid": "3ed931d3e3dc9111796208322b0a4ff9", "score": "0.76289743", "text": "public function getQuestiontype()\n {\n return $this->hasOne(QuestionType::className(), ['id' => 'question_type_id']);\n }", "title": "" }, { "docid": "ee6b2285274bdbd0b58624d35ea591ca", "score": "0.7329592", "text": "public function getQuestionType() {\n return $this->question->getQuestionType();\n }", "title": "" }, { "docid": "e5bbc492788339629e872a14b3231ca6", "score": "0.7216234", "text": "public function type()\n {\n return $this->hasOne('App\\Type', 'question_type');\n }", "title": "" }, { "docid": "849e8629a5189915037dd894e5ea3426", "score": "0.7208426", "text": "function getQuestionType()\n\t{\n\t\treturn $this->getPlugin()->getQuestionType();\n\t}", "title": "" }, { "docid": "5a5e80007a739c4cc0d626d1f2f4fe53", "score": "0.70358276", "text": "public function questionType() {\n return $this->belongsTo(QuestionType::class);\n }", "title": "" }, { "docid": "1a526e534cb054fcfd151b3b22d36607", "score": "0.7021163", "text": "public function getAnswerType();", "title": "" }, { "docid": "4b9bbe9907324b9460a940218129b9a1", "score": "0.6838837", "text": "public function getQuestionType()\n\t{\n\t\treturn \"assFormulaQuestion\";\n\t}", "title": "" }, { "docid": "8b0e92154d52b19611634f54758336c8", "score": "0.6807311", "text": "public function questionType() {\n return $this->belongsTo(Question::class, 'question_id');\n }", "title": "" }, { "docid": "fc62dcef4198306dc54224c31060a0f9", "score": "0.6595355", "text": "public static function getQuestionFromQuestion($question) {\n if($question === null) {\n return null;\n }\n\n $questionType = static::getQuestionType($question->type);\n\n if($questionType === null) {\n return null;\n }\n\n $questionType->setInfosFromQuestion($question);\n return $questionType;\n }", "title": "" }, { "docid": "91d166888d3b698c86f3156b5aa2245e", "score": "0.6527787", "text": "function ipal_get_qtype($questionid) {\n global $DB;\n $questiontype = $DB->get_record('question', array('id' => $questionid));\n return($questiontype->qtype);\n}", "title": "" }, { "docid": "5d9129cb658ab0414a25825d4d7cd1e5", "score": "0.6526404", "text": "function ipal_get_qtype($questionid){\r\n\tglobal $DB;\r\n\t$questiontype=$DB->get_record('question',array('id'=>$questionid));\r\n\treturn($questiontype->qtype); \r\n}", "title": "" }, { "docid": "3a091046baf6689db58dd37e7820b1b4", "score": "0.63524926", "text": "public function create($question, $type = ObjectFactory::TEXT_QUESTION)\n\t{\n\t\t// echo $type;\n\t\t$newQuestion = $this->objectFactory->createQuestion($type);\n\t\t// if ($type == ObjectFactory::SINGLE_CHOICE_QUESTION) echo \"single\";\n\t\t// echo $question;\n\t\t$newQuestion->setQuestion($question);\n\t\t$this->questions[$newQuestion->getId()] = $newQuestion;\n\t\treturn $newQuestion;\n\t}", "title": "" }, { "docid": "30e310b8b99123143de68999e2efd42c", "score": "0.6147422", "text": "function getQuestionTypeObject($question,$validate = 0){\n\t\t$uid = $question['uid'];\n\t\t$content = '';\n\t\t$saveArray = array();\n\n\t\tswitch ($question['type']){\n\t\t\tcase 'open':\n\t\t\t\t$question_obj = new question_open();\n\t\t\t\t$answer = array();\n\t\t\t\tif (is_array($this->saveArray[$question['uid']]) AND !$this->piVars[$question['uid']] AND $this->saveArray[$question['uid']]){\n\t\t\t\t\t$this->piVars[$question['uid']]['text'] = $this->saveArray[$question['uid']]['answer'];\n\t\t\t\t}\n\t\t\t\t$answer['text'] = $this->piVars[$question['uid']]['text'];\n\t\t\t\tif ($answer['text'] == '') $answer['text'] = $question[\"open_in_text\"];\n\t\t\t\t$question_obj->init($uid,$this,$answer,$validate,\"error\",\"d.m.y\",\",\");\n\t\t\t\tbreak;\n\t\t\tcase 'closed':\n\t\t\t\t$question_obj = new question_closed();\n\t\t\t\tif (is_array($this->saveArray[$question['uid']]) AND !$this->piVars[$question['uid']] AND $this->saveArray[$question['uid']]){\n\t\t\t\t\tif (!is_array($this->saveArray[$question['uid']]['answer']) AND stristr($this->saveArray[$question['uid']]['answer'],'<phparray>')){\n\t\t\t\t\t\t$this->piVars[$question['uid']]['options'] = $this->saveArray[$question['uid']]['answer'];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->piVars[$question['uid']] = $this->saveArray[$question['uid']]['answer'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$answer = $this->piVars[$question['uid']];\n\t\t\t\t$question_obj->init($uid, $this, $answer, $validate);\n\t\t\tbreak;\n\t\t\tcase 'dd_words':\n\t\t\t\t$question_obj = new question_dd_words();\n\t\t\t\tif (is_array($this->saveArray[$question['uid']]) AND !$this->piVars[$question['uid']] AND $this->saveArray[$question['uid']]){\n\t\t\t\t\tif (!is_array($this->saveArray[$question['uid']]['answer']) AND stristr($this->saveArray[$question['uid']]['answer'],'<phparray>')){\n\t\t\t\t\t\t$this->piVars[$question['uid']]['options'] = $this->saveArray[$question['uid']]['answer'];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->piVars[$question['uid']] = $this->saveArray[$question['uid']]['answer'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$answer = $this->piVars[$question['uid']];\n\t\t\t\t$question_obj->init($uid, $this, $answer, $validate);\n\t\t\tbreak;\n\t\t\tcase 'dd_area':\n\t\t\t\t$question_obj = new question_dd_area();\n\t\t\t\tif (is_array($this->saveArray[$question['uid']]) AND !$this->piVars[$question['uid']] AND $this->saveArray[$question['uid']]){\n\t\t\t\t\tif (!is_array($this->saveArray[$question['uid']]['answer']) AND stristr($this->saveArray[$question['uid']]['answer'],'<phparray>')){\n\t\t\t\t\t\t$this->piVars[$question['uid']]['options'] = $this->saveArray[$question['uid']]['answer'];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->piVars[$question['uid']] = $this->saveArray[$question['uid']]['answer'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$answer = $this->piVars[$question['uid']];\n\t\t\t\t$question_obj->init($uid, $this, $answer, $validate);\n\t\t\tbreak;\n\t\t\tcase 'dd_pictures':\n\t\t\t\t$question_obj = new question_dd_pictures();\n\t\t\t\tif (is_array($this->saveArray[$question['uid']]) AND !$this->piVars[$question['uid']] AND $this->saveArray[$question['uid']]){\n\t\t\t\t\tif (!is_array($this->saveArray[$question['uid']]['answer']) AND stristr($this->saveArray[$question['uid']]['answer'],'<phparray>')){\n\t\t\t\t\t\t$this->piVars[$question['uid']]['options'] = $this->saveArray[$question['uid']]['answer'];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->piVars[$question['uid']] = $this->saveArray[$question['uid']]['answer'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$answer = $this->piVars[$question['uid']];\n\t\t\t\t$question_obj->init($uid, $this, $answer, $validate);\n\t\t\tbreak;\n\t\t\tcase 'matrix':\n\t\t\t\t$question_obj = new question_matrix();\n\t\t\t\tif (is_array($this->saveArray[$question['uid']]) AND !$this->piVars[$question['uid']] AND $this->saveArray[$question['uid']]){\n\t\t\t\t\t$this->piVars[$question['uid']] = $this->saveArray[$question['uid']]['answer'];\n\t\t\t\t}\n\t\t\t\t$answer=$this->piVars[$question['uid']];\n\t\t\t\t$question_obj->init($uid,$this,$answer,$validate,'error',\"d.m.y\",\",\");\n\t\t\t\tbreak;\n\t\t\tcase 'semantic':\n\t\t\t\t$question_obj = new question_semantic();\n\n\t\t\t\tif (is_array($this->saveArray[$question['uid']]) AND !$this->piVars[$question['uid']] AND $this->saveArray[$question['uid']]){\n\t\t\t\t\t$this->piVars[$question['uid']] = $this->saveArray[$question['uid']]['answer'];\n\t\t\t\t}\n\t\t\t\t$answer = $this->piVars[$question['uid']];\n\t\t\t\t$question_obj->init($uid,$this,$answer,$validate);\n\t\t\t\tbreak;\n\t\t\tcase 'demographic':\n\t\t\t\t$question_obj = new question_demographic();\n\n\t\t\t\tif (is_array($this->saveArray[$question['uid']]) AND !$this->piVars[$question['uid']] AND $this->saveArray[$question['uid']]){\n\t\t\t\t\t$this->piVars[$question['uid']] = $this->saveArray[$question['uid']]['answer'];\n\t\t\t\t}\n\t\t\t\t$answer=$this->piVars[$question['uid']];\n\n\t\t\t\tif (is_array($answer['fe_users'])){\n\t\t\t\t\tforeach ($answer['fe_users'] as $field => $value){\n\t\t\t\t\t\t//t3lib_div::devLog('demographic answer field '.$question['uid'], $this->prefixId, 0, array($field,$value));\n\t\t\t\t\t\tif ($value == ''){\n\t\t\t\t\t\t\t$answer['fe_users'][$field] = $GLOBALS['TSFE']->fe_user->user[$field];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (is_array($options['fields'])){\n\t\t\t\t\tforeach ($options['fields'] as $field => $type){\n\t\t\t\t\t\t//t3lib_div::devLog('demographic answer field '.$question['uid'], $this->prefixId, 0, array($field,$type));\n\t\t\t\t\t\tif ($answer['fe_users'][$field] == ''){\n\t\t\t\t\t\t\t$answer['fe_users'][$field] = $GLOBALS['TSFE']->fe_user->user[$field];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$question_obj->init($uid,$this,$answer,$validate,\"error\",\"\",\"\");\n\t\t\t\tbreak;\n\t\t\tcase 'privacy':\n\t\t\t\t$question_obj = new question_privacy();\n\t\t\t\t$answer = $this->piVars[$question['uid']];\n\t\t\t\t$question_obj->init($uid,$this,$answer,$validate);\n\t\t\t\tbreak;\n\t\t\tcase 'blind':\n\t\t\t\t$question_obj = new question_blind();\n\t\t\t\t$answer = array();\n\t\t\t\t$question_obj->init($uid,$this,$answer);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t/*Hook*/\n\t\t\t\tif (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$this->extKey]['getDifferentQuestionTypeObject'])){\n\t\t\t\t\tforeach($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$this->extKey]['getDifferentQuestionTypeObject'] as $_classRef){\n\t\t\t\t\t\t$_procObj = & t3lib_div::getUserObj($_classRef);\n\t\t\t\t\t\tif (!is_object($question_obj)) $question_obj = $_procObj->getDifferentQuestionType($this,$question,$this->piVars);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t\treturn $question_obj;\n\t}", "title": "" }, { "docid": "4ff87542cc8743ef2e8c9d0c1491dc79", "score": "0.60467696", "text": "public function model()\n {\n return Question::class;\n }", "title": "" }, { "docid": "f8e22d9f328a515c0374acd6163691fe", "score": "0.597958", "text": "function ipal_acceptable_qtype($questionid) {\n global $DB;\n\n // An array of acceptable qutypes supported in ipal.\n $acceptableqtypes = array('multichoice', 'truefalse', 'essay');\n $qtype = $DB->get_field('question', 'qtype', array('id' => $questionid));\n if (in_array($qtype, $acceptableqtypes)) {\n return true;\n } else {\n return $qtype;\n }\n}", "title": "" }, { "docid": "c18df7424688ac2c989ee27ea5d4573b", "score": "0.59085906", "text": "abstract protected function getQuestion();", "title": "" }, { "docid": "5012b14bb4caef837a721a6a18934117", "score": "0.5882813", "text": "public function model()\n {\n return Questioning::class;\n }", "title": "" }, { "docid": "06ec0410130b15bccd88ca7e174e81d6", "score": "0.5851103", "text": "public function getQuestion($type, Request $request)\n {\n $question = Question::where([\n ['quiz_id', '=', $request->quiz_id], \n ['position', '=', $request->position]\n ])->get()[0];\n $position = $request->position;\n return view('questions.type.' . $type, compact('question', 'position')); \n }", "title": "" }, { "docid": "f303381bb8e8690794a5e5f30a318588", "score": "0.5849431", "text": "private function get_type() {\r\n if ($this->post->parent) {\r\n $this->type = 'reply';\r\n } elseif ($this->post->id) {\r\n $this->id = $this->post->id;\r\n $this->type = 'edit';\r\n }\r\n }", "title": "" }, { "docid": "403d46bfaea3467464cece9dde9f7750", "score": "0.580103", "text": "function getQuestionType() {\n\t\treturn 'extended_text';\n\t}", "title": "" }, { "docid": "32ab14c3cc131cbaa563938148f03aa8", "score": "0.57995564", "text": "function get_question_type() {\n $ci = & get_instance();\n //load databse library\n $ci->load->database();\n //get data from database\n $ci->db->select(\"*\");\n $ci->db->from('tbl_question_type_master');\n $query = $ci->db->get();\n if ($query->num_rows() > 0) {\n $result = $query->result();\n return $result;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "89f4f3bf54fc9b856a2ab0e6cdf43b9e", "score": "0.5795343", "text": "static function &_getQuestionGUI($questiontype, $question_id = -1)\n\t{\n\t\tinclude_once \"./Modules/SurveyQuestionPool/classes/class.SurveyQuestion.php\";\n\t\tif ((!$questiontype) and ($question_id > 0))\n\t\t{\n\t\t\t$questiontype = SurveyQuestion::_getQuestiontype($question_id);\n\t\t}\n\t\tSurveyQuestion::_includeClass($questiontype, 1);\n\t\t$question_type_gui = $questiontype . \"GUI\";\n\t\t$question = new $question_type_gui($question_id);\n\t\treturn $question;\n\t}", "title": "" }, { "docid": "ab9464fb317964415fd710afba4016bb", "score": "0.57643753", "text": "private function _get_question_display_type( $question ) {\n\n\t\t$type = 0;\n\n\t\tif ( ! empty( $question['display_settings']['display_type'] ) ) {\n\t\t\t$type = (int) $question['display_settings']['display_type'];\n\t\t}\n\n\t\treturn $type;\n\t}", "title": "" }, { "docid": "29c3e6fb6e27698d1d977937485037de", "score": "0.5749577", "text": "public function getQuestionnaireTypeId()\n {\n return $this->questionnaire_type_id;\n }", "title": "" }, { "docid": "33cc9e982acdd59f511221e1975dfe14", "score": "0.5726337", "text": "public static function getQuestionFromDatabase($id) {\n $question = Question::find($id);\n\n if($question === null) {\n return null;\n }\n\n $questionType = static::getQuestionType($question->type);\n\n if($questionType === null) {\n return null;\n }\n\n $questionType->setInfosFromQuestion($question);\n return $questionType;\n }", "title": "" }, { "docid": "15062f6174f39d4044f2223e64ee5f6d", "score": "0.5709763", "text": "protected function make_question_instance($questiondata) {\n question_bank::load_question_definition_classes($this->name());\n $class = 'qtype_multichoiceset_question';\n return new $class();\n }", "title": "" }, { "docid": "d04d3bcc456227c5082813953c119775", "score": "0.5630092", "text": "public function getQuestion();", "title": "" }, { "docid": "c56435ddff08516ca6930dcba0a98e55", "score": "0.5603912", "text": "public function run()\n {\n $questionType = new QuestionType();\n $questionType->type = 'Only selection(Radio Button)';\n $questionType->save();\n\n $questionType = new QuestionType();\n $questionType->type = 'Multiple selection(Checkbox)';\n $questionType->save();\n\n $questionType = new QuestionType();\n $questionType->type = 'Only selection with other input';\n $questionType->save();\n\n $questionType = new QuestionType();\n $questionType->type = 'Multiple selection with other input';\n $questionType->save();\n\n $questionType = new QuestionType();\n $questionType->type = 'Scale';\n $questionType->save();\n\n $questionType = new QuestionType();\n $questionType->type = 'Open question';\n $questionType->save();\n }", "title": "" }, { "docid": "c80f0ba851ec0c0dd47f548caefffe0b", "score": "0.56018364", "text": "function _get_type() {\n\t\treturn $this->type();\n\n\t}", "title": "" }, { "docid": "2a9a08d1d8894b71adc0cf10b9b1185e", "score": "0.5577475", "text": "public function getQuestion()\n {\n return $this->hasOne(Question::className(), ['id' => 'question_id']);\n }", "title": "" }, { "docid": "bdad972af33e75fd9c2035e27d19fdc7", "score": "0.5566549", "text": "public function getQuestion() {\r\n\treturn $this->question;\r\n }", "title": "" }, { "docid": "a149995f3ad2398e6eecbff1607ccba5", "score": "0.5560219", "text": "public function add_question_type() {\n\t\tregister_taxonomy(\n\t\t\t'question_type',\n\t\t\t'questions',\n\t\t\tarray(\n\t\t\t\t'hierarchical' => true,\n\t\t\t\t'label' => __( 'Question type', 'lingo' ),\n\t\t\t\t'singular_name' => __( 'Question type level', 'lingo' ),\n\t\t\t)\n\t\t);\n\n\t}", "title": "" }, { "docid": "371bcdef05a3cc45a4b98e3d96628013", "score": "0.5558873", "text": "public abstract function getFormType();", "title": "" }, { "docid": "f608797a5c0b60250ea87c80955c7bc3", "score": "0.5521937", "text": "public function question() \n\t{\n\t\treturn $this->hasOne('App\\Question');\n\t}", "title": "" }, { "docid": "cdb3f10c3f1f8caeed498b4039e2c69c", "score": "0.55060977", "text": "public function scopeQType($qtype_id) {\n $qsorts = QSortable::where('qpackage_id', '=', $this->id)\n ->where('qtype_id', '=', $qtype_id)\n ->orderBy('index', 'asc')->get();\n\n // Get ALL the question that have the asked subject (qtype)\n $q = Question::where('qtype_id', '=', $qtype_id);\n\n // Then we order the $q according to randomized $qsorts order\n $orderstr = 'FIELD(id';\n foreach($qsorts as $qsort) {\n $q_id = $qsort->question_id;\n $orderstr .= ', \"' . $q_id . '\"';\n }\n $orderstr .= ')';\n $q->orderByRaw($orderstr);\n\n return $q;\n }", "title": "" }, { "docid": "78335f184f81ef6bf5bf8c316c438b52", "score": "0.5498101", "text": "public function getQuestion() {\n return $this->question;\n }", "title": "" }, { "docid": "09b1506144971b9fbe1b622bfe36f579", "score": "0.54793257", "text": "private function question()\n\t{\n\t\t$this->qns['questionnaire']['questionnairecategories_id'] = $this->allinputs['questioncat'];\n\t\t$this->qns['questionnaire']['questionnairesubcategories_id'] = $this->allinputs['questionsubcat'];\n\t\t$this->qns['questionnaire']['label'] = $this->allinputs['question_label'];\n\n\n\t\t$this->qns['questionnaire']['question'] = $this->allinputs['question'];\n\t\t$this->qns['questionnaire']['has_sub_question'] = $this->allinputs['subquestion'];\n\n\t\tif( $this->qns['questionnaire']['has_sub_question'] == 0 )\n\t\t{\n\t\t\t$this->qns['answers']['answer_type'] = $this->allinputs['optiontype'];\n\t\t}\n\n\t\t$this->qns['questionnaire']['active'] = 1;\n\n\t\tif( $this->qns['questionnaire']['has_sub_question'] == 0 ){\n\t\t\t//This code must be skipped if sub_question is 1\n\t\t\t$optionCounter = 0;\n\t\t\tforeach ($this->allinputs as $key => $value) {\n\n\t\t\t\tif( str_is('option_*', $key) ){\n\t\t\t\t\t$optionCounter++;\n\t\t\t\t\t$this->qns['answers'][$optionCounter] = ( $this->qns['answers']['answer_type'] == 'opentext' ) ? 'Offered answer text' : $value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "0f65648c0bfb063aebea1ff2303d4ae1", "score": "0.54706943", "text": "function question()\r\n {\r\n return $this->Question;\r\n }", "title": "" }, { "docid": "10e7ecf9aa040dd64786f1d9350afc18", "score": "0.54635274", "text": "private function get_type() {\n\n\t}", "title": "" }, { "docid": "e4f4d5b8584289b27d1c58823861dadc", "score": "0.54550076", "text": "function get_type()\n { return $this->type;\n }", "title": "" }, { "docid": "eb925dceb6cd6f2a38fe7f2ebc74a598", "score": "0.5452574", "text": "function createQuestion(){\n\t\t\tglobal $db;\n\t\t\tglobal $json;\n\t\t\t\t\t\t\n\t\t\t//Check if type meets minimum requirements\n\t\t\tif($this->type == \"\" || $this->type == null){\n\t\t\t\t$json->invalidMinimumRequirements(\"Type\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t//Checks if type meets our supported types\n\t\t\t\tswitch($this->type){\n\t\t\t\t\tcase \"multipleChoice\":break;\n\t\t\t\t\tcase \"slider\":break;\n\t\t\t\t\tdefault : $json->invalidRequest(); return;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Check if question meets minimum requirements\n\t\t\tif($this->question == \"\" || $this->question == null || strlen($this->question) < 6 || strlen($this->question) > 500){\n\t\t\t\t$json->invalidMinimumRequirements(\"Question\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\t\n\t\t\t$insert = $db->prepare('INSERT INTO question VALUES (DEFAULT, :type, :question)');\n\t\t\t$insert->bindParam(':type', $this->type);\n\t\t\t$insert->bindParam(':question', $this->question);\n\t\t\t\n\t\t\tif($insert->execute()){\n\t\t\t\t$json->created(\"Question\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$json->server();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "57990217dcad5879dc446ae13e430a86", "score": "0.5414103", "text": "final protected function get_type() {\n return $this->type;\n }", "title": "" }, { "docid": "e94a2a716ddec4f61591418b0c73e5b7", "score": "0.5371409", "text": "public function model()\n {\n return Questionario::class;\n }", "title": "" }, { "docid": "77ac9460ffdc129f0b02351e0a0837ec", "score": "0.5370671", "text": "public function getType()\n {\n return $this->hasOne(Type::className(), ['id' => 'type_id']);\n }", "title": "" }, { "docid": "77d2e7c7f3533d4f0db3c06cc87b09b0", "score": "0.5359259", "text": "public function get_type()\n {\n }", "title": "" }, { "docid": "77d2e7c7f3533d4f0db3c06cc87b09b0", "score": "0.53588027", "text": "public function get_type()\n {\n }", "title": "" }, { "docid": "77d2e7c7f3533d4f0db3c06cc87b09b0", "score": "0.5358599", "text": "public function get_type()\n {\n }", "title": "" }, { "docid": "77d2e7c7f3533d4f0db3c06cc87b09b0", "score": "0.53582674", "text": "public function get_type()\n {\n }", "title": "" }, { "docid": "77d2e7c7f3533d4f0db3c06cc87b09b0", "score": "0.53582674", "text": "public function get_type()\n {\n }", "title": "" }, { "docid": "0c918ddf1b9579a4a8c64fed690fba02", "score": "0.534279", "text": "abstract public function getFormType(): ?string;", "title": "" }, { "docid": "b70705aaa15f873cf941f6be11b27746", "score": "0.5340075", "text": "abstract protected function getValidType(): string;", "title": "" }, { "docid": "22ab2f74f6a0ab94a7e4e1c8695276db", "score": "0.53081125", "text": "public function chooseQuestion();", "title": "" }, { "docid": "f34b643c5ff77490263bbebfd5f86e24", "score": "0.5305617", "text": "public function question() {\n return $this->belongTo('App\\Models\\GrammarQuestion', 'engr_questions',\"qid\");\n\n }", "title": "" }, { "docid": "9c8df2ef11275163db22a94aecc21b9f", "score": "0.5302391", "text": "abstract static public function getInputType();", "title": "" }, { "docid": "1299f7075cd6cf8581e7d0bd19081c87", "score": "0.5297264", "text": "public function type()\n {\n return $this->belongsTo(\\App\\Models\\Type\\Type::class, 'type_id');\n }", "title": "" }, { "docid": "981c5fc531b92d20fd919280f31e244d", "score": "0.52873296", "text": "protected function getQuestionHelper()\n {\n return $this->getHelper('question');\n }", "title": "" }, { "docid": "5c0b88ba03bd99d3d339d330b04918d3", "score": "0.52589995", "text": "public function questionTypes()\n {\n return $this->belongsToMany(QuestionType::class, 'answer_question_types')\n ->withPivot(['score', 'factor'])\n ->withTimestamps();\n }", "title": "" }, { "docid": "cc8de1db5dfbe4735937aa6328b59b4c", "score": "0.5258269", "text": "public function generateQuestion()\n\t{\n\t\t//get random question type\n\t\t$type = $this->questionTypes[array_rand($this->questionTypes)];\n\n\t\t//get random section\n\t\t$section = $this->getRandomSection();\n\n\t\t//get random function (within the above section)\n\t\t$function = $this->getRandomFunction($section);\n\n\t\t$question = [];\n\t\t$question['type'] = $type;\n\t\t$question['section'] = $section;\n\t\t$question['function'] = $function;\n\t\t$question['text'] = \"{$section} now, {$this->questionTextPerType[$type]}\";\n\t\t$question['choices'] = [];\n\t\t$question['answer_text'] = '';\n\t\t$question['answer_index'] = '';\t//in ['choices'] array\n\n\n\t\treturn $this->fillQuestion($question);\n\t}", "title": "" }, { "docid": "6486be3ebcd30d64e0570ab0b1d92fc5", "score": "0.52461267", "text": "public function getType()\n { return $this->get('type'); }", "title": "" }, { "docid": "67e0d3a8d270e4f08c829c7c7aff1335", "score": "0.52324164", "text": "public function type()\n {\n return $this->belongsTo('App\\Type');\n }", "title": "" }, { "docid": "40a48706f9b18ab8b7be1763f7a76817", "score": "0.52198434", "text": "function getQuestion()\n {\n $question = QnA_Question::staticGet('id', $this->question_id);\n if (empty($question)) {\n // TRANS: Exception thown when getting a question with a non-existing ID.\n // TRANS: %s is the non-existing question ID.\n throw new Exception(sprintf(_m('No question with ID %s'),$this->question_id));\n }\n return $question;\n }", "title": "" }, { "docid": "37d82b62d2b5cbd364bf1c8a49ce9aba", "score": "0.5218581", "text": "public function getQuestion(): ?Question\n {\n return $this->question;\n }", "title": "" }, { "docid": "af29f00b26ad5b3859f3936b43902b23", "score": "0.52160126", "text": "public function question()\n {\n return $this->belongsTo('App\\Modules\\Models\\Question');\n }", "title": "" }, { "docid": "fe9da92a95f10faa80f2bf7f837d0b0d", "score": "0.5204916", "text": "function getQuestion(){\n\t\t\tglobal $db;\n\t\t\tglobal $json;\n\n\t\t\tif($this->id != 0){\n\t\t\t\t$query = $db->prepare('SELECT * FROM question WHERE Id= :id');\n\t\t\t\t$query->bindParam(':id', $this->id);\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$json->invalidRequest();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t$query->execute();\n\t\t\t\t\n\t\t\t\n\t\t\tif($query->rowCount() > 0){\n\t\t\t\n\t\t\t\tforeach($query as $row) {\n\t\t\t\t\t$this->id = $row['Id'];\n\t\t\t\t\t$this->type = $row['Type'];\n\t\t\t\t\t$this->question = $row['Question'];\n\t\t\t\t\t\n\t\t\t\t\t$result = '{ \"Question\" : { \"Id\" : ' . $row['Id'] . ', \"Type\" : \"' . $row['Type'] . '\", \"Question\" : \"'.$row['Question'].'\"';\n\n\t\t\t\t\tswitch($row['Type']){\n\t\t\t\t\t\tcase \"multipleChoice\": \n\t\t\t\t\t\t\t//Get choices...\n\t\t\t\t\t\t\t$choices = new multipleChoice($row['Id'], $row['Type'], $row['Question'], null);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$result = $result . \",\" . $choices->getChoices();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"slider\":\n\t\t\t\t\t\t\t$slider = new slider($row['Id'], $row['Type'], $row['Question'], null, null);\n\t\t\t\t\t\t\t$slider->getSliderOptions();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$result = $result . ', \"Start\" : ' . $slider->start . ', \"End\" : ' . $slider->end;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn $result . \" } }\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$json->notFound(\"Question\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.5203125", "text": "abstract public function getType();", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.5203125", "text": "abstract public function getType();", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.5203125", "text": "abstract public function getType();", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.5203125", "text": "abstract public function getType();", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.5203125", "text": "abstract public function getType();", "title": "" }, { "docid": "615e8d16c39bb0e581d8a9ef8afbaf47", "score": "0.51953965", "text": "public function type()\n {\n return $this->belongsTo(Type::class);\n }", "title": "" }, { "docid": "615e8d16c39bb0e581d8a9ef8afbaf47", "score": "0.51953965", "text": "public function type()\n {\n return $this->belongsTo(Type::class);\n }", "title": "" }, { "docid": "615e8d16c39bb0e581d8a9ef8afbaf47", "score": "0.51953965", "text": "public function type()\n {\n return $this->belongsTo(Type::class);\n }", "title": "" }, { "docid": "e47ec4e3299ccb10eb9ee7c58e7df6e5", "score": "0.519327", "text": "public function getQuestion()\n {\n // TODO: Implement getQuestion() method.\n }", "title": "" }, { "docid": "8de8a2a2a40092626b05f3b00b455abb", "score": "0.5193", "text": "function type () {\r\n return $this->_type;\r\n }", "title": "" }, { "docid": "9898d692ff55206092fa9c411e4e7c11", "score": "0.518613", "text": "public function type()\n {\n return $this->hasOne(ProductVariationType::class, 'id', 'product_variation_type_id');\n }", "title": "" }, { "docid": "6c29bcd82e8cd484bff2797c37598e23", "score": "0.51859146", "text": "protected abstract function get_meta_type();", "title": "" }, { "docid": "230a7046ad4d31c1c717fffd5c96ba7e", "score": "0.51848686", "text": "function correctAnswerWithTypo() {\n\t}", "title": "" }, { "docid": "40aceadf96e35e6051876b8d4fed6868", "score": "0.5175816", "text": "public function type() {\n\t\tif (isset($this->_options['type'])) {\n\t\t\treturn $this->_options['type'] ;\n\t\t}\n\n\t\tif (isset($this->_data['in']) && is_string($this->_data['in']) && isset($this->_data['value'])) {\n\t\t\tif (is_string($this->_data['in']) && is_array($this->_data['value'])) {\n\t\t\t\treturn 'terms' ;\n\t\t\t}\n\t\t}\n\n\t\treturn $this->_defaultType ;\n\t}", "title": "" }, { "docid": "d5aa19075a945e4203b77c5d914de656", "score": "0.51750064", "text": "public static function validate_type($type) { \n\n switch ($type) {\n\t\t\tcase 'default':\n case 'genre':\n case 'album':\n case 'artist':\n case 'rated':\n\t\t\t\treturn $type; \n break;\n default:\n return 'default';\n break;\n } // end switch\n\t\t\n\t\treturn $type; \n\n\t}", "title": "" }, { "docid": "23f10858e4f2c1f823518dbe6bbb5840", "score": "0.51671565", "text": "public function getRateType() {\n return $this->hasOne(MFLFacilityRateTypes::className(), ['id' => 'rate_type_id']);\n }", "title": "" }, { "docid": "bcbf4756dbfd6d3852120c04558e30e8", "score": "0.516191", "text": "function getQuestionTypeRender($question){\n\t\t//t3lib_div::debug($question);\n\t\t$uid = $question['uid'];\n\t\t$content = '';\n\t\t//$saveString = '';\n\t\t$saveArray = array();\n\n\t\t//get the object for the question\n\t\t$question_obj = $this->getQuestionTypeObject($question);\n\t\tif (is_object($question_obj)){\n\t\t\tif ($question_obj->checkDependancies() AND $this->validated){\n\t\t\t\t$question_obj->validateInput = 1;\n\t\t\t}\n\n\t\t\t$saveArray = $question_obj->getSaveArray();\n\t\t\t//t3lib_div::debug($saveArray,\"getQuestionTypeRender\");\n\t\t\t$content = $question_obj->render();\n\t\t\t//t3lib_div::debug($question_obj);\n\n\t\t\tif ($this->user_id){\n\t\t\t\tforeach ($this->userMarker as $marker => $value){\n\t\t\t\t\t$markerArray[$marker] = $value;\n\t\t\t\t}\n\t\t\t\t$content = $this->cObj->substituteMarkerArrayCached($content, $markerArray, array(), array());\n\t\t\t}\n\n\t\t\t//t3lib_div::debug($content,\"getQuestionTypeRender\");\n\n\t\t\tif (is_array($saveArray[$question['uid']])){\n\t\t\t\t$this->saveArray[$question['uid']] = $saveArray[$question['uid']];\n\t\t\t}\n\t\t}\n\t\t//t3lib_div::debug($content);\n\t\treturn $content;\n\t}", "title": "" }, { "docid": "914eee7b09184c33c6ad83e72c931e79", "score": "0.5154312", "text": "public function type()\n {\n return $this->belongsTo(ObjectType::class, self::FIELD_ID_TYPE, ObjectType::FIELD_ID);\n }", "title": "" }, { "docid": "2e0a69086373490af29909de29e8d45a", "score": "0.5149771", "text": "public function type($type);", "title": "" }, { "docid": "2e0a69086373490af29909de29e8d45a", "score": "0.5149771", "text": "public function type($type);", "title": "" }, { "docid": "f3932b5fc7013b4ac921e37c3b64fca8", "score": "0.5143946", "text": "protected abstract function getType();", "title": "" }, { "docid": "f3932b5fc7013b4ac921e37c3b64fca8", "score": "0.5143946", "text": "protected abstract function getType();", "title": "" }, { "docid": "38e5e50f44278f433b119f5e4648b7d8", "score": "0.51149625", "text": "public function type(){\n\t\treturn $this->type;\n\t}", "title": "" }, { "docid": "671624173d0432df3b9b10ab96738a65", "score": "0.5105301", "text": "function getType() { \n\t\treturn $this->_type; \n\t}", "title": "" }, { "docid": "3e947ca28f7cd0f69f6dee318a558862", "score": "0.5102633", "text": "abstract protected function getModelType();", "title": "" }, { "docid": "52960bd910786ee61fa746786d3c2bd6", "score": "0.50918657", "text": "protected function current_question(): \\question_definition {\n return $this->quba->get_question($this->slot);\n }", "title": "" }, { "docid": "38278b61b8dc6348ed94d95faf8573d7", "score": "0.50886065", "text": "public function type()\n\t{\n\t\treturn $this->belongsTo(\n\t\t\t'Lainga9\\BallDeep\\app\\PostType',\n\t\t\t'post_type_id'\n\t\t);\n\t}", "title": "" }, { "docid": "3e8ff0465128f50818af9e47e10c3eaa", "score": "0.50882024", "text": "public function type(){\n return $this->hasOne('App\\Type', 'id', 'id_type');\n }", "title": "" }, { "docid": "df29030f4c4d2edede07822dfa71cb1d", "score": "0.5085695", "text": "public function setQuestion(Question $question);", "title": "" }, { "docid": "f7ca15cd9caf2c62d426c4a05afd9f96", "score": "0.50840354", "text": "public function getShowType()\n {\n return $this->hasOne(TvShowType::className(), ['id' => 'show_type_id']);\n }", "title": "" }, { "docid": "7eca7e23f1f47ec58ffd411cc1794b7c", "score": "0.5081936", "text": "function getObjectType() {\n\t\t$this->hr();\n\t\t$this->out(__(\"Select an object type:\", true));\n\t\t$this->hr();\n\n\t\t$keys = array();\n\t\tforeach ($this->classTypes as $key => $option) {\n\t\t\t$this->out(++$key . '. ' . $option);\n\t\t\t$keys[] = $key;\n\t\t}\n\t\t$keys[] = 'q';\n\t\t$selection = $this->in(__(\"Enter the type of object to bake a test for or (q)uit\", true), $keys, 'q');\n\t\tif ($selection == 'q') {\n\t\t\treturn $this->_stop();\n\t\t}\n\t\treturn $this->classTypes[$selection - 1];\n\t}", "title": "" }, { "docid": "df09a830f1f28935fb5482f605ce8a84", "score": "0.50815123", "text": "public function getQuestionFromInput() {\n return parent::getQuestionFromInput();\n }", "title": "" }, { "docid": "ecfb7b58d2921e905ba86ab5ad7a7c9e", "score": "0.5080997", "text": "public function get_type()\n {\n return $this->type;\n }", "title": "" }, { "docid": "ecfb7b58d2921e905ba86ab5ad7a7c9e", "score": "0.5080997", "text": "public function get_type()\n {\n return $this->type;\n }", "title": "" }, { "docid": "e007d49a019fea979427cb7aae4b8d1a", "score": "0.50787807", "text": "public function getType()\n {\n return $this->type = $this->get()->post_type;\n }", "title": "" } ]
2ddd24afc10639725fbd10f2431f476f
Clear all ACL settings before starting tests.
[ { "docid": "ff42867f9ed55bf0b3d3e1c506e94d80", "score": "0.6548834", "text": "public static function setUpBeforeClass()\n { \n foreach (AclResource::find() as $resource) {\n $resource->delete();\n }\n foreach (AclRole::find() as $role) {\n $role->delete();\n }\n $resource = new AclResource;\n $resource->create([\n 'name' => Resource::WILDCARD,\n 'description' => 'All in all (built-in)',\n ]);\n (new AclResourceAccess)->create([\n 'name' => Resource::ACCESS_WILDCARD,\n 'description' => 'All in all (built-in)',\n 'acl_resource_id' => $resource->id\n ]);\n }", "title": "" } ]
[ { "docid": "e2f638ad8cac34b748c552f9ce5c1606", "score": "0.7197223", "text": "public function clearAllACLFlags() {\n\t\t$this->flags = 0;\n\t}", "title": "" }, { "docid": "39af87db638b633144979d6b19b970aa", "score": "0.63984406", "text": "public function setUp() {\n Config::set(null);\n }", "title": "" }, { "docid": "3c6d8b2761e2eea2869f41a8b6f078ea", "score": "0.6375142", "text": "private function _reset()\n {\n $this->config->reset();\n }", "title": "" }, { "docid": "824d00ddb424f03a8aa92da1d7b4cc59", "score": "0.63250566", "text": "public function setUp() {\n $this->resetAfterTest();\n }", "title": "" }, { "docid": "819720c4431ee67e58240e01f0af4bad", "score": "0.6297341", "text": "public function setUp() {\n $this->resetAfterTest(true);\n }", "title": "" }, { "docid": "819720c4431ee67e58240e01f0af4bad", "score": "0.6297341", "text": "public function setUp() {\n $this->resetAfterTest(true);\n }", "title": "" }, { "docid": "48a77d13b5ca599a715ad7cfac4f6d5c", "score": "0.61751884", "text": "protected function clear() {\n\t\t$this->args = array();\n\t\t$this->settings = array();\n\t}", "title": "" }, { "docid": "14bfb2ab7ddaf260708169169d115fe1", "score": "0.61657023", "text": "protected function setUp()\n {\n $this->getProxy()->clear();\n }", "title": "" }, { "docid": "f4546b0be944225513014f7cbf1ee900", "score": "0.61626655", "text": "protected function tearDown()\n {\n // Clear it after each test so that if config is loaded in one test it\n // does not affect subsequent tests.\n ToggleConfig::clear();\n }", "title": "" }, { "docid": "d94aaebc106390a36572452e120317b5", "score": "0.6161109", "text": "public function clearAll() \n {\n\t\tunset($this->identity_id);\n\t\tunset($this->module);\n\t\tunset($this->site_id);\n }", "title": "" }, { "docid": "3a02a7070bf1750563aa6468177c9466", "score": "0.61238164", "text": "public function reset()\n {\n /** @var Session */\n $session = $this->grav['session'];\n unset($session->oauth);\n $this->storage->clearAllTokens();\n $this->storage->clearAllAuthorizationStates();\n }", "title": "" }, { "docid": "91847b6ff1c0615bd650f6e3957644fb", "score": "0.6101546", "text": "public function tearDown()\n\t{\n\t\t$_SERVER['auth.login.stub'] = null;\n\t\tCookie::$jar = array();\n\t\tConfig::$items = array();\n\t\tAuth::driver()->user = null;\n\t\tSession::$instance = null;\n\t\tConfig::set('database.default', 'mysql');\n\t}", "title": "" }, { "docid": "723ee72e953194b4d657b64c1463391e", "score": "0.6098654", "text": "function clear_auths() {\n\t\t# Global Variables\n\t\tglobal $_db;\n\n\t\t# Clear out Allowed Functions\n\t\t$_db->delete(\"functions_users\", \"user\", $this->uid);\n\t}", "title": "" }, { "docid": "bb31edd0142b09407a52fc5b53e84a1e", "score": "0.60938245", "text": "public function clear()\n {\n $this->configuration = [];\n $this->args = [];\n $this->setDefaults();\n }", "title": "" }, { "docid": "01f137caf03bdc9fbeb3a9988771533d", "score": "0.6091804", "text": "public function setUp() {\n\t\tparent::setUp();\n\t\tclearstatcache();\n\t}", "title": "" }, { "docid": "e1775121e654a097e963a7d3e0d706fb", "score": "0.6086649", "text": "public function setUp() {\n parent::setUp();\n \n $this->getDaoContainer()->removeAll();\n }", "title": "" }, { "docid": "e1775121e654a097e963a7d3e0d706fb", "score": "0.6086649", "text": "public function setUp() {\n parent::setUp();\n \n $this->getDaoContainer()->removeAll();\n }", "title": "" }, { "docid": "bd08096b46d17fd7b00a250bff10b0a8", "score": "0.6080741", "text": "public function tearDown()\n\t{\n\t\tunlink (static::LDAP_CONFIG_FILE);\n\t\tunlink (static::PLATFORM_CONFIG_FILE);\n\t\tunlink (static::LDAP_BAD_CONFIG_FILE);\n\t\t//$this->restoreFactoryState();\n\t}", "title": "" }, { "docid": "3c6963360c6c35ec55fce96310c371de", "score": "0.6080152", "text": "protected function _reset_security_config()\n {\n clearos_profile(__METHOD__, __LINE__);\n\n // TODO: just inject the LDAP parameters instead of stomping\n // on security.xml.\n\n $file = new File(clearos_app_base('openfire') . '/deploy/security.xml');\n $file->copy_to(self::FILE_SECURITY_CONFIG);\n\n $file = new File(self::FILE_SECURITY_CONFIG);\n $file->chown('openfire', 'openfire');\n }", "title": "" }, { "docid": "05070fb61b770a4dd838f42b9b8ce77d", "score": "0.6073935", "text": "public function setUp()\n\t{\n\t\t$_SERVER['auth.login.stub'] = null;\n\t\tCookie::$jar = array();\n\t\tConfig::$items = array();\n\t\tAuth::driver()->user = null;\n\t\tSession::$instance = null;\n\t\tConfig::set('database.default', 'sqlite');\n\t}", "title": "" }, { "docid": "aea389c01675e6d428e51d21634a6990", "score": "0.60577416", "text": "public function setUp() {\n parent::setUp();\n $this->resetAfterTest();\n }", "title": "" }, { "docid": "0dced65f4d08e6ab7a76c1f832f74ba2", "score": "0.60484254", "text": "function clearAll()\n\t{\n\t\t$this->pSettings->set('paypal', NULL, 'paypal');\n\t\t$this->settings = array();\n\t}", "title": "" }, { "docid": "f6ebbdde62020764562cf459bc0a0044", "score": "0.60468584", "text": "public function resetAll()\n {\n add_action('admin_post_wpm2aws-reset-all-settings', array($this, 'removeTempZipDirs'));\n add_action('admin_post_wpm2aws-reset-all-settings', array($this, 'clearAllSavedOptions'));\n }", "title": "" }, { "docid": "00a8b765eac1e7c803e4461e785af148", "score": "0.603481", "text": "public function resetAuthorizations();", "title": "" }, { "docid": "719bb816cdc9360c11a4d1b584a0b93e", "score": "0.59991443", "text": "public function clear()\n {\n $this->allRoles = [];\n }", "title": "" }, { "docid": "2c6353960c8d7e36f815f4e118dd38c0", "score": "0.5996814", "text": "public function setUp(): void\n {\n parent::setUp();\n\n // disable auth and acl\n Shopware()->Plugins()->Backend()->Auth()->setNoAuth();\n Shopware()->Plugins()->Backend()->Auth()->setNoAcl();\n }", "title": "" }, { "docid": "d1b47b3ce0050378bf79c7c17dc0be40", "score": "0.59919256", "text": "protected function setUp():void\n {\n parent::setUp();\n foreach (static::$browsers as $browser) {\n $browser->driver->manage()->deleteAllCookies();\n }\n }", "title": "" }, { "docid": "d1b47b3ce0050378bf79c7c17dc0be40", "score": "0.59919256", "text": "protected function setUp():void\n {\n parent::setUp();\n foreach (static::$browsers as $browser) {\n $browser->driver->manage()->deleteAllCookies();\n }\n }", "title": "" }, { "docid": "d1b47b3ce0050378bf79c7c17dc0be40", "score": "0.59919256", "text": "protected function setUp():void\n {\n parent::setUp();\n foreach (static::$browsers as $browser) {\n $browser->driver->manage()->deleteAllCookies();\n }\n }", "title": "" }, { "docid": "d1b47b3ce0050378bf79c7c17dc0be40", "score": "0.59919256", "text": "protected function setUp():void\n {\n parent::setUp();\n foreach (static::$browsers as $browser) {\n $browser->driver->manage()->deleteAllCookies();\n }\n }", "title": "" }, { "docid": "4ca37d0d7bad5a4b31b3f06f545e4029", "score": "0.5972305", "text": "protected function setUp() {\n parent::setUp();\n $this->resetAfterTest(true);\n }", "title": "" }, { "docid": "1d1235065ae74410499991a816fa225d", "score": "0.5955293", "text": "protected function setUp(): void\n {\n static::$queue->clear();\n }", "title": "" }, { "docid": "162edd48183fe27f3db72ed873f6d372", "score": "0.5908311", "text": "public function setAllACLFlags() {\n\t\t$this->flags = CryptUser::ACL_ALL_FLAGS;\n\t}", "title": "" }, { "docid": "540c402c229185cb2db26d888f1e863a", "score": "0.5905666", "text": "protected function setUp() {\n\t\tparent::setUp ();\n\t\t$this->removeData();\n\t}", "title": "" }, { "docid": "4d5c31d5d4b187b560db4cc43c8c76ef", "score": "0.58888644", "text": "public function testReset()\n {\n $this->_role->load('pmjones');\n $expect = array('admin', 'root');\n $actual = $this->_role->list;\n $this->assertEquals($actual, $expect);\n \n // reset to empty\n $this->_role->reset();\n $expect = array();\n $actual = $this->_role->list;\n $this->assertEquals($actual, $expect);\n }", "title": "" }, { "docid": "6672f6425998d09904dfb22741029bb1", "score": "0.58821166", "text": "protected function tearDown() {\n\t\t$this->assertNoLogEntries();\n\n\t\t$this->expectedLogEntries = 0;\n\n\t\t$GLOBALS['TCA'] = $this->originalTca;\n\t\tunset($this->originalTca);\n\n\t\t$GLOBALS['TYPO3_CONF_VARS'] = $this->originalConvVars;\n\t\tunset($this->originalConvVars);\n\n\t\t$GLOBALS['BE_USER'] = $this->originalBackendUser;\n\t\tunset($this->originalBackendUser);\n\t\tunset($this->backendUser);\n\n\t\tunset($GLOBALS['T3_VAR']['getUserObj']);\n\n\t\tt3lib_div::purgeInstances();\n\t\t$this->dropDatabase();\n\t}", "title": "" }, { "docid": "b059094f946a9565a9af291fe7203797", "score": "0.5873274", "text": "protected function tearDown()\n {\n Tinebase_Container::getInstance()->setGrants($this->_container, $this->_originalGrants, TRUE);\n }", "title": "" }, { "docid": "0366dd18e4bf3d9fe567d76cffa99e39", "score": "0.5865013", "text": "protected function tearDown()\n {\n // reset extconf cache\n \\DMK\\Mklog\\Factory::getConfigUtility()->getExtConf()->setProperty(array());\n }", "title": "" }, { "docid": "67ce5138be7c72178245695d1460d8dc", "score": "0.5864172", "text": "public function setUp()\n\t{\n\t\tDB::table('users')->delete();\n\t}", "title": "" }, { "docid": "c2ebb03c0728d81de424e9490bae6e4b", "score": "0.5858802", "text": "public function reset()\n {\n \\delete_option('swiftype_api_key');\n \\delete_option('swiftype_engine_slug');\n \\delete_option('swiftype_language');\n \\delete_option('swiftype_facet_config');\n }", "title": "" }, { "docid": "6b738deb24bd1846a2c7315392571891", "score": "0.58552265", "text": "public static function reset(): void\n {\n static::$_registry = null;\n static::$_config = [];\n static::$_dirtyConfig = true;\n static::$_queuers = [];\n }", "title": "" }, { "docid": "b9ca34c813b5095b930cd64646527111", "score": "0.5822482", "text": "public function reset()\n\t{\n\t\t$this->settings = $this->default_settings;\n\t}", "title": "" }, { "docid": "d9631422e28346b027092302d22f2a64", "score": "0.58185947", "text": "public function setUp(): void\n {\n putenv('TEST_MODE=true');\n parent::setUp();\n\n // Unset the Object Manager property to prevent serialization errors in case a failure occurs\n unset($this->objectManager);\n }", "title": "" }, { "docid": "a56eddaa1d87eb1e861486992e2b9dad", "score": "0.581265", "text": "public function clearDefaults()\n {\n $this->area = [];\n $this->dir = null;\n $this->auth = null;\n $this->skin = null;\n $this->get_inputs = [];\n $this->post_inputs = [];\n $this->common = [];\n $this->path_extension = false;\n $this->extractable_json = false;\n }", "title": "" }, { "docid": "5836b34d49d59428dcbd6049abcf9d5b", "score": "0.5810337", "text": "function admin_clear()\n {\n\t $this->is_error = FALSE;\n\t $this->admin_exists = FALSE;\n\t $this->admin_super = FALSE;\n\t $this->admin_salt = NULL;\n\t $this->admin_info = array();\n\t}", "title": "" }, { "docid": "2e9103095b4b8e95c7a7514444c26a52", "score": "0.5807975", "text": "protected function tearDown(): void\n {\n WindowsAuthenticate::$guards = null;\n WindowsAuthenticate::$serverKey = 'AUTH_USER';\n WindowsAuthenticate::$username = 'samaccountname';\n WindowsAuthenticate::$domainVerification = true;\n WindowsAuthenticate::$logoutUnauthenticatedUsers = false;\n WindowsAuthenticate::$rememberAuthenticatedUsers = false;\n WindowsAuthenticate::$userDomainExtractor = null;\n WindowsAuthenticate::$userDomainValidator = UserDomainValidator::class;\n\n parent::tearDown();\n }", "title": "" }, { "docid": "098f894c51bb9838693eab49341bfd4c", "score": "0.58018667", "text": "private function resetConfiguration()\n\t{\n\t\tConfiguration::updateValue('LOYALTYLION_TOKEN', null);\n\t\tConfiguration::updateValue('LOYALTYLION_SECRET', null);\n\t}", "title": "" }, { "docid": "adeeb4bf22a079dc20bd82e666f4295d", "score": "0.5799517", "text": "protected function setUp(): void\n {\n TestHelpers::setStaticProperty(Request::class, 'current_action', null);\n }", "title": "" }, { "docid": "5f3bcbbc7d890c094f65277cc341c331", "score": "0.5787375", "text": "public function configure()\n {\n unset(\n $this['is_active'],\n $this['is_super_admin'],\n $this['updated_at'],\n $this['groups_list'],\n $this['permissions_list'],\n $this['last_login'],\n $this['created_at'],\n $this['salt'],\n $this['algorithm'],\n $this['username'],\n $this['password']\n );\n \n }", "title": "" }, { "docid": "705454e96da1702ff967f227d67928bb", "score": "0.5784112", "text": "public static function clearAll()\n\t{\n\t\tstatic::init();\n\n\t\tforeach ($_SESSION as $k => $v)\n\t\t{\n\t\t\tunset($_SESSION[$k]);\n\t\t}\n\t}", "title": "" }, { "docid": "0d7528f9a8d3ef574195467d7015a7a4", "score": "0.57776684", "text": "public function tearDown() {\n $this->checklist = null;\n }", "title": "" }, { "docid": "4835b7c093b22a837ef6f910b195efd1", "score": "0.5773004", "text": "protected function setUp()\n {\n $this->testDbConnector = new Test_DB_Connector();\n $this->testDbConnector->clearDataFromTables();\n \n }", "title": "" }, { "docid": "14dd512fd4e7ccbead3a123fb5c22afc", "score": "0.5765217", "text": "public function reset() {\n $this->usercounter = 0;\n $this->categorycount = 0;\n $this->coursecount = 0;\n $this->blockcount = 0;\n $this->modulecount = 0;\n }", "title": "" }, { "docid": "d7fbfda5903cb1969dcf614e88f8a845", "score": "0.57602644", "text": "protected function resetTestingState() {\n $this->queue->deleteQueue();\n $this->state->set('cron_test.message_logged', FALSE);\n $this->state->set('cron_test.requeue_count', NULL);\n }", "title": "" }, { "docid": "4a36689c4899a4bc6a7822f3fcf94df6", "score": "0.57591695", "text": "protected function tearDown(): void\n {\n $GLOBALS['TCA']['pages']['columns']['storage_pid']['config']['minitems'] = '0';\n }", "title": "" }, { "docid": "aac8d7c85e0b769d0d231675bdbc15c1", "score": "0.5753031", "text": "protected function setUp(): void\n {\n // resets some env\n app(Environment::class)\n ->overloadEnv('.fwd')\n ->overloadEnv('.fwd.testing');\n\n parent::setup();\n\n $this->mockCommandExecutor();\n\n // resets intended execution user\n $this->setAsUser(null);\n }", "title": "" }, { "docid": "c814b598e0dcfd975c5e0448783858ef", "score": "0.575178", "text": "public function reset()\n\t{\n\t\t$this->_storage_locations = array();\n\t\t$this->_config = array(\n\t\t\t'db_config' => array(),\n\t\t\t'array_config' => array(),\n\t\t\t'initialized' => false\n\t\t);\n\t\tif(null !== $this->_cacheAdapter)\n\t\t{\n\t\t\t$this->_cacheAdapter->remove($this->_id);\n\t\t}\n\t}", "title": "" }, { "docid": "ea9dd8ee87364206c169dca52578ebb0", "score": "0.5746739", "text": "public function tearDown()\n {\n Auth::logout();\n parent::tearDown();\n $this->artisanMigrateReset();\n\n self::$friendController = null;\n self::$currentUser = null;\n }", "title": "" }, { "docid": "9ca23a6d340e2c3e86d4045a4f2634fb", "score": "0.5746558", "text": "public function tearDown()\n {\n $fs = new SymfonyFileSystem();\n $fs->remove($this->fakeCacheFileDir);\n $fs->remove($this->fakeProjectFileDir);\n\n unset($this->fetch);\n unset($this->fs);\n unset($this->config);\n unset($this->zippy);\n unset($this->finderFactory);\n unset($this->finder);\n }", "title": "" }, { "docid": "baa0d881f4255926e70819274f3fbb16", "score": "0.5742681", "text": "public function reset()\r\n {\r\n self::log()->addDebug('reset()');\r\n $this->user = array('user_id'=>2,'display_name'=>'unknown','username'=>'unknown');\r\n $this->roles = array();\r\n $this->perms = array();\r\n $this->groups = array();\r\n $this->pages = array();\r\n }", "title": "" }, { "docid": "454fc09f98950cc0d1bdee6b8318bdff", "score": "0.5736175", "text": "public static function reset()\n {\n self::$_modules = array();\n self::$_mode = self::MODE_DEBUG;\n \n self::disable_autoload();\n self::disable_error_handling();\n \n self::$_autoload_enabled = false;\n self::$_error_handling_enabled = false;\n }", "title": "" }, { "docid": "65ea063b80fd84fbb469503c42075c8b", "score": "0.5735768", "text": "protected function clearCache(): void\n {\n $caches = [\n 't3lib_l10n',\n 'l10n',\n ];\n /** @var CacheManager $cacheManager */\n $cacheManager = GeneralUtility::makeInstance(CacheManager::class);\n foreach ($caches as $name) {\n try {\n $cache = $cacheManager->getCache($name);\n if ($cache) {\n $cache->flush();\n }\n } catch (\\Exception $ex) {\n // Catch is empty, because we want to avoid exceptions in this process\n }\n }\n }", "title": "" }, { "docid": "7f3935f5996dc124697420370f461be0", "score": "0.5735399", "text": "public function tearDown()\n\t{\n\t\tunset($this->user);\n\t\t$this->be(null);\n\n\t\tunset($_SERVER['orchestra.publishing']);\n\n\t\t$base_path = path('base');\n\t\tset_path('app', $base_path.'application'.DS);\n\t\tset_path('orchestra.extension', $base_path.'bundles'.DS);\n\t\t\n\t\tparent::tearDown();\n\t}", "title": "" }, { "docid": "f9af805ed8bbd51b7087a4a56ba2a329", "score": "0.57351", "text": "protected function tearDown(): void\n {\n static::cleanEnvsAndConfigs();\n }", "title": "" }, { "docid": "67c3824315e434e273e1edf84fe6c39f", "score": "0.5731404", "text": "protected function tearDown(): void\n {\n $finder = rex_finder::factory(rex_path::addonCache('structure'))\n ->recursive()\n ->childFirst()\n ->ignoreSystemStuff(false);\n rex_dir::deleteIterator($finder);\n\n // reset static properties\n $class = new ReflectionClass(rex_article::class);\n $classVarsProperty = $class->getProperty('classVars');\n $classVarsProperty->setValue(null);\n\n rex_article::clearInstancePool();\n }", "title": "" }, { "docid": "64384699a583ec701475a8d804483ce8", "score": "0.5717283", "text": "public static function clear()\n {\n self::$config = null;\n }", "title": "" }, { "docid": "b3f229b4ab98090ec5e09b6459e61441", "score": "0.5716086", "text": "public function resetCache()\n {\n $this->getLocalSettingCacheService()->clearForIdentifier($this->currentUserIdentifier);\n DataClassCache::truncate(UserSetting::class_name());\n $this->localSettings = $this->getLocalSettingCacheService()->getForUserIdentifier($this->currentUserIdentifier);\n }", "title": "" }, { "docid": "3f27e7bd928fbdcb0fc71ece1dad3448", "score": "0.5715405", "text": "protected function clearAuth(): void\n {\n $authGuard = Auth::guard('api');\n\n $reflection = new \\ReflectionProperty(get_class($authGuard), 'user');\n $reflection->setAccessible(true);\n $reflection->setValue($authGuard, null);\n }", "title": "" }, { "docid": "22550925b5668a97413005bf0ade1851", "score": "0.571456", "text": "public function resetAll() {\n\t\t$this->session->remove($this, true); \n\t}", "title": "" }, { "docid": "181e97cbaff72f31d9142df649dc28cc", "score": "0.5708997", "text": "public function clearAll()\n\t{\n\t\t$this->clearAllImagePicker();\n\t\t$this->clearAllTool('content');\n\t\t$this->clearAllTool('form');\n\t}", "title": "" }, { "docid": "8bed05f20e12564d14c91c5e08e4304c", "score": "0.570835", "text": "protected function setUp() {\n // so we can test the removing of related objects.\n global $DB;\n $DB->execute('ALTER TABLE {course_completions} ALTER COLUMN userid DROP NOT NULL');\n $this->resetAfterTest();\n $this->gen = $this->getDataGenerator();\n }", "title": "" }, { "docid": "f4b9eeda5c7b0b38d87d92eb8bf2c9c0", "score": "0.57026863", "text": "public function tearDown() {\n $this->manager = null;\n $this->container = null;\n }", "title": "" }, { "docid": "fe938b339f9c1217ff07a906dc35ff6f", "score": "0.56949186", "text": "protected function resetSettings()\n {\n $this->line('Configuring system settings..');\n\n settings([\n 'logo.light' => '/imgs/logo_light.png',\n 'logo.dark' => '/imgs/logo_dark.png',\n 'favicon' => '/imgs/favicon.ico',\n 'hero.image' => '/svg/devices.svg',\n 'hero.heading' => 'Team Collaboration Platform',\n 'hero.subheading' => 'A better way to collaborate with your team to get things done faster. Sign up to get started',\n 'pricing.heading' => 'The Right Price for You',\n 'pricing.subheading' => 'Lorem ipsum dolor sit amet consect adipisicing elit. Possimus magnam voluptatum cupiditate veritatis in accusamus quisquam.',\n 'features.heading' => 'A better way to collaborate',\n 'features.subheading' => 'Lorem ipsum dolor sit amet consect adipisicing elit. Possimus magnam voluptatum cupiditate veritatis in accusamus quisquam.',\n 'webhook.secret' => '30a9edf0-3af1-41eb-a24d-9e35bd2fb717',\n 'terms_and_conditions.published' => true,\n 'terms_and_conditions.content' => faker()->paragraphs(20, true),\n 'privacy_policy.published' => true,\n 'privacy_policy.content' => faker()->paragraphs(20, true),\n ]);\n\n $this->info('Configured system settings');\n }", "title": "" }, { "docid": "6e3e6ffc5d3f4e636dc9ce74bc006a53", "score": "0.568107", "text": "public function clearAuthorizations(): void {\n $this->processedAuthorizations = [];\n }", "title": "" }, { "docid": "8d51aadae2684a5cb9b94e6ab0dff77e", "score": "0.5677342", "text": "protected function setUp() {\n\t\t$this->expectedLogEntries = 0;\n\n\t\t$this->originalTca = $GLOBALS['TCA'];\n\n\t\t$this->originalBackendUser = clone $GLOBALS['BE_USER'];\n\t\t$this->backendUser = $GLOBALS['BE_USER'];\n\t\t$this->backendUser->workspace = 0;\n\t\t$this->fixBackendUser();\n\n\t\t$this->originalConvVars = $GLOBALS['TYPO3_CONF_VARS'];\n\t\t$GLOBALS['TYPO3_CONF_VARS']['SYS']['sqlDebug'] = 1;\n\n\t\t$this->initializeDatabase();\n\t\t$this->fixReleatedExtensions();\n\n\t\t$this->flushCaches();\n\t}", "title": "" }, { "docid": "22fecb987a767612766355b98a09c2a1", "score": "0.56737745", "text": "public function flushAll()\n {\n if (null !== $this->cache) {\n foreach ($this->config as $config) {\n if (array_key_exists('cacheKey', $config)) {\n $this->app[$this->cache]->delete($config['cacheKey']);\n }\n }\n }\n\n $this->config = [];\n }", "title": "" }, { "docid": "cc73ad6a3468ebc36ac8e3aa2f701c68", "score": "0.56735486", "text": "public function tearDown()\n {\n $CI =& get_instance();\n $this->db->truncate('crm_users');\n\n parent::tearDown();\n }", "title": "" }, { "docid": "36552fd0448d61c04df63f3154859942", "score": "0.566962", "text": "protected function tearDown()\n {\n $oActShop = $this->getConfig()->getActiveShop();\n $oActShop->setLanguage(0);\n oxRegistry::getLang()->setBaseLanguage(0);\n $this->cleanUpTable('oxuser');\n $this->cleanUpTable('oxorderarticles');\n $this->cleanUpTable('oxarticles');\n\n $this->cleanUpTable('oxremark', 'oxparentid');\n\n parent::tearDown();\n }", "title": "" }, { "docid": "88033699f424071a4ed23b804e3ab424", "score": "0.56575793", "text": "public function clearConfigCache()\n {\n $this->cacheTypeList->cleanType(self::CACHE_TYPECODE_CONFIG);\n foreach ($this->cacheFrontendPool as $cacheFrontend) {\n $cacheFrontend->getBackend()->clean();\n }\n }", "title": "" }, { "docid": "b08ea1c68f17df4cb79c2929cf57ffb2", "score": "0.5645617", "text": "public function setUp()\n {\n parent::setUp();\n\n $this->acl = $this->setUpAclSignes();\n }", "title": "" }, { "docid": "2fe4b0d862b8f7681dfca0e5d14afa60", "score": "0.5644541", "text": "public function setUp(): void\n {\n parent::setUp();\n\n $this->manager = Shopware()->Models();\n $this->repository = Shopware()->Models()->getRepository(Category::class);\n\n // Disable auth and acl\n Shopware()->Plugins()->Backend()->Auth()->setNoAuth();\n Shopware()->Plugins()->Backend()->Auth()->setNoAcl();\n }", "title": "" }, { "docid": "4e53e6279466cc1043ee632fc1d3147e", "score": "0.5639329", "text": "public static function reset()\n {\n self::$authKey = null;\n\n self::$currency = null;\n self::$customHeaders = [];\n self::$hostname = self::DEFAULT_HOST_NAME;\n self::$language = self::DEFAULT_LANGUAGE;\n }", "title": "" }, { "docid": "adf2fbd4988ff60a805762e4bdabc7e5", "score": "0.5635819", "text": "private function reset()\r\n {\r\n $this->feed = null;\r\n $this->feedViewId = null;\r\n $this->type = null;\r\n $this->isFeedLock = false;\r\n $this->lockedTime = null;\r\n $this->uploadedFeedSize = 0;\r\n $this->resetFileManager()\r\n ->resetConnectorManager();\r\n }", "title": "" }, { "docid": "5f5bab316bc2ac02513d5d22f9a4b96f", "score": "0.56333584", "text": "protected function tearDown()\n {\n $this->oAuth = null;\n parent::tearDown();\n }", "title": "" }, { "docid": "8517ee4fafb41b3c3d2829381706cc21", "score": "0.5633186", "text": "public function tearDown()\n {\n $this->clearRequest();\n $this->clearTmpFiles();\n }", "title": "" }, { "docid": "0f0744ee65470fcb63661c69712698ce", "score": "0.5632839", "text": "private function clearApc()\r\n {\r\n if($this->isInstalled(self::CACHE_ENGINE_APC)){\r\n $apcInfo = \\apc_cache_info();\r\n foreach($apcInfo['entry_list'] as $entry) {\r\n if(false !== strpos($entry['key'], $this->getCachePrefix()))\r\n \\apc_delete($entry['key']);\r\n }\r\n \\apc_clear_cache(); // this only deletes the cached files\r\n }\r\n }", "title": "" }, { "docid": "f4767cc36a956aca93612cf367f6bf64", "score": "0.5628144", "text": "protected function setUp(): void\n {\n parent::setUp();\n\n $this->disposable()->flushStorage();\n $this->disposable()->flushCache();\n }", "title": "" }, { "docid": "6cbf72cb409155bbb2d49bfc690cb10c", "score": "0.5622159", "text": "protected function tearDown(): void\n {\n $this->cleanUpTable('oxlinks');\n $this->cleanUpTable('oxorder');\n $this->cleanUpTable('oxcontents');\n $this->cleanUpTable('oxobject2category');\n\n if (isset($_POST['oxid'])) {\n unset($_POST['oxid']);\n }\n\n $this->getConfig()->setGlobalParameter('ListCoreTable', null);\n\n parent::tearDown();\n }", "title": "" }, { "docid": "7497e9b2becb8fe4c602a44ef1a22262", "score": "0.56206745", "text": "public function clearAll();", "title": "" }, { "docid": "de40f9db7e1fab75b1572eb1e6d87e68", "score": "0.5620099", "text": "public function resetWebAuthorizations();", "title": "" }, { "docid": "dafe32ecbc0e9d794f143b2f2b8c4248", "score": "0.56101006", "text": "protected function tearDown(): void\n {\n $this->instance = null;\n $this->container = null;\n $this->config = null;\n $this->layerReflector = null;\n $this->tokenTool = null;\n }", "title": "" }, { "docid": "c0d1855f7208d93b55f000be820ef110", "score": "0.5602022", "text": "public function tearDown()\r\n {\r\n\r\n // clear cache\r\n $this->setUpFiles();\r\n }", "title": "" }, { "docid": "182c6e850a1a34287d21bcaa8dee40e6", "score": "0.56008613", "text": "private function _clearTemp()\n\t{\n\t\t// Compile dir\n\t\t$sTempDir = $this->getConfig()->getConfigParam('sCompileDir');\n\t\t\n\t\t// tmp\n\t\t$this->_clearDir($sTempDir);\n\t\t\n\t\t// tmp/smarty\n\t\t$this->_clearDir($sTempDir.'/smarty/');\n\t\t\n\t\t// Create new .htaccess\n\t\t$oFile = fopen($sTempDir.'/.htaccess','w+');\n\t\tfwrite($oFile,'Deny From All');\n\t\tfclose($oFile);\n\t\t\n\t\t// Set Success Flag\n\t\t$this->_blIsSuccessful = true;\n\t}", "title": "" }, { "docid": "1fd656bcb75d9aff02d08765bce2299a", "score": "0.5596495", "text": "public function clearRules()\r\n {\r\n $this->harvestRules = array();\r\n }", "title": "" }, { "docid": "60396b84d9dfac2f3850df68c8e2254a", "score": "0.5595366", "text": "public function tearDown()\n {\n parent::tearDown();\n $this->account = null;\n unset($this->account);\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "503264f10eda88f83603dc1953b26976", "score": "0.5594718", "text": "public function reset()\n {\n $this->values[self::share_configs] = array();\n }", "title": "" }, { "docid": "34996c501f925c43bbf97a7802fe760b", "score": "0.5593183", "text": "public function reset() {\n $this->_modules = array();\n $this->_patterns = array();\n }", "title": "" }, { "docid": "071544b405a84a8e898874ca2250e0e3", "score": "0.55919147", "text": "protected function tearDown()\n {\n $this->categoryAdminController = null;\n parent::tearDown();\n }", "title": "" }, { "docid": "5ccffbbfc00c800c86dc6a3b429dff58", "score": "0.5591141", "text": "private function resetServices()\n {\n foreach ($this->resettableServices as $service) {\n $service->reset();\n }\n }", "title": "" }, { "docid": "be8d11f57c376152fce553d710d9c1f1", "score": "0.55861485", "text": "public static function tearDownAfterClass(): void\n {\n unlink('/tmp/usuarios.txt');\n }", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "b1a357ac4435c144a8e787acc5c259ab", "score": "0.0", "text": "public function store(Request $request)\n {\n //\n // return 'this is add method';\n // dd($request->all());\n $todo = new Todo;\n $todo->todo = $request->todo;\n $todo->category_id = $request->category;\n $todo->save();\n Session::flash('success', 'Record has been added');\n return redirect()->route('todo');\n }", "title": "" } ]
[ { "docid": "3ca36acd1130c145fec3824dfbb00135", "score": "0.6494459", "text": "public function store(Request $request, $resource)\n {\n $command = $this->translator->getCommandFromResource($resource, 'store');\n\n $this->runBeforeCommands($command);\n\n $data = $this->dispatchFrom($command, $request);\n\n $this->fireEventForResource($resource, 'store', $data);\n\n return $this->success($data, 201);\n }", "title": "" }, { "docid": "00155c41d87c9c0387e4babe3e9a9ae9", "score": "0.6454226", "text": "public function save()\n {\n $this->storage->write($this);\n }", "title": "" }, { "docid": "7356d03f49eac7d05de240c473d2bfe9", "score": "0.6448581", "text": "public function save()\n {\n $this->handler->write($this->getId(), $this->prepareForStorage(\n serialize($this->attributes)\n ));\n\n $this->started = false;\n }", "title": "" }, { "docid": "8ee7e267114dc7aff05b19f9ebc39079", "score": "0.6424367", "text": "public function create($resource);", "title": "" }, { "docid": "5903d0dda7e3d80629ad4f3dc0709b1e", "score": "0.63630116", "text": "public function store()\n {\n $request = app($this->store_request);\n $this->service->create($request->all());\n\n return back()->with('success', 'Record Created Successfully');\n }", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" } ]
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "c6682891265bd7837778d6f00be58b71", "score": "0.0", "text": "public function run()\n {\n $faker = Faker\\Factory::create();//import library faker\n\t\t\n\t\t$limit = 5;//batasan berapa banyak database\n\t\t\n\t\tfor($i=0;$i<$limit;$i++){\n\t\t\tDB::table('barangs')->insert([//mengisi data di database\n\t\t\t\t'nama_barang'=>$faker->name,\n\t\t\t\t'stok'=>$faker->randomNumber,//email unique sehingga tidak ada yang sama\n\t\t\t\t'harga'=>$faker->randomNumber,\n\t\t\t\t'expired_date'=>$faker->dateTime,\n\t\t\t\t'tanggal_produksi'=>$faker->dateTime,\n\t\t\t\t]);\n\t\t}\n }", "title": "" } ]
[ { "docid": "74adb703f4d2ee8eeea828c6234b41f3", "score": "0.81044954", "text": "public function run()\n {\n Eloquent::unguard();\n\n $this->seed('Categories');\n\n // Illustration\n $this->seed('Supports');\n $this->seed('Illustrations');\n\n // Photography\n $this->seed('Photosets');\n $this->seed('Collections');\n $this->seed('Photos');\n\n $this->seed('Articles');\n $this->seed('Repositories');\n $this->seed('Services');\n $this->seed('Stories');\n $this->seed('Tableaux');\n $this->seed('Tracks');\n }", "title": "" }, { "docid": "1dcddd9fc4f2fbc62e484166f7f3332c", "score": "0.802869", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n DB::table('users')->truncate();\n DB::table('posts')->truncate();\n DB::table('roles')->truncate();\n DB::table('role_user')->truncate();\n\n // SEEDS\n $this->call(RolesTableSeeder::class);\n\n // FACTORIES\n /*\n factory(App\\User::class, 10)->create()->each(function ($user) {\n $user->posts()->save(factory(App\\Post:class)->make());\n });*/\n\n //$roles = factory(App\\Role::class, 3)->create();\n\n $users = factory(User::class, 10)->create()->each(function ($user) {\n $user->posts()->save(factory(Post::class)->make());\n $user->roles()->attach(Role::findOrFail(rand(1, 3)));\n });\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n\n }", "title": "" }, { "docid": "0874a499bef2a647494554309f6aa0cd", "score": "0.80049884", "text": "public function run()\n {\n /**\n * Dummy seeds\n */\n DB::table('ouse')->truncate();\n $faker = Faker::create();\n\n for ($i=0; $i < 10; $i++) { \n DB::table('ouse')->insert([\n 'id_rel' => $faker->randomNumber(),\n 'titulo' => $faker->sentence,\n 'descricao' => $faker->paragraph,\n 'fonte' => $faker->sentence,\n 'layout' => 'content-'.$i,\n 'indicadores' => json_encode([$i]),\n 'regras' => json_encode([$faker->words(3)]),\n 'types' => json_encode([$faker->words(2)]),\n 'categorias' => json_encode([$faker->words(4)]),\n 'tags' => json_encode([$faker->words(5)]),\n 'active' => true,\n 'status' => true,\n ]);\n }\n\n\n }", "title": "" }, { "docid": "6d65d81db98c4e3d10f6aa402d6393d9", "score": "0.79774004", "text": "public function run()\n {\n if (App::environment() == 'production') {\n exit(\"You shouldn't run seeds on production databases\");\n }\n\n DB::table('roles')->truncate();\n\n Role::create([\n 'id' => 3,\n 'name' => 'Root',\n 'description' => 'God user. Access to everything.'\n ]);\n\n Role::create([\n 'id' => 2,\n 'name' => 'Administrator',\n 'description' => 'Administrator user. Many privileges.'\n ]);\n\n Role::create([\n 'id' => 1,\n 'name' => 'Guest',\n 'description' => 'Basic user.'\n ]);\n\n }", "title": "" }, { "docid": "17a49f970cd10e5cfdebd0f59e100f60", "score": "0.79215413", "text": "public function run()\n {\n User::create([\n 'first_name' => 'Administrator',\n 'last_name' => 'One',\n 'email' => 'admin@gmail.com',\n 'role_id' => 81,\n 'password' => bcrypt('mmmm')\n ]);\n User::create([\n 'first_name' => 'User',\n 'last_name' => 'One',\n 'email' => 'user@gmail.com',\n 'role_id' => 3,\n 'password' => bcrypt('mmmm')\n ]);\n\n Role::create(\n ['name' => 'Contributor', 'id' => 3]\n );\n Role::create(\n ['name' => 'Administrator', 'id' => 81]\n );\n\n factory(User::class, 5)->create()->each(function ($user) {\n $user->posts()->saveMany(factory(Post::class, rand(2, 3))->make());\n });\n }", "title": "" }, { "docid": "6fd37af4061bceb7c3ed860b1db5b07b", "score": "0.7916311", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 1)->create([\n 'role' => 'admin'\n ]);\n factory(App\\Question::class, 1)->create(['user_id' => 1])->each(function ($question) {\n $question->hashtags()->save(factory(App\\Hashtag::class)->make());\n });\n factory(App\\Comment::class, 1)->create([\n 'question_id' => 1\n ]);\n }", "title": "" }, { "docid": "2806867c15ca7bd71920629767c01dd4", "score": "0.7899936", "text": "public function run()\n {\n Model::unguard();\n\n $faker=Faker\\Factory::create();\n App\\category::create(['title'=>'Public']);\n App\\category::create(['title'=>'Private']);\n App\\category::create(['title'=>'Family']);\n\n\n\n // $this->call(UserTableSeeder::class);\n foreach(range(1,100) as $index) {\n App\\Post::create([\n 'title'=>$faker->realText(30,2),\n 'content'=>$faker->realText(200,2),\n 'category_id'=>App\\category::all()->random()->id\n\n ]);\n }\n Model::reguard();\n }", "title": "" }, { "docid": "96081f5559e3c4bb80f4e56c33d545f5", "score": "0.7897222", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n Type::insert(array(\n ['type' => 'Checkbox'], \n ['type' => 'Rango'], \n ['type' => 'Radio'], \n ['type' => 'Select']\n ));\n factory(App\\Survey::class, 5)->create()->each(function ($u){\n for ($i=0; $i <rand(1,10) ; $i++) { \n $u->questions()->save(factory(App\\Question::class)->make());\n }\n });\n }", "title": "" }, { "docid": "b993bdb17f6322a43f700f6d1f5b1006", "score": "0.7882899", "text": "public function run()\n {\n // Trunkate the databse so we don;t repeat the seed\n DB::table('roles')->delete();\n\n Role::create(['name' => 'root']);\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'supervisor']);\n Role::create(['name' => 'officer']);\n Role::create(['name' => 'user']);\n }", "title": "" }, { "docid": "71daf483f301960f0f88e0c893f58c36", "score": "0.7881348", "text": "public function run()\n {\n $this->call(UserSeeder::class);\n \n\n factory(App\\Article::class,50)\n ->create();\n \n factory(App\\Comment::class,50)\n ->create();\n\n factory(App\\Reply::class,50)\n ->create();\n\n factory(App\\Like::class,50)\n ->create();\n \n $articles = App\\Article::all();\n\n factory(App\\Tag::class,5)->create()\n ->each(function($tag) use ($articles){\n $tag->articles()->attach(\n $articles->random(6,1)->pluck('id')->toArray()\n );\n });\n }", "title": "" }, { "docid": "0b109c2cad785f4ff36ecf7d46b132de", "score": "0.78785", "text": "public function run()\n\t{\n\t\tModel::unguard();\n\n\t\t// $this->call('UserTableSeeder');\n\n Ruta::create([\n 'descripcion'=>'Cochan',\n 'observacion'=>'-'\n ]);\n Anexo::create([\n 'descripcion'=>'Santa Aurelia',\n 'observacion'=>'-',\n 'ruta_id'=>1\n ]);\n\n Proveedor::create([\n 'name'=>'Evhanz',\n 'apellidoP'=>'Hernandez',\n 'apellidoM'=>'Salazar',\n 'dni'=>'47085011',\n 'celular'=>'990212662',\n 'estado'=>true,\n 'anexo_id'=>1\n ]);\n\n Recurso::create([\n 'descripcion'=>'casa toro',\n 'tipo'=>'interno'\n ]);\n\n\n\n\n\n\n\n\t}", "title": "" }, { "docid": "3c219ba37518a110e693986f93eb9e5e", "score": "0.7877671", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n DB::table('roles')->insert([\n 'name' => 'prof',\n 'display_name' => 'professor',\n 'description' => 'Perfil professor',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'Marcos André',\n 'email' => 'macs@ifpe.edu.br',\n 'password' => bcrypt('marcos123'),\n 'first_login' => 0,\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ]);\n\n DB::table('professores')->insert([\n 'nome' => 'Marcos André',\n 'matricula' => '12.3456-7',\n 'data_nascimento' => '1969-11-30',\n 'user_id' => 1,\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ]);\n\n DB::table('role_user')->insert([\n 'user_id' => 1,\n 'role_id' => 1,\n ]);\n }", "title": "" }, { "docid": "0c456002637a63e2342e712744fc57f7", "score": "0.78721434", "text": "public function run()\n {\n \n // $categories = factory(Category::class, 10)->create();\n // $categories->each( function($category) {\n // $category->categories()->saveMany( \n // factory(Category::class, rand(0,5))->make()\n // );\n // });\n\n // $categories->each( function($category) {\n // $category->posts()->saveMany(\n // factory(Post::class, rand(0, 4) )->make()\n // );\n // });\n $this->call(LaratrustSeeder::class);\n }", "title": "" }, { "docid": "ace435808d0bbff7fbf10bb7260d46e1", "score": "0.78685874", "text": "public function run()\n {\n // factory(Author::class, 50)->create();\n Author::factory()->count(50)->create();\n\n // for ($i=0; $i<50; $i++) {\n\n // $name = \"Vardenis\".($i+1);\n // $surname = \"Pavardenis\".($i+1);\n // $username = \"Slapyvardis\".($i+1);\n\n // DB::table(\"authors\")->insert([\n // 'name'=> $name ,\n // 'surname'=> $surname ,\n // 'username'=> $username ,\n // ]);\n // }\n\n // DB::table(\"authors\")->insert([\n\n // 'name'=> 'Vardenis' ,\n // 'surname'=> 'Pavardenis',\n // 'username'=> 'Slapyvardis',\n // ]);\n }", "title": "" }, { "docid": "d7bb625a9812b9cb6a9362070a5950ee", "score": "0.7852421", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // Add Company\n $company = Company::create([\n 'name' => 'IAPP',\n 'employee_count' => 100,\n 'size' => 'Large'\n ]);\n\n $secondCompany = Company::create([\n 'name' => 'ABC',\n 'employee_count' => 20,\n 'size' => 'Small'\n ]);\n\n // Add user\n $general_user = User::create([\n 'name' => 'Shayna Sylvia',\n 'email' => 'shayna.sylvia@gmail.com',\n 'password' => Hash::make('12345678'),\n 'street' => '9 Mill Pond Rd',\n 'city' => 'Northwood',\n 'state' => 'NH',\n 'zip' => '03261',\n 'company_id' => $company->id,\n 'type' => 'admin'\n ]);\n\n // Add Challenge\n $challenge = Challenge::create([\n 'name' => 'Conquer the Cold 2018',\n 'slug' => 'conquer',\n 'start_date' => '2018-11-01',\n 'end_date' => '2018-12-31',\n 'type' => 'Individual',\n 'image_url' => '/images/conquer-the-cold-banner.png'\n ]);\n }", "title": "" }, { "docid": "62d26c53627928e22ea575cc46bf775a", "score": "0.7849954", "text": "public function run()\n {\n Category::create([\n 'name' => 'Belleza',\n 'status' => 'A'\n ]);\n\n SubCategory::create([\n 'category_id' => 1,\n 'name' => 'Shampoo'\n ]);\n\n SubCategory::create([\n 'category_id' => 1,\n 'name' => 'Acondicionador'\n ]);\n\n SubCategory::create([\n 'category_id' => 1,\n 'name' => 'Maquillaje'\n ]);\n\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "b33aa01f2832813762ccbfb3d2d3532d", "score": "0.7846495", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(5)->create();\n $this->call(MenuCategoryTableSeeder::class);\n $this->call(AttributeTableSeeder::class);\n $this->call(CategoryTableSeeder::class);\n \\App\\Models\\Product::factory(50)->create();\n \\App\\Models\\AttributeProduct::factory(500)->create();\n \n // Circles\n $this->call(CircleTableSeeder::class);\n\n // Top Products\n $this->call(TopProductTableSeeder::class);\n\n // Random Products\n $this->call(RandomProductTableSeeder::class);\n }", "title": "" }, { "docid": "a07071a752d8cf92db253078ae570196", "score": "0.7844956", "text": "public function run()\n {\n $this->call(SuperuserSeeder::class);\n //$this->call(UserSeeder::class);\n\n Article::truncate();\n Category::truncate();\n User::truncate(); \n\n $basica = Category::factory()->create([ \n 'name' => 'Matemática Básica',\n 'slug' => 'matematica_basica',\n ]);\n $equacoes = Category::factory()->create([ \n 'name' => 'Equações',\n 'slug' => 'equacoes',\n ]);\n $funcoes = Category::factory()->create([ \n 'name' => 'Funções',\n 'slug' => 'funcoes',\n ]);\n\n $user = User::factory()->create([\n 'name' => 'Thiago Ryo',\n ]);\n\n Article::factory(10)->for($basica)->create([\n 'user_id' => $user->id,\n ]);\n\n Article::factory(7)->for($equacoes)->create([\n 'user_id' => $user->id,\n ]);\n Article::factory(15)->for($funcoes)->create([\n 'user_id' => $user->id,\n ]);\n }", "title": "" }, { "docid": "177d3ebe2b223afa4e9bd6a908d0f913", "score": "0.7839857", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //factory(App\\Article::class,5)->create();\n //factory(App\\Topic::class,20)->create();\n //factory(App\\Test::class,50)->create();\n //factory(App\\Question::class,60)->create();\n factory(App\\ArticleTest::class,5)->create();\n factory(App\\SubjectTest::class,1)->create();\n }", "title": "" }, { "docid": "a2a4fa12a5d7340c77994a01f5fd0004", "score": "0.7832346", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('cursos')->insert([\n 'cod_curso' => '123456',\n 'nome_curso' => 'Curso de pedagogia',\n 'instituicao_ensino' => 'Faculdade alguma coisa'\n ]);\n DB::table('alunos')->insert([\n 'nome_aluno' => '123456',\n 'curso' => 1,\n 'numero_maricula' => 'Faculdade alguma coisa',\n 'semestre' => 'Faculdade alguma coisa',\n 'status' => 'matriculado'\n ]);\n }", "title": "" }, { "docid": "b6032e82ff7748213ddc30ee53d1f11b", "score": "0.7830752", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('roles')->insert(\n [\n [\n 'title' => 'Директор',\n 'name' => 'Director',\n 'parent_id' => '0'\n ],\n [\n 'title' => 'Зам директор',\n 'name' => 'Deputy director',\n 'parent_id' => '1'\n ],\n [\n 'title' => 'Начальник',\n 'name' => 'Director',\n 'parent_id' => '2'\n ],\n [\n 'title' => 'ЗАм начальник',\n 'name' => 'Deputy сhief',\n 'parent_id' => '3'\n ],\n [\n 'title' => 'Работник',\n 'name' => 'Employee',\n 'parent_id' => '4'\n ]\n ]);\n\n\n $this->call(departmentsTableSeeder::class);\n $this->call(employeesTableSeeder::class);\n }", "title": "" }, { "docid": "b250412ac4bb97281cc75b73e99d5169", "score": "0.7827436", "text": "public function run()\n {\n factory(App\\User::class, 10)->create();\n factory(App\\Category::class, 5)->create();\n factory(App\\Question::class, 20)->create();\n factory(App\\Reply::class, 50)->create()->each(function ($reply) {\n $reply->favorite()->save(factory(App\\Favorite::class)->make());\n });\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "f72b073f1562b517a5cbd8caadf6f8b1", "score": "0.78215635", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n\n foreach (range(1, 50) as $index) {\n\n Category::create([\n 'title' => $faker->jobTitle,\n ]);\n }\n }", "title": "" }, { "docid": "2bfba5dc2d1c3f62eb529c4f407a8fcd", "score": "0.7818739", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker\\Factory::create();\n\n DB::table('articles')->insert([\n 'name' => $faker->title,\n 'description' => $faker->text,\n 'created_at' => new \\DateTime(),\n 'updated_at' => new \\DateTime(),\n ]);\n }", "title": "" }, { "docid": "7e80466dc8005ac35863dfc3e5c7c169", "score": "0.7817918", "text": "public function run()\n {\n User::create([\n 'name' => 'Administrator',\n 'email' => 'admin@admin.com',\n 'password' => Hash::make('adminadmin'),\n ]);\n\n Genre::factory(5)->create();\n Classification::factory(5)->create();\n Actor::factory()->count(50)->create();\n Director::factory(20)->create();\n Movie::factory(30)->create()->each(function ($movie) {\n $movie->actors(['actorable_id' => rand(30, 50)])->attach($this->array(rand(1, 50)));\n });\n Serie::factory(10)->create();\n Season::factory(20)->create();\n Episode::factory(200)->create()->each(function ($episode) {\n $episode->actors(['actorable_id' => rand(15, 30)])->attach($this->array(rand(1, 50)));\n });\n }", "title": "" }, { "docid": "c621382a9007bb3f312489ab7da81f56", "score": "0.7814175", "text": "public function run()\n {\n // Uncomment the below to wipe the table clean before populating\n // DB::table('user_roles')->delete();\n\n $roles = [\n ['id' => 1, 'name' => 'Director'],\n ['id' => 2, 'name' => 'Chair'],\n ['id' => 3, 'name' => 'Secretary'],\n ['id' => 4, 'name' => 'Faculty'],\n ];\n\n // Uncomment the below to run the seeder\n DB::table('user_roles')->insert($roles);\n }", "title": "" }, { "docid": "41d5d9d0667abadecd972a5a32ed0a4b", "score": "0.7810804", "text": "public function run()\n {\n\n DB::table('authors')->delete();\n\n $gender = Array('Male', 'Female', 'Other');\n $faker = Faker::create();\n foreach (range(1, 100) as $index) {\n $author = new Author();\n $author->name = $faker->name;\n $author->gender = $gender[rand(0,2)];\n $author->dateOfBirth = $faker->dateTimeBetween($startDate = '-90 years', $endDate = '-25 years', $timezone = date_default_timezone_get())->format('Y-m-d');\n $author->shortBio = $faker->sentence(6, true);\n $author->country = $faker->country;\n $author->email = $faker->safeEmail;\n $author->twitter = $faker->userName;\n $author->website = 'http://www.'.$faker->domainName;\n $author->save();\n }\n\n }", "title": "" }, { "docid": "40a0e12ed745bd76bf6ddbc9fe97e1a8", "score": "0.78103507", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n // DB::table('roles')->insert([\n // 'name' => 'employee',\n // 'guard_name' => 'web',\n // ]);\n\n // DB::table('roles')->insert([\n // 'name' => 'admin',\n // 'guard_name' => 'web',\n // ]);\n\n // DB::table('units')->insert([\n // 'name' => 'kg',\n // ]);\n // DB::table('units')->insert([\n // 'name' => 'litre',\n // ]);\n // DB::table('units')->insert([\n // 'name' => 'dozen',\n // ]);\n }", "title": "" }, { "docid": "aa0eccb2055398458b2a6272fcb8936f", "score": "0.78012705", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Order::truncate();\n\n $faker = \\Faker\\Factory::create();\n $customers = \\App\\Models\\Customer::all()->pluck('id')->toArray();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 100; $i++) {\n $alphabet = 'abcdefghijklmnopqrstuvwxyz';\n $numbers = '0123456789';\n $value = '';\n for ($j = 0; $j < 3; $j++) {\n $value .= substr($alphabet, rand(0, strlen($alphabet) - 1), 1);\n }\n Order::create([\n 'customerId' => $faker->randomElement($customers),\n 'totalPrice' => $faker->randomFloat(2, 1, 5000),\n 'isPaid' => $faker->boolean($chanceOfGettingTrue = 50),\n 'extraInfo' => $faker->boolean($chanceOfGettingTrue = 50)\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "48fe7d1d0d33106e3241378b6668a775", "score": "0.7796966", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 50)->create();\n factory(Post::class, 500)->create();\n factory(Category::class, 10)->create();\n factory(Tag::class, 150)->create();\n factory(Image::class, 1500)->create();\n factory(Video::class, 500)->create();\n factory(Comment::class, 1500)->create();\n }", "title": "" }, { "docid": "86dd297f311dc339eb33e3e6509e604e", "score": "0.77966315", "text": "public function run()\n {\n $this->seeds([\n Poliklinik::class => ['fasilitas/polikliniks.csv', 35],\n Ruangan::class => ['fasilitas/ruangans.csv', 15],\n Kamar::class => ['fasilitas/kamars.csv', 43],\n Ranjang::class => ['fasilitas/ranjang.csv', 187],\n ]);\n }", "title": "" }, { "docid": "368508f66336ac53d1be3d6743e70422", "score": "0.7792271", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //Desactivamos la revision de las llaves foraneas.\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n //trunco las tablas para poder meter datos nuevos\n articulos::truncate();\n clientes::truncate();\n impuestos::truncate();\n imp_art::truncate();\n empresa::truncate();\n\n $cantidadArticulos = 20;\n $cantidadClientes = 20;\n $cantidadImpuestos = 4;\n $cantidadImp_Arts = 10;\n $cantidadEmpresas = 10;\n\n factory(articulos::class, $cantidadArticulos)->create();\n factory(clientes::class, $cantidadClientes)->create();\n factory(impuestos::class, $cantidadImpuestos)->create();\n factory(imp_art::class, $cantidadImp_Arts)->create();\n factory(empresa::class, $cantidadEmpresas)->create();\n\n }", "title": "" }, { "docid": "0a5fb8cc194091e39e8322105883b61f", "score": "0.77910054", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n DB::table('jobs')->truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $faker = \\Faker\\Factory::create();\n\n $ranks = Rank::all();\n $users = User::all();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 5; $i++) {\n Job::create([\n 'user_id' => $users[rand(0, $users->count() - 1)]->id,\n 'title' => $faker->sentence($nbWords = 2, $variableNbWords = true),\n 'description' => $faker->sentence($nbWords = 10, $variableNbWords = true),\n 'departure' => $faker->lexify('????'),\n 'arrival' => $faker->lexify('????'),\n 'category' => $faker->sentence,\n 'limitations' => $faker->sentence,\n 'required_rank_id' => $ranks[rand(0, $ranks->count() - 1)]->id\n ]);\n }\n }", "title": "" }, { "docid": "d82dd297f054671ec046bcf0b882a63f", "score": "0.7790729", "text": "public function run()\n {\n $this->call([\n AdminSeeder::class,\n // TrackSeeder::class,\n ]);\n\n \\App\\Models\\Track::factory(10)->create();\n \\App\\Models\\Location::factory(10)->create();\n \\App\\Models\\Event::factory(20)->create();\n }", "title": "" }, { "docid": "845dcb98a7e8e0d45a3cf018b23c6ecd", "score": "0.77882665", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(App\\Product::class, 100)->create()->each(function($products){\n $products->save();\n });\n \n factory(App\\Client::class, 100)->create()->each(function($clients){\n $clients->save();\n });\n \n factory(App\\Sale::class, 100)->create()->each(function($sales){\n $sales->save();\n });\n \n }", "title": "" }, { "docid": "de60f0a26beec0ef156f5bbeb41b9ee7", "score": "0.7785993", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n DB::table('users')->truncate();\n DB::table('password_resets')->truncate();\n DB::table('projects')->truncate();\n DB::table('payments')->truncate();\n DB::table('tags')->truncate();\n DB::table('taggables')->truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n \n $this->call(UsersTableSeeder::class);\n \n $tags = factory(\\App\\Models\\Tag::class, 10)->create();\n factory(App\\Models\\User::class, 10)->create()->each(function ($user) use ($tags) {\n $projects = factory(\\App\\Models\\Project::class, 5)->create(['user_id' => $user->id]);\n foreach ($projects as $project) {\n $project->tags()->attach($tags->random(1));\n factory(\\App\\Models\\Payment::class, random_int(10, 30))\n ->create(['project_id' => $project->id])->each(function (\\App\\Models\\Payment $payment) use ($tags) {\n $payment->tags()->attach($tags->random(1)); \n });\n }\n });\n }", "title": "" }, { "docid": "d807dce754ed136319cb37b9a9be6494", "score": "0.77856374", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(Localizacao::class, 5)->create();\n factory(Estado::class, 2)->create();\n factory(Tamanho::class, 4)->create();\n factory(Cacifo::class, 20)->create();\n factory(Cliente::class, 10)->create();\n factory(UserType::class, 2)->create();\n factory(User::class, 8)->create();\n factory(Encomenda::class, 25)->create();\n factory(LogCacifo::class, 20)->create();\n\n foreach (Encomenda::all() as $encomenda) {\n $user = User::all()->random();\n DB::table('encomenda_user')->insert(\n [\n 'user_id' => $user->id,\n 'encomenda_id' => $encomenda->id,\n 'user_type' => $user->tipo_id,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now()\n ]\n );\n }\n\n }", "title": "" }, { "docid": "4a8a5f2d0bf57a648aa039d994ba098c", "score": "0.7780426", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $spec = [\n [\n 'name'=>'Dokter Umum',\n 'title_start'=> 'dr.',\n \"title_end\"=>null,\n ],[\n 'name'=>\"Spesialis Kebidanan Kandungan\",\n 'title_start'=>\"dr.\",\n 'title_end'=>\"Sp.OG\",\n ],[\n \"name\"=>\"Spesialis Anak\",\n \"title_start\"=>\"dr.\",\n \"title_end\"=>\"Sp.A\",\n ],[\n \"name\"=>\"Spesialis penyakit mulut\",\n \"title_start\"=>\"drg.\",\n \"title_end\"=>\"Sp.PM\"\n ],[\n \"name\"=>\"Dokter Gigi\",\n \"title_start\"=>\"drg.\",\n \"title_end\"=>null,\n ]\n ];\n\n DB::table(\"specializations\")->insert($spec);\n\n \n factory(User::class, 10)->create([\n 'type'=>\"doctor\",\n ]);\n factory(User::class, 10)->create([\n 'type'=>\"user\",\n ]);\n factory(Message::class, 100)->create();\n }", "title": "" }, { "docid": "ee06eccc68d87dcb640a4d5639c88ab8", "score": "0.77800995", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n\t\t$tags = factory( \\App\\Tag :: class, 10 ) -> create();\n\t\t\n\t\t$articles = factory( \\App\\Article :: class, 20 ) -> create();\n\t\t\n\t\t$tags_id = $tags -> pluck( 'id' );\n\t\t\n\t\t$articles ->each( function( $article ) use( $tags_id ){\n\t\t\t$article -> tags() -> attach( $tags_id -> random( 3 ) );\n\t\t\tfactory( \\App\\Comment :: class, 3 ) -> create( [\n\t\t\t\t'article_id' => $article -> id\n\t\t\t] );\n\t\t\t\n\t\t\tfactory( \\App\\State :: class, 1 ) -> create( [\n\t\t\t\t'article_id' => $article -> id\n\t\t\t] );\n\t\t} );\n\t\t\n }", "title": "" }, { "docid": "4a49e16a546df16655fd9740de7ae5c5", "score": "0.77780515", "text": "public function run()\n {\n $faker = Faker\\Factory::create();\n\n DB::table('users')->insert([\n \t[\n \t\t'username' => 'johan',\n \t\t'email' => 'johanst1409@gmail.com',\n \t\t'password' => bcrypt('wachtwoord1'),\n \t],\n \t[\n \t\t'username' => 'vamidi',\n \t\t'email' => 'vamidi@gmail.com',\n \t\t'password' => bcrypt('wachtwoord1'),\n \t]\n ]);\n\n DB::table('profiles')->insert([\n \t[\n \t\t'user_id' => 1,\n \t],\n \t[\n \t\t'user_id' => 2,\n \t]\n ]);\n\n DB::table('teams')->insert(\n \t[\n \t\t'name' => 'VaMiDi Games',\n \t\t'url_name' => 'vamidi-games',\n \t]\n );\n }", "title": "" }, { "docid": "b32c8e0e5988bd2cbc8f9b3c1069084f", "score": "0.7775103", "text": "public function run()\n {\n //這邊用到集合 pluck() 將全部User id取出並轉為陣列,如 [1,2,3,4,5]\n $user_ids = User::all()->pluck('id')->toArray();\n\n //同上\n $topic_id = Topic::all()->pluck('id')->toArray();\n\n //取Faker 實例化\n $faker = app(Faker\\Generator::class);\n\n //生成100筆假數據\n $posts = factory(Post::class)->times(100)\n ->make()->each(function ($post,$index) use ($user_ids,$topic_id,$faker)\n {\n //用User id隨機取一個並賦值\n $post->user_id = $faker->randomElement($user_ids);\n //用Topic id隨機取一個並賦值\n $post->topic_id = $faker->randomElement($topic_id);\n });\n //將數據轉為陣列在插入資料庫\n Post::insert($posts->toArray());\n }", "title": "" }, { "docid": "0ac3bd79ccafd183f64a83daa8e8b734", "score": "0.77742934", "text": "public function run()\n {\n //\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => 'admin@example.com',\n 'level' => 'admin',\n 'password' => Hash::make('12345678'),\n ]);\n\n factory(App\\User::class, 9)->create([\n 'password' => Hash::make('12345678')\n ]);\n\n factory(App\\Author::class, 10)->create();\n\n factory(App\\Book::class, 10)->create();\n\n $author = App\\Author::all();\n\n App\\Book::all()->each(function ($book) use ($author) { \n $book->author()->attach(\n $author->random(rand(1, 3))->pluck('id')->toArray()\n ); \n });\n \n }", "title": "" }, { "docid": "8cce7ad451e41e0616427ac1279b46cd", "score": "0.77644897", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n// factory(\\App\\User::class, 50)->create();\n //students seeding\n $schoolsClasses = \\App\\SchoolClass::all();\n foreach ($schoolsClasses as $schoolsClass){\n $schoolsClass->student()->createMany(\n factory(\\App\\Student::class, 20)->make()->toArray()\n );\n }\n }", "title": "" }, { "docid": "120274b83b13efad13e4d0a22631a7e2", "score": "0.7763531", "text": "public function run()\n {\n\n $this->seedersPath = database_path('seeds').'/';\n $this->seed('MessagesTableSeeder');\n\n $this->seed('WishesTableSeeder');\n $this->seed('PresentsTableSeeder');\n\n $this->seed('InstitutionsTableSeeder');\n $this->seed('LocationsTableSeeder');\n $this->seed('OpeningHoursTableSeeder');\n\n $this->seed('FaqsTableSeeder');\n\n //$this->seed('PermissionRoleTableSeeder');\n }", "title": "" }, { "docid": "edb6c4e5c696e79c6cb87775bdf73c85", "score": "0.77605385", "text": "public function run()\n {\n factory(App\\Models\\User::class, 200)->create();\n $this->call(GenresTableSeeder::class);\n $this->call(BandsTableSeeder::class);\n factory(App\\Models\\Post::class, 1000)->create();\n $this->call(TagsTableSeeder::class);\n $this->call(PostTagTableSeeder::class);\n factory(App\\Models\\Comment::class, 5000)->create();\n $this->call(AdminSeeder::class);\n }", "title": "" }, { "docid": "a5eec395c42a1c641cc29056de013a2a", "score": "0.7760248", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n UserRole::truncate();\n BookList::truncate();\n BookEntry::truncate();\n\n $this->call([\n UserRoleSeeder::class,\n BookListSeeder::class,\n BookEntrySeeder::class,\n ]);\n\n User::insert([\n 'name' => 'super_admin',\n 'email' => 'super_admin@gmail.com',\n 'role_serial' => 1,\n 'password' => Hash::make('12345678'),\n ]);\n User::insert([\n 'name' => 'admin',\n 'email' => 'admin@gmail.com',\n 'role_serial' => 2,\n 'password' => Hash::make('12345678'),\n ]);\n User::insert([\n 'name' => 'management',\n 'email' => 'management@gmail.com',\n 'role_serial' => 3,\n 'password' => Hash::make('12345678'),\n ]);\n User::insert([\n 'name' => 'student',\n 'email' => 'student@gmail.com',\n 'role_serial' => 4,\n 'password' => Hash::make('12345678'),\n ]);\n }", "title": "" }, { "docid": "5c8214e2d3c221fbe38a112c0256f06f", "score": "0.7759768", "text": "public function run()\n {\n // $this->call('UsersTableSeeder');\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'role' => 1,\n 'email' => 'admin@gmail.com',\n 'password' => '$2y$10$UT2JvBOse3.6uuElsmqDpOhvp8d5PkoRdmbIHDMwOJmr226GRrmKe',\n ]);\n\n DB::table('programs')->insert([\n ['name' => 'Ingeniería de sistemas'],\n ['name' => 'Ingeniería electrónica'],\n ['name' => 'Ingeniería industrial'],\n ['name' => 'Diseño gráfico'],\n ['name' => 'Psicología'],\n ['name' => 'Administración de empresas'],\n ['name' => 'Negocios internacionales'],\n ['name' => 'Criminalística'],\n ]);\n }", "title": "" }, { "docid": "2290f88bd069e9499c0321a79bda7083", "score": "0.7759102", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('filials')->insert([\n 'nome' => 'Filial 1',\n 'endereco' => 'Endereco, 1',\n 'bairro' => 'Bairro',\n 'cidade' => 'Cidade',\n 'uf' => 'ES',\n 'inscricao_estadual' => 'ISENTO',\n 'cnpj' => '00123456000178'\n ]);\n DB::table('users')->insert([\n 'name' => 'Vitor Braga',\n 'data_nascimento' => '1991-03-16',\n 'sexo' => 'M',\n 'cpf' => '12345678900',\n 'endereco' => 'Rua Luiz Murad, 2',\n 'bairro' => 'Vista da Serra',\n 'cidade' => 'Colatina',\n 'uf' => 'ES',\n 'cargo' => 'Desenvolvedor',\n 'salario' => '100.00',\n 'situacao' => '1',\n 'password' => bcrypt('123456'),\n 'id_filial' => '1'\n ]);\n }", "title": "" }, { "docid": "fa279d8f7a87d9a40806207839ca7e30", "score": "0.7750227", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n $faker = Faker::create();\n foreach ( range(1,10) as $item) {\n DB::table('fire_incidents')->insert([\n 'created_at' => $faker->dateTime,\n 'title'=> $faker->title(),\n 'first_name' => $faker->firstName,\n 'last_name'=> $faker->lastName,\n 'email'=>$faker->email,\n 'phone_number'=>$faker->phoneNumber,\n 'ip_address'=>$faker->ipv4,\n 'message'=>$faker->paragraph\n ]);\n }\n }", "title": "" }, { "docid": "dfa1829f132b8c48a9fa02a696b5951b", "score": "0.7737741", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(TokenPackageSeeder::class);\n\n factory(Video::class, 30)->create();\n $this->call(PurchaseSeeder::class);\n\n // factory(Comment::class, 50)->create();\n }", "title": "" }, { "docid": "81e5569fa61ad16b28597151ca8922ab", "score": "0.7731372", "text": "public function run()\n {\n $faker = Faker\\Factory::create('fr_FR');\n $user = App\\User::pluck('id')->toArray();\n $data = [];\n\n for ($i = 1; $i <= 100; $i++) {\n $title = $faker->sentence(rand(4, 10)); // astuce pour le slug\n array_push($data, [\n 'title' => $title,\n 'sub_title' => $faker->sentence(rand(10, 15)),\n 'slug' => Str::slug($title),\n 'body' => $faker->realText(4000),\n 'published_at' => $faker->dateTime(),\n 'user_id' => $faker->randomElement($user),\n ]);\n }\n DB::table('articles')->insert($data);\n }", "title": "" }, { "docid": "dbb7060bbc311a18cd207473bbe8e7f1", "score": "0.7728515", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(\\App\\User::class,1)->create([\n 'name' => 'teste',\n 'email' => 'user@user.com',\n 'password' => bcrypt('12345')\n ]);\n factory(\\App\\Models\\SecaoTecnica::class,1)->create([\n 'sigla' => 'teste',\n 'descricao' => 'teste descrição'\n ]);\n }", "title": "" }, { "docid": "3d873be91ed6d1da3295d915f287cf94", "score": "0.77274096", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n //Seeding the database\n \\DB::table('authors')->insert([\n [\n 'name' => 'Diane Brody',\n 'occupation' => 'Software Architect, Freelancer',\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s')\n ],\n [\n 'name' => 'Andrew Quentin',\n 'occupation' => 'Cognitive Scientist',\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s')\n ]\n ]);\n\n \\DB::table('publications')->insert([\n [\n 'title' => 'AI Consciousness Level',\n 'excerpt' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit',\n 'type' => 'Book',\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s')\n ],\n [\n 'title' => 'Software Architecture for the experienced',\n 'excerpt' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit',\n 'type' => 'Report of a conference',\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s')\n ]\n ]);\n\n \\DB::table('publication_authors')->insert([\n [\n 'publication_id' => 1,\n 'author_id' => 2\n ],\n [\n 'publication_id' => 2,\n 'author_id' => 1\n ]\n ]);\n }", "title": "" }, { "docid": "0fdc3c6a7967d773048368acc1829445", "score": "0.7726644", "text": "public function run()\n {\n // TODO Seeder\n // TODO Run Seeder: php artisan migrate:fresh --seed\n // TODO Remove all tables and new create\n // TODO After run Seeder\n factory(User::class, 1)->create(['email' => 'erf@mail.com']);\n factory(User::class, 50)->create();\n factory(Forum::class, 20)->create();\n factory(Post::class, 50)->create();\n factory(Reply::class, 100)->create();\n factory(Category::class, 10)->create();\n }", "title": "" }, { "docid": "67bd68cad6c93282acfd6bf31f674b0f", "score": "0.7723515", "text": "public function run()\n {\n $db = DB::table('addresses');\n\n $faker = Faker\\Factory::create();\n $cities_id = City::all()->pluck('city_id')->toArray();\n\n foreach (Post::all()->pluck('id')->toArray() as $post_id){\n $values ['post_id'] = $post_id;\n $values ['street'] = $faker->streetAddress;\n $values ['house'] = $faker->numberBetween(1, 300);\n $values ['city_id'] = array_rand(array_flip($cities_id),1);\n\n $db->insert($values);\n }\n }", "title": "" }, { "docid": "8f23bfa6e5d2337ed218b6aa9e74c8f2", "score": "0.77190584", "text": "public function run()\n {\n $users = factory(App\\User::class,10)->create();\n\n $categories = factory(App\\Category::class,10)->create();\n\n $users->each(function(App\\User $user) use ($users){\n \tfactory(App\\Job::class, 5)->create([\n \t\t'user_id' => $user->id,\n 'category_id' => random_int(1, 10),\n \t]);\n });\n\n $reviews = factory(App\\Review::class,30)->create();\n\n Model::unguard();\n\n $this->call('PermissionsTableSeeder');\n $this->call('RolesTableSeeder');\n $this->call('ConnectRelationshipsSeeder');\n //$this->call('UsersTableSeeder');\n\n Model::reguard();\n }", "title": "" }, { "docid": "2ecfbbe58300fc8debd0410b17f21e9d", "score": "0.771693", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n DB::table('users')->insert([\n 'name' => 'Demo',\n 'phone' => '0737116001',\n 'email' => 'demo@gmail.com',\n 'password' => Hash::make('demo'),\n ]);\n\n DB::table('roles')->insert([\n 'name' => 'admin',\n 'slug' => 'admin',\n ]);\n\n\n DB::table('roles')->insert([\n 'name' => 'user',\n 'slug' => 'user',\n ]);\n\n DB::table('roles')->insert([\n 'name' => 'manager',\n 'slug' => 'manager',\n ]);\n\n DB::table('roles_users')->insert([\n 'user_id' => 1,\n 'role_id' => 1,\n ]);\n }", "title": "" }, { "docid": "c8d45356aa6a26dbc0f8f55b3b96b143", "score": "0.7714273", "text": "public function run()\n {\n // prevent db error from key constraint when refresh seeder\n DB::statement('SET foreign_key_checks=0');\n DB::table('albums')->truncate();\n DB::statement('SET foreign_key_checks=1');\n\n $albums = [\n ['artist_id' => 1, 'name' => 'One Palitchoke', 'year_release' => 2005],\n ['artist_id' => 2, 'name' => 'Offering Love', 'year_release' => 2007],\n ['artist_id' => 3, 'name' => 'Ice Sarunyu', 'year_release' => 2006],\n ];\n\n foreach ( $albums as $album ) {\n DB::table('albums')->insert($album);\n }\n }", "title": "" }, { "docid": "603a2ad87e835d00866a742b9f5d2a52", "score": "0.77141565", "text": "public function run()\n {\n $users = User::factory()->count(10)->create();\n\n $categoriesNames = [\n 'Programación',\n 'Desarrollo Web',\n 'Desarrollo Movil',\n 'Inteligencia Artificial',\n ];\n $collection = collect($categoriesNames);\n $categories = $collection->map(function ($category, $key){\n return Category::factory()->create(['name' => $category]);\n });\n\n Post::factory()\n ->count(10)\n ->make()\n ->each(function($post) use ($users, $categories){\n $post->author_id = $users->random()->id;\n $post->category_id = $categories->random()->id;\n $post->save();\n });\n \n $user = User::factory()->create();\n $user->name = 'Jesús Ramírez';\n $user->email = 'jesus.ra98@hotmail.com';\n $user->password = Hash::make('jamon123');\n $user->save();\n }", "title": "" }, { "docid": "102a7ac2c5bf3d7bd06597a234035ae0", "score": "0.77117646", "text": "public function run()\n {\n \\App\\User::create(['name'=>\"asd\", 'email'=>\"a@a.com\", 'password'=>Hash::make(\"123456\")]);\n \n $directorio = \"database/seeds/json_seeds/\";\n $archivos = scandir($directorio);\n \n for($i = 2; $i < sizeof($archivos); $i++)\n {\n $nombre = explode(\".\", $archivos[$i])[1];\n \n $fullPath = \"App\\Models\\\\\" . $nombre;\n echo \"Seeding \". $i.\") \".$fullPath .\"...\\n\";\n $instance = (new $fullPath());\n \n $table = $instance->table;\n \n $json = File::get(\"database/seeds/json_seeds/\" . $archivos[$i]);\n \n DB::table($table)->delete();\n \n $data = json_decode($json, true);\n \n foreach ($data as $obj)\n {\n $instance::create($obj);\n }\n \n }\n \n \n }", "title": "" }, { "docid": "51006cd093566713d168ba0692107f19", "score": "0.7708964", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'denis',\n 'email' => 'denis@gmail.com',\n 'password' => bcrypt('123456789'),\n ]);\n \n DB::table('users')->insert([\n \t'name'=> 'admin',\n \t'email' => 'ccc@mail.ru',\n \t'password' => bcrypt('cccccccc'),\n \n ]);\n\n DB::table('posts')->insert([\n 'id'=> 1,\n 'title'=>'Генное редактирование изменит мир быстрее, чем мы думаем',\n 'content'=>'https://hightech.fm/wp-content/uploads/2018/11/45807.jpg',\n 'description' => NULL,\n 'slug'=>'gennoe-redaktirovanie-izmenit-mir-bistree-chem-mi-dumaem_1',\n 'author'=> 1,\n ]);\n\n DB::table('posts')->insert([\n 'id'=> 2,\n 'title'=>'billboard',\n 'content'=>'https://i.kinja-img.com/gawker-media/image/upload/lufkpltdkvtxt9kzwn9u.jpg',\n 'description' => NULL,\n 'slug'=>'billboard_2',\n 'author'=> 1,\n ]);\n }", "title": "" }, { "docid": "ec2a852d7d4c7c86fb7a9c04f4e0dd7e", "score": "0.77069575", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(App\\Role::class)->create([\n 'name' => 'admin',\n 'description' => 'usuario con todos los privilegios'\n ]);\n\n factory(App\\Role::class)->create([\n 'name' => 'teacher',\n 'description' => 'profesores'\n ]);\n\n factory(App\\Role::class)->create([\n 'name' => 'student',\n 'description' => 'estudiantes'\n ]);\n\n factory(App\\User::class)->create([\n 'name' => 'Administrador',\n 'email' => 'admin@dammer-lms.test',\n 'role_id' => \\App\\Role::ADMIN\n ]);\n\n factory(App\\User::class, 4)->create([\n 'role_id' => \\App\\Role::TEACHER\n ])->each(function ($teacher) {\n $module = $teacher->teach()->save(factory(App\\Module::class)->make());\n $module->students()->saveMany(factory(App\\User::class, 10)->make([\n 'role_id' => \\App\\Role::STUDENT\n ]));\n $module->resources()->save(factory(App\\Resource::class)->make(), ['evaluation' => 1]);\n $module->tasks()->save(factory(App\\Task::class)->make(), ['evaluation' => 1]);\n });\n\n\n }", "title": "" }, { "docid": "67228a7edb1e67f6bdd0b8d19bb2b59a", "score": "0.7705309", "text": "public function run()\n {\n Model::unguard();\n $faker = Faker::create();\n for ($i = 0; $i <= 100; $i++) {\n DB::table('posts')->insert([\n 'published' => 1,\n 'title' => $faker->sentence(),\n 'body' => $faker->text(500),\n ]);\n }\n Model::reguard();\n }", "title": "" }, { "docid": "51f53a0357babd8023bfb0bf05d79e4b", "score": "0.7705115", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n $quests = factory(\\App\\Models\\Quest::class, 10)->create();\n\n $quests->each(function (\\App\\Models\\Quest $quest) {\n $count = random_int(100, 500);\n factory(\\App\\Models\\Booking::class, $count)->create([\n 'quest_id' => $quest->id,\n ]);\n });\n }", "title": "" }, { "docid": "cb57daba0c53f155a9c942af3dc024bd", "score": "0.7703433", "text": "public function run()\n {\n // 指令::php artisan db:seed --class=day20180611_campaign_event_table_seeder\n // 第一次執行,執行前全部資料庫清空\n $now_date = date('Y-m-d h:i:s');\n // 角色\n DB::table('campaign_event')->truncate();\n DB::table('campaign_event')->insert([\n // system\n ['id' => '1', 'keyword' => 'reg', 'created_at' => $now_date, 'updated_at' => $now_date],\n ['id' => '2', 'keyword' => 'order', 'created_at' => $now_date, 'updated_at' => $now_date],\n ['id' => '3', 'keyword' => 'complete', 'created_at' => $now_date, 'updated_at' => $now_date],\n ]);\n }", "title": "" }, { "docid": "cf7fcb1fe5570ba6a475aaf00815d6f6", "score": "0.7701871", "text": "public function run()\n {\n\n //SEEDING MASTER DATA\n $this->call([\n BadgeSeeder::class,\n AchievementSeeder::class\n ]);\n\n //SEEDING FAKER DATA\n Lesson::factory()\n ->count(20)\n ->create();\n\n Comment::factory()->count(2)->create();\n\n }", "title": "" }, { "docid": "84e706cea7bd7dc14995a5ca30acd23f", "score": "0.7698958", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n // authorsテーブルにデータ登録を行う処理\n $this->call(AuthorsTableSeeder::class);\n\n // publishersテーブルに50件のレコードを作成する\n Publisher::factory(50)->create();\n\n // usersとuser_tokensのテーブルにレコードを追加\n $this->call(\n [\n UserSeeder::class\n ]\n );\n\n // ordersとorder_detailsのテーブルにレコードを追加\n $this->db->transaction(\n function () {\n $this->orders();\n $this->orderDetails();\n }\n );\n\n $now = CarbonImmutable::now();\n // customersテーブルにレコードを追加\n EloquentCustomer::create(\n [\n 'id' => 1,\n 'name' => 'name1',\n 'created_at' => $now,\n 'updated_at' => $now,\n ]\n );\n // customer_pointsテーブルにレコードを追加\n EloquentCustomerPoint::create(\n [\n 'customer_id' => 1,\n 'point' => 100,\n 'created_at' => $now,\n 'updated_at' => $now,\n ]\n );\n }", "title": "" }, { "docid": "09fe947dea0cf1a8047d0c9bb4bf806d", "score": "0.76984954", "text": "public function run()\n {\n // gọi tới file UserTableSeeder nếu bạn muốn chạy users seed\n // $this->call(UsersTableSeeder::class);\n // gọi tới file PostsTableSeeder nếu bạn muốn chạy posts seed\n $this->call(PostsTableSeeder::class); \n // gọi tới file CategoriesTableSeeder nếu bạn muốn chạy categories seed\n $this->call(CategoriesTableSeeder::class);\n $this->call(PostTagsTableSeeder::class);\n $this->call(TagsTableSeeder::class);\n $this->call(ProjectTableSeeder::class);\n }", "title": "" }, { "docid": "980af6960bda0fc5e03df83c2b9e41cc", "score": "0.7698196", "text": "public function run()\n {\n // $categories = factory(App\\Category::class, 10)->create();\n\n $categories = ['Appetizers', 'Beverages', 'Breakfast', 'Detox Water', 'Fresh Juice', 'Main Course', 'Pasta', 'Pizza', 'Salad', 'Sandwiches', 'Soups', 'Special Desserts', 'Hot Drinks', 'Mocktails', 'Shakes', 'Water and Softdrinks'];\n foreach( $categories as $category )\n { \n Category::create([\n 'name' => $category\n ]);\n }\n\n $categories = Category::all();\n\n foreach( $categories as $category )\n {\n factory(App\\Menu::class, 10)->create([\n 'category_id' => $category->id\n ]);\n }\n \t\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "5c2d13aa24ff40662a0ce876f3c44809", "score": "0.7694809", "text": "public function run()\n {\n //\n $user_ids = ['1','2','3'];\n $faker = app(Faker\\Generator::class);\n\n $articles = factory(Article::class)->times(100)->make()->each(function ($articles) use ($faker, $user_ids) {\n $articles->user_id = $faker->randomElement($user_ids);\n });\n\n Article::insert($articles->toArray());\n }", "title": "" }, { "docid": "1c93783c2ea23b1bcf0fcecb87e597a1", "score": "0.7693655", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('planeta')->insert([\n\n 'name'=>'Jupiter',\n 'peso'=>'1321'\n \n ]);\n\n DB::table('planeta')->insert([\n\n 'name'=>'Saturno',\n 'peso'=>'6546'\n \n ]);\n\n DB::table('planeta')->insert([\n\n 'name'=>'Urano',\n 'peso'=>'564564'\n \n ]);\n\n DB::table('planeta')->insert([\n\n 'name'=>'netuno',\n 'peso'=>'5213'\n \n ]);\n }", "title": "" }, { "docid": "cdec075ee5f589f68df7d8e373f800d0", "score": "0.76934415", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n for ($i=0; $i<100; $i++) {\n $faker = Faker\\Factory::create();\n \\App\\Models\\Agencies::create([\n 'name'=>$faker->name\n ]);\n }\n\n for ($i=0; $i<100000; $i++){\n $faker = Faker\\Factory::create();\n \\App\\Models\\User::create([\n 'first_name'=>$faker->firstName,\n 'last_name'=>$faker->lastName,\n 'email'=>$faker->email,\n 'agencies_id'=>$faker->numberBetween(1,10)\n ]);\n }\n\n }", "title": "" }, { "docid": "6a416e8eba24d6a06a2c1821432bb069", "score": "0.76887816", "text": "public function run()\n {\n $faker=Faker::create();\n foreach(range(1,10) as $value)\n {\n DB::table('students')->insert([\n \"name\"=>$faker->name(),\n \"email\"=>$faker->unique->safeEmail(),\n \"password\"=>Hash::make($faker->password),\n \"mobile\"=>$faker->phoneNumber,\n \"gender\"=>$faker->randomElement(['Male','Female'])\n ]);\n }\n }", "title": "" }, { "docid": "d40aad4597dc498684ff1a2297b648e4", "score": "0.7687799", "text": "public function run()\n {\n //factory('App\\Store', 2)->create();\n // for individual use \"php artisan db:seed --class=StoreTableSeeder\"\n Schema::disableForeignKeyConstraints();\n \n DB::table('store')->truncate();\n\n App\\Store::create([\n 'manager_staff_id' => 1,\n 'address_id' => 1,\n ]);\n\n App\\Store::create([\n 'manager_staff_id' => 2,\n 'address_id' => 2,\n ]);\n\n Schema::enableForeignKeyConstraints();\n \n }", "title": "" }, { "docid": "d932a3a60db7e3e1b5c8ff7359b4a2ba", "score": "0.768728", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n /*$faker = Faker::create();\n \tfor($i = 0; $i < 10; $i++) {\n App\\Lists::create([\n 'item_name' => $faker->name,\n 'store_name' => $faker->name,\n 'total_item' => $faker->randomDigitNotNull,\n 'item_price' => $faker->numberBetween($min = 100, $max = 900),\n 'total_price' =>$faker->numberBetween($min = 1000, $max = 9000)\n ]);\n }*/\n }", "title": "" }, { "docid": "98c57ab9dc9353ad077141992a0dd327", "score": "0.7687021", "text": "public function run()\n {\n Schema::disableForeignKeyConstraints();\n $this->call(GenreSeeder::class);\n $this->call(AuthorSeeder::class);\n $this->call(BookSeeder::class);\n Schema::enableForeignKeyConstraints();\n \n // create an admin user with email admin@library.test and password secret\n User::truncate();\n User::create(array('name' => 'Administrator',\n 'email' => 'admin@library.test', \n 'password' => bcrypt('secret'),\n 'role' => 1)); \n }", "title": "" }, { "docid": "6b052b127c0955be874bff998cbf539d", "score": "0.76856595", "text": "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n //$this->call(RequisitosSeeder::class);\n //factory('App\\User', 3)->create();\n //factory('App\\Situation', 3)->create();\n factory('App\\Sector', 3)->create();\n factory('App\\Role', 3)->create();\n factory('App\\Privilege', 3)->create();\n factory('App\\Evidence', 3)->create();\n factory('App\\Requirement', 3)->create();\n factory('App\\Company', 3)->create();\n }", "title": "" }, { "docid": "6f4cd475360e7bf0d5a1fe2752972955", "score": "0.76846963", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(RoleSeeder::class);\n $this->call(KategoriSeeder::class);\n $this->call(UsersTableSeeder::class);\n $roles = \\App\\Models\\Role::all();\n \\App\\Models\\User::All()->each(function ($user) use ($roles){\n // $user->roles()->saveMany($roles);\n $user->roles()->attach(\\App\\Models\\Role::where('name', 'admin')->first());\n });\n // \\App\\Models\\User::all()->each(function ($user) use ($roles) { \n // $user->roles()->attach(\n // $roles->random(rand(1, 2))->pluck('id')->toArray()\n // ); \n // });\n }", "title": "" }, { "docid": "4b0c5746a1ac85fa81771a8a8a20868c", "score": "0.7678735", "text": "public function run()\n {\n //Tạo 1 dữ liệu trên data base\n // DB::table('todos')->insert([\n // 'name' => Str::random(10),\n // 'description' => Str::random(10),\n // 'completed' => true,\n // ]);\n\n //Tạo nhiều\n Todo::factory(5)\n // ->count(10)\n // ->hasPosts(1)\n ->create();\n //Sau khi tạo xong thì qua databaseSeeder.php để gọi\n }", "title": "" }, { "docid": "c6a289f8899b7ae9ecc9fac9bc29c5a6", "score": "0.7678028", "text": "public function run()\n {\n Model::unguard();\n\n // $this->call(\"OthersTableSeeder\");\n factory(Welfare::class, 100)->create();\n factory(JobTag::class, 100)->create();\n factory(Welfare::class, 100)->create();\n\n factory(Company::class, 10)->create()->each(function (Company $company) {\n $company->images()->createMany(factory(CompanyImage::class, random_int(0, 3))->make()->toArray());\n $company->jobs()->createMany(factory(Job::class, random_int(0, 20))->make()->toArray());\n });\n }", "title": "" }, { "docid": "e4b68debc10ebf9c9ba7ccc13ad96554", "score": "0.7677989", "text": "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Student::truncate();\n Schema::enableForeignKeyConstraints();\n\n // $faker = Faker\\Factory::create();\n\n // for ($i=0; $i < 100; $i++) { \n // $st = new Student([\n // \"first_name\" => $faker->firstName(),\n // \"last_name\" => $faker->lastName(),\n // \"email\" => $faker->unique()->safeEmail()\n // ]);\n // $st->save();\n // }\n\n factory(Student::class, 25)->create();\n }", "title": "" }, { "docid": "232280f5b66a069fae8a2b568db508e7", "score": "0.7671213", "text": "public function run()\n {\n factory(App\\Models\\User::class, 15)->create();\n factory(App\\Models\\Movie::class, 30)->create();\n factory(App\\Models\\Address::class, 30)->create();\n factory(App\\Models\\Contact::class, 30)->create();\n $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "2e8c9674b5b47271246bd3c5d33867fc", "score": "0.7670721", "text": "public function run()\n {\n $this->call(RolesTableSeeder::class);\n\n $faker = Factory::create();\n $users = array_merge(\n factory(User::class, 9)->create()->toArray(),\n factory(User::class, 1)->create(['role_id' => Role::where('name', 'admin')->first()->id])->toArray()\n );\n $categories = factory(Category::class, 6)->create()->toArray();\n\n foreach ($users as $user) {\n /** @var Post $posts */\n $posts = factory(Post::class, rand(1, 5))->create(['user_id' => $user['id']]);\n\n foreach ($posts as $post) {\n $post->categories()->attach([\n $faker->randomElements($categories)[0]['id'],\n $faker->randomElements($categories)[0]['id'],\n ]);\n\n factory(Comment::class, rand(1, 5))->create([\n 'post_id' => $post['id'],\n 'user_id' => $user['id'],\n ]);\n }\n }\n }", "title": "" }, { "docid": "4bea3dcfb1c11c2f563ef5c570939031", "score": "0.76692706", "text": "public function run()\n {\n $this->call(UsersSeeder::class);\n $this->call(MeasuresSeeder::class);\n $this->call(ItemsSeeder::class);\n \\App\\Models\\Buyer::factory(200)->create();\n \\App\\Models\\Storage::factory(3000)->create();\n \\App\\Models\\Purchase::factory(2000)->create();\n\n }", "title": "" }, { "docid": "b8a2d239e166712dd77165697867a5de", "score": "0.76674277", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n// Task::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 20; $i++) {\n Task::create([\n 'name' => $faker->name,\n 'status' => $faker->randomElement($array = array ('to-do','doing','done')),\n 'description' => $faker->paragraph,\n 'start' => $faker->dateTime($min = 'now', $timezone = null) ,\n 'end' => $faker->dateTime($min = 'now', $timezone = null) ,\n 'assignee' => $faker->randomElement(User::pluck('id')->toArray()),\n 'assigner' => $faker->randomElement(User::pluck('id')->toArray()),\n ]);\n }\n }", "title": "" }, { "docid": "ff42adb6774e0bbeff44a5168ad219fd", "score": "0.7666566", "text": "public function run()\n {\n $this->call([\n PermissionsTableSeeder::class,\n ]);\n\n \\App\\Models\\User::factory(10)->create();\n\n \\App\\Models\\Blog::factory(100)->create();\n }", "title": "" }, { "docid": "720860b2dc67da65a78f539890510b34", "score": "0.76662236", "text": "public function run()\n {\n\n \t$faker = Faker::create('id_ID');\n foreach(range(0,5) as $i){\n \t\tDB::table('sarana')->insert([\n 'judul'=>$faker->bothify('Taman ###'),\n 'user_id'=>1,\n \t'body'=>$faker->realText($maxNbChars = 50, $indexSize = 2),\n \t'gambar'=>'gambar.jpg',\n \t\t]);}\n // factory(App\\Sarana::class,10)->create();\n }", "title": "" }, { "docid": "475d4973b6c6199504d485d769b2a6fc", "score": "0.7665698", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n Admins::insert(['email'=>'admin@smartuniv.com','password'=>Hash::make('Admin2019')]); //First Admin\n Uidata::insert(['data'=>'News tap']);\n Uidata::insert(['data'=>'']);\n Uidata::insert(['data'=>'']);\n Acyear::insert(['year'=>'2019/2020','semister'=>'1']);\n Syssta::insert(['state'=>0,'academic_year'=>1]);\n }", "title": "" }, { "docid": "3956831ae87733f8f0e38ec5700c0dbd", "score": "0.76615685", "text": "public function run()\n {\n // Initialize Faker\n $faker = Faker::create('id_ID');\n for ($i = 0; $i < 10; $i++) {\n DB::table('authors')->insert([\n 'first_name' => $faker->firstName,\n 'middle_name' => $faker->firstNameMale,\n 'last_name' => $faker->lastName,\n 'created_at' => $faker->date()\n ]);\n }\n }", "title": "" }, { "docid": "7b230b72d30c25948db35185929e3563", "score": "0.76597947", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class , 20)->create();\n factory(Rank::class,100)->create();\n factory(Answer::class,100)->create();\n\n }", "title": "" }, { "docid": "6d654d34dff257df1302ac38c4a46fab", "score": "0.76586807", "text": "public function run()\n {\n Model::unguard();\n\n $this->truncateMultiple([\n 'cache',\n 'failed_jobs',\n 'ledgers',\n 'jobs',\n 'sessions',\n // 'banner_per_pages',\n // 'news',\n // 'galeries',\n // 'careers',\n // 'faqs',\n // 'categories',\n // 'products',\n // 'about_contents',\n // 'company_contents',\n // 'web_settings'\n ]);\n\n // $news = factory(News::class, 5)->create();\n // $galeries= factory(Galery::class, 6)->create();\n\n // $faqs = factory(Faq::class, 8)->create();\n\n // $categoryIndustrial = factory(Category::class, 4)\n // ->create()\n // ->each(function ($category)\n // {\n // $category->products()->createMany(\n // factory(Product::class, 4)->make()->toArray()\n // );\n // });\n\n // $this->call(CareerTableSeeder::class);\n // $this->call(AboutContentSeeder::class);\n // $this->call(CompanyContentSeeder::class);\n // $this->call(WebSettingSeeder::class);\n\n // $this->call(AuthTableSeeder::class);\n\n // $this->call(MainCategorySeeder::class);\n\n $this->call(BannerPerPageSeeder::class);\n\n Model::reguard();\n }", "title": "" }, { "docid": "c5a6368cf4078a0a4d8b652f1ce43194", "score": "0.7657722", "text": "public function run()\n {\n // Create roles\n $this->call(RoleTableSeeder::class);\n // Create example users\n $this->call(UserTableSeeder::class);\n // Create example city\n $this->call(CitiesTableSeeder::class);\n // Create example restaurant type\n $this->call(RestaurantsTypesSeeder::class);\n // Create example restaurant\n $this->call(RestaurantsSeeder::class);\n }", "title": "" }, { "docid": "2b1ccfcd74ea29f817442dd58fc9459e", "score": "0.7657721", "text": "public function run()\n {\n //\n //DB::table('users')->truncate();\n $fakerBrazil = Faker::create('pt_BR');\n $faker = Faker::create();\n\n\n foreach (range(1, 10) as $index) {\n Notes::create(array(\n 'title' => $faker->randomElement($array = array('Atividade-1', 'Atividade-2', 'Atividade-3', 'Atividade-4')),\n 'user_name' => $faker->randomElement(User::lists('username')->toArray()),\n 'body' => $faker->sentence($nbWords = 15, $variableNbWords = true),\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n\n ));\n }\n }", "title": "" }, { "docid": "33c35c9330268efff78a329cb9fde5f6", "score": "0.76569766", "text": "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'ricky',\n 'username' => 'admin',\n 'userlevel' => 'admin',\n 'email' => 'admin@example.com',\n 'password' => bcrypt('123'),\n 'created_by' => '1',\n 'created_at' => Carbon::now()\n ]);\n DB::table('users')->insert([\n 'name' => 'budi',\n 'username' => 'operator',\n 'userlevel' => 'pegawai',\n 'email' => 'operator@example.com',\n 'password' => bcrypt('123'),\n 'created_by' => '1',\n 'created_at' => Carbon::now()\n ]);\n\n // $this->call(UsersTableSeeder::class);\n // $this->call(CategoriesSeeder::class);\n // $this->call(ProductsSeeder::class);\n }", "title": "" }, { "docid": "ea44d8a6a359fde35d7e5c7e98a844c7", "score": "0.7656455", "text": "public function run()\n {\n $faker = Faker::create('es_ES');\n foreach(range(1,100) as $index){\n \tDB::table('personas')->insert([\n \t\t'nombre' => $faker->name,\n \t\t'apellido' => $faker->lastname,\n \t\t'edad' => $faker->numberBetween(1,100),\n \t\t'dni' => $faker->randomNumber(8),\n \t]);\n }\n }", "title": "" }, { "docid": "b69765baa7a12d13300d2c6d1d088950", "score": "0.7654586", "text": "public function run()\n {\n DB::table('users')->insert(\n [\n 'username' => 'admin',\n 'email' => 'oleg2e2@gmail.com',\n 'email_verified_at' => now(),\n 'password' => Hash::make('123456789'),\n 'link' => 'kontakt',\n 'created_at' => now(),\n 'updated_at' => now(),\n ]\n );\n\n DB::table('roles')->insert(['title' => 'admin']);\n DB::table('roles')->insert(['title' => 'user']);\n DB::table('role_user')->insert(['user_id' => 1, 'role_id' => 1]);\n\n factory(App\\User::class, 20)->create()->each(\n function ($user) {\n $user->posts()->save(factory(App\\Post::class)->make());\n $user->hasMany(App\\Reply::class, 'owner_id')->save(factory(App\\Reply::class)->make(['model_id' => rand(1, 9)]));\n $user->trips()->save(factory(App\\Trip::class)->make());\n }\n );\n }", "title": "" }, { "docid": "d8aa9d1a66e018ca7c4a33e3c222390c", "score": "0.76545465", "text": "public function run()\n {\n $this->labFacultiesSeeder();\n $this->labStudentSeeder();\n $this->labTagsTableSeeder();\n $this->labPositionsTableSeeder();\n $this->labSkillsTableSeeder();\n }", "title": "" }, { "docid": "38c1567f61695033bc9c5cd019c0e92f", "score": "0.7653314", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n // factory(App\\Patient::class, 3)->create()->each(function ($patient){$patient->appointments()->createMany(factory(App\\Appointment::class, 3)->make()->toArray()); $patient->});\n // factory(App\\Appointment::class, 3)->create()->each(function ($appointment){$appointment->patient()->save(factory(App\\Patient::class)->make());$appointment->nurse()->save(factory(App\\Nurse::class)->make());$appointment->physician()->save(factory(App\\Physician::class)->make());});\n\n $this->call(RoomTableSeeder::class);\n $this->call(MedicationTableSeeder::class);\n $this->call(DepartmentTableSeeder::class);\n $this->call(ProcedureTableSeeder::class);\n $this->call(DiseaseSeeder::class);\n $this->call(RoleTableSeeder::class);\n $this->call(UserSeederTable::class);\n }", "title": "" }, { "docid": "f22715a3aaed51889e03d8e0eff9e1bc", "score": "0.7648523", "text": "public function run()\n {\n \n //disable foreign key check for this connection before running seeders\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n \n DB::table('users')->truncate();\n\n DB::table('users')->insert([\n [\n \t'name'=>'user 1',\n \t'email'=>'user1@gmail.com',\n \t'password'=>bcrypt('password'),\n \t'created_at'=>\\Carbon\\Carbon::now()\n ],\n [\n \t'name'=>'user 2',\n \t'email'=>'user2@gmail.com',\n \t'password'=>bcrypt('password'),\n \t'created_at'=>\\Carbon\\Carbon::now()\n ],\n ]);\n\n //enable foreign key check for this connection after running seeders\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n \n }", "title": "" }, { "docid": "b0a54c2c4ac3b52e29c9b1fec31b5271", "score": "0.76484305", "text": "public function run()\n {\n\n // php artisan migrate:refresh --seed\n factory(App\\User::class, 10)->create()->each(function($user){\n $user->profile()->save(factory(App\\Profile::class)->make());\n });\n\n factory(App\\Website::class, 10)->create();\n factory(App\\Article::class, 100)->create()->each(function($article){\n $flag = random_int(0, 1);\n $ids = range(1, 10);\n\n shuffle($ids);\n\n if ($flag) {\n $sliced = array_slice($ids, 0, 2);\n $article->website()->attach($sliced);\n } else {\n $article->website()->attach(array_rand($ids, 1));\n }\n \n });\n\n }", "title": "" }, { "docid": "271eb5b13582683b989e89620a409611", "score": "0.76447785", "text": "public function run()\n {\n DB::table('shops')->delete();\n $faker = Faker::create();\n foreach (range(1,10) as $index) {\n DB::table('shops')->insert([\n 'name' => $faker->firstName(),\n 'street' => $faker->streetName(),\n 'city' => $faker->city(),\n 'phoneNumber' => $faker->phoneNumber(),\n 'email' => $faker->email(),\n ]);\n }\n }", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "2e4e4d8f20457b4e233772e5f82985ef", "score": "0.0", "text": "public function destroy(Announcement $announcement)\n {\n //\n $path = public_path() . $announcement->image_path;\n File::delete($path);\n $announcement->delete();\n return redirect()->route('announcement.index');\n }", "title": "" } ]
[ { "docid": "9e3888bdb250b09daf6881b2c953ce96", "score": "0.7387755", "text": "protected function removeImageFromStorage (HCResources $resource)\n {\n $path = $this->uploadPath . $resource->id;\n\n if (Storage::has ($path)) {\n Storage::delete ($path);\n }\n }", "title": "" }, { "docid": "3f1322e69a1884d9745c5ef5f1590e48", "score": "0.7141337", "text": "public function removeResource($resourceName);", "title": "" }, { "docid": "37dd170c1eaea50870a9bd20839ad070", "score": "0.7137241", "text": "public function remove(ResourceInterface $resource): void\n {\n }", "title": "" }, { "docid": "e8f55d4cc56465e75499a86915b35d9b", "score": "0.70428175", "text": "public function delete($resource);", "title": "" }, { "docid": "e390bf434f5cce46402b827d582cdcbe", "score": "0.7039089", "text": "public function removeResource(Resource $resource): void\n {\n if (!isset($this->resources[$resource->getUri()])) {\n return;\n }\n unset($this->resources[$resource->getUri()]);\n }", "title": "" }, { "docid": "9d416bb966c467169e3ae97e3c181868", "score": "0.63677", "text": "abstract function deleteResource(int $id);", "title": "" }, { "docid": "b9f567113f04c7ad2db0fe760a0a6fdc", "score": "0.63184243", "text": "public function unregisterResource()\n {\n Zend_Registry::get('acl')->remove($this);\n }", "title": "" }, { "docid": "86a97ef20b44d79f474926937530d353", "score": "0.63162404", "text": "public function remove($resourceId)\n {\n return $this->rResourceMixin->remove($resourceId);\n }", "title": "" }, { "docid": "2961fd7e3d8100bdb9570443ca486260", "score": "0.624805", "text": "public function destroy()\n {\n if ($this->resource) {\n sem_remove($this->resource);\n @unlink($this->filePath);\n }\n }", "title": "" }, { "docid": "13034525cd05a6a81ce72172a28a6888", "score": "0.6213014", "text": "public function delete()\n {\n $request = new StorageDeleteRequest();\n $request->setBucketName($this->bucket->getName());\n $request->setKey($this->key);\n\n [$response, $status] = $this->storage->_baseStorageClient->Delete($request)->wait();\n Utils::okOrThrow($status);\n }", "title": "" }, { "docid": "251c69886b6b7be9441be8fe7c79bf9f", "score": "0.6166032", "text": "public function destroy($id, $resource='typeProduct')\n {\n //\n }", "title": "" }, { "docid": "0145806453a1e9f5ee0809b4db0b14d3", "score": "0.61310524", "text": "public function markAsDeleted(ResolvedResource $resource);", "title": "" }, { "docid": "d3de183319816e68e04b4ba5ab69a652", "score": "0.6125602", "text": "public function wipeStorage(): void;", "title": "" }, { "docid": "ac2ff7081643a335753979289127eb7f", "score": "0.6098791", "text": "function destroy( $resource ){\n\n\n\n\n\n \n\n}", "title": "" }, { "docid": "7f77f3b95410a985ed02a0994980a5dd", "score": "0.6076961", "text": "public function deleteResource(AbstractNode $resource) : void;", "title": "" }, { "docid": "c1246d964fe6c011b7e9a2e92e2bce69", "score": "0.60498166", "text": "public function destroy($id)\n\t{\n\t\t//\n\t\t$file = \\App\\Resource::find($id)->image;\n\t\tunlink('pictures/' . $file);\n\t\t\\App\\Resource::destroy($id);\n\t\treturn Redirect::to('/');\n\t}", "title": "" }, { "docid": "e9a19d00feed0894857d58eb3e4aea34", "score": "0.6019356", "text": "protected function dropResource()\n {\n $this->dropFile('Resource', $this->getResourcePath());\n }", "title": "" }, { "docid": "6633698916692181c267e327ea427da6", "score": "0.5991417", "text": "public function rm( $path );", "title": "" }, { "docid": "4f634fd6a5cf444037bf2efc93dadfeb", "score": "0.5945026", "text": "public function clear()\n {\n \tunlink($this->_storage);\n }", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "15a853ed70c99f4514a71c5e2d0b94aa", "score": "0.59332573", "text": "public function remove($resource)\n {\n try {\n $resourceId = $this->get($resource)->getResourceId();\n } catch (Zend_Acl_Exception $e) {\n require_once 'Zend/Acl/Exception.php';\n throw new Zend_Acl_Exception($e->getMessage(), $e->getCode(), $e);\n }\n\n $resourcesRemoved = [$resourceId];\n if (null !== ($resourceParent = $this->_resources[$resourceId]['parent'])) {\n unset($this->_resources[$resourceParent->getResourceId()]['children'][$resourceId]);\n }\n foreach ($this->_resources[$resourceId]['children'] as $childId => $child) {\n $this->remove($childId);\n $resourcesRemoved[] = $childId;\n }\n\n foreach ($resourcesRemoved as $resourceIdRemoved) {\n foreach ($this->_rules['byResourceId'] as $resourceIdCurrent => $rules) {\n if ($resourceIdRemoved === $resourceIdCurrent) {\n unset($this->_rules['byResourceId'][$resourceIdCurrent]);\n }\n }\n }\n\n unset($this->_resources[$resourceId]);\n\n return $this;\n }", "title": "" }, { "docid": "b8b5d5ca606833c889a1285814fba6f4", "score": "0.5917159", "text": "public function unlinkResource() {\n\t\t$this->resource=null;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "1f9a1be4bb584e042a8ad8d688ac9917", "score": "0.59067374", "text": "public function delete() {\n if (file_exists($this->src)) unlink($this->src);\n }", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "682325cf5de8624768bd5dbfad42738d", "score": "0.5875408", "text": "public function action_remove()\n\t{\n\t\t$this->access('admin.'.strtolower($this->_admin->resource).'.remove');\n\t\t$id = $this->request->param('id');\n\n\t\tif(!$this->request->is_ajax())\n\t\t{\n\t\t\tthrow new Kohana_HTTP_Exception_404;\n\t\t}\n\n\t\t// Needs to be a GET request\n\t\tif($this->request->method() != Request::GET)\n\t\t{\n\t\t\tthrow new Kohana_HTTP_Exception_403('No data was requested to be removed.');\n\t\t}\n\n\t\t$record = $this->_admin->model->where($this->_admin->primary_key, '=', $id)->find();\n\n\t\tif($record->loaded())\n\t\t{\n\t\t\tRD::set(RD::SUCCESS, ':resource #:id has been removed.', array(\n\t\t\t\t':resource' => Inflector::singular($this->_resource),\n\t\t\t\t':id' => $id\n\t\t\t));\n\t\t\t$record->delete();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tRD::set(RD::WARNING, ':resource can\\'t be found.', array(\n\t\t\t\t':resource' => Inflector::singular($this->_resource),\n\t\t\t\t':id' => $id\n\t\t\t));\n\t\t}\n\t}", "title": "" }, { "docid": "16ede02ea64f8d696ab94948fa4d095a", "score": "0.5870248", "text": "public function destroyFile($resource, File $file)\n {\n $file->delete();\n return $file->{$resource};\n }", "title": "" }, { "docid": "e02a61dc8d778d6f70e60505035c99d1", "score": "0.58621585", "text": "public function onDelete(DeleteResourceEvent $event)\n {\n $em = $this->container->get('doctrine.orm.entity_manager');\n $em->remove($event->getResource());\n $event->stopPropagation();\n }", "title": "" }, { "docid": "4b22b7ee3a57517ec9e3b86bea1578c9", "score": "0.5856808", "text": "public function clearStorage();", "title": "" }, { "docid": "ee70945e791659b8782f1f156e69304e", "score": "0.5847799", "text": "public function delete()\n {\n return $this->getStorage()->delete($this->path().DIRECTORY_SEPARATOR.$this->name());\n }", "title": "" }, { "docid": "84e424b359d9d6f2b49045a0bf4df9de", "score": "0.58229584", "text": "public function destroy($id)\n {\n $productImage = ProductImage::find($id);\n $productImage->delete();\n $fullPath = str_replace(\"storage\",\"/public\",$productImage->path);\n Storage::delete($fullPath);\n return $productImage;\n }", "title": "" }, { "docid": "e47bb1b7bccbeb8651920ef7986252ae", "score": "0.5819071", "text": "protected function destroy(User $resource)\n {\n }", "title": "" }, { "docid": "2d75567656921f9588d0f6a09e30ea8c", "score": "0.5816774", "text": "public function testItShouldRemoveSpecifiedResource()\n {\n $this->json['data'] = [];\n $this->json('DELETE', $this->base_url . $this->getId(), [], $this->getHeaders())\n ->assertStatus(200)\n ->assertJsonStructure($this->json);\n }", "title": "" }, { "docid": "633ae266a2f875f0726e79f6358f15aa", "score": "0.58142436", "text": "public function remove(string $key) {\n $this->storage->remove($key);\n }", "title": "" }, { "docid": "e53013c127607b9b9763311d1d78cf4b", "score": "0.58067673", "text": "public function detach()\n {\n if (!isset($this->resource)) {\n return null;\n }\n $resource = $this->resource;\n unset($this->resource);\n $this->size = null;\n $this->uri = null;\n $this->readable = false;\n $this->seekable = false;\n $this->writable = false;\n return $resource;\n }", "title": "" }, { "docid": "567e641bf24d438f1c69a4a617fddcb1", "score": "0.57947505", "text": "function delete($resource, $headers = array())\n {\n $result = $this->client->delete($this->build_url($resource), [\n 'headers' => array_merge([\n 'Authorization' => $this->getBearer()\n ], $headers)\n ]);\n return $result;\n }", "title": "" }, { "docid": "5bc196208c1decbb644cd5cece6edd3f", "score": "0.5773983", "text": "public function unlink($uri) {\n $this->uri = $uri; // set instance URI\n return unlink($this->get_local_path());\n }", "title": "" }, { "docid": "f97458f1a249bea8589e37ce4a19458a", "score": "0.5770823", "text": "public function destroy($id)\n {\n// $info = $request->img;\n// dd($info);\n// dd($id);\n $info = Zhou::where('id',$id)->select('file')->first()->toArray();\n// dd('/storage/'.$info['file']);\n unlink('./storage/'.$info['file']);\n $data = Zhou::where('id',$id)->delete();\n\n\n// dd();\n if($data){\n return json_encode(['code'=>200]);\n }\n }", "title": "" }, { "docid": "1dee477f6e099b050eb54e8469548631", "score": "0.57649726", "text": "public function destroy($id)\n {\n $slider=Slider::find($id);\n if($slider->image)\n {\n if(Storage::exists('public/slider/' . $slider->image)){\n $delete= Storage::delete('/public/slider/' . $slider->image); \n }\n }\n $slider->delete();\n alert::success('slider Deleted Successfully');\n return redirect()->back();\n }", "title": "" }, { "docid": "bbd4fbeb169cce49dbdee4fcf4da3308", "score": "0.576368", "text": "public function destroy(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "ddf3faf7670af66339c535dd8de7c088", "score": "0.57453483", "text": "public function destroy(Request $request)\n {\n Storage::delete($request->path);\n return redirect()->route('storage.index');\n }", "title": "" }, { "docid": "aa96241e32a2910707191042a72208b3", "score": "0.5733017", "text": "public function destroy(Resource $resource): JsonResponse\n {\n Storage::disk('article')->delete($resource->url);\n $resource->delete();\n return $this->api_success([\n 'data' => new ResourceArticleResource($resource),\n 'message' => __('pages.responses.deleted'),\n 'code' => 200\n ]);\n }", "title": "" }, { "docid": "30d12407d208c7245c67fe3e3c0e6844", "score": "0.5715374", "text": "public function remove (object $entity);", "title": "" }, { "docid": "38e5a4eab7d9a854a4348b6f78b1554b", "score": "0.571345", "text": "public function destroy($resource, $id)\n {\n $this->repository->delete($id);\n return response(null, 204);\n }", "title": "" }, { "docid": "148f851e6e394ade1c2f9c6b118d123d", "score": "0.5697347", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n return response()->json(['status' => 'ok']);\n }", "title": "" }, { "docid": "dfafd8026a650244c991d50f54215453", "score": "0.569202", "text": "public function free():void { unlink($this->getfilename()); }", "title": "" }, { "docid": "405f641d9f45ae5d1d63de363880f02b", "score": "0.5691377", "text": "public function destroy($id)\n\n {\n\n $product = Product::findOrFail($id);\n\n\n\n// unlink(public_path(). $icon->file);\n\n\n\n// $photo->delete();\n//\n// $icon->delete();\n Photo::where('product_id',$id)->delete();\n $product->delete();\n\n\n\n\n\n return redirect()->route('admin.products.index');\n\n }", "title": "" }, { "docid": "5b249643a990832f9ecd53f247c87bb4", "score": "0.5689915", "text": "public function destroy($id)\n {\n $find = DB::table('suppliers')->where('id',$id)->first();\n $photo = $find->photo;\n\n if($photo){\n unlink($photo);\n DB::table('suppliers')->where('id',$id)->delete();\n }else{\n DB::table('suppliers')->where('id',$id)->delete();\n }\n }", "title": "" }, { "docid": "c0f1056876f778bb47bd815edbae240a", "score": "0.5686687", "text": "public function destroy($id)\n {\n //\n\n $query = Picture::find($id);\n $collections = collect($query);\n $filename = $collections->get('title');\n // default is config/filesystems.php\n $contents = Storage::get($filename);\n Storage::delete($filename);\n Picture::destroy($id);\n \n return redirect('picture');\n //return $contents;\n \n }", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "3b5ab38f0f5c2e97d3b02bce08803b25", "score": "0.56787795", "text": "public function destroy($id)\n {\n \n $imageUpload = Image::findOrfail($id);\n\n File::delete([\n public_path(('/images/').$imageUpload->imageName),\n ]);\n $imageUpload->delete();\n }", "title": "" }, { "docid": "63bd4ba9d20687d38d658987b149d5fb", "score": "0.5676478", "text": "public function deleteResource(\n $uri = \"\",\n $headers = []\n );", "title": "" }, { "docid": "9821f26046d4f47083ca51bd2deff710", "score": "0.5674362", "text": "public function destroy($id)\n {\n //\n $item = post::find($id);\n \n$item->tags()->detach();\n $image_path = $item->file; // the value is : localhost/project/image/filename.format\n \n //Image::destroy($image_path);\n \n $item->delete();\n return redirect('post');\n }", "title": "" }, { "docid": "3d074a3589196f3e2c63d1b79c3a54f2", "score": "0.5669239", "text": "public function destroy()\n {\n $file = pathinfo(request()->getContent());\n $storagePath = $this->baseStoragePath();\n $path = \"{$storagePath}/{$file['basename']}\";\n\n $fileDeleted = Storage::disk(config('canvas.storage_disk'))->delete($path);\n\n if ($fileDeleted) {\n return response()->json([], 204);\n }\n }", "title": "" }, { "docid": "84ffd5d41241886a42efaaa6c4cb6c45", "score": "0.5658867", "text": "public function delete()\n {\n self::remove($this->key);\n $this->key = null;\n $this->value = null;\n }", "title": "" }, { "docid": "a81365633fd5b106741f1068f03a568a", "score": "0.5654999", "text": "public function remove(object $entity): void;", "title": "" }, { "docid": "f3ecd01b9c9cfcc917a40e1827e8d6a1", "score": "0.56522495", "text": "public function del() {\n sem_acquire($this->__mutex); //block until released\n @shm_remove_var($this->__shm, $this->__key);\n sem_release($this->__mutex); //release mutex\n }", "title": "" }, { "docid": "e24a8da2185cf275580016315ac8c0fe", "score": "0.5646982", "text": "public abstract function remove();", "title": "" }, { "docid": "7257252b8ba3d014ab6c945b9b1f8774", "score": "0.5646248", "text": "public function destroy($id)\n {\n\n $slider = Slider::whereId($id)->first();\n $image = $slider->slider_image;\n $path = 'public/slider_images/'; \n Storage::delete( $path . $image); \n \n $data = Slider::findOrFail($id);\n $data->delete();\n\n Session::flash('success', 'Slider deleted successfully..');\n return redirect()->route('all.slider');\n }", "title": "" }, { "docid": "884fba4384b6fac636fcb5fd3a0b8119", "score": "0.56440735", "text": "public function deletePhoto($resource, $id)\n {\n if (($resource === 'user') || ($resource === 'group') || ($resource === 'memo')) {\n\n //Validate Model is valid and return valid response\n list($param, $model) = $this->validateModelIsValid($resource, $id);\n //Get Image Name\n $image = $model->img_url;\n\n //Delete Avatar and Thumbnail\n if ($image != null) {\n Storage::delete(\"/$param/avatars/thumbnails/$image\");\n Storage::delete(\"/$param/avatars/$image\");\n }\n //Update Profile Photo Field To Null\n $model->img_url = null;\n //Save in Database\n $model->save();\n //Return Response\n return response()->json($model, 202);\n }\n\n return response('Invalid request', 400);\n\n }", "title": "" }, { "docid": "684caecb3cebeb517274f1dbe758544f", "score": "0.5639566", "text": "abstract public function remove($scope = null, $pref = null);", "title": "" }, { "docid": "f12fb388a946ae58a0b65aa86a9ca9f5", "score": "0.56333244", "text": "public function delete(string $path);", "title": "" }, { "docid": "83377e4a1bcc3dc2e77329262b4d9a6d", "score": "0.5628369", "text": "public function delete()\n {\n fclose($this->inputStream);\n }", "title": "" }, { "docid": "9db585fcb135fe60165f9be69e476584", "score": "0.5622851", "text": "private function _remove($id)\n\t{\n\t\t$store = $this->model_store->find($id);\n\n\t\tif (!empty($store->IMAGE)) {\n\t\t\t$path = FCPATH . '/uploads/store/' . $store->IMAGE;\n\n\t\t\tif (is_file($path)) {\n\t\t\t\t$delete_file = unlink($path);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\treturn $this->model_store->remove($id);\n\t}", "title": "" }, { "docid": "3cfb84429aef8127ecc19fa5934511fe", "score": "0.56167203", "text": "public function deleteTagging($resource)\n {\n $taggingList = $this->getEm()->createQueryBuilder()\n ->select('t')\n ->from('UnifikDoctrineBehaviorsBundle:Tagging', 't')\n ->where('t.resourceType = :type')\n ->setParameter('type', $resource->getResourceType())\n ->andWhere('t.resourceId = :id')\n ->setParameter('id', $resource->getId())\n ->getQuery()\n ->getResult();\n\n foreach ($taggingList as $tagging) {\n $this->getEm()->remove($tagging);\n }\n }", "title": "" }, { "docid": "8bd2c06eeb1572fe4c48014cc912a6d6", "score": "0.5607892", "text": "public function delete() {\n @unlink($this->path());\n return parent::delete();\n }", "title": "" }, { "docid": "14eedb590aed3088ebca2d6e88f88b70", "score": "0.55937696", "text": "public function destroy($id)\n {\n if ($id) {\n $storagek = Storagek::find($id);\n unlink(public_path('storage/images/').$storagek->file);\n $storagek->delete();\n return response()->json([\n \"success\" => true,\n \"message\" => \"File successfully delete\",\n ]);\n } else {\n return response()->json(['Err' => 'id no found']);\n }\n\n\n\n //\n }", "title": "" }, { "docid": "1b06eb968537fe78419acb4959d62e6d", "score": "0.55909395", "text": "public function destroy(Request $request, $id)\n\t{\n\t\t$storage = Storage::where('organization_id', $request->user()->organization_id)->where('storage_id', $id)->first();\n\n\t\tif ($storage) {\n\t\t\t$storage->delete();\n\t\t\tSession::flash('success', 'Склад была успешно удален из справочника!');\n\t\t} else {\n\t\t\tSession::flash('error', 'Склад не найден в справочнике!');\n\t\t}\n\n\t\treturn redirect()->route('storage.index');\n\t}", "title": "" }, { "docid": "eb981a32d53ea8153aa2cec46a4f509f", "score": "0.5581215", "text": "public function destroy($id)\n {\n// if(Auth::user()->role == User::ROLE_SUPERADMIN) {\n $product = ProductItem::findOrFail($id);\n if($product->image_name != '') {\n $image_path = app_path(\"../../files/product/\" . $product->image_name);\n unlink($image_path);\n }\n\n ProductItem::destroy($id);\n\n Alert::success('Your data already deleted !', 'Success !');\n\n return redirect('admin/product');\n// }\n }", "title": "" }, { "docid": "b3f61ce5e85b70bb0bf7f3a5ad6064ba", "score": "0.55771476", "text": "function remove(){\n shm_remove($this->id);\n }", "title": "" }, { "docid": "97914eb78d7cf648246f9bcd6ac69124", "score": "0.5573565", "text": "public function destroy($id)\n {\n /*\n\n = R::load( '', $id );\n R::trash( );*/\n }", "title": "" }, { "docid": "1f9a85d3b28293dfe2336fc2953ad59f", "score": "0.55613", "text": "public function destroy($id)\n {\n // get divide\n $divide = Divide::findOrFail($id);\n \n File::delete(public_path('image/') . $divide->img);\n \n if($divide->delete()) {\n return new DivideResource($divide);\n }\n }", "title": "" }, { "docid": "3a507f65a1de28bc6b0f34c5d713d3a2", "score": "0.5560665", "text": "public function removeUpload()\n {\n \tif ($file = $this->getAbsolutePath()) {\n \t\tunlink($file);\n \t}\n }", "title": "" }, { "docid": "82eeede68c38b70a29849c8d452c2f6a", "score": "0.5556357", "text": "public function destroy($id)\n { \n $product = Item::find($id);\n $image = $product->image;\n\n $basename ='img/products/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n if($basename != 'img/products/img_place_holder_product.png'){\n unlink($basename);\n }\n }\n $product->delete();\n\n Session::flash('success','Product Deleted');\n return redirect()->back();\n }", "title": "" }, { "docid": "7cdf7f14d455dbb5d9ed3ea3b44142b0", "score": "0.55545616", "text": "protected static function removeComponent()\n {\n (new Filesystem)->delete(\n resource_path('assets/js/components/ExampleComponent.vue')\n );\n }", "title": "" }, { "docid": "7488846bbe831c2c5afdad208317b7bd", "score": "0.5543239", "text": "public function destroy(File $file)\n {\n //\n $url = str_replace('storage', 'public', $file->url);\n Storage::delete($url);\n\n $file->delete();\n return redirect()->route('files.index')->with('eliminar', $file);\n }", "title": "" }, { "docid": "35753424e21be7d9c22ced54d549e939", "score": "0.5540951", "text": "public function remove()\n\t{\n\t\tif(self::exists($this->name))\n\t\t{\n\t\t\t$this->value = false;\n\t\t\t$this->encodedValue = null;\n\t\t\t$this->sendHeader();\n\n\t\t\t$cookiePath = $this->getMetaFilePath();\n\n\t\t\tif(File::exists($cookiePath))\n\t\t\t\tFile::remove($cookiePath);\n\t\t}\n\t}", "title": "" }, { "docid": "9d72fe7c299d9bc6b0d19ba6bb397fa3", "score": "0.55405164", "text": "public function destroy($id)\n {\n $product = Product::where('id', $id)->first();\n if ($product->image) {\n unlink($product->image);\n }\n Product::where('id', $id)->delete();\n }", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "d434e2cdc40338f523a40bcd0c8522a0", "score": "0.55343556", "text": "public function delete() {\n $this->client->deleteData($this->uri);\n }", "title": "" }, { "docid": "66928b15fb30f2f5cf746449308643ba", "score": "0.5534244", "text": "public function remove()\n {\n $this->_context->builder->waveletRemove($this->waveId, $this->waveletId);\n }", "title": "" }, { "docid": "bd7d7fbce770fd39cf8081927084d5c3", "score": "0.55334973", "text": "public function destroy($id)\n {\n $brand = Brand::findOrFail($id);\n\n if (Storage::disk('public')->exists('Brand/'.$brand->brand_image)) {\n Storage::disk('public')->delete('Brand/'.$brand->brand_image);\n }\n $brand->delete();\n }", "title": "" }, { "docid": "a3bbd69ef2b058074f49c04b76cdbd14", "score": "0.55301565", "text": "public function delete() {\n if ($this->_filepath and is_writable($this->_filepath)) {\n unlink($this->_filepath);\n }\n }", "title": "" }, { "docid": "98e71b5db6e284bbc48862c743eb819b", "score": "0.552751", "text": "public function destroy($id)\n {\n //\n $makale_resim = Article::find($id)->img->name;\n @unlink(public_path(\"uploads/\".$makale_resim));\n @unlink(public_path(\"uploads/thumb_\".$makale_resim));\n Img::where(\"imageable_id\",$id)->where(\"imageable_type\",\"App\\Article\")->delete();\n Article::destroy($id);\n Session::flash(\"durum\",1);\n return redirect(\"/admin/haber\");\n }", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" } ]
cbcc8cee392d5cd615c8135a02b3779b
Custom Texonomy Category for About US
[ { "docid": "a42f99a1f79cf7bedbf1c51dd120f0fd", "score": "0.67427933", "text": "function about_custom_category() {\r\n\t// Add new taxonomy, make it hierarchical (like categories)\r\n\t$labels = array(\r\n\t\t'name' => _x( 'Categories', 'taxonomy general name', 'textdomain' ),\r\n\t\t'singular_name' => _x( 'Category', 'taxonomy singular name', 'textdomain' ),\r\n\t\t'search_items' => __( 'Search Categories', 'textdomain' ),\r\n\t\t'all_items' => __( 'All Categories', 'textdomain' ),\r\n\t\t'parent_item' => __( 'Parent Category', 'textdomain' ),\r\n\t\t'parent_item_colon' => __( 'Parent Category:', 'textdomain' ),\r\n\t\t'edit_item' => __( 'Edit Category', 'textdomain' ),\r\n\t\t'update_item' => __( 'Update Category', 'textdomain' ),\r\n\t\t'add_new_item' => __( 'Add New Category', 'textdomain' ),\r\n\t\t'new_item_name' => __( 'New Category Name', 'textdomain' ),\r\n\t\t'menu_name' => __( 'Category', 'textdomain' ),\r\n\t);\r\n\r\n\t$args = array(\r\n\t\t'hierarchical' => true,\r\n\t\t'labels' => $labels,\r\n\t\t'show_ui' => true,\r\n\t\t'show_admin_column' => true,\r\n\t\t'query_var' => true,\r\n\t\t'rewrite' => array( 'slug' => 'about_slug' ),\r\n\t);\r\n\r\n\tregister_taxonomy( 'about_us_category', array( 'aboutus' ), $args );\r\n\r\n}", "title": "" } ]
[ { "docid": "79d3bc9466964df73a3f91cd27976a8a", "score": "0.70984244", "text": "function about_custom_texo() {\r\n\t// Add new taxonomy, make it hierarchical (like categories)\r\n\t$labels = array(\r\n\t\t'name' => _x( 'AboutUS', 'taxonomy general name', 'textdomain' ),\r\n\t\t'singular_name' => _x( 'About', 'taxonomy singular name', 'textdomain' ),\r\n\t\t'search_items' => __( 'Search AboutUS', 'textdomain' ),\r\n\t\t'all_items' => __( 'All AboutUS', 'textdomain' ),\r\n\t\t'parent_item' => __( 'Parent About', 'textdomain' ),\r\n\t\t'parent_item_colon' => __( 'Parent About:', 'textdomain' ),\r\n\t\t'edit_item' => __( 'Edit About', 'textdomain' ),\r\n\t\t'update_item' => __( 'Update About', 'textdomain' ),\r\n\t\t'add_new_item' => __( 'Add New About', 'textdomain' ),\r\n\t\t'new_item_name' => __( 'New About Name', 'textdomain' ),\r\n\t\t'menu_name' => __( 'About', 'textdomain' ),\r\n\t);\r\n\r\n\t$args = array(\r\n\t\t'hierarchical' => true,\r\n\t\t'labels' => $labels,\r\n\t\t'show_ui' => true,\r\n\t\t'show_admin_column' => true,\r\n\t\t'query_var' => true,\r\n\t\t'rewrite' => array( 'slug' => 'about_slug' ),\r\n\t);\r\n\r\n\tregister_taxonomy( 'about_cats', array( 'aboutus' ), $args );\r\n\r\n}", "title": "" }, { "docid": "11ae66fbb113509f37e13a990054876d", "score": "0.6947312", "text": "function about()\n {\n return array('name' => _(\"Category\"));\n }", "title": "" }, { "docid": "53d663d58892eb1332b95012537915f2", "score": "0.65800464", "text": "public function getCategory()\n {\n return \"Access Control Flaws\"; //See category.php for list of all the categories\n }", "title": "" }, { "docid": "3fd2263e0d26fbf6b7054fe7cd4ffaad", "score": "0.64763695", "text": "public function category() {\n\t\treturn static::get_thrive_advanced_label();\n\t}", "title": "" }, { "docid": "3650489447f530099f1479ffaf00c82f", "score": "0.6391648", "text": "public function categoria();", "title": "" }, { "docid": "4b3cc85ef80c3f828230098e6979b05e", "score": "0.63901424", "text": "function sos_chapter_change_cat_object() {\n global $wp_taxonomies;\n $labels = &$wp_taxonomies['product_cat']->labels;\n $labels->name = 'Topic';\n $labels->singular_name = 'Topic';\n $labels->add_new = 'Add Topic';\n $labels->add_new_item = 'Add Topic';\n $labels->edit_item = 'Edit Topic';\n $labels->new_item = 'Topic';\n $labels->view_item = 'View Topic';\n $labels->search_items = 'Search Topics';\n $labels->not_found = 'No Topics found';\n $labels->not_found_in_trash = 'No Topics found in Trash';\n $labels->all_items = 'All Topics';\n $labels->menu_name = 'Topic';\n $labels->name_admin_bar = 'Topic';\n}", "title": "" }, { "docid": "da39b580dfbc0d512c5296e96f7ac044", "score": "0.63494235", "text": "abstract protected function category();", "title": "" }, { "docid": "19d304aeeb070c04acdfe2808d28e2a4", "score": "0.6341926", "text": "function getName() { return \"Categories ETL Plugin\"; }", "title": "" }, { "docid": "c232ae11a9b2251b67c64b0fdf27035d", "score": "0.62985027", "text": "public function categoryString(){ return $this->categoryString; }", "title": "" }, { "docid": "ef6effa56ec00d703a27a256ae86d595", "score": "0.62642115", "text": "public function get_category()\n {\n return 'Admin Utilities';\n }", "title": "" }, { "docid": "48fb8104cb9f3cd034a670e397fa735e", "score": "0.6239306", "text": "public function category()\n\t{\n\t\treturn $this->categoryMap('name');\n\t}", "title": "" }, { "docid": "424b937d58475566aacd5db2755a8c89", "score": "0.6224915", "text": "public function get_name()\n {\n return \"Kategorieansicht\";\n }", "title": "" }, { "docid": "67d008979a8d71aa2784cfec79c8c9da", "score": "0.62078226", "text": "public function description(){ return \"Category \" . $this->categoryString . \" / \" . $this->primaryCategory; }", "title": "" }, { "docid": "9b2582d956d6bc1eca9f2ed51fb3e1f4", "score": "0.6162994", "text": "public function categories();", "title": "" }, { "docid": "6360de4080c875bb58f483c930da9e94", "score": "0.6097895", "text": "public function category()\n {\n echo \"<h1>PAGE CATEGORY DU CONTROLLEUR</h1>\";\n }", "title": "" }, { "docid": "efa8f27d8e571de69b95f0371e7c8781", "score": "0.60827464", "text": "abstract public function getCategory();", "title": "" }, { "docid": "a04869f8099ea3c6578636670ef053b0", "score": "0.60793316", "text": "public function getCategory(): string;", "title": "" }, { "docid": "94e504c4583d4e34a15ab7b945b2534e", "score": "0.60667104", "text": "function getCategorie()\n\t{\n\t\treturn array(\"Antipasti\",\"Primi Piatti\",\"Teppanyako e Tempure\",\"Uramaki\",\"Nigiri ed Onigiri\",\"Gunkan\",\"Temaki\",\"Hosomaki\",\"Sashimi\",\"Dessert\");\n\t}", "title": "" }, { "docid": "c01d2b37a9117c54b5fd82499dea04c9", "score": "0.60664004", "text": "public function showCategory(){\n\n \n }", "title": "" }, { "docid": "beb26938a9179d68bf1bbb7822d6e958", "score": "0.6039537", "text": "function industries_categories() {\n register_taxonomy(\n __(\"industry\"), \n array(__(\"industries\")),\n array(\n \"hierarchical\" => true,\n \"label\" => __(\"Industries\"),\n \"singular_label\" => __(\"Industry\"),\n \"show_ui\" => true,\n \"show_in_menu\" => true,\n \"show_in_quick_edit\" => true,\n \"public\" => true,\n \"show_admin_column\" => true,\n \"rewrite\" => array(\n 'slug' => 'industry',\n 'hierarchical' => true\n )\n )\n );\n}", "title": "" }, { "docid": "1e74081bc90a2b15c2d23ed324a5aa1d", "score": "0.6037487", "text": "private function wxr_post_taxonomy() {\r\n $post = get_post();\r\n\r\n $taxonomies = get_object_taxonomies( $post->post_type );\r\n if ( empty( $taxonomies ) )\r\n return;\r\n $terms = wp_get_object_terms( $post->ID, $taxonomies );\r\n\r\n foreach ( (array) $terms as $term ) {\r\n echo \"\\t\\t<category domain=\\\"{$term->taxonomy}\\\" nicename=\\\"{$term->slug}\\\">\" . wxr_cdata( $term->name ) . \"</category>\\n\";\r\n }\r\n }", "title": "" }, { "docid": "ddcdc30fda37f8c44dd17e1622bb21bf", "score": "0.60209316", "text": "function ap_custom_taxonomy() {\n $postTaxonomies = array(\n /*array(\n 'function' => 'portfolio_category',\n 'labelPlural' => 'Categories',\n 'labelSingle' => 'Category',\n 'url' => 'artist-category',\n 'associatedPostType' => 'artists'\n ),*/\n );\n\n foreach ($postTaxonomies as $postTaxonomiesKey => $postTaxonomiesValue) {\n $labels = array(\n 'name' => _x( $postTaxonomiesValue['labelPlural'], 'Taxonomy General Name', 'text_domain' ),\n 'singular_name' => _x( $postTaxonomiesValue['labelSingle'], 'Taxonomy Singular Name', 'text_domain' ),\n 'menu_name' => __( $postTaxonomiesValue['labelSingle'], 'text_domain' ),\n 'all_items' => __( 'All ' . $postTaxonomiesValue['labelPlural'], 'text_domain' ),\n 'parent_item' => __( 'Parent ' . $postTaxonomiesValue['labelSingle'], 'text_domain' ),\n 'parent_item_colon' => __( 'Parent ' . $postTaxonomiesValue['labelSingle'], 'text_domain' ),\n 'new_item_name' => __( 'New ' . $postTaxonomiesValue['labelSingle'] . ' Name', 'text_domain' ),\n 'add_new_item' => __( 'Add New ' . $postTaxonomiesValue['labelSingle'], 'text_domain' ),\n 'edit_item' => __( 'Edit ' . $postTaxonomiesValue['labelSingle'], 'text_domain' ),\n 'update_item' => __( 'Update ' . $postTaxonomiesValue['labelSingle'], 'text_domain' ),\n 'view_item' => __( 'View ' . $postTaxonomiesValue['labelSingle'], 'text_domain' ),\n 'separate_items_with_commas' => __( 'Separate ' . $postTaxonomiesValue['labelSingle'] . ' with commas', 'text_domain' ),\n 'add_or_remove_items' => __( 'Add or remove ' . $postTaxonomiesValue['labelPlural'], 'text_domain' ),\n 'choose_from_most_used' => __( 'Choose from the most used', 'text_domain' ),\n 'popular_items' => __( 'Popular ' . $postTaxonomiesValue['labelPlural'], 'text_domain' ),\n 'search_items' => __( 'Search ' . $postTaxonomiesValue['labelPlural'], 'text_domain' ),\n 'not_found' => __( 'Not Found', 'text_domain' ),\n 'no_terms' => __( 'No ' . $postTaxonomiesValue['labelPlural'], 'text_domain' ),\n 'items_list' => __( $postTaxonomiesValue['labelPlural'] . ' list', 'text_domain' ),\n 'items_list_navigation' => __( $postTaxonomiesValue['labelPlural'] . ' list navigation', 'text_domain' ),\n );\n $rewrite = array(\n 'slug' => $postTaxonomiesValue['url'],\n 'with_front' => true,\n 'hierarchical' => true,\n );\n $args = array(\n 'labels' => $labels,\n 'hierarchical' => true,\n 'public' => true,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'show_in_nav_menus' => true,\n 'show_tagcloud' => true,\n 'rewrite' => $rewrite\n );\n register_taxonomy( $postTaxonomiesValue['function'], array( $postTaxonomiesValue['associatedPostType'] ), $args );\n }\n\n}", "title": "" }, { "docid": "3e0cc3c5add9a7f90b3a5236fe369bf7", "score": "0.5975811", "text": "public function category_html() {\n\t\t\tif($this->get_option($this->prefix.'_show_meta_category', 'on') == 'on') {\n\t\t\t\techo '<span class=\"before-category\">'.esc_html__('in','dfd-native').'</span>';\n\t\t\t\tget_template_part('templates/entry-meta/mini', 'category-portfolio-simple');\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "4eb088e4069fb37c740eea06f9d53b4d", "score": "0.59513855", "text": "public function category(){\n $category = ClientOnlineCategory::find($this->category_id);\n if(is_object($category)){\n return $category->name;\n } else {\n return '';\n }\n }", "title": "" }, { "docid": "9ccdd0c24c0062643ad25622429ffbca", "score": "0.5943824", "text": "function create_taxonomy() {\n register_taxonomy(\n 'map-point-category',\n array('map-point'),\n array(\n 'label' => __('Map Point Category'),\n 'rewrite' => array('slug' => 'map-point-category'),\n 'capabilities' => array(\n 'assign_terms' => 'list_users',\n 'edit_terms' => 'list_users',\n 'manage_terms' => 'list_users',\n 'delete_terms' => 'list_users',\n ),\n 'public' => true,\n 'show_in_rest' => true,\n 'query_var' => true\n )\n );\n}", "title": "" }, { "docid": "1bf5b2cc43f8172a31408fb1b9803771", "score": "0.59140444", "text": "function citysoul_category_content(){\n $categories_list = get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'citysoul' ) );\n if (citysoul_check_option_theme('enable-category-archive-blog') != '0'){\n if ( $categories_list) {\n printf( '<span class=\"cat-links\"><span class=\"screen-reader-text\">%1$s </span>%2$s</span>',\n _x( 'Categories', 'Used before category names.', 'citysoul' ),\n $categories_list\n );\n }\n }\n }", "title": "" }, { "docid": "e036eb9257f7427e6098be386a670ed5", "score": "0.5913412", "text": "public function getLabel_category()\n \t{\n\t\t$cat=$this->category;\n\t\treturn $cat->name;\n \t}", "title": "" }, { "docid": "6d700fc6ecb4da5e07523d11eb2f7a8b", "score": "0.58903533", "text": "public function get_categories()\n {\n return ['jobsearch-emp-single'];\n }", "title": "" }, { "docid": "67948d0b394da11d42e25a73965ae20a", "score": "0.58845735", "text": "public function getCategory();", "title": "" }, { "docid": "67948d0b394da11d42e25a73965ae20a", "score": "0.58845735", "text": "public function getCategory();", "title": "" }, { "docid": "2e73adcd3433fbf905d5d5be2f91080f", "score": "0.5879683", "text": "public function get_categories()\n {\n return ['careerfy'];\n }", "title": "" }, { "docid": "d4135c4382054eb52955b79696804355", "score": "0.5876623", "text": "function wds_wintellect_get_post_category() {\n\t$terms = get_the_category();\n\n\tif ( 1 === count( $terms ) ) {\n\t\techo current( $terms )->category_nicename;\n\t} elseif ( count( $terms ) > 1 ) {\n\t\t$random = rand( 0, count( $terms ) - 1 );\n\t\techo $terms[ $random ]->category_nicename;\n\t} else {\n\t\techo 'devcenter';\n\t}\n}", "title": "" }, { "docid": "6b1502810af3e976b7fb569a0e4f6494", "score": "0.58692783", "text": "public function getCategory(): string {\n return $this->body['category'];\n }", "title": "" }, { "docid": "521b15e0c5b958d74c5575efcf1dc630", "score": "0.5868092", "text": "function product_category_name_options() {\n $product_category = array('none' => '--Select--');\n $query = new EntityFieldQuery();\n $query->entityCondition('entity_type', 'taxonomy_term')\n ->fieldCondition('field_product_type', 'value', 'category');\n $results = $query->execute();\n foreach ($results['taxonomy_term'] as $tid => $v) {\n $term = taxonomy_term_load($v->tid);\n if (!empty($term->field_war_display_name[LANGUAGE_NONE][0]['value'])) {\n $product_category[$term->field_page_id[LANGUAGE_NONE][0]['value']] = $term->field_war_display_name[LANGUAGE_NONE][0]['value'];\n }\n }\n return $product_category;\n}", "title": "" }, { "docid": "6e3c4d155dd76971036d976c8f80c6c0", "score": "0.58599", "text": "function odin_evento_taxonomy() {\r\n $evento = new Odin_Taxonomy(\r\n 'Evento', // Nome (Singular) da nova Taxonomia.\r\n 'evento', // Slug do Taxonomia.\r\n 'eventos' // Nome do tipo de conteúdo que a taxonomia irá fazer parte.\r\n );\r\n\r\n $evento->set_labels(\r\n array(\r\n 'menu_name' => __( 'Tipos de evento', 'odin' )\r\n )\r\n );\r\n// para ter o formato de categoria use TRUE\r\n $evento->set_arguments(\r\n array(\r\n 'hierarchical' => true\r\n )\r\n );\r\n}", "title": "" }, { "docid": "6832d927fb3f362ef0b8ed7c64a086ca", "score": "0.58442885", "text": "function ebs_category_help () {\n\techo \"<!-- category_help -->\";\n\tif (function_exists('get_term_meta')) {\n\t\tglobal $post;\n\t\t$terms = get_the_terms( $post->ID, 'product_cat' );\n\t\tif ($terms ) {\n\t\t\tforeach($terms as $term) {\n\t\t\t\t$catID = $term -> term_id;\n\t\t\t}\n\t\t\t//\techo \"<!-- catID = \".$catID.\" -->\";\n\t\t\t$content = get_term_meta($catID, 'cat_meta');\n\t\t\tif (isset($content[0]['cat_help'])) {\n\t\t\t\techo '<div class=\"product-cat-help\"> ';\n\t\t\t\techo do_shortcode($content[0]['cat_help']);\n\t\t\t\techo '</div>';\n\t\t\t} else {\n\t\t\t\t// echo \"<!-- cat_help not set -->\";\n\t\t\t}\n\n\n\t\t} else {\n\t\t\t// echo \"<!-- no terms -->\";\n\t\t}\n\t} else {\n\t\t// echo \"<!-- get_term_meta doenst exist -->\";\n\t}\n}", "title": "" }, { "docid": "65e8797d5a2d58d820bdbcbd3277fb1a", "score": "0.58286446", "text": "function patienttypology() {\n\n\t$labels = array(\n\t\t'name' => _x( 'Tipologías de paciente', 'Taxonomy General Name', 'text_domain' ),\n\t\t'singular_name' => _x( 'Tipología de paciente', 'Taxonomy Singular Name', 'text_domain' ),\n\t\t'menu_name' => __( 'Tipologías de paciente', 'text_domain' ),\n\t\t'all_items' => __( 'Todas las tipologías de paciente', 'text_domain' ),\n\t\t'parent_item' => __( 'Tipología de paciente superior', 'text_domain' ),\n\t\t'parent_item_colon' => __( 'Tipología de paciente superior:', 'text_domain' ),\n\t\t'new_item_name' => __( 'Nueva tipología de paciente', 'text_domain' ),\n\t\t'add_new_item' => __( 'Añadir nueva tipología de paciente', 'text_domain' ),\n\t\t'edit_item' => __( 'Editar tipología de paciente', 'text_domain' ),\n\t\t'update_item' => __( 'Actualizar tipología de paciente', 'text_domain' ),\n\t\t'view_item' => __( 'Ver tipología de paciente', 'text_domain' ),\n\t\t'separate_items_with_commas' => __( 'Separar tipología de paciente con comas', 'text_domain' ),\n\t\t'add_or_remove_items' => __( 'Añadir o eliminar tipología de paciente', 'text_domain' ),\n\t\t'choose_from_most_used' => __( 'Elegir de las más usadas', 'text_domain' ),\n\t\t'popular_items' => __( 'Tipologías de paciente populares', 'text_domain' ),\n\t\t'search_items' => __( 'Buscar tipologías de paciente', 'text_domain' ),\n\t\t'not_found' => __( 'No encontrado', 'text_domain' ),\n\t\t'no_terms' => __( 'No encontrado', 'text_domain' ),\n\t\t'items_list' => __( 'Lista de tipologías de paciente', 'text_domain' ),\n\t\t'items_list_navigation' => __( 'Navegación lista de tipologías de paciente', 'text_domain' ),\n\t);\n\t$args = array(\n\t\t'labels' => $labels,\n\t\t'hierarchical' => true,\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_admin_column' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'show_tagcloud' => true,\n\t);\n\tregister_taxonomy( 'patient-typology', array( 'curso' ), $args );\n\n}", "title": "" }, { "docid": "7cd7a878e5254c1248cdf859cc18b057", "score": "0.58209217", "text": "public function category_settings_description() { ?>\n\t\t<p>These setting is global and is used by all categories if no local settings are defined.</p>\n\t<?php }", "title": "" }, { "docid": "a06be744de36b8ff8450437aba084597", "score": "0.5803908", "text": "public function get_categories()\n {\n return ['general'];\n }", "title": "" }, { "docid": "a06be744de36b8ff8450437aba084597", "score": "0.5803908", "text": "public function get_categories()\n {\n return ['general'];\n }", "title": "" }, { "docid": "4773f0906e87f028e9bc9654d43ed060", "score": "0.5801504", "text": "function cslpres_activities_categories () {\n\tregister_taxonomy(\n\t\t'activity_cat',\n\t\t'activity',\n\t\tarray(\n\t\t\t'label' => __( 'Categories' ),\n\t\t\t'rewrite' => array( 'slug' => 'category' ),\n\t\t\t'hierarchical' => true,\n\t\t\t// 'rewrite' => array( 'slug' => 'work_type' ),\n\t\t\t'show_in_nav_menus' => false,\n\t\t\t'show_in_rest' => true,\n\t\t\t'rest_base' => 'activity_cat',\n\t\t\t'rest_controller_class' => 'WP_REST_Terms_Controller',\n\t\t)\n\t);\n}", "title": "" }, { "docid": "296667820a54753e3e23cce24fe22d77", "score": "0.5796709", "text": "function shopay_customize_partial_cat_menu_title() {\n return get_theme_mod( 'shopay_cat_menu_title' );\n}", "title": "" }, { "docid": "d49450c03e03c08e00d87559d3a9928a", "score": "0.5770305", "text": "function get_category_show ($custom_type) {\r\r\n\t$item_categories = get_the_terms( get_the_ID(), $custom_type );\r\r\n\t$item_category_show = \" \";\r\r\n\tif( !empty($item_categories) ){\r\r\n\t\tforeach( $item_categories as $item_category ){\r\r\n\t\t\t$item_category_show .= $item_category->name . ', ';\r\r\n\t\t}\r\r\n\t}\r\r\n\treturn substr($item_category_show, 0, -2);\r\r\n}", "title": "" }, { "docid": "4330985c009bf3d78530f34b2639856e", "score": "0.5759911", "text": "private function get_taxonomy()\n {\n }", "title": "" }, { "docid": "4330985c009bf3d78530f34b2639856e", "score": "0.57593685", "text": "private function get_taxonomy()\n {\n }", "title": "" }, { "docid": "0f59a80fb8c5ec84993f322281339f81", "score": "0.5739447", "text": "function woocommerce_template_loop_category_title_new( $category ) {\n\t\t?>\n\t\t<h3>\n\t\t\t<?php\n\t\t\t\techo $category->name;\n\n\t\t\t\tif ( $category->count > 0 )\n\t\t\t\t\techo apply_filters( 'woocommerce_subcategory_count_html', '', $category );\n\t\t\t?>\n\t\t</h3>\n\t\t<?php\n\t}", "title": "" }, { "docid": "8351a84e46679bcb19e0fe74e4e2b91f", "score": "0.5730282", "text": "public function getName()\n {\n return 'jkp_category';\n }", "title": "" }, { "docid": "4cd73bf653dc3ec6e25a02bc32f91c56", "score": "0.5728803", "text": "public function get_categories() {\n return ['general'];\n }", "title": "" }, { "docid": "4cd73bf653dc3ec6e25a02bc32f91c56", "score": "0.5728803", "text": "public function get_categories() {\n return ['general'];\n }", "title": "" }, { "docid": "56f3d86f991cd2845635d8f4310aa763", "score": "0.5727923", "text": "function cursos() {\n $labels = array(\n\t\t'name' => _x( 'Cursos', 'Post Type General Name', 'text_domain' ),\n\t\t'singular_name' => _x( 'Curso', 'Post Type Singular Name', 'text_domain' ),\n\t\t'menu_name' => __( 'Cursos', 'text_domain' ),\n\t\t'name_admin_bar' => __( 'Cursos', 'text_domain' ),\n\t\t'archives' => __( 'Archivo de cursos', 'text_domain' ),\n\t\t'attributes' => __( 'Atributos del curso', 'text_domain' ),\n\t\t'parent_item_colon' => __( 'Curso padre', 'text_domain' ),\n\t\t'all_items' => __( 'Todos los cursos', 'text_domain' ),\n\t\t'add_new_item' => __( 'Añadir nuevo curso', 'text_domain' ),\n\t\t'add_new' => __( 'Añadir nuevo', 'text_domain' ),\n\t\t'new_item' => __( 'Nuevo curso', 'text_domain' ),\n\t\t'edit_item' => __( 'Editar curso', 'text_domain' ),\n\t\t'update_item' => __( 'Actualizar curso', 'text_domain' ),\n\t\t'view_item' => __( 'Ver curso', 'text_domain' ),\n\t\t'view_items' => __( 'Ver cursos', 'text_domain' ),\n\t\t'search_items' => __( 'Buscar cursos', 'text_domain' ),\n\t\t'not_found' => __( 'No encontrado', 'text_domain' ),\n\t\t'not_found_in_trash' => __( 'Noencontrado en la papelera', 'text_domain' ),\n\t\t'featured_image' => __( 'Imagen destacada', 'text_domain' ),\n\t\t'set_featured_image' => __( 'Configurar imagen destacada', 'text_domain' ),\n\t\t'remove_featured_image' => __( 'Borrar imagen destacada', 'text_domain' ),\n\t\t'use_featured_image' => __( 'Usar como imagen destacada', 'text_domain' ),\n\t\t'insert_into_item' => __( 'Insertar en el curso', 'text_domain' ),\n\t\t'uploaded_to_this_item' => __( 'Subido', 'text_domain' ),\n\t\t'items_list' => __( 'Listado de cursos', 'text_domain' ),\n\t\t'items_list_navigation' => __( 'Lista navegable de cursos', 'text_domain' ),\n\t\t'filter_items_list' => __( 'Filtro de lista de cursos', 'text_domain' ),\n\t);\n\t$args = array(\n\t\t'label' => __( 'Curso', 'text_domain' ),\n\t\t'description' => __( 'Entradas de cursos', 'text_domain' ),\n\t\t'labels' => $labels,\n\t\t'supports' => array( 'title', 'editor', 'thumbnail', 'comments', 'custom-fields' ),\n\t\t'taxonomies' => array( 'category', 'post_tag' ),\n\t\t'hierarchical' => true,\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\n\t\t'menu_position' => 5,\n\t\t'menu_icon' => 'dashicons-book-alt',\n\t\t'show_in_admin_bar' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'can_export' => true,\n\t\t'has_archive' => false,\n\t\t'exclude_from_search' => false,\n\t\t'publicly_queryable' => true,\n\t\t'capability_type' => 'page',\n );\n register_post_type( 'curso', $args );\n}", "title": "" }, { "docid": "9f3e04b701d7b98aa8503b9fb2801270", "score": "0.57266843", "text": "public function action_aboutus()\n {\n $cms = Model::factory( 'cms' );\n $content_cms = $cms->getcmscontent( 'about-us' );\n $view = View::factory( USERVIEW . 'cms_pages' )->bind( 'cmscontent', $content_cms );\n $this->meta_title = isset( $content_cms[0]['meta_title'] ) ? $content_cms[0]['meta_title'] : \"\";\n $this->meta_keywords = isset( $content_cms[0]['meta_keyword'] ) ? $content_cms[0]['meta_keyword'] : \"\";\n $this->meta_description = isset( $content_cms[0]['meta_description'] ) ? $content_cms[0]['meta_description'] : \"\";\n $this->template->content = $view;\n }", "title": "" }, { "docid": "b551bf4f8c4353967ba758894b37c18e", "score": "0.57224226", "text": "function Cultura() {\n\n\t$labels = array(\n\t\t'name' => _x( 'Culturales', 'Post Type General Name', 'text_domain' ),\n\t\t'singular_name' => _x( 'Cultura', 'Post Type Singular Name', 'text_domain' ),\n\t\t'menu_name' => __( 'Cultura', 'text_domain' ),\n\t\t'name_admin_bar' => __( 'Post Type', 'text_domain' ),\n\t\t'archives' => __( 'Item Archives', 'text_domain' ),\n\t\t'attributes' => __( 'Item Attributes', 'text_domain' ),\n\t\t'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),\n\t\t'all_items' => __( 'All Items', 'text_domain' ),\n\t\t'add_new_item' => __( 'Add New Item', 'text_domain' ),\n\t\t'add_new' => __( 'Add New', 'text_domain' ),\n\t\t'new_item' => __( 'New Item', 'text_domain' ),\n\t\t'edit_item' => __( 'Edit Item', 'text_domain' ),\n\t\t'update_item' => __( 'Update Item', 'text_domain' ),\n\t\t'view_item' => __( 'View Item', 'text_domain' ),\n\t\t'view_items' => __( 'View Items', 'text_domain' ),\n\t\t'search_items' => __( 'Search Item', 'text_domain' ),\n\t\t'not_found' => __( 'Not found', 'text_domain' ),\n\t\t'not_found_in_trash' => __( 'Not found in Trash', 'text_domain' ),\n\t\t'featured_image' => __( 'Featured Image', 'text_domain' ),\n\t\t'set_featured_image' => __( 'Set featured image', 'text_domain' ),\n\t\t'remove_featured_image' => __( 'Remove featured image', 'text_domain' ),\n\t\t'use_featured_image' => __( 'Use as featured image', 'text_domain' ),\n\t\t'insert_into_item' => __( 'Insert into item', 'text_domain' ),\n\t\t'uploaded_to_this_item' => __( 'Uploaded to this item', 'text_domain' ),\n\t\t'items_list' => __( 'Items list', 'text_domain' ),\n\t\t'items_list_navigation' => __( 'Items list navigation', 'text_domain' ),\n\t\t'filter_items_list' => __( 'Filter items list', 'text_domain' ),\n\t);\n\t$args = array(\n\t\t'label' => __( 'Cultura', 'text_domain' ),\n\t\t'description' => __( 'Post Type Description', 'text_domain' ),\n\t\t'labels' => $labels,\n\t\t'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields' ),\n\t\t'taxonomies' => array( 'category', 'post_tag' ),\n\t\t'hierarchical' => false,\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\n\t\t'menu_position' => 5,\n\t\t'show_in_admin_bar' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'can_export' => true,\n\t\t'has_archive' => true,\n\t\t'exclude_from_search' => false,\n\t\t'publicly_queryable' => true,\n\t\t'capability_type' => 'page',\n\t);\n\tregister_post_type( 'Cultura', $args );\n\n}", "title": "" }, { "docid": "ed5551a77291aaff6aadc143b238a1c6", "score": "0.57213813", "text": "public function get_categories() {\n\t\treturn [ 'atl-category' ];\n\t}", "title": "" }, { "docid": "02b6562600e03b972bd790da4b0d03fb", "score": "0.57088983", "text": "public function getName() {\n\t\treturn $this->__('Category');\n\t}", "title": "" }, { "docid": "4f4b87ef71eedd63dfea5ffbefa05da7", "score": "0.57019454", "text": "public function get_categories()\n {\n return ['jobsearch-cand-single'];\n }", "title": "" }, { "docid": "d3720531ec1494759f3829c365be699c", "score": "0.56984204", "text": "function plugin_cclabel_categories()\n {\n return array('Categories', $GLOBALS['_CONF']['site_admin_url'] .\n '/plugins/categories/index.php', $GLOBALS['_CONF']['site_url'] .\n '/categories/images/categories.gif');\n }", "title": "" }, { "docid": "77c632258b0c7700a5bb3bbcb7ed864f", "score": "0.56903774", "text": "public function get_categories() {\n //return ['extencion-de-elementor-playful'];\n return ['extencion-de-elementor-playful'];\n }", "title": "" }, { "docid": "752badfa799d32f858fccee9ac17d5c0", "score": "0.567964", "text": "function get_category()\n {\n return 'presenter-slide';\n }", "title": "" }, { "docid": "f7d6f876a456a8cf81d46a1cea052520", "score": "0.56755847", "text": "function get_category_filter ($custom_type) {\r\r\n\t$item_categories = get_the_terms( get_the_ID(), $custom_type );\r\r\n\t$item_category_slug = \" \";\r\r\n\tif( !empty($item_categories) ){\r\r\n\t\tforeach( $item_categories as $item_category ){\r\r\n\t\t\t$item_category_slug .= str_replace(' ', '_', $item_category->name) . ' ';\r\r\n\t\t}\r\r\n\t}\r\r\n\treturn $item_category_slug;\r\r\n}", "title": "" }, { "docid": "487e8ff96a3c6945d9a9fd0d467f9332", "score": "0.56626457", "text": "public function default_ads_categories() {\r\n\r\n }", "title": "" }, { "docid": "7d219c8577e09a7800f05a839dcbfb73", "score": "0.5651094", "text": "public function getCategory_title()\n {\n return $this->category_title;\n }", "title": "" }, { "docid": "07f08697c81e903d357a6aaf5faf129e", "score": "0.5645444", "text": "public function about_us()\n {\n $data['categoryList'] = $this->Category_model->get_all_category();\n $data['aboutusData'] = $this->Commonpart_model->get_commonpart_by_type('aboutus');\n $data['getTeamData'] = $this->Team_model->get_all_team();\n $data['getFeatured'] = $this->Featured_model->get_featured_by_type('featured', 2);\n $data['whyChoose'] = $this->Commonpart_model->get_commonpart_by_type('whychoose');\n $data['specialFeatured'] = $this->Featured_model->get_featured_by_type('special_featured', 3);\n $data['getFeaturedOffer'] = $this->Featured_model->get_featured_by_type('offer', 2);\n $data['getContact'] = $this->Contact_model->get_all_contact();\n $data['content'] = \"aboutus\";\n $this->load->view('frontend/master_layout', $data);\n }", "title": "" }, { "docid": "8d13c0c34557036be3bd5e9b0eb4bf5a", "score": "0.56433403", "text": "function my_church_icon_category_args() {\r\n\t$args = array( \r\n\t\t'hide_empty' => false \r\n\t);\r\n\t\r\n\t$args['taxonomy'] = array('category');\r\n\t\r\n\t\r\n\tif (\r\n\t\tCMSMASTERS_CONTENT_COMPOSER && \r\n\t\tclass_exists('Cmsmasters_Content_Composer') && \r\n\t\tapply_filters('cmsmasters_project_compatibility', false)\r\n\t) {\r\n\t\t$args['taxonomy'][] = 'pj-categs';\r\n\t}\r\n\t\r\n\t\r\n\tif (\r\n\t\tCMSMASTERS_CONTENT_COMPOSER && \r\n\t\tclass_exists('Cmsmasters_Content_Composer') && \r\n\t\tapply_filters('cmsmasters_profile_compatibility', false)\r\n\t) {\r\n\t\t$args['taxonomy'][] = 'pl-categs';\r\n\t}\r\n\t\r\n\t\r\n\tif (\r\n\t\tCMSMASTERS_WOOCOMMERCE &&\r\n\t\tapply_filters('cmsmasters_woocommerce_compatibility', false)\r\n\t) {\r\n\t\t$args['taxonomy'][] = 'product_cat';\r\n\t}\r\n\t\r\n\t\r\n\tif (\r\n\t\tCMSMASTERS_TRIBE_EVENTS &&\r\n\t\tapply_filters('cmsmasters_tribe_events_compatibility', false)\r\n\t) {\r\n\t\t$args['taxonomy'][] = 'tribe_events_cat';\r\n\t}\r\n\t\r\n\t\r\n\tif (\r\n\t\tCMSMASTERS_DONATIONS && \r\n\t\tclass_exists('Cmsmasters_Donations') &&\r\n\t\tapply_filters('cmsmasters_donations_compatibility', false)\r\n\t) {\r\n\t\t$args['taxonomy'][] = 'cp-categs';\r\n\t}\r\n\t\r\n\t\r\n\tif (\r\n\t\tCMSMASTERS_SERMONS && \r\n\t\tclass_exists('Cmsmasters_Sermons') && \r\n\t\tapply_filters('cmsmasters_sermons_compatibility', false)\r\n\t) {\r\n\t\t$args['taxonomy'][] = 'srm-categs';\r\n\t}\r\n\t\r\n\t\r\n\tif (\r\n\t\tCMSMASTERS_TIMETABLE && \r\n\t\tapply_filters('cmsmasters_timetable_compatibility', false) \r\n\t) {\r\n\t\t$args['taxonomy'][] = 'events_category';\r\n\t}\r\n\t\r\n\t\r\n\treturn $args;\r\n}", "title": "" }, { "docid": "a44c11dac39882aa891b55b986619cbb", "score": "0.5642847", "text": "function main_slider_taxonomy(){\n\tregister_taxonomy(\n\t\t'main_slider_cat',\n\t\t'slider-item',\n\t\tarray(\n\t\t\t'hierarchical'\t\t=>true,\n\t\t\t'lable'\t\t\t\t=>'Slider Category',\n\t\t\t'query_var'\t\t\t=>true,\n\t\t\t'rewrite'\t\t=>array(\n\t\t\t\t'slug'\t\t=>'slider-category'\n\t\t\t)\n\t\t)\n\t);\n}", "title": "" }, { "docid": "2274286fc9b55066aaca9c0b40fed5cc", "score": "0.563842", "text": "function cpt_category($taxonomy) {\n\t\n\t$terms = get_the_terms( $post->ID , $taxonomy );\n\t\n\t// Loop over each item since it's an array\n\tif ( $terms != null ){\n\t\tforeach( $terms as $term ) {\n\t\t// Print the name method from $term which is an OBJECT\n\t\treturn $term->name ;\n\t\t// Get rid of the other data stored in the object, since it's not needed\n\t\tunset($term);\n\t\t} \n\t} \n}", "title": "" }, { "docid": "7b13b184b7a65cdb2d0293a1bc60ea36", "score": "0.5632823", "text": "public function catAjouts()\n {\n $this->templates->display('catAjouts');\n }", "title": "" }, { "docid": "744bb5ea634dca0f5e4bc50fafcc8732", "score": "0.5629461", "text": "function soup2nuts_posted_on() {\n $id = get_the_ID();\n\n if ( in_array( get_post_type( $id ), array( 'post', 'promotion' )) ) {\n /* translators: used between list items, there is a space after the comma */\n $categories = get_the_category( );\n\n if ( $categories ) {\n //pre_printr( $categories );\n echo '<span class=\"excerpt-meta-item meta-item post-categories\">';\n\n foreach ( $categories as $i=>$category ) {\n if ( $i < 0 )\n echo ' / ';\n\n printf( '<a href=\"%1$s\" class=\"post-category\">%2$s</a>', esc_url( get_category_link( $category->term_id ) ), esc_html__( $category->name ) );\n\n }\n\n if ( get_post_type( $id ) == 'promotion' ) {\n printf( '<a href=\"%1$s\" class=\"post-category\">%2$s</a>', esc_url( get_post_type_archive_link( 'promotion' ) ), 'Sponsored Content' );\n }\n\n echo '</span> ';\n //printf( '<span class=\"cat-links\">' . esc_html__( 'Posted in %1$s', 'soup2nuts' ) . '</span>', $categories_list ); // WPCS: XSS OK.\n }\n\n if ( get_post_type( $id ) == 'promotion' ) {\n\n printf( '<span class=\"excerpt-meta-item meta-item post-categories\"><a href=\"%1$s\" class=\"post-category\">%2$s</a></span>', esc_url( get_post_type_archive_link( 'promotion' ) ), 'Sponsored Content' );\n\n }\n\n\n\n } elseif ( tribe_is_event() ) {\n\n echo '<span class=\"excerpt-meta-item meta-item post-categories event-categories\">';\n printf( '<a href=\"%1$s\" class=\"post-category event-category\">Calendar</a>', esc_url( tribe_get_events_link() ) );\n\n echo tribe_get_event_taxonomy( $id, array(\n 'before' => '',\n 'sep' => ' / ',\n 'after' => '',\n ) );\n\n echo '</span>';\n }\n\n $time_string = '<time class=\"entry-date published updated\" datetime=\"%1$s\">%2$s</time>';\n\n $time_string = sprintf( $time_string,\n esc_attr( get_the_date( 'c' ) ),\n esc_html( get_the_date( 'm/d/Y') )\n );\n\n $posted_on = sprintf(\n esc_html_x( 'Posted on %s', 'post date', 'soup2nuts' ),\n '<span class=\"posted-on\"><a href=\"' . esc_url( get_permalink() ) . '\" rel=\"bookmark\">' . $time_string . '</a></span>'\n );\n\n $byline = sprintf(\n esc_html_x( 'by %s', 'post author', 'soup2nuts' ),\n '<span class=\"byline\"><span class=\"author vcard\"><a class=\"url fn n\" href=\"' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '\">' . esc_html( get_the_author() ) . '</a></span></span>'\n );\n\n if ( get_post_type( $id ) !== 'promotion' ) {\n echo $byline;\n }\n\n echo $posted_on; // WPCS: XSS OK.\n\n if ( function_exists( 'sharing_display' ) ) { echo sharing_display(); }\n}", "title": "" }, { "docid": "b1f41dcd2b0f75deef8ffa27ab65013d", "score": "0.56170565", "text": "public function get_categories()\n {\n return [\\Elementor\\Modules\\DynamicTags\\Module::URL_CATEGORY, \\Elementor\\Modules\\DynamicTags\\Module::TEXT_CATEGORY];\n }", "title": "" }, { "docid": "bb6f850aa7b879ca4843d66ac7fb5eff", "score": "0.5605906", "text": "public function get_categories() {\r\n return [ 'atn-movistar-familias' ];\r\n }", "title": "" }, { "docid": "c5e34e76ea6332e761bbaa8f5ba06beb", "score": "0.560376", "text": "function colby_counselors_the_territory_list() : void {\n\t$terms = get_the_terms( get_the_ID(), Colby_Counselors\\Territories_Taxonomy::NAME );\n\n\tif ( is_wp_error( $terms ) ) {\n\t\treturn;\n\t}\n\n\t$term_names = array_map(\n\t\tfunction( WP_Term $term ) {\n\t\t\treturn $term->name;\n\t\t},\n\t\t$terms\n\t);\n\n\techo esc_html( implode( ', ', $term_names ) );\n}", "title": "" }, { "docid": "eeda55ffe9f1e6f99b1426d2cdcd6843", "score": "0.5602942", "text": "public function indexAction()\n {\n return Mage::getModel('ls_mixedfixed/contentfix')->fixedCategory();\n }", "title": "" }, { "docid": "c816243a2b1ed8393fddd73e6d84ca07", "score": "0.56020665", "text": "public function getCategory(): string {\n return $this->category;\n }", "title": "" }, { "docid": "90bd2bad715ad6405704d8202ebdee43", "score": "0.55939114", "text": "public function getTabLabel()\n {\n return __('Category Info');\n }", "title": "" }, { "docid": "8814c8d6845be77627b3004f7a31c1fc", "score": "0.55922496", "text": "public function get_categories() {\n\t\treturn [ 'phoenixdigi' ];\n\t}", "title": "" }, { "docid": "75d4c0d14d975a5abfc41108a0fee483", "score": "0.5591941", "text": "function keolio_custom_taxonomy()\n{\n\n // Register projects typologies\n $labels = array(\n 'name' => _x('Typologies', 'Taxonomy General Name'),\n 'singular_name' => _x('Typology', 'Taxonomy Singular Name'),\n );\n\n $args = array(\n 'labels' => $labels,\n 'hierarchical' => true\n );\n\n register_taxonomy('typology', 'project', $args);\n\n}", "title": "" }, { "docid": "c4fce257a84a6ebe00ee98545bbcbf02", "score": "0.55862284", "text": "function apollo_cpt() {\n\n $labels = label_factory('Singular', 'Singular', 'Plural');\n\n $args = array(\n 'label' => $labels['name'],\n 'labels' => $labels,\n 'supports' => array( 'title' ),\n 'taxonomies' => array(),\n 'hierarchical' => true,\n 'public' => true,\n 'menu_position' => 20,\n 'menu_icon' => 'dashicons-admin-page'\n );\n\n register_post_type( 'apollo_post_type', $args );\n\n}", "title": "" }, { "docid": "f1e74fc6746c7003376a7005f0acb61f", "score": "0.5581226", "text": "function add_affiliation_terms() {\n\t\t\twp_insert_term('Advanced Media Studies', 'affiliation', array('slug' => 'cams'));\n\t\t\twp_insert_term('Africana Studies', 'affiliation', array('slug' => 'africana'));\n\t\t\twp_insert_term('Archaeology', 'affiliation', array('slug' => 'archaeology'));\t\n\t\t\twp_insert_term('Behavioral Biology', 'affiliation', array('slug' => 'behavbio'));\n\t\t\twp_insert_term('China STEM', 'affiliation', array('slug' => 'chinastem'));\n\t\t\twp_insert_term('Dance', 'affiliation', array('slug' => 'dance'));\n\t\t\twp_insert_term('Engineering', 'affiliation', array('slug' => 'engineering'));\n\t\t\twp_insert_term('East Asian', 'affiliation', array('slug' => 'eastasian'));\n\t\t\twp_insert_term('Embryology', 'affiliation', array('slug' => 'embryo'));\n\t\t\twp_insert_term('Expository Writing', 'affiliation', array('slug' => 'ewp'));\n\t\t\twp_insert_term('Film and Media', 'affiliation', array('slug' => 'film'));\n\t\t\twp_insert_term('Financial Economics', 'affiliation', array('slug' => 'cfe'));\n\t\t\twp_insert_term('Global Studies', 'affiliation', array('slug' => 'arrighi'));\n\t\t\twp_insert_term('International Studies', 'affiliation', array('slug' => 'international'));\n\t\t\twp_insert_term('Jewish Studies', 'affiliation', array('slug' => 'jewish'));\n\t\t\twp_insert_term('Language Education', 'affiliation', array('slug' => 'cledu'));\n\t\t\twp_insert_term('Latin American Studies', 'affiliation', array('slug' => 'plas'));\n\t\t\twp_insert_term('Mind Brain Institute', 'affiliation', array('slug' => 'mindbrain'));\n\t\t\twp_insert_term('Modern German Thought', 'affiliation', array('slug' => 'maxkade'));\n\t\t\twp_insert_term('Museums and Society', 'affiliation', array('slug' => 'museums'));\n\t\t\twp_insert_term('Music', 'affiliation', array('slug' => 'music'));\n\t\t\twp_insert_term('Neuroscience', 'affiliation', array('slug' => 'neuroscience'));\n\t\t\twp_insert_term('Post-Bac Pre-Med', 'affiliation', array('slug' => 'pbpm'));\n\t\t\twp_insert_term('Pre-Law', 'affiliation', array('slug' => 'prelaw'));\n\t\t\twp_insert_term('Pre-Med', 'affiliation', array('slug' => 'premed'));\n\t\t\twp_insert_term('Premodern Europe', 'affiliation', array('slug' => 'singleton'));\n\t\t\twp_insert_term('Public Health', 'affiliation', array('slug' => 'publichealth'));\n\t\t\twp_insert_term('Quantum Matter', 'affiliation', array('slug' => 'quantum'));\n\t\t\twp_insert_term('Theatre Arts', 'affiliation', array('slug' => 'theatre'));\n\t\t\twp_insert_term('Visual Arts', 'affiliation', array('slug' => 'visual'));\n\t\t\twp_insert_term('Women Gender and Sexuality', 'affiliation', array('slug' => 'wgs'));\n\t\t\twp_insert_term('Writing Center', 'affiliation', array('slug' => 'writingcenter'));\n\t\t}", "title": "" }, { "docid": "48e1bb6e0096ead707991d1e64484f23", "score": "0.55753255", "text": "function ac_portfolio_tags_view(){\n return array(\n 'tagclouds' => t('Tagclouds'),\n 'list' => t('List view'),\n 'tag' => t('Tags view'),\n );\n}", "title": "" }, { "docid": "d82686738989ab711d4aec87e574bd40", "score": "0.55666107", "text": "public static function typeTitle()\n\t{\n\t\treturn \\IPS\\Member::loggedIn()->language()->addToStack('menu_custom_menu');\n\t}", "title": "" }, { "docid": "5674c1eb0abc55177c4ce13811c74634", "score": "0.5560666", "text": "function getCategoryTagFromUrl(){\n $arr=explode('/',$_SERVER['REQUEST_URI']);\n if(preg_match('/\\/category\\//',$_SERVER['REQUEST_URI'])){\n $type='category';\n }else if(preg_match('/\\/tag\\//',$_SERVER['REQUEST_URI'])){\n $type='post_tag';\n }else{\n return false;\n }\n $term = get_term_by('slug', $arr[sizeof($arr)-2], $type);\n $name = $term->name;\n if($name=='Pet Planning'){\n return \"Pet Planning\";\n }else if($name=='Pet Care'){\n return \"Health and Safety\";\n }else{\n return $name; \n }\n}", "title": "" }, { "docid": "a7bf7e7ef5c3c7088e1bd55f2fb06ef3", "score": "0.55518174", "text": "public function getCategory(): TranslatableMarkup {\n return $this->category;\n }", "title": "" }, { "docid": "dc51cfe66abee5c7c6c2cffa49642878", "score": "0.5551165", "text": "public function get_categories() {\n return ['chaman-addons'];\n }", "title": "" }, { "docid": "ceb31a95ffd8e0fce4fb30db37dc2005", "score": "0.5544557", "text": "public function get_categories() {\n\t\treturn [ 'general' ];\n\t}", "title": "" }, { "docid": "ceb31a95ffd8e0fce4fb30db37dc2005", "score": "0.5544557", "text": "public function get_categories() {\n\t\treturn [ 'general' ];\n\t}", "title": "" }, { "docid": "e645f71e0c2b131b75fc82704e6b0c86", "score": "0.5540915", "text": "function carawebs_project_taxonomy() {\r\n\r\n\t$labels = array(\r\n\t\t'name' => _x( 'Project Category', 'Taxonomy General Name', 'expedition' ),\r\n\t\t'singular_name' => _x( 'Project Category', 'Taxonomy Singular Name', 'expedition' ),\r\n\t\t'menu_name' => __( 'Project Category', 'expedition' ),\r\n\t\t'all_items' => __( 'All Project Categories', 'expedition' ),\r\n\t\t'parent_item' => __( 'Parent Project Category', 'expedition' ),\r\n\t\t'parent_item_colon' => __( 'Parent Project Category:', 'expedition' ),\r\n\t\t'new_item_name' => __( 'New Project Category Name', 'expedition' ),\r\n\t\t'add_new_item' => __( 'Add New Project Category', 'expedition' ),\r\n\t\t'edit_item' => __( 'Edit Project Category', 'expedition' ),\r\n\t\t'update_item' => __( 'Update Project Category', 'expedition' ),\r\n\t\t'separate_items_with_commas' => __( 'Separate stages with commas', 'expedition' ),\r\n\t\t'search_items' => __( 'Search Project Category', 'expedition' ),\r\n\t\t'add_or_remove_items' => __( 'Add or remove stages', 'expedition' ),\r\n\t\t'choose_from_most_used' => __( 'Choose from the most used stages', 'expedition' ),\r\n\t\t'not_found' => __( 'Not Found', 'expedition' ),\r\n\t);\r\n\t$args = array(\r\n\t\t'labels' => $labels,\r\n\t\t'hierarchical' => true,\r\n\t\t'public' => true,\r\n\t\t'show_ui' => true,\r\n\t\t'show_admin_column' => true,\r\n\t\t'show_in_nav_menus' => true,\r\n\t\t'show_tagcloud' => false,\r\n\t);\r\n\tregister_taxonomy( 'project-category', array( 'project' ), $args );\r\n\r\n}", "title": "" }, { "docid": "7f6139f02f8a9a60b09934f4109b980d", "score": "0.5534394", "text": "function beans_post_meta_categories() {\n\n\tif ( !$categories = beans_render_function( 'do_shortcode', '[beans_post_meta_categories]' ) )\n\t\treturn;\n\n\techo beans_open_markup( 'beans_post_meta_categories', 'span', array( 'class' => 'uk-text-small uk-text-muted uk-clearfix' ) );\n\n\t\techo $categories;\n\n\techo beans_close_markup( 'beans_post_meta_categories', 'span' );\n\n}", "title": "" }, { "docid": "94262ae4d08847e4016f71c8836dcc4c", "score": "0.5530966", "text": "function courseduration() {\n\n\t$labels = array(\n\t\t'name' => _x( 'Duraciones de curso', 'Taxonomy General Name', 'text_domain' ),\n\t\t'singular_name' => _x( 'Duración del curso', 'Taxonomy Singular Name', 'text_domain' ),\n\t\t'menu_name' => __( 'Duraciones de curso', 'text_domain' ),\n\t\t'all_items' => __( 'Todas las duraciones de curso', 'text_domain' ),\n\t\t'parent_item' => __( 'Duración de curso superior', 'text_domain' ),\n\t\t'parent_item_colon' => __( 'Duración de curso superior:', 'text_domain' ),\n\t\t'new_item_name' => __( 'Nueva duración de curso', 'text_domain' ),\n\t\t'add_new_item' => __( 'Añadir nueva duración de curso', 'text_domain' ),\n\t\t'edit_item' => __( 'Editar duración de curso', 'text_domain' ),\n\t\t'update_item' => __( 'Actualizar duración de curso', 'text_domain' ),\n\t\t'view_item' => __( 'Ver duración de curso', 'text_domain' ),\n\t\t'separate_items_with_commas' => __( 'Separar tipos duraciones de curso con comas', 'text_domain' ),\n\t\t'add_or_remove_items' => __( 'Añadir o eliminar duraciones de curso', 'text_domain' ),\n\t\t'choose_from_most_used' => __( 'Elegir de las más usadas', 'text_domain' ),\n\t\t'popular_items' => __( 'Duraciones de curso populares', 'text_domain' ),\n\t\t'search_items' => __( 'Buscar duraciones de curso', 'text_domain' ),\n\t\t'not_found' => __( 'No encontrado', 'text_domain' ),\n\t\t'no_terms' => __( 'No encontrado', 'text_domain' ),\n\t\t'items_list' => __( 'Lista de duraciones de curso', 'text_domain' ),\n\t\t'items_list_navigation' => __( 'Navegación lista duraciones de curso', 'text_domain' ),\n\t);\n\t$args = array(\n\t\t'labels' => $labels,\n\t\t'hierarchical' => true,\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_admin_column' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'show_tagcloud' => true,\n\t);\n\tregister_taxonomy( 'course-duration', array( 'curso' ), $args );\n\n}", "title": "" }, { "docid": "4723f13b2634701b951945ad18b48040", "score": "0.55302376", "text": "function create_work_taxonomy() {\r\n \r\n// Add new taxonomy, make it hierarchical like categories\r\n//first do the translations part for GUI\r\n \r\n $labels = array(\r\n 'name' => _x( 'اقسام البوم صور ' ,'pages'),\r\n 'singular_name' => _x( 'القسم' ,'page'),\r\n 'search_items' => __( 'بحث فى الاقسام' ),\r\n 'all_items' => __( 'كل الاقسام' ),\r\n 'parent_item' => __( 'القسم الرئيسي' ),\r\n 'parent_item_colon' => __( 'القسم الرئيسي:' ),\r\n 'edit_item' => __( 'تعديل قسم' ), \r\n 'update_item' => __( 'تحديث قسم' ),\r\n 'add_new_item' => __( 'اضافه قسم' ),\r\n 'new_item_name' => __( 'اسم القسم' ),\r\n ); \r\n \r\n// Now register the taxonomy\r\n \r\n register_taxonomy('work_cat',array('page'), array(\r\n 'hierarchical' => true,\r\n 'labels' => $labels,\r\n 'show_ui' => true,\r\n 'show_admin_column' => true,\r\n 'query_var' => true,\r\n 'rewrite' => array( 'slug' => 'work' ),\r\n ));\r\n \r\n}", "title": "" }, { "docid": "5153a6b280c8b1892cc2ed79cd10eefb", "score": "0.55242604", "text": "public function actionCats() {\n\t\t//$this->render(Yii::app()->theme->name . '/cats');\n\t}", "title": "" }, { "docid": "5fea39082f37861dca333812edb1427c", "score": "0.552278", "text": "public function category_name($id)\n {\n }", "title": "" }, { "docid": "cde3e3649947a1de0dcbd9bed6695a5e", "score": "0.5520207", "text": "public function store_custom_taxonomy_slugs_for_151()\n {\n }", "title": "" }, { "docid": "3fa9b4e529ed893eba5116a02c058660", "score": "0.5517812", "text": "function get_category()\n {\n return 'presenter-importer';\n }", "title": "" }, { "docid": "99f45f9d226989fcf4880f6c6729ff48", "score": "0.55139804", "text": "public function getTabTitle()\n {\n return __('Category Info');\n }", "title": "" }, { "docid": "40b20c9ea1387c6051fe5c182409b682", "score": "0.5511869", "text": "public function getCategory()\n {\n return $this->category;\n }", "title": "" }, { "docid": "5285ba85317d31e4ba7fb1e813c49684", "score": "0.5506431", "text": "public function get_categories() {\n\t\treturn [ 'hmoinvest' ];\n\t}", "title": "" }, { "docid": "33915395fc7c1854e3168bf1627fd37d", "score": "0.55059063", "text": "public function get_title() {\n\t\treturn esc_html__( 'Category Tabs', 'martfury' );\n\t}", "title": "" }, { "docid": "9d24a12bc888964b4f3db5b8f5c4b806", "score": "0.5499365", "text": "public function getCategoryName()\n {\n return $this->categoryName;\n }", "title": "" }, { "docid": "9d24a12bc888964b4f3db5b8f5c4b806", "score": "0.5499365", "text": "public function getCategoryName()\n {\n return $this->categoryName;\n }", "title": "" }, { "docid": "9d24a12bc888964b4f3db5b8f5c4b806", "score": "0.5499365", "text": "public function getCategoryName()\n {\n return $this->categoryName;\n }", "title": "" }, { "docid": "9dc438517e3d286a186de48ebb029b86", "score": "0.54940265", "text": "public function get_categories() {\n return [ 'houzez-elements' ];\n }", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "ca6bd3681577a894e4f921419305449c", "score": "0.0", "text": "public function destroy(Request $request)\n {\n // return $request;\n Overtime::where('id', $request->id)->where('emp_id', $request->emp_id)->delete();\n }", "title": "" } ]
[ { "docid": "b3402eab0e6e7fcae87ea6d302ba7755", "score": "0.6850561", "text": "public function DELETE() {\r\n // delete the cached resource, if it exists\r\n if ($this->HEAD($this->getURI())) {\r\n // load the resource, then delete it\r\n $this->bind($this->getStorage()->delete($this->getURI()));\r\n // mark changed\r\n $this->changed();\r\n }\r\n // return\r\n return $this->resource;\r\n }", "title": "" }, { "docid": "d9f10892d48fdfd7debb2a97681f0912", "score": "0.6659381", "text": "public function destroy(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "d9f10892d48fdfd7debb2a97681f0912", "score": "0.6659381", "text": "public function destroy(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "927318d3938d4582d26e3e1b37ebd064", "score": "0.64233065", "text": "public function delete($storagePath);", "title": "" }, { "docid": "0fde60a4a832f83bd9545fcf3a9f0ab4", "score": "0.63617754", "text": "abstract protected function destroyResource();", "title": "" }, { "docid": "faba92f0be7607f0097b4e53a426fedc", "score": "0.6179998", "text": "public function removeStorage($id) {\n\t\t$allStorages = $this->readConfig();\n\n\t\tif (!isset($allStorages[$id])) {\n\t\t\tthrow new NotFoundException('Storage with id \"' . $id . '\" not found');\n\t\t}\n\n\t\t$deletedStorage = $allStorages[$id];\n\t\tunset($allStorages[$id]);\n\n\t\t$this->writeConfig($allStorages);\n\n\t\t$this->triggerHooks($deletedStorage, Filesystem::signal_delete_mount);\n\n\t\t// delete oc_storages entries and oc_filecache\n\t\ttry {\n\t\t\t$rustyStorageId = $this->getRustyStorageIdFromConfig($deletedStorage);\n\t\t\t\\OC\\Files\\Cache\\Storage::remove($rustyStorageId);\n\t\t} catch (\\Exception $e) {\n\t\t\t// can happen either for invalid configs where the storage could not\n\t\t\t// be instantiated or whenever $user vars where used, in which case\n\t\t\t// the storage id could not be computed\n\t\t\t\\OCP\\Util::writeLog(\n\t\t\t\t'files_external_moe',\n\t\t\t\t'Exception: \"' . $e->getMessage() . '\"',\n\t\t\t\t\\OCP\\Util::ERROR\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "6a08f90e572a14a3c01e60869b338dc1", "score": "0.6066186", "text": "public function destroy(Resource $resource)\n {\n //\n $this->authorize('delete', $resource);\n \n //\n $resource->delete();\n \n if(request()->wantsJson()) {\n return response([], 204);\n }\n \n return redirect('/resources');\n }", "title": "" }, { "docid": "15547d48f16617b6e604a8cc0f0c7ff3", "score": "0.6064962", "text": "public function deleteresource() {\n $objectType = $this->uri->segment(4);\n $objectId = $this->uri->segment(5);\n $fieldName = $this->uri->segment(6);\n $fileId = $this->uri->segment(7);\n CmsService::instance()->unsetFileFromObject($objectType, $objectId, $fieldName, $fileId);\n redirect(getEditActionForType($objectType, $objectId));\n }", "title": "" }, { "docid": "9162d9ba896538427a8e1773f7d8e162", "score": "0.60375607", "text": "public function destroy(Resource $resource)\n { \n $resource->delete();\n return redirect()->route('admin.resources.index')\n ->with('success', \"Ресурс удален!\");\n }", "title": "" }, { "docid": "3ff3eb4c888091d51777732571bf9ca6", "score": "0.60349095", "text": "public function delete()\n\t{\n\t\t$this->data = null;\n\n\t\t$this->app['files']->delete($this->path);\n\t}", "title": "" }, { "docid": "1a074782e571df2a192ef1524212c70b", "score": "0.598511", "text": "public function destroy($id)\n {\n $file = Image::whereId($id)->first();\n // dd($file->path);\n if($file) {\n Storage::delete('public/' . $file->path);\n $file->delete();\n }\n }", "title": "" }, { "docid": "0970be01760e0e449ee46eafae6afae6", "score": "0.5966808", "text": "function removeStorage (Storage $storage) {\n\t\t$storages = new ArrayObject(array(), ArrayObject::STD_PROP_LIST);\n\t\tforeach($this->storages as $st) {\n\t\t\tif ($st !== $storage) {\n\t\t\t\t$storages[] = $st;\n\t\t\t}\n\t\t}\n\t\t$this->storages = $storages;\n\t}", "title": "" }, { "docid": "f3905bdbcab5c96ef9e916065a987c60", "score": "0.59465545", "text": "public function remove() {\n\t\t$this->removeImage();\n\t\t$this->delete();\n\t}", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "0698cf26bce52e43c195f1fad0967e6d", "score": "0.5913288", "text": "public function delete() {\n $this->fs->delete($this);\n }", "title": "" }, { "docid": "4fb02ae20521d64ccdc1eac1271f8260", "score": "0.590333", "text": "public function delete()\n {\n \\File::delete([\n storage_path() . '/' . $this->path\n ]);\n\n parent::delete();\n }", "title": "" }, { "docid": "1a2c14d0b44aa237e13ac45586b67eba", "score": "0.59004754", "text": "public function unpublishResource(PersistentResource $resource)\n {\n $resources = $this->resourceRepository->findSimilarResources($resource);\n if (count($resources) > 1) {\n $message = sprintf('Did not unpublish resource %s with SHA1 hash %s because it is used by other Resource objects.', $resource->getFilename(), $resource->getSha1());\n $this->messageCollector->append($message, Error::SEVERITY_NOTICE);\n return;\n }\n $this->unpublishFile($this->getRelativePublicationPathAndFilename($resource));\n }", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "0d73bf0782eda25b96970857b212cfff", "score": "0.5886981", "text": "public function remove(\n int $right,\n $resource,\n IUser $user,\n ?IResource $parentResource = null\n ): void;", "title": "" }, { "docid": "79ce20b0e69714bb06975a21a79e987f", "score": "0.5854394", "text": "public function destroy(int $id)\n {\n $copy = $this->findById($id);\n\n app('db')->transaction(function () use ($copy) {\n $this->repository->destroy($copy->id);\n\n // Physically remove file from storage\n if (file_exists($copy->getFullLocalPath()) && unlink($copy->getFullLocalPath()) === false) {\n throw new FailedToRemoveFromStorageException('Failed to remove the file from storage');\n }\n });\n\n return $copy;\n }", "title": "" }, { "docid": "2ef703b87d6f9b65ea849ba60a25d1f1", "score": "0.5847894", "text": "public function deleteResource($path) {\n\t\t$url = $this->restUrl . '/resource' . $path;\n\t\t$result = $this->prepAndSend($url, array(200), 'DELETE');\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "f89b6fc617f359aa945932d418c3c622", "score": "0.58316517", "text": "public function destroy(ResourceFile $resourceFile)\n {\n //\n }", "title": "" }, { "docid": "28bcd6f8e6860de51cbfe673db10e4a5", "score": "0.58216614", "text": "public function addResourceToDelete(ResourceReference $resource)\r\n {\r\n $this->resourcesToDelete[] = $resource;\r\n }", "title": "" }, { "docid": "5760f6df7c6ebd5440da74e84ef8e734", "score": "0.57779175", "text": "public function remove($identifier);", "title": "" }, { "docid": "d1335db4dedf75baf1e49487a53c90ce", "score": "0.5774422", "text": "public function remove(string $path);", "title": "" }, { "docid": "2536f3c707dfeb6706a820453b721bc6", "score": "0.57129586", "text": "public function destroy($id)\n {\n $serie=Serie::find($id);\n //delete related file from storage\n $serie->delete();\n return redirect()->route('series.index');\n }", "title": "" }, { "docid": "594986c2072c40bbbef41829c66f5e39", "score": "0.56989014", "text": "public function destroy($id)\n {\n $item = slider::findOrFail($id);\n unlink('storage/' . $item->picture);\n $item->delete();\n\n return redirect()->route('slider');\n }", "title": "" }, { "docid": "74e6c0a4ecd0e1ac5045775357fa48b9", "score": "0.5696829", "text": "public function destroy($id)\n {\n $resource = Resource::find($id);\n $resource->delete();\n return redirect(back());//cambiar\n }", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "40574d2596130d06f5fe2ee4ceccb66b", "score": "0.5674429", "text": "public function removeObject(StoredInterface $object);", "title": "" }, { "docid": "b2d81a752b54a0616aa754491d87cfb0", "score": "0.5658517", "text": "public function destroy($id)\n {\n $data = Article::find($id);\n \n $fileName = $data->image;\n Storage::delete($fileName);\n $data->delete();\n return redirect()->route('article.index');\n }", "title": "" }, { "docid": "b00ceccc5abdc295d4f38a54fc3ef687", "score": "0.5655932", "text": "public function destroy(Request $request)\n {\n $request->validate([\n 'path' => 'required|string'\n ]);\n\n if (Storage::exists($request->path)) {\n Storage::delete($request->path);\n }\n }", "title": "" }, { "docid": "5a70b194bf3f4758be24fd2d2e8969b5", "score": "0.56523496", "text": "public function destroy($id)\n {\n $upload = Upload::findOrFail($id);\n Storage::delete($upload->location);\n $upload->delete();\n }", "title": "" }, { "docid": "f836dfbf25c901118ec1aef1ddf8d708", "score": "0.56470925", "text": "public function destroy($id)\n\t{\n\t\t$res = Resource::find($id);\n\t\t$res->delete();\n\n\t\tSession::flash('success', '删除资源成功');\n\t\treturn redirect()->route('admin.resource.index');\n\t}", "title": "" }, { "docid": "786a12a689855596655493143a37b27e", "score": "0.5645049", "text": "public function unlink(string $path)\n {\n return Storage::delete($path);\n }", "title": "" }, { "docid": "475d22992dbf16ddbbde7e840f8642e6", "score": "0.56246966", "text": "public function remove() { }", "title": "" }, { "docid": "645b206cb0ef45a3942664a6e15fcf5b", "score": "0.56037223", "text": "public function delete($resource, array $conditions);", "title": "" }, { "docid": "c94904da66f47b4ed4ee2a440f4f4028", "score": "0.55946094", "text": "public function remove_bookable_resource() {\n\t\tcheck_ajax_referer( 'delete-bookable-resource', 'security' );\n\n\t\t$post_id = absint( $_POST['post_id'] );\n\t\t$resource_id = absint( $_POST['resource_id'] );\n\t\t$product = get_wc_product_booking( $post_id );\n\t\t$resource_ids = $product->get_resource_ids();\n\t\t$resource_ids = array_diff( $resource_ids, array( $resource_id ) );\n\t\t$product->set_resource_ids( $resource_ids );\n\t\t$product->save();\n\t\tdie();\n\t}", "title": "" }, { "docid": "1f90eefbc842f865e713597e80b0fc92", "score": "0.55857533", "text": "public function remove($file);", "title": "" }, { "docid": "9065fbf2778793732e085d8f00072e64", "score": "0.5579296", "text": "public function destroy($id)\n {\n $file=students_file::find($id);\n unlink(public_path($file->file_path.\"/\".$file->file_name));\n students_file::destroy($id);\n\n\n return redirect()->back();\n }", "title": "" }, { "docid": "6dbd2a82e80175a2ecec0fb020266770", "score": "0.5577625", "text": "public function destroy($id)\n {\n //\n $filename = File::where('id',$id)->pluck('name')->toArray(); \n $image_path = 'uploads/'.$filename[0];\n unlink($image_path); \n $file = File::destroy($id);\n return Response::json($file);\n }", "title": "" }, { "docid": "1d0074fade303d75155eb2ad3252af0f", "score": "0.55738467", "text": "public function _unlink($resource, $exp_time = null)\n {\n if (isset($exp_time)) {\n if (time() - @filemtime($resource) >= $exp_time) {\n return @unlink($resource);\n }\n } else {\n return @unlink($resource);\n }\n }", "title": "" }, { "docid": "aea09d85d9c53e815b918c3f257179a1", "score": "0.5571349", "text": "function remove_object($location_id, $filename) {\n $location = $this->get_location($location_id);\n\n if ($s3 = $this->s3_bucket_factory($location)) {\n $target = $this->s3_compute_bucket_name_and_uri($location, $filename);\n return $s3->deleteObject($target['bucket_name'], $target['uri']);\n }\n\n }", "title": "" }, { "docid": "3f0c158bd398730260750b138d392138", "score": "0.5568787", "text": "public function destroy($id)\n\t{\n\n $image = Image::find($id);\n $image->delete();\n\n\t}", "title": "" }, { "docid": "60b0d79f549613bd513e106a06d9bcf1", "score": "0.555708", "text": "public function removeResource($name)\n {\n unset($this->resources[$name]);\n if ($name==='file') {\n $this->resources['file'] = array('class'=>'Dwoo_Template_File', 'compiler'=>null);\n }\n }", "title": "" }, { "docid": "d607312000ff1629a7d194da09363f78", "score": "0.55405146", "text": "public function __invoke(Asset $asset): void\n {\n $this->authorize('delete', $asset);\n\n $asset->unlink();\n\n abort(Response::HTTP_NO_CONTENT);\n }", "title": "" }, { "docid": "71db8be3bb0bf671c5cd2c4be28e45ae", "score": "0.55401355", "text": "public function delete($resource, array $options = [])\n {\n return $this->api('DELETE', $resource, $options);\n }", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "a1412b0535ee0309739c031f67bf249e", "score": "0.55388325", "text": "public function unlink() {\r\n\t\t\r\n\t\tif(!empty($this->path)) unlink($this->path);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "6a9b08fae5306520b3efd6f2532b1bca", "score": "0.553763", "text": "public function destroy($id)\n {\n $find = Product::find($id);\n $photo = $find->product_image;\n\n if($photo){\n unlink($photo);\n $delete = Product::where('id',$id)->delete();\n }else{\n $delete = Product::where('id',$id)->delete();\n }\n }", "title": "" }, { "docid": "306e91148ba7988dd22824148b9d4401", "score": "0.55344576", "text": "public function destroy($id)\n {\n $previousImage = Article::find($id)->image;\n Storage::delete('images/'.$previousImage);\n unlink(public_path('storage/images/'.$previousImage));\n\n $article=Article::where('article2_id',$id)->delete();\n if($article){\n return Redirect::to('/');\n }\n\n\n }", "title": "" }, { "docid": "103f82f6cdde92b309955b018f86aa59", "score": "0.5534417", "text": "public function delete($resource, array $headers = array())\n {\n return $this->sendRequest($resource, 'DELETE', array(), $headers);\n }", "title": "" }, { "docid": "0e38bf52f188fa4c9103fccdd3cd72a7", "score": "0.5527166", "text": "public function delete($resource, $resourceId = null)\n {\n $resourcePath = \"/$resource\";\n\n $resourceIdPath = (isset($resourceId)) ? \"/$resourceId\" : \"\";\n\n $relationshipsPath = \"\";\n if (isset($resource['relationship'])) {\n $relationshipsPath = \"/relationships/{$resource['relationship']}\";\n }\n\n $uri = \"{$resourcePath}{$resourceIdPath}{$relationshipsPath}\";\n $res = $this->request(\"DELETE\", $uri);\n return $res->getBody();\n }", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "a50d19c729bcd0ecae4f0c64627ba229", "score": "0.552693", "text": "public function delete() {\n $filename = self::getFilename($this->key);\n \n \tif (is_file($filename)) {\n \t\tunlink($filename);\n \t}\n \tunset(self::$members[$this->key]);\n }", "title": "" }, { "docid": "ec759861dd3d396dcc09d5e1bfcf628b", "score": "0.5521281", "text": "public function unlink($path);", "title": "" }, { "docid": "1ae9665ebaf1561d52881b50b774ab80", "score": "0.55193347", "text": "private function eliminarArchivoLocal($ruta){\n \\Storage::delete($ruta);\n }", "title": "" }, { "docid": "c67d90f9a81cb44bc5cd1369d206c5db", "score": "0.55190516", "text": "public function delete()\n {\n parent::delete();\n\n if (Arr::get($this->diskOptions, 'cleanup') && $pointer = $this->resolvePointer()) {\n $this->resolveDisk()->delete($pointer);\n }\n }", "title": "" }, { "docid": "d47025184711b99fdfa1771fa94c618f", "score": "0.55053926", "text": "public function destroy($id)\n {\n // dd($id);\n $del = File::find($id);\n Storage::delete($del->path);\n $del->delete();\n\n return redirect('/file')->with('success', 'Foto Berhasil Dihapus');\n }", "title": "" }, { "docid": "dd9001e86e2eb451896dd8ecbc002381", "score": "0.5503835", "text": "public function destroy($id)\n {\n $slider = Slider::where('id',$id)->first()->delete();\n unlink(public_path('back/images/slider/'.$slider->image));\n return redirect()->back()->with('success','Slider has been deleted successfully.');\n }", "title": "" }, { "docid": "0cb0536ff08f2e6e88e57744bc820000", "score": "0.55017096", "text": "public function removeUpload()\n {\n if($file = $this->getAbsolutePath())\n {\n unlink($file);\n }\n }", "title": "" }, { "docid": "b655cddc3659b7f9fcba7a39d960e97e", "score": "0.5498977", "text": "public function destroy( $id ) {\n\t\t$file = $this->getFile( $id );\n\t\tif ( $file->exists() ) {\n\t\t\t$file->delete();\n\t\t}\n\t}", "title": "" }, { "docid": "5a6876b5136ed6a1bc2b6449e6e1d452", "score": "0.54987067", "text": "public function free()\r\n {\r\n if ($this->check()) {\r\n if ($this->enabled) {\r\n $this->remove();\r\n }\r\n\r\n event_free($this->resource);\r\n $this->resource = null;\r\n }\r\n }", "title": "" }, { "docid": "41a09fcd3175ce9019613caec36a1001", "score": "0.54935354", "text": "public function deleteAction(Request $request, Resource $resource)\n {\n $form = $this->createDeleteForm($resource);\n $form->handleRequest($request);\n\n if ($form->isSubmitted() && $form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $em->remove($resource);\n $em->flush();\n $request->getSession()->getFlashBag()->add( 'danger', 'resource.delete.flash' );\n }\n\n return $this->redirect($request->headers->get('referer'));\n }", "title": "" }, { "docid": "6ca167089eb695c6ef41cc95554f73ea", "score": "0.54930675", "text": "function deleteResource()\n {\n ///////////////////\n include_once(\"../Config/database.php\");\n $db = new DATABASE_CONFIG();\n $db_object = (object) $db;\n $db_array = $db_object->{'default'};\n $response['db_info'] = $db_array['host'];\n $mysqli = new mysqli($db_array['host'], $db_array['login'], $db_array['password'], $db_array['database']);\n\n if ($mysqli->connect_error) {\n die('Connect Error (' . $mysqli->connect_errno . ') '\n . $mysqli->connect_error);\n }\n //Delete the resource with the id\n $sql = $mysqli->prepare(\"DELETE FROM collections\n WHERE collections.id = ?\");\n $sql->bind_param(\"s\", $_POST['id']);\n $sql->execute();\n $result = $sql->get_result();\n // $result = $mysqli->query($sql);\n //while($row = mysqli_fetch_assoc($result))\n //$collections[] = $row;\n $results['id'] = $_POST['id'];\n $results['sql'] = $sql;\n $results['result'] = $result;\n $this->json(200, $results);\n }", "title": "" }, { "docid": "4c0f515601b2c4f626f4641a8eba9243", "score": "0.5490852", "text": "public function destroy($id)\n {\n $gallery = Gallery::findOrFail($id);\n\n\n $path = storage_path('app\\images\\\\'.$gallery->nom_image);\n\n // dd($path);\n\n $real_path = Storage::delete($path);\n\n // dd($real_path);\n\n $gallery->delete();\n\n return redirect()->back()->with(['message'=>'image supprimée', 'class'=>'alert-danger']);\n }", "title": "" }, { "docid": "64230229b26e85085a8e553e0f231391", "score": "0.5488363", "text": "public function remove($key)\n {\n unset($this->storage[$key]);\n }", "title": "" }, { "docid": "17a48899f0113743f59ab84e5fdeb73b", "score": "0.5484861", "text": "public function destroy($id);", "title": "" }, { "docid": "17a48899f0113743f59ab84e5fdeb73b", "score": "0.5484861", "text": "public function destroy($id);", "title": "" }, { "docid": "17a48899f0113743f59ab84e5fdeb73b", "score": "0.5484861", "text": "public function destroy($id);", "title": "" }, { "docid": "17a48899f0113743f59ab84e5fdeb73b", "score": "0.5484861", "text": "public function destroy($id);", "title": "" }, { "docid": "17a48899f0113743f59ab84e5fdeb73b", "score": "0.5484861", "text": "public function destroy($id);", "title": "" }, { "docid": "17a48899f0113743f59ab84e5fdeb73b", "score": "0.5484861", "text": "public function destroy($id);", "title": "" }, { "docid": "d42b7a0376cce8423fa6db882ff0f69d", "score": "0.5483016", "text": "public function remove(string $id);", "title": "" } ]
8c9418de6102321ec534b9b14b845340
Get the path to the application public files.
[ { "docid": "9e2d346559585266b621a3eb70e21739", "score": "0.0", "text": "public function publicPath(string $path = ''): string\n {\n return $this->root() . DIRECTORY_SEPARATOR . 'public' . ($path ? DIRECTORY_SEPARATOR . $path : $path);\n }", "title": "" } ]
[ { "docid": "9d719623caeef62e97200e2d459534f4", "score": "0.83254033", "text": "public function getPublicPath(){ return new Path($this->getField('app_path'),'public'); }", "title": "" }, { "docid": "3a0d8146730f5e074e45e33098f49da4", "score": "0.8128073", "text": "public function getPublicPath();", "title": "" }, { "docid": "a2e6fd978e182f725d42c3d63ea7e713", "score": "0.80907243", "text": "public static function publicPath()\n {\n /** @var \\Illuminate\\Foundation\\Application $instance */\n return $instance->publicPath();\n }", "title": "" }, { "docid": "08beb31374a01a86020cc979dcf9e5c2", "score": "0.8067207", "text": "public function publicPath()\n {\n return $this->basePath() . DIRECTORY_SEPARATOR . 'public';\n }", "title": "" }, { "docid": "5ebf752d4e4171eac38a7662789863b9", "score": "0.80561733", "text": "public function publicPath()\n {\n return $this->basePath . DIRECTORY_SEPARATOR . 'public';\n }", "title": "" }, { "docid": "9b6a8d31be60b16640444f1f90707bd8", "score": "0.7951164", "text": "function public_path(): string\n {\n return app_path('/public');\n }", "title": "" }, { "docid": "a449235a7afd57a3f6d5466dfe060cb6", "score": "0.79164237", "text": "public function publicPath()\n {\n return $this->basePath.DIRECTORY_SEPARATOR.'public';\n }", "title": "" }, { "docid": "df3e0e8ff416deb6519c5994adf0b485", "score": "0.7904046", "text": "public static function getPublicPath()\r\n\t{\r\n\t\treturn self::$publicPath;\r\n\t}", "title": "" }, { "docid": "204d76e59c4c38d657b611970d99cd18", "score": "0.77885574", "text": "public function publicPath()\n {\n return $this->basePath.DS.'public';\n }", "title": "" }, { "docid": "1421245951b99ad565555783d4e8f053", "score": "0.77752703", "text": "protected function getPublicDirPath(): string\n {\n return $this->getProjectDirPath() . '/public';\n }", "title": "" }, { "docid": "937420bd7247c28218764c6ddeeeb33a", "score": "0.77406037", "text": "public function getPublicPath()\n {\n if ($this->isPublic()) {\n return 'http://localhost/uploads/public/';\n }\n\n return 'http://localhost/uploads/protected/';\n }", "title": "" }, { "docid": "f22994cbecafcac3f8b8e5cf52624463", "score": "0.77178967", "text": "public function getPublicPath() {\r\n\t\treturn self::$publicPath;\r\n\t}", "title": "" }, { "docid": "40792c1449ff2d89ef2e18a1368bbb8a", "score": "0.74596256", "text": "public static function getPublicDirPathInLibrary()\n {\n return self::getLibPackageDirPath() . 'lib/botdetect/public/';\n }", "title": "" }, { "docid": "40792c1449ff2d89ef2e18a1368bbb8a", "score": "0.74596256", "text": "public static function getPublicDirPathInLibrary()\n {\n return self::getLibPackageDirPath() . 'lib/botdetect/public/';\n }", "title": "" }, { "docid": "696531ebd4f706434c95bb86e1351c17", "score": "0.74336874", "text": "public function getPath() : string\n {\n if ($this->fullPath !== null) {\n return $this->fullPath;\n }\n\n $path = $this->getSetting('path');\n\n if (is_dir($path)) {\n $this->verified = true;\n\n return $this->fullPath = realpath($path);\n }\n\n $pubPath = public_path(trim($path, '/'));\n\n $this->verified = is_dir($pubPath);\n\n return $this->fullPath = $pubPath;\n }", "title": "" }, { "docid": "d79774d5f1830923e6e0533d01499b3a", "score": "0.7340959", "text": "protected\n function getPublicPath()\n {\n return ($this->_subfolder != \"\") ? \"{$this->publicPath}/{$this->_subfolder}/\" : \"{$this->publicPath}/\";\n }", "title": "" }, { "docid": "2736b0f500e92018773f086697c76e5c", "score": "0.73090416", "text": "public static function get_public($path = '') {\r\n return self::$public_path . $path;\r\n }", "title": "" }, { "docid": "9e3d8b982c9f972351c929a2620185da", "score": "0.7297449", "text": "function getSiteFilesPath() {\n\t\treturn Config::getVar('files', 'public_files_dir') . '/site';\n\t}", "title": "" }, { "docid": "99fefdac1e09a02c194e6d1c57588019", "score": "0.72967553", "text": "protected function getPath(){\n $path = with(new \\ReflectionClass($this))->getFileName();\n\t\t\n return realpath(dirname($path).'/../../../../public');\n }", "title": "" }, { "docid": "fa524554073d4ba04ecfc808e865c872", "score": "0.729441", "text": "protected function project_public_dir() {\n return $this->project->directory() .\n ($this->project->type() == CriticalI_Project::INSIDE_PUBLIC ? '' : '/public');\n }", "title": "" }, { "docid": "ac11ee075c29d82a230c91ff08408fff", "score": "0.7290289", "text": "protected function getApplicationPath()\n {\n return $this->app->bound('path') ? $this->app['path'] : $this->paths->getUserHomeFolder().'/app';\n }", "title": "" }, { "docid": "ba08db647e4d46f582fa9e2646bc31d0", "score": "0.7254524", "text": "public function getWebappPath();", "title": "" }, { "docid": "ba08db647e4d46f582fa9e2646bc31d0", "score": "0.7254524", "text": "public function getWebappPath();", "title": "" }, { "docid": "035ba21a5a23c08fc259210d76fa2b14", "score": "0.7250954", "text": "function publicPath($directory = null) {\n return get_path(\n 'public' . DIRECTORY_SEPARATOR . $directory\n );\n}", "title": "" }, { "docid": "d1a456c6bd8a624a85e82bf0336aa730", "score": "0.7236507", "text": "public function getImagePublicBasePath();", "title": "" }, { "docid": "ef69f381d339c1fd917e96f1dca84af6", "score": "0.72115016", "text": "public static function getStoragePath(){\n\t\treturn APPLICATION_PATH . \"/../public/uploads/user\";\n\t}", "title": "" }, { "docid": "b43654ddc7a25da5d0ba2b7d60ecffc4", "score": "0.71936905", "text": "function public_path($path = '')\n {\n return app()->publicPath($path);\n }", "title": "" }, { "docid": "e25f9407f948a505fe6111c9bd85eb43", "score": "0.71575546", "text": "public function getApplicationPath() {\r\n\t\treturn self::$applicationPath;\r\n\t}", "title": "" }, { "docid": "cd650b709a94f0a67f3e76e42270c9d7", "score": "0.7137016", "text": "public static function getPath() {\n\t\tif (is_null(self::$_path) && defined('PU_PATH_BASE'))\n\t\t\tself::$_path = realpath(Application::getPath() . '/documents');\n\n\t\treturn self::$_path;\n\t}", "title": "" }, { "docid": "241420e1f2ef1d69d37986b0d75f284c", "score": "0.71072656", "text": "private function getApplicationPath()\n {\n $path = Yii::getAlias('@webroot') . '/upload/';\n if (!is_dir($path)){\n mkdir($path, 0777);\n chmod($path, 0777);\n }\n return $path;\n }", "title": "" }, { "docid": "2fc391ed0991b9ce819840283efc0758", "score": "0.70994896", "text": "public function getPublicBasePath()\n {\n return $this->getValue('nb_site_lang_public_base_path');\n }", "title": "" }, { "docid": "f4e734a25d9f9cfbcbf4c3896e26361a", "score": "0.7098846", "text": "public function getAppDir();", "title": "" }, { "docid": "b346f5103cce6071e766f35d96da9cd7", "score": "0.70736426", "text": "function public_path($path = '')\n {\n return Roots\\public_path($path);\n }", "title": "" }, { "docid": "9eb5a8a0609fdc14a83cee6320b15f4c", "score": "0.70660925", "text": "function public_path($path = '')\n {\n return app()->make('path.public').($path ? DIRECTORY_SEPARATOR.ltrim($path, DIRECTORY_SEPARATOR) : $path);\n }", "title": "" }, { "docid": "f173424cb267dc7820e750e66e382c7b", "score": "0.7058394", "text": "public function getApplicationPath()\n\t{\n\t\treturn $this->applicationPath;\n\t}", "title": "" }, { "docid": "b288910f67967a2e9d3ac74a8173792d", "score": "0.70582294", "text": "public function getAppPath() {\n\t\treturn self::$_appPath;\n\t}", "title": "" }, { "docid": "6bf19dbd45e912fd386f3cc871ae3e68", "score": "0.7053403", "text": "public function getPublicStoragePath()\n {\n return public_path('storage/layer/'.$this->id);\n }", "title": "" }, { "docid": "512553e50d07ad618e4f3d749afb60cc", "score": "0.70402044", "text": "function public_path($path = '')\n {\n return PUBLIC_PATH.($path ? DIRECTORY_SEPARATOR.ltrim($path, DIRECTORY_SEPARATOR) : $path);\n }", "title": "" }, { "docid": "dd797584680d42974e09c81fa1372eab", "score": "0.70328295", "text": "protected function getPrivateRootDir() {\n return __DIR__ . '/../../../../../web/' . $this->getPrivateDir();\n }", "title": "" }, { "docid": "f9b4bc8ca6eff58db58843755b526fb5", "score": "0.7030079", "text": "public function getPublicFullPath() {\n return $this->_getPublicPath(self::POSTFIX_FULL);\n }", "title": "" }, { "docid": "1cbfb1b66ab3ded4d902267a9c85326c", "score": "0.7027066", "text": "public function getRootPath() {\n return __DIR__ . '/../../../../web/assets/docs';\n }", "title": "" }, { "docid": "b1d2aa796543d45cdeb0c80d513020b4", "score": "0.7016931", "text": "function public_path($path = '')\n {\n return app()->make('path.public') . ($path ? DIRECTORY_SEPARATOR . ltrim($path, DIRECTORY_SEPARATOR) : $path);\n }", "title": "" }, { "docid": "b1d2aa796543d45cdeb0c80d513020b4", "score": "0.7016931", "text": "function public_path($path = '')\n {\n return app()->make('path.public') . ($path ? DIRECTORY_SEPARATOR . ltrim($path, DIRECTORY_SEPARATOR) : $path);\n }", "title": "" }, { "docid": "e9ca7f9f01c242e37ea7cd5f1cc06acc", "score": "0.6998776", "text": "protected function getLocalRootPath()\n {\n return storage_path().'/app';\n }", "title": "" }, { "docid": "1fee163c24bf86395a877fa5897f8f77", "score": "0.6985211", "text": "protected function getUploadRootDire()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDire();\n }", "title": "" }, { "docid": "fcceaf26c81fadfc81dc35884be6250f", "score": "0.696138", "text": "public function getPublicFolder() : string\n {\n return $this->publicFolder;\n }", "title": "" }, { "docid": "3327adfa5a60a0309ed8fe767aec950c", "score": "0.69494", "text": "function public_path($path = '')\n{\n return app()->publicPath($path);\n}", "title": "" }, { "docid": "40ba1624c4c621a6bb2cc033092322c1", "score": "0.6942148", "text": "public function publicPath()\n {\n return public_path(\"themes/{$this->getCurrent()}\");\n }", "title": "" }, { "docid": "1a7b7b26d0f45b230beaddc6b1f24e11", "score": "0.6934864", "text": "public function get_internal_dir(): string {\n\t\treturn Slide::get_asset_path($this->slide_id);\n\t}", "title": "" }, { "docid": "205ca841466dfb51fb867797a3d48bf1", "score": "0.6922258", "text": "abstract protected function getScriptPublicPath(): string;", "title": "" }, { "docid": "23781822dec8d48ba265a738f39b8df6", "score": "0.6919498", "text": "function public_path($path = '')\n {\n return app()->basePath().'/public'.($path ? '/'.$path : $path);\n }", "title": "" }, { "docid": "58d2784164de081f93c9dd443926add8", "score": "0.69010806", "text": "public function getAppPath(): string\n {\n return $this->appPath;\n }", "title": "" }, { "docid": "540761159a9a86dbff54bf64fee167a4", "score": "0.68964475", "text": "public static function getBaseFolder(){\r\n if(!self::$baseFolder){\r\n $baseFolder = rtrim(getcwd(), DS);\r\n self::$baseFolder = rtrim($baseFolder, 'public');\r\n }\r\n return self::$baseFolder;\r\n }", "title": "" }, { "docid": "a0b9809fca6aff48ca71984f92f92d8f", "score": "0.6887491", "text": "public function getAppPath()\n {\n $this->validate(['application', 'appDir']);\n\n return Str::append($this->get('application')->get('appDir'), '/');\n }", "title": "" }, { "docid": "b1c85e6aa418085152cd3721df9916e0", "score": "0.68840295", "text": "public function getWebappPath()\n {\n return $this->getApplication()->getWebappPath();\n }", "title": "" }, { "docid": "b1c85e6aa418085152cd3721df9916e0", "score": "0.68840295", "text": "public function getWebappPath()\n {\n return $this->getApplication()->getWebappPath();\n }", "title": "" }, { "docid": "37c53c10c956a7fe594e089fa7ed8353", "score": "0.68836635", "text": "public static function getApplicationRoot();", "title": "" }, { "docid": "49ac77e43a453bb6a6e2cbc71479bb3e", "score": "0.68738455", "text": "public function dirPhoto()\n {\n return __DIR__ . '/../../public/photo/';\n }", "title": "" }, { "docid": "fd842d590e76ccd168de86c4297124c2", "score": "0.686785", "text": "public static function public_media_path(){\n\t\treturn public_path().'/assets/site_img/';\n\t}", "title": "" }, { "docid": "ac5d246f345ba2123535f2ceeef37ee1", "score": "0.6859067", "text": "public function getAppPath()\n {\n return $this->appPath;\n }", "title": "" }, { "docid": "0b617e45259fedc6613658d877296d37", "score": "0.6825517", "text": "protected function getUploadRootDir()\n {\n // documents should be saved \t\techo $_SERVER['DOCUMENT_ROOT'];exit;\n return $_SERVER['DOCUMENT_ROOT'].'/public/'.$this->getUploadDir();\n }", "title": "" }, { "docid": "1668fceebfd4d879594e6265dc75546c", "score": "0.68225473", "text": "public function main_path()\n {\n // return url('') . '/core/storage/';\n return Config('constants.bucket.url');\n\n }", "title": "" }, { "docid": "1082808937369425635e95183437c608", "score": "0.6809979", "text": "public function app_file() : string\n {\n return \\App::joinPaths($this->erp_config['path'], $this->erp_config['app']);\n }", "title": "" }, { "docid": "f70319540de896f05d5caa67ecc7f53c", "score": "0.68076915", "text": "function public_path($path = null)\n {\n return rtrim(app()->basePath('public/' . $path), '/');\n }", "title": "" }, { "docid": "94b59d04bb6905b0855cfb27493474cc", "score": "0.6805047", "text": "function public_path($path = '')\n {\n return base_path('public') . ($path ? DIRECTORY_SEPARATOR . $path : $path);\n }", "title": "" }, { "docid": "f2ff737ebbf9c75fd31135d0ce6456e0", "score": "0.68002343", "text": "public function photoDir(){\n return __DIR__ . '/../../public/photo';\n }", "title": "" }, { "docid": "8db82c609d4db70859b33a47210b7c11", "score": "0.67984784", "text": "public function path()\n {\n return $this->basePath() . DIRECTORY_SEPARATOR . 'application';\n }", "title": "" }, { "docid": "f70c5c1c8277cc4862922aa517eca525", "score": "0.6789248", "text": "public static function GetPath()\r\n {\r\n return $_SERVER['DOCUMENT_ROOT'] . BASE_PATH;\r\n }", "title": "" }, { "docid": "08fa774d46a6403e72a2e39fa9baaaa9", "score": "0.6786723", "text": "protected function getUploadRootDir(){\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n}", "title": "" }, { "docid": "be2ddc025fbd2b3d3c64a72efb793c1c", "score": "0.6783474", "text": "public function getAppPath() {\n return $this->appPath;\n }", "title": "" }, { "docid": "ea060724756792ba0ea122b2d6c9fdc6", "score": "0.6782325", "text": "public function path()\n {\n return $this->basePath.DS.'app';\n }", "title": "" }, { "docid": "2db0aa3b089ce9a0371fe52c27b257db", "score": "0.6777605", "text": "public function filesDir(): string\n {\n return Configuration::dataDir() . 'streams';\n }", "title": "" }, { "docid": "0a1fde01387fd3d227b0c9cbccfdf742", "score": "0.67702377", "text": "public static function root_path()\r\n {\r\n return $_SERVER['DOCUMENT_ROOT'];\r\n }", "title": "" }, { "docid": "810ae4da1e11744e29ce978de08190dc", "score": "0.67686665", "text": "function SITE_PATH()\n\t{\n\t\treturn public_path('/');\n\t}", "title": "" }, { "docid": "02079cd47a7f3a3d722b2baff75b37b8", "score": "0.6765487", "text": "public function filespace()\n\t{\n\t\treturn PATH_APP . DS . trim($this->get('path', ''), DS);\n\t}", "title": "" }, { "docid": "02079cd47a7f3a3d722b2baff75b37b8", "score": "0.6765487", "text": "public function filespace()\n\t{\n\t\treturn PATH_APP . DS . trim($this->get('path', ''), DS);\n\t}", "title": "" }, { "docid": "aa1299775f1c40a8ea20d203f74d1334", "score": "0.67627853", "text": "public function getAppsPath()\r\n {\r\n \treturn $this->_apps_path;\r\n }", "title": "" }, { "docid": "116b91d8d2538f0ea146238c4ee7cbe8", "score": "0.6759139", "text": "function public_path(string $path = ''): string\n {\n $path = ($path) ? no_leading_slash($path) : NULL;\n\n return __DIR__ . '/public/' . $path;\n }", "title": "" }, { "docid": "9fa62001a1c116e73e3c990659cc37f8", "score": "0.67548937", "text": "protected function getUploadRootDir(): string\n {\n // documents should be saved\n return __DIR__.'/../../public/'.$this->getUploadDir();\n }", "title": "" }, { "docid": "15111180557ca39a834dd4530bf36fef", "score": "0.6748991", "text": "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../../web/'.$this->getUploadDir();\n }", "title": "" }, { "docid": "ab568ab9e571aae90d431437da2c0d5b", "score": "0.67387724", "text": "public static function getMainApplicationDir() {\n return \"public_html/builder/apps\";\n }", "title": "" }, { "docid": "d1ffef895b76bf160e396995e9571b9d", "score": "0.6734243", "text": "protected function getUploadRootDir(){\n // documents should be saved\n return __DIR__.'/../../../../../web/'.$this->getUploadDir();\n }", "title": "" }, { "docid": "f62b2f4370aaf211c667eff07dd0c1db", "score": "0.6733171", "text": "public function boltFilesPath()\n {\n return $this->app['path_resolver']->resolve('files');\n\n }", "title": "" }, { "docid": "491c2a7607c0c409c15d07a0a66a261e", "score": "0.6729722", "text": "protected function getUploadRootDir(){\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "title": "" }, { "docid": "94a226db4188007f39d42423cf434d73", "score": "0.6725466", "text": "public function getPublicBuildDirectory() {\n\t\tif (!$this->publicBuildDirectory) {\n\t\t\t$this->publicBuildDirectory = sprintf('%s/%s',\n\t\t\t\tFILES_DIRECTORY,\n\t\t\t\t$this->getWorkspace()\n\t\t\t);\n\t\t}\n\t\treturn $this->publicBuildDirectory;\n\t}", "title": "" }, { "docid": "b4a50f279a29158e3aa8d50003e18530", "score": "0.671356", "text": "protected function getUploadRootDird()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDird();\n }", "title": "" }, { "docid": "10acc9fcfb88ea9a17831d4f2c1c0e2d", "score": "0.6709168", "text": "public function getRealPath(){ }", "title": "" }, { "docid": "fa71e4130912168032de642032b3888e", "score": "0.6708517", "text": "public function getWebappPath()\n {\n return $this->webappPath;\n }", "title": "" }, { "docid": "fa71e4130912168032de642032b3888e", "score": "0.6708517", "text": "public function getWebappPath()\n {\n return $this->webappPath;\n }", "title": "" }, { "docid": "02c1821d93bb9683cf15339434fe0f73", "score": "0.67062026", "text": "public function getFilesBase()\n {\n return $this->config['files_base'];\n }", "title": "" }, { "docid": "6ffd73d162f2252e9b28b0972e4a192c", "score": "0.6698379", "text": "public function getFilePath()\n {\n global $kernel;\n $path = $kernel->getRootDir() . \"/../web/{$this->uploadDir}/\";\n\n if(! is_dir($path)) {\n Dir::makeWritable($path);\n }\n\n return $path;\n }", "title": "" }, { "docid": "fb4c11c3cd496a0cabd9ec3332314517", "score": "0.6677612", "text": "public static function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__ . '/../../../../web/' . self::UPLOAD_DIR;\n }", "title": "" }, { "docid": "ade57ea17a8b8c5054c223bb1b644893", "score": "0.6675622", "text": "function public_path($path = '')\n {\n }", "title": "" }, { "docid": "38238eb75d23a2693c9c83e0975ade2d", "score": "0.66510576", "text": "protected function getAbsoluteUploadDirectory()\n {\n return __DIR__.'/../../../../web/'.$this->getRelativeUploadDirectory();\n }", "title": "" }, { "docid": "2cba69fc9dd2dd2a4befcbbeb8f0b857", "score": "0.66502297", "text": "protected function getUploadAbsolutePath()\n {\n return __DIR__.'/../../../web/'.$this->getUploadPath();\n }", "title": "" }, { "docid": "a05943a82b049d09c8ddbe8148401978", "score": "0.6649246", "text": "public function getRealPath();", "title": "" }, { "docid": "66aec9555198a9cef8507461607d27e1", "score": "0.6647235", "text": "public function boltFilesPath()\n {\n if (version_compare(Version::VERSION, '3.3.0', '>=')) {\n return $this->app['path_resolver']->resolve('files');\n } else {\n return $this->app['resources']->getPath('filespath');\n }\n }", "title": "" }, { "docid": "42f6b0ea524de87f90a58a69af15b372", "score": "0.6639542", "text": "public function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../../../web/'.$this->getUploadDir();\n }", "title": "" }, { "docid": "805b416a4f39d0679f9f14224b4dae13", "score": "0.6636535", "text": "protected function getUploadRootDir()\r\n {\r\n // documents should be saved\r\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\r\n }", "title": "" }, { "docid": "e124497d7458ff7780aa275d245c71fb", "score": "0.6636243", "text": "function app_public() {\n return asset('/');\n}", "title": "" }, { "docid": "4810f149c96619c026e0de7d5df96d04", "score": "0.6631964", "text": "public function publicPath()\n {\n return $this->basePath;\n }", "title": "" } ]
710959dfcfcf85e2f3ea516d1d408fd4
Get outlet tax rates.
[ { "docid": "f238ea39ee1a4686441dbe4a816f7ab2", "score": "0.70672417", "text": "function pos_host_get_outlet_tax_rates($outlet_data = array()) {\r\n\tglobal $wpdb;\r\n\r\n\t$tax_class = '';\r\n\t$rates = array();\r\n $country = $outlet_data[\"country\"]; \r\n $state = $outlet_data[\"state\"]; \r\n\t$found_rates = $wpdb->get_results(\r\n\t\t\"SELECT tax_rates.*\r\n\t\tFROM {$wpdb->prefix}woocommerce_tax_rates as tax_rates\r\n\t\tLEFT OUTER JOIN {$wpdb->prefix}woocommerce_tax_rate_locations as locations ON tax_rates.tax_rate_id = locations.tax_rate_id\r\n WHERE tax_rates.tax_rate_country = '$country' and tax_rates.tax_rate_state = '$state'\r\n\t\tGROUP BY tax_rate_id\r\n\t\tORDER BY tax_rate_priority, tax_rate_order\"\r\n\t);\r\n\r\n\tforeach ( $found_rates as $key_rate => $found_rate ) {\r\n\t\t$rates[ $found_rate->tax_rate_id ] = array(\r\n\t\t\t'rate' => (float) $found_rate->tax_rate,\r\n\t\t\t'label' => $found_rate->tax_rate_name,\r\n\t\t\t'shipping' => $found_rate->tax_rate_shipping ? 'yes' : 'no',\r\n\t\t\t'compound' => $found_rate->tax_rate_compound ? 'yes' : 'no',\r\n\t\t\t'country' => $found_rate->tax_rate_country,\r\n\t\t\t'state' => $found_rate->tax_rate_state,\r\n\t\t\t'taxclass' => $found_rate->tax_rate_class,\r\n\t\t\t'priority' => $found_rate->tax_rate_priority,\r\n\t\t);\r\n\t}\r\n\treturn $rates;\r\n}", "title": "" } ]
[ { "docid": "56bb541b6bf01072c8d1d78f65379437", "score": "0.75997376", "text": "public function getTaxRates();", "title": "" }, { "docid": "caf5a014b75b8923471a1d98152017d9", "score": "0.73096865", "text": "public function getTaxRate();", "title": "" }, { "docid": "caf5a014b75b8923471a1d98152017d9", "score": "0.73096865", "text": "public function getTaxRate();", "title": "" }, { "docid": "c85ab69e8cc4ad756d311d5304cb562f", "score": "0.71241444", "text": "public function getTaxRates()\n {\n $tax_rates = $this->stripe->taxRates()->all();\n\n return $tax_rates['data'];\n }", "title": "" }, { "docid": "69ceb22b95402bc1ca652b4a56d03e3f", "score": "0.6944781", "text": "public function output_tax_rates()\n {\n }", "title": "" }, { "docid": "2dd21131336ec84cee4b18a18e252d6f", "score": "0.6942886", "text": "public function taxRates()\n {\n $stripe = resolve('App\\Services\\StripeService');\n\n // Get tax rates\n $rates = collect($stripe->getTaxRates());\n\n // Find tax rate\n $user_tax_rate = $rates->first(function ($item) {\n return $item['jurisdiction'] === $this->settings->billing_country && $item['active'];\n });\n\n return $user_tax_rate ? [$user_tax_rate['id']] : [];\n }", "title": "" }, { "docid": "d77f6b6c828aa4e1afa182ccaf28bf3d", "score": "0.6869313", "text": "public function getTaxes()\n\t{\n\t\treturn $this->taxes;\n\t}", "title": "" }, { "docid": "bd06ef93044908a25b38cc418cd6a46d", "score": "0.68003726", "text": "public function getTaxes();", "title": "" }, { "docid": "6e89092c9c8e7c0c93acde5bf3b24729", "score": "0.6729242", "text": "public function getExternalTaxRate();", "title": "" }, { "docid": "c8c5d0907e368121c07bdccc5b4b2553", "score": "0.67066", "text": "public function get_tax_totals()\n {\n }", "title": "" }, { "docid": "c8c5d0907e368121c07bdccc5b4b2553", "score": "0.67062503", "text": "public function get_tax_totals()\n {\n }", "title": "" }, { "docid": "fc21cd3bbd786c5219289397dc6f459f", "score": "0.6662674", "text": "public function getTaxRates()\n {\n $taxRates = [];\n foreach ($this->items as $item) {\n if ($item->units && $item->tax_rate > 0) {\n if (!isset($taxRates[$item->tax_rate])) {\n $taxRates[$item->tax_rate] = 0;\n }\n $taxRates[$item->tax_rate] += $item->tax;\n }\n }\n return $taxRates;\n }", "title": "" }, { "docid": "f98bf8e045ed65cacaa31c1787af6fce", "score": "0.6579671", "text": "public function getTaxRules();", "title": "" }, { "docid": "91ae42dcb5d2aa33c0c4e5616f294c3c", "score": "0.6563952", "text": "public function getTaxRate()\n\t{\n\t\treturn $this->tax_rate;\n\t}", "title": "" }, { "docid": "f87ac6039028ee394f2f4e4c2f449561", "score": "0.6537615", "text": "public function getTaxRate()\n {\n return 10;\n }", "title": "" }, { "docid": "011f68a63074b9c9e5be48a887847903", "score": "0.65342396", "text": "public function get_taxes()\n {\n }", "title": "" }, { "docid": "afbbb6a305fa97194a2de2c42f7c2b69", "score": "0.6533132", "text": "public function getApproximateTaxes()\n\t{\n\t\treturn $this->approximateTaxes;\n\t}", "title": "" }, { "docid": "011f68a63074b9c9e5be48a887847903", "score": "0.65325004", "text": "public function get_taxes()\n {\n }", "title": "" }, { "docid": "6d358b2390833f86079d61fcd4035796", "score": "0.6505317", "text": "public function getTaxRate()\n {\n return 0.10;\n }", "title": "" }, { "docid": "bf5aaa5d03bd0dd3a382414caf4f25ad", "score": "0.64758635", "text": "public function getUrbanTaxes()\n {\n return $this->urbanTaxes;\n }", "title": "" }, { "docid": "f8c08ea8051b9fdb26d17ac56d013556", "score": "0.6438499", "text": "public function tax()\n {\n return config('shopping.taxrate') * ( static::subtotal() - static::discount() );\n }", "title": "" }, { "docid": "c7a6ab68750de7d7a65e98b4163fc0a3", "score": "0.64326966", "text": "public function getTaxAmount();", "title": "" }, { "docid": "c7a6ab68750de7d7a65e98b4163fc0a3", "score": "0.64326966", "text": "public function getTaxAmount();", "title": "" }, { "docid": "abce2f1fcead90d0b8c69bac6125d087", "score": "0.6428164", "text": "public function tax()\n {\n return $this->price()->multiply($this->taxRate / 100);\n }", "title": "" }, { "docid": "3590c0882587a3ab980581a6707b0420", "score": "0.6412286", "text": "public function getTax() {\n\t\t$tax = 0.00;\n\t\t$taxAddress = @$_SESSION['cart_checkout']['address']['shipping_address'];\n\t\tforeach ($this->getCartItems() as $item) {\n\t\t\t$taxClass = $item->getProduct()->getTaxClass();\n\t\t\t$taxRate = CartTaxRate::getTaxRate($taxClass, $taxAddress);\n\t\t\t$rate = $taxRate->getRate();\n\t\t\t$tmpTax = $rate * ($item->getPrice() * $item->getQuantity());\n\t\t\t$tmpTax = ceil($tmpTax);\n\t\t\t$tmpTax = $tmpTax / 100;\n\t\t\t$tax += $tmpTax;\n\t\t}\n\t\treturn $this->round($tax);\t\t\n\t}", "title": "" }, { "docid": "4b7bfb5c860077659940935e333490c6", "score": "0.64090836", "text": "public function getOverallTax()\n {\n return $this->calculate();\n }", "title": "" }, { "docid": "3be2f153c1c0aa03dc1194f1bf46a1d4", "score": "0.6405199", "text": "public function getTax()\n {\n return $this->tax;\n }", "title": "" }, { "docid": "3be2f153c1c0aa03dc1194f1bf46a1d4", "score": "0.6405199", "text": "public function getTax()\n {\n return $this->tax;\n }", "title": "" }, { "docid": "3be2f153c1c0aa03dc1194f1bf46a1d4", "score": "0.6405199", "text": "public function getTax()\n {\n return $this->tax;\n }", "title": "" }, { "docid": "3be2f153c1c0aa03dc1194f1bf46a1d4", "score": "0.6405199", "text": "public function getTax()\n {\n return $this->tax;\n }", "title": "" }, { "docid": "5bdee36c4af1641683d3273dbfcf2ce6", "score": "0.63925487", "text": "public function get_rates( $tax_class = '' ) {\n\t\tglobal $carton;\n\n\t\t$tax_class = sanitize_title( $tax_class );\n\n\t\t/* Checkout uses customer location for the tax rates. Also, if shipping has been calculated, use the customers address. */\n\t\tif ( ( defined('CARTON_CHECKOUT') && CARTON_CHECKOUT ) || $carton->customer->has_calculated_shipping() ) {\n\n\t\t\tlist( $country, $state, $postcode, $city ) = $carton->customer->get_taxable_address();\n\n\t\t\t$matched_tax_rates = $this->find_rates( array(\n\t\t\t\t'country' \t=> $country,\n\t\t\t\t'state' \t=> $state,\n\t\t\t\t'postcode' \t=> $postcode,\n\t\t\t\t'city' \t\t=> $city,\n\t\t\t\t'tax_class' => $tax_class\n\t\t\t) );\n\n\t\t} else {\n\n\t\t\t// Prices which include tax should always use the base rate if we don't know where the user is located\n\t\t\t// Prices excluding tax however should just not add any taxes, as they will be added during checkout.\n\t\t\t// The carton_default_customer_address option (when set to base) is also used here.\n\t\t\t$matched_tax_rates = $carton->cart->prices_include_tax || get_option( 'carton_default_customer_address' ) == 'base'\n\t\t\t\t? $this->get_shop_base_rate( $tax_class )\n\t\t\t\t: array();\n\n\t\t}\n\n\t\treturn apply_filters('carton_matched_rates', $matched_tax_rates, $tax_class);\n\n\t}", "title": "" }, { "docid": "fbc3a09fd17f7ca5a679be6044f341d8", "score": "0.6372726", "text": "public static function get_base_tax_rates($tax_class = '')\n {\n }", "title": "" }, { "docid": "b5a66a357f9f47653670987933707933", "score": "0.6367315", "text": "public function get_total_tax()\n {\n }", "title": "" }, { "docid": "cafb8f88ba02a742b359579b2cff4e9b", "score": "0.6340183", "text": "public function get_shipping_tax_rates( $tax_class = null ) {\n\t\tglobal $carton;\n\n\t\t// See if we have an explicitly set shipping tax class\n\t\tif ( $shipping_tax_class = get_option( 'carton_shipping_tax_class' ) ) {\n\t\t\t$tax_class = $shipping_tax_class == 'standard' ? '' : $shipping_tax_class;\n\t\t}\n\n\t\tif ( ( defined('CARTON_CHECKOUT') && CARTON_CHECKOUT ) || $carton->customer->has_calculated_shipping() ) {\n\n\t\t\tlist( $country, $state, $postcode, $city ) = $carton->customer->get_taxable_address();\n\n\t\t} else {\n\n\t\t\t// Prices which include tax should always use the base rate if we don't know where the user is located\n\t\t\t// Prices excluding tax however should just not add any taxes, as they will be added during checkout\n\t\t\tif ( $carton->cart->prices_include_tax || get_option( 'carton_default_customer_address' ) == 'base' ) {\n\t\t\t\t$country \t= $carton->countries->get_base_country();\n\t\t\t\t$state \t\t= $carton->countries->get_base_state();\n\t\t\t\t$postcode = '';\n\t\t\t\t$city\t\t= '';\n\t\t\t} else {\n\t\t\t\treturn array();\n\t\t\t}\n\n\t\t}\n\n\t\t// If we are here then shipping is taxable - work it out\n\t\tif ( ! is_null( $tax_class ) ) {\n\n\t\t\t$matched_tax_rates = array();\n\n\t\t\t// This will be per item shipping\n\t\t\t$rates = $this->find_rates( array(\n\t\t\t\t'country' \t=> $country,\n\t\t\t\t'state' \t=> $state,\n\t\t\t\t'postcode' \t=> $postcode,\n\t\t\t\t'city' \t\t=> $city,\n\t\t\t\t'tax_class' => $tax_class\n\t\t\t) );\n\n\t\t\tif ( $rates )\n\t\t\t\tforeach ( $rates as $key => $rate )\n\t\t\t\t\tif ( isset( $rate['shipping'] ) && $rate['shipping'] == 'yes' )\n\t\t\t\t\t\t$matched_tax_rates[ $key ] = $rate;\n\n\t\t\tif ( sizeof( $matched_tax_rates ) == 0 ) {\n\t\t\t\t// Get standard rate\n\t\t\t\t$rates = $this->find_rates( array(\n\t\t\t\t\t'country' \t=> $country,\n\t\t\t\t\t'state' \t=> $state,\n\t\t\t\t\t'city' \t\t=> $city,\n\t\t\t\t\t'postcode' \t=> $postcode,\n\t\t\t\t) );\n\n\t\t\t\tif ( $rates )\n\t\t\t\t\tforeach ( $rates as $key => $rate )\n\t\t\t\t\t\tif ( isset( $rate['shipping'] ) && $rate['shipping'] == 'yes' )\n\t\t\t\t\t\t\t$matched_tax_rates[ $key ] = $rate;\n\t\t\t}\n\n\t\t\treturn $matched_tax_rates;\n\n\t\t} else {\n\n\t\t\t// This will be per order shipping - loop through the order and find the highest tax class rate\n\t\t\t$found_tax_classes = array();\n\t\t\t$matched_tax_rates = array();\n\t\t\t$rates = false;\n\n\t\t\t// Loop cart and find the highest tax band\n\t\t\tif ( sizeof( $carton->cart->get_cart() ) > 0 )\n\t\t\t\tforeach ( $carton->cart->get_cart() as $item )\n\t\t\t\t\t$found_tax_classes[] = $item['data']->get_tax_class();\n\n\t\t\t$found_tax_classes = array_unique( $found_tax_classes );\n\n\t\t\t// If multiple classes are found, use highest\n\t\t\tif ( sizeof( $found_tax_classes ) > 1 ) {\n\n\t\t\t\tif ( in_array( '', $found_tax_classes ) ) {\n\t\t\t\t\t$rates = $this->find_rates( array(\n\t\t\t\t\t\t'country' \t=> $country,\n\t\t\t\t\t\t'state' \t=> $state,\n\t\t\t\t\t\t'city' \t\t=> $city,\n\t\t\t\t\t\t'postcode' \t=> $postcode,\n\t\t\t\t\t) );\n\t\t\t\t} else {\n\t\t\t\t\t$tax_classes = array_filter( array_map( 'trim', explode( \"\\n\", get_option( 'carton_tax_classes' ) ) ) );\n\n\t\t\t\t\tforeach ( $tax_classes as $tax_class ) {\n\t\t\t\t\t\tif ( in_array( $tax_class, $found_tax_classes ) ) {\n\t\t\t\t\t\t\t$rates = $this->find_rates( array(\n\t\t\t\t\t\t\t\t'country' \t=> $country,\n\t\t\t\t\t\t\t\t'state' \t=> $state,\n\t\t\t\t\t\t\t\t'postcode' \t=> $postcode,\n\t\t\t\t\t\t\t\t'city' \t\t=> $city,\n\t\t\t\t\t\t\t\t'tax_class' => $tax_class\n\t\t\t\t\t\t\t) );\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\n\t\t\t// If a single tax class is found, use it\n\t\t\t} elseif ( sizeof( $found_tax_classes ) == 1 ) {\n\n\t\t\t\t$rates = $this->find_rates( array(\n\t\t\t\t\t'country' \t=> $country,\n\t\t\t\t\t'state' \t=> $state,\n\t\t\t\t\t'postcode' \t=> $postcode,\n\t\t\t\t\t'city' \t\t=> $city,\n\t\t\t\t\t'tax_class' => $found_tax_classes[0]\n\t\t\t\t) );\n\n\t\t\t}\n\n\t\t\t// If no class rate are found, use standard rates\n\t\t\tif ( ! $rates )\n\t\t\t\t$rates = $this->find_rates( array(\n\t\t\t\t\t'country' \t=> $country,\n\t\t\t\t\t'state' \t=> $state,\n\t\t\t\t\t'postcode' \t=> $postcode,\n\t\t\t\t\t'city' \t\t=> $city,\n\t\t\t\t) );\n\n\t\t\tif ( $rates )\n\t\t\t\tforeach ( $rates as $key => $rate )\n\t\t\t\t\tif ( isset( $rate['shipping'] ) && $rate['shipping'] == 'yes' )\n\t\t\t\t\t\t$matched_tax_rates[ $key ] = $rate;\n\n\t\t\treturn $matched_tax_rates;\n\t\t}\n\n\t\treturn array(); // return false\n\t}", "title": "" }, { "docid": "c760718baaf93e8a8363c627a5dfb458", "score": "0.63227355", "text": "public function get_cart_tax()\n {\n }", "title": "" }, { "docid": "543a8daee2e464215909c6300d3413df", "score": "0.6311067", "text": "function getTaxRateSums(){\n \t\t$taxes=array();\n \t\tforeach ($this->basket_items as $oneuid => $one_item)\t{\n\t\t\t$taxRate = $one_item->get_tax();\n\t\t\t$taxRate = (string)$taxRate;\n\t\t\tif($this->pricefromnet == 1) {\n\t\t\t\t$taxSum = ($one_item->get_item_sum_net() * (((float)$taxRate) /100));\n\t\t\t} else {\n\t\t\t\t$taxSum = ($one_item->get_item_sum_gross() * ((((float)$taxRate) / 100) / (1 + (((float)$taxRate) / 100))));\n\t\t\t}\n\t\t\tif(!isset($taxes[$taxRate]) AND $taxSum <= 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(!isset($taxes[$taxRate])) {\n\t\t\t\t$taxes[$taxRate] = 0;\n\t\t\t}\n\t\t\t\n\t\t\t$taxes[$taxRate] += $taxSum;\n\t\t}\n \t\t\n \t\tforeach ($taxes as $taxRate => $taxSum) {\n \t\t\t\t$taxes[$taxRate]= (int)round($taxSum);\t\t\t\n \t\t}\n \t\t\n \t\treturn $taxes;\n \t}", "title": "" }, { "docid": "aeff46eb9aa710416eb155b539859937", "score": "0.6310915", "text": "public function tax()\n {\n $product = $this->getProduct();\n\n $rate = new LocationTaxRate();\n\n $tax = $this->money();\n\n if (!$product->taxable || $product->free) {\n return $tax;\n }\n\n $value = $this->value();\n $discount = $this->discount();\n\n $value = $value->subtract($discount);\n $tax = $value->multiply($rate->float());\n\n return $tax;\n }", "title": "" }, { "docid": "5aab277a97d7a5701b85ac3c9cce3cc5", "score": "0.6310178", "text": "protected function get_item_tax_rates($item)\n {\n }", "title": "" }, { "docid": "7836b8a7a93edc43d983be5b2992aabd", "score": "0.6294017", "text": "public function getTaxRates(): array\n {\n $taxRates = array_unique($this->pluck('taxRate'));\n $taxRates = array_filter($taxRates, function ($taxRate) {\n return (float)$taxRate !== (float)0;\n });\n sort($taxRates);\n $taxRates = array_map(function ($taxRate) {\n $sum = 0;\n foreach ($this->data() as $item) {\n if ($item['taxRate'] === $taxRate) {\n $sum += (float)$item['sumTax'];\n }\n }\n return [\n 'taxRate' => (float)$taxRate,\n 'sum' => (float)$sum,\n ];\n }, $taxRates);\n\n return $taxRates;\n }", "title": "" }, { "docid": "9fc6ae2c132eb63eb03629a1e11abe22", "score": "0.62853557", "text": "public function getTax()\n {\n return $this->_tax;\n }", "title": "" }, { "docid": "bc8babd21ef3ce9485aa8db5b375a85a", "score": "0.6260077", "text": "public function get_coupon_discount_tax_totals()\n {\n }", "title": "" }, { "docid": "608a02d2631c6bcb5a8bea3a8693a247", "score": "0.62534374", "text": "public function getTaxCalculator();", "title": "" }, { "docid": "6abc9da48c5a235c07c142a71f65a4a3", "score": "0.62477", "text": "public function getTaxExchangeRate()\n {\n return $this->taxExchangeRate;\n }", "title": "" }, { "docid": "bdcb52debe841dd240c45cd942d9eec8", "score": "0.623582", "text": "public static function get_tax_rate_classes()\n {\n }", "title": "" }, { "docid": "64a135874ba51862bc91e5d767d928c9", "score": "0.62236965", "text": "function cart_tax()\n\t{\n\t\treturn $this->view_formatted_number($this->_calculate_tax());\n\t}", "title": "" }, { "docid": "5417c7a83037eb4e107618281254a064", "score": "0.62093437", "text": "function pos_host_get_all_tax_rates() {\r\n\tglobal $wpdb;\r\n\r\n\t$tax_class = '';\r\n\t$rates = array();\r\n\t$found_rates = $wpdb->get_results(\r\n\t\t\"SELECT tax_rates.*\r\n\t\tFROM {$wpdb->prefix}woocommerce_tax_rates as tax_rates\r\n\t\tLEFT OUTER JOIN {$wpdb->prefix}woocommerce_tax_rate_locations as locations ON tax_rates.tax_rate_id = locations.tax_rate_id\r\n\t\tGROUP BY tax_rate_id\r\n\t\tORDER BY tax_rate_priority, tax_rate_order\"\r\n\t);\r\n\r\n\tforeach ( $found_rates as $key_rate => $found_rate ) {\r\n\t\t$found_postcodes = $wpdb->get_results( $wpdb->prepare( \"SELECT location_code FROM {$wpdb->prefix}woocommerce_tax_rate_locations WHERE tax_rate_id = %s AND location_type = 'postcode'\", $found_rate->tax_rate_id ) );\r\n\t\t$postcode = array();\r\n\t\tif ( $found_postcodes ) {\r\n\t\t\tforeach ( $found_postcodes as $code ) {\r\n\t\t\t\t$postcode[] = $code->location_code;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$found_postcodes = $wpdb->get_results( $wpdb->prepare( \"SELECT location_code FROM {$wpdb->prefix}woocommerce_tax_rate_locations WHERE tax_rate_id = %s AND location_type = 'city'\", $found_rate->tax_rate_id ) );\r\n\t\t$city = array();\r\n\t\tif ( $found_postcodes ) {\r\n\t\t\tforeach ( $found_postcodes as $code ) {\r\n\t\t\t\t$city[] = $code->location_code;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$rates[ $found_rate->tax_rate_id ] = array(\r\n\t\t\t'rate' => (float) $found_rate->tax_rate,\r\n\t\t\t'label' => $found_rate->tax_rate_name,\r\n\t\t\t'shipping' => $found_rate->tax_rate_shipping ? 'yes' : 'no',\r\n\t\t\t'compound' => $found_rate->tax_rate_compound ? 'yes' : 'no',\r\n\t\t\t'country' => $found_rate->tax_rate_country,\r\n\t\t\t'state' => $found_rate->tax_rate_state,\r\n\t\t\t'city' => implode( ';', $city ),\r\n\t\t\t'postcode' => implode( ';', $postcode ),\r\n\t\t\t'taxclass' => $found_rate->tax_rate_class,\r\n\t\t\t'priority' => $found_rate->tax_rate_priority,\r\n\t\t);\r\n\t}\r\n\r\n\treturn $rates;\r\n}", "title": "" }, { "docid": "cc9908c46928a91062e8ec266631a092", "score": "0.62055945", "text": "public function getTax(): float;", "title": "" }, { "docid": "ff691ca44241be4299a4b2cbe2c6aca4", "score": "0.6197818", "text": "public function getShippingTaxAmount();", "title": "" }, { "docid": "52fc3288ef51f5b8905a0ead9c98bedd", "score": "0.61974573", "text": "public function getTax()\n\t\t{\n\t\t\treturn $this->tax;\n\t\t}", "title": "" }, { "docid": "389607301bd913fb7b6401b89cd7d1e1", "score": "0.6190121", "text": "public function get_order_tax()\n {\n // Get tax rows\n $tax = $this->orderData->get_items('tax');\n\n if (!is_array($tax) || empty($tax)) {\n return array();\n }\n\n global $wpdb;\n\n $all_rates = $wpdb->get_results('SELECT * FROM ' . $wpdb->prefix . 'woocommerce_tax_rates');\n\n if (!is_array($all_rates) || empty($all_rates)) {\n return $tax;\n }\n\n foreach ($tax as $single_tax_key => $single_tax) {\n foreach ($all_rates as $rate) {\n if (isset($single_tax['rate_id']) && $single_tax['rate_id'] == $rate->tax_rate_id) {\n $tax[$single_tax_key]['woo_pdf_tax_rate'] = $rate->tax_rate;\n }\n }\n }\n\n return $tax;\n }", "title": "" }, { "docid": "242fb6e4f2e34fd0feedfa852318a40b", "score": "0.61844", "text": "public static function getGlobalTaxes()\n\t{\n\t\tif (\\App\\Cache::has('Inventory', 'Taxes')) {\n\t\t\treturn \\App\\Cache::get('Inventory', 'Taxes');\n\t\t}\n\t\t$taxes = (new App\\Db\\Query())->from('a_#__taxes_global')->where(['status' => 0])\n\t\t\t->createCommand(App\\Db::getInstance('admin'))->queryAllByGroup(1);\n\t\t\\App\\Cache::save('Inventory', 'Taxes', $taxes, \\App\\Cache::LONG);\n\t\treturn $taxes;\n\t}", "title": "" }, { "docid": "df828c220ca8dce567fb9295db82f9a9", "score": "0.6161257", "text": "public function getTaxes()\n\t{\n\t\t$handlerInstance=new CommonAPIHandler(); \n\t\t$apiPath=\"\"; \n\t\t$apiPath=$apiPath.('/crm/v2/org/taxes'); \n\t\t$handlerInstance->setAPIPath($apiPath); \n\t\t$handlerInstance->setHttpMethod(Constants::REQUEST_METHOD_GET); \n\t\t$handlerInstance->setCategoryMethod(Constants::REQUEST_CATEGORY_READ); \n\t\treturn $handlerInstance->apiCall(ResponseHandler::class, 'application/json'); \n\n\t}", "title": "" }, { "docid": "3bf9c497020f52cb1c9453bd2eea7ba5", "score": "0.61482203", "text": "public function lookupTaxes()\n {\n return $this->calculatedTaxInfo ?: null;\n }", "title": "" }, { "docid": "6e650821ee7460f581c3b4f30b321d9f", "score": "0.61385816", "text": "public function tax_list(){\n\t\t$arr_ret = Cache::read('tax_list');\n\t\tif(!$arr_ret){\n\t\t\t$arr_tmp = $this->select_all(array(\n\t\t\t\t'arr_order' => array('_id'=>-1),\n\t\t\t));\n\t\t\t$arr_ret = array();\n\t\t\t$arr_ret[''] = 0;\n\t\t\tforeach($arr_tmp as $kk=>$vv){\n\t\t\t\tif(isset($vv['hst_tax']) && $vv['hst_tax']=='H')\n\t\t\t\t\t$typetax = 'HST';\n\t\t\t\telse\n\t\t\t\t\t$typetax = 'GST';\n\t\t\t\tif(isset($vv['province_key']) && isset($vv['fed_tax']) && isset($vv['province']))\n\t\t\t\t$arr_ret[$vv['province_key']] = (float)$vv['fed_tax'];\n\t\t\t}\n\t\t\tCache::write('tax_list',$arr_ret);\n\t\t}\n\t\treturn $arr_ret;\n\t}", "title": "" }, { "docid": "864711466f70dc49414638449a3079bf", "score": "0.613168", "text": "function get_tax_rates()\n\t{\n\t//These tax rates will need to be updated every year. The tax rates are valid from 1 March until 28 Feb of the next year.\n\n\t\t$place=0;\n\t\t$sql = \"SELECT * FROM tax_rates\";\n\t\t$result = mysql_query($sql);\n\t\twhile ($row = mysql_fetch_assoc($result)) \n\t\t{\n\t\t\t$tax_rates[$place][1] = $row['tax_rate'];\n\t\t\t$tax_rates[$place][2] = $row['start_bracket'];\n\t\t\t$place++;\n\t\t}\n\n\t\treturn $tax_rates;\n\t}", "title": "" }, { "docid": "6358be33ab1c04f758f7b003293a503f", "score": "0.6120852", "text": "public function getTaxableAmount();", "title": "" }, { "docid": "cd34751d7a309372ae0574bca6efbc8c", "score": "0.6106161", "text": "public function getTaxRates($invoice) {\n\n //invoices set tax rates\n $used = [];\n foreach ($invoice->taxes as $tax) {\n $used[] = $tax->tax_taxrateid;\n }\n\n //system tax rates\n $taxrates = \\App\\Models\\Taxrate::get();\n foreach ($taxrates as $key => $taxrate) {\n //remove disabled taxes (which are not already used in this invoice)\n if ($taxrate->taxrate_status == 'disabled' && !in_array($taxrate->taxrate_id, $used)) {\n $taxrates->forget($key);\n }\n //mark selected\n if (in_array($taxrate->taxrate_id, $used)) {\n $taxrate->taxrate_selected = 'selected';\n }\n }\n\n return $taxrates;\n }", "title": "" }, { "docid": "625e149fb788e82dd3ff66197c22c996", "score": "0.6100601", "text": "public function getEcotaxTaxRate()\n\t{\n\t\treturn $this->ecotax_tax_rate;\n\t}", "title": "" }, { "docid": "5356ad70c18099945935b9ddab6f0dd5", "score": "0.60983676", "text": "public function getShippingCostsTaxRates()\n {\n $taxAmount = $this->basket['sShippingcostsWithTax'] - $this->basket['sShippingcostsNet'];\n\n $taxRate = number_format($this->getMaxTaxRate(), 2, '.', '');\n $this->basket['sShippingcostsNet'] = $this->basket['sShippingcostsWithTax'] / (($taxRate/100)+1);\n\n return [\n (string) $taxRate => $taxAmount\n ];\n }", "title": "" }, { "docid": "2df44a6cd3534715f00642cd5a03dc6e", "score": "0.60828245", "text": "public function getVatTaxAmount();", "title": "" }, { "docid": "547c56b478cc4440cc8425f93471aac4", "score": "0.6075492", "text": "public function getTax() {\n $config = SiteConfig::current_site_config();\n (float)$price = $this->Price;\n (float)$rate = $config->TaxRate;\n\n if($rate > 0)\n (float)$tax = ($price / 100) * $rate; // Get our tax amount from the price\n else\n (float)$tax = 0;\n\n return number_format($tax, 2);\n }", "title": "" }, { "docid": "d5e689d16bdc9d5b98b322377a47474e", "score": "0.60738915", "text": "public function tax()\n {\n return (float)array_sum(\n array_map(function (CartItem $item) {\n return $item->getTotalTax();\n }, $this->items)\n );\n }", "title": "" }, { "docid": "02f8a8ca81f0a853493bc46dc0946752", "score": "0.606874", "text": "public function get_total_ex_tax()\n {\n }", "title": "" }, { "docid": "55fb5d966db1aac7b96e6466cc9fbd2c", "score": "0.6057574", "text": "public function getTotalTaxAmount();", "title": "" }, { "docid": "2081113e619dacbe2c57a5f629ef2290", "score": "0.6013348", "text": "public function getActiveTaxes()\n {\n return $this->taxes->where('active', 1)->get();\n }", "title": "" }, { "docid": "e0f7a0591afc6b3b1d19be438ce98f11", "score": "0.60129124", "text": "public function priceTax()\n {\n return $this->price()->add($this->tax());\n }", "title": "" }, { "docid": "946ade08b09799471483b631ad2436e2", "score": "0.5998145", "text": "public function get_total_tax_refunded()\n {\n }", "title": "" }, { "docid": "2a890f2029535303278767828f15ad42", "score": "0.59887165", "text": "function getTaxSum(){\n \t\t$taxSum=0;\n \t\t$taxRatesSums = $this->getTaxRateSums();\n \t\tforeach ($taxRatesSums as $taxRateSum) {\n \t\t\t$taxSum+= $taxRateSum;\t\t\t\n \t\t}\n \t\treturn $taxSum;\n \t}", "title": "" }, { "docid": "5c3ec7d8e1e824749fa1990558f37c62", "score": "0.59885526", "text": "public function getTaxRate()\n {\n $value = $this->get(self::TAXRATE);\n return $value === null ? (integer)$value : $value;\n }", "title": "" }, { "docid": "26fe2bd9f7402528eeaa4caee4856dbb", "score": "0.5984814", "text": "function getTaxEntries() : array ;", "title": "" }, { "docid": "715a78ac36816f6df839e6e2c270a25e", "score": "0.59750295", "text": "public function getRates() {\n return $this->rates;\n }", "title": "" }, { "docid": "b2790840f5b5121411ac0ade3007040f", "score": "0.5971194", "text": "public function getRates()\n {\n return $this->rates;\n }", "title": "" }, { "docid": "b2790840f5b5121411ac0ade3007040f", "score": "0.5971194", "text": "public function getRates()\n {\n return $this->rates;\n }", "title": "" }, { "docid": "b2790840f5b5121411ac0ade3007040f", "score": "0.5971194", "text": "public function getRates()\n {\n return $this->rates;\n }", "title": "" }, { "docid": "4a4d9bf9ca83705ba8a15c23fbfb75df", "score": "0.5952517", "text": "public function getTaxExemptions()\n {\n return $this->getParameter('taxExemptions');\n }", "title": "" }, { "docid": "e796e7e880d68c2e06a13b5021ef2675", "score": "0.59518296", "text": "public function getTaxes()\n {\n $taxes = array();\n foreach ($this->lineItems as $lineItem) {\n // Create tax record\n $newTax = array(\n 'name' => $lineItem->getTaxName(),\n 'rate' => $lineItem->getTaxRate(),\n 'total' => $this->round($lineItem->getTotal()),\n );\n\n if (is_null($newTax['rate']) && is_null($newTax['name'])) {\n continue;\n }\n\n // Merge array\n $found = false;\n foreach ($taxes as &$tax) {\n if ($tax['name'] == $newTax['name'] && $tax['rate'] == $newTax['rate']) {\n $found = true;\n $tax['total'] = bcadd($tax['total'], $newTax['total']);\n }\n }\n unset($tax);\n\n if (!$found) {\n $taxes[] = $newTax;\n }\n }\n\n // Calculate taxes\n foreach ($taxes as &$tax) {\n $tax['total'] = $this->calculateTax($tax['total'], $tax['rate']);\n }\n unset($tax);\n\n return $taxes;\n }", "title": "" }, { "docid": "43b2cae9cab7ea35cc19b80f4078ccbd", "score": "0.59497267", "text": "private function getFixtureTaxRates()\n {\n if ($this->fixtureTaxRates === null) {\n $this->fixtureTaxRates = [];\n if ($this->getFixtureTaxRules()) {\n $taxRateIds = (array)$this->getFixtureTaxRules()[0]->getRates();\n foreach ($taxRateIds as $taxRateId) {\n /** @var \\Magento\\Tax\\Model\\Calculation\\Rate $taxRate */\n $taxRate = Bootstrap::getObjectManager()->create(\\Magento\\Tax\\Model\\Calculation\\Rate::class);\n $this->fixtureTaxRates[] = $taxRate->load($taxRateId);\n }\n }\n }\n return $this->fixtureTaxRates;\n }", "title": "" }, { "docid": "acb6e4ab1ec87c833a857b21c9586a58", "score": "0.5938649", "text": "public function getTaxPercentage();", "title": "" }, { "docid": "ca1cc82de9d3759a0889bd3b6ecea45b", "score": "0.5936631", "text": "public function getRates();", "title": "" }, { "docid": "ca1cc82de9d3759a0889bd3b6ecea45b", "score": "0.5936631", "text": "public function getRates();", "title": "" }, { "docid": "ca1cc82de9d3759a0889bd3b6ecea45b", "score": "0.5936631", "text": "public function getRates();", "title": "" }, { "docid": "c6cb6c519bddc84d739e769a9e8773c0", "score": "0.592214", "text": "public function getTaxIds()\n {\n return $this->taxIds;\n }", "title": "" }, { "docid": "92bd81ecb332d3e41e167c9badc30452", "score": "0.59072214", "text": "public function getTaxMapping()\n {\n $mapping = $this->jsonSerializer->unserialize(\n $this->scopeConfig->getValue(\n self::XML_PATH_TAX_MAPPING,\n ScopeInterface::SCOPE_STORE,\n $this->storeId\n )\n );\n\n return is_array($mapping) ? $mapping : [];\n }", "title": "" }, { "docid": "777cb343d527b8649fedfb433b4fad2c", "score": "0.59041137", "text": "public static function _get_tax_rate($tax_rate_id, $output_type = \\ARRAY_A)\n {\n }", "title": "" }, { "docid": "ddcec59539e5d0a81c593d96d74e9fd4", "score": "0.5885923", "text": "public function getConnectTaxRates()\n {\n $taxes = [];\n\n foreach ($this->getConnectContent() as $shopId => $products) {\n foreach ($products as $product) {\n $vat = (string) number_format($product['tax_rate'], 2);\n if (!isset($taxes[$vat])) {\n $taxes[$vat] = 0;\n }\n\n if ($this->hasTax()) {\n $taxes[$vat] += $product['priceNumeric'] - $product['netprice'];\n } else {\n $taxes[$vat] += $product['amountWithTax'] - ($product['netprice'] * $product['quantity']);\n }\n }\n }\n\n return $taxes;\n }", "title": "" }, { "docid": "60118ffe79843634c5787791a786e29e", "score": "0.5880139", "text": "public function taxTotal()\n {\n return $this->tax()->multiply($this->qty);\n }", "title": "" }, { "docid": "174d3ac5f4bf12e7c46cd521c6cd625a", "score": "0.58679116", "text": "public function get_fee_tax()\n {\n }", "title": "" }, { "docid": "e0f04a8632126166480d18491fcca838", "score": "0.5854826", "text": "public function getEquivalentTotalTax()\n {\n return isset($this->EquivalentTotalTax) ? $this->EquivalentTotalTax : null;\n }", "title": "" }, { "docid": "8dbc18b13ecc72ef1ac75a0f87d12750", "score": "0.5853124", "text": "public function getTax():int;", "title": "" }, { "docid": "90a4207d7987fd06c08b7c35bd87aeaa", "score": "0.58341676", "text": "public function getRates(): mixed\n {\n return Http::withHeaders(['User-Agent' => 'PECR@' . $this->version . ',laravel plugin@' . '1.0.0'])\n ->post(Config::get('coinremitter.url', 'https://coinremitter.com/api/') . 'get-coin-rate',)->json();\n }", "title": "" }, { "docid": "f8ef1527ddb0cc2a31e09e5ba9ab72b3", "score": "0.5832569", "text": "public function getTaxTotal()\n {\n return $this->taxTotal;\n }", "title": "" }, { "docid": "4a27af59d170fb440dcd18a3442c79f5", "score": "0.5819044", "text": "public function getTax(): float\n {\n $tax = 0.0;\n foreach ($this->data() as $item) {\n $tax += (float)$item['quantity'] * ((float)$item['tax'] ?? 0);\n }\n return $tax;\n }", "title": "" }, { "docid": "760bfa9f3f9126066dcdcedc22c3b07e", "score": "0.5818019", "text": "public function getAllRates()\n {\n return $this->_rates;\n }", "title": "" }, { "docid": "975e65d8776269d2c2d4e582e3ca561d", "score": "0.5813113", "text": "function carton_tax_rates_setting() {\n\tglobal $carton, $current_section, $wpdb;\n\n\t$tax_classes = array_filter( array_map( 'trim', explode( \"\\n\", get_option('carton_tax_classes' ) ) ) );\n\t$current_class = '';\n\n\tforeach( $tax_classes as $class )\n\t\tif ( sanitize_title( $class ) == $current_section )\n\t\t\t$current_class = $class;\n\t?>\n\t<h3><?php printf( __( 'Tax Rates for the \"%s\" Class', 'carton' ), $current_class ? esc_html( $current_class ) : __( 'Standard', 'carton' ) ); ?></h3>\n\t<p><?php printf( __( 'Define tax rates for countries and states below. <a href=\"%s\">See here</a> for available alpha-2 country codes.', 'carton' ), 'http://en.wikipedia.org/wiki/ISO_3166-1#Current_codes' ); ?></p>\n\t<table class=\"ctn_tax_rates widefat\">\n\t\t<thead>\n\t\t\t<tr>\n\t\t\t\t<th class=\"sort\">&nbsp;</th>\n\n\t\t\t\t<th width=\"8%\"><?php _e( 'Country&nbsp;Code', 'carton' ); ?>&nbsp;<span class=\"tips\" data-tip=\"<?php _e('A 2 digit country code, e.g. US. Leave blank to apply to all.', 'carton'); ?>\">[?]</span></th>\n\n\t\t\t\t<th width=\"8%\"><?php _e( 'State&nbsp;Code', 'carton' ); ?>&nbsp;<span class=\"tips\" data-tip=\"<?php _e('A 2 digit state code, e.g. AL. Leave blank to apply to all.', 'carton'); ?>\">[?]</span></th>\n\n\t\t\t\t<th><?php _e( 'ZIP/Postcode', 'carton' ); ?>&nbsp;<span class=\"tips\" data-tip=\"<?php _e('Postcode for this rule. Semi-colon (;) separate multiple values. Leave blank to apply to all areas. Wildcards (*) can be used. Ranges for numeric postcodes (e.g. 12345-12350) will be expanded into individual postcodes.', 'carton'); ?>\">[?]</span></th>\n\n\t\t\t\t<th><?php _e( 'City', 'carton' ); ?>&nbsp;<span class=\"tips\" data-tip=\"<?php _e('Cities for this rule. Semi-colon (;) separate multiple values. Leave blank to apply to all cities.', 'carton'); ?>\">[?]</span></th>\n\n\t\t\t\t<th width=\"8%\"><?php _e( 'Rate&nbsp;%', 'carton' ); ?>&nbsp;<span class=\"tips\" data-tip=\"<?php _e( 'Enter a tax rate (percentage) to 4 decimal places.', 'carton' ); ?>\">[?]</span></th>\n\n\t\t\t\t<th width=\"8%\"><?php _e( 'Tax&nbsp;Name', 'carton' ); ?>&nbsp;<span class=\"tips\" data-tip=\"<?php _e('Enter a name for this tax rate.', 'carton'); ?>\">[?]</span></th>\n\n\t\t\t\t<th width=\"8%\"><?php _e( 'Priority', 'carton' ); ?>&nbsp;<span class=\"tips\" data-tip=\"<?php _e('Choose a priority for this tax rate. Only 1 matching rate per priority will be used. To define multiple tax rates for a single area you need to specify a different priority per rate.', 'carton'); ?>\">[?]</span></th>\n\n\t\t\t\t<th width=\"8%\"><?php _e( 'Compound', 'carton' ); ?>&nbsp;<span class=\"tips\" data-tip=\"<?php _e('Choose whether or not this is a compound rate. Compound tax rates are applied on top of other tax rates.', 'carton'); ?>\">[?]</span></th>\n\n\t\t\t\t<th width=\"8%\"><?php _e( 'Shipping', 'carton' ); ?>&nbsp;<span class=\"tips\" data-tip=\"<?php _e('Choose whether or not this tax rate also gets applied to shipping.', 'carton'); ?>\">[?]</span></th>\n\n\t\t\t</tr>\n\t\t</thead>\n\t\t<tfoot>\n\t\t\t<tr>\n\t\t\t\t<th colspan=\"10\">\n\t\t\t\t\t<a href=\"#\" class=\"button plus insert\"><?php _e( 'Insert row', 'carton' ); ?></a>\n\t\t\t\t\t<a href=\"#\" class=\"button minus remove\"><?php _e( 'Remove selected row(s)', 'carton' ); ?></a>\n\n\t\t\t\t\t<a href=\"#\" download=\"tax_rates.csv\" class=\"button export\"><?php _e( 'Export CSV', 'carton' ); ?></a>\n\t\t\t\t\t<a href=\"<?php echo admin_url( 'admin.php?import=carton_tax_rate_csv' ); ?>\" class=\"button import\"><?php _e( 'Import CSV', 'carton' ); ?></a>\n\t\t\t\t</th>\n\t\t\t</tr>\n\t\t</tfoot>\n\t\t<tbody id=\"rates\">\n\t\t\t<?php\n\t\t\t\t$rates = $wpdb->get_results( $wpdb->prepare(\n\t\t\t\t\t\"SELECT * FROM {$wpdb->prefix}carton_tax_rates\n\t\t\t\t\tWHERE tax_rate_class = %s\n\t\t\t\t\tORDER BY tax_rate_order\n\t\t\t\t\t\" , sanitize_title( $current_class ) ) );\n\n\t\t\t\tforeach ( $rates as $rate ) {\n\t\t\t\t\t?>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=\"sort\"><input type=\"hidden\" class=\"remove_tax_rate\" name=\"remove_tax_rate[<?php echo $rate->tax_rate_id ?>]\" value=\"0\" /></td>\n\n\t\t\t\t\t\t<td class=\"country\" width=\"8%\">\n\t\t\t\t\t\t\t<input type=\"text\" value=\"<?php echo esc_attr( $rate->tax_rate_country ) ?>\" placeholder=\"*\" name=\"tax_rate_country[<?php echo $rate->tax_rate_id ?>]\" />\n\t\t\t\t\t\t</td>\n\n\t\t\t\t\t\t<td class=\"state\" width=\"8%\">\n\t\t\t\t\t\t\t<input type=\"text\" value=\"<?php echo esc_attr( $rate->tax_rate_state ) ?>\" placeholder=\"*\" name=\"tax_rate_state[<?php echo $rate->tax_rate_id ?>]\" />\n\t\t\t\t\t\t</td>\n\n\t\t\t\t\t\t<td class=\"postcode\">\n\t\t\t\t\t\t\t<input type=\"text\" value=\"<?php\n\t\t\t\t\t\t\t\t$locations = $wpdb->get_col( $wpdb->prepare( \"SELECT location_code FROM {$wpdb->prefix}carton_tax_rate_locations WHERE location_type='postcode' AND tax_rate_id = %d ORDER BY location_code\", $rate->tax_rate_id ) );\n\n\t\t\t\t\t\t\t\techo esc_attr( implode( '; ', $locations ) );\n\t\t\t\t\t\t\t?>\" placeholder=\"*\" data-name=\"tax_rate_postcode[<?php echo $rate->tax_rate_id ?>]\" />\n\t\t\t\t\t\t</td>\n\n\t\t\t\t\t\t<td class=\"city\">\n\t\t\t\t\t\t\t<input type=\"text\" value=\"<?php\n\t\t\t\t\t\t\t\t$locations = $wpdb->get_col( $wpdb->prepare( \"SELECT location_code FROM {$wpdb->prefix}carton_tax_rate_locations WHERE location_type='city' AND tax_rate_id = %d ORDER BY location_code\", $rate->tax_rate_id ) );\n\t\t\t\t\t\t\t\techo esc_attr( implode( '; ', $locations ) );\n\t\t\t\t\t\t\t?>\" placeholder=\"*\" data-name=\"tax_rate_city[<?php echo $rate->tax_rate_id ?>]\" />\n\t\t\t\t\t\t</td>\n\n\t\t\t\t\t\t<td class=\"rate\" width=\"8%\">\n\t\t\t\t\t\t\t<input type=\"number\" step=\"any\" min=\"0\" value=\"<?php echo esc_attr( $rate->tax_rate ) ?>\" placeholder=\"0\" name=\"tax_rate[<?php echo $rate->tax_rate_id ?>]\" />\n\t\t\t\t\t\t</td>\n\n\t\t\t\t\t\t<td class=\"name\" width=\"8%\">\n\t\t\t\t\t\t\t<input type=\"text\" value=\"<?php echo esc_attr( $rate->tax_rate_name ) ?>\" name=\"tax_rate_name[<?php echo $rate->tax_rate_id ?>]\" />\n\t\t\t\t\t\t</td>\n\n\t\t\t\t\t\t<td class=\"priority\" width=\"8%\">\n\t\t\t\t\t\t\t<input type=\"number\" step=\"1\" min=\"1\" value=\"<?php echo esc_attr( $rate->tax_rate_priority ) ?>\" name=\"tax_rate_priority[<?php echo $rate->tax_rate_id ?>]\" />\n\t\t\t\t\t\t</td>\n\n\t\t\t\t\t\t<td class=\"compound\" width=\"8%\">\n\t \t\t\t\t\t<input type=\"checkbox\" class=\"checkbox\" name=\"tax_rate_compound[<?php echo $rate->tax_rate_id ?>]\" <?php checked( $rate->tax_rate_compound, '1' ); ?> />\n\t \t\t\t\t</td>\n\n\t \t\t\t\t<td class=\"apply_to_shipping\" width=\"8%\">\n\t \t\t\t\t\t<input type=\"checkbox\" class=\"checkbox\" name=\"tax_rate_shipping[<?php echo $rate->tax_rate_id ?>]\" <?php checked($rate->tax_rate_shipping, '1' ); ?> />\n\t \t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<?php\n\t\t\t\t}\n\t\t\t?>\n\t\t</tbody>\n\t</table>\n\t<script type=\"text/javascript\">\n\t\tjQuery( function() {\n\t\t\tjQuery('.ctn_tax_rates tbody').sortable({\n\t\t\t\titems:'tr',\n\t\t\t\tcursor:'move',\n\t\t\t\taxis:'y',\n\t\t\t\tscrollSensitivity:40,\n\t\t\t\tforcePlaceholderSize: true,\n\t\t\t\thelper: 'clone',\n\t\t\t\topacity: 0.65,\n\t\t\t\tplaceholder: 'wc-metabox-sortable-placeholder',\n\t\t\t\tstart:function(event,ui){\n\t\t\t\t\tui.item.css('background-color','#f6f6f6');\n\t\t\t\t},\n\t\t\t\tstop:function(event,ui){\n\t\t\t\t\tui.item.removeAttr('style');\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tjQuery('.ctn_tax_rates .remove').click(function() {\n\t\t\t\tvar $tbody = jQuery('.ctn_tax_rates').find('tbody');\n\t\t\t\tif ( $tbody.find('tr.current').size() > 0 ) {\n\t\t\t\t\t$current = $tbody.find('tr.current');\n\t\t\t\t\t$current.find('input').val('');\n\t\t\t\t\t$current.find('input.remove_tax_rate').val('1');\n\n\t\t\t\t\t$current.each(function(){\n\n\t\t\t\t\t\tif ( jQuery(this).is('.new') )\n\t\t\t\t\t\t\tjQuery(this).remove();\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tjQuery(this).hide();\n\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\talert('<?php _e( 'No row(s) selected', 'carton' ); ?>');\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t});\n\n\t\t\tvar controlled = false;\n\t\t\tvar shifted = false;\n\t\t\tvar hasFocus = false;\n\n\t\t\tjQuery(document).bind('keyup keydown', function(e){ shifted = e.shiftKey; controlled = e.ctrlKey || e.metaKey } );\n\n\t\t\tjQuery('#rates').on( 'focus click', 'input', function( e ) {\n\n\t\t\t\t$this_row = jQuery(this).closest('tr');\n\n\t\t\t\tif ( ( e.type == 'focus' && hasFocus != $this_row.index() ) || ( e.type == 'click' && jQuery(this).is(':focus') ) ) {\n\n\t\t\t\t\thasFocus = $this_row.index();\n\n\t\t\t\t\tif ( ! shifted && ! controlled ) {\n\t\t\t\t\t\tjQuery('#rates tr').removeClass('current').removeClass('last_selected');\n\t\t\t\t\t\t$this_row.addClass('current').addClass('last_selected');\n\t\t\t\t\t} else if ( shifted ) {\n\t\t\t\t\t\tjQuery('#rates tr').removeClass('current');\n\t\t\t\t\t\t$this_row.addClass('selected_now').addClass('current');\n\n\t\t\t\t\t\tif ( jQuery('#rates tr.last_selected').size() > 0 ) {\n\t\t\t\t\t\t\tif ( $this_row.index() > jQuery('#rates tr.last_selected').index() ) {\n\t\t\t\t\t\t\t\tjQuery('#rates tr').slice( jQuery('#rates tr.last_selected').index(), $this_row.index() ).addClass('current');\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tjQuery('#rates tr').slice( $this_row.index(), jQuery('#rates tr.last_selected').index() + 1 ).addClass('current');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tjQuery('#rates tr').removeClass('last_selected');\n\t\t\t\t\t\t$this_row.addClass('last_selected');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tjQuery('#rates tr').removeClass('last_selected');\n\t\t\t\t\t\tif ( controlled && jQuery(this).closest('tr').is('.current') ) {\n\t\t\t\t\t\t\t$this_row.removeClass('current');\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this_row.addClass('current').addClass('last_selected');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tjQuery('#rates tr').removeClass('selected_now');\n\n\t\t\t\t}\n\t\t\t}).on( 'blur', 'input', function( e ) {\n\t\t\t\thasFocus = false;\n\t\t\t});\n\n\t\t\tjQuery('.ctn_tax_rates .export').click(function() {\n\n\t\t\t\tvar csv_data = \"data:application/csv;charset=utf-8,<?php _e( 'Country Code', 'carton' ); ?>,<?php _e( 'State Code', 'carton' ); ?>,<?php _e( 'ZIP/Postcode', 'carton' ); ?>,<?php _e( 'City', 'carton' ); ?>,<?php _e( 'Rate %', 'carton' ); ?>,<?php _e( 'Tax Name', 'carton' ); ?>,<?php _e( 'Priority', 'carton' ); ?>,<?php _e( 'Compound', 'carton' ); ?>,<?php _e( 'Shipping', 'carton' ); ?>,<?php _e( 'Tax Class', 'carton' ); ?>\\n\";\n\n\t\t\t\tjQuery('#rates tr:visible').each(function() {\n\t\t\t\t\tvar row = '';\n\t\t\t\t\tjQuery(this).find('td:not(.sort) input').each(function() {\n\n\t\t\t\t\t\tif ( jQuery(this).is('.checkbox') ) {\n\n\t\t\t\t\t\t\tif ( jQuery(this).is(':checked') ) {\n\t\t\t\t\t\t\t\tval = 1;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tval = 0;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tvar val = jQuery(this).val();\n\n\t\t\t\t\t\t\tif ( ! val )\n\t\t\t\t\t\t\t\tval = jQuery(this).attr('placeholder');\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\trow = row + val + ',';\n\t\t\t\t\t});\n\t\t\t\t\trow = row + '<?php echo $current_class; ?>';\n\t\t\t\t\t//row.substring( 0, row.length - 1 );\n\t\t\t\t\tcsv_data = csv_data + row + \"\\n\";\n\t\t\t\t});\n\n\t\t\t\tjQuery(this).attr( 'href', encodeURI( csv_data ) );\n\n\t\t\t\treturn true;\n\t\t\t});\n\n\t\t\tjQuery('.ctn_tax_rates .insert').click(function() {\n\t\t\t\tvar $tbody = jQuery('.ctn_tax_rates').find('tbody');\n\t\t\t\tvar size = $tbody.find('tr').size();\n\t\t\t\tvar code = '<tr class=\"new\">\\\n\t\t\t\t\t\t<td class=\"sort\">&nbsp;</td>\\\n\t\t\t\t\t\t<td class=\"country\" width=\"8%\">\\\n\t\t\t\t\t\t\t<input type=\"text\" placeholder=\"*\" name=\"tax_rate_country[new][' + size + ']\" />\\\n\t\t\t\t\t\t</td>\\\n\t\t\t\t\t\t<td class=\"state\" width=\"8%\">\\\n\t\t\t\t\t\t\t<input type=\"text\" placeholder=\"*\" name=\"tax_rate_state[new][' + size + ']\" />\\\n\t\t\t\t\t\t</td>\\\n\t\t\t\t\t\t<td class=\"postcode\">\\\n\t\t\t\t\t\t\t<input type=\"text\" placeholder=\"*\" name=\"tax_rate_postcode[new][' + size + ']\" />\\\n\t\t\t\t\t\t</td>\\\n\t\t\t\t\t\t<td class=\"city\">\\\n\t\t\t\t\t\t\t<input type=\"text\" placeholder=\"*\" name=\"tax_rate_city[new][' + size + ']\" />\\\n\t\t\t\t\t\t</td>\\\n\t\t\t\t\t\t<td class=\"rate\" width=\"8%\">\\\n\t\t\t\t\t\t\t<input type=\"number\" step=\"any\" min=\"0\" placeholder=\"0\" name=\"tax_rate[new][' + size + ']\" />\\\n\t\t\t\t\t\t</td>\\\n\t\t\t\t\t\t<td class=\"name\" width=\"8%\">\\\n\t\t\t\t\t\t\t<input type=\"text\" name=\"tax_rate_name[new][' + size + ']\" />\\\n\t\t\t\t\t\t</td>\\\n\t\t\t\t\t\t<td class=\"priority\" width=\"8%\">\\\n\t\t\t\t\t\t\t<input type=\"number\" step=\"1\" min=\"1\" value=\"1\" name=\"tax_rate_priority[new][' + size + ']\" />\\\n\t\t\t\t\t\t</td>\\\n\t\t\t\t\t\t<td class=\"compound\" width=\"8%\">\\\n\t \t\t\t\t\t<input type=\"checkbox\" class=\"checkbox\" name=\"tax_rate_compound[new][' + size + ']\" />\\\n\t \t\t\t\t</td>\\\n\t \t\t\t\t<td class=\"apply_to_shipping\" width=\"8%\">\\\n\t \t\t\t\t\t<input type=\"checkbox\" class=\"checkbox\" name=\"tax_rate_shipping[new][' + size + ']\" checked=\"checked\" />\\\n\t \t\t\t\t</td>\\\n\t\t\t\t\t</tr>';\n\n\t\t\t\tif ( $tbody.find('tr.current').size() > 0 ) {\n\t\t\t\t\t$tbody.find('tr.current').after( code );\n\t\t\t\t} else {\n\t\t\t\t\t$tbody.append( code );\n\t\t\t\t}\n\n\t\t\t\tjQuery( \"td.country input\" ).autocomplete({\n\t\t source: availableCountries,\n\t\t minLength: 3\n\t\t });\n\n\t\t jQuery( \"td.state input\" ).autocomplete({\n\t\t source: availableStates,\n\t\t minLength: 3\n\t\t });\n\n\t\t\t\treturn false;\n\t\t\t});\n\n\t\t\tjQuery('.ctn_tax_rates td.postcode, .ctn_tax_rates td.city').find('input').change(function() {\n\t\t\t\tjQuery(this).attr( 'name', jQuery(this).attr( 'data-name' ) );\n\t\t\t});\n\n\t\t\tvar availableCountries = [<?php\n\t\t\t\t$countries = array();\n\t\t\t\tforeach ( $carton->countries->get_allowed_countries() as $value => $label )\n\t\t\t\t\t$countries[] = '{ label: \"' . $label . '\", value: \"' . $value . '\" }';\n\t\t\t\techo implode( ', ', $countries );\n\t\t\t?>];\n\n\t\t\tvar availableStates = [<?php\n\t\t\t\t$countries = array();\n\t\t\t\tforeach ( $carton->countries->get_allowed_country_states() as $value => $label )\n\t\t\t\t\tforeach ( $label as $code => $state )\n\t\t\t\t\t\t$countries[] = '{ label: \"' . $state . '\", value: \"' . $code . '\" }';\n\t\t\t\techo implode( ', ', $countries );\n\t\t\t?>];\n\n\t jQuery( \"td.country input\" ).autocomplete({\n\t source: availableCountries,\n\t minLength: 3\n\t });\n\n\t jQuery( \"td.state input\" ).autocomplete({\n\t source: availableStates,\n\t minLength: 3\n\t });\n\t\t});\n\t</script>\n\t<?php\n}", "title": "" }, { "docid": "3b8dedf5b8e6fb13f19ffca46d46a5fe", "score": "0.5812473", "text": "public function getRatios(){\n try{\n return $this->taxonomiesBLL->getRatios();\n }\n catch(Exception $e){\n return $e;\n }\n }", "title": "" }, { "docid": "8860b7ada6a4526c30fa914a43e8b023", "score": "0.5812055", "text": "public function get_total_tax($context = 'view')\n {\n }", "title": "" }, { "docid": "eb8fba87c32f047aba67ea6e5a527a5e", "score": "0.5810509", "text": "public function getItemsTotalTax() {\r\n\r\n $total = 0.00;\r\n\r\n if (empty($this->items)) {\r\n\r\n return $total;\r\n }\r\n\r\n /* @var $item \\Openapi\\Phalcon\\Plugins\\PayPal\\Checkout\\Types\\ItemType */\r\n foreach ($this->items as $item) {\r\n\r\n $total += $item->calculateItemTaxTotal();\r\n }\r\n\r\n return $total;\r\n }", "title": "" }, { "docid": "d3c96dc3c7c5947b572ef440fc0d5dc8", "score": "0.5802513", "text": "public function getShowPriceWithTax();", "title": "" }, { "docid": "53469ffb7c94cda5f84258253b7a6011", "score": "0.57974136", "text": "public function get_cart_contents_tax()\n {\n }", "title": "" }, { "docid": "123cab361733354cdf599fc7d1afa26d", "score": "0.57883537", "text": "public function getTaxTotalPrice()\n {\n \n \n\n }", "title": "" } ]
a4123349634da342a83de3e10dbfe7e1
Send error report mail.
[ { "docid": "e3fd835c16208e35ca8743eccad3503b", "score": "0.0", "text": "public static function sendDebugMail($message)\n {\n if (MAILONE_VERBOSE)\n {\n printf(\"<pre>%s</pre>\", htmlspecialchars($message));\n }\n \n if (MAILONE_SEND_MAIL)\n {\n\t $mail = Mail::botMail();\n\t $mail->setReceiver(MAILONE_MAIL_TO);\n\t $mail->setSubject('MAIL ON ERROR');\n\t $mail->setBody($message);\n \t$mail->sendAsText();\n }\n }", "title": "" } ]
[ { "docid": "171081056b1ed92ed990c3e9ccda6846", "score": "0.7728196", "text": "public function sendErrorEmail()\n {\n global $aql_error_email;\n\n if (!$aql_error_email) {\n return;\n }\n\n $subject = 'AQL ' . $this->type . ' Error:';\n\n $dump = print_r(array(\n 'type' => $this->type,\n 'sql' => $this->sql,\n 'fields' => $this->fields,\n 'error' => $this->db_error,\n 'id' => $this->id\n ), true);\n\n $trace = $this->getTraceAsString();\n $body = \"<pre>{$dump}\\n---\\n{$trace}</pre>\";\n\n @mail(\n $aql_error_email,\n $subject,\n $body,\n \"Content-type: text/html\"\n );\n }", "title": "" }, { "docid": "b54092d753ff20263fcf743fa970cad0", "score": "0.7178164", "text": "function mailError($text){\n\tglobal $sendErrors, $error_mail;\n\n\tif($sendErrors){\n\t\tmail ($error_mail, \"backuper - Error\", $text);\n\t}\n}", "title": "" }, { "docid": "9ba17d9da3de1417784f01bdcd76ae89", "score": "0.69848084", "text": "public function sendAccountsErrors() {\r\n $db = new DB();\r\n $conn = $db->getProdConn('crm_punti');\r\n $body = \"<P>Controllare i seguenti clienti sul CRM (mancanti o con codice fiscale sbagliato/mancante):</P> <table style='width: auto;border:1px solid;border-collapse: collapse'><thead style='border:1px solid;border-collapse: collapse'><th>Nome</th><th>Codice Fiscale</th><th>Partita IVA</th></thead><tbody >\";\r\n $datas = $conn->query(\"SELECT * FROM users WHERE status = 'nocf' ORDER BY company\");\r\n while ($data = $datas->fetch_assoc()) {\r\n $body .= \"<tr style='border:1px solid;border-collapse: collapse'><td>{$data['company']}</td><td>{$data['codfiscale']}</td><td>{$data['partitaiva']}</td></tr>\";\r\n }\r\n $body .= \"</tbody></table>\";\r\n $mail = new Mail();\r\n $mail->sendEmail($this->tomail,$this->toname,$this->frommail,$this->fromname,'Errori Accout',$body,$this->copies);\r\n }", "title": "" }, { "docid": "b2f80577218ba9ee38ae2ab8441392b2", "score": "0.69492906", "text": "public function report(Exception $e)\n\t{\n\t\n\t\n\t//$debugSetting\t= Config::get('app.debug');\n\t\t\n\t\t$data['previous']\t= URL::previous();\n\t\t$data['url'] \t\t= Request::url();\n\t\t$data['device'] \t\t= $_SERVER['HTTP_USER_AGENT'];\n\t\t$data['ip'] = $_SERVER['REMOTE_ADDR'];\n\t\t$data['true_error'] = $e->getMessage();\n\t\t$data['file_name'] = $e->getFile();\n\t\t$data['line_number'] = $e->getLine();\n\t\t\n\t\t$sd = new SymfonyDisplayer(true);\n\t\t$data['desc'] = (string) $sd->createResponse($e);\n\t\t\n\t\n\t\tMail::queue('emails.errors', $data, function ($message) {\n \t\t$message->from('no-reply@grocare.com', 'Grocare');\n \n $message->to('divagar.umm@gmail.com')->subject('error found in grocare');\n $message->bcc('info@grocare.com')->subject('error found in grocare');\n // $message->bcc('divagar@ummtech.com')->subject('error found in grocare');\n\t\t});\n\t\treturn parent::report($e);\n\t}", "title": "" }, { "docid": "394b2ce628e5f78dce66ea40c976496a", "score": "0.6873862", "text": "public function sendMail($to, $subject, $data, $view, $mail_error_message);", "title": "" }, { "docid": "6d0a40f0edc831ee9a60ce776b77639c", "score": "0.68252325", "text": "function send_error_report($myerrorno, $myerrordesc, $mystatement)\n\n {\n\n// global $CORP, $usr;\n\n //mail to owner of the page\n\n// $to = \"prabhakarp@navayuga.co.in\";\n\n// $subject = \"MySQL ERROR \" . $myerrorno . \" - \" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . \" (\" . date(\"d M Y H:i\") . \")\";\n\n// $fromemail = \"ErrorReporter <info@smartchange.org>\";\n\n \n\n // headers need to be in the correct order... \n\n// $headers = \"From: $fromemail \\r\\n\"; \n\n// $headers .= \"Date: \" . date(\"r\") . \"\\n\"; \n\n// $headers .= \"MIME-Version: 1.0\\n\"; \n\n// $headers .= \"X-Priority: 3\\n\"; //1 UrgentMessage, 3 Normal \n\n// $headers .= \"X-Mailer: PHP4\\n\"; //mailer \n\n// $headers .= \"Content-Type: text/plain; charset=\\\"iso-8859-1\\\"\\n\"; \n\n\n\n $message = \"MySQL ERROR REPORT\n\n\" . date(\"d F Y, h:i a\") . \"\n\n\n\nDOMAIN : \" . $_SERVER['HTTP_HOST'] . \" \n\nSCRIPT FILE NAME : \" . $_SERVER['PHP_SELF'] . \"\n\nPHYSICAL PATH : \" . $_SERVER['PATH_TRANSLATED'] . \"\n\n\n\nSQL STATEMENT : \n\n\" . $mystatement . \"\n\n\n\nMySQL ERROR NO : \" . $myerrorno . \"\n\n\n\nMySQL ERROR DESCRIPTIOM :\n\n\" . $myerrordesc . \"\n\n\n\n\n\n\"; \n\n$rvar = \"\";\n\nif(count($_REQUEST) >0) {\n\n $rvar .= \"\\nREQUEST VARIBLES:\\n\";\n\n foreach($_REQUEST as $k => $v)\n\n {\n\n if(is_array($v))\n\n $rvar .= $k . \" => \" . var_export($v,true) .\"\\n\";\n\n else\n\n $rvar .= $k . \" => \" . $v .\"\\n\";\n\n }\n\n}\n\n\n\nif(count($_SESSION) >0) {\n\n $rvar .= \"\\nSESSION VARIBLES:\\n\";\n\n foreach($_SESSION as $k => $v)\n\n {\n\n if(is_array($v))\n\n $rvar .= $k . \" => \" . var_export($v,true) .\"\\n\";\n\n else\n\n $rvar .= $k . \" => \" . $v .\"\\n\";\n\n }\n\n}\n\n$message = $message . $rvar;\n\n \n\n print $message; \n\n \n\n }", "title": "" }, { "docid": "ed81cbd68a989a13bb1a6457a9abfab1", "score": "0.67045254", "text": "public function sendErrorReport($errors = null)\n {\n if ($errors === null) {\n $errors = $this->errors;\n }\n $message = Yii::$app->mailer->compose('mail_critical_error', [\n 'errors' => $errors,\n 'model' => $this,\n ])\n ->setFrom($_ENV['ADMIN_EMAIL'])\n ->setTo('daan@biologenkantoor.nl')\n ->setSubject('Critical Error Bison bar');\n $message->send();\n }", "title": "" }, { "docid": "f580e114f5d472c5feb64b76a13aa9b9", "score": "0.669312", "text": "function errorMail($site){\n\t$to = $site['email'];\n\t$subject = \"Alert: \".$site['url'];;\n\t$date = date(\"Y-m-d h:m O\");\n\t$headers = \"from: sitecheck@positive-internet.com\";\n\t\n\t$body = \"Website status: alert\\n\";\n\t$body.= \"Date: $date\\n\";\n\t$body.= \"Name: \".$site['name'].\"\\n\";\n\t$body.= \"URL: \".$site['url'].\"\\n\";\n\t$body.= \"Error: \".$site['error'].\"\\n\\t\";\n\t$body.= $site['text'].\"\\n\";\n\t$body.= \"All sites' status at $myurl\\n\";\n\t\n\tmail($to, $subject, $body, $headers);\n}", "title": "" }, { "docid": "81fe5b1dc748ac3cf12e83f30259b9c0", "score": "0.6686847", "text": "function err_email($sub, $msg) {\n\t$html_body .= zSysMailHeader(\"\");\n\t$html_body .= $msg;\n\t$html_body .= zSysMailFooter ();\n\t$subject = \"TDW Error Alert: (\".date('m/d/Y h:i a').\") : \".$sub;\n\t$text_body = $subject;\n\t//zSysMailer($to_email, $to_name, $subject, $html_body, $text_body, $attachment) \n\tzSysMailer(\"pprasad@centersys.com\", \"\", $subject, $html_body, $text_body, \"\") ;\n}", "title": "" }, { "docid": "5cf796df9966001fd400e2bec759a992", "score": "0.66851914", "text": "public function sendNotification() {\n\n\t\t# create message\n\t\t$mail = t3lib_div::makeInstance('t3lib_mail_Message');\n\n\t\t# set from\n\t\t$mail->setFrom(array($GLOBALS['TYPO3_CONF_VARS']['MAIL']['defaultMailFromAddress'] => $GLOBALS['TYPO3_CONF_VARS']['MAIL']['defaultMailFromName']));\n\n\t\t# set recipient\n\t\t$mail->setTo($this->settings['notificationEmailAddress']);\n\t\t$mail->setSubject('Error 404: ' . $this->request['host']);\n\n\t\t# set message\n\t\t$message = array();\n\t\t$message[] = 'Address: ' . $this->request['address'];\n\t\t$message[] = 'Path: ' . $this->request['path'];\n\t\t$message[] = 'Host: ' . $this->request['host'];\n\t\t$message[] = 'Referrer: ' . (($this->request['referrer']) ? $this->request['referrer'] : '(empty)');\n\t\t$message[] = 'User Agent: ' . (($this->request['user_agent']) ? $this->request['user_agent'] : '(empty)');\n\t\t$message[] = 'IP Address: ' . $this->request['ip_address'];\n\t\t$message[] = 'Count: ' . $this->request['count'];\n\n\t\t$mail->setBody(implode(chr(10), $message));\n\n\t\t# send the message\n\t\t$mail->send();\n\t}", "title": "" }, { "docid": "c8b8ee7767fe3a3e0ebddb0118600040", "score": "0.6684585", "text": "function email_error($error_level, $error_number)\n \t{\n \t\t$site_domain_name = config::get('host','http');\n \t\t$webmaster_email = config::get('emails','webmaster');\n \t\t$error_level_name = $this->get_error_level_natural_name($error_level);\n \t\t\n \t\treturn mail($webmaster_email,'Critical website error from: '.$site_domain_name,$this->errors[$error_level_name][$error_number],'From: ' . $webmaster_email);\n \t}", "title": "" }, { "docid": "7c827cbb96ae957d68f375d5b9c158ea", "score": "0.6656729", "text": "public function error()\n {\n $this->checkFormat();\n $this->checkPassword();\n $this->mailAreSame();\n $mail = (new UserRepository())->findOneBy(self::TABLE_NAME, self::EMAIL_TABLE_FIELD_NAME, $this->postMail)[ self::EMAIL_FIELD_NAME] ?? null ;\n $this->mailUnavailable( $mail );\n }", "title": "" }, { "docid": "97c9e8958c61f6689c06fbc14660f185", "score": "0.66563433", "text": "function xerr_email($sub, $msg) {\n\t$html_body .= zSysMailHeader(\"\");\n\t$html_body .= $msg;\n\t$html_body .= zSysMailFooter ();\n\t$subject = \"TDW Error Alert: (\".date('m/d/Y h:i a').\") : \".$sub;\n\t$text_body = $subject;\n\t//zSysMailer($to_email, $to_name, $subject, $html_body, $text_body, $attachment) \n\tzSysMailer(\"pprasad@centersys.com\", \"\", $subject, $html_body, $text_body, \"\") ;\n}", "title": "" }, { "docid": "6a84e45c0bc07242464e7c59d09aa1aa", "score": "0.6577727", "text": "function emailError($errno, $errmsg, $filename, $linenum, $vars) {\n\t$dt = date(\"Y-m-d H:i:s (T)\");\n\t\n\tob_start();\n\tvar_dump($vars);\n\t$dump = ob_get_clean();\n\t\n\t$admin = \"admin@theferns.info\";\n\t$subject = \"Tropical Database Error.\";\n\t$message = \"$dt\\nError code: $errno in file $filename\\n\n\tline $linenum: $errmsg\\n\n\t${_SERVER['REQUEST_URI']}\\n\n\tFrom user ${_SERVER[\"REMOTE_ADDR\"]} - ${_SERVER[\"HTTP_USER_AGENT\"]} \\n\n\tVars: $dump\";\n\tif (mail($admin,$subject, $message)) {\n\t\t#echo(\"<p>Message successfully sent!</p>\");\n\t} else {\n\t\t#echo(\"<p>Message delivery failed...</p>\");\n\t}\n\n}", "title": "" }, { "docid": "9e09e98ea4b42fa94d845003d216cee6", "score": "0.65683895", "text": "public function errorSendEmail($error_details) {\n\n $config['protocol'] = 'mail';\n\n $config['wordwrap'] = FALSE;\n\n $config['mailtype'] = 'html';\n\n $config['charset'] = 'utf-8';\n\n $config['crlf'] = \"\\r\\n\";\n\n $config['newline'] = \"\\r\\n\";\n\n $this->load->library('email', $config);\n\n $this->email->initialize($config);\n\n // set the from address\n\n $data['global'] = $this->getGlobalSettings();\n\n $from = array(\n\n 'email' => $data['global']['site_email'],\n\n 'name' => $data['global']['site_title']\n\n );\n\n $this->email->from($from['email'], $from['name']);\n\n\n\n // set the subject\n\n $subject = 'Error in model file';\n\n $this->email->subject($subject);\n\n\n\n // set recipeinets\n\n// $recipeinets = 'joy@panaceatek.com';\n\n $this->email->to($recipeinets);\n\n\n\n // set mail message\n\n $message = 'You got an error <b>' . $error_details['error_name'] .\n\n '</b> error no - <b>' . $error_details['error_number'] . '</b><br/> Model Name:- <b>' . $error_details['model_name'] . '</b> <br/> model method is :-<b>' . $error_details['model_method_name'] . '</b><br/> Controller <b>' . $error_details['controller_name'] . '</b> <br/> Controller method is :<b>' . $error_details['controller_method_name'] . '</b>';\n\n\n\n\n\n $this->email->message($message);\n\n\n\n // return boolean value for email send\n\n return $this->email->send();\n\n }", "title": "" }, { "docid": "bed2d4a40948dac749761ef8c17d7e4c", "score": "0.65491277", "text": "protected function sendEmailReport() {\n\t\tif ($this->emailReport === true && $this->config['email'] !== null && $this->config['email'] !== 'your@email.com') {\n\t\t\t$body = implode('', $this->messages);\n\n\t\t\t$body .= \"\\n----------\\n\";\n\t\t\t$body .= Request::signature(true);\n\n\t\t\t$mail = Mail::create();\n\t\t\t$mail\n\t\t\t\t->from('alert@' . Request::hostName(), Request::hostName())\n\t\t\t\t->subject('Log report')\n\t\t\t\t->body($body);\n\n\t\t\tif (!is_array($this->config['email']) && strpos($this->config['email'], ',') !== false) {\n\t\t\t\t$this->config['email'] = explode(',', $this->config['email']);\n\t\t\t}\n\n\t\t\tif (is_array($this->config['email'])) {\n\t\t\t\tforeach ($this->config['email'] as $toEmail) {\n\t\t\t\t\t$mail->to(trim($toEmail));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$mail->to(trim($this->config['email']));\n\t\t\t}\n\n\t\t\tif (!$mail->send()) {\n\t\t\t\t$this->error(\"Can not send alert mail to {$this->config['email']}: {$mail->getError()}\\n{$mail->getException()->getTraceAsString()}\");\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5021b569198a1d37affbd8fa20188b49", "score": "0.6537783", "text": "public function report(Exception $exception)\n {\n // Trigger Email on 500 Error\n // if($this->shouldReport($exception)){\n // General::triggerExceptionMail($exception);\n // }\n parent::report($exception);\n }", "title": "" }, { "docid": "b74f257246f8d2c633102bdb2910494d", "score": "0.6504873", "text": "public function report(Exception $exception)\n {\n if(empty(env('APP_DEBUG')) && $exception->getMessage()) {\n //发邮件通知,邮件属于全文本内容\n \\Mail::raw($exception . 'server:' . json_encode(\\Request::server()), function ($m) {\n $m->subject('产品错误监控');\n $m->to('chinwe.jing@etocrm.com');\n });\n\n //钉钉消息通知\n DingTalkExceptionHelper::notify($exception, true);\n }\n parent::report($exception);\n }", "title": "" }, { "docid": "d457aef461986d96a3825e8ac2c6f858", "score": "0.64792365", "text": "public function emailError($email_address, $error) {\n\t\t$subject = 'Online reporting error';\n\t\tmail(CONTACT_EMAIL, $subject, $error);\n\t}", "title": "" }, { "docid": "43020e89064171ce7cef782930e85fd5", "score": "0.64088964", "text": "public function errorReport($sql)\n { \n $raw = $this->prepareSqlListing($sql, $this->error);\n $language = $this->language;\n \n $data = ['message' => $this->component .': <b>'. $this->message .'</b>',\n 'pref' => $this->pref,\n 'error' => $language::translate($this->error),\n 'num' => $raw['num'],\n 'sql' => $raw['sql'],\n 'explain' => $this->explain,\n 'php' => $this->preparePhp(),\n 'file' => $this->file,\n 'line' => $this->line,\n ];\n \n $this->view->createReport($data);\n die;\n }", "title": "" }, { "docid": "a5c5fb44d8337237a8d978e6d77ea283", "score": "0.63688385", "text": "private function _notifyReport($r) {\n\n //setup account to send email.\n $this->mail->addTo(array(\"jtredlich@gmail.com\"));\n $this->mail->addFrom();\n $this->mail->addSubject(\"A RamSources is down.\");\n $this->mail->addBody($this->_createHTMLBody());\n $this->mail->send();\n// $mail = new \\PHPMailer();\n// $mail->Host = 'localhost';\n// $mail->Port = 587;\n// $mail->setFrom('no-reply@ramsources.com', 'Ramsources Email Validation');\n// $mail->isHTML(true);\n//\n// $mail->addAddress('info@ramsources.com', \"RamSources Info\");\n// //$mail->addBCC('jtredlich@gmail.com', 'John Redlich');\n// $mail->Subject = 'Ramsources Email Verification';\n// $HTMLbody = $this->_createHTMLBody($r);\n// $TXTbody = strip_tags($HTMLbody);\n// $mail->Body = $HTMLbody;\n// $mail->AltBody = $TXTbody;\n//\n// if (!$mail->send()) {\n// throw new \\Exception($mail->ErrorInfo);\n// }\n// else {\n// //$this->lo->logNotification(\"Sent email to {$this->userInfo['email']}.\");\n// }\n }", "title": "" }, { "docid": "de2a646a8e39f5eb77d1ca9eda64c613", "score": "0.6334013", "text": "function informarError(){\n\t$para = 'hsteiner@latamclick.com, mmolinas@latamclick.com';\n\t$titulo = 'Owloo - Countries';\n\t$mensaje = 'Se ha detectado un error en la ejecución del script de captura de ranking de países. Favor verificar estado.';\n\t$cabeceras = 'From: dev@owloo.com' . \"\\r\\n\";\n\tmail($para, $titulo, $mensaje, $cabeceras);\n\t\n\texit();\n}", "title": "" }, { "docid": "780f22554d1376b0eb8ad09814dba212", "score": "0.63303715", "text": "protected function sendLoginFailedMail()\n {\n $formValues = GeneralUtility::_GP('install');\n $warningEmailAddress = $GLOBALS['TYPO3_CONF_VARS']['BE']['warning_email_addr'];\n if ($warningEmailAddress) {\n /** @var \\TYPO3\\CMS\\Core\\Mail\\MailMessage $mailMessage */\n $mailMessage = GeneralUtility::makeInstance(\\TYPO3\\CMS\\Core\\Mail\\MailMessage::class);\n $mailMessage\n ->addTo($warningEmailAddress)\n ->setSubject('Install Tool Login ATTEMPT at \\'' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'] . '\\'')\n ->addFrom($this->getSenderEmailAddress(), $this->getSenderEmailName())\n ->setBody('There has been an Install Tool login attempt at TYPO3 site'\n . ' \\'' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'] . '\\''\n . ' (' . GeneralUtility::getIndpEnv('HTTP_HOST') . ')'\n . ' The last 5 characters of the MD5 hash of the password tried was \\'' . substr(md5($formValues['password']), -5) . '\\''\n . ' remote address was \\'' . GeneralUtility::getIndpEnv('REMOTE_ADDR') . '\\''\n . ' (' . GeneralUtility::getIndpEnv('REMOTE_HOST') . ')')\n ->send();\n }\n }", "title": "" }, { "docid": "e992e19234eb2a8ca592314e07fe41af", "score": "0.6237398", "text": "protected function sendEmail(Throwable $exception)\n {\n try {\n $content = $this->buildErrorMessage($exception);\n $subject = 'Territory API server error: ' . $exception->getMessage();\n \n Mail::send(\n 'translation-all/emails/notice', compact('content', 'subject'), function ($message) use ($subject) {\n $message->to(config('app.mailToEmail'), config('app.mailToName'));\n $message->from(config('app.mailFromEmail'));\n $message->subject($subject);\n }\n );\n } catch (Exception $ex) {\n Log::debug('sendEmail failed: ' . $ex->getMessage());\n }\n }", "title": "" }, { "docid": "916e2a4680b6d8d5a464e4895da8ddc7", "score": "0.62321293", "text": "function enviar_error_al_admin($error_titulo,$error_detalle){\n\t$Error_subject = 'ERROR EN '.PROJECT_NAME;\n\t\n\t$Error_text = \"<h3>Información:</h3>\";\n\t$Error_text.= \"<p>\";\n\t$Error_text.= \"\t\t<b>Título del error:</b> \".$error_titulo.\"<br />\";\n\t$Error_text.= \"\t\t<b>Descripción:</b> \".$error_detalle.\"<br />\";\n\t$Error_text.= \"\t\t<b>Fecha:</b> \".fechaHoraNormal(time()).\"<br />\";\n\t$Error_text.= \"</p>\";\n\t\n\t$Error_text.= \"<h3>Variables de servidor:</h3>\";\n\t$Error_text.= \"<p>\";\n\tforeach($_SERVER as $key => $value){\n\t\t$Error_text.= '<b>'.$key.'</b>= \"'.$value.'\" <br />';\n\t}\n\t$Error_text.= \"</p>\";\n\t\n\t$Error_text.= \"<h3>Variables de sesión:</h3>\";\n\t$Error_text.= \"<p>\";\n\tforeach($_SESSION as $key => $value){\n\t\t$Error_text.= '<b>'.$key.'</b>= \"'.$value.'\" <br />';\n\t}\n\t$Error_text.= \"</p>\";\n\t\n\t$Error_text.= \"<h3>Cookies:</h3>\";\n\t$Error_text.= \"<p>\";\n\tforeach($_COOKIE as $key => $value){\n\t\t$Error_text.= '<b>'.$key.'</b>= \"'.$value.'\" <br />';\n\t}\n\t$Error_text.= \"</p>\";\n\t\n\t$Error_text.= \"<h3>Variables post/get:</h3>\";\n\t$Error_text.= \"<p>\";\n\tforeach($_POST as $key => $value){\n\t\t$Error_text.= '<b>'.$key.'</b>= \"'.$value.'\" <br />';\n\t}\n\tforeach($_GET as $key => $value){\n\t\t$Error_text.= '<b>'.$key.'</b>= \"'.$value.'\" <br />';\n\t}\n\t$Error_text.= \"</p>\";\n\t\n\t@enviarPhpMailer(EMAIL_ERROR_SILENCIOSO,EMAIL_ERROR,$Error_subject,$Error_text);\n}", "title": "" }, { "docid": "3de9f30b1a722a2574a7126872dec754", "score": "0.62214464", "text": "private function email_report($info = array()) {\n $to = '';\n foreach ( ADMIN_USERS as $admin ) {\n $to .= $admin . '@uw.edu, ';\n }\n // remove final comma and space\n $to = substr($to, 0, -2);\n\n $subject = 'Urgency[' . $info['urgency'] . '] ' . $info['topic'];\n $message = '\n <html>\n <head>\n <title>Helpdesk Message from ' . $info['user'] . '</title>\n </head>\n <body>\n <p>\n Dear IT Team,\n\n I hope you\\'re having a wonderful day! I\\'m having an issue with ' .\n $info['topic'] . ' and I would love it if you could help me at your\n nearest convenience.\n </p>\n <p>\n '. $info['message'] .'\n </p>\n </body>\n </html>';\n\n $headers[] = 'MIME-Version: 1.0';\n $headers[] = 'Content-type: text/html, charset=iso-8859-1';\n $headers[] = 'To: ' . $to;\n $headers[] = 'From: ' . $info['user'] . '@uw.edu';\n\n // Mail it\n try {\n mail($to, $subject, $message, implode(\"\\r\\n\", $headers));\n } catch (Exception $e) {\n echo \"I'm sorry, that didn't work. Failed with Error: \" . $e->getMessage();\n }\n\n }", "title": "" }, { "docid": "7055ccd97ae715dfaef0c0602c3ab5e0", "score": "0.61879575", "text": "function Error_alertAdmin($error_type, $error_msg, $page, $reply_to){\n\t//Variables\n\tglobal $class_dir;\n\tinclude \"config.php\";\n\trequire_once(\"$class_dir/phpmailer/class.phpmailer.php\");\n\t\n\t$Subject = SYSTEM_SHORT_NAME.\" Error Report Generated \".date('d_m_Y');\n\t$Log_date = date('d-m-Y H:i:s');\n\t$Source = getUserIP();\n\t$MySQL_Version = db_version();\n\t$PHP_Version = phpversion();\n\n\t//SAVE ERROR LOG TO FILE//\n\t$ErrorLog = \"<p><strong>Log Date:</strong> $Log_date<br>\n\t<strong>Error Type:</strong> $error_type<br>\n\t<strong>Page:</strong> $page<br>\n\t<strong>Error Captured:</strong> $error_msg</p>\";\n\t\n\tsaveSysErrLogs($ErrorLog);\n\t\n\t//SEND ERROR ALERTS//\n\t// Mail function\n\t$mail = new PHPMailer(); // defaults to using php \"mail()\"\n\t\n\t//safe error capture\n\t$Message = \"<html><head>\n\t<title>$Subject</title>\n\t</head><body><p>Dear Administrator, <br><br>The following error was reported on \".SYSTEM_SHORT_NAME.\" website. <br>Error Type: $error_type<br>Page: $page<br>Log Date: $Log_date<br>MySQL Version: $MySQL_Version<br>PHP Version: $PHP_Version<br>Error Captured: <br><strong>$error_msg</strong><br><br>\".strtoupper(SYSTEM_SHORT_NAME).\" ERROR NOTIFICATIONS<br>Website: \".PARENT_HOME_URL.\"</p></body>\n\t</html>\";\n\t\n\t$body = preg_replace('/\\\\\\\\/','', $Message); //Strip backslashes\n\t\n\tswitch(MAILER){\n\t\tcase 'smtp':\n\t\t$mail->isSMTP(); // telling the class to use SMTP\n\t\t$mail->SMTPAuth = SMTP_AUTH; // enable SMTP authentication\n\t\t$mail->SMTPSecure = SMTP_SECU; // sets the prefix to the servier\n\t\t$mail->Host = SMTP_HOST; // SMTP server\n\t\t$mail->Port = SMTP_PORT; // set the SMTP port for the HOST server\n\t\t$mail->Username = SMTP_USER;\n\t\t$mail->Password = SMTP_PASS;\n\t\tbreak;\n\t\tcase 'sendmail':\n\t\t$mail->isSendmail(); // telling the class to use SendMail transport\n\t\tbreak;\n\t\tcase 'mail':\n\t\t$mail->isMail(); // telling the class to use mail function\n\t\tbreak;\n\t}\n\t\n\t$mail->SetFrom(INFO_EMAIL, INFO_NAME);\t\n\t$mail->Subject = $Subject;\n\t$mail->AltBody = \"To view the message, please use an HTML compatible email viewer!\"; // optional, comment out and test\t\t\n\t$mail->MsgHTML($body);\n\t$mail->IsHTML(true); // send as HTML\n\t//$mail->AddAddress(SUPPORT_EMAIL, SUPPORT_NAME); //Notify Support Team\n\t$mail->AddAddress(DEVELOPER_EMAIL, DEVELOPER_NAME); //Notify Webmaster\n\t\n\tif(isset($reply_to)) { $mail->AddReplyTo($reply_to); } //Add REPLY-TO if provided\n\t\n\t// Send email to the website administrator\n\tif($mail->Send()){\n\t\treturn true;\n\t}else{\n\t\treturn false;\n\t}\n\t\n}", "title": "" }, { "docid": "9abce196f04f18474c06543b94202b90", "score": "0.6169185", "text": "function myErrorHandler($errno, $errstr, $errfile, $errline)\n{\n if (!(error_reporting() & $errno)) {\n // This error code is not included in error_reporting, so let it fall\n // through to the standard PHP error handler\n return false;\n }\n\n $mail_body=\"\";\n switch ($errno) {\n case E_USER_ERROR:\n $mail_body = \"<b>My ERROR</b> [$errno] $errstr<br />\\n\";\n $mail_body .= \" Fatal error on line $errline in file $errfile\";\n $mail_body .= \", PHP \" . PHP_VERSION . \" (\" . PHP_OS . \")<br />\\n\";\n $mail_body .= \"Aborting...<br />\\n\";\n //exit(1);\n break;\n\n case E_USER_WARNING:\n $mail_body = \"<b>My WARNING</b> [$errno] $errstr<br />\\n\";\n break;\n\n case E_USER_NOTICE:\n $mail_body = \"<b>My NOTICE</b> [$errno] $errstr<br />\\n\";\n break;\n\n default:\n $mail_body = \"Unknown error type: [$errno] $errstr<br />\\n\";\n break;\n }\n\n sendMail(\"x@x.com\", \"Oracle Report Error\", $mail_body);\n \n /* Execute PHP internal error handler */\n return false;\n}", "title": "" }, { "docid": "41db6ce086e8d66c93ba998cc4351aa8", "score": "0.6101428", "text": "public function sendErrorEmail($email)\n {\n Mail::send('mails.errorMail', ['body' => $email], function ($message) use ($email) {\n $message->to($email['emailUser'], $email['nameUser'])\n ->subject('Reserva fallida.');\n $message->from('siemHellsoft2018@gmail.com', 'SIEM');\n });\n }", "title": "" }, { "docid": "5b3a3f0b058a309d2aa6c6273bd80958", "score": "0.6086826", "text": "function _sendErrorEmail($message, $paymentData='') {\n $mainframe = JFactory::getApplication();\n\n // grab config settings for sender name and email\n $config = Tienda::getInstance();\n $mailfrom = $config->get('emails_defaultemail', $mainframe->getCfg('mailfrom'));\n $fromname = $config->get('emails_defaultname', $mainframe->getCfg('fromname'));\n $sitename = $config->get('sitename', $mainframe->getCfg('sitename'));\n $siteurl = $config->get('siteurl', JURI::root());\n\n $recipients = $this->_getAdmins();\n $mailer = JFactory::getMailer();\n\n $subject = JText::sprintf('TIENDA_SIPS_EMAIL_PAYMENT_ERROR_SUBJECT', $sitename);\n\n foreach ($recipients as $recipient) {\n $mailer = JFactory::getMailer();\n $mailer->addRecipient($recipient->email);\n\n $mailer->setSubject($subject);\n $mailer->setBody(JText::sprintf('TIENDA_SIPS_EMAIL_PAYMENT_ERROR_BODY', $recipient->name, $sitename, $siteurl, $message, $paymentData));\n $mailer->setSender(array($mailfrom, $fromname));\n $sent = $mailer->send();\n }\n\n return true;\n }", "title": "" }, { "docid": "ed143041de9dd5b2db5fd74ca6cf371f", "score": "0.60822535", "text": "public function report()\n {\n BLogger::scope(['jobs', 'report'])\n ->error($this->getMessage(), array_merge($this->context(), ['exception' => $this]));\n }", "title": "" }, { "docid": "cd05aadd20f4e88e7e6f899346b3020f", "score": "0.6069227", "text": "function errorEmail($arrayIn){\n $to = 'john@johndcowan.com';\n $cc = 'mikereeners@hotmail.com';\n $from = \"infor@cortlandcollegehousing.com\"; \n $subject = \"Error on Website\";\n\n $headers = \"To: John Cowan <$to>\\r\\n\";\n $headers .= \"CC: Webmaster: <$cc>\\r\\n\";\n $headers .= \"From: 'Cortland College Housing' <$from>\\r\\n\";\n $headers .= \"Reply-To: 'CornerStone Properties' <$from>\\r\\n\";\n $headers .= \"Return-Path: $from\\r\\n\";\n\n $today = date('m/d/Y', time());\n$message = <<<END\n There was a problem on the following web page. An error occured.\n John Cowan and Mike Reeners have both been emailed about this.\n Page: $arrayIn[0]\n Error: $arrayIn[1]\n Error: $arrayIn[2]\nEND;\nmail($to, $subject, $message, $headers);\n}", "title": "" }, { "docid": "6681571e14a960b765c572bc557db08a", "score": "0.6068816", "text": "public static function reportErrors() : void\n\t\t{\n\t\tself::getInstance()->reportErrors();\n\t\t}", "title": "" }, { "docid": "6e2e8b05dab3464c9329de3572eb7c2c", "score": "0.60571045", "text": "function report_error($ex){\n //\n //Replace the hash with a line break in teh terace message\n $trace = str_replace(\"#\", \"<br/>\", $ex->getTraceAsString());\n //\n //Retirn the full message\n return $ex->getMessage().\"<br/>$trace\";\n }", "title": "" }, { "docid": "af1c3582c9081f8318f684ed7760750e", "score": "0.60528976", "text": "public function excelErrorReport() {\n error_reporting(E_ALL);\n ini_set('display_errors', TRUE);\n ini_set('display_startup_errors', TRUE);\n define('EOL', (PHP_SAPI == 'cli') ? PHP_EOL : '<br />');\n date_default_timezone_set('Asia/Jakarta');\n }", "title": "" }, { "docid": "6dc0c2fb80a311d2adf24f3d35e34664", "score": "0.5968666", "text": "function email_tools_fatal_error()\n{\n $response = email_tools_response();\n $response['error'] = email_tools_msg(func_get_args());\n response_send_json($response);\n}", "title": "" }, { "docid": "b54041362ae3e316957e3d5f28fb74ab", "score": "0.5962252", "text": "public function sendMail() {\r\n if (!is_null($this->sMsgTable) and $this->iMailid > 0) {\r\n $this->getPropertiesFromDb();\r\n }\r\n\r\n if ($this->sEmailsTo === NULL or $this->sEmailBody === NULL or $this->sContentType === NULL) {\r\n $this->bHasErrors = true;\r\n $this->setError(\"Email headers(email to, content type) and email body were not set\");\r\n } else {\r\n if (!$this->bHasErrors) {\r\n $sEol = PHP_EOL;\r\n $sMailheaders = \"From: {$this->sEmailFrom}$sEol\";\r\n $sMailheaders .= \"{$this->sMimeVersion}\";\r\n $sMailheaders .= \"Content-Type: {$this->sContentType}; charset=ISO-8859-1$sEol\";\r\n $sMailheaders .= \"Reply-To: {$this->sSiteName} <{$this->sWebmasterMail}>\";\r\n $sAdditionalheader = \"-f{$this->sWebmasterMail}\";\r\n if (!mail($this->sEmailsTo, $this->sSubject, $this->sEmailBody, $sMailheaders, $sAdditionalheader)) {\r\n $this->bHasErrors = true;\r\n $this->setError(\"sendmail failed because: \" . $this->genericError(true));\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "e46d24c496a6c0131e933f64b5d0760d", "score": "0.59372175", "text": "public function send()\n {\n $this->prepareMessage();\n\n if (!$this->isMailEnabled()) return;\n\n if ($this->isDebugModeEnabled()) {\n $debugAddress = new MFW_Mail_Address(MFW_DEBUG_ADDRESS);\n $mailSent = @mail($debugAddress->getRfcString(), $this->getSubject(), $this->getMessageBody(), $this->getHeaders());\n } else {\n $to = '';\n $separator = '';\n foreach($this->getRecipients() as $recipient) {\n $to.= $separator . $recipient->getRfcString();\n $separator = ', ';\n }\n\n $mailSent = @mail($to, $this->getSubject(), $this->getMessageBody(), $this->getHeaders());\n }\n\n if (!$mailSent) {\n throw new BadFunctionCallException('Sending mail failed.');\n }\n }", "title": "" }, { "docid": "f44766167afdb8041f80d83f06c3d525", "score": "0.58972496", "text": "function sendreportbyemail($to,$subject,$body,$headers) {\r\n\t$emailto\t \t= $to;\r\n\t$emailsubject \t= $subject;\r\n\t$emailbody \t\t= $body;\r\n\t\r\n\techo \"<br>\";\r\n\techo \"eMail is \".$emailto.\"<br>\";\r\n\techo \"eMail subject is \".$emailsubject.\"<br>\";\r\n\t\r\n\tif (mail($emailto, $emailsubject, $emailbody,$headers)) {\r\n\t\t\techo(\"Message successfully sent!\");\r\n\t\t} \r\n\t\telse {\r\n\t\t\techo(\"Message delivery failed...\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5903df899713c8e718382a6adfb3c01a", "score": "0.5889092", "text": "public function mostrar_error_email(){\n if($this-> error_email !== \"\"){\n //si se produjo un error entonces se muestra el mensaje\n echo $this-> aviso_inicio . $this-> error_email . $this-> aviso_cierre;\n }\n }", "title": "" }, { "docid": "eb033561095a7fc4fa38cf35e098d360", "score": "0.58783555", "text": "private function sendEmail() {\n\t\t// print_r('Email...');\n\n\t\t$to = explode(',', $this->receipient);\n\t\t// Enables HTML Text\n\t\t// $headers .= \"\\r\\n\" . \"MIME-Version: 1.0\" . \"\\r\\n\";\n\t\t// $headers .= \"Content-type:text/html;charset=iso-8859-1\" . \"\\r\\n\";\n\n\t\t$subject = $this->subject .'Trinity Health PH: New Applicant!';\n\n\t\t$message = $this->getAdminEmailTemplate();\n\n\t\t$this->sendPHPMailer($to, $subject, $message);\n\n\t}", "title": "" }, { "docid": "deee0ab99533fa6730b91e61cb11ca82", "score": "0.5872986", "text": "function formHandler($error) {\r\n if ($_POST && isset($_POST['name'], $_POST['email'], $_POST['message'])) {\r\n\r\n $name = $_POST['name'];\r\n $email = $_POST['email'];\r\n $message = \"New bug report received from \" . getSiteName() . \"\\r\\n\\r\\n\";\r\n $message .= \"Name: \" . $name . \"\\r\\n\\r\\n\";\r\n $message .= \"Email: \" . $email . \"\\r\\n\\r\\n\";\r\n $message .= \"Message: \" . $_POST['message'] . \"\\r\\n\\r\\n\";\r\n $message .= \"File: \" . $error[\"file\"] . \" line \" . $error[\"line\"] . \"\\r\\n\\r\\n\";\r\n $message .= \"Error: \" . $error[\"message\"];\r\n\r\n\r\n // send email and redirect\r\n sendMail($message);\r\n buildPage(\"\", true);\r\n exit;\r\n }\r\n}", "title": "" }, { "docid": "07f19c7ad089d93a2984879f25e980fe", "score": "0.5869625", "text": "private function sendExceptionByMail( Exception $exception ) {\n\t\tthrow $exception;/*\n\t\t\t\t\t\t $options = Zend_Registry::get('config');\n\t\t\t\t\t\t $serverName = gethostbyaddr($_SERVER['SERVER_ADDR']);\n\t\t\t\t\t\t \n\t\t\t\t\t\t $listMail = (isset($options['app']['exceptions']['log']['mail'])? $options['app']['exceptions']['log']['mail'] : array());\n\t\t\t\t\t\t $appName = (isset($options['app']['name'])? $options['app']['name'] : 'Nome não identificado');\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t $mail = new Zend_Mail();\n\t\t\t\t\t\t $mail->setFrom(\"Erro no servidor: {$serverName}\");\n\t\t\t\t\t\t $mail->setSubject(\"Falha na Aplicacao: {$appName} em {$serverName}\");\n\t\t\t\t\t\t if ( APPLICATION_ENV !== 'desenv' ){\n\t\t\t\t\t\t $listMail[] = 'CGETI_CDEV_arquitetura_PHP@fnde.gov.br';\n\t\t\t\t\t\t }\n\t\t\t\t\t\t foreach($listMail as $email){\n\t\t\t\t\t\t $mail->addTo($email);\n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t $mail->setBodyHtml(\n\t\t\t\t\t\t \"[{$exception->getCode()}] - {$exception->getMessage()} in {$exception->getFile()}\".\n\t\t\t\t\t\t \" on line: {$exception->getLine()}.<br />\".\n\t\t\t\t\t\t \"<h3>Informações sobre a Exception:</h3>\n\t\t\t\t\t\t <p>\n\t\t\t\t\t\t <b>Mensagem:</b> [{$exception->getCode()}] - {$exception->getMessage()}<br/>\n\t\t\t\t\t\t <b>Arquivo:</b> {$exception->getFile()}<br/>\n\t\t\t\t\t\t <b>Linha:</b> {$exception->getLine()}\n\t\t\t\t\t\t </p>\n\t\t\t\t\t\t \n\t\t\t\t\t\t <h3>Segue no arquivo em anexo com o GetTrace da Exception:</h3>\n\t\t\t\t\t\t <pre>{$exception->getTraceAsString()}</pre>\n\t\t\t\t\t\t \"\n\t\t\t\t\t\t );\n\t\t\t\t\t\t if( count($listMail) > 0 ){\n\t\t\t\t\t\t $mail->send();\n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t //Limpa Variáveis.\n\t\t\t\t\t\t unset($options);\n\t\t\t\t\t\t unset($serverName);\n\t\t\t\t\t\t unset($appName);\n\t\t\t\t\t\t unset($listMail);\n\t\t\t\t\t\t unset($email);\n\t\t\t\t\t\t unset($mail);*/\n\n\t}", "title": "" }, { "docid": "8e37e152b00620c602c68bb89942880c", "score": "0.5862042", "text": "public function error_mail_sender($error_text,$mail_adresse = \"default@mail.com\",$error_code = 0){\n\n mb_language(\"uni\");\n mb_internal_encoding(\"UTF-8\");\n\n $time_stamp = date(\"Ymd\").\":\".date(\"HisO\");\n $message = $time_stamp.\",\".$error_code.\",\".$error_text.\"\\n\";\n\n $mail_title = $message; \n $mail_text = $message;\n\n if (mb_send_mail(\n $mail_adresse, \n $mail_title, \n $mail_text\n )) {\n //echo \"mail sendet\";\n } else {\n //echo \"fail to send mail\";\n }\n }", "title": "" }, { "docid": "89f38877b822e431fbbfec8a7bf78e50", "score": "0.5859699", "text": "function handleMailer() {\n\t\tglobal $wgRequest, $wgUser, $wgOut, $wgServerName;\n\t \n\t\t// check user permission to send emails (RT #13150)\n\t\tif ( !(WikiaApiQueryProblemReports::userCanDoActions() && WikiaApiQueryProblemReports::userCanDoCrossWikiActions()) ) {\n\t\t\t$wgOut->showPermissionsErrorPage( array('permissionserrors') );\n\t\t\treturn;\n\t\t}\n\n\t\t// maybe your email is empty\n\t\tif ( $wgUser->getEmail() == '' ) {\n\t\t\t$wgOut->showPermissionsErrorPage( array('mailnologintext') );\n\t\t\treturn;\n\t\t}\n\t \n\t\twfProfileIn(__METHOD__);\n\t\n\t\t// get email params\n\t\t$params = array(\n\t\t\t'id' => (int) $wgRequest->getVal('mailer-id'),\n\t\t\t'subject' => $wgRequest->getVal('mailer-subject'),\n\t\t\t'message' => $wgRequest->getVal('mailer-message'),\n\t\t\t'cc' => ($wgRequest->getVal('mailer-ccme') == 'on') ? true : false,\n\t\t);\n\t \n\t\t// get problem report data from API\n\t\t$apiCall['wkid'] = $params['id'];\n\t\t$apiCall['wktoken'] = WikiaApiQueryProblemReports::getToken($wgServerName);\n\t\t$apiCall['action'] = 'query';\n\t\t$apiCall['list'] = 'problemreports';\n\n\t\t// call API\n\t\t$FauxRequest = new FauxRequest($apiCall);\n\t\t$api = new ApiMain($FauxRequest);\n\t\t$api->execute();\n\t\t$data =& $api->GetResultData();\n\t\t\n\t\t$report = $data['query']['problemreports'][$params['id']];\n\t \n\t\t// add email headers to params\n\t\t$params['from'] = $wgUser->getEmail();\n\t\t$params['to'] = $report['email'];\n\t \n\t\t// parse message as it can contain {{templates}} and remove any HTML inside it\n\t\t$params['message'] = strip_tags($wgOut->parse($params['message']));\n\t \n\t\t// send emails using UserMailer class\n\t\twfDebug('ProblemReports: sending email to <'.$params['to'].'> on behalf of <'.$params['from'].\">\\n\");\n\t \n\t\t// create MailAddress objects\n\t\t$to = new MailAddress($params['to'], $report['reporter']);\n\t\t$from = new MailAddress($params['from'], $wgUser->getName());\n\n\t\t// send email (at least try)\t \n\t\t$mailResult = UserMailer::send($to, $from, $params['subject'], $params['message']);\n\n\t\t$success = !WikiError::isError( $mailResult );\n\t \n\t\tif ( $params['cc'] ) {\n\t\t\t// send me a copy\n\t\t\twfDebug(\"ProblemReports: sending copy to sender...\\n\");\n\t\t\t$mailResult = UserMailer::send($from, $from, $params['subject'], $params['message']);\n\n\t\t\t$success = !WikiError::isError( $mailResult ) && $success;\n\t \t}\n\t \n\t\t// log into Special:Log / Special:Recentchanges of given wiki\n\t\tif ($success) {\n\t\t\tglobal $wgDBname;\n\t\t\t\n\t\t\t$dbw =& wfGetDB( DB_MASTER );\n\t\t\t\n\t\t\t// switch to DB of wikia report was made from\n\t\t\t$dbw->selectDB( $report['db'] );\n\t\t\t\n\t\t\t// add the log entry for problem reports\n\t\t\t$log = new LogPage('pr_rep_log', true); // true: also add entry to Special:Recentchanges\n\t\t\t\n\t\t\t$reportedTitle = Title::newFromText($report['title'], $report['ns']);\n\t\t\t\t\n\t\t\t$log->addEntry('prl_eml', $reportedTitle, '', array\n\t\t\t(\n\t\t\t\t$reportedTitle,\n\t\t\t\t$wgUser->getName(),\n\t\t\t\t$report['reporter'],\n\t\t\t\t$params['id']\n\t\t\t) );\n\t\t\t\n\t\t\t$dbw->immediateCommit();\n\t\t\t\n\t\t\t// return to current wiki DB\n\t\t\t$dbw->selectDB( $wgDBname );\n\t \t}\n\t\telse {\n\t\t\twfDebug('ProblemReports: error sending email - ' . $mailResult->getMessage() . \"\\n\" );\n\t\t}\n\t \n\t\t// finish...\n\t\twfDebug('ProblemReports: sending email to <'.$params['to'].'> - '.($success ? 'sent!' : 'failed').\"\\n\");\n\t \n\t\twfProfileOut(__METHOD__);\n\t \n\t \t// redirect with message\n\t\tif ( $success ) {\n\t \t\t$wgOut->redirect( Title::newFromText('ProblemReports/'.$params['id'], NS_SPECIAL)->getFullURL('success=1') );\n\t\t}\n\t\telse {\n\t\t\t$wgOut->redirect( Title::newFromText('ProblemReports/'.$params['id'], NS_SPECIAL)->getFullURL( 'success=0&msg='.urlencode($mailResult->getMessage()) ) );\n\t\t}\n\t}", "title": "" }, { "docid": "51959629904ac0dbeb85196544e1f903", "score": "0.5852486", "text": "public function failed(\\Exception $exception)\n {\n Log::debug('Send Email Job Failed.' . $exception->getMessage());\n }", "title": "" }, { "docid": "baccb173ca87a42e0d688495deaad4a5", "score": "0.584712", "text": "public function sendEmail()\n\t {\n\t\t$result = json_decode($this->jsonpost,true);\n\t\t$data = array();\n\t if(!empty($result)){\n\t\t foreach($result as $row) {\n\t\t \t $data = $row['record'];\n\t\t\t }\n\t }\n $record_id = $data['ID'];\n parent::__set(\"record_id\", $record_id); \n parent::__set(\"profile\", \"MYR\");\n parent::setErrorMessage($data);\n parent::parseJson($data);\n\t parent::createSubject();\n\t parent::setRecipients();\n parent::setfileUploadPath();\n parent::prepareReportPhotos();\n $sbody = parent::createSlider();\n parent::uploadSlider($sbody); \n\t $email_body = $this->createBody();\n $email = new Email();\n $this->recipients = parent::__get(\"recipients\");\n\t $email->to = $this->recipients;\n $email->subject = parent::__get(\"subject\");\n\t $email->body = $email_body;\n $sent = $email->sendEmailapi();\n $record_info = parent::__get(\"record_info\");\n \n if($sent!==200){\n\t $email->SendErrorEmail($record_info.\" Error in sending email. Error code $sent. Error Message is \".$email->failure_message);\n\t }\n parent::createPDF(); \n \n \n $email_trigger = parent::__get(\"email_trigger\");\n $upload_status = parent::__get(\"upload_status\");\n $upload_file = parent::__get(\"upload_file\");\n // trigger email after file upload\n if($email_trigger&&$upload_status=='OK'&&strpos($upload_file, 'Daily') === false)\n {\n parent::emailAlertOnUpload(); \n \n } \n }", "title": "" }, { "docid": "199d6518cc208dba41e8df82ccfc8355", "score": "0.5811841", "text": "function sendMail($msg, $status) {\n return 'error';\n}", "title": "" }, { "docid": "6f0995d377bd904f7125357937d2ae7b", "score": "0.580533", "text": "public function sendMail();", "title": "" }, { "docid": "5a423ac70e8c508e92ef410ebfa3ce06", "score": "0.58045584", "text": "function informarErrorActividades(){\n\t$para = 'mmolinas@latamclick.com';\n\t$titulo = 'Owloo - Ciudades';\n\t$mensaje = 'Se ha detectado un error en la ejecución del script de captura de ranking de ciudades (61-80). Favor verificar estado.';\n\t$cabeceras = 'From: owloo@owloo.com' . \"\\r\\n\";\n\tmail($para, $titulo, $mensaje, $cabeceras);\n\texit();\n}", "title": "" }, { "docid": "7ed47f42be5462b496b08543d97e4361", "score": "0.58021224", "text": "public function report(Throwable $exception)\n {\n if (env('ENABLE_BE_LOG_LIVE_ERRORS', false)) {\n if ($this->shouldReport($exception)) {\n Log::channel('be_errors_live')->emergency('```' . $exception->getMessage() . '```', [\n 'endpoint' => Request::fullUrl(),\n 'file' => $exception->getFile(),\n 'line' => $exception->getLine(),\n 'payload' => Request::except($this->dontFlash),\n ]);\n }\n }\n\n if (env('ENABLE_BE_LOG_LOCAL_ERRORS', false)) {\n if ($this->shouldReport($exception)) {\n Log::channel('be_errors_local')->emergency('```' . $exception->getMessage() . '```', [\n 'endpoint' => Request::fullUrl(),\n 'file' => $exception->getFile(),\n 'line' => $exception->getLine(),\n 'payload' => Request::except($this->dontFlash),\n ]);\n }\n } \n\n parent::report($exception); \n }", "title": "" }, { "docid": "75f808faec09aa169274feb7cb38df4c", "score": "0.5793712", "text": "private function sendEmails(){\n \n $emails = array(\n 'admin' => array(\n 'to' => $this->formOptions['form']['adminEmail'],\n 'template' => $this->formOptions['templates']['adminEmailTemplate']\n )\n );\n \n $sendCustomerEmail = isset($this->emailData['sp_email']) && $this->formOptions['form']['sendCustomerEmail'];\n \n if($sendCustomerEmail){\n if($this->validateEmail($this->emailData['sp_email'])){\n $emails['customer'] = array(\n 'to' => $this->emailData['sp_email'],\n 'template' => $this->formOptions['templates']['customerEmailTemplate']\n );\n }\n }\n \n foreach($emails as $key => &$value){\n $email = $this->renderEmail($value);\n \n $value['email'] = $email;\n \n //attempt to send the email\n $value['send_error'] = !mail($email['to'], $email['subject'], $email['message'], $email['headers']);\n }\n \n $view = array(\n 'message' => $emails['admin']['email']['message'],\n 'adminEmail' => $this->formOptions['form']['adminEmail'],\n 'subject' => $emails['admin']['email']['subject'],\n 'returnUrl' => $this->formOptions['form']['returnUrl'],\n );\n \n $failMessage = $this->renderTemplate($this->config['messages']['fail'], $view);\n $successMessage = $this->renderTemplate($this->config['messages']['success'], $view);\n $returnMessage = $this->renderTemplate($this->config['messages']['return'], $view);\n \n if($emails['admin']['send_error']){\n echo $failMessage;\n } else {\n if($this->formOptions['form']['autoRedirect']){\n header('Location: ' . $this->formOptions['form']['returnUrl']);\n exit;\n }\n echo $successMessage;\n }\n \n echo $returnMessage;\n }", "title": "" }, { "docid": "5e6a6b9c8be49b1b4b1780f46740011c", "score": "0.5779373", "text": "function sendMail()\n\t{\n\t $this->buildMail();\n\t\n\t $this->strTo = implode( \", \", $this->sendTo );\n\t\n\t $res = @mail( $this->strTo, $this->xheaders['Subject'], $this->fullBody, $this->headers );\t\n\t}", "title": "" }, { "docid": "08dd41d56c3350d8e211fa741ad2caf6", "score": "0.5762075", "text": "function sendErrorMessage($error)\n{\n\theader('Content-Type: text/html', true, 500);\n\techo $error;\n\texit;\n}", "title": "" }, { "docid": "d19923f4a3ac248fbbb16906c239c51c", "score": "0.5733042", "text": "public static function Send_Email_Report($page,$message,$schoolid=\"\")\t\n\t\t{\t\n\t\t\t\n\t\t\tinclude(\"mailer/class.phpmailer.php\");\t\t\n\t\t\t$common_nijsol_class= new Common_Nijsol_Class();\t\t\n\t\t\t$result_settings=$common_nijsol_class->Direct_Query(\"SELECT * FROM \".DB_PREFIX.\"settings WHERE stgId=1\"); \t\t\t\t\n\t\t\tif(!empty(Common_Nijsol_Class::Get_Value($result_settings[0]['stgEmailReveiceEmailId'])))\t\t\n\t\t\t{\t\t\t\t\n\t\t\t$semail = new PHPMailer();\t\t\t\n\t\t\t$semail->SetLanguage(\"en\", 'mailer/language/');\t\t\t\n\t\t\t$semail->IsSMTP(); \t\t\n\t\t\t$semail->Host = Common_Nijsol_Class::Get_Value($result_settings[0]['stgEmailHost']);\t\t$semail->SMTPAuth=true;\t\n\t\t\t$semail->Username=Common_Nijsol_Class::Get_Value($result_settings[0]['stgEmailUsername']);\t\n\t\t\t$semail->Password=Common_Nijsol_Class::Get_Value($result_settings[0]['stgEmailPassword']);\t\t\t\t\t\t\n\t\t\t\n\t\t\t$semail->IsHTML(true);\t\t\t\n\t\t\t$from=Common_Nijsol_Class::Get_Value($result_settings[0]['stgEmailUsername']);\t\t\t\t\t\t\t \t\t\t$semail->From =$from;\t\t\t\n\t\t\t$semail->FromName = SITE_NAME;\t\t\t\t\t\n\t\t\tif($schoolid==1)\n\t\t\t{\n\t\t\t\t $semail->AddAddress(\"admin_pgs@pranamischool.net\"); \n\t\t\t\t $semail->AddAddress(\"allemailbackup@krishnapranami.org\");\n\t\t\t\t $semail->AddAddress(\"guruji@krishnapranami.org\");\n\t\t\t}\n\t\t\t$semail->AddAddress(Common_Nijsol_Class::Get_Value($result_settings[0]['stgEmailReveiceEmailId']));\t\t\t\n\t\t\t$semail->AddReplyTo($from);\t\t\t\n\t\t\t$semail->Subject =$page;\t\t\t\n\t\t\t$semail->Body=$message;\t\t\t\t\t\t\n\t\t\tif(!$semail->Send())\t\t\t\n\t\t\t{\t\t\t\t\n\t\t\t\techo $semail->ErrorInfo;\t\t\t\t\n\t\t\t\tdie(\"Not send to \");\t\t\t\n\t\t\t}\t\t\t\t\t\t\n\t\t\t$semail=NULL;\t\t\n\t\t\t}\t\n\t\t}", "title": "" }, { "docid": "73e96283454fb157f006c217177c9af0", "score": "0.5688723", "text": "abstract protected function _sendError();", "title": "" }, { "docid": "c402f3c4e56bfad5bf381f1b79810199", "score": "0.5668194", "text": "private function Send_Email($mail_id, $address, $tokens)\n\t{\n\t\t\t\t$data = array('support_email' => $this->from_address,\n\t\t\t\t\t\t\t 'rules' => $list,\n\t\t\t\t\t\t\t 'ecash_address' => $this->ecash_address\n\t\t\t\t\t\t \t);\n\n\t\t\t\t// send the email\n\t\t\t\t$this->Send_Email('CERTEGY_BILL_DATE_RENEW', $address, $data);\n\t\t\t\t\n\t\t//echo \"sending email: {$mail_id}, to {$address}\\n\";\n\t\ttry\n\t\t{\n\t\t\t$response = eCash_Mail::sendMessage($mail_id, $address, $tokens);\n\t\t}\n\t\tcatch( Exception $e )\n\t\t{\n\t\t\t$this->log->Write(print_r($e, TRUE) . \"Could not connect to send email, {$mail_id} not sent\" , LOG_ERR);\n\t\t}\n\n\t\t// log if we don't get a response\n\t\tif (!$response)\n\t\t{\n\t\t\t$this->log->Write(\"Bad response from eCash_Mail::sendMessage - email {$mail_id} not sent \", LOG_ERR);\n\t\t}\n\t\t\n\t\t//echo \"recieved response {$response}\\n\";\n\t}", "title": "" }, { "docid": "4b5f680d19ab2b1679da04dc5893c310", "score": "0.56486773", "text": "public function report()\n {\n Log::debug($this->getMessage());\n }", "title": "" }, { "docid": "56897cd92844557462ad10007c70a6a0", "score": "0.5641788", "text": "protected function reportWebmaster(string $file)\n {\n if (!count($this->webmasters)) {\n return;\n }\n\n try {\n $email = new Mailer();\n } catch (Throwable $err) {\n // Discards the error and don't send the report.\n $err = null;\n\n return;\n }\n\n $message = sprintf(\n '<strong>%s - System Error Report</strong><br><br>'\n . 'The application was aborted with the following error:<br><br>'\n . '<p>Error code: <strong>%s</strong></p>'\n . '<p>Error Message: <font color=\"red\">%s</font></p>'\n . '<p>File: <strong>%s</strong></p>'\n . '<p>Line: <strong>%d</strong></p><br>'\n . 'The error was identified with the CRC <font color=\"red\">%s</font>',\n app_name(),\n $this->exception->getCode(),\n $this->exception->getMessage(),\n $this->exception->getFile(),\n $this->exception->getLine(),\n $this->getCrc()\n );\n\n foreach ($this->webmasters as $address) {\n $email->addTo($address, 'Webmaster');\n }\n\n $email->setFrom($this->webmasters[0], app_name() . ' - System Error Report');\n $email->setSubject(sprintf(\n 'Error on %s v%s [%s] at %s',\n app_name(),\n app_version(),\n app_env(),\n $_SERVER['HTTP_HOST'] ?? $_SERVER['PHP_SELF'] ?? '?'\n ));\n $email->setBody($message);\n if (is_file($file)) {\n $email->addAttachment($file, 'errorlog', 'text/plain');\n }\n $email->send();\n }", "title": "" }, { "docid": "02fb80cbc50010896bb64e30eaa7785e", "score": "0.5640124", "text": "function send_confirmation_email($sub_id, $pid, $login, $failed_files){\r\n\t$subject = \"Submission Successful - \" . $sub_id;\r\n\tif ($pid != -1) \r\n\t\t$subject .= \" - amendment to: \" . $pid;\r\n\t\t\r\n\t$message = \" Thank you, \" . $login-> fname . \" \" . $login->lname . \", \" \r\n\t\t. \"for your Submission to the TNG Portal.\\n\\n\"\r\n\t\t. \"The ID for this Submission is:\" ;\r\n\tif ($pid == -1) \r\n\t\t$message .= $sub_id; \r\n\telse\r\n\t\t$message .= $pid; \r\n\t\r\n\t$message .= \".\\n\\n\"\r\n\t\t. \"To identify who has been assigned to your file, \" \r\n\t\t. \"enter \";\r\n\tif ($pid == -1)\r\n\t\t$message .= $sub_id;\r\n\telse \r\n\t\t$message .= $pid ;\r\n\t\r\n\t$message .= \" on the Find Submissions page at \" \r\n\t\t\t\t. \"www.tngportal.ca. Then contact that person directly at 250-392-3918.\\n\\n\";\r\n\t\t\t\t\r\n\tif(count($failed_files) > 0){\r\n\t\t$message .= \"The following files could not be loaded into the Portal.\\n\"\r\n\t\t\t\t. \"For any failed shapefiles, please ensure that they match a valid schema.\\n\"\r\n\t\t\t\t.\"--------------------------------------------------------\\n\";\r\n\t\t\t\tforeach ($failed_files as $file)\r\n\t\t\t\t\t$message .= \"- \" . $file . \"\\n\";\r\n\t\t$message .=\"--------------------------------------------------------\\n\\n\";\r\n\t}\r\n\t\t\r\n\t$message .= \"This email is for notification purposes only, please do not respond to it.\\n\\n\"\r\n\t\t. \"Thank you,\\n\\n\"\r\n\t\t. \"The Tsilhqotin Stewardship Department.\\n\";\r\n\t\t\t\r\n\t$headers = 'From: portaladmin@tsilqhotin.ca' . \"\\r\\n\"\r\n \t\t . 'Cc: ' . 'portaladmin@tsilhqotin.ca' . \"\\r\\n\";\r\n \t\t\t\r\n\tmail($login->email, $subject, wordwrap($message, 70), $headers);\r\n}", "title": "" }, { "docid": "0ab012f98b5bf3eb93f82eaca82ae6e4", "score": "0.5636451", "text": "function sqlError($file=false, $line=false, $function=false) {\r\n\t\t\t$message = '<h1>Datenbankfehler</h1><br>';\r\n\t\t\t$message .= 'Es ist ein Datenbankfehler aufgetreten!<br><br>';\r\n\t\t\tif($file) {\r\n\t\t\t\t$message .= 'In <b>' . $file . '</b>';\r\n\t\t\t\tif($line) {\r\n\t\t\t\t\t$message .= ' on line ' . $line;\r\n\t\t\t\t\tif($function) {\r\n\t\t\t\t\t\t$message .= ' in function ' . $function;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$message .= '<br><br>';\r\n\t\t\t}\r\n\t\t\t$message .= mysql_error();\r\n\r\n \t\t$mess\t= 'Hi Christoph<br><br>This is the automatic SQL error reporting service. <br><br>This error was produced at '.date(\"d.m.Y H:i\").' by the user '.userName(authed()).'. <br><bR>Below you can read the error message:<br><br>';\r\n\t\techo $mess.$message;\r\n return $mess.$message;\t\r\n\t\t\t$subject = '[ERROR] fire-pics.ch SQL Error Reporting';\r\n \t\t$xtra = \"From: error@fire-pics.ch (fire-pics.ch Reporting)\\r\\n\";\r\n \t\t$xtra .= \"Content-Type: text/html; charset=iso-8859-1\\r\\n\";\r\n \t\tmail('Christoph Ackermann <c.ackermann@fire-pics.ch>',\r\n $subject,\r\n $mess.$message,\r\n $xtra);\r\n\r\n\t\t\terror('', $message);\r\n\t\t}", "title": "" }, { "docid": "bf5f0129f19e5ed18f41518cecffae67", "score": "0.5624661", "text": "public function email_error() //e-mail error\n {\n $data['email'] = 'Invalid E-mail';\n $this->load->view('user/forget_pass', $data);\n $this->load->view('user/footer_user');\n }", "title": "" }, { "docid": "e5a817bb5d70aab58aa4aeecb2b88ca3", "score": "0.5619207", "text": "private function make500()\n\t{\n\t if (!headers_sent())\n\t { # haven't generated any output yet.\n\t\theader('HTTP/1.1 500 Internal Server Error');\n\t\tif (!$this->ajax)\n\t\t{ # not in an ajax page so try and send a pretty error\n\t\t include($this->basepath.'/errors/syserror.php');\n\t\t}\n\t }\n\t}", "title": "" }, { "docid": "f4639893df2f04ec67d778be103fa1e0", "score": "0.56190115", "text": "function EmailPHPErrorHandler($errno, $errmsg, $filename, $linenum, $vars) {\r\n\t// need to get the info out of the repository. It might no be there\r\n\t$email=''; \r\n\t$eoption='0';\r\n\t$updateData=array();\r\n\t$erclist=array();\r\n\tif (!function_exists(get_option)) return false;\r\n\t$updateData=get_option('kpg_ephp_options');\r\n\tif ($updateData==null) return false;\r\n\tif (!array_key_exists('email',$updateData)) return false;\r\n\tif (!array_key_exists('eoption',$updateData)) return false;\r\n\t$eoption=$updateData['eoption'];\r\n\tif ($eoption!=1&&$eoption!=2&&$eoption!=3) return false;\r\n\t$email=$updateData['email'];\r\n\tif (array_key_exists('erclist',$updateData)) $erclist=$updateData['erclist'];\r\n\t// check to see if we are filtering this message\r\n\t// 1 = check errors only\r\n\t// 2 = check errors and warnings\r\n\t// 3 = check all errors and notices\r\n switch ($eoption) {\r\n\t\tcase 1: // this is errors only\r\n\t\t\tif ($errno!=E_USER_ERROR) return false;\r\n\t\t\tbreak;\r\n\t\tcase 2: // this is errors or warnings\r\n\t\t\tif ($errno!=E_USER_ERROR && $errno!=E_USER_WARNING) return false;\r\n\t\t\tbreak;\r\n\t\tcase 3: // this is all errors, warnings nad other stuff\r\n\t\t\t// everything is reported\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\t// unknown error\r\n\t\t\treturn false;\r\n\t\t\tbreak;\r\n }\r\n\t// if we get this far we have a valid error and an email\t\r\n\t$serrno=\"\";\r\n\tswitch ($errno) {\r\n\t\tcase E_ERROR: \r\n\t\t\t$serrno=\"Fatal run-time errors. These indicate errors that can not be recovered from, such as a memory allocation problem. Execution of the script is halted. \";\r\n\t\t\tbreak;\r\n\t\tcase E_WARNING: \r\n\t\t\t$serrno=\"Run-time warnings (non-fatal errors). Execution of the script is not halted. \";\r\n\t\t\tbreak;\r\n\t\tcase E_NOTICE: \r\n\t\t\t$serrno=\"Run-time notices. Indicate that the script encountered something that could indicate an error, but could also happen in the normal course of running a script. \";\r\n\t\t\tbreak;\r\n\t\tdefault;\r\n\t\t\t$serrno=\"Unknown Error type $errno\";\r\n\t}\r\n \r\n\t$msg=\"\r\n\tError message from Wordpress.\r\n\tError type: $serrno\r\n\tError Msg: $errmsg\r\n\tFile name: $filename\r\n\tLine Number: $linenum\r\n\t\r\n\tMessage sent from Email PHP Errors Plugin.\r\n\t\";\r\n\t$headers=\"From: $email\\r\\nReply-To: $email\\r\\n\";\r\n\t$subject=\"Wordpress Error Message \";\r\n\t$headers1=stripslashes($headers);\r\n\tif (strlen($email)>5) {\r\n\t\tmail($email,$subject,$msg,$headers);\r\n\t}\r\n\t// add the data to the arraay\r\n\t$ercs=array();\r\n\t$ercs[0]=date('m/d/Y H:i:s');\r\n\t$ercs[1]=$_SERVER['REQUEST_URI'];\r\n\t$ercs[2]=html_entity_decode($_SERVER['HTTP_REFERER']);\r\n\t$ercs[3]=$_SERVER['HTTP_USER_AGENT'];\r\n\t$ercs[4]=$_SERVER['REMOTE_ADDR'];\r\n\t$ercs[5]=$errno;\r\n\t$ercs[6]=$errmsg;\r\n\t$ercs[7]=$filename;\r\n\t$ercs[8]=$linenum;\r\n\t\r\n\t//add to erclist\r\n\tarray_unshift($erclist,$ercs);\r\n\tfor ($j=0;$j<10;$j++) {\r\n\t\tif (count($erclist)>25) {\r\n\t\t\tarray_pop($erclist);\r\n\t\t}\r\n\t}\r\n\t$updateData['erclist']=$erclist;\r\n\tupdate_option('kpg_ephp_options', $updateData);\r\n\r\n\treturn false;\r\n\r\n}", "title": "" }, { "docid": "9d25f4676663b043a3d97bf9f7d36ac2", "score": "0.5618112", "text": "function emailErrorLogIfNecessary() {\n $abj404dao = ABJ_404_Solution_DataAccess::getInstance();\n \n if (!file_exists($this->getDebugFilePath())) {\n $this->debugMessage(\"No log file found so no errors were found.\");\n return false;\n }\n\n // get the number of the last line with an error message.\n $latestErrorLineFound = $this->getLatestErrorLine();\n \n // if no error was found then we're done.\n if ($latestErrorLineFound['num'] == -1) {\n $this->debugMessage(\"No errors found in the log file.\");\n return false;\n }\n \n // -------------------\n // get/check the last line that was emailed to the admin.\n $sentDateFile = $this->getDebugFilePathSentFile();\n \n if (file_exists($sentDateFile)) {\n $sentLine = absint(ABJ_404_Solution_Functions::readFileContents($sentDateFile));\n } else {\n $sentLine = -1;\n }\n \n // if we already sent the error line then don't send the log file again.\n if ($latestErrorLineFound['num'] <= $sentLine) {\n $this->debugMessage(\"The latest error line from the log file was already emailed. \" . $latestErrorLineFound['num'] . \n ' <= ' . $sentLine);\n return false;\n }\n \n // only email the error file if the latest version of the plugin is installed.\n if (!$abj404dao->latestVersionIsInstalled()) {\n return false;\n }\n \n $this->emailLogFileToDeveloper($latestErrorLineFound['line'], $latestErrorLineFound['total_error_count']);\n\n // update the latest error line emailed to the developer.\n file_put_contents($sentDateFile, $latestErrorLineFound['num']);\n \n return true;\n }", "title": "" }, { "docid": "fdaeba1c4cdafcbb6b133b2dc03327e2", "score": "0.56172603", "text": "static function sendQueuedMails(){\n $xmail=new XMail();\n $xmail->autoAgregate=false;\n $xmail->logActive=false;\n // Renvoie tous les mails en erreur (3 tentatives max)\n $rs=selectQuery('select * from _MLOGSD where sstatus=\"error\" and reex<3');\n while($rs && ($ors=$rs->fetch())){\n $d=self::$xsetld->display(array('oid'=>$ors['KOID'],'tplentry'=>TZR_RETURN_DATA,'selectedfields'=>array('files')));\n $rs2=&cacheSelectQuery('select * from _MLOGS where KOID=\"'.$ors['mlogh'].'\"');\n $ors2=$rs2->fetch();\n $xmail->ClearAllRecipients();\n $xmail->Subject=$ors['subject'];\n $xmail->Body=$ors['body'];\n $xmail->From=$ors2['sender'];\n $mails=explode(',',$ors['mails']);\n foreach($mails as $mail) $xmail->AddAddress($mail);\n if($ors2['html']==1) $xmail->IsHTML(true);\n foreach($d['ofiles']->catalog as $i=>&$file){\n\t$xmail->AddAttachment($file->filename,$file->originalname);\n }\n $ret=$xmail->Send();\n if($ret){\n\tupdateQuery('delete from _MLOGSD where KOID=\"'.$ors['KOID'].'\"');\n\tupdateQuery('update _MLOGS set nberr=nberr-1 where KOID=\"'.$ors['mlogh'].'\"');\n }else{\n\tupdateQuery('update _MLOGSD set reex=reex+1 where KOID=\"'.$ors['KOID'].'\"');\n }\n }\n }", "title": "" }, { "docid": "ab8b9beb40a546de1d1009baf6ac4db2", "score": "0.56106657", "text": "function mail_ToRaters($db_object,$common,$post_var,$user_id,$error_msg)\n\t{\n\t\twhile(list($kk,$vv)=@each($post_var))\n\t\t{\n\t\t$$kk=$vv;\n\t\t}\n\t\t\n\n\t$config=$common->prefix_table(\"config\");\n\t$appraisal_table=$common->prefix_table(\"multirater_appraisal\");\n \t$otherraters_table = $common->prefix_table(\"other_raters\");\n\t$user_table=$common->prefix_table(\"user_table\");\n\t$boss_relate_table = $common->prefix_table(\"boss_relate\");\n\t\n\t\n\t$mysql=\"select masubject,mamessage from $config\";\n\t\n\t$rslt_arr=$db_object->get_a_line($mysql);\n\n\t$masubject=$rslt_arr[\"masubject\"];\n\t$mamessage=$rslt_arr[\"mamessage\"];\n\n\t\n\t$mysql = \"select rater_email from $otherraters_table where rater_email='$email_0'\";\n\n\t$mail_arr = $db_object->get_a_line($mysql);\n\n\n\t\t$to=$mail_arr[\"rater_email\"];\n\n\t\t$mysql = \"select username from $user_table where email='$to'\";\n\t\t$arr = $db_object->get_a_line($mysql);\n\t\t$username = $arr[\"username\"];\n\t\t\n\t\t$mysql=\"select email,username from $user_table where user_id='$user_id'\";\n\t\n\t\t$sender_email=$db_object->get_a_line($mysql);\n\t\t$from=$sender_email[\"email\"];\n\t\t$user = $sender_email[\"username\"];\n\t\t\n\t\t\n\t\t\n\t\t$values[\"username\"]=$username;\n\t\t$values[\"user\"] = $user;\n\t\t$values[\"url\"]=$common->http_path.\"/index.php\";\n\n\t\t$message=$common->direct_replace($db_object,$mamessage,$values);\n\n\t\t//echo \"to $to<br> sub $masubject<br> mess $message<br> from $from<br><br>\";\n\n\t\t$sent=$common->send_mail($to,$masubject,$message,$from);\n\n\n\t\tif($sent)\n\t\t{\n\t\t\n\t\t\techo $error_msg[\"cReplacerejected_done\"];\n\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo $error_msg[\"cMultiraterAppraisalMail_fail\"];\n\t\t}\n\n\t\t\n\t\t\n\t\t\n\n\t$returncontent = $common->direct_replace($db_object,$returncontent,$values);\n\n\t\n\t}", "title": "" }, { "docid": "c42d3ba33fb9de351c7dac1c0207ba5d", "score": "0.55961984", "text": "function send_mail($arr){\r\n $this->CI->load->library('email');\r\n\r\n //clear email vars\r\n $this->CI->email->clear();\r\n \r\n if(isset($arr['message']) && isset($arr['subject']) && isset($arr['to_address'])){\r\n $this->CI->email->from($this->CI->config->item('sys_email'), 'Grow Our Yields');\r\n $this->CI->email->subject($arr['subject']);\r\n $this->CI->email->message($arr['message']);\r\n $this->CI->email->to($arr['to_address']);\r\n \r\n //send message; log errors\r\n if(!$this->CI->email->send()){\r\n //error occurred\r\n log_message('error','Email transmission error: '.$this->CI->email->print_debugger());\r\n return $this->CI->email->print_debugger();\r\n }\r\n } else {\r\n log_message('error','Failed to send message: Message, Subject & To address required for valid email message.');\r\n }\r\n }", "title": "" }, { "docid": "61e5e9a450f76d0ecf6a32db02e4915b", "score": "0.55713", "text": "public function send(){\n\t\treturn mail($this->to, $this->subject, $this->body, $this->headers);\n\t}", "title": "" }, { "docid": "9ba7cf96228e6229e07e32277c99c291", "score": "0.5565516", "text": "function sendmail($email,$vkey,$user_type){\r\n\r\n\t\t\t\t\t\t\t//Create an instance; passing `true` enables exceptions\r\n\t\t\t\t\t\t\t$mail = new PHPMailer(true);\r\n\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t //Server settings\r\n\t\t\t\t\t\t\t //$mail->SMTPDebug = SMTP::DEBUG_SERVER; //Enable verbose debug output\r\n\t\t\t\t\t\t\t $mail->isSMTP(); //Send using SMTP\r\n\t\t\t\t\t\t\t $mail->Host = 'smtp.gmail.com'; //Set the SMTP server to send through\r\n\t\t\t\t\t\t\t $mail->SMTPAuth = true; //Enable SMTP authentication\r\n\t\t\t\t\t\t\t $mail->Username = 'srojan19@tbc.edu.np'; //SMTP username\r\n\t\t\t\t\t\t\t $mail->Password = 'bsc@3310'; //SMTP password\r\n\t\t\t\t\t\t\t $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; //Enable implicit TLS encryption\r\n\t\t\t\t\t\t\t $mail->Port = 465; //TCP port to connect to; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`\r\n\r\n\t\t\t\t\t\t\t //Recipients\r\n\t\t\t\t\t\t\t $mail->setFrom('Ceckhuddersfaxcommunal@gmail.com', 'Mailer');\r\n\t\t\t\t\t\t\t $mail->addAddress($email); //Add a recipient\r\n\r\n\t\t\t\t\t\t\t //Content\r\n\t\t\t\t\t\t\t $mail->isHTML(true); //Set email format to HTML\r\n\t\t\t\t\t\t\t $mail->Subject = 'CleckhHuddersFax Registration Verification';\r\n\t\t\t\t\t\t\t $mail->Body = \"<b>Please verify your cleckhuddersfax E-Mart account by clicking this link </b><a href = 'http://localhost/E-mart-main/Project-web/verify_user.php?vkey=$vkey&user=$user_type'>Register Account</a>\r\n\t\t\t\t\t\t\t \t<p>For you Trader needs we have provided you with an oracle apex account to make your business easy</p><br/>\r\n\t\t\t\t\t\t\t \t<p>So, in order to login to your apex account use these credentials</p>\r\n\t\t\t\t\t\t\t \t<ol>\r\n\t\t\t\t\t\t\t \t\t<li>Your email adress or username</li>\r\n\t\t\t\t\t\t\t \t\t<li>Your website password</li>\r\n\t\t\t\t\t\t\t \t</ol>\r\n\t\t\t\t\t\t\t \t\";\r\n\r\n\t\t\t\t\t\t\t $mail->send();\r\n\t\t\t\t\t\t\t echo 'Message has been sent';\r\n\t\t\t\t\t\t\t} catch (Exception $e) {\r\n\t\t\t\t\t\t\t echo \"Message could not be sent. Mailer Error: {$mail->ErrorInfo}\";\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "f23f67a537b647bbc772c1a2a760b187", "score": "0.55619293", "text": "function email(){\r\n\t\t\t$this->mime = new Mail_mime($this->crlf);\r\n\t\t\tif (PEAR::isError($this->mime)) { pp($this->mime->getMessage(),1);}\r\n\r\n\t}", "title": "" }, { "docid": "9f0a54971566ceebc0df8e47602d7a14", "score": "0.5561196", "text": "public function testProcessReportsApiError() {\n $orderId = $this->placeOrder();\n $order = new Yourdelivery_Model_Order($orderId);\n $order->setStatus(Yourdelivery_Model_Order_Abstract::NOTAFFIRMED, new Yourdelivery_Model_Order_StatusMessage(Yourdelivery_Model_Order_StatusMessage::COMMENT,\"testProcessReportsApi\"));\n\n $config = Zend_Registry::get('configuration');\n\n $client = new MockClient($this, $config);\n $client->type = 'order';\n $client->orderId = $orderId;\n $client->state = 'RING_TO';\n $retarus = new Yourdelivery_Sender_Fax_Retarus('api');\n $retarus->setMockObject($client);\n\n $file = APPLICATION_PATH . '/../tests/data/rechnung1.pdf';\n $retarus->send(\"\", $file, 'order', $orderId);\n\n $retarus->processReports();\n\n $order = new Yourdelivery_Model_Order($orderId);\n $this->assertEquals($order->getStatus(), Yourdelivery_Model_Order::DELIVERERROR);\n }", "title": "" }, { "docid": "34fad44da6128092f8f5f24fa9f4e250", "score": "0.55575275", "text": "function pilau_wp_mail_failed( $error ) {\n\techo '<pre>'; print_r( $error ); echo '</pre>'; exit;\n}", "title": "" }, { "docid": "805b199e4ec4f6a3caa0015ece4fc914", "score": "0.5553957", "text": "function send_mail($payment_id) {\n\t\ttry {\n\t\t $base = new Database();\n\t\t $connection = $base->connect(); \n\t\t $connection->exec(\"set names utf8\");\n\t\t \n\t\t $query = $connection->prepare(\"SELECT id, tour, dep_day, dep_month, dep_year, full_name, email, phone, paid, num, \t\t\t\t\t\t\t\t\t payment_id \n\t\t \t\t\t\t\t\t\t FROM transactions\n\t\t WHERE payment_id = :payment_id\n\t\t \");\n\t\t \n\t\t $query->bindParam(':payment_id', $payment_id, PDO::PARAM_STR);\n\t\t $rezultat = $query->execute();\n\t\t $tour = current($query->fetchAll());\n\t\t $datum = $tour['dep_month'] . ' ' . $tour['dep_day'] . ', ' . $tour['dep_year'];\n\n\t //$email_to = \"violetvision2015@gmail.com\";\n\t $email_to = \"info@infobosnia.com\";\n\t\t $email_subject = \"Rezervacija ture \";\n\t $email_message = \"Postovani, detalji ture u nastavku:\\r\\n\\r\\n\";\n\t $email_message .= \"ID rezervacije: \" . $tour['id'] \t\t\t \t\t . \"\\r\\n\";\n\t $email_message .= \"Ime ture je: \" . $tour['tour'] \t\t\t \t\t . \"\\r\\n\";\n\t $email_message .= \"Broj osoba: \" . $tour['num'] \t\t\t \t\t . \"\\r\\n\";\n\t $email_message .= \"Ime i prezime: \" . $tour['full_name'] \t\t \t\t . \"\\r\\n\";\n\t $email_message .= \"Datum ture: \" . $datum \t\t . \"\\r\\n\";\n\t $email_message .= \"E-mail: \" . $tour['email'] \t\t\t \t\t . \"\\r\\n\";\n\t $email_message .= \"Telefon: \" . $tour['phone'] \t\t\t \t \t . \"\\r\\n\";\n\t $email_message .= \"Platio: \" .($tour['paid'] == 1) ? \"DA\" : \"NE\" . \"\\r\\n\";\n\t \n\t if( $tour['paid'] )\n\t \t$email_message .= \"Payment ID: \" . $tour['payment_id'] . \"\\r\\n\";\n\n\t //echo \"<script type='text/javascript'>alert('usao');</script>\";\n\t $headers = 'Od: ' . $tour['email'] . \"\\r\\n\" . 'Reply-To: ' . $tour['email'] . \"\\r\\n\";\n\t $headers = $headers . 'X-Mailer: PHP/' . phpversion();\n\n\t @mail($email_to, $email_subject, $email_message, $headers); \n\n\t\t if (!$rezultat) {\n\t\t $greska = $query->errorInfo();\n\t\t print \"SQL greska: \".$greska[2];\n\t\t exit();\n\t\t }\n\t\t} catch(PDOException $e) {\n\t\t echo $e->getMessage();\n\t\t var_dump($e);\n\t\t} finally {\n\t\t $connection = null;\n\t\t}\n\t\treturn $tour['id'];\n }", "title": "" }, { "docid": "c77f0c21f46ea13fd9f1605db1fd2815", "score": "0.5551988", "text": "function doHandleSendError($mail, $sendout, $sendoutKey = false) {\n $this->_errors['sendout_'.$sendoutKey] = $mail->getError();\n }", "title": "" }, { "docid": "b46e890068156b5c76307db4b99139cb", "score": "0.55459595", "text": "public function report(Throwable $exception)\n {\n if (! in_array(get_class($exception), $this->dontReport)) {\n $this->sendEmail($exception);\n }\n\n return parent::report($exception);\n }", "title": "" }, { "docid": "f212251f5c4f5f098739dae804cdad77", "score": "0.5545746", "text": "function sendMailing()\n {\n\t\tif ((count($this->emailUsers)>0) && $this->emailSubject && $this->emailBody){\n\t\t\tif ($this->addTime){\n\t\t\t\t//append timestamp logic to the email \n\t\t\t\t$additionalString = \"\\n\"; \n\t\t\t\t$additionalString .=\"This emai was sent on \".date('l jS Y', $this->timestamp);\n\t\t\t\t$this->emailBody .= $additionalString;\n\t\t\t}\n\n\t\t\tforeach($this->emailUsers as $emailUser){\n if($this->useHeaders){\n mail($emailUser, $this->emailSubject, $this->emailBody, $this->headers);\n }\n else {\n mail($emailUser, $this->emailSubject, $this->emailBody);\n }\n }\n\t\t}\n\n\t}", "title": "" }, { "docid": "e4b57aa25c989ea710ee3a115de3f9b2", "score": "0.5542458", "text": "function gv_error_handler($e_type, $e_message, $e_file, $e_line)\n\t{\n\t\t$msg\t=\t'Errors occured while opening a page:<br>';\n\t\t$msg\t.=\t'Type of Error: ' . $e_type . '<br>';\n\t\t$msg\t.=\t'Message about the error:<br>';\n\t\t$msg\t.=\t$e_message . '<br>';\n\t\t$msg\t.=\t'Name of the file in which the error occurred in:<br>';\n\t\t$msg\t.=\t'The error occurred on this line of the file: ' . $e_number . '<br>';\n\t\t$msg\t=\twordwrap($msg, 75);\n\t\t\n\t\tswitch($error_type)\n\t\t{\n\t\t\tcase E_ERROR:\n\t\t\t mail('error_report@genieverse.com', 'Fatal Error encountered on Genieverse - ' . date('l F d, Y. g:i A'), $msg);\n\t\t\t die();\n\t\t\t break;\n\t\t\t\n\t\t\tcase E_WARNING:\n\t\t\t mail('error_report@genieverse.com', 'Warning generated on Genieverse - ' . date('l F d, Y. g:i A'), $msg);\n\t\t\t break;\n\t\t}\n\t}", "title": "" }, { "docid": "b9539dfeec94cf7384b958ca3149d73c", "score": "0.55241644", "text": "function handler($error_type,\n$error_message,\n$error_file,\n$error_line) {\nswitch($error_type) {\n//fatal error\ncase E_ERROR:\n$to = \"Administrator <admin@yourdomain.com>\";\n$subject = \"Custom Error Handling\";\n$body = \"<html>\";\n$body .= \"<head>\";\n$body .= \"<title>Website error</title>\";\n$body .= \"</head>\";\n$body .= \"<body>\";\n$body .= \"<h1>Fatal Error</h1>\";\n$body .= \"Error received was a <b>\" . $error_type .\n\"</b> error.<br>\";\n$body .= \"The page that generated the error was: <b>\" .\n$error_file . \"</b>\";\n$body .= \" and was generated on line: <b>\" . $error_line .\n\"</b><br>\";\n$body .= \"The generated error message was:\" . $error_message;\n$body .= \"</body>\";\n$body .= \"</html>\";\n$headers = \"MIME-Version: 1.0\\r\\n\";\n$headers .= \"Content-type: text/html; charset=iso-8859-1\\r\\n\";\n$headers .= \"From: Apache Error <host@yourdomain.com>\\r\\n\";\n$headers .= \"Cc: webmaster@yourdomain.com\\r\\n\";\nmail($to, $subject, $body, $headers);\ndie(); //kill the script\nbreak;\n//warnings\ncase E_WARNING:\n$to = \"Administrator <admin@yourdomain.com>\";\n$subject = \"Custom Error Handling\";\n$body = \"<html>\";\n$body .= \"<head>\";\n$body .= \"<title></title>\";\n$body .= \"</head>\";\n$body .= \"<body>\";\n$body .= \"<h1>Warning</h1>\";\n$body .= \"Error received was a <b>\" . $error_type .\n\"</b> error.<br>\";\n$body .= \"The page that generated the error was: <b>\" .\n$error_file . \"</b>\";\n$body .= \" and was generated on line: <b>\" . $error_line .\n\"</b><br>\";\n$body .= \"The generated error message was:\" . $error_message;\n$body .= \"</body>\";\n$body .= \"</html>\";\n$headers = \"MIME-Version: 1.0\\r\\n”\";\n$headers .= \"Content-type: text/html; charset=iso-8859-1\\r\\n”\";\n$headers .= \"From: Apache Error <host@yourdomain.com>\\r\\n\";\n$headers .= \"Cc: webmaster@yourdomain.com\\r\\n\";\nmail($to, $subject, $body, $headers);\nbreak;\n//script will continue\n//notices\ncase E_NOTICE:\n//don’t show notice errors\nbreak;\n}\n}", "title": "" }, { "docid": "78511fbf04bed1d54f6c4b21cb9dd099", "score": "0.5506134", "text": "public function sendMail()\n {\n wp_mail('test@example.com', 'WP Staging cloning process has been finished', 'body sample text');\n }", "title": "" }, { "docid": "804bc8bf1592ba315f0c9fd51fc67aaa", "score": "0.55042773", "text": "function errorReport($error)\n{\n Log::error($error);\n}", "title": "" }, { "docid": "8210311310eb6c67c1e9490ea093871c", "score": "0.54980326", "text": "function mailchimp_email_error($message) {\n\n // If there is an email for a technical admin defined in config.php, then email that person.\n // The contact for the support or commerce email set in the site settings, may not be technical,\n // so it may not be appropriate to email them.\n if (defined('ADMIN_EMAIL_ADDRESS')) {\n $to = ADMIN_EMAIL_ADDRESS;\n\n } else if (ECOMMERCE_EMAIL_ADDRESS) {\n $to = ECOMMERCE_EMAIL_ADDRESS;\n\n } else {\n $to = EMAIL_ADDRESS;\n }\n\n email(array(\n 'to' => $to,\n 'from_name' => ORGANIZATION_NAME,\n 'from_email_address' => EMAIL_ADDRESS,\n 'subject' => HOSTNAME_SETTING . ': MailChimp Error',\n 'body' => $message));\n}", "title": "" }, { "docid": "110d4b82d4c2d2a01abb347e973024d3", "score": "0.54978037", "text": "private function generateErrorReport(): string{\n \n if(empty($this->dirList)){\n echo \"ERROR generateErrorReport function has no data \\n\\n\".$f; \n return false;\n }\n \n $errorList = \"\";\n \n if($this->errors){\n $errorList = '<div class=\"card\" id=\"errors\">\n <div class=\"header\">\n <h4 class=\"title\">Errors</h4> \n </div>\n <div class=\"content table-responsive table-full-width\" >';\n $errorList .= \"<table class=\\\"table table-hover table-striped\\\" id=\\\"errorsDT\\\">\\n\";\n $errorList .= \"<thead>\\n\";\n $errorList .= \"<tr><th><b>Error description</b></th><th><b>Filename/Error information</b></th></tr>\\n\";\n $errorList .= \"</thead>\\n\";\n $errorList .= \"<tbody>\\n\";\n \n if(!empty($this->errors['blackList']) && count($this->errors['blackList']) > 0){\n $errorList .= \"<tr>\\n\";\n $errorList .= \"<td>\\n\";\n $errorList .= \"Black listed file(s):\\n\";\n $errorList .= \"</td>\\n\";\n $errorList .= \"<td>\\n\";\n foreach($this->errors['blackList'] as $f){\n $errorList .= $f;\n } \n $errorList .= \"</td>\\n\";\n $errorList .= \"</tr>\\n\"; \n }\n \n\n if(!empty($this->errors['tmpDIR']) && count($this->errors['tmpDIR']) > 0){\n foreach($this->errors['tmpDIR'] as $f){\n $errorList .= \"<tr>\\n\";\n $errorList .= \"<td>ERROR TMP DIR writing error </td>\\n\";\n $errorList .= \"<td>{$f}</td>\\n\";\n $errorList .= \"</tr>\\n\";\n }\n }\n \n if(!empty($this->errors['GENFILE']) && count($this->errors['GENFILE']) > 0){\n foreach($this->errors['GENFILE'] as $f){\n $errorList .= \"<tr>\\n\";\n $errorList .= \"<td>ERROR during the FILE LIST Generating</td>\\n\";\n $errorList .= \"<td>{$f}</td>\\n\";\n $errorList .= \"</tr>\\n\";\n }\n }\n \n if(!empty($this->errors['ZipFileError']) && count($this->errors['ZipFileError']) > 0){\n foreach($this->errors['ZipFileError'] as $f){\n $errorList .= \"<tr>\\n\";\n $errorList .= \"<td>ERROR Password protected zip file(s) or wrong zip file(s): </td>\\n\";\n $errorList .= \"<td>{$f}</td>\\n\";\n $errorList .= \"</tr>\\n\";\n }\n }\n \n //wrong MIME error MSG\n if(!empty($this->errors['MIME']) && count($this->errors['MIME']) > 0){\n foreach($this->errors['MIME'] as $value){\n $errorList .= \"<tr>\\n\";\n $errorList .= \"<td>ERROR WRONG MIME TYPES </td>\\n\";\n $errorList .= \"<td>FileName: {$value['filename']}<br> Extension: {$value['extension']} <br> MIME type: {$value['type']} </td>\\n\";\n $errorList .= \"</tr>\\n\";\n }\n }\n \n if(!empty($this->errors['DUPLICATES']) && count($this->errors['DUPLICATES']) > 0){\n foreach($this->errors['DUPLICATES'] as $v){\n $errorList .= \"<tr>\\n\";\n $errorList .= \"<td>ERROR File Duplication:</td>\\n\";\n $errorList .= \"<td>\";\n $errorList .= \"<ul>\";\n foreach($v as $val){\n $errorList .= \"<li>\".$val.\"</li>\";\n } \n $errorList .= \"</ul>\";\n $errorList .= \"</td>\";\n $errorList .= \"</tr>\\n\";\n }\n }\n\n if(!empty($this->errors['WRONGFILES']) && count($this->errors['WRONGFILES']) > 0){\n foreach($this->errors['WRONGFILES'] as $f){\n $errorList .= \"<tr>\\n\";\n $errorList .= \"<td>ERROR Not valid file name(s):</td>\\n\";\n $errorList .= \"<td>{$f}</td>\\n\";\n $errorList .= \"</tr>\\n\";\n }\n }\n \n if(!empty($this->errors['xlsxPW']) && count($this->errors['xlsxPW']) > 0){\n foreach($this->errors['xlsxPW'] as $f){\n $errorList .= \"<tr>\\n\";\n $errorList .= \"<td>ERROR Password proected XLSX/DOCX file(s):</td>\\n\";\n $errorList .= \"<td>{$f}</td>\\n\";\n $errorList .= \"</tr>\\n\";\n }\n }\n \n if(!empty($this->errors['PDFError']) && count($this->errors['PDFError']) > 0){\n foreach($this->errors['PDFError'] as $f){\n $errorList .= \"<tr>\\n\";\n $errorList .= \"<td>ERROR in the PDF file(s):</td>\\n\";\n $errorList .= \"<td>{$f}</td>\\n\";\n $errorList .= \"</tr>\\n\";\n }\n }\n \n if(!empty($this->errors['bagITError']) && count($this->errors['bagITError']) > 0){\n \n foreach($this->errors['bagITError'] as $k => $v){ \n $errorList .= \"<tr>\\n\";\n $errorList .= \"<td>ERROR BagIT file validation Error: </td>\\n\";\n $errorList .= \"<td>BagIT filename: {$k} <br><br>\";\n $errorList .= \"Errors: <br>\";\n foreach($v as $val){\n if(isset($val[0])){\n $errorList .= \"Filename:{$val[0]} <br> \";\n }\n if(isset($val[1])){\n $errorList .= \"Error description:{$val[1]} <br> \";\n } \n }\n $errorList .= \"</td>\\n\"; \n $errorList .= \"</tr>\\n\";\n }\n }\n \n $errorList .= \"</tbody>\\n\";\n $errorList .= \"</table>\\n\\n\";\n $errorList .= \"</div>\\n\\n\";\n $errorList .= \"</div>\\n\\n\"; \n }\n \n return $errorList;\n }", "title": "" }, { "docid": "d99fcaf19d4044ccc34bb9b37d2b074a", "score": "0.54882276", "text": "function sherpaConnectMail($user_name,$email,$idealMovingDate,$noOfBedroom,$budget,$query_submmited)\n { \n\t\t$msg= '<html>\n <head></head>\n <body style=\"color: black;\">\n <p>The following app user has requested Sherpa consultation:<br></p>\n <p> Name: '.$user_name.'</p>\n <p> Email address: '.$email.'</p>\n <p> Moving Date: '.$idealMovingDate.'</p>\n\t\t\t\t <p> Number of Bedrooms: '.$noOfBedroom.'</p> \n <p> Budget: '.$budget.'</p>\n <p> Query submitted on: '.$query_submmited.'</p><br><br>\n <p>Cheers,<br>UrbanCo Tech Team<br>\n </p> \n <body>\n </html> '; \n \t\n \n //echo $msg;exit();\n // include the class name \n $mail = new PHPMailer(true); // create a new object\n $mail->IsSMTP(); \n try{\n\t $mail->IsHTML(true); \n\t $mail->SMTPDebug = 1; \n\t $mail->Host = \"smtp.googlemail.com\"; //Hostname of the mail server ssl://smtp.googlemail.com\n\t $mail->Port = \"587\"; //Port of the SMTP like to be 25, 80, 465 or 587 ////465\n\t $mail->SMTPAuth = true; //Whether to use SMTP authentication\n\t $mail->Username = \"urbancotech@gmail.com\"; //Username for SMTP authentication any valid email created in your domain bamgude.sachin@gmail.com\n\t $mail->Password = \"TheUrbanCollective\"; //Password for SMTP authentication \n\t $mail->SMTPSecure = 'tls'; \n\t $mail->SetFrom(\"urbancotech@gmail.com\",'TheUrbanCollective');\n\t // $mail->SetFrom(\"bamgude.sachin@gmail.com\");\n\t $mail->Subject = \"Sherpa request via mobile app\";\n\t \n\t $mail->Body = $msg; \n\t \n\t $mail->AddAddress('mayank.mathur@theurbancollective.io');//To\n\t //$mail->AddBCC('mayank.mathur@theurbancollective.io');//whom to send mail \t \n\t // $mail->AddCC(\"\");\n\t $send = $mail->Send(); //Send the mails\n\t //echo $mail->ErrorInfo;exit();\n\t //print_r($mail->ErrorInfo);exit();\n\t if($send){\n\t return true;\n\t }else{\n\t return false;\n\t \n\t }\n } catch (phpmailerException $e) {\n\t\t\t\t\t\t// $this->response(array('ResponseCode' => 0, 'ResponseMessage' => 'FAILURE', 'Comments' => 'MAIL SENDING FAIL','Result'=>$send), 400);\n \t\t\treturn false;\n\t\t\t\t\t\n\t\t\t} catch (Exception $e) {\n\t\t\t \t// $this->response(array('ResponseCode' => 0, 'ResponseMessage' => 'FAILURE', 'Comments' => 'MAIL SENDING FAIL','Result'=>$send), 400);\n\t\t\t \treturn false;\n\t\t\t}\n }", "title": "" }, { "docid": "03a6ed9fa9ffa731e7dfbda48eb79ee0", "score": "0.5487684", "text": "private function __mailonmissed10()\n {\n $name = 'Mr. A. McDonald';\n $subject = 'Operation Team Has Missed 10 Consecutive Race';\n $email = 'boz_m@hotmail.com';\n $message = 'Dear Mr. McDonald,\n​\n ​This is an automated notification generated by the system.\n ​\n ​I want to let you know that the operation team has missed 10 consecutive race as of now. This could be a false alarm. Operation team will follow-up this ticket to explain why they have missed 10 race.\n ​\n ​If you have any question, please let us know by replying to this email.\n ​\n ​We apologize for this inconvenience, and thank you for your cooperation.\n ​\n\n ​';\n //$result = $this->__osticket($name, $email, $subject, $message);\n return;\n }", "title": "" }, { "docid": "279d4bf264b0530c6ef0e5330926a22c", "score": "0.5480695", "text": "public function checkTheMail(){\n echo \"We have called the checkTheMail\" . \" <br>\";\n // Select all the daily notifications\n $notifications = $this->selectDailyEvents();\n \n foreach($notifications as $individualEvents){\n echo(\"Title: \".$individualEvents['title']);\n echo(\"Notes: \".$individualEvents['notes']);\n $userFriendlyDateTime = $individualEvents['eventDate'];\n echo(\"Date: \".date('m/d/Y h:i a', strtotime($userFriendlyDateTime)));\n echo(\"Email: \".$individualEvents['username'].\"\\n\");\n $message = '<p style=\"font-size: 16pt;\">'. '<b>Title:</b> '.$individualEvents['title'].' Event</p>'. '<p style=\"font-style: italic; font-size: 10pt;\">(Tip: Hover over time below to add to your calendar)</p>'. '<p><b>Date and Time:</b> '. \n date('m/d/Y h:i a', strtotime($individualEvents['eventDate'])).'</p><p><b>Notes for Event:</b> '.$individualEvents['notes'].'</p>';\n $this->sendEmail($individualEvents['username'], $message);\n\n /* $message = \"<p><b>Title:</b> \".$individualEvents['title'].\" Event</p><p>Date and Time\".$individualEvents['eventDate'].\"</p><p><b>Notes for Event:</b> \".$individualEvents['notes'].\"</p>\";\n $this->sendEmail($individualEvents['username'], $message);*/\n \n }\n }", "title": "" }, { "docid": "3671f2a924df1c128ff568547527ed93", "score": "0.5472422", "text": "function send_bug_report($reportdate,$bug_descipt,$other_related,$reg_related,$user_related,$sch_related,$grades_related,$grades_misc_related){\n\tglobal $conn;\n\n\t$message=\"<html><head><title>Bug Report \".$reportdate.\"</title></head><body>\";\n\t$message.=\"Bug Description : <p>\";\n\t$message.= $bug_descipt.\"</p><br/>\";\n\t\n\tif($other_related==1){\n\t\t$reg_related=1;\n\t\t$user_related=1;\n\t\t$sch_related=1;\n\t\t$message.= \"Days : <br/>\";\n\t\t$message.= \"<table cellspacing='4' cellpadding='4' border='1' align='center'>\";\n\t\t$message.= \"<tr><td>ID </td><td> Title </td><td> On/Off </td><td> Num of Schedules </td></tr>\";\n\t\t$q = \"SELECT * FROM days \";\n\t\t$result = mysql_query($q,$conn);\n\t\twhile($row=mysql_fetch_array($result)){\n\t\t\t$day= $row['id']-1;\n\t\t\t$inquery = \"SELECT * FROM schedules WHERE day='\".$day.\"' \";\n\t\t\t$inresult = mysql_query($inquery,$conn);\n\t\t\t$numofsch=mysql_num_rows($inresult);\n\t\t\t\n\t\t\t$message.= \"<tr><td>\".$row['id'].\" </td><td> \".$row['title'].\" </td><td> \".$row['onoff'].\" </td><td> \".$numofsch.\"</td></tr>\";\n\t\t}\n\t\t$message.= \"</table><br/><br/>\";\n\t}\n\t\n\tif($reg_related==1){\n\t\t$user_related=1;\n\t\t$sch_related=1;\n\t\t$message.= \"Student Slots : <br/>\";\n\t\t$message.= \"<table cellspacing='4' cellpadding='4' border='1' align='center'>\";\n\t\t$message.= \"<tr><td>ID </td><td> Username </td><td> Sch_Code </td><td> GroupID</td></tr>\";\n\t\t$q = \"SELECT * FROM studentslots \";\n\t\t$result = mysql_query($q,$conn);\n\t\twhile($row=mysql_fetch_array($result)){\n\t\t\t$inquery = \"SELECT * FROM users WHERE id='\".$row['user_id'].\"' \";\n\t\t\t$inresult = mysql_query($inquery,$conn);\n\t\t\t$inrow=mysql_fetch_array($inresult);\n\t\t\t\n\t\t\t$message.= \"<tr><td>\".$row['id'].\" </td><td> \".$inrow['username'].\" </td><td> \".$row['sch_date_id'].\" </td><td> \".$row['gid'].\"</td></tr>\";\n\t\t}\n\t\t$message.= \"</table><br/><br/>\";\n\t}\n\t\n\tif($user_related == 1){\n\t\t$message.= \"Users : <br/>\";\n\t\t$message.= \"<table cellspacing='4' cellpadding='4' border='1' align='center'>\";\n\t\t$message.= \"<tr><td>Username </td><td> AEM </td><td> Activated </td><td> Type </td><td> Last Name</td></tr>\";\n\t\t$q = \"SELECT username,aem,activated,type,last_name FROM users \";\n\t\t$result = mysql_query($q,$conn);\n\t\twhile($row=mysql_fetch_array($result)){\n\t\t\t$message.= \"<tr><td>\".$row['username'].\" </td><td> \".$row['aem'].\" </td><td> \".$row['activated'].\" </td><td> \".$row['type'].\" </td><td> \".$row['last_name'].\"</td></tr>\";\n\t\t}\n\t\t$message.= \"</table><br/><br/>\";\n\t}\n\t\n\tif($sch_related == 1){\n\t\t$message.= \"Schedules : <br/>\";\n\t\t$q = \"SELECT * FROM schedules\";\n\t\t$result = mysql_query($q,$conn);\n\t\twhile($row=mysql_fetch_array($result)){\n\t\t\t$message.= \"<table cellspacing='4' cellpadding='4' border='1' align='center'>\";\n\t\t\t$message.= \"<tr><td>\".$row['title'].\"</td></tr>\t\t<tr><td>ID: \".$row['id'].\"</td><td>\tGroupID: \".$row['gid'].\"</td><td> Day: \".$row['day'].\"</td></tr>\";\n\t\t\t$message.= \"<tr><td>Made at: \".$row['start_date'].\"</td><td> Deadline: \".$row['fin_date'].\"</td><td> On/Off: \".$row['onoff'].\"</td></tr>\";\n\t\t\t$message.= \"<tr><td>Starts at: \".$row['start_hour'].\":\".$row['start_minute'].\"</td><td> Ends at: \".$row['fin_hour'].\":\".$row['fin_minute'].\"</td><td> With step: \".$row['minutes'].\":\".$row['seconds'].\"</td></tr>\";\n\t\t\tif(isset($row['en_date'])){\n\t\t\t\t$message.= \"<tr><td>Auto enable date: \".$row['en_date'].\"</td><td>hour:\".$row['en_hour'].\"</td></tr>\";\n\t\t\t}else{\n\t\t\t\t$message.= \"<tr><td>No auto enable</td></tr>\";\n\t\t\t}\n\t\t\tif(isset($row['ar_start'])){\n\t\t\t\t$message.= \"<tr><td>Auto reccuring day: \".$row['ar_start'].\"</td><td>Untill:\".$row['ar_fin'].\"</td></tr>\";\n\t\t\t}else{\n\t\t\t\t$message.= \"<tr><td>No auto reccuring</td></tr>\";\n\t\t\t}\n\t\t\t$message.= \"</table><br/>\";\n\t\t}\n\t}\n\t\n\tif($grades_related == 1){\n\t\t$message.= \"Grades : <br/>\";\n\t\t$message.= \"<table cellspacing='4' cellpadding='4' border='1' align='center'>\";\n\t\t$message.= \"<tr><td>lab id </td><td> user id </td><td> class id </td><td> grade </td><td> updated time</td><td> lock grade</td><td> id</td></tr>\";\n\t\t$q = \"SELECT * FROM igrades \";\n\t\t$result = mysql_query($q,$conn);\n\t\twhile($row=mysql_fetch_array($result)){\n\t\t\t$message.= \"<tr><td>\".$row['lab_id'].\" </td><td> \".$row['user_id'].\" </td><td> \".$row['class_id'].\" </td><td> \".$row['grade'].\" </td><td> \".$row['update_time'].\"</td><td> \".$row['lock_grade'].\"</td><td> \".$row['id'].\"</td></tr>\";\n\t\t}\n\t\t$message.= \"</table><br/><br/>\";\n\t}\n\t\n\tif($grades_misc_related == 1){\n\t\t$message.= \"Classes : <br/>\";\n\t\t$message.= \"<table cellspacing='4' cellpadding='4' border='1' align='center'>\";\n\t\t$message.= \"<tr><td>class name</td><td>id </td></tr>\";\n\t\t$q = \"SELECT * FROM iclasses \";\n\t\t$result = mysql_query($q,$conn);\n\t\twhile($row=mysql_fetch_array($result)){\n\t\t\t$message.= \"<tr><td>\".$row['name'].\" </td><td> \".$row['id'].\" </td></tr>\";\n\t\t}\n\t\t$message.= \"</table><br/><br/>\";\n\t\t\n\t\t$message.= \"Labs : <br/>\";\n\t\t$message.= \"<table cellspacing='4' cellpadding='4' border='1' align='center'>\";\n\t\t$message.= \"<tr><td>lab name</td><td>class id</td><td>id</td><td>lock</td><td>lock date</td><td>lock hour</td><td>lock minutes</td><td>multiplier</td></tr>\";\n\t\t$q = \"SELECT * FROM ilabs \";\n\t\t$result = mysql_query($q,$conn);\n\t\twhile($row=mysql_fetch_array($result)){\n\t\t\t$message.= \"<tr><td>\".$row['name'].\" </td><td>\".$row['class_id'].\" </td><td> \".$row['id'].\" </td><td> \".$row['lock'].\" </td><td> \".$row['lock_date'].\" </td><td> \".$row['lock_hour'].\" </td><td> \".$row['lock_minutes'].\" </td><td> \".$row['multiplier'].\" </td></tr>\";\n\t\t}\n\t\t$message.= \"</table><br/><br/>\";\n\t}\n\t\n\t$message.=\"</body></html>\";\n\tbugreport($message,$reportdate);\n}", "title": "" }, { "docid": "5648ca2276407bc66742b3eecd776df7", "score": "0.5471133", "text": "public function sendMail()\n {\n }", "title": "" }, { "docid": "27679b959ab59373aa380f74ff93d752", "score": "0.54630923", "text": "public function sendServiceEmail(){\n if($this->request->email && $this->request->guestServiceEmail == ''){\n $email = $this->request->email;\n $gdName = $this->request->gdName;\n $this->repository->acknowledgementMail($email);\n $this->repository->mailToRc($this->request->rcMailIds, $gdName);\n }\n else if($this->request->guestServiceEmail){\n $this->repository->sendServiceReportPdf();\n }\n }", "title": "" }, { "docid": "3b909ff44d0fcd7a0228f2c4daba00c1", "score": "0.54601496", "text": "protected function _send_mail ( $info, $date ) {\n // USING PHPMAILER\n // require_once substr(FCPATH, 0, -8) . \"mail_send.php\";\n // \n // $send_mail = new PHPMailer();\n // $send_mail->IsHTML();\n // $send_mail->IsMail();\n // $send_mail->From = 'noreplay@elddenmedio.site';\n // $send_mail->FromName = 'Eldd-System';\n // $send_mail->AddAddress('jorge.malagon@transidmedia.com');\n // $send_mail->Subject = 'Quotation';\n // $send_mail->Body = $this->load->view('mails/send_quotation', '', TRUE);\n // $mailresult = $send_mail->Send();\n // $mailconversation = nl2br(htmlspecialchars(ob_get_clean())); //captures the output of PHPMailer and htmlizes it\n // if ( !$mailresult ) {\n // echo 'FAIL: ' . $send_mail->ErrorInfo . '<br />' . $mailconversation;\n // log_message('error', 'Error Sending mail to : ' . $info['email'] . ' with quotation : ');\n // } else {\n // echo $mailconversation;\n // log_message('info', 'Sended maikl to ' . $info['email'] . ' with quotation : ');\n // }\n //exit;\n \n \n $file = SAVE_PDF . '/' . $date . '/' . $info['unique'] . '_' . strtoupper($info['rfc_name']) . '_' . strtoupper(url_title($info['project'], '_', TRUE)) . '.pdf';\n $content = file_get_contents( $file);\n $content = chunk_split(base64_encode($content));\n $uid = md5(uniqid(time()));\n $name = basename($file);\n\n $from_name = 'Sienity';\n $from_mail = 'noreplay@elddenmedio.site';\n $replyto = 'noreplay@elddenmedio.site';\n $bcc = 'j_orgemp@hotmail.com';\n $mailto = $info['email'];\n $message = $this->load->view('mails/quotation_mail', $info, TRUE);//'<html><body>Quotation</body></html>';//'mensaje de cuerpo del mail';\n $filename = $info['unique'] . '_' . strtoupper($info['rfc_name']) . '_' . strtoupper(url_title($info['project'], '_', TRUE)) . '.pdf';\n $subject = 'Sienity - Quotation';\n\n // header\n $header = \"From: \".$from_name.\" <\".$from_mail.\">\\r\\n\";\n $header .= \"Reply-To: \".$replyto.\"\\r\\n\";\n $header .= \"Bcc: \".$bcc.\"\\r\\n\";\n $header .= \"MIME-Version: 1.0\\r\\n\";\n $header .= \"Content-Type: multipart/mixed; boundary=\\\"\".$uid.\"\\\"\\r\\n\\r\\n\";\n \n // message & attachment\n $nmessage = \"--\".$uid.\"\\r\\n\";\n $nmessage .= \"Content-type:text/html; charset=\\\"utf-8\\\"\\r\\n\";\n $nmessage .= \"X-Priority: 1 (Highest)\\n\";\n $nmessage .= \"X-MSMail-Priority: High\\n\";\n $nmessage .= \"Importance: High\\n\";\n $nmessage .= \"Content-Transfer-Encoding: 7bit\\r\\n\\r\\n\";\n $nmessage .= $message.\"\\r\\n\\r\\n\";\n $nmessage .= \"--\".$uid.\"\\r\\n\";\n $nmessage .= \"Content-Type: application/octet-stream; name=\\\"\".$filename.\"\\\"\\r\\n\";\n $nmessage .= \"Content-Transfer-Encoding: base64\\r\\n\";\n $nmessage .= \"Content-Disposition: attachment; filename=\\\"\".$filename.\"\\\"\\r\\n\\r\\n\";\n $nmessage .= $content.\"\\r\\n\\r\\n\";\n $nmessage .= \"--\".$uid.\"--\";\n\n if( mail($mailto, $subject, $nmessage, $header)) {\n log_message('info', 'Sended maikl to ' . $info['email'] . ' with quotation : ' . $file);\n }\n else {\n echo 'ERROR MAIL';\n log_message('error', 'Error Sending mail to : ' . $info['email'] . ' with quotation : ' . $file);\n }\n }", "title": "" }, { "docid": "19ab038b348c608ebc383bba95ee7093", "score": "0.5457844", "text": "public function sendMail()\n {\n $mail_queue =& new Mail_Queue(\n $this->db_options,\n $this->mail_options\n );\n \n $mail_queue->sendMailsInQueue($this->max_PearMails);\n }", "title": "" }, { "docid": "0e64c18d07fa04abbab968776cbf3c89", "score": "0.54564786", "text": "public function sendNotifications()\n\t{\n\t if(env('APP_ENV') == 'production'){\n //Готовим адреса и подключение к почте\n $emailTo = Setting::pluck('feedback_email')->first();\n\n if(empty($emailTo)) {\n throw new Exception(\"Feedback email is empty! Please set email.\");\n }\n\n $auth = \\Config::get('gmail');\n\n $mail = new PHPMailer;\n //$mail->SMTPDebug = 3;\n $mail->isSMTP();\n $mail->Host = $auth['gmail_host'];\n $mail->SMTPAuth = true;\n $mail->Username = $auth['gmail_username'];\n $mail->Password = $auth['gmail_password'];\n $mail->SMTPSecure = $auth['gmail_secure'];\n $mail->Port = $auth['gmail_port'];\n $mail->CharSet = 'UTF-8';\n $mail->isHTML(true);\n $mail->setFrom($auth['gmail_username'], 'Radar.com.ua');\n\n $body = view('emails.invoice',\n [\n 'order' => $this->order->load('products','payment_method','shipping_method'), 'user' => $this->user\n ]\n )->render();\n\n if($this->user->email){\n\n $mail->Subject = 'Спасибо за покупку!';\n $mail->addAddress($this->user->email);\n $mail->msgHTML($body);\n //$mail->addAttachment(\"frontend/images/logo.png\");\n if(!$mail->send()) {\n Mail::send('emails.invoice',\n [\n 'order' => $this->order->load('products','payment_method','shipping_method'), 'user' => $this->user\n ],\n function($message)\n {\n $message->from(array_get(Setting::firstOrCreate([])->toArray(),'contact_email'), 'Radar');\n $message->to($this->user->email)->subject('Спасибо за покупку!');\n }\n );\n }\n }\n \n $mail->ClearAddresses();\n $mail->Subject = 'Новый заказ!';\n $mail->addAddress($emailTo, 'Администратору сайта Radar.com.ua');\n $mail->msgHTML($body);\n //$mail->addAttachment(\"frontend/images/logo.png\");\n if(!$mail->send()) {\n Mail::send('emails.admin_invoice',\n [\n 'order' => $this->order->load('products','payment_method','shipping_method'), 'user' => $this->user\n ],\n function($message)\n {\n $message->from(array_get(Setting::firstOrCreate([])->toArray(),'contact_email'), 'Radar');\n $message->to(array_get(Setting::firstOrCreate([])->toArray(),'feedback_email'))->subject('Новый заказ!');\n }\n );\n }\n }else{\n if($this->user->email){\n Mail::send('emails.invoice',\n [\n 'order' => $this->order->load('products','payment_method','shipping_method'), 'user' => $this->user\n ],\n function($message)\n {\n $message->from(array_get(Setting::firstOrCreate([])->toArray(),'contact_email'), 'Radar');\n $message->to($this->user->email)->subject('Спасибо за покупку!');\n }\n );\n }\n Mail::send('emails.admin_invoice',\n [\n 'order' => $this->order->load('products','payment_method','shipping_method'), 'user' => $this->user\n ],\n function($message)\n {\n $message->from(array_get(Setting::firstOrCreate([])->toArray(),'contact_email'), 'Radar');\n $message->to(array_get(Setting::firstOrCreate([])->toArray(),'feedback_email'))->subject('Новый заказ!');\n }\n );\n }\n\n\n\n\t}", "title": "" }, { "docid": "5f9a95256607d85430e6fde30753f1e8", "score": "0.54531604", "text": "function sendMail($settings){\n $mail = new PHPMailer(true); \n $mail->ErrorInfo;\n try {\n //Server settings\n $mail->CharSet = \"utf-8\";\n $mail->SMTPDebug = 0; \n $mail->isSMTP();\n \n $mail->Host = $settings['smtp']; \n $mail->SMTPAuth = true;\n // $mail->SMTPDebug = 2;\n $mail->Username = $settings['username']; \n $mail->Password = $settings['password']; \n $mail->SMTPSecure = $settings['encryption'];\n $mail->Port = (int)$settings['port']; \n $mail->setfrom('contact@omegatheme.com', \"Quantity Notification\");\n $mail->addAddress(\"kaylee@omegatheme.com\", \"Quantity Price Breaks was uninstalled\");\n \n //Content\n $mail->isHTML(true);\n $mail->Subject = $settings['title'];\n $mail->Body = $settings['body'];\n $mail->send();\n return true;\n } catch (Exception $e) {\n return 'Message could not be sent. Mailer Error: '. $mail->ErrorInfo;\n }\n}", "title": "" }, { "docid": "046a6f2196e208dbbec412441ff57843", "score": "0.54459006", "text": "public function resend_mail() {\n\n echo \"masuk resen\"; //for testing\n\n $this->mregister->send_verifikasi_email();\n\n redirect(site_url('register/verifikasi'));\n\n }", "title": "" }, { "docid": "faccd8488475ae1d508f8b3b361c3a49", "score": "0.5444191", "text": "public function sendCustomerErrorReportToMerchant($exception, $response=\"\", $quoteId=\"\", $transactionId=null)\n {\n $templateOptions = ['area' => \\Magento\\Framework\\App\\Area::AREA_FRONTEND, 'store' => $this->storeManager->getStore()->getId()];\n\n $from = [\n 'name' => $this->scopeConfig->getValue('trans_email/ident_general/name', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE),\n 'email' => $this->scopeConfig->getValue('trans_email/ident_general/email', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE)\n ];\n\n $templateVars = [\n 'exception_message' => $exception->getMessage(),\n 'quote' => $quoteId,\n 'token' => $transactionId,\n 'response' => $response\n ];\n\n\n $subject = __(\"Error report\");\n\n $emailData['subject'] = $subject;\n\n $this->inlineTranslation->suspend();\n\n $recipients = $this->scopeConfig->getValue('sales_email/order/copy_to', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n if($recipients){\n $transport = $this->_transportBuilder->setTemplateIdentifier('error_report_template')\n ->setTemplateOptions($templateOptions)\n ->setTemplateVars($templateVars)\n ->setFrom($from)\n ->addTo(explode(\",\", $recipients))\n ->getTransport();\n $transport->sendMessage();\n $this->inlineTranslation->resume();\n }\n\n }", "title": "" }, { "docid": "cc51b48b3dc6d0c654de90e1989b6987", "score": "0.54422385", "text": "public function testMail() {\n// $userdb->sendValidationEmailForAccount(\"xsteve@gmail.com\");\n }", "title": "" }, { "docid": "1daa3a39fcb93a3daeff3c7e3e9f71e9", "score": "0.5439036", "text": "protected function _sendInfo()\n {\n $userEmail = $this->_prepareUserEmail();\n $adminEmail = $this->_prepareAdminEmail();\n\n $mailer = new PHPMailer();\n $mailer->Encoding = \"8bit\";\n $mailer->CharSet = \"UTF-8\";\n $mailer->AddReplyTo($this->_options['mail'], $this->_options['system_name']);\n $mailer->SetFrom($this->_options['mail'], $this->_options['system_name']);\n $mailer->AddAddress($_POST['data'][7]['value']);\n $mailer->Subject = 'Rezerwacja w Hotelu Arka';\n $mailer->MsgHTML($userEmail);\n\n if(!$mailer->Send()) {\n throw new Exception(\n 'Błąd podczas wysyłania maila do użytkownika.\n Skontaktuj się z obsługą hotelu aby potwierdić rezerwację.\n <br/><br/>' . $mailer->ErrorInfo\n );\n }\n\n $mailer = new PHPMailer();\n $mailer->Encoding = \"8bit\";\n $mailer->CharSet = \"UTF-8\";\n $mailer->AddReplyTo($this->_options['mail'], $this->_options['system_name']);\n $mailer->SetFrom($this->_options['mail'], $this->_options['system_name']);\n $mailer->AddAddress($this->_options['mail']);\n $mailer->Subject = 'Nowa rezerwacja: ' . $_POST['from'] . ' - ' . $_POST['to'];\n $mailer->MsgHTML($adminEmail);\n\n if(!$mailer->Send()) {\n throw new Exception(\n 'Błąd podczas wysyłania maila do użytkownika.\n Skontaktuj się z obsługą hotelu aby potwierdić rezerwację.\n <br/><br/>' . $mailer->ErrorInfo\n );\n }\n }", "title": "" }, { "docid": "4fdacf84538582c59ee48226f2ec4de9", "score": "0.54371434", "text": "function sendMail($user_name,$searchName,$users_emails,$link,$status)\n {\n //echo $message;exit();\n \tif($status == 'added'){\n \t\t$msg= '<html>\n <head></head>\n <body style=\"color: black;\">\n <p>Dear User <br><br></p>\n <p>'.$user_name.' has added you to '.$searchName.' <br><br>\n </p>\n <p>Please click below to download app.<br><br></p>\n\t\t \t<strong><a href=\"'.$link.'\" style=\"text-decoration: none !important;\">Download</a><br><br></strong>\n <p>Sincerely,<br>Urban Collective customer service<br>\n </p> \n <body>\n </html> '; \n \t}\t\n\n \tif($status == 'deleted'){\n \t\t$msg= '<html>\n <head></head>\n <body style=\"color: black;\">\n <p>Dear User <br><br></p>\n <p>'.$user_name.' has deleted you from '.$searchName.' <br><br>\n </p>\n <p>Sincerely,<br>Urban Collective customer service<br>\n </p> \n <body>\n </html> '; \n \t}\n\n \n //echo $msg;exit();\n // include the class name \n $mail = new PHPMailer(true); // create a new object\n $mail->IsSMTP(); \n try{\n\t $mail->IsHTML(true); \n\t $mail->SMTPDebug = 1; \n\t $mail->Host = \"smtp.googlemail.com\"; //Hostname of the mail server ssl://smtp.googlemail.com\n\t $mail->Port = \"587\"; //Port of the SMTP like to be 25, 80, 465 or 587 ////465\n\t $mail->SMTPAuth = true; //Whether to use SMTP authentication\n\t $mail->Username = \"urbancotech@gmail.com\"; //Username for SMTP authentication any valid email created in your domain bamgude.sachin@gmail.com\n\t $mail->Password = \"TheUrbanCollective\"; //Password for SMTP authentication \n\t $mail->SMTPSecure = 'tls'; \n\t $mail->SetFrom(\"urbancotech@gmail.com\",'TheUrbanCollective');\n\t // $mail->SetFrom(\"bamgude.sachin@gmail.com\");\n\t if($status == \"deleted\"){\n\t \t$mail->Subject = \"Deleted from tribe\";\n\t }\n\t if($status == \"added\"){\n\t \t $mail->Subject = \"Invitation for tribe\";\n\t }\n\t \n\t $mail->Body = $msg; \n\t foreach($users_emails as $email1){\n\t \t$mail->AddAddress($email1);//To\n\t //$mail->AddBCC($email1);//whom to send mail \n\t }\n\t // $mail->AddCC(\"\");\n\t $send = $mail->Send(); //Send the mails\n\t //echo $mail->ErrorInfo;exit();\n\t //print_r($mail->ErrorInfo);exit();\n\t if($send){\n\t return true;\n\t }else{\n\t return false;\n\t \n\t }\n } catch (phpmailerException $e) {\n\t\t\t\t\t\t// $this->response(array('ResponseCode' => 0, 'ResponseMessage' => 'FAILURE', 'Comments' => 'MAIL SENDING FAIL','Result'=>$send), 400);\n \t\t\treturn false;\n\t\t\t\t\t\n\t\t\t} catch (Exception $e) {\n\t\t\t \t// $this->response(array('ResponseCode' => 0, 'ResponseMessage' => 'FAILURE', 'Comments' => 'MAIL SENDING FAIL','Result'=>$send), 400);\n\t\t\t \treturn false;\n\t\t\t}\n }", "title": "" }, { "docid": "e49d79a13b0f24a02bc084cedc067fce", "score": "0.54353184", "text": "public function obtener_error_email(){\n return $this->error_email;\n }", "title": "" }, { "docid": "657ce11db72c0dfd537e207e78f1ef98", "score": "0.5431117", "text": "public function send_an_email($text, $subject, $filename_list = array(), $mimetype_list = array(), $mimefilename_list = array(), $addr_cc = \"\", $addr_bcc = \"\", $deliveryreceipt = 0, $msgishtml = -1, $errors_to = '', $moreinheader = '')\n\t{\n // phpcs:enable\n\t\tglobal $conf,$langs;\n\n\t\t// Detect if message is HTML\n\t\tif ($msgishtml == -1)\n\t\t{\n\t\t\t$msgishtml = 0;\n\t\t\tif (dol_textishtml($text, 0)) $msgishtml = 1;\n\t\t}\n\n\t\tdol_syslog('send_an_email msgishtml='.$msgishtml);\n\n\t\t$texttosend=$this->makeSubstitution($text);\n\t\t$subjecttosend=$this->makeSubstitution($subject);\n\t\tif ($msgishtml) $texttosend=dol_htmlentitiesbr($texttosend);\n\n\t\t// Envoi mail confirmation\n\t\t$from=$conf->email_from;\n\t\tif (! empty($conf->global->ADHERENT_MAIL_FROM)) $from=$conf->global->ADHERENT_MAIL_FROM;\n\n\t\t$trackid = 'mem'.$this->id;\n\n\t\t// Send email (substitutionarray must be done just before this)\n\t\tinclude_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';\n\t\t$mailfile = new CMailFile($subjecttosend, $this->email, $from, $texttosend, $filename_list, $mimetype_list, $mimefilename_list, $addr_cc, $addr_bcc, $deliveryreceipt, $msgishtml, '', '', $trackid, $moreinheader);\n\t\tif ($mailfile->sendfile())\n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->error=$langs->trans(\"ErrorFailedToSendMail\", $from, $this->email).'. '.$mailfile->error;\n\t\t\treturn -1;\n\t\t}\n\t}", "title": "" }, { "docid": "0f8e92bdb377b65ad5ed24f9cbeb84f9", "score": "0.5427876", "text": "protected function sendLoginSuccessfulMail()\n {\n $warningEmailAddress = $GLOBALS['TYPO3_CONF_VARS']['BE']['warning_email_addr'];\n if ($warningEmailAddress) {\n /** @var \\TYPO3\\CMS\\Core\\Mail\\MailMessage $mailMessage */\n $mailMessage = GeneralUtility::makeInstance(\\TYPO3\\CMS\\Core\\Mail\\MailMessage::class);\n $mailMessage\n ->addTo($warningEmailAddress)\n ->setSubject('Install Tool Login at \\'' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'] . '\\'')\n ->addFrom($this->getSenderEmailAddress(), $this->getSenderEmailName())\n ->setBody('There has been an Install Tool login at TYPO3 site'\n . ' \\'' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'] . '\\''\n . ' (' . GeneralUtility::getIndpEnv('HTTP_HOST') . ')'\n . ' from remote address \\'' . GeneralUtility::getIndpEnv('REMOTE_ADDR') . '\\''\n . ' (' . GeneralUtility::getIndpEnv('REMOTE_HOST') . ')')\n ->send();\n }\n }", "title": "" } ]
7885346909524df59c24ea93e094416b
Run callback on the relevant fields in a row.
[ { "docid": "ae005f11df9212b2088f08fa6494d1fd", "score": "0.5906293", "text": "protected static function processFields(callable $callback, $row, $field_names) {\n $replaced = FALSE;\n foreach ($field_names as $field_name) {\n $replacement = call_user_func($callback, $row->{$field_name}, $row);\n if ($replacement != $row->{$field_name}) {\n $row->{$field_name} = $replacement;\n $replaced = TRUE;\n }\n }\n\n return $replaced;\n }", "title": "" } ]
[ { "docid": "914c75a48d50073fb67ad2d656f3ad79", "score": "0.655617", "text": "public function processRow($row);", "title": "" }, { "docid": "5cae18c8a3414418c302899f0ed60cfc", "score": "0.6259542", "text": "abstract function process_row($row);", "title": "" }, { "docid": "e2adad925328beb6fae73b7ab2ca5f4a", "score": "0.618897", "text": "public function forEachRow( $callback ) {\n foreach( $this->news as $new ) $callback( $new );\n }", "title": "" }, { "docid": "e6e47a1569759e1290f8c962d8611d6a", "score": "0.6007688", "text": "function onDisplayCustomFieldsMultiRow($rows)\n {\n foreach($rows as $row) {\n $this->onDisplayCustomFields($row);\n }\n }", "title": "" }, { "docid": "f21e4a54f6c1348f8d7c76f85871d9a0", "score": "0.56143206", "text": "public function forEachRows( $callback ) {\n foreach( $this->news as $new ) $callback( $new );\n }", "title": "" }, { "docid": "283df50f0b7ffb6ddd77c196699ecdd0", "score": "0.5592736", "text": "public function dataHook($rows)\n\t{\n\t\t// Do customisation of the params field here for specific data.\n\t\treturn $rows;\t\n\t}", "title": "" }, { "docid": "16eabda571608ffa77e54f71f1d22920", "score": "0.55699724", "text": "function casefacts_render_row_cb( $field_args, $field ) {\n $id = $field->args( 'id' );\n $label = $field->args( 'name' );\n $name = $field->args( '_name' );\n $value = $field->escaped_value();\n $description = $field->args( 'description' );\n ?>\n <div class=\"casefacts-row\">\n <label for=\"<?php echo $id; ?>\"><strong><?php echo $label; ?></strong> <em>(<?php echo $description; ?>)</em></label>\n <input id=\"<?php echo $id; ?>\" type=\"text\" name=\"<?php echo $name; ?>\" value=\"<?php echo $value; ?>\" />\n </div>\n <?php\n}", "title": "" }, { "docid": "c8209f263cc8cf78ef29d2643226e24a", "score": "0.5543226", "text": "public function dataHook($rows)\n\t{\n\t\t// Do customisation of the params field here for specific data.\n\t\treturn $rows;\n\t}", "title": "" }, { "docid": "c3b579f03b206378636136186aa8bcb2", "score": "0.54914534", "text": "public function populate($row) {\n foreach ($row as $fieldName => $value) {\n if (array_key_exists($fieldName, $this->dbFields))\n $this->dbFields[$fieldName] = $value;\n }\n }", "title": "" }, { "docid": "38c92f8a3de5d86a323cf40b9c1861dd", "score": "0.5468409", "text": "public function AddCallback($callback)\n {\n $this->rowcallback = $callback;\n }", "title": "" }, { "docid": "3baf8e3b121aa9dabb31939898cc86c6", "score": "0.53786063", "text": "private function onFieldChange($field)\n\t{\n\t\tif (isset($this->onFieldChange[$field])) {\n\t\t\tforeach ($this->onFieldChange[$field] as $function) {\n\t\t\t\t$this->$function($this->get($field));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "24ecc62cd163e190318a8618902acf75", "score": "0.53488624", "text": "public function each(callable $callback)\n\t{\n\t\tforeach($this->rowColumnLabels as $rowLetter)\n\t\t{\n\t\t\tforeach($this->rows[$rowLetter] as $columnIndex => $symbol)\n\t\t\t{\n\t\t\t\t$columnLetter = $this->rowColumnLabels[$columnIndex];\n\t\t\t\tcall_user_func_array($callback, [$rowLetter, $columnLetter, $columnIndex, $symbol]);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "bc23cf10935b2e8141d326c1790b1dfa", "score": "0.5298772", "text": "public function onChange($field_name);", "title": "" }, { "docid": "02e55b1594c3ae339f437ec9b1110fd0", "score": "0.52777886", "text": "public function process() {\n\t\t\tforeach($this->data as $arr) {\n\t\t\t\t$tmp = clone $this->oneRow;\n\t\t\t\t$tmp->populate($arr);\n\t\t\t\t$tmp->isValid();\n\t\t\t\t$this->rows[] = $tmp;\n\t\t\t\tunset($tmp);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "d897cb7b8db265444cd4822697797864", "score": "0.5275043", "text": "final public static function ingestRow(array $row) {}", "title": "" }, { "docid": "e205e1aae18b912779e68e234e3e0dfd", "score": "0.52517974", "text": "public function map($f): void {\n $this->rows = $f($this->rows);\n }", "title": "" }, { "docid": "b4c360f67c1b7ed8eb6f030110101c58", "score": "0.52381074", "text": "public function customChangeData($rowData)\n {\n $columnIncrementId = 'increment_id';\n if (!empty($rowData[$columnIncrementId])) {\n $email = strtolower($rowData[self::COLUMN_EMAIL]);\n $website = $rowData[self::COLUMN_WEBSITE];\n $parentId = $this->_getCustomerId($email, $website);\n\n if ($parentId) {\n $select = $this->_connection->select()\n ->from($this->_entityTable, ['entity_id'])\n ->where($columnIncrementId . ' = ?', $rowData[$columnIncrementId])\n ->where('parent_id = ?', $parentId);\n\n $entityId = $this->_connection->fetchOne($select);\n\n if ($entityId) {\n $rowData[static::COLUMN_ADDRESS_ID] = $entityId;\n }\n }\n }\n\n return $rowData;\n }", "title": "" }, { "docid": "35002bcc60656e8aeb1a8832001212fb", "score": "0.5225288", "text": "function AggregateListRow() {\r\n\r\n\t\t// Call Row Rendered event\r\n\t\t$this->Row_Rendered();\r\n\t}", "title": "" }, { "docid": "89c3bd14165071f21b87dbbf18f6c972", "score": "0.52238494", "text": "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->fld_booking_ai_id->setDbValue($rs->fields('fld_booking_ai_id'));\r\n\t\t$this->fld_customer_token->setDbValue($rs->fields('fld_customer_token'));\r\n\t\t$this->fld_pickup_point->setDbValue($rs->fields('fld_pickup_point'));\r\n\t\t$this->fld_customer_name->setDbValue($rs->fields('fld_customer_name'));\r\n\t\t$this->fld_mobile_no->setDbValue($rs->fields('fld_mobile_no'));\r\n\t\t$this->fld_booking_datetime->setDbValue($rs->fields('fld_booking_datetime'));\r\n\t\t$this->fld_coupon_code->setDbValue($rs->fields('fld_coupon_code'));\r\n\t\t$this->fld_driver_rating->setDbValue($rs->fields('fld_driver_rating'));\r\n\t\t$this->fld_customer_feedback->setDbValue($rs->fields('fld_customer_feedback'));\r\n\t\t$this->fld_is_cancelled->setDbValue($rs->fields('fld_is_cancelled'));\r\n\t\t$this->fld_total_fare->setDbValue($rs->fields('fld_total_fare'));\r\n\t\t$this->fld_booked_driver_id->setDbValue($rs->fields('fld_booked_driver_id'));\r\n\t\t$this->fld_is_approved->setDbValue($rs->fields('fld_is_approved'));\r\n\t\t$this->fld_is_completed->setDbValue($rs->fields('fld_is_completed'));\r\n\t\t$this->fld_is_active->setDbValue($rs->fields('fld_is_active'));\r\n\t\t$this->fld_created_on->setDbValue($rs->fields('fld_created_on'));\r\n\t\t$this->fld_dropoff_point->setDbValue($rs->fields('fld_dropoff_point'));\r\n\t\t$this->fld_estimated_time->setDbValue($rs->fields('fld_estimated_time'));\r\n\t\t$this->fld_estimated_fare->setDbValue($rs->fields('fld_estimated_fare'));\r\n\t\t$this->fld_brn_no->setDbValue($rs->fields('fld_brn_no'));\r\n\t\t$this->fld_journey_type->setDbValue($rs->fields('fld_journey_type'));\r\n\t\t$this->fld_vehicle_type->setDbValue($rs->fields('fld_vehicle_type'));\r\n\t\t$this->fld_vehicle_mode->setDbValue($rs->fields('fld_vehicle_mode'));\r\n\t}", "title": "" }, { "docid": "efe8957b59980b1b0f3a58404b5b6dc6", "score": "0.5223224", "text": "public function populate($row , $populate_foreign_fields = FALSE)\n {\n $fields = $this->db->field_data($this::DB_TABLE);\n foreach($fields as $field)\n {\n switch ($field->type)\n {\n case 'int':\n $this->{$field->name} = intval($row->{$field->name});\n break;\n\n case 'float':\n case 'double':\n $this->{$field->name} = floatval($row->{$field->name});\n break;\n\n case 'tinyint':\n $this->{$field->name} = $row->{$field->name}?TRUE:FALSE;\n break;\n\n case 'datetime':\n $this->{$field->name} =new DateTime($row->{$field->name});\n //$this->{$field->name}->setTimezone(new DateTimeZone('UTC'));\n break;\n // TODO\n /*\n case 'object':\n // calling to_string function (must implement in that class) to serialize object to json string\n $this->{$field->name} = $this->decode_json($row->{$field->name});\n break;\n\n case 'array':\n $this->{$field->name} = json_decode($row->{$field->name});\n break;\n */\n\n default :\n $this->{$field->name} = $row->{$field->name};\n break;\n }\n }\n if($populate_foreign_fields)\n {\n $this->populate_foreign_fields();\n }\n\n }", "title": "" }, { "docid": "8f29609840a7c31aa0c3bf75787102d7", "score": "0.5208965", "text": "function AggregateListRow() {\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "title": "" }, { "docid": "8f29609840a7c31aa0c3bf75787102d7", "score": "0.5208965", "text": "function AggregateListRow() {\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "title": "" }, { "docid": "8f29609840a7c31aa0c3bf75787102d7", "score": "0.5208965", "text": "function AggregateListRow() {\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "title": "" }, { "docid": "8f29609840a7c31aa0c3bf75787102d7", "score": "0.5208965", "text": "function AggregateListRow() {\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "title": "" }, { "docid": "e8ab6d76d85336305710b9daddca2265", "score": "0.52003497", "text": "public function dataHook($rows)\n\t{\n\t\t// Do some custom post processing on the list.\n\t\tforeach ($rows as &$row)\n\t\t{\n\t\t\t$row = (array) $row;\n\n\t\t\tif (!empty($row['user_id']))\n\t\t\t{\n\t\t\t\t$newUserId = JTransportHelper::lookupNewId('arrUsers', $row['user_id']);\n\t\t\t\t$row['user_id'] = $newUserId;\n\t\t\t}\n\n\t\t\tif (!empty($row['created_user_id']))\n\t\t\t{\n\t\t\t\t$newCreatedUserId = JTransportHelper::lookupNewId('arrUsers', $row['created_user_id']);\n\t\t\t\t$row['created_user_id'] = $newCreatedUserId;\n\t\t\t}\n\n // Remove fields not exist in destination table\n // $this->_removeUnusedFields($row);\n\t\t}\n\n\t\treturn $rows;\n\t}", "title": "" }, { "docid": "22510582242a8c95f044ed6b655cf1cb", "score": "0.51984286", "text": "protected function processRow($row)\n {\n // todo could fail here ..needs exception!\n $timeForDruid = new DruidTime( $row['date'] );\n $row['date'] = $timeForDruid->formatTimeForDruid();\n\n return $row;\n }", "title": "" }, { "docid": "60e214dd326682efc47da8351867a7d5", "score": "0.5172914", "text": "function SOCallback($ds, $item, $icol, $col = null)\r\n{\r\n\tif (is_array($ds->FieldInputs[$col]->attr('VALUE')))\r\n\tforeach ($ds->FieldInputs[$col]->attr('VALUE') as $v)\r\n\t{\r\n\t\t$res = $v->Find($item[$icol]);\r\n\t\tif (isset($res)) return $res->text;\r\n\t}\r\n\r\n\treturn $item[$icol];\r\n}", "title": "" }, { "docid": "fe26d33a922faba0fb16cf6c1df4e4f0", "score": "0.51725537", "text": "protected function process()\n {\n\n // load the available header names\n $headerNames = array_keys($this->getHeaders());\n $emptyValueDefinition = $this->getEmptyAttributeValueConstant();\n\n // iterate over the custom validations\n foreach ($headerNames as $headerName) {\n // load the attribute value from the row\n $attributeValue = $this->getValue($headerName);\n // reverse map the header name to the original column name\n $columnName = $this->reverseMapHeaderNameToColumnName($headerName);\n // load the callbacks for the actual attribute code\n $callbacks = $this->getCallbacksByType($columnName);\n // invoke the registered callbacks\n foreach ($callbacks as $callback) {\n try {\n // query whether or not to cleanup complete attribute\n if ($attributeValue === $emptyValueDefinition) {\n continue;\n }\n $callback->handle($columnName, $attributeValue);\n } catch (\\InvalidArgumentException $iea) {\n // add the the validation result to the status\n $this->mergeStatus(\n array(\n RegistryKeys::VALIDATIONS => array(\n basename($this->getFilename()) => array(\n $this->getSubject()->getLineNumber() => array(\n $columnName => $iea->getMessage()\n )\n )\n )\n )\n );\n }\n }\n }\n }", "title": "" }, { "docid": "081b01c50e73178e2bb088956cd8c63e", "score": "0.51621014", "text": "function render($row) {\n // Using func_get_args() instead of declaring $row_index in the arguments,\n // because this function must be compatible with views_plugin_row::render().\n $args = func_get_args();\n $row_index = $args[1];\n \n // Fetch the event's date information.\n try {\n $date = $this->get_row_date($row_index);\n }\n catch (BlankDateFieldException $e) {\n if ($this->options['additional_settings']['skip_blank_dates']) {\n return NULL;\n }\n else {\n throw $e;\n }\n }\n \n $event = array();\n // Add the LAST-MODIFIED and URL components based on the original entity.\n $entity = $row->_field_data[$this->view->base_field]['entity'];\n $entity_type = $row->_field_data[$this->view->base_field]['entity_type'];\n if (isset($entity->changed)) {\n $event['last-modified'] = new DateObject($entity->changed, new DateTimeZone('UTC'));\n }\n $uri = entity_uri($entity_type, $entity);\n $uri['options']['absolute'] = TRUE;\n $event['url'] = url($uri['path'], $uri['options']);\n\n // Generate a uid.\n $domain = check_plain($_SERVER['SERVER_NAME']);\n $event['uid'] = \"calendar.\" . $row->{$this->view->base_field} . \".\" . $this->options['date_field'] . \"@\" . $domain;\n\n // Create the primary text fields.\n $text_fields['summary'] = $this->get_field($row_index, $this->options['title_field']);\n $text_fields['description'] = $this->get_field($row_index, $this->options['description_field']);\n $text_fields['location'] = $this->get_field($row_index, $this->options['location_field']);\n \n // Allow other modules to alter the rendered text fields before they get\n // sanitized for iCal-compliance. This is most useful for fields of type\n // \"Content: Rendered Node\", which are likely to have complex HTML.\n $context = array(\n 'row' => $row,\n 'row_index' => $row_index,\n 'language' => $this->language,\n );\n drupal_alter('date_ical_fields_html', $text_fields, $this->view, $context);\n \n // Sanitize the text fields for iCal compliance, and add them to the event.\n // Also strip all HTML from the summary and location fields, since they\n // must be plaintext, and may have been set as links by the view.\n $event['summary'] = date_ical_sanitize_text(strip_tags($text_fields['summary']));\n $event['location'] = date_ical_sanitize_text(strip_tags($text_fields['location']));\n $event['description'] = date_ical_sanitize_text($text_fields['description']);\n \n // Add the date data.\n $event = array_merge($event, $date);\n \n // Allow other modules to alter the event object, before it gets passed to\n // the style plugin to be converted into an iCal VEVENT.\n $context = array(\n 'entity' => $entity,\n 'entity_type' => $entity_type,\n 'language' => $this->language,\n );\n drupal_alter('date_ical_feed_event_render', $event, $this->view, $context);\n \n return $event;\n }", "title": "" }, { "docid": "83364fb6f59ceb978f170ba632c58000", "score": "0.5155008", "text": "function handle_custom_fields_post($rel_id, $custom_fields)\r\n{\r\n\r\n $affectedRows = 0;\r\n $CI =& get_instance();\r\n foreach ($custom_fields as $key => $fields) {\r\n foreach ($fields as $field_id => $field_value) {\r\n $CI->db->where('relid', $rel_id);\r\n $CI->db->where('fieldid', $field_id);\r\n $CI->db->where('fieldto', $key);\r\n $row = $CI->db->get('tblcustomfieldsvalues')->row();\r\n if ($row) {\r\n // Make necessary checkings for fields\r\n $CI->db->where('id', $field_id);\r\n $field_checker = $CI->db->get('tblcustomfields')->row();\r\n if ($field_checker->type == 'date_picker') {\r\n $field_value = to_sql_date($field_value);\r\n } else if ($field_checker->type == 'textarea') {\r\n $field_value = nl2br($field_value);\r\n }\r\n }\r\n if ($row) {\r\n $CI->db->where('id', $row->id);\r\n $CI->db->update('tblcustomfieldsvalues', array(\r\n 'value' => $field_value\r\n ));\r\n if ($CI->db->affected_rows() > 0) {\r\n $affectedRows++;\r\n }\r\n } else {\r\n $CI->db->insert('tblcustomfieldsvalues', array(\r\n 'relid' => $rel_id,\r\n 'fieldid' => $field_id,\r\n 'fieldto' => $key,\r\n 'value' => $field_value\r\n\r\n ));\r\n $insert_id = $CI->db->insert_id();\r\n if ($insert_id) {\r\n $affectedRows++;\r\n }\r\n }\r\n }\r\n }\r\n if ($affectedRows > 0) {\r\n return true;\r\n }\r\n\r\n return false;\r\n}", "title": "" }, { "docid": "a865bb12ef8388a3c9db18873a5e21b0", "score": "0.51384395", "text": "public function row(array $row): void;", "title": "" }, { "docid": "a02f240e0978d3c21f3e83f51f4c6c68", "score": "0.5131249", "text": "public function getFlexFormDS_postProcessDS(&$dataStructure, $conf, $row, $table, $fieldName)\n {\n if ($table === 'tt_content' && $row['list_type'] === 't3events_events' && is_array($dataStructure)) {\n $this->updateFlexforms($dataStructure, $row);\n }\n }", "title": "" }, { "docid": "edc061af370e568b18e5f5c473e1951a", "score": "0.5077709", "text": "public function hook_row_index($column_index,&$column_value) { \n //Your code here\n }", "title": "" }, { "docid": "308536e7e65073eecbf6ae7a56a7910c", "score": "0.5074017", "text": "public function getSourceValues($row, $entity_id) {\n parent::getSourceValues($row, $entity_id);\n // Load up field data for dynamically mapped fields\n foreach ($this->sourceFieldInfo as $field_name => $info) {\n if ($info['type'] == 'field_collection' && !empty($row->{$field_name})) {\n if (isset($this->sourceFieldInfo[$field_name]['field_collection_fields'])) {\n foreach ($this->sourceFieldInfo[$field_name]['field_collection_fields'] as $fc_field_name => $columns) {\n foreach ($row->{$field_name} as $delta => $fc_entity_id) {\n // Find the data in field_data_$fc_field_name.\n $table = \"field_data_$fc_field_name\";\n $result = Database::getConnection('default', $this->arguments['source_connection'])\n ->select($table, 'f')\n ->fields('f')\n ->condition('entity_type', 'field_collection_item')\n ->condition('bundle', $field_name)\n ->condition('entity_id', $fc_entity_id)\n ->orderBy('delta')\n ->execute();\n foreach ($result as $field_row) {\n foreach ($columns as $display_name => $column_name) {\n if (isset($row->$display_name) && !is_array($row->$display_name)) {\n $row->$display_name = array($row->$display_name);\n }\n $row->{$display_name}[$delta][] = $field_row->$column_name;\n }\n }\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "f14abaeacc8f415f2da54223d7acdc48", "score": "0.50699764", "text": "protected static function processTable($table, $columns, array $patterns, $callback, $process_fields = TRUE, $exact_match = FALSE) {\n $query = db_select($table, $table)\n ->fields($table, [\n 'entity_id',\n 'revision_id',\n 'language',\n 'deleted',\n 'delta',\n 'entity_type',\n 'bundle',\n ])\n ->fields($table, $columns);\n\n if (!empty($patterns)) {\n $condition = db_or();\n foreach ($columns as $column) {\n foreach ($patterns as $pattern) {\n if (!$exact_match) {\n $condition->condition($column, '%' . db_like($pattern) . '%', 'LIKE');\n }\n else {\n $condition->condition($column, $pattern, '=');\n }\n }\n }\n $query->condition($condition);\n }\n\n $result = $query->execute();\n foreach ($result as $row) {\n if (!$process_fields) {\n // Just send the row to the callback function. Data/Text is NULL\n // because we're not processing on a field level.\n $callback(NULL, $row, $table);\n continue;\n }\n $result = self::processFields($callback, $row, $columns);\n if ($result) {\n $update_query = db_update($table)\n ->condition('entity_id', $row->entity_id)\n ->condition('revision_id', $row->revision_id);\n\n $updated_values = [];\n foreach ($columns as $column) {\n $updated_values[$column] = $row->{$column};\n }\n $update_query->fields($updated_values);\n $update_query->execute();\n if (self::$verbose) {\n self::printMessage(\"Updated values for entity id: {$row->entity_id} revision id: {$row->revision_id}. Table: $table\");\n }\n }\n elseif (self::$verbose) {\n self::printMessage(\"No update: for entity id: {$row->entity_id} revision id: {$row->revision_id}. Table: $table\");\n }\n }\n }", "title": "" }, { "docid": "b332d1eff00c8adf302732d557c0e195", "score": "0.5066855", "text": "public function aggregateListRow()\n {\n // Call Row Rendered event\n $this->rowRendered();\n }", "title": "" }, { "docid": "b332d1eff00c8adf302732d557c0e195", "score": "0.5066855", "text": "public function aggregateListRow()\n {\n // Call Row Rendered event\n $this->rowRendered();\n }", "title": "" }, { "docid": "ad37c0a4ee72b32f61d782fd76fea58b", "score": "0.5055921", "text": "public function rawSelectRow( array $fields, array $conditions = array(),\n\t\tarray $options = array(), $functionName = null );", "title": "" }, { "docid": "a77c77b093bf1cee92360f1d5d50d409", "score": "0.50468206", "text": "public function each($callback) { \n if(!is_callable($callback))\n throw new Exception(\"Callback is not a function\");\n \n $i=0;\n while($row = pg_fetch_array($this->result, null, PGSQL_ASSOC)) {\n $callback($row);\n }\n }", "title": "" }, { "docid": "7a12297c9fb0ef0d4e6de8a881936b47", "score": "0.50268", "text": "public function after(string $row_name, callable $callback)\n {\n $this->setQueryPosition(DBSchemaBuilder::POSITION_AFTER, $row_name);\n $callback($this);\n $this->setQueryPosition();\n }", "title": "" }, { "docid": "c130dd4ea942de33458aef367d6345d1", "score": "0.5026766", "text": "protected function wrap_fields() {\n\n\t\tif ( ! is_array( $this->fields ) || empty( $this->fields ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$clean_array = [];\n\t\t$self = $this;\n\t\tforeach ( $this->fields as $key => $data ) {\n\n\t\t\t$clean_array[ $key ] = function() use ( $key, $data, $self ) {\n\t\t\t\tif ( is_array( $data ) ) {\n\t\t\t\t\t$callback = ( ! empty( $data['callback'] ) ) ? $data['callback'] : null;\n\n\t\t\t\t\t/**\n\t\t\t\t\t * Capability to check required for the field\n\t\t\t\t\t *\n\t\t\t\t\t * @param string $capability The capability to check against to return the field\n\t\t\t\t\t * @param string $key The name of the field on the type\n\t\t\t\t\t * @param string $model_name Name of the model the filter is currently being executed in\n\t\t\t\t\t * @param mixed $data The un-modeled incoming data\n\t\t\t\t\t * @param string $visibility The visibility setting for this piece of data\n\t\t\t\t\t * @param null|int $owner The user ID for the owner of this piece of data\n\t\t\t\t\t * @param WP_User $current_user The current user for the session\n\t\t\t\t\t *\n\t\t\t\t\t * @return string\n\t\t\t\t\t */\n\t\t\t\t\t$cap_check = ( ! empty( $data['capability'] ) ) ? apply_filters( 'graphql_model_field_capability', $data['capability'], $key, $this->get_model_name(), $this->data, $this->visibility, $this->owner, $this->current_user ) : '';\n\t\t\t\t\tif ( ! empty( $cap_check ) ) {\n\t\t\t\t\t\tif ( ! current_user_can( $data['capability'] ) ) {\n\t\t\t\t\t\t\t$callback = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$callback = $data;\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * Filter to short circuit the callback for any field on a type. Returning anything\n\t\t\t\t * other than null will stop the callback for the field from executing, and will\n\t\t\t\t * return your data or execute your callback instead.\n\t\t\t\t *\n\t\t\t\t * @param string $key The name of the field on the type\n\t\t\t\t * @param string $model_name Name of the model the filter is currently being executed in\n\t\t\t\t * @param mixed $data The un-modeled incoming data\n\t\t\t\t * @param string $visibility The visibility setting for this piece of data\n\t\t\t\t * @param null|int $owner The user ID for the owner of this piece of data\n\t\t\t\t * @param WP_User $current_user The current user for the session\n\t\t\t\t *\n\t\t\t\t * @return null|callable|int|string|array|mixed\n\t\t\t\t */\n\t\t\t\t$pre = apply_filters( 'graphql_pre_return_field_from_model', null, $key, $this->get_model_name(), $this->data, $this->visibility, $this->owner, $this->current_user );\n\n\t\t\t\tif ( ! is_null( $pre ) ) {\n\t\t\t\t\t$result = $pre;\n\t\t\t\t} else {\n\t\t\t\t\tif ( is_callable( $callback ) ) {\n\t\t\t\t\t\t$self->setup();\n\t\t\t\t\t\t$field = call_user_func( $callback );\n\t\t\t\t\t\t$self->tear_down();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$field = $callback;\n\t\t\t\t\t}\n\n\t\t\t\t\t/**\n\t\t\t\t\t * Filter the data returned by the default callback for the field\n\t\t\t\t\t *\n\t\t\t\t\t * @param string $field The data returned from the callback\n\t\t\t\t\t * @param string $key The name of the field on the type\n\t\t\t\t\t * @param string $model_name Name of the model the filter is currently being executed in\n\t\t\t\t\t * @param mixed $data The un-modeled incoming data\n\t\t\t\t\t * @param string $visibility The visibility setting for this piece of data\n\t\t\t\t\t * @param null|int $owner The user ID for the owner of this piece of data\n\t\t\t\t\t * @param WP_User $current_user The current user for the session\n\t\t\t\t\t *\n\t\t\t\t\t * @return mixed\n\t\t\t\t\t */\n\t\t\t\t\t$result = apply_filters( 'graphql_return_field_from_model', $field, $key, $this->get_model_name(), $this->data, $this->visibility, $this->owner, $this->current_user );\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * Hook that fires after the data is returned for the field\n\t\t\t\t *\n\t\t\t\t * @param string $result The returned data for the field\n\t\t\t\t * @param string $key The name of the field on the type\n\t\t\t\t * @param string $model_name Name of the model the filter is currently being executed in\n\t\t\t\t * @param mixed $data The un-modeled incoming data\n\t\t\t\t * @param string $visibility The visibility setting for this piece of data\n\t\t\t\t * @param null|int $owner The user ID for the owner of this piece of data\n\t\t\t\t * @param WP_User $current_user The current user for the session\n\t\t\t\t */\n\t\t\t\tdo_action( 'graphql_after_return_field_from_model', $result, $key, $this->get_model_name(), $this->data, $this->visibility, $this->owner, $this->current_user );\n\n\t\t\t\treturn $result;\n\t\t\t};\n\t\t}\n\n\t\t$this->fields = $clean_array;\n\n\t}", "title": "" }, { "docid": "5459ad1b5970cff018811059ac7bbe14", "score": "0.50267386", "text": "public function selectRow( $fields = null, array $conditions = array(),\n\t\tarray $options = array(), $functionName = null );", "title": "" }, { "docid": "94cb0746b3dd147accdf8b24bc68a094", "score": "0.5001733", "text": "function LoadRowValues(&$rs) {\n\t\tglobal $conn;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->command_id->setDbValue($rs->fields('command_id'));\n\t\t$this->user_id->setDbValue($rs->fields('user_id'));\n\t\t$this->task_id->setDbValue($rs->fields('task_id'));\n\t\t$this->server_id->setDbValue($rs->fields('server_id'));\n\t\t$this->command_input->setDbValue($rs->fields('command_input'));\n\t\t$this->command_output->setDbValue($rs->fields('command_output'));\n\t\t$this->command_status->setDbValue($rs->fields('command_status'));\n\t\t$this->command_log->setDbValue($rs->fields('command_log'));\n\t\t$this->command_time->setDbValue($rs->fields('command_time'));\n\t}", "title": "" }, { "docid": "40ecf7711c9be5b099fb4936f07265a1", "score": "0.49996525", "text": "protected function onInput($row)\n {\n array_push($this->data, $row);\n }", "title": "" }, { "docid": "8f3cde7f9df9c9fdfce6a54c05e998d3", "score": "0.49954298", "text": "function db_DoSchema( &$row, &$schema ) {\n\tforeach( $row as $key => &$value ) {\n\t\tif ( isset($schema[$key]) ) {\n\t\t\tswitch( $schema[$key] ) {\n\t\t\t\t//case CMW_FIELD_TYPE_STRING: {\n\t\t\t\t//\t// Do nothing for Strings (they're already strings) //\n\t\t\t\t//\tbreak;\n\t\t\t\t//}\n\t\t\t\tcase CMW_FIELD_TYPE_INT: {\n\t\t\t\t\t$row[$key] = intval($value);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase CMW_FIELD_TYPE_FLOAT: {\n\t\t\t\t\t$row[$key] = floatval($value);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase CMW_FIELD_TYPE_DATETIME: {\n\t\t\t\t\t$row[$key] = strtotime($value);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase CMW_FIELD_TYPE_JSON: {\n\t\t\t\t\t$row[$key] = json_decode($value,true);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase CMW_FIELD_TYPE_IGNORE: {\n\t\t\t\t\t// NOTE: This is not ideal. You should instead use a modified query. //\n\t\t\t\t\tunset($row[$key]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t}\n}", "title": "" }, { "docid": "4796a3ef4401bb23cd737e435dc79b04", "score": "0.49825165", "text": "function LoadRowValues(&$rs) {\n\t\tglobal $conn;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->user_id->setDbValue($rs->fields('user_id'));\n\t\t$this->user_id_fb->setDbValue($rs->fields('user_id_fb'));\n\t\t$this->username->setDbValue($rs->fields('username'));\n\t\t$this->password->setDbValue($rs->fields('password'));\n\t\t$this->user_real_name->setDbValue($rs->fields('user_real_name'));\n\t\t$this->user_avatar->setDbValue($rs->fields('user_avatar'));\n\t\t$this->user_cover->setDbValue($rs->fields('user_cover'));\n\t\t$this->user_student_code->setDbValue($rs->fields('user_student_code'));\n\t\t$this->user_university->setDbValue($rs->fields('user_university'));\n\t\t$this->user_gender->setDbValue($rs->fields('user_gender'));\n\t\t$this->user_dob->setDbValue($rs->fields('user_dob'));\n\t\t$this->user_hometown->setDbValue($rs->fields('user_hometown'));\n\t\t$this->user_phone->setDbValue($rs->fields('user_phone'));\n\t\t$this->user_description->setDbValue($rs->fields('user_description'));\n\t\t$this->user_faculty->setDbValue($rs->fields('user_faculty'));\n\t\t$this->user_class->setDbValue($rs->fields('user_class'));\n\t\t$this->user_active->setDbValue($rs->fields('user_active'));\n\t\t$this->user_status->setDbValue($rs->fields('user_status'));\n\t\t$this->user_group->setDbValue($rs->fields('user_group'));\n\t\t$this->user_token->setDbValue($rs->fields('user_token'));\n\t\t$this->user_activator->setDbValue($rs->fields('user_activator'));\n\t\t$this->user_qoutes->setDbValue($rs->fields('user_qoutes'));\n\t\t$this->user_date_attend->setDbValue($rs->fields('user_date_attend'));\n\t}", "title": "" }, { "docid": "4796a3ef4401bb23cd737e435dc79b04", "score": "0.49825165", "text": "function LoadRowValues(&$rs) {\n\t\tglobal $conn;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->user_id->setDbValue($rs->fields('user_id'));\n\t\t$this->user_id_fb->setDbValue($rs->fields('user_id_fb'));\n\t\t$this->username->setDbValue($rs->fields('username'));\n\t\t$this->password->setDbValue($rs->fields('password'));\n\t\t$this->user_real_name->setDbValue($rs->fields('user_real_name'));\n\t\t$this->user_avatar->setDbValue($rs->fields('user_avatar'));\n\t\t$this->user_cover->setDbValue($rs->fields('user_cover'));\n\t\t$this->user_student_code->setDbValue($rs->fields('user_student_code'));\n\t\t$this->user_university->setDbValue($rs->fields('user_university'));\n\t\t$this->user_gender->setDbValue($rs->fields('user_gender'));\n\t\t$this->user_dob->setDbValue($rs->fields('user_dob'));\n\t\t$this->user_hometown->setDbValue($rs->fields('user_hometown'));\n\t\t$this->user_phone->setDbValue($rs->fields('user_phone'));\n\t\t$this->user_description->setDbValue($rs->fields('user_description'));\n\t\t$this->user_faculty->setDbValue($rs->fields('user_faculty'));\n\t\t$this->user_class->setDbValue($rs->fields('user_class'));\n\t\t$this->user_active->setDbValue($rs->fields('user_active'));\n\t\t$this->user_status->setDbValue($rs->fields('user_status'));\n\t\t$this->user_group->setDbValue($rs->fields('user_group'));\n\t\t$this->user_token->setDbValue($rs->fields('user_token'));\n\t\t$this->user_activator->setDbValue($rs->fields('user_activator'));\n\t\t$this->user_qoutes->setDbValue($rs->fields('user_qoutes'));\n\t\t$this->user_date_attend->setDbValue($rs->fields('user_date_attend'));\n\t}", "title": "" }, { "docid": "53812363acec85a995646210bd280b37", "score": "0.49786112", "text": "public static function process(callable $callback, array $types = [], array $search_pattern = [], $revision_tables = TRUE, $process_fields = TRUE, $exact_match = FALSE) {\n if (empty($types)) {\n $types = [\n 'text',\n 'text_long',\n 'text_with_summary',\n ];\n }\n $tables = self::getFieldTables($types, $revision_tables);\n\n foreach ($tables as $table_name => $columns) {\n if (self::$verbose) {\n self::printMessage(\"Processing table: $table_name\");\n }\n self::processTable($table_name, $columns, $search_pattern, $callback, $process_fields, $exact_match);\n }\n }", "title": "" }, { "docid": "41559232bd05818bfb1d823902f7e22c", "score": "0.4971243", "text": "private function rowsEnhanceWithColumnTypeInfo(): void\n {\n foreach ($this->rows as &$row)\n {\n if ($row['type']==='column')\n {\n if ($row['data']!==null)\n {\n $row['data1'] = $row['data']->getTypeInfo1();\n $row['data2'] = $row['data']->getTypeInfo2();\n }\n else\n {\n $row['data1'] = null;\n $row['data2'] = null;\n }\n\n if ($row['audit']!==null)\n {\n $row['audit1'] = $row['audit']->getTypeInfo1();\n $row['audit2'] = $row['audit']->getTypeInfo2();\n }\n else\n {\n $row['audit1'] = null;\n $row['audit2'] = null;\n }\n\n $row['rowspan'] = ($row['data2']===null && $row['audit2']===null) ? 1 : 2;\n }\n }\n }", "title": "" }, { "docid": "26e74bb6c02afbe177afd6746dfadd41", "score": "0.49674654", "text": "public function process()\n {\n $dataWriter = $this->dataWriterClass();\n $dataWriter->internalReferences();\n\n foreach ($this->rows() as $index => $row) {\n $this->data = $this->initialize($row)\n ->process()\n ->validate();\n\n $dataWriter->extractDetails($this->data)\n ->storeValidJson()\n ->storeInvalidJson();\n }\n\n $dataWriter->storeStatus('Completed');\n }", "title": "" }, { "docid": "4763414b17c4b3160be17f36ec6e3abc", "score": "0.4952274", "text": "public function updateRowData()\n\t\t{\n\t\t\t$this->row = array();\n\n\t\t\t// check that cursor points to valid record\n\t\t\tif( $this->cursor < count($this->rows) && $this->cursor > -1 )\n\t\t\t{\n\t\t\t\t// fill record values with values from records using cursor\n\t\t\t\t$this->row = $this->rows[$this->cursor];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// fill record fields with empty values\n\t\t\t\tforeach( $this->fields as $field )\n\t\t\t\t{\n\t\t\t\t\t$this->row[$field] = null;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "7eeea67d309bad16fc3c5a70905f8e59", "score": "0.49441263", "text": "function post_process_entry( $DG, $item, $field_id, $field, &$data, $entry_id = FALSE ) {\r\n\t}", "title": "" }, { "docid": "74b2cf25b134018cf7e2b27114d1b7ea", "score": "0.49428454", "text": "public function fieldData($table) {\n }", "title": "" }, { "docid": "729718a4b59c8fccfcc626a1de4265f7", "score": "0.49239832", "text": "protected function _prepareFields($fields)\n {\n return array_map(array($this, '_prepareCallback'), $fields);\n }", "title": "" }, { "docid": "64e868b1d34b8988ba81a3a2f513b29d", "score": "0.49208295", "text": "function Row_Rendering() {\r\n\r\n\t\t// Enter your code here\t\r\n\t}", "title": "" }, { "docid": "512c685f3166c108616f68792686abd1", "score": "0.49202764", "text": "public function selectFieldsRow( $fields = null, array $conditions = array(),\n\t\tarray $options = array(), $collapse = true, $functionName = null );", "title": "" }, { "docid": "944c3011f64fb0171c3bf128d9f9cc62", "score": "0.4899963", "text": "function handle_row($row ) {\n echo \"id: \" . $row[\"user_contact_data_id\"].\n \" - age: \" . $row[\"age\"].\n \" - cancer_category: \" . $row[\"cancer_category\"].\n \" - religion: \" . $row[\"religion\"].\n \" - treatment stage: \" . $row[\"treatment_stage\"].\n \" - role to cancer: \" . $row[\"role_to_cancer\"].\n \" - gender: \" . $row[\"gender\"].\n \"<br>\";\n\n}", "title": "" }, { "docid": "a3adcecd00834ca983988fa26153e852", "score": "0.4898975", "text": "function _processFields(&$data, $row) {\n // Make sure Joomla! does not strip off HTML markup\n $jinput = JFactory::getApplication()->input;\n $form = $jinput->get('jform', array(), 'RAW'); \n $data['description'] = $form['description'];\n \n $data['files'] = JResearchUtilities::processAttachments($data, 'projects');\n \n if($data['resethits'] == 1){\n $data['hits'] = 0;\n }else{\n $omittedFields[] = 'hits';\t\t\t \t\n }\n \n //Alias generation\n if(empty($data['alias'])){\n $data['alias'] = JResearchUtilities::alias($data['title']);\n }\n \n if(isset($data['resethits']) && $data['resethits'] == 1){\n $data['hits'] = 0;\n }else{\n $omittedFields[] = 'hits';\t\t\t \t\n }\n\n //Alias generation\n if(empty($data['alias'])){\n $data['alias'] = JFilterOutput::stringURLSafe($data['title']);\n }\n\n //Checking of research areas\n if(!empty($data['id_research_area'])){\n if(in_array('1', $data['id_research_area'])){\n $data['id_research_area'] = '1';\n }else{\n $data['id_research_area'] = implode(',', $data['id_research_area']);\n }\n }else{\n $data['id_research_area'] = '1';\n } \n }", "title": "" }, { "docid": "e9ca1558d7bd7d7ddeab92be4d30a149", "score": "0.489876", "text": "public function plugin_update_rows() {\n\n\n\t\t\tremove_action( \"after_plugin_row_{$this->plugin_slug}\", 'wp_plugin_update_row', 10 );\n\t\t\tadd_action( \"after_plugin_row_{$this->plugin_slug}\", array( $this, 'plugin_update_row' ), 10, 2 );\n\t\t}", "title": "" }, { "docid": "524ad552fc018d2631798a485a1de3d4", "score": "0.4891629", "text": "function LoadRowValues(&$rs) {\n\t\tglobal $conn;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->script_function_parameter_relation->setDbValue($rs->fields('script_function_parameter_relation'));\n\t\t$this->parameter_id->setDbValue($rs->fields('parameter_id'));\n\t\t$this->script_function_id->setDbValue($rs->fields('script_function_id'));\n\t}", "title": "" }, { "docid": "5d76b9b9aec6a2d08bfaef132e2664d4", "score": "0.48896462", "text": "public function hook_row_index($column_index,&$column_value) {\t \n\t \t//Your code here\n\t }", "title": "" }, { "docid": "5d76b9b9aec6a2d08bfaef132e2664d4", "score": "0.48896462", "text": "public function hook_row_index($column_index,&$column_value) {\t \n\t \t//Your code here\n\t }", "title": "" }, { "docid": "5d76b9b9aec6a2d08bfaef132e2664d4", "score": "0.48896462", "text": "public function hook_row_index($column_index,&$column_value) {\t \n\t \t//Your code here\n\t }", "title": "" }, { "docid": "5d76b9b9aec6a2d08bfaef132e2664d4", "score": "0.48896462", "text": "public function hook_row_index($column_index,&$column_value) {\t \n\t \t//Your code here\n\t }", "title": "" }, { "docid": "5622e17e04d4396b969bc720330fcec5", "score": "0.48858523", "text": "private function updateRow($row) {\n\t\t$this->id = $row[$this->id_field];\n\t\t/* Update the row to match the latest set of data. */\n\t\t$update = \"UPDATE $this->table SET \";\n\t\tforeach ($row as $key => $value) {\n\t\t\t$update .= \"$key = :$key,\";\n\t\t}\n\t\t$update = rtrim($update, \",\");\n\t\t$update .= \" WHERE $this->id_field = :$this->id_field;\";\n\t\ttry {\n\t\t\t$sth = $this->db->prepare($update);\n\t\t\t$sth->execute($row);\n\t\t\t$this->row = $row;\n\t\t} catch(PDOException $e) {\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "5a3a80a86718954818c9268975dee060", "score": "0.48814192", "text": "protected function _postFormatResultRow($row)\n {\n $sql = \"\n SELECT id_news, type_document FROM `\".\\EkvGlobalHelper::TABLE_NEWS_BASE.\"`\n WHERE\n id_news = '{$row['news_id']['value']}'\n LIMIT 1\n \";\n\n $news = $this->DB->RunSql($sql);\n $newsTypeDocument = explode(',', $news['type_document']);\n\n //get admins\n $sql = \"SELECT * FROM `\".\\EkvGlobalHelper::TABLE_BASE_USER.\"`\";\n $admins = $this->DB->query($sql);\n\n $adminLogins = [];\n foreach ($admins as $admin) {\n $adminLogins[$admin['login']] = $admin;\n }\n\n if ($this->_user && in_array($this->_user->login, array_keys($adminLogins))) {\n $adminTypes = explode(',', $adminLogins[$this->_user->login]['type_document_after_create']);\n array_intersect($adminTypes, $newsTypeDocument) ? $canBeEdited = true : $canBeEdited = false;\n } else {\n $stuffLangUkCurrentModer = $this->_tcPermContainer->checkStuffAccess('stuff_lang_uk');\n $langUkCurrentModer = $this->_tcPermContainer->checkLangAccess(LANG::LANG_ID_UK);\n\n $moderTypes = [];\n $stuffLangUkCurrentModer ? $moderTypes[] = 'R' : null;\n $langUkCurrentModer ? $moderTypes[] = 'N' : null;\n\n array_intersect($moderTypes, $newsTypeDocument) ? $canBeEdited = true : $canBeEdited = false;\n }\n\n if ($canBeEdited) {\n $row = $this->_applyTransTitleUrl($row);\n } else {\n foreach ($row[\"man_langs\"][\"data\"][\"langs\"] as $key => $item) {\n if ($item[\"lang_id\"] == 1) {\n $row[\"man_langs\"][\"data\"][\"langs\"][$key][\"has_access\"] = false;\n }\n }\n }\n\n $row = $this->_markTopImportanceNews($row);\n $row = $this->_prepareManDate($row);\n $row = $this->_prepareEditors($row);\n\n return $row;\n }", "title": "" }, { "docid": "7c3069a692c9c6a8ac4251f010d32002", "score": "0.48810375", "text": "public function mapFields() {\n\t\t$this->field1 = $this->itemID;\n\t}", "title": "" }, { "docid": "7f5be4c6baf01172446737ef37257de0", "score": "0.4879268", "text": "public function aggregateListRow()\n\t{\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "title": "" }, { "docid": "7f5be4c6baf01172446737ef37257de0", "score": "0.4879268", "text": "public function aggregateListRow()\n\t{\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "title": "" }, { "docid": "892f95af1d93342f6b2901a3ffbc7013", "score": "0.4878682", "text": "function SchemaRouter_RowColumns($Schema, $Table, $Row){\n \n global $ASTRIA;\n $PrimaryKey = $ASTRIA['Session']['Schema'][$Schema][$Table]['PRIMARY KEY'];\n $FirstTextField = $ASTRIA['Session']['Schema'][$Schema][$Table]['FirstTextField'];\n //TODO this could be an update to an existing row\n //TODO or a delete of a row\n //TODO default to returning the row\n //TODO this could be json\n //TODO or the contents of a dom object\n \n //Handle deletes\n if(\n isset($_GET['delete']) &&\n intval($_GET['delete']) != 0\n ){\n Event('Calling Delete Handler...');\n Query(\"DELETE FROM `\".Sanitize($Table).\"` WHERE `\".Sanitize($PrimaryKey).\"` = \".intval($_GET['delete']) ,$Schema);\n header('Location: /'.$Schema.'/'.$Table);\n exit;\n }else{\n Event('No Delete To Handle:');\n }\n \n //Handle insert posts\n if(\n isset($_GET['insert']) &&\n isset($_POST[$FirstTextField])\n ){\n Event('Calling Insert Handler...');\n include_once('SchemaRouter_RowColumns.Insert_Handler.php');\n SchemaRouter_RowColumns_Insert_Handler($Schema, $Table);\n exit;\n }else{\n Event('No Insert To Handle:');\n if(isset($_GET['verbose'])){\n pd($_POST);\n }\n }\n \n //Handle update posts\n if(\n isset($_GET['update']) &&\n isset($_POST[$PrimaryKey])\n ){\n Event('Calling Update Handler...');\n include_once('SchemaRouter_RowColumns.Update_Handler.php');\n SchemaRouter_RowColumns_Update_Handler($Schema, $Table);\n exit;\n }else{\n Event('No Update To Handle:');\n if(isset($_GET['verbose'])){\n pd($_POST);\n }\n }\n \n global $SchemaRouter_RowData, $ASTRIA;\n $PrimaryKey = $ASTRIA['Session']['Schema'][$Schema][$Table]['PRIMARY KEY'];\n $FirstTextField = $ASTRIA['Session']['Schema'][$Schema][$Table]['FirstTextField'];\n $Referencees = $ASTRIA['Session']['Schema'][$Schema][$Table]['Referencees'];\n $Columns = $ASTRIA['Session']['Schema'][$Schema][$Table];\n \n if(intval($Row)==0){\n $SchemaRouter_RowData = false;\n }else{\n\n //make sure the row is an integer or die.\n $TempRow = intval($Row);\n if($TempRow == 0){die('Invalid '.$FirstTextField.': '.$TempRow.'. Must be an integer.');}\n $Row = $TempRow;\n\n $Data = Query(\"SELECT * FROM `\".Sanitize($Table).\"` WHERE `\".SANITIZE($Columns['PRIMARY KEY']).\"` = \".intval($Row),$Schema); \n if(!(isset($Data[0]))){\n die('No Record Found For \"'.$Table.'\" Number \"'.$Row.'\"');\n }\n $SchemaRouter_RowData = FieldMask( $Data[0] );\n \n }\n \n //TODO make the title be more relevant \n TemplateBootstrap4($Table.' '.$Row,'SchemaRouter_RowColumns_Fields_BodyCallback(\"'.$Schema.'\", \"'.$Table.'\", \"'.$Row.'\");');\n exit;\n}", "title": "" }, { "docid": "cd5d08462535a4404107ffa87c19046f", "score": "0.48771745", "text": "public function UpdateRow()\n {\n\n $this->onBeforeUpdate();\n\n\n if (($validation = $this->Validate()) !== true) return $validation;\n\n\n\n $params = [];\n\n $param_value = [];\n\n $id_placeholder = \"\";\n\n\n foreach ($this->Fields() as $fld) :\n\n /**@var $fld Field*/\n\n if ( isset( $fld[Field::AUTO_INCREMENT] ) && $fld[Field::AUTO_INCREMENT] ) continue;\n\n if ($fld->ReadOnly) continue;\n\n\n\n $named_placeholder = $fld->WhereClausePrepareValue(\":{$fld->Name}\", true);\n\n\n if ($fld->IsID)\n\n $id_placeholder = $named_placeholder;\n\n\n $params[] = \"`{$fld->Name}` = {$named_placeholder}\";\n\n\n $param_value[$fld->Name] = [$fld->Value === '' ? null : $fld->Value, $fld->Type];\n\n\n endforeach;\n\n /** @noinspection SqlNoDataSourceInspection */\n /** @noinspection SqlResolve */\n $sql=\"UPDATE {$this->TableName()} SET \".join(\", \", $params).\" WHERE `{$this->ID['name']}` = {$id_placeholder}\";\n\n //dd($sql);\n\n //dd($param_value);\n\n $res = $this->ActiveConnection()->Cmd( $sql, $param_value ) ? Msg::DBOK : Msg::DBERR;\n\n $this->onSave($res);\n\n $this->onUpdate($res);\n\n return $res;\n }", "title": "" }, { "docid": "c6a95da79523ec3fe0a284cade8bef49", "score": "0.4876987", "text": "protected function handle_row_actions( $item, $column_name, $primary ) {\n\t\t$columns = $this->get_columns();\n\t\t$column_header = $columns[$column_name];\n\n\t\tif ( 'module_display' === $column_name ) {\n\t\t\t$column_name = 'module';\n\t\t} else if ( 'description' === $column_name ) {\n\t\t\t$column_name = 'code';\n\t\t}\n\n\t\tif ( 'details' === $column_name || 'id' === $column_name ) {\n\t\t\treturn;\n\t\t} else if ( 'timestamp' === $column_name ) {\n\t\t\tlist( $date, $time ) = explode( ' ', $item[$column_name] );\n\t\t\t$url = self::get_self_link( array( 'filters' => \"$column_name|$date%\" ) );\n\t\t\treturn '&nbsp;<a class=\"dashicons dashicons-filter\" href=\"' . esc_url( $url ) . '\" title=\"' . esc_attr__( 'Show only entries for this day', 'it-l10n-ithemes-security-pro' ) . '\">&nbsp;</a>';\n\t\t} else if ( empty( $item[$column_name] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( false === strpos( $item['code'], '::' ) ) {\n\t\t\t$code = $item['code'];\n\t\t\t$data = array();\n\t\t} else {\n\t\t\tlist( $code, $data ) = explode( '::', $item['code'], 2 );\n\t\t\t$data = explode( ',', $data );\n\t\t}\n\n\t\t$vars = apply_filters( \"itsec_logs_prepare_{$item['module']}_filter_row_action_for_{$column_name}\", array( 'filters' => \"{$column_name}|{$item[ $column_name ]}\"), $item, $code, $data );\n\t\t$url = $this->get_self_link( $vars );\n\n\t\t$out = '&nbsp;<a class=\"dashicons dashicons-filter\" href=\"' . esc_url( $url ) . '\" title=\"' . sprintf( esc_attr__( 'Show only entries for this %s', 'it-l10n-ithemes-security-pro' ), strtolower( $column_header ) ) . '\">&nbsp;</a>';\n\n\t\tif ( 'module' === $column_name ) {\n\t\t\t$out .= '<button type=\"button\" class=\"toggle-row\"><span class=\"screen-reader-text\">' . __( 'Show more details' ) . '</span></button>';\n\t\t}\n\n\t\treturn $out;\n\t}", "title": "" }, { "docid": "8d4ce730a2a4861a80ad0d0b06487ee5", "score": "0.48716548", "text": "public function hook_row_index($column_index, &$column_value)\n {\n //Your code here\n }", "title": "" }, { "docid": "315b113414e97ee48e11712970926f39", "score": "0.48695233", "text": "function EditRow() {\n\t\tglobal $conn, $Security, $Language, $members;\n\t\t$sFilter = $members->KeyFilter();\n\t\t$members->CurrentFilter = $sFilter;\n\t\t$sSql = $members->SQL();\n\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\n\t\t$rs = $conn->Execute($sSql);\n\t\t$conn->raiseErrorFn = '';\n\t\tif ($rs === FALSE)\n\t\t\treturn FALSE;\n\t\tif ($rs->EOF) {\n\t\t\t$EditRow = FALSE; // Update Failed\n\t\t} else {\n\n\t\t\t// Save old values\n\t\t\t$rsold =& $rs->fields;\n\t\t\t$rsnew = array();\n\n\t\t\t// first_name\n\t\t\t$members->first_name->SetDbValueDef($rsnew, $members->first_name->CurrentValue, NULL, FALSE);\n\n\t\t\t// last_name\n\t\t\t$members->last_name->SetDbValueDef($rsnew, $members->last_name->CurrentValue, NULL, FALSE);\n\n\t\t\t// first_name_eng\n\t\t\t$members->first_name_eng->SetDbValueDef($rsnew, $members->first_name_eng->CurrentValue, NULL, FALSE);\n\n\t\t\t// last_name_eng\n\t\t\t$members->last_name_eng->SetDbValueDef($rsnew, $members->last_name_eng->CurrentValue, NULL, FALSE);\n\n\t\t\t// username\n\t\t\t$members->username->SetDbValueDef($rsnew, $members->username->CurrentValue, NULL, FALSE);\n\n\t\t\t// password\n\t\t\t$members->password->SetDbValueDef($rsnew, $members->password->CurrentValue, NULL, FALSE);\n\n\t\t\t// phone_cell\n\t\t\t$members->phone_cell->SetDbValueDef($rsnew, $members->phone_cell->CurrentValue, NULL, FALSE);\n\n\t\t\t// phone_home\n\t\t\t$members->phone_home->SetDbValueDef($rsnew, $members->phone_home->CurrentValue, NULL, FALSE);\n\n\t\t\t// email\n\t\t\t$members->zemail->SetDbValueDef($rsnew, $members->zemail->CurrentValue, NULL, FALSE);\n\n\t\t\t// address\n\t\t\t$members->address->SetDbValueDef($rsnew, $members->address->CurrentValue, NULL, FALSE);\n\n\t\t\t// city\n\t\t\t$members->city->SetDbValueDef($rsnew, $members->city->CurrentValue, NULL, FALSE);\n\n\t\t\t// zip\n\t\t\t$members->zip->SetDbValueDef($rsnew, $members->zip->CurrentValue, NULL, FALSE);\n\n\t\t\t// gender\n\t\t\t$members->gender->SetDbValueDef($rsnew, $members->gender->CurrentValue, NULL, FALSE);\n\n\t\t\t// status_student\n\t\t\t$members->status_student->SetDbValueDef($rsnew, $members->status_student->CurrentValue, NULL, FALSE);\n\n\t\t\t// ethnicity_korean\n\t\t\t$members->ethnicity_korean->SetDbValueDef($rsnew, $members->ethnicity_korean->CurrentValue, NULL, FALSE);\n\n\t\t\t// language_korean\n\t\t\t$members->language_korean->SetDbValueDef($rsnew, $members->language_korean->CurrentValue, NULL, FALSE);\n\n\t\t\t// access_level\n\t\t\t$members->access_level->SetDbValueDef($rsnew, $members->access_level->CurrentValue, NULL, FALSE);\n\n\t\t\t// active_member\n\t\t\t$members->active_member->SetDbValueDef($rsnew, $members->active_member->CurrentValue, NULL, FALSE);\n\n\t\t\t// Call Row Updating event\n\t\t\t$bUpdateRow = $members->Row_Updating($rsold, $rsnew);\n\t\t\tif ($bUpdateRow) {\n\t\t\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\n\t\t\t\t$EditRow = $conn->Execute($members->UpdateSQL($rsnew));\n\t\t\t\t$conn->raiseErrorFn = '';\n\t\t\t} else {\n\t\t\t\tif ($members->CancelMessage <> \"\") {\n\t\t\t\t\t$this->setMessage($members->CancelMessage);\n\t\t\t\t\t$members->CancelMessage = \"\";\n\t\t\t\t} else {\n\t\t\t\t\t$this->setMessage($Language->Phrase(\"UpdateCancelled\"));\n\t\t\t\t}\n\t\t\t\t$EditRow = FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Call Row_Updated event\n\t\tif ($EditRow)\n\t\t\t$members->Row_Updated($rsold, $rsnew);\n\t\t$rs->Close();\n\t\treturn $EditRow;\n\t}", "title": "" }, { "docid": "f186bbce2c6075bd2df436c0a074e4bb", "score": "0.48650807", "text": "function adminlte_extra_fields_output($callback,$html,$owner_table,$owner_id){\n if(module_theme::get_config('adminlte_formstyle','table') == 'div'){\n $html = str_replace('tbody','div',$html);\n if(preg_match_all('#<tr([^>]*)>(.*)</tr>#imsU',$html,$matches)){\n // convert these into <divs>\n /*<div class=\"form-group\">\n <div class=\"input-group\">\n <span class=\"input-group-addon\"><span class=\"width1\">Name</span></span>\n\n <input type=\"text\" name=\"customer_name\" value=\"1 New Theme Test\" class=\"form-control plugin_form_required\">\n </div> <!-- /.input-group -->\n </div>*/\n foreach($matches[0] as $key => $val){\n preg_match('#<th[^>]*>(.*)</th>#imsU',$matches[2][$key],$title_match);\n preg_match('#<td[^>]*>(.*)</td>#imsU',$matches[2][$key],$body_match);\n $html = str_replace($val,'<div class=\"form-group extra-fields\" '.$matches[1][$key].'><div class=\"input-group\"><span class=\"input-group-addon\"><span class=\"width1\">'.$title_match[1].'</span></span>' .\n '<div class=\"form-control\">'.$body_match[1].'</div></div></div>'\n ,$html);\n }\n }\n }else if(module_theme::get_config('adminlte_formstyle','table') == 'long'){\n $html = str_replace('tbody','div',$html);\n if(preg_match_all('#<tr([^>]*)>(.*)</tr>#imsU',$html,$matches)){\n // convert these into <divs>\n /*<div class=\"form-group\">\n <div class=\"input-group\">\n <span class=\"input-group-addon\"><span class=\"width1\">Name</span></span>\n\n <input type=\"text\" name=\"customer_name\" value=\"1 New Theme Test\" class=\"form-control plugin_form_required\">\n </div> <!-- /.input-group -->\n </div>*/\n foreach($matches[0] as $key => $val){\n preg_match('#<th[^>]*>(.*)</th>#imsU',$matches[2][$key],$title_match);\n preg_match('#<td[^>]*>(.*)</td>#imsU',$matches[2][$key],$body_match);\n $html = str_replace($val,'<div class=\"form-group extra-fields\" '.$matches[1][$key].'><label>'.$title_match[1].'</label>' .\n '<div class=\"form-control\">'.$body_match[1].'</div></div>'\n ,$html);\n }\n }\n }\n return $html;\n}", "title": "" }, { "docid": "71079c3e00172d3328b0a82e1b8c5d9e", "score": "0.48633322", "text": "public function hook_row_index($column_index,&$column_value) {\n\t \t//Your code here\n\t }", "title": "" }, { "docid": "71079c3e00172d3328b0a82e1b8c5d9e", "score": "0.48633322", "text": "public function hook_row_index($column_index,&$column_value) {\n\t \t//Your code here\n\t }", "title": "" }, { "docid": "71079c3e00172d3328b0a82e1b8c5d9e", "score": "0.48633322", "text": "public function hook_row_index($column_index,&$column_value) {\n\t \t//Your code here\n\t }", "title": "" }, { "docid": "37e3aa93d137ec7c17b95ba1078afcc8", "score": "0.48564595", "text": "function processDatamap_postProcessFieldArray($status, $table, $id, &$fieldArray,&$obj) {\n\t\t\t\t\t\t//Further\n\t\t\t\t\t\t//processing\n\t\t\t\t\t\t//only if the\n\t\t\t\t\t\t//record is a\n\t\t\t\t\t\t//news item and\n\t\t\t\t\t\t//the Send\n\t\t\t\t\t\t//Newsletter\n\t\t\t\t\t\t//field is on\n\t\t\t\t\t\tif('tx_jobbank_list'==\t$table){\n\t\t\t\t\t\t\t\t$fieldArray['starttime']=empty($fieldArray['starttime'])?time():$fieldArray['starttime'];\n\t\t\t\t\t\t\t\t//var_dump($fieldArray);\n\t\t\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "c6e3bcf3b921df6252169723ce6fd16f", "score": "0.48557422", "text": "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t$this->ViewUrl = $this->GetViewUrl();\r\n\t\t$this->EditUrl = $this->GetEditUrl();\r\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\r\n\t\t$this->CopyUrl = $this->GetCopyUrl();\r\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\r\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\r\n\r\n\t\t// Convert decimal values if posted back\r\n\t\tif ($this->fld_driver_rating->FormValue == $this->fld_driver_rating->CurrentValue && is_numeric(ew_StrToFloat($this->fld_driver_rating->CurrentValue)))\r\n\t\t\t$this->fld_driver_rating->CurrentValue = ew_StrToFloat($this->fld_driver_rating->CurrentValue);\r\n\r\n\t\t// Convert decimal values if posted back\r\n\t\tif ($this->fld_total_fare->FormValue == $this->fld_total_fare->CurrentValue && is_numeric(ew_StrToFloat($this->fld_total_fare->CurrentValue)))\r\n\t\t\t$this->fld_total_fare->CurrentValue = ew_StrToFloat($this->fld_total_fare->CurrentValue);\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// fld_booking_ai_id\r\n\t\t// fld_customer_token\r\n\r\n\t\t$this->fld_customer_token->CellCssStyle = \"white-space: nowrap;\";\r\n\r\n\t\t// fld_pickup_point\r\n\t\t// fld_customer_name\r\n\t\t// fld_mobile_no\r\n\t\t// fld_booking_datetime\r\n\t\t// fld_coupon_code\r\n\t\t// fld_driver_rating\r\n\t\t// fld_customer_feedback\r\n\t\t// fld_is_cancelled\r\n\t\t// fld_total_fare\r\n\t\t// fld_booked_driver_id\r\n\t\t// fld_is_approved\r\n\t\t// fld_is_completed\r\n\t\t// fld_is_active\r\n\t\t// fld_created_on\r\n\t\t// fld_dropoff_point\r\n\t\t// fld_estimated_time\r\n\t\t// fld_estimated_fare\r\n\t\t// fld_brn_no\r\n\t\t// fld_journey_type\r\n\t\t// fld_vehicle_type\r\n\t\t// fld_vehicle_mode\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// fld_booking_ai_id\r\n\t\t\t$this->fld_booking_ai_id->ViewValue = $this->fld_booking_ai_id->CurrentValue;\r\n\t\t\t$this->fld_booking_ai_id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_pickup_point\r\n\t\t\t$this->fld_pickup_point->ViewValue = $this->fld_pickup_point->CurrentValue;\r\n\t\t\t$this->fld_pickup_point->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_customer_name\r\n\t\t\t$this->fld_customer_name->ViewValue = $this->fld_customer_name->CurrentValue;\r\n\t\t\t$this->fld_customer_name->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_mobile_no\r\n\t\t\t$this->fld_mobile_no->ViewValue = $this->fld_mobile_no->CurrentValue;\r\n\t\t\t$this->fld_mobile_no->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_booking_datetime\r\n\t\t\t$this->fld_booking_datetime->ViewValue = $this->fld_booking_datetime->CurrentValue;\r\n\t\t\t$this->fld_booking_datetime->ViewValue = ew_FormatDateTime($this->fld_booking_datetime->ViewValue, 9);\r\n\t\t\t$this->fld_booking_datetime->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_coupon_code\r\n\t\t\t$this->fld_coupon_code->ViewValue = $this->fld_coupon_code->CurrentValue;\r\n\t\t\t$this->fld_coupon_code->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_driver_rating\r\n\t\t\t$this->fld_driver_rating->ViewValue = $this->fld_driver_rating->CurrentValue;\r\n\t\t\t$this->fld_driver_rating->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_customer_feedback\r\n\t\t\t$this->fld_customer_feedback->ViewValue = $this->fld_customer_feedback->CurrentValue;\r\n\t\t\t$this->fld_customer_feedback->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_is_cancelled\r\n\t\t\tif (ew_ConvertToBool($this->fld_is_cancelled->CurrentValue)) {\r\n\t\t\t\t$this->fld_is_cancelled->ViewValue = $this->fld_is_cancelled->FldTagCaption(1) <> \"\" ? $this->fld_is_cancelled->FldTagCaption(1) : \"1\";\r\n\t\t\t} else {\r\n\t\t\t\t$this->fld_is_cancelled->ViewValue = $this->fld_is_cancelled->FldTagCaption(2) <> \"\" ? $this->fld_is_cancelled->FldTagCaption(2) : \"0\";\r\n\t\t\t}\r\n\t\t\t$this->fld_is_cancelled->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_total_fare\r\n\t\t\t$this->fld_total_fare->ViewValue = $this->fld_total_fare->CurrentValue;\r\n\t\t\t$this->fld_total_fare->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_booked_driver_id\r\n\t\t\tif (strval($this->fld_booked_driver_id->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`fld_driver_ai_id`\" . ew_SearchString(\"=\", $this->fld_booked_driver_id->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `fld_driver_ai_id`, `fld_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tbl_driver_info`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->fld_booked_driver_id, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->fld_booked_driver_id->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->fld_booked_driver_id->ViewValue = $this->fld_booked_driver_id->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->fld_booked_driver_id->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->fld_booked_driver_id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_is_approved\r\n\t\t\tif (ew_ConvertToBool($this->fld_is_approved->CurrentValue)) {\r\n\t\t\t\t$this->fld_is_approved->ViewValue = $this->fld_is_approved->FldTagCaption(1) <> \"\" ? $this->fld_is_approved->FldTagCaption(1) : \"1\";\r\n\t\t\t} else {\r\n\t\t\t\t$this->fld_is_approved->ViewValue = $this->fld_is_approved->FldTagCaption(2) <> \"\" ? $this->fld_is_approved->FldTagCaption(2) : \"0\";\r\n\t\t\t}\r\n\t\t\t$this->fld_is_approved->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_is_completed\r\n\t\t\tif (ew_ConvertToBool($this->fld_is_completed->CurrentValue)) {\r\n\t\t\t\t$this->fld_is_completed->ViewValue = $this->fld_is_completed->FldTagCaption(1) <> \"\" ? $this->fld_is_completed->FldTagCaption(1) : \"1\";\r\n\t\t\t} else {\r\n\t\t\t\t$this->fld_is_completed->ViewValue = $this->fld_is_completed->FldTagCaption(2) <> \"\" ? $this->fld_is_completed->FldTagCaption(2) : \"0\";\r\n\t\t\t}\r\n\t\t\t$this->fld_is_completed->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_is_active\r\n\t\t\tif (ew_ConvertToBool($this->fld_is_active->CurrentValue)) {\r\n\t\t\t\t$this->fld_is_active->ViewValue = $this->fld_is_active->FldTagCaption(1) <> \"\" ? $this->fld_is_active->FldTagCaption(1) : \"1\";\r\n\t\t\t} else {\r\n\t\t\t\t$this->fld_is_active->ViewValue = $this->fld_is_active->FldTagCaption(2) <> \"\" ? $this->fld_is_active->FldTagCaption(2) : \"0\";\r\n\t\t\t}\r\n\t\t\t$this->fld_is_active->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_created_on\r\n\t\t\t$this->fld_created_on->ViewValue = $this->fld_created_on->CurrentValue;\r\n\t\t\t$this->fld_created_on->ViewValue = ew_FormatDateTime($this->fld_created_on->ViewValue, 9);\r\n\t\t\t$this->fld_created_on->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_dropoff_point\r\n\t\t\t$this->fld_dropoff_point->ViewValue = $this->fld_dropoff_point->CurrentValue;\r\n\t\t\t$this->fld_dropoff_point->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_estimated_time\r\n\t\t\t$this->fld_estimated_time->ViewValue = $this->fld_estimated_time->CurrentValue;\r\n\t\t\t$this->fld_estimated_time->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_estimated_fare\r\n\t\t\t$this->fld_estimated_fare->ViewValue = $this->fld_estimated_fare->CurrentValue;\r\n\t\t\t$this->fld_estimated_fare->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_brn_no\r\n\t\t\t$this->fld_brn_no->ViewValue = $this->fld_brn_no->CurrentValue;\r\n\t\t\t$this->fld_brn_no->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_journey_type\r\n\t\t\tif (strval($this->fld_journey_type->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->fld_journey_type->CurrentValue) {\r\n\t\t\t\t\tcase $this->fld_journey_type->FldTagValue(1):\r\n\t\t\t\t\t\t$this->fld_journey_type->ViewValue = $this->fld_journey_type->FldTagCaption(1) <> \"\" ? $this->fld_journey_type->FldTagCaption(1) : $this->fld_journey_type->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->fld_journey_type->FldTagValue(2):\r\n\t\t\t\t\t\t$this->fld_journey_type->ViewValue = $this->fld_journey_type->FldTagCaption(2) <> \"\" ? $this->fld_journey_type->FldTagCaption(2) : $this->fld_journey_type->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->fld_journey_type->FldTagValue(3):\r\n\t\t\t\t\t\t$this->fld_journey_type->ViewValue = $this->fld_journey_type->FldTagCaption(3) <> \"\" ? $this->fld_journey_type->FldTagCaption(3) : $this->fld_journey_type->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->fld_journey_type->ViewValue = $this->fld_journey_type->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->fld_journey_type->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->fld_journey_type->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_vehicle_type\r\n\t\t\tif (strval($this->fld_vehicle_type->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->fld_vehicle_type->CurrentValue) {\r\n\t\t\t\t\tcase $this->fld_vehicle_type->FldTagValue(1):\r\n\t\t\t\t\t\t$this->fld_vehicle_type->ViewValue = $this->fld_vehicle_type->FldTagCaption(1) <> \"\" ? $this->fld_vehicle_type->FldTagCaption(1) : $this->fld_vehicle_type->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->fld_vehicle_type->FldTagValue(2):\r\n\t\t\t\t\t\t$this->fld_vehicle_type->ViewValue = $this->fld_vehicle_type->FldTagCaption(2) <> \"\" ? $this->fld_vehicle_type->FldTagCaption(2) : $this->fld_vehicle_type->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->fld_vehicle_type->FldTagValue(3):\r\n\t\t\t\t\t\t$this->fld_vehicle_type->ViewValue = $this->fld_vehicle_type->FldTagCaption(3) <> \"\" ? $this->fld_vehicle_type->FldTagCaption(3) : $this->fld_vehicle_type->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->fld_vehicle_type->FldTagValue(4):\r\n\t\t\t\t\t\t$this->fld_vehicle_type->ViewValue = $this->fld_vehicle_type->FldTagCaption(4) <> \"\" ? $this->fld_vehicle_type->FldTagCaption(4) : $this->fld_vehicle_type->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->fld_vehicle_type->ViewValue = $this->fld_vehicle_type->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->fld_vehicle_type->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->fld_vehicle_type->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_vehicle_mode\r\n\t\t\tif (strval($this->fld_vehicle_mode->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->fld_vehicle_mode->CurrentValue) {\r\n\t\t\t\t\tcase $this->fld_vehicle_mode->FldTagValue(1):\r\n\t\t\t\t\t\t$this->fld_vehicle_mode->ViewValue = $this->fld_vehicle_mode->FldTagCaption(1) <> \"\" ? $this->fld_vehicle_mode->FldTagCaption(1) : $this->fld_vehicle_mode->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->fld_vehicle_mode->FldTagValue(2):\r\n\t\t\t\t\t\t$this->fld_vehicle_mode->ViewValue = $this->fld_vehicle_mode->FldTagCaption(2) <> \"\" ? $this->fld_vehicle_mode->FldTagCaption(2) : $this->fld_vehicle_mode->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->fld_vehicle_mode->ViewValue = $this->fld_vehicle_mode->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->fld_vehicle_mode->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->fld_vehicle_mode->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_booking_ai_id\r\n\t\t\t$this->fld_booking_ai_id->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_booking_ai_id->HrefValue = \"\";\r\n\t\t\t$this->fld_booking_ai_id->TooltipValue = \"\";\r\n\r\n\t\t\t// fld_pickup_point\r\n\t\t\t$this->fld_pickup_point->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_pickup_point->HrefValue = \"\";\r\n\t\t\t$this->fld_pickup_point->TooltipValue = \"\";\r\n\r\n\t\t\t// fld_customer_name\r\n\t\t\t$this->fld_customer_name->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_customer_name->HrefValue = \"\";\r\n\t\t\t$this->fld_customer_name->TooltipValue = \"\";\r\n\r\n\t\t\t// fld_mobile_no\r\n\t\t\t$this->fld_mobile_no->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_mobile_no->HrefValue = \"\";\r\n\t\t\t$this->fld_mobile_no->TooltipValue = \"\";\r\n\r\n\t\t\t// fld_booking_datetime\r\n\t\t\t$this->fld_booking_datetime->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_booking_datetime->HrefValue = \"\";\r\n\t\t\t$this->fld_booking_datetime->TooltipValue = \"\";\r\n\r\n\t\t\t// fld_coupon_code\r\n\t\t\t$this->fld_coupon_code->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_coupon_code->HrefValue = \"\";\r\n\t\t\t$this->fld_coupon_code->TooltipValue = \"\";\r\n\r\n\t\t\t// fld_driver_rating\r\n\t\t\t$this->fld_driver_rating->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_driver_rating->HrefValue = \"\";\r\n\t\t\t$this->fld_driver_rating->TooltipValue = \"\";\r\n\r\n\t\t\t// fld_customer_feedback\r\n\t\t\t$this->fld_customer_feedback->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_customer_feedback->HrefValue = \"\";\r\n\t\t\t$this->fld_customer_feedback->TooltipValue = \"\";\r\n\r\n\t\t\t// fld_is_cancelled\r\n\t\t\t$this->fld_is_cancelled->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_is_cancelled->HrefValue = \"\";\r\n\t\t\t$this->fld_is_cancelled->TooltipValue = \"\";\r\n\r\n\t\t\t// fld_total_fare\r\n\t\t\t$this->fld_total_fare->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_total_fare->HrefValue = \"\";\r\n\t\t\t$this->fld_total_fare->TooltipValue = \"\";\r\n\r\n\t\t\t// fld_booked_driver_id\r\n\t\t\t$this->fld_booked_driver_id->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_booked_driver_id->HrefValue = \"\";\r\n\t\t\t$this->fld_booked_driver_id->TooltipValue = \"\";\r\n\r\n\t\t\t// fld_is_approved\r\n\t\t\t$this->fld_is_approved->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_is_approved->HrefValue = \"\";\r\n\t\t\t$this->fld_is_approved->TooltipValue = \"\";\r\n\r\n\t\t\t// fld_is_completed\r\n\t\t\t$this->fld_is_completed->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_is_completed->HrefValue = \"\";\r\n\t\t\t$this->fld_is_completed->TooltipValue = \"\";\r\n\r\n\t\t\t// fld_is_active\r\n\t\t\t$this->fld_is_active->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_is_active->HrefValue = \"\";\r\n\t\t\t$this->fld_is_active->TooltipValue = \"\";\r\n\r\n\t\t\t// fld_created_on\r\n\t\t\t$this->fld_created_on->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_created_on->HrefValue = \"\";\r\n\t\t\t$this->fld_created_on->TooltipValue = \"\";\r\n\r\n\t\t\t// fld_dropoff_point\r\n\t\t\t$this->fld_dropoff_point->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_dropoff_point->HrefValue = \"\";\r\n\t\t\t$this->fld_dropoff_point->TooltipValue = \"\";\r\n\r\n\t\t\t// fld_estimated_time\r\n\t\t\t$this->fld_estimated_time->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_estimated_time->HrefValue = \"\";\r\n\t\t\t$this->fld_estimated_time->TooltipValue = \"\";\r\n\r\n\t\t\t// fld_estimated_fare\r\n\t\t\t$this->fld_estimated_fare->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_estimated_fare->HrefValue = \"\";\r\n\t\t\t$this->fld_estimated_fare->TooltipValue = \"\";\r\n\r\n\t\t\t// fld_brn_no\r\n\t\t\t$this->fld_brn_no->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_brn_no->HrefValue = \"\";\r\n\t\t\t$this->fld_brn_no->TooltipValue = \"\";\r\n\r\n\t\t\t// fld_journey_type\r\n\t\t\t$this->fld_journey_type->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_journey_type->HrefValue = \"\";\r\n\t\t\t$this->fld_journey_type->TooltipValue = \"\";\r\n\r\n\t\t\t// fld_vehicle_type\r\n\t\t\t$this->fld_vehicle_type->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_vehicle_type->HrefValue = \"\";\r\n\t\t\t$this->fld_vehicle_type->TooltipValue = \"\";\r\n\r\n\t\t\t// fld_vehicle_mode\r\n\t\t\t$this->fld_vehicle_mode->LinkCustomAttributes = \"\";\r\n\t\t\t$this->fld_vehicle_mode->HrefValue = \"\";\r\n\t\t\t$this->fld_vehicle_mode->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\r\n\r\n\t\t\t// fld_booking_ai_id\r\n\t\t\t$this->fld_booking_ai_id->EditCustomAttributes = \"\";\r\n\t\t\t$this->fld_booking_ai_id->EditValue = ew_HtmlEncode($this->fld_booking_ai_id->AdvancedSearch->SearchValue);\r\n\t\t\t$this->fld_booking_ai_id->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->fld_booking_ai_id->FldCaption()));\r\n\r\n\t\t\t// fld_pickup_point\r\n\t\t\t$this->fld_pickup_point->EditCustomAttributes = \"\";\r\n\t\t\t$this->fld_pickup_point->EditValue = ew_HtmlEncode($this->fld_pickup_point->AdvancedSearch->SearchValue);\r\n\t\t\t$this->fld_pickup_point->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->fld_pickup_point->FldCaption()));\r\n\r\n\t\t\t// fld_customer_name\r\n\t\t\t$this->fld_customer_name->EditCustomAttributes = \"\";\r\n\t\t\t$this->fld_customer_name->EditValue = ew_HtmlEncode($this->fld_customer_name->AdvancedSearch->SearchValue);\r\n\t\t\t$this->fld_customer_name->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->fld_customer_name->FldCaption()));\r\n\r\n\t\t\t// fld_mobile_no\r\n\t\t\t$this->fld_mobile_no->EditCustomAttributes = \"\";\r\n\t\t\t$this->fld_mobile_no->EditValue = ew_HtmlEncode($this->fld_mobile_no->AdvancedSearch->SearchValue);\r\n\t\t\t$this->fld_mobile_no->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->fld_mobile_no->FldCaption()));\r\n\r\n\t\t\t// fld_booking_datetime\r\n\t\t\t$this->fld_booking_datetime->EditCustomAttributes = \"\";\r\n\t\t\t$this->fld_booking_datetime->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->fld_booking_datetime->AdvancedSearch->SearchValue, 9), 9));\r\n\t\t\t$this->fld_booking_datetime->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->fld_booking_datetime->FldCaption()));\r\n\r\n\t\t\t// fld_coupon_code\r\n\t\t\t$this->fld_coupon_code->EditCustomAttributes = \"\";\r\n\t\t\t$this->fld_coupon_code->EditValue = ew_HtmlEncode($this->fld_coupon_code->AdvancedSearch->SearchValue);\r\n\t\t\t$this->fld_coupon_code->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->fld_coupon_code->FldCaption()));\r\n\r\n\t\t\t// fld_driver_rating\r\n\t\t\t$this->fld_driver_rating->EditCustomAttributes = \"\";\r\n\t\t\t$this->fld_driver_rating->EditValue = ew_HtmlEncode($this->fld_driver_rating->AdvancedSearch->SearchValue);\r\n\t\t\t$this->fld_driver_rating->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->fld_driver_rating->FldCaption()));\r\n\r\n\t\t\t// fld_customer_feedback\r\n\t\t\t$this->fld_customer_feedback->EditCustomAttributes = \"\";\r\n\t\t\t$this->fld_customer_feedback->EditValue = ew_HtmlEncode($this->fld_customer_feedback->AdvancedSearch->SearchValue);\r\n\t\t\t$this->fld_customer_feedback->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->fld_customer_feedback->FldCaption()));\r\n\r\n\t\t\t// fld_is_cancelled\r\n\t\t\t$this->fld_is_cancelled->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->fld_is_cancelled->FldTagValue(1), $this->fld_is_cancelled->FldTagCaption(1) <> \"\" ? $this->fld_is_cancelled->FldTagCaption(1) : $this->fld_is_cancelled->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->fld_is_cancelled->FldTagValue(2), $this->fld_is_cancelled->FldTagCaption(2) <> \"\" ? $this->fld_is_cancelled->FldTagCaption(2) : $this->fld_is_cancelled->FldTagValue(2));\r\n\t\t\t$this->fld_is_cancelled->EditValue = $arwrk;\r\n\r\n\t\t\t// fld_total_fare\r\n\t\t\t$this->fld_total_fare->EditCustomAttributes = \"\";\r\n\t\t\t$this->fld_total_fare->EditValue = ew_HtmlEncode($this->fld_total_fare->AdvancedSearch->SearchValue);\r\n\t\t\t$this->fld_total_fare->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->fld_total_fare->FldCaption()));\r\n\r\n\t\t\t// fld_booked_driver_id\r\n\t\t\t$this->fld_booked_driver_id->EditCustomAttributes = \"\";\r\n\r\n\t\t\t// fld_is_approved\r\n\t\t\t$this->fld_is_approved->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->fld_is_approved->FldTagValue(1), $this->fld_is_approved->FldTagCaption(1) <> \"\" ? $this->fld_is_approved->FldTagCaption(1) : $this->fld_is_approved->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->fld_is_approved->FldTagValue(2), $this->fld_is_approved->FldTagCaption(2) <> \"\" ? $this->fld_is_approved->FldTagCaption(2) : $this->fld_is_approved->FldTagValue(2));\r\n\t\t\t$this->fld_is_approved->EditValue = $arwrk;\r\n\r\n\t\t\t// fld_is_completed\r\n\t\t\t$this->fld_is_completed->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->fld_is_completed->FldTagValue(1), $this->fld_is_completed->FldTagCaption(1) <> \"\" ? $this->fld_is_completed->FldTagCaption(1) : $this->fld_is_completed->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->fld_is_completed->FldTagValue(2), $this->fld_is_completed->FldTagCaption(2) <> \"\" ? $this->fld_is_completed->FldTagCaption(2) : $this->fld_is_completed->FldTagValue(2));\r\n\t\t\t$this->fld_is_completed->EditValue = $arwrk;\r\n\r\n\t\t\t// fld_is_active\r\n\t\t\t$this->fld_is_active->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->fld_is_active->FldTagValue(1), $this->fld_is_active->FldTagCaption(1) <> \"\" ? $this->fld_is_active->FldTagCaption(1) : $this->fld_is_active->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->fld_is_active->FldTagValue(2), $this->fld_is_active->FldTagCaption(2) <> \"\" ? $this->fld_is_active->FldTagCaption(2) : $this->fld_is_active->FldTagValue(2));\r\n\t\t\t$this->fld_is_active->EditValue = $arwrk;\r\n\r\n\t\t\t// fld_created_on\r\n\t\t\t$this->fld_created_on->EditCustomAttributes = \"\";\r\n\t\t\t$this->fld_created_on->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->fld_created_on->AdvancedSearch->SearchValue, 9), 9));\r\n\t\t\t$this->fld_created_on->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->fld_created_on->FldCaption()));\r\n\r\n\t\t\t// fld_dropoff_point\r\n\t\t\t$this->fld_dropoff_point->EditCustomAttributes = \"\";\r\n\t\t\t$this->fld_dropoff_point->EditValue = ew_HtmlEncode($this->fld_dropoff_point->AdvancedSearch->SearchValue);\r\n\t\t\t$this->fld_dropoff_point->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->fld_dropoff_point->FldCaption()));\r\n\r\n\t\t\t// fld_estimated_time\r\n\t\t\t$this->fld_estimated_time->EditCustomAttributes = \"\";\r\n\t\t\t$this->fld_estimated_time->EditValue = ew_HtmlEncode($this->fld_estimated_time->AdvancedSearch->SearchValue);\r\n\t\t\t$this->fld_estimated_time->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->fld_estimated_time->FldCaption()));\r\n\r\n\t\t\t// fld_estimated_fare\r\n\t\t\t$this->fld_estimated_fare->EditCustomAttributes = \"\";\r\n\t\t\t$this->fld_estimated_fare->EditValue = ew_HtmlEncode($this->fld_estimated_fare->AdvancedSearch->SearchValue);\r\n\t\t\t$this->fld_estimated_fare->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->fld_estimated_fare->FldCaption()));\r\n\r\n\t\t\t// fld_brn_no\r\n\t\t\t$this->fld_brn_no->EditCustomAttributes = \"\";\r\n\t\t\t$this->fld_brn_no->EditValue = ew_HtmlEncode($this->fld_brn_no->AdvancedSearch->SearchValue);\r\n\t\t\t$this->fld_brn_no->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->fld_brn_no->FldCaption()));\r\n\r\n\t\t\t// fld_journey_type\r\n\t\t\t$this->fld_journey_type->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->fld_journey_type->FldTagValue(1), $this->fld_journey_type->FldTagCaption(1) <> \"\" ? $this->fld_journey_type->FldTagCaption(1) : $this->fld_journey_type->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->fld_journey_type->FldTagValue(2), $this->fld_journey_type->FldTagCaption(2) <> \"\" ? $this->fld_journey_type->FldTagCaption(2) : $this->fld_journey_type->FldTagValue(2));\r\n\t\t\t$arwrk[] = array($this->fld_journey_type->FldTagValue(3), $this->fld_journey_type->FldTagCaption(3) <> \"\" ? $this->fld_journey_type->FldTagCaption(3) : $this->fld_journey_type->FldTagValue(3));\r\n\t\t\t$this->fld_journey_type->EditValue = $arwrk;\r\n\r\n\t\t\t// fld_vehicle_type\r\n\t\t\t$this->fld_vehicle_type->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->fld_vehicle_type->FldTagValue(1), $this->fld_vehicle_type->FldTagCaption(1) <> \"\" ? $this->fld_vehicle_type->FldTagCaption(1) : $this->fld_vehicle_type->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->fld_vehicle_type->FldTagValue(2), $this->fld_vehicle_type->FldTagCaption(2) <> \"\" ? $this->fld_vehicle_type->FldTagCaption(2) : $this->fld_vehicle_type->FldTagValue(2));\r\n\t\t\t$arwrk[] = array($this->fld_vehicle_type->FldTagValue(3), $this->fld_vehicle_type->FldTagCaption(3) <> \"\" ? $this->fld_vehicle_type->FldTagCaption(3) : $this->fld_vehicle_type->FldTagValue(3));\r\n\t\t\t$arwrk[] = array($this->fld_vehicle_type->FldTagValue(4), $this->fld_vehicle_type->FldTagCaption(4) <> \"\" ? $this->fld_vehicle_type->FldTagCaption(4) : $this->fld_vehicle_type->FldTagValue(4));\r\n\t\t\t$this->fld_vehicle_type->EditValue = $arwrk;\r\n\r\n\t\t\t// fld_vehicle_mode\r\n\t\t\t$this->fld_vehicle_mode->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->fld_vehicle_mode->FldTagValue(1), $this->fld_vehicle_mode->FldTagCaption(1) <> \"\" ? $this->fld_vehicle_mode->FldTagCaption(1) : $this->fld_vehicle_mode->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->fld_vehicle_mode->FldTagValue(2), $this->fld_vehicle_mode->FldTagCaption(2) <> \"\" ? $this->fld_vehicle_mode->FldTagCaption(2) : $this->fld_vehicle_mode->FldTagValue(2));\r\n\t\t\t$this->fld_vehicle_mode->EditValue = $arwrk;\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "title": "" }, { "docid": "d58208516c169d0334e99f2fbc05a649", "score": "0.48544875", "text": "public function fieldsFor($id, $obj, callable $callback){\n\t\t$this->context->fieldsFor($id, $obj, $callback);\n\t}", "title": "" }, { "docid": "738698e1c86595f1b989f51f5030dca5", "score": "0.48527747", "text": "function LoadRowValues(&$rs) {\n\t\tglobal $conn;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->ID->setDbValue($rs->fields('ID'));\n\t\t$this->ApplicantName->setDbValue($rs->fields('ApplicantName'));\n\t\t$this->Nationality->setDbValue($rs->fields('Nationality'));\n\t\t$this->_Language->setDbValue($rs->fields('Language'));\n\t\t$this->College1->setDbValue($rs->fields('College1'));\n\t\t$this->College1SentDate->setDbValue($rs->fields('College1SentDate'));\n\t\t$this->College1Status->setDbValue($rs->fields('College1Status'));\n\t\t$this->College1ReplyDate->setDbValue($rs->fields('College1ReplyDate'));\n\t\t$this->College2->setDbValue($rs->fields('College2'));\n\t\t$this->College2SentDate->setDbValue($rs->fields('College2SentDate'));\n\t\t$this->College2Status->setDbValue($rs->fields('College2Status'));\n\t\t$this->College2ReplyDate->setDbValue($rs->fields('College2ReplyDate'));\n\t\t$this->College3->setDbValue($rs->fields('College3'));\n\t\t$this->College3SentDate->setDbValue($rs->fields('College3SentDate'));\n\t\t$this->College3Status->setDbValue($rs->fields('College3Status'));\n\t\t$this->College3ReplyDate->setDbValue($rs->fields('College3ReplyDate'));\n\t\t$this->CommitteDecision->setDbValue($rs->fields('CommitteDecision'));\n\t\t$this->CommitteDecisionDate->setDbValue($rs->fields('CommitteDecisionDate'));\n\t\t$this->CommitteRefNo->setDbValue($rs->fields('CommitteRefNo'));\n\t\t$this->PreidentsDecision->setDbValue($rs->fields('PreidentsDecision'));\n\t\t$this->PreidentsDecisionDate->setDbValue($rs->fields('PreidentsDecisionDate'));\n\t\t$this->PreidentsRefNo->setDbValue($rs->fields('PreidentsRefNo'));\n\t}", "title": "" }, { "docid": "e2e6f96a716e0aebf94a77f99eb6d288", "score": "0.4851396", "text": "function new_modify_user_table_row( $val, $column_name, $user_id ) \n{\n\t// Checks whether the name of the column is userConnection. The function only needs to work with that column.\n switch ($column_name) {\n case 'userConnection' :\n return get_user_meta( $user_id,'constatus',true);\n default:\n }\n return $val;\n}", "title": "" }, { "docid": "60b4e9c92ebfd1071646dda1186950c7", "score": "0.48404828", "text": "public function writeRow($row) {\n if (isset($this->callbacks()->onMapRow)) {\n $row = $this->callbacks()->onMapRow($row);\n }\n $this->write($row);\n }", "title": "" }, { "docid": "a5c96a79a4924bd5a4bcf6d55ded9846", "score": "0.48297513", "text": "public function renderEditRow()\n\t{\n\t\tglobal $Security, $CurrentLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// idProcess\n\t\t$this->idProcess->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->idProcess->EditCustomAttributes = \"\";\n\t\t$this->idProcess->EditValue = $this->idProcess->CurrentValue;\n\t\t$this->idProcess->ViewCustomAttributes = \"\";\n\n\t\t// fmea\n\t\t$this->fmea->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->fmea->EditCustomAttributes = \"\";\n\t\tif ($this->fmea->getSessionValue() != \"\") {\n\t\t\t$this->fmea->CurrentValue = $this->fmea->getSessionValue();\n\t\t\tif ($this->fmea->VirtualValue != \"\") {\n\t\t\t\t$this->fmea->ViewValue = $this->fmea->VirtualValue;\n\t\t\t} else {\n\t\t\t\t$curVal = strval($this->fmea->CurrentValue);\n\t\t\t\tif ($curVal != \"\") {\n\t\t\t\t\t$this->fmea->ViewValue = $this->fmea->lookupCacheOption($curVal);\n\t\t\t\t\tif ($this->fmea->ViewValue === NULL) { // Lookup from database\n\t\t\t\t\t\t$filterWrk = \"`fmea`\" . SearchString(\"=\", $curVal, DATATYPE_STRING, \"\");\n\t\t\t\t\t\t$sqlWrk = $this->fmea->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t\t\t$this->fmea->ViewValue = $this->fmea->displayValue($arwrk);\n\t\t\t\t\t\t\t$rswrk->Close();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this->fmea->ViewValue = $this->fmea->CurrentValue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$this->fmea->ViewValue = NULL;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->fmea->ViewCustomAttributes = \"\";\n\t\t} else {\n\t\t}\n\n\t\t// step\n\t\t$this->step->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->step->EditCustomAttributes = \"\";\n\t\t$this->step->EditValue = $this->step->CurrentValue;\n\t\t$this->step->PlaceHolder = RemoveHtml($this->step->caption());\n\n\t\t// flowchartDesc\n\t\t$this->flowchartDesc->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->flowchartDesc->EditCustomAttributes = \"\";\n\t\t$this->flowchartDesc->EditValue = $this->flowchartDesc->CurrentValue;\n\t\t$this->flowchartDesc->PlaceHolder = RemoveHtml($this->flowchartDesc->caption());\n\n\t\t// partnumber\n\t\t$this->partnumber->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->partnumber->EditCustomAttributes = \"\";\n\t\tif (!$this->partnumber->Raw)\n\t\t\t$this->partnumber->CurrentValue = HtmlDecode($this->partnumber->CurrentValue);\n\t\t$this->partnumber->EditValue = $this->partnumber->CurrentValue;\n\t\t$this->partnumber->PlaceHolder = RemoveHtml($this->partnumber->caption());\n\n\t\t// operation\n\t\t$this->operation->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->operation->EditCustomAttributes = \"\";\n\t\tif (!$this->operation->Raw)\n\t\t\t$this->operation->CurrentValue = HtmlDecode($this->operation->CurrentValue);\n\t\t$this->operation->EditValue = $this->operation->CurrentValue;\n\t\t$this->operation->PlaceHolder = RemoveHtml($this->operation->caption());\n\n\t\t// derivedFromNC\n\t\t$this->derivedFromNC->EditCustomAttributes = \"\";\n\t\t$this->derivedFromNC->EditValue = $this->derivedFromNC->options(FALSE);\n\n\t\t// numberOfNC\n\t\t$this->numberOfNC->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->numberOfNC->EditCustomAttributes = \"\";\n\t\tif (!$this->numberOfNC->Raw)\n\t\t\t$this->numberOfNC->CurrentValue = HtmlDecode($this->numberOfNC->CurrentValue);\n\t\t$this->numberOfNC->EditValue = $this->numberOfNC->CurrentValue;\n\t\t$this->numberOfNC->PlaceHolder = RemoveHtml($this->numberOfNC->caption());\n\n\t\t// flowchart\n\t\t$this->flowchart->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->flowchart->EditCustomAttributes = \"\";\n\t\tif (!$this->flowchart->Raw)\n\t\t\t$this->flowchart->CurrentValue = HtmlDecode($this->flowchart->CurrentValue);\n\t\t$this->flowchart->EditValue = $this->flowchart->CurrentValue;\n\t\t$this->flowchart->PlaceHolder = RemoveHtml($this->flowchart->caption());\n\n\t\t// subprocess\n\t\t$this->subprocess->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->subprocess->EditCustomAttributes = \"\";\n\t\tif (!$this->subprocess->Raw)\n\t\t\t$this->subprocess->CurrentValue = HtmlDecode($this->subprocess->CurrentValue);\n\t\t$this->subprocess->EditValue = $this->subprocess->CurrentValue;\n\t\t$this->subprocess->PlaceHolder = RemoveHtml($this->subprocess->caption());\n\n\t\t// requirement\n\t\t$this->requirement->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->requirement->EditCustomAttributes = \"\";\n\t\tif (!$this->requirement->Raw)\n\t\t\t$this->requirement->CurrentValue = HtmlDecode($this->requirement->CurrentValue);\n\t\t$this->requirement->EditValue = $this->requirement->CurrentValue;\n\t\t$this->requirement->PlaceHolder = RemoveHtml($this->requirement->caption());\n\n\t\t// potencialFailureMode\n\t\t$this->potencialFailureMode->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->potencialFailureMode->EditCustomAttributes = \"\";\n\t\tif (!$this->potencialFailureMode->Raw)\n\t\t\t$this->potencialFailureMode->CurrentValue = HtmlDecode($this->potencialFailureMode->CurrentValue);\n\t\t$this->potencialFailureMode->EditValue = $this->potencialFailureMode->CurrentValue;\n\t\t$this->potencialFailureMode->PlaceHolder = RemoveHtml($this->potencialFailureMode->caption());\n\n\t\t// potencialFailurEffect\n\t\t$this->potencialFailurEffect->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->potencialFailurEffect->EditCustomAttributes = \"\";\n\t\tif (!$this->potencialFailurEffect->Raw)\n\t\t\t$this->potencialFailurEffect->CurrentValue = HtmlDecode($this->potencialFailurEffect->CurrentValue);\n\t\t$this->potencialFailurEffect->EditValue = $this->potencialFailurEffect->CurrentValue;\n\t\t$this->potencialFailurEffect->PlaceHolder = RemoveHtml($this->potencialFailurEffect->caption());\n\n\t\t// kc\n\t\t$this->kc->EditCustomAttributes = \"\";\n\t\t$this->kc->EditValue = $this->kc->options(FALSE);\n\n\t\t// severity\n\t\t$this->severity->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->severity->EditCustomAttributes = \"\";\n\t\t$this->severity->EditValue = $this->severity->CurrentValue;\n\t\t$this->severity->PlaceHolder = RemoveHtml($this->severity->caption());\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "title": "" }, { "docid": "4c9046647b1651f43480de8205677003", "score": "0.48255843", "text": "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $frm_9_m_sa_cutoffdate;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row =& $rs->fields;\n\t\t$frm_9_m_sa_cutoffdate->Row_Selected($row);\n\t\t$frm_9_m_sa_cutoffdate->cutOffDate_id->setDbValue($rs->fields('cutOffDate_id'));\n\t\t$frm_9_m_sa_cutoffdate->collection_id->setDbValue($rs->fields('collection_id'));\n\t\t$frm_9_m_sa_cutoffdate->focal_person_id->setDbValue($rs->fields('focal_person_id'));\n\t\t$frm_9_m_sa_cutoffdate->focal_person_office->setDbValue($rs->fields('focal_person_office'));\n\t\t$frm_9_m_sa_cutoffdate->t_startDate->setDbValue($rs->fields('t_startDate'));\n\t\t$frm_9_m_sa_cutoffdate->t_cutOffDate_contributor->setDbValue($rs->fields('t_cutOffDate_contributor'));\n\t\t$frm_9_m_sa_cutoffdate->t_cutOffDate_delivery->setDbValue($rs->fields('t_cutOffDate_delivery'));\n\t\t$frm_9_m_sa_cutoffdate->t_cutOffDate_fp->setDbValue($rs->fields('t_cutOffDate_fp'));\n\t\t$frm_9_m_sa_cutoffdate->t_cutOffDate_remarks->setDbValue($rs->fields('t_cutOffDate_remarks'));\n\t\t$frm_9_m_sa_cutoffdate->a_startDate->setDbValue($rs->fields('a_startDate'));\n\t\t$frm_9_m_sa_cutoffdate->a_cutOffDate_contributor->setDbValue($rs->fields('a_cutOffDate_contributor'));\n\t\t$frm_9_m_sa_cutoffdate->a_cutOffDate_delivery->setDbValue($rs->fields('a_cutOffDate_delivery'));\n\t\t$frm_9_m_sa_cutoffdate->a_cutOffDate_fp->setDbValue($rs->fields('a_cutOffDate_fp'));\n\t\t$frm_9_m_sa_cutoffdate->a_cutOffDate_remarks->setDbValue($rs->fields('a_cutOffDate_remarks'));\n\t\t$frm_9_m_sa_cutoffdate->remarks->setDbValue($rs->fields('remarks'));\n\t}", "title": "" }, { "docid": "17c74b88571fee4b4b9371b8c807d43f", "score": "0.48127344", "text": "private function populateFromRow($row) {\n\t\t$this->record_id = $row->RECORD_ID;\n\t\t$this->patient_id = $row->PATIENT_ID;\n\t\t$this->doctor_id = $row->DOCTOR_ID;\n\t\t$this->radiologist_id = $row->RADIOLOGIST_ID;\n\t\t$this->test_type = $row->TEST_TYPE;\n\t\t$this->prescribing_date = $row->PRESCRIBING_DATE;\n\t\t$this->test_date = $row->TEST_DATE;\n\t\t$this->diagnosis = $row->DIAGNOSIS;\n\t\t$this->description = $row->DESCRIPTION;\n\t}", "title": "" }, { "docid": "c05a172a9306c3febd2558c1af8f5ab2", "score": "0.48105684", "text": "public function zz_input_callback() {\n\t\t$template = $this->getInputTemplate();\n\t\tif ( is_callable( $template ) ) {\n\t\t\tcall_user_func( $template, $this );\n\n\t\t} else {\n\n\t\t\t// Attributes?\n\t\t\t$attributes = $this->prepare_attributes();\n\n\t\t\t// Get values for field\n\t\t\t$value = $this->get_value();\n\n\t\t\t$this->display_input( $template, $value, $attributes );\n\t\t}\n\t}", "title": "" }, { "docid": "a0e6fa466326ab47bc09f00f3a64902e", "score": "0.48031357", "text": "public function prepareRow($row) {\n return parent::prepareRow($row);\n }", "title": "" }, { "docid": "a0e6fa466326ab47bc09f00f3a64902e", "score": "0.48031357", "text": "public function prepareRow($row) {\n return parent::prepareRow($row);\n }", "title": "" }, { "docid": "a0e6fa466326ab47bc09f00f3a64902e", "score": "0.48031357", "text": "public function prepareRow($row) {\n return parent::prepareRow($row);\n }", "title": "" }, { "docid": "a0e6fa466326ab47bc09f00f3a64902e", "score": "0.48031357", "text": "public function prepareRow($row) {\n return parent::prepareRow($row);\n }", "title": "" }, { "docid": "a0e6fa466326ab47bc09f00f3a64902e", "score": "0.48031357", "text": "public function prepareRow($row) {\n return parent::prepareRow($row);\n }", "title": "" }, { "docid": "975c2f76d956bce879d8fef69892cb6a", "score": "0.47992596", "text": "abstract protected function rowHeaderField();", "title": "" }, { "docid": "7f8f52d5cfe5093e20e24422f07c3c19", "score": "0.47960755", "text": "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->idtools->setDbValue($rs->fields('idtools'));\r\n\t\t$this->target_domain->setDbValue($rs->fields('target_domain'));\r\n\t\t$this->type->setDbValue($rs->fields('type'));\r\n\t\t$this->url->setDbValue($rs->fields('url'));\r\n\t\t$this->time->setDbValue($rs->fields('time'));\r\n\t\t$this->status->setDbValue($rs->fields('status'));\r\n\t\t$this->log->setDbValue($rs->fields('log'));\r\n\t\t$this->parent_domain->setDbValue($rs->fields('parent_domain'));\r\n\t\t$this->Descripcion->setDbValue($rs->fields('Descripcion'));\r\n\t\t$this->tags->setDbValue($rs->fields('tags'));\r\n\t}", "title": "" }, { "docid": "937d25e6421449863c73dcfe1c198980", "score": "0.47960097", "text": "public function map($row){\r\n\t\t\t$this->id = $row['id'];\r\n\t\t\t$this->email = $row['email'];\r\n\t\t\t$this->password = $row['password'];\r\n }", "title": "" }, { "docid": "6ca9c32804505e1bbee37885ae42cd6c", "score": "0.47904682", "text": "public function executeRow($id){\n\t\t//code here!\n\t}", "title": "" }, { "docid": "ecc96e1f0f4102c98c078a1ec60dd675", "score": "0.47835213", "text": "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $frm_sam_rep_ta_form_a_1;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row =& $rs->fields;\n\t\t$frm_sam_rep_ta_form_a_1->Row_Selected($row);\n\t\t$frm_sam_rep_ta_form_a_1->units_id->setDbValue($rs->fields('units_id'));\n\t\t$frm_sam_rep_ta_form_a_1->focal_person_id->setDbValue($rs->fields('focal_person_id'));\n\t\t$frm_sam_rep_ta_form_a_1->Constituent_University->setDbValue($rs->fields('Constituent University'));\n\t\t$frm_sam_rep_ta_form_a_1->Delivery_Unit->setDbValue($rs->fields('Delivery Unit'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_1->setDbValue($rs->fields('PI 1'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_28129->setDbValue($rs->fields('Target (1)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_N_28129->setDbValue($rs->fields('Target N (1)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_D_28129->setDbValue($rs->fields('Target D (1)'));\n\t\t$frm_sam_rep_ta_form_a_1->Remarks_28129->setDbValue($rs->fields('Remarks (1)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_2->setDbValue($rs->fields('PI 2'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_28229->setDbValue($rs->fields('Target (2)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_N_28229->setDbValue($rs->fields('Target N (2)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_D_28229->setDbValue($rs->fields('Target D (2)'));\n\t\t$frm_sam_rep_ta_form_a_1->Remarks_28229->setDbValue($rs->fields('Remarks (2)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_3->setDbValue($rs->fields('PI 3'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_28329->setDbValue($rs->fields('Target (3)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_N_28329->setDbValue($rs->fields('Target N (3)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_D_28329->setDbValue($rs->fields('Target D (3)'));\n\t\t$frm_sam_rep_ta_form_a_1->Remarks_28329->setDbValue($rs->fields('Remarks (3)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_4->setDbValue($rs->fields('PI 4'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_28429->setDbValue($rs->fields('Target (4)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_N_28429->setDbValue($rs->fields('Target N (4)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_D_28429->setDbValue($rs->fields('Target D (4)'));\n\t\t$frm_sam_rep_ta_form_a_1->Remarks_28429->setDbValue($rs->fields('Remarks (4)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_5->setDbValue($rs->fields('PI 5'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_28529->setDbValue($rs->fields('Target (5)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_N_28529->setDbValue($rs->fields('Target N (5)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_D_28529->setDbValue($rs->fields('Target D (5)'));\n\t\t$frm_sam_rep_ta_form_a_1->Remarks_28529->setDbValue($rs->fields('Remarks (5)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_6->setDbValue($rs->fields('PI 6'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_28629->setDbValue($rs->fields('Target (6)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_N_28629->setDbValue($rs->fields('Target N (6)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_D_28629->setDbValue($rs->fields('Target D (6)'));\n\t\t$frm_sam_rep_ta_form_a_1->Remarks_28629->setDbValue($rs->fields('Remarks (6)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_7->setDbValue($rs->fields('PI 7'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_28729->setDbValue($rs->fields('Target (7)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_N_28729->setDbValue($rs->fields('Target N (7)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_D_28729->setDbValue($rs->fields('Target D (7)'));\n\t\t$frm_sam_rep_ta_form_a_1->Remarks_28729->setDbValue($rs->fields('Remarks (7)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_8->setDbValue($rs->fields('PI 8'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_28829->setDbValue($rs->fields('Target (8)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_N_28829->setDbValue($rs->fields('Target N (8)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_D_28829->setDbValue($rs->fields('Target D (8)'));\n\t\t$frm_sam_rep_ta_form_a_1->Remarks_28829->setDbValue($rs->fields('Remarks (8)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_9->setDbValue($rs->fields('PI 9'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_28929->setDbValue($rs->fields('Target (9)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_N_28929->setDbValue($rs->fields('Target N (9)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_D_28929->setDbValue($rs->fields('Target D (9)'));\n\t\t$frm_sam_rep_ta_form_a_1->Remarks_28929->setDbValue($rs->fields('Remarks (9)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_10->setDbValue($rs->fields('PI 10'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_281029->setDbValue($rs->fields('Target (10)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_N_281029->setDbValue($rs->fields('Target N (10)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_D_281029->setDbValue($rs->fields('Target D (10)'));\n\t\t$frm_sam_rep_ta_form_a_1->Remarks_281029->setDbValue($rs->fields('Remarks (10)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_11->setDbValue($rs->fields('PI 11'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_281129->setDbValue($rs->fields('Target (11)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_N_281129->setDbValue($rs->fields('Target N (11)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_D_281129->setDbValue($rs->fields('Target D (11)'));\n\t\t$frm_sam_rep_ta_form_a_1->Remarks_281129->setDbValue($rs->fields('Remarks (11)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_12->setDbValue($rs->fields('PI 12'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_281229->setDbValue($rs->fields('Target (12)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_N_281229->setDbValue($rs->fields('Target N (12)'));\n\t\t$frm_sam_rep_ta_form_a_1->Target_D_281229->setDbValue($rs->fields('Target D (12)'));\n\t\t$frm_sam_rep_ta_form_a_1->Remarks_281229->setDbValue($rs->fields('Remarks (12)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_Question_28129->setDbValue($rs->fields('PI Question (1)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_Question_28229->setDbValue($rs->fields('PI Question (2)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_Question_28329->setDbValue($rs->fields('PI Question (3)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_Question_28429->setDbValue($rs->fields('PI Question (4)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_Question_28529->setDbValue($rs->fields('PI Question (5)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_Question_28629->setDbValue($rs->fields('PI Question (6)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_Question_28729->setDbValue($rs->fields('PI Question (7)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_Question_28829->setDbValue($rs->fields('PI Question (8)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_Question_28929->setDbValue($rs->fields('PI Question (9)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_Question_281029->setDbValue($rs->fields('PI Question (10)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_Question_281129->setDbValue($rs->fields('PI Question (11)'));\n\t\t$frm_sam_rep_ta_form_a_1->PI_Question_281229->setDbValue($rs->fields('PI Question (12)'));\n\t}", "title": "" }, { "docid": "f021c51f9202c56d015c05dfb20cb1f8", "score": "0.47823435", "text": "public function afterFetch() {\r\n foreach ( $this->getModelsMetaData()->getDataTypes($this) as $field => $type ) {\r\n if (is_null($this->$field)) {\r\n continue;\r\n }\r\n \r\n switch ($type) {\r\n case Column::TYPE_BOOLEAN:\r\n $this->$field = ord($this->$field);\r\n break;\r\n \r\n case Column::TYPE_BIGINTEGER:\r\n case Column::TYPE_INTEGER:\r\n $this->$field = intval($this->$field);\r\n break;\r\n \r\n case Column::TYPE_DECIMAL:\r\n case Column::TYPE_FLOAT:\r\n $this->$field = floatval($this->$field);\r\n break;\r\n \r\n case Column::TYPE_DOUBLE:\r\n $this->$field = doubleval($this->$field);\r\n break;\r\n \r\n case Column::TYPE_DATETIME:\r\n $this->$field = date('Y-m-d H:i:s',strtotime($this->$field));\r\n break;\r\n \r\n case Column::TYPE_DATE:\r\n $this->$field = date('Y-m-d',strtotime($this->$field));\r\n break;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "ac14148ab04617825d34ea3326f04c20", "score": "0.47810236", "text": "public function views_data_alter(&$data, $field);", "title": "" } ]
6e1260d065adf4ca41b819638ca35d57
Get STS token hash by the eureka username (md5).
[ { "docid": "619f448e23fd6f15dabcef8e8a38793e", "score": "0.7966764", "text": "private function getSTSTokenHash(string $username): string\n {\n return sprintf('idci_payment.eureka.sts_token.%s', md5($username));\n }", "title": "" } ]
[ { "docid": "b085cea7404985645d77db647f5169a0", "score": "0.6877264", "text": "public function token(){\r\n \r\n // if we need to identify sessions by also checking the user agent\r\n if ($this->config->lock_to_user_agent \r\n && !is_null($this->request->headers->get('User-Agent'))){\r\n $hash .= $this->request->headers->get('User-Agent');\r\n }\r\n\r\n // if we need to identify sessions by also checking the host\r\n if ($this->config->lock_to_ip \r\n && !is_null($this->request->getClientIp())){\r\n $hash .= $this->request->getClientIp();\r\n }\r\n \r\n return md5($hash);\r\n }", "title": "" }, { "docid": "859a80697527e2f1bbf18be31934568a", "score": "0.6804346", "text": "public function getUserHash() : string {\n\t\treturn($this->userHash);\n\t}", "title": "" }, { "docid": "effa4fcbc9249a54ea643c0579ea5982", "score": "0.6706764", "text": "public function getUserHash(): string {\n\treturn ($this->userHash);\n}", "title": "" }, { "docid": "b0c50ed7f54341e3a765953108ddaddd", "score": "0.65718085", "text": "public function getHash(): string;", "title": "" }, { "docid": "b0c50ed7f54341e3a765953108ddaddd", "score": "0.65718085", "text": "public function getHash(): string;", "title": "" }, { "docid": "b0c50ed7f54341e3a765953108ddaddd", "score": "0.65718085", "text": "public function getHash(): string;", "title": "" }, { "docid": "20838c9cc912ee709994f2f72c43ff4d", "score": "0.65065104", "text": "public function getHash() : string;", "title": "" }, { "docid": "ed9fbc5123b53a1269b386f4df882222", "score": "0.64156353", "text": "public function getUserToken()\n {\n return sha1($this->getUniqueId().$this->getLastLogin());\n }", "title": "" }, { "docid": "6ace1ba4a6ece0c32adf00fd7eb79d35", "score": "0.6325596", "text": "function getUsername() {\n\n return $this->digestParts['username'];\n\n }", "title": "" }, { "docid": "03daa0d5fea3b3c9b7c3ba4dcff965bb", "score": "0.63129455", "text": "public function getToken() {\n\t\ttry{\n\t\t$m_token = $this->opts['uid'];\n\t\t$m_token .= $this->opts['username'];\n\t\t$m_token .= $this->opts['key'];\n\t\t$m_token .= $this->opts['uid'];\n\t\t\n\t\t\n\t\t$m_token_digest = (string)$m_token;\n\t\t$m_token_digest .= $this->opts['key'];\n\t\t$m_token_digest .= $this->opts['salt'];\n\t\t\n\t\t// produce the signature and append to the tokenized string\n\t\t$signature = hash_hmac($this->get_algo(), rtrim($m_token_digest, $this->field_delimiter), $this->opts['secret']);\n\t\treturn $signature;\n\t\t\n\t\t}\n\t\tcatch(Exception $e)\n\t\t{\n\t\t\t$this->throwError($e->getMessage());\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "dee82a1df9e49dc2945449fea4cbddfa", "score": "0.6290841", "text": "abstract public function getDigestHash($realm, $username);", "title": "" }, { "docid": "be32fc331cf8ed15a8993269f8b32da7", "score": "0.62780935", "text": "private function userStateHash(){\n $hash = Mage::helper('core')->getRandomString(16);\n Mage::getSingleton('checkout/session')->setSign2PayUserHash($hash);\n return $hash;\n }", "title": "" }, { "docid": "cb05968a6e57ddf02453d2902bb3d269", "score": "0.62616175", "text": "public function getHash()\n {\n return hash_hmac('sha256', $this->getToken(),Config::SECRET_KEY);\n }", "title": "" }, { "docid": "4b61a37f18219ae61185e1d6676296ee", "score": "0.6193985", "text": "protected function generateToken()\n {\n $token = (isset($_SERVER['HTTP_USER_AGENT'])?$_SERVER['HTTP_USER_AGENT']:'').session_name();\n return sha1(md5($token));\n }", "title": "" }, { "docid": "3844625c46628b0910ba63292e04fd18", "score": "0.61635894", "text": "public function getHash();", "title": "" }, { "docid": "3844625c46628b0910ba63292e04fd18", "score": "0.61635894", "text": "public function getHash();", "title": "" }, { "docid": "3844625c46628b0910ba63292e04fd18", "score": "0.61635894", "text": "public function getHash();", "title": "" }, { "docid": "3844625c46628b0910ba63292e04fd18", "score": "0.61635894", "text": "public function getHash();", "title": "" }, { "docid": "51444661522aa6703a1aed35807791ba", "score": "0.6155434", "text": "function user_gen_logintoken($username, $PHPSESSID) {\n $obj = user_get_object($username);\n if ($obj !== NULL) {\n $token = hash('sha256', $username + $PHPSESSID);\n $obj->lastLoginToken = $token;\n user_set_object($username, $obj);\n return $token;\n } else {\n return NULL;\n }\n}", "title": "" }, { "docid": "795a60ffb8efef32f042b69780661fa9", "score": "0.6151316", "text": "function getHashedString($string) {\n\t//return crypt($string, getRandomString(16));\n\treturn crypt($string, \"legalRaastaUser\");\n}", "title": "" }, { "docid": "df8407b7c983d425527e5068cc70d63a", "score": "0.61327416", "text": "private function getToken()\n\t{\n\t\treturn hash('sha256', $this->session_id . ':' . $this->secret);\n\t}", "title": "" }, { "docid": "03bddffa0bba88968c87234a379d3d7d", "score": "0.61125576", "text": "public function salt(): string;", "title": "" }, { "docid": "70e554bd07a3a702ad642b7c6fee8ba9", "score": "0.61067003", "text": "public function hash() {\n return \"u{$this->getUserId()}\";\n }", "title": "" }, { "docid": "0327edffd25d91fe7ab9adaa56ba2bb3", "score": "0.60661453", "text": "public function generate_token_string() {\n\t\treturn hash($this->hashAlgorigthm, $this->create_nonce());\n\t}", "title": "" }, { "docid": "1f14310bb8ca502f390e6787b1739e9f", "score": "0.60534483", "text": "private function signature()\n {\n $string = $this->nonce_v . $this->username . $this->api_key; //Create string\n $hash = hash_hmac('sha256', $string, $this->api_secret); //Create hash\n $hash = strtoupper($hash);\n\n return $hash;\n }", "title": "" }, { "docid": "e08675f3c5faf9f47b0557e2ac80a03e", "score": "0.603378", "text": "public function getToken(): string\n {\n return md5($this->getSecret() . $this->getKey());\n }", "title": "" }, { "docid": "49a2931ea97002fce3c6f4e43560a6d4", "score": "0.60334927", "text": "function getActivateHash($user_id = null) \r\n {\r\n return md5($user_id . '-' . Configure::read('Security.salt'));\r\n }", "title": "" }, { "docid": "497e962c3df49d90370e200fcb22f098", "score": "0.6032644", "text": "function get_hash()\n {\n $prefs = $this->get_prefs();\n\n // generate a random hash and store it in user prefs\n if (empty($prefs['client_hash'])) {\n $prefs['client_hash'] = md5($this->data['username'] . mt_rand() . $this->data['mail_host']);\n $this->save_prefs(array('client_hash' => $prefs['client_hash']));\n }\n\n return $prefs['client_hash'];\n }", "title": "" }, { "docid": "b6c52756178ae8b2d58c5729ff6045a1", "score": "0.6031851", "text": "private function get_session_hash() {\n\n $sessionstring = sesskey();\n\n $whitelist = get_config('quizaccess_onesession', 'whitelist');\n $ipaddress = getremoteaddr();\n if (!address_in_subnet($ipaddress, $whitelist)) {\n $sessionstring .= $ipaddress;\n }\n\n $sessionstring .= $_SERVER['HTTP_USER_AGENT'];\n\n return md5($sessionstring);\n }", "title": "" }, { "docid": "3561502f48c2c7e89cbbdab33748cb7c", "score": "0.60246193", "text": "function getUsrHash(&$ref_userData)\r\n{\r\n $salt = '8k!_~Y';\r\n \r\n $hash = substr($ref_userData['name'], 0, 3).\"|\".substr($ref_userData['email'], 0, 3).\"!\"\r\n . substr($ref_userData['password'], 0, 3).\"&$salt\";\r\n \r\n return $hash;\r\n}", "title": "" }, { "docid": "63cb57da96695418df87e9f755cf90db", "score": "0.6016824", "text": "final public function icms_getUserSaltFromUname($uname = '')\n {\n return $this->icms_getUserSalt($uname);\n }", "title": "" }, { "docid": "38badb84b71a9e5aa4955c8427f8bf4e", "score": "0.6016562", "text": "public static function get_hash() {\n\t\treturn md5($_SERVER['REMOTE_ADDR'] . date(\"%Y%m%d\"));\n\t}", "title": "" }, { "docid": "3cc0bfdf5faa5a68a6daf02715de025c", "score": "0.5980212", "text": "function create_login_token()\n{\n return create_salt();\n}", "title": "" }, { "docid": "22269f306f7fefdb32c26fba467d6e59", "score": "0.5964469", "text": "private function getUserHash($username) {\n $sql = \"SELECT senha FROM Usuario WHERE username = :username\";\n $query = $this->db->prepare($sql);\n $query->bindParam(':username', $username);\n $query->execute();\n if($query->rowCount() === 0) return false;\n return $query->fetch(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "e23606b2877a224c8a30e0585f9d8a4f", "score": "0.5962115", "text": "public static function getSecurityToken()\n\t{\n\t\treturn md5(Helper::RandomNumber(1, 1000) . session_id());\n\t}", "title": "" }, { "docid": "d69bb77cbd63823198299d784a390169", "score": "0.5911604", "text": "private function getHashedPassword(): string\n {\n return hash('sha256', $this->accountId . Definitions::PEPPER . $this->password . $this->salt);\n }", "title": "" }, { "docid": "a1366f1248fad6f096c5397bce42d575", "score": "0.59034365", "text": "public function getAuthHash() {\r\n\t\t$hash = ( string ) mysql_query ( \"SELECT password FROM users WHERE user='\" . $this->getName () . \"'\" );\r\n\t\treturn $hash;\r\n\t}", "title": "" }, { "docid": "3af1b17971bb3293471188956971b95b", "score": "0.59032315", "text": "public function getSalt(){}", "title": "" }, { "docid": "91b8f8824d785865774de1084b0b8b4f", "score": "0.58938235", "text": "public static function createToken(): string\n {\n return (string) Str::substr(\n md5(Str::random(16)),\n 0,\n 16\n );\n }", "title": "" }, { "docid": "04064a29ace0a7939d7b5fc7cec00eda", "score": "0.5888373", "text": "public function getTokenSalt()\n {\n return $this->_tokenSalt;\n }", "title": "" }, { "docid": "18a4af8bf014fb0b5940676308a42b4f", "score": "0.58626014", "text": "static function getValidHash(){\n return saltedHash(\"md5\", __FILE__);\n }", "title": "" }, { "docid": "9c2c1fd13bc5c2af452e78dc4ac6cc65", "score": "0.5861959", "text": "public static function getHash(string $token): string\n {\n return hash(self::HASH_ALGO, $token);\n }", "title": "" }, { "docid": "ad4be597a3d46839e013029f201e831d", "score": "0.58579415", "text": "private function _token($value)\n {\n return strtoupper(sha1(md5($value\n . $_SERVER['REMOTE_ADDR']\n . $this->config['password']\n . $_SERVER['SERVER_ADDR']\n . $_SERVER['HTTP_USER_AGENT']\n . $_SERVER['SCRIPT_FILENAME'])));\n }", "title": "" }, { "docid": "82cc971dcd8a24e784e4327fc1aed11e", "score": "0.58494484", "text": "public function getActivateHash($user_id = null)\r\n {\r\n return md5($user_id . '-' . Configure::read('Security.salt'));\r\n }", "title": "" }, { "docid": "46545d99707f59d5590897c1d0093ebf", "score": "0.58483183", "text": "function check_token($username, $session)\n{\n $SALT = hexdec('f2492a23247852a4988548dc4db88921f1a535036179276c2d372be697346142');\n return (hash('sha256', md5($username) . $SALT) == $session);\n}", "title": "" }, { "docid": "a104b8b15200815553ad822ac850f298", "score": "0.584159", "text": "public function GetHash($senha){\n $pepper = $this->_config->getConfigHash();// $pepper configuração do hash\n\n $pwd_peppered = hash_hmac(\"sha256\",$senha, $pepper);//preparação do hash\n // Gera o hash\n $pwd_hash = password_hash($pwd_peppered, PASSWORD_BCRYPT);\n\n return $pwd_hash; //retorna o hash da senha\n }", "title": "" }, { "docid": "8d69f7c5b472d7d800cf2bd546a3dff6", "score": "0.58356476", "text": "private function generateToken(){\n\t\treturn hash_hmac('sha256', str_random(40), config('app.key'));\n\t}", "title": "" }, { "docid": "6a0efcde3421f94dbbe509df96157f9d", "score": "0.5829637", "text": "public function getUserSalt() : string {\n\t\treturn($this->userSalt);\n\t}", "title": "" }, { "docid": "35bf818eea4c3948d8eb0e171f525bf6", "score": "0.58292747", "text": "private function calRememberToken()\n {\n return bin2hex(openssl_random_pseudo_bytes(32));\n }", "title": "" }, { "docid": "491245b7f4263fefd283088e0bc437f6", "score": "0.582585", "text": "public static function getSalt() {\n\n\t\t$random = SecurityUtil::getRandomString ( 20 );\n\t\treturn hash ( 'sha256', $random );\n\t\n\t}", "title": "" }, { "docid": "ef29137c43eac5f6f3bc62402ea7e872", "score": "0.58173424", "text": "private function _getMd5Key()\n\t{\n\t\treturn $this->server['md5Key'];\n\t}", "title": "" }, { "docid": "360974c5a3c34cff8fbbb13b5087df74", "score": "0.58149385", "text": "public function getSessionHash() {\n\t return $this->generate_password_hash(AUTH_KEY . $this->cookie->get('ls') . LhpBrowser::getUserAgent());\n\t}", "title": "" }, { "docid": "10de0e81690f6fa596e90bc044ad7fc0", "score": "0.5813385", "text": "public function getDigest()\n {\n $secretKey = $this->scopeConfig->getValue('sweettooth-settings/api-settings/secret-key', ScopeInterface::SCOPE_STORE);\n $digest = $this->getCustomerId() . $secretKey;\n\n return md5($digest);\n }", "title": "" }, { "docid": "a23d815f5949ce3eb29e0cf9c7a6ab5c", "score": "0.58131695", "text": "function token()\n\t{\n\t\t$seed = \"\";\n\t\tfor ($i = 1; $i<33; $i++)\n\t\t{\n\t\t\t$seed .= chr(rand(0,255));\n\t\t}\n\t\treturn md5($seed);\n\t}", "title": "" }, { "docid": "b5d367b2ecb0d0a9651aabb43b397958", "score": "0.5810388", "text": "public function createAuthToken()\n {\n return General::substrmin(SHA1::hash($this->get('username') . $this->get('password')), 8);\n }", "title": "" }, { "docid": "9c1a1f994a00566d4659679217c1eee3", "score": "0.58090293", "text": "public function getSalt()\n {\n //todo\n }", "title": "" }, { "docid": "b68873220bf1c7c58b72282ff6e7b63f", "score": "0.5788258", "text": "private function get_hash()\n\t{\n\t\tif ( ! isset($this->hash) )\n\t\t{\n\t\t\t$this->set_hash();\n\t\t}\n\n\t\treturn $this->hash;\n\t}", "title": "" }, { "docid": "f2da1adead77cd4f75f19d3c6f2a6904", "score": "0.5786757", "text": "public static function hashKey()\n\t{\n\t\t$config = Config::load('site');\n\n\t\tif ( !($key = $config->get('auth_hash_key')) )\n\t\t{\n\t\t\t$key = sha1(uniqid(mt_rand(), TRUE)) . md5(uniqid(mt_rand(), TRUE));\n\t\t\t$config->set('auth_hash_key', $key);\n\t\t}\n\n\t\treturn $key;\n\t}", "title": "" }, { "docid": "3bff30d43ffcf9c25060d8c339941ece", "score": "0.5778162", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "94139c90018abb862e84c5b5ad12f886", "score": "0.57778174", "text": "public function getHash($password, $username) {\r\n\t\t$saltquery = \"SELECT salt FROM users WHERE username = '\" . $username . \"'\";\r\n\t\t$result = $this->dbaccess->run_query($saltquery);\r\n\t\t$arraywithsalt = $result->fetch();\r\n\t\t$salt = $arraywithsalt['salt'];\r\n\t\t\r\n\t\t$password = md5($salt . $password);\r\n\t\t\r\n\t\treturn $password;\r\n\t}", "title": "" }, { "docid": "dec25456b68a48aeeb7293a09f8ba8a0", "score": "0.57772243", "text": "public static function makeTokenBySTID($stid, $username)\n {\n $strname = md5($username);\n $strshort = substr($strname, 0, 3);\n $newid = $stid * 983 + 1013;\n //$strhex = dechex ( $newid );\n $strhex = self::Num2Str($newid);\n $str = $strshort . $strhex;\n return $str;\n }", "title": "" }, { "docid": "d08cd0e4e7be448eefefac37b2cef2b3", "score": "0.5772832", "text": "public function getValidToken()\n {\n $salt = $this->getTokenSalt();\n $token = $salt . $this->getResizedFile() . $salt;\n return sha1($token);\n }", "title": "" }, { "docid": "c1bd9b7cbb740fac0e43964191d517f3", "score": "0.5772297", "text": "protected function siteToken() {\n\t\treturn $this->encrypt(\n\t\t\tDelectusModule::site_identifier(),\n\t\t\tDelectusModule::client_salt()\n\t\t);\n\t}", "title": "" }, { "docid": "b1abf52dac5ca4fcf6eedcc1d1cf8d2f", "score": "0.5769464", "text": "private function uniqueSalt() {\n return substr(sha1(mt_rand()),0,22);\n }", "title": "" }, { "docid": "e3b9608ea7ce20661cf19aa6f5fadc87", "score": "0.5766042", "text": "private function createSalt()\r\n\t{\r\n\t\treturn md5($this->makeRandomString(20,true).$this->makeRandomString(20,true));\r\n\t}", "title": "" }, { "docid": "224791d766e8b8f6514451309208ab66", "score": "0.576398", "text": "public function createSalt()\n {\n return substr(str_shuffle('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789') , 0 , 32);\n }", "title": "" }, { "docid": "fe0469bc2b23277dc664c03df68f2896", "score": "0.575683", "text": "public static function token() {\n return md5(time() . rand(100, 999));\n }", "title": "" }, { "docid": "791ecb9aca2038903c4e7b4680d9bf48", "score": "0.5754031", "text": "public function getHash()\n {\n return $this->hash;\n }", "title": "" }, { "docid": "791ecb9aca2038903c4e7b4680d9bf48", "score": "0.5754031", "text": "public function getHash()\n {\n return $this->hash;\n }", "title": "" }, { "docid": "c50b0f2fa01e67bfb226401605c5b0fe", "score": "0.57500744", "text": "private function getHashedToken(DateTimeInterface $expiredAt, int $userId, string $verifier = null): string\n {\n $encodedData = json_encode([$verifier, $userId, $expiredAt->getTimestamp()]);\n\n return base64_encode(hash_hmac('sha256', (string) $encodedData, self::SIGNING_KEY, true));\n }", "title": "" }, { "docid": "198da53241d6fea449b415565e230fef", "score": "0.5748885", "text": "public function getHashed()\n {\n return password_hash( $this->value, PASSWORD_DEFAULT );\n }", "title": "" }, { "docid": "1798f4c5f28a2253fcf32ddb466e0469", "score": "0.5736181", "text": "public function generateSalt()\n {\n return md5(microtime());\n }", "title": "" }, { "docid": "7105d404a608dbadf070897f8cd8a73f", "score": "0.57355154", "text": "function getHash($senha) {\n return password_hash($password, PASSWORD_DEFAULT);\n }", "title": "" }, { "docid": "a5e9c0fcaa5010f7aba7ecd34e4f7930", "score": "0.5716138", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "05652faf592340108e66141ec4554229", "score": "0.57132936", "text": "public static function getUserByHash($hash){\n\n\n\t}", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" }, { "docid": "ec869d2d62d29f6c9433f5bd84736e17", "score": "0.57081974", "text": "public function getSalt()\n {\n }", "title": "" } ]
c33f1b58212c126e01afe52ca58378d8
var $helpers = array('Chart');
[ { "docid": "6482a780c3bb243b2aa1f170d8b30c5d", "score": "0.0", "text": "function index()\n\t{\n\n\t}", "title": "" } ]
[ { "docid": "277396e38b12cf7d4bed66c90997e638", "score": "0.70811355", "text": "public function chartjs()\n {\n return view('pages/charts/chartjs');\n }", "title": "" }, { "docid": "84356d31bff757ab47e2d2198642a5dd", "score": "0.6381551", "text": "function charts() {\n $this->name=\"charts\";\n $this->title=\"Charts\";\n $this->module_category=\"<#LANG_SECTION_OBJECTS#>\";\n $this->checkInstalled();\n}", "title": "" }, { "docid": "84356d31bff757ab47e2d2198642a5dd", "score": "0.6381551", "text": "function charts() {\n $this->name=\"charts\";\n $this->title=\"Charts\";\n $this->module_category=\"<#LANG_SECTION_OBJECTS#>\";\n $this->checkInstalled();\n}", "title": "" }, { "docid": "2369fd10699c600f22b9b2e86e69002b", "score": "0.6278542", "text": "public function charts(){\n // body\n return view(\"admin.charts\");\n }", "title": "" }, { "docid": "2b34e4b368cdaaaf09186848af4b8843", "score": "0.6017821", "text": "public function displatchart(){\n\t\t$this->load->view(\"chart\");\n\t}", "title": "" }, { "docid": "4d10914f394f326da10d4c8a9f21585f", "score": "0.6008935", "text": "public function graphdata()\n {\n // $chart = Charts::database($products, 'bar', 'highcharts')\n // ->title('Product Details')\n // ->elementLabel('Total Products')\n // ->dimensions(1000, 500)\n // ->groupBy(date('H'), true);\n // return view('fornt.graph', ['chart' => $chart]);\n\n return view('fornt.graph');\n }", "title": "" }, { "docid": "16913dff4d4def20c21d2d47f1e17fd3", "score": "0.58993113", "text": "public function getCurveChart() {\n return array(\n \"labels\" => array(\n '00:00', '01:00', '02:00', '03:00', '04:00', '05:00',\n '06:00', '07:00', '08:00', '09:00', '10:00', '11:00',\n '12:00', '13:00', '14:00', '15:00', '16:00', '17:00',\n '18:00', '19:00', '20:00', '21:00', '22:00', '23:00'\n ),\n \"records\" => array(\n array(\n \"values\" => array(10,15,30,34,44,49,12,42,66,21,34,29,45,21,46,72,12,58,49,12,30,44,27,46),\n \"label\" => \"type1\"\n ),\n array(\n \"values\" => array(12,35,77,23,46,12,34,56,23,45,56,12,56,44,67,23,45,67,12,84,35,78,23,46),\n \"label\" => \"type2\"\n ),\n array(\n \"values\" => array(90,85,32,34,56,23,67,23,67,85,32,45,46,77,54,57,23,12,33,56,78,56,69,34),\n \"label\" => \"type3\"\n ),\n )\n );\n }", "title": "" }, { "docid": "358fe60f58c04aeb1922d2b893322a80", "score": "0.58493155", "text": "public function getChartInfo();", "title": "" }, { "docid": "8780278318b8df4e71fef334cbd179f7", "score": "0.58253825", "text": "protected function charts($span=15){\n \t$this->db->object=FALSE;\n $votes=$this->db->get(array(\"count\"=>\"COUNT(DATE(date)) as count, DATE(date) as date\",\"table\"=>\"vote\"),\"(date >= CURDATE() - INTERVAL $span DAY) AND pollid=? AND polluserid=?\",array(\"group_custom\"=>\"DAY(date)\",\"limit\"=>\"0 , $span\"),array($this->id,$this->userid)); \n $new_date=array(); \n foreach ($votes as $votes[0] => $data) {\n $new_date[date(\"d M\",strtotime($data[\"date\"]))]=$data[\"count\"];\n }\n $timestamp = time();\n for ($i = 0 ; $i < $span ; $i++) {\n $array[date('d M', $timestamp)]=0;\n $timestamp -= 24 * 3600;\n }\n $date=\"\"; $var=\"\"; $i=0; \n\n foreach ($array as $key => $value) {\n $i++;\n if(isset($new_date[$key])){\n $var.=\"[\".($span-$i).\", \".$new_date[$key].\"], \";\n $date.=\"[\".($span-$i).\",\\\"$key\\\"], \";\n }else{\n $var.=\"[\".($span-$i).\", 0], \";\n $date.=\"[\".($span-$i).\", \\\"$key\\\"], \";\n } \n }\n $data=array($var,$date);\n Main::add(\"{$this->config[\"url\"]}/static/js/flot.js\",\"js\");\n Main::add(\"<script type='text/javascript'>var options = {\n series: {\n lines: { show: true, lineWidth: 2,fill: true},\n //bars: { show: true,lineWidth: 1 }, \n points: { show: true, lineWidth: 2 }, \n shadowSize: 0\n },\n grid: { hoverable: true, clickable: true, tickColor: 'transparent', borderWidth:0 },\n colors: ['#FFFFFF', '#F11010', '#1F2227'],\n xaxis: {ticks:[{$data[1]}], tickDecimals: 0, color: '#fff'},\n yaxis: {ticks:3, tickDecimals: 0, color: '#fff'},\n xaxes: [ { mode: 'time'} ]\n }; \n var data = [{\n data: [{$data[0]}]\n }];\n $.plot('#vote-chart', data ,options);</script>\",'custom',TRUE); \n }", "title": "" }, { "docid": "5cdc25f74e36b1affebe78bc33bcc316", "score": "0.579767", "text": "public function chart()\n\t{\n\t\t$data['encabezado'] = 'mountain/encabezado';\n\t\t$data['menu'] = 'mountain/menu';\n\t\t$data['contenido'] = 'mountain/contenido/contenido_chart';\n $data['title'] = 'Mountain';\n //$data['title'] = $title['title'] = 'Mountain';\n\n\t\t//$this->load->view('header');\n $this->load->helper('url');\n\t\t$this->load->view('template_mountain',$data);\n\t\t//$this->load->view('footer');\n\t}", "title": "" }, { "docid": "0e3978147de50f8e608ee567421ec335", "score": "0.57509875", "text": "function charts()\n\t{\n\n\t\t$this->set('lfmlisteners',$this->Session->read('lfmlisteners'));\n\t\t$this->set('dt',$this->Session->read('dt'));\n\t\t\n\t}", "title": "" }, { "docid": "bc04d4a4ffd579b58fe2ac53e2fe2a23", "score": "0.5740415", "text": "public function setup()\n {\n\n $xshop_physical_sells=Communication::Where('communication_types_id','=','sells')->Where('sells_type', '=' ,'Physical Sells')->Where('branch', '=','Xshop')->count();\n $brain_physical_sells=Communication::Where('communication_types_id','=','sells')->Where('sells_type','=','Physical Sells')->Where('branch','=','Brain')->count();\n $total =$xshop_physical_sells+$brain_physical_sells;\n\n $xshop_rate=round((($xshop_physical_sells/$total)*100.00),1);\n $brain_rate=round((($brain_physical_sells/$total)*100.00),1);\n // MANDATORY. Set the labels for the dataset points\n\n $this->chart = new Chart();\n $this->chart->labels(['Xshop '.$xshop_rate.\"%\",\n 'Brain '.$brain_rate.\"%\"\n ]);\n $this->chart->dataset('My dataset','pie',[$xshop_physical_sells,$brain_physical_sells])\n /*->backgroundcolor([\n 'rgb(0,0,255)',\n 'rgb(0,255,0)',\n ])*/;\n // RECOMMENDED. Set URL that the ChartJS library should call, to get its data using AJAX.\n $this->chart->load(backpack_url('charts/xshop_brain'));\n // $this->chart->minimalist(true);\n\n // OPTIONAL\n $this->chart->minimalist(true);\n // $this->chart->displayLegend(true);\n }", "title": "" }, { "docid": "839550230d17d7d60423c658590315d1", "score": "0.56720877", "text": "public function graphJs()\n {\n\n $chartData = [];\n $userQuestions = UserQuestion::all();\n\n # generate chart array data\n foreach( $userQuestions as $userQuestion){\n if(!$userQuestion->selected_answer){\n continue;\n }\n $date = new \\DateTime($userQuestion->created_at);\n $dateString = $date->format('m-d-y');\n $question = $userQuestion->question()->first();\n\n if(!isset($chartData[$question->id]['counts'][$dateString])){\n $chartData[$question->id]['title'] = $question->text . \"?\";\n $chartData[$question->id]['counts'][$dateString][0] = \"\".$dateString;\n //$chartData[$question->id]['counts'][$dateString][0] = (string)$dateString;\n $chartData[$question->id]['labels'][0] = 'Date';\n foreach($question->answers()->get() as $answer) {\n $chartData[$question->id]['labels'][$answer->id] = $answer->text;\n\n $chartData[$question->id]['counts'][$dateString][$answer->id] = 0;\n\n }\n }\n $chartData[$question->id]['counts'][$dateString][$userQuestion->selected_answer]++;\n }\n\n #reformat chart data\n\n foreach($chartData as &$data){\n $data['counts'] = array_values($data['counts']);\n #$data['labels'] = array_values($data['labels']);\n #print_r(array_values($data['counts']));\n\n }\n\n return response()\n ->view('graph-js', ['chartData' => $chartData], 200)\n ->header('Content-Type', 'application/javascript');\n }", "title": "" }, { "docid": "b3e2be470d11f8510b3f2a870a6d4d62", "score": "0.5636275", "text": "public function getChart()\n {\n $chores = Chore::where('user_id','=', Auth::user()->id)->get();\n return View::make('chart', compact('chores'));\n }", "title": "" }, { "docid": "91ce324d37cc2446789861e99e1d1833", "score": "0.55977726", "text": "public function drawChart() {\n\n $data = $this->chart_model->get_barchartdata();\n\n $category = array();\n $category['name'] = 'Category';\n\n $series1 = array();\n $series1['name'] = 'No of Issues';\n \n $series2 = array();\n $series2['name'] = 'No of Testcases';\n\n\n foreach ($data as $row) {\n $category['data'][] = $row->Pname;\n $series1['data'][] = $row->issues;\n $series2['data'][] = $row->testcases;\n \n }\n\n $result = array();\n array_push($result, $category);\n array_push($result, $series1);\n array_push($result, $series2);\n \n \n\n print json_encode($result, JSON_NUMERIC_CHECK);\n\n return $result;\n }", "title": "" }, { "docid": "1717a652b73f9796576fdaeea44956d7", "score": "0.5568564", "text": "public function index()\n {\n\n $enfant = DB::table('enfants')\n ->where('sexe', 'like','%'.'أنثى'.'%' )\n ->get();\n $chart = Charts::database($enfant, 'bar', 'highcharts')\n ->title(\"Monthly new Register Users\")\n ->elementLabel(\"Total Users\")\n ->dimensions(1000, 500)\n ->responsive(false)\n ->groupByMonth(date('Y'), true);\n\n\n\n $enfant_pie = DB::table('enfants')\n ->where('sexe', 'like','%'.'أنثى'.'%' )\n ->get();\n $pie_chart = Charts::create($enfant_pie,'pie', 'highcharts')\n ->title('My nice chart')\n ->labels(['أنثى', 'ذكر', 'reste'])\n ->values([5,10,20])\n ->dimensions(1000,500)\n ->responsive(false);\n\n $us = Enfant::where(DB::raw(\"(DATE_FORMAT(created_at,'%Y'))\"),date('Y'))\n ->get();\n $pie_cha = Charts::create('us','pie', 'highcharts')\n ->title('My nice chart')\n ->labels(['First', 'Second', 'Third'])\n ->values([5,10,20])\n ->dimensions(1000,500)\n ->responsive(false);\n\n $percentage_chart = Charts::create('percentage', 'justgage')\n ->title('My nice chart')\n ->elementLabel('My nice label')\n ->values([65,0,100])\n ->responsive(false)\n ->height(300)\n ->width(0);\n return view('admin.chart.index',compact('chart', 'pie_chart' ,'percentage_chart'));\n\n }", "title": "" }, { "docid": "14088360bfa3e877ef09400533013cd2", "score": "0.55504537", "text": "static function chart($id='myChart')\n {\n \t//$this->getRequest()->setParam('_exportTo', 'ofc');\n\t\t\n\t\t$root = Zend_Registry::get('root');\n $config = new Zend_Config_Ini($root.'/application/configs/bvb.ini');\n $chart = Bvb_Grid::factory('Ofc', $config, $id);\n $chart->setExport(array('ofc'));\n return $chart;\n }", "title": "" }, { "docid": "54177d88c0fdded33a2f449e579483f1", "score": "0.55468464", "text": "public function getDefaultView() : IChartView;", "title": "" }, { "docid": "5a2ceb920ae0e1c21e3a8229cf8c97f2", "score": "0.551466", "text": "function include_fusion_chart_js() {\n\t\tenqueue_script(module_url(realpath(dirname(__FILE__).'/../')) . 'includes' . DS . 'fusionCharts.js');\n\t}", "title": "" }, { "docid": "9785f4bcf852688918fe615178d57ed0", "score": "0.5486723", "text": "abstract protected function getChartOptions();", "title": "" }, { "docid": "d6e2a08ee910ff38d67e0d6abe84adb5", "score": "0.54858816", "text": "public function index()\n {\n return view(\"/survey.chartSurvey\");\n }", "title": "" }, { "docid": "79293c3dc8ec9c294d7ebd79d87d8c65", "score": "0.5480147", "text": "public function get_chart() {\n $bluff_js_files = $this->get_bluff_js_files();\n\n foreach ($bluff_js_files as $file_path) {\n drupal_add_js($file_path);\n }\n\n $bluff_path = drupal_get_path('module', 'charts_graphs_bluff');\n drupal_add_css($bluff_path . '/charts_graphs_bluff.css');\n\n $x_labels = $this->x_labels;\n $series = $this->series;\n $chart_id = 'bluffchart-' . charts_graphs_chart_id_generator();\n $table = array();\n\n $table[] = sprintf('\n <table id=\"%s\" class=\"bluff-data-table\">\n <caption>%s</caption>\n <thead>\n <tr>\n <th scope=\"col\"></th>\n\n ', $chart_id, $this->title\n );\n\n $serie_keys = array_keys($series);\n foreach ($serie_keys as $col) {\n $table[] = sprintf(\"<th scope='col'>%s</th>\\n\", $col);\n }\n\n $table[] = \"</tr></thead><tbody>\\n\";\n\n foreach ($x_labels as $label) {\n $table[] = \"<tr>\\n\";\n $cols = array($label);\n\n foreach ($serie_keys as $serie_key) {\n $cols[] = array_shift($series[$serie_key]);\n }\n\n $table[] = sprintf(\"<th scope='row'>%s</th>\\n\", array_shift($cols));\n\n foreach ($cols as $col) {\n $table[] = sprintf(\"<td>%s</td>\\n\", (string) $col);\n }\n\n $table[] = \"</tr>\\n\";\n }\n\n $table[] = \"</tbody></table>\\n\";\n\n $is_pie_chart = ($this->type == 'pie');\n\n if ($this->orientation === NULL) {\n $this->orientation = $is_pie_chart ? 'rows' : 'auto';\n }\n\n $this->_initialize_final_parameters($chart_id);\n $html = implode('', $table);\n\n $javascript = '\n <canvas id=\"%chart_id-graph\" width=\"%width\" height=\"%height\"></canvas>\n <script type=\"text/javascript\">\n var ChartsAndGraphs = ChartsAndGraphs || {};\n\n ChartsAndGraphs.init = function() {\n var g = new Bluff.%type(\"%chart_id-graph\", \"%widthx%height\");\n ';\n $javascript .= $this->_get_encoded_parameters();\n $javascript .= '\n g.draw();\n\n var g_labels = %json_encode;\n var legend = [\"<ul class=\\\"bluff-legend\\\">\"];\n\n for (var i = 0, j = 0, color; i < g_labels.length; i++, j++) {\n if (g.colors[j]) {\n color = g.colors[j]\n }\n else {\n g.colors[(0)];\n j = 0;\n }\n legend.push(\"<li>\");\n legend.push(\"<div style=\\\"background-color: \" + color + \"\\\"><\\/div>\" + g_labels[i]);\n legend.push(\"<\\/li>\");\n }\n\n legend.push(\"<\\/ul>\");\n\n jQuery(\"#%chart_id-graph\")\n .parent(\"div.bluff-wrapper\")\n .append(legend.join(\"\"))\n .css({height: \"auto\"});\n }\n\n jQuery(window).load(ChartsAndGraphs.init);\n\n Drupal.behaviors.ChartsAndGraphs_init = function(context) {\n ChartsAndGraphs.init();\n }\n </script>';\n\n $javascript = strtr(\n $javascript, array(\n '%chart_id' => $chart_id,\n '%type' => $this->_get_translated_chart_type(),\n '%width' => $this->width,\n '%height' => $this->height,\n '%json_encode' => json_encode($is_pie_chart ? $x_labels : array_keys($series)),\n )\n );\n\n $element = array(\n '#markup' => $html . $javascript,\n );\n return $element;\n }", "title": "" }, { "docid": "5aa1644f02bc1da5fbc2e012ea64bfb5", "score": "0.5457593", "text": "function dailycharts()\n\t{\n\n\t\t$results= $this->Session->read('dailychart');\n\t\t$diff= $this->Session->read('diff'); // for weekly 'w' , monthly 'm' & yearly 'y'\n\t\t$this->set('results',$results);\n\t\t$this->set('diff',$diff);\n\t\t\t\n\t}", "title": "" }, { "docid": "03b7597828aada78a070d0b26d7f08f9", "score": "0.54511505", "text": "public function index()\n {\n return view('chart.index');\n }", "title": "" }, { "docid": "74bd0b4329587d8cb2efcc3608a4cf1b", "score": "0.54456425", "text": "public function render() {\n return array(\n '#theme' => 'quizz_stats_charts',\n '#attached' => array(\n 'css' => array(drupal_get_path('module', 'quizz_stats') . '/quizz_stats.css')\n ),\n '#charts' => array(\n 'takeup' => $this->getDateVSTakeupCountChart(),\n // line chart/graph showing quiz takeup date along x-axis and count along y-axis\n 'status' => $this->getQuizStatusChart($this->quiz_vid, $this->uid),\n // 3D pie chart showing percentage of pass, fail, incomplete quiz status\n 'top_scorers' => $this->getQuizTopScorersChart(),\n // Bar chart displaying top scorers\n 'grade_range' => $this->getQuizGradeRangeChart(),\n ),\n );\n }", "title": "" }, { "docid": "6407dd92f397d343632050ccb9f34fb5", "score": "0.54338616", "text": "function charts_path($path = '')\n {\n return app_path(config('charts.namespace', 'Charts').($path ? DIRECTORY_SEPARATOR.$path : $path));\n }", "title": "" }, { "docid": "a8b4a85923d8fc979a41b41ae47c3170", "score": "0.54154927", "text": "public function index()\n {\n // $data = Income::all();\n // return($data);\n\n $data = Income::pluck('amount','month');\n // return $data->keys();\n // return $data->values();\n $chart = new SimpleChart;\n // $chart->labels(['one','two','three','four']);\n // $chart->dataset('My Dataset','line',[1,2,3,4]);\n\n $chart->labels($data->keys());\n $chart->dataset('Monthly Income','pie',$data->values());\n return view ('chart.index',compact('chart','data'));\n\n }", "title": "" }, { "docid": "136f251ff49da95c58b69cf2713fac9e", "score": "0.5398716", "text": "public function getJsClass()\n {\n return 'google.visualization.Dashboard';\n }", "title": "" }, { "docid": "6998621fe304cd62abe10e3e231dc669", "score": "0.53916055", "text": "public function index()\n {\n $data = collect([]);//declare as a Array-----------------\n $data2 = collect([]);\n\n //add data to Array---------------------------------------\n\n $chart = new test1();\n //begin chart----------------------\n $chart->labels($data->values());\n $chart->dataset('Employee Attendance', 'line', $data2->values());\n //add label and data set\n return view('EmployeeChart', compact('chart'));\n\n }", "title": "" }, { "docid": "7e5a0dd9a92137db138d2f70ff851846", "score": "0.53564787", "text": "function section__graph(){\n $app =& Dataface_Application::getInstance();\n return array(\n 'content' => \"<form action='{$app->url('-action=plot')}' method='post'>\n <input type='submit' value='Plot this Timeseries' /></form>\",\n 'class' => \"main\",\n 'label' => \"Timeseries Plotting options\",\n 'order' => \"10\"\n );\n }", "title": "" }, { "docid": "8866fcb0aab0fdc8f43fbed549cdd80d", "score": "0.5307929", "text": "public function charts(Request $request)\n {\n return view('pages.charts');\n }", "title": "" }, { "docid": "56c592f06d70b61884ae3f86093d868c", "score": "0.52818763", "text": "function wassupDashChart() {\n\tglobal $wpdb, $wassup_options;\n\t$wassup_table = $wassup_options->wassup_table;\n\tif ($wassup_options->wassup_dashboard_chart == 1) {\n\t\t$chart_type = ($wassup_options->wassup_chart_type >0)? $wassup_options->wassup_chart_type: \"2\";\n\t\t$to_date = current_time(\"timestamp\");\n\t\t$Chart = New WassupItems($wassup_table,\"\",$to_date);\n \t$chart_url = $Chart->TheChart(1, \"400\", \"125\", \"\", $chart_type, \"bg,s,efebef|c,lg,90,edffff,0,efebef,0.8\", \"dashboard\"); ?>\n\t<h3>WassUp <?php _e('Stats','wassup'); ?> <cite><a href=\"admin.php?page=<?php echo WASSUPFOLDER; ?>\"><?php _e('More','wassup'); ?> &raquo;</a></cite></h3>\n\t<div id=\"placeholder\" align=\"left\">\n\t\t<img src=\"<?php echo $chart_url; ?>\" alt=\"WassUp <?php _e('visitor stats chart','wassup'); ?>\"/>\n\t</div>\n<?php\t}\n}", "title": "" }, { "docid": "3e31cbe54cb3bebd2da984940778839d", "score": "0.5280512", "text": "public function chart()\n {\n return $this->belongsTo('App\\AnalysisChart');\n }", "title": "" }, { "docid": "418d74bdae7c64f4f6563bf3720e79d7", "score": "0.5279056", "text": "public function index()\n {\n $chart = Charts::database(User::all(), 'pie', 'highcharts')\n ->elementLabel(\"Total\")\n ->dimensions(1000, 500)\n ->responsive(true)\n ->groupBy('type');\n\n return view('admin.graficas.test', ['chart' => $chart]);\n }", "title": "" }, { "docid": "ae041e319357381eafb00c789612747a", "score": "0.5270037", "text": "protected function getHelpers(): array\n {\n return [];\n }", "title": "" }, { "docid": "ae041e319357381eafb00c789612747a", "score": "0.5270037", "text": "protected function getHelpers(): array\n {\n return [];\n }", "title": "" }, { "docid": "dbf9803537fd8e1d42d22628f5d3db75", "score": "0.526875", "text": "public function dashboard()\n\t{\n\t\t// Dashboard Latest Entries Chart: 'bar' or 'line'\n\t\t$tmp = @explode('_', config('settings.app.vector_charts_type'));\n\t\tif (isset($tmp[0], $tmp[1]) && !empty($tmp[0]) && !empty($tmp[1])) {\n\t\t\t$this->data['chartsType'] = ['provider' => $tmp[0], 'type' => $tmp[1]];\n\t\t} else {\n\t\t\t$this->data['chartsType'] = ['provider' => 'morris', 'type' => 'bar'];\n\t\t}\n\t\t\n\t\t// Limit latest entries\n\t\t$latestEntriesLimit = config('settings.app.latest_entries_limit', 5);\n\t\t\n\t\t// -----\n\t\t\n\t\t// Get latest Ads\n\t\t$this->data['latestPosts'] = Post::take($latestEntriesLimit)->orderBy('created_at', 'DESC')->get();\n\t\t\n\t\t// Get latest Users\n\t\t$this->data['latestUsers'] = User::take($latestEntriesLimit)->orderBy('created_at', 'DESC')->get();\n\t\t\n\t\t// Get latest entries charts\n\t\t$statDayNumber = 30;\n\t\t\n\t\t$getLatestPostsChartMethod = 'getLatestPostsFor' . ucfirst($this->data['chartsType']['provider']);\n\t\tif (method_exists($this, $getLatestPostsChartMethod)) {\n\t\t\t$this->data['latestPostsChart'] = $this->$getLatestPostsChartMethod($statDayNumber);\n\t\t}\n\t\t\n\t\t$getLatestUsersChartMethod = 'getLatestUsersFor' . ucfirst($this->data['chartsType']['provider']);\n\t\tif (method_exists($this, $getLatestUsersChartMethod)) {\n\t\t\t$this->data['latestUsersChart'] = $this->$getLatestUsersChartMethod($statDayNumber);\n\t\t}\n\t\t\n\t\t// Get entries per country charts\n\t\tif (config('settings.app.show_countries_charts')) {\n\t\t\t$countriesLimit = 10;\n\t\t\t$this->data['postsPerCountry'] = $this->getPostsPerCountryForChartjs($countriesLimit);\n\t\t\t$this->data['usersPerCountry'] = $this->getUsersPerCountryForChartjs($countriesLimit);\n\t\t}\n\t\t\n\t\t// -----\n\t\t\n\t\t// Page Title\n\t\t$this->data['title'] = trans('admin.dashboard');\n\t\t\n\t\treturn view('admin::dashboard.index', $this->data);\n\t}", "title": "" }, { "docid": "080c1ac96cf28ca2f820b2b2912311b4", "score": "0.52580535", "text": "public function chartsAction()\n {\n $key = 'charts';\n\n $exists = $this->view->getCache()->exists($key);\n if (!$exists) {\n\n $tagGenres = array(\n 'pop', 'rock', 'rap',\n 'rnb', 'electronic', 'alternative',\n 'folk', 'country', 'hip-hop',\n 'dance', 'chillout', 'trip-hop',\n 'metal', 'ambient', 'soul',\n 'jazz', 'latin', 'punk'\n );\n\n $charts = array();\n foreach ($tagGenres as $genre) {\n\n $tag = Tags::findFirst(array(\n 'name = ?0', 'bind' => array($genre)\n ));\n if ($tag == false) {\n continue;\n }\n\n //Top albums\n $phql = 'SELECT\n al.id,\n al.name,\n ar.uri,\n ar.id as artist_id,\n ar.name as artist,\n ap.url\n FROM AlbumOrama\\Models\\Albums al\n JOIN AlbumOrama\\Models\\Artists ar\n JOIN AlbumOrama\\Models\\AlbumsTags at\n JOIN AlbumOrama\\Models\\AlbumsPhotos ap\n WHERE\n ap.type = \"small\" AND\n at.tags_id = '.$tag->id.'\n ORDER BY al.playcount DESC\n LIMIT 10';\n $charts[$tag->name] = $this->modelsManager->executeQuery($phql);\n }\n\n $this->view->setVar('charts', $charts);\n\n }\n\n $this->view->cache(array(\"key\" => $key));\n }", "title": "" }, { "docid": "ae229a2f7ad02b7c9bfd08f7de23a2f1", "score": "0.5255477", "text": "protected function _helper()\r\n {\r\n return Mage::helper('advancedreports');\r\n }", "title": "" }, { "docid": "4c8e6d7b62df379d6d08e92dc23a58b5", "score": "0.5246836", "text": "public function get_chart_data() {\n return $this->chart_data;\n }", "title": "" }, { "docid": "781c7987aad03b188d5956de5d7bb8b6", "score": "0.52422225", "text": "function kp_defaultviews_organism_type_piechart() {\n\n$view = new view();\n$view->name = 'kppages_organism_stock_types_chart_pie';\n$view->description = 'Pie chart of stock types on organism pages';\n$view->tag = 'KP Pages';\n$view->base_table = 'organism_stock_count';\n$view->human_name = 'Organism: Stock Type Distribution';\n$view->core = 7;\n$view->api_version = '3.0';\n$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */\n\n/* Display: Master */\n$handler = $view->new_display('default', 'Master', 'default');\n$handler->display->display_options['title'] = 'Organism Stock Distribution';\n$handler->display->display_options['use_more_always'] = FALSE;\n$handler->display->display_options['access']['type'] = 'none';\n$handler->display->display_options['cache']['type'] = 'none';\n$handler->display->display_options['query']['type'] = 'views_query';\n$handler->display->display_options['exposed_form']['type'] = 'basic';\n$handler->display->display_options['pager']['type'] = 'none';\n$handler->display->display_options['style_plugin'] = 'chart';\n$handler->display->display_options['style_options']['library'] = '';\n$handler->display->display_options['style_options']['label_field'] = 'stock_type';\n$handler->display->display_options['style_options']['data_fields'] = array(\n 'num_stocks' => 'num_stocks',\n 'stock_type' => 0,\n);\n$handler->display->display_options['style_options']['field_colors'] = array(\n 'stock_type' => '#2f7ed8',\n 'num_stocks' => '#0d233a',\n);\n$handler->display->display_options['style_options']['legend_position'] = 'bottom';\n$handler->display->display_options['style_options']['colors'] = array(\n 0 => '#3c4a54',\n 1 => '#a9b259',\n 2 => '#406b48',\n 3 => '#7c9a99',\n 4 => '#413e57',\n 5 => '#929000',\n 6 => '#508020',\n 7 => '#657f8b',\n 8 => '#6a8053',\n 9 => '#3a8080',\n);\n$handler->display->display_options['style_options']['width'] = '';\n$handler->display->display_options['style_options']['height'] = '';\n$handler->display->display_options['style_options']['xaxis_labels_rotation'] = '0';\n$handler->display->display_options['style_options']['yaxis_labels_rotation'] = '0';\n/* Field: Chado Organism Stock Count: Stock Type */\n$handler->display->display_options['fields']['stock_type']['id'] = 'stock_type';\n$handler->display->display_options['fields']['stock_type']['table'] = 'organism_stock_count';\n$handler->display->display_options['fields']['stock_type']['field'] = 'stock_type';\n$handler->display->display_options['fields']['stock_type']['label'] = 'Type';\n/* Field: Chado Organism Stock Count: Num Stocks */\n$handler->display->display_options['fields']['num_stocks']['id'] = 'num_stocks';\n$handler->display->display_options['fields']['num_stocks']['table'] = 'organism_stock_count';\n$handler->display->display_options['fields']['num_stocks']['field'] = 'num_stocks';\n$handler->display->display_options['fields']['num_stocks']['separator'] = '';\n/* Sort criterion: Chado Organism Stock Count: Num Stocks */\n$handler->display->display_options['sorts']['num_stocks']['id'] = 'num_stocks';\n$handler->display->display_options['sorts']['num_stocks']['table'] = 'organism_stock_count';\n$handler->display->display_options['sorts']['num_stocks']['field'] = 'num_stocks';\n$handler->display->display_options['sorts']['num_stocks']['order'] = 'DESC';\n/* Filter criterion: Chado Organism Stock Count: Organism Id */\n$handler->display->display_options['filters']['organism_id']['id'] = 'organism_id';\n$handler->display->display_options['filters']['organism_id']['table'] = 'organism_stock_count';\n$handler->display->display_options['filters']['organism_id']['field'] = 'organism_id';\n$handler->display->display_options['filters']['organism_id']['value']['value'] = '4';\n\n/* Display: Block */\n$handler = $view->new_display('block', 'Block', 'block');\n\nreturn $view;\n}", "title": "" }, { "docid": "5f29e841dced01cfe56513445bd7e706", "score": "0.5231512", "text": "public function getSeries(): string;", "title": "" }, { "docid": "ee5796565cee800da10a24bc50edfbf9", "score": "0.52262145", "text": "public function charts()\n {\n return $this->hasMany('App\\Chart');\n }", "title": "" }, { "docid": "2810bc1aae52a445a5cda7dc28d88045", "score": "0.521068", "text": "function register_ib_chart_widget()\n{\n\tregister_widget('IB_Chart_Widget_Widget');\n}", "title": "" }, { "docid": "17a3376984409f9aaf8fbe2f31b7a45c", "score": "0.5200369", "text": "public function index()\n {\n\n $chart = DB::table('jadwal_kuliahs')->get('*')->toArray();\n foreach($chart as $row)\n {\n $chart[] = array\n (\n 'label'=>$row->nama_mkul,\n 'y'=>$row->jumlah_mhs\n ); \n }\n return view('home',['chart' => $chart]);\n }", "title": "" }, { "docid": "56f79aff1ccc9a8932e78080ac1bfdc4", "score": "0.52002275", "text": "function Chart_model()\n\t\t{\n\t\t\tparent::__construct();\n\t\t\t$this->load->database();\n\t\t}", "title": "" }, { "docid": "2e99b0e4703279dcbfef15a05c4f2f7b", "score": "0.5198432", "text": "public function getPieChart() {\n return array(\n \"records\" => array(\n array(\"value\" => 50, \"label\" => \"type1\"),\n array(\"value\" => 70, \"label\" => \"type2\"),\n array(\"value\" => 90, \"label\" => \"type3\"),\n array(\"value\" => 30, \"label\" => \"type4\"),\n array(\"value\" => 40, \"label\" => \"type5\"),\n )\n );\n }", "title": "" }, { "docid": "347fec1d56555c9c7d27df1713e2621b", "score": "0.5197076", "text": "private function renderChart()\n\t{\n\t\tif (e107::isInstalled('log')) \n\t\t{\n\t\t\treturn $this->renderStats('log');\n\t\t}\n\t\telseif(e107::isInstalled('awstats')) \n\t\t{\n\t\t\treturn $this->renderStats('awstats');\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->renderStats('demo');\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "bdbbdb62afe3cf5ecb9740b3d83aa16d", "score": "0.51963985", "text": "private static function loadPieFreeUsedSpaceRatioChart(){\n\t\treturn 'pierfsus=new Highcharts.Chart({chart:{renderTo:\\'pie_rfsus\\',backgroundColor:\\'#F8F8F8\\',plotBackgroundColor:\\'#F8F8F8\\',plotBorderWidth:false,plotShadow:false},title:{text:\\'\\'},tooltip:{formatter:function(){return \\'<b>\\'+this.point.name+\\'</b>: \\'+(Math.round(this.percentage*100)/100)+\\' %\\';}},plotOptions:{pie:{allowPointSelect:true,cursor:\\'pointer\\',dataLabels:{enabled:true,color:\\'#000000\\',connectorColor:\\'#000000\\',formatter:function(){return\\'<b>\\'+this.point.name+\\'</b>: \\'+Math.round(this.percentage)+\\' %\\';}}}},series:[{type:\\'pie\\',name:\\'Used-Free space ratio\\',data:[' . OC_DLStCharts::arrayParser('pie',OC_DLStCharts::getPieFreeUsedSpaceRatio(), self::$l) . ']}],exporting:{enabled:false}});';\n\t}", "title": "" }, { "docid": "852592b13bd566811df05ee2c70bc4bb", "score": "0.51914203", "text": "public function render()\n {\n return view('components.your-indicators');\n }", "title": "" }, { "docid": "2728a007e3d82d9ee7c9f949c85de0aa", "score": "0.5186181", "text": "public function getVisualisation();", "title": "" }, { "docid": "e863ba283a7f2a48c5a88633b3ddda38", "score": "0.51693064", "text": "public function graph()\n\t{\n\t\t$month \t\t\t= str_pad(\\Request::input('month', date('m')), 2, \"0\", STR_PAD_LEFT);\n\t\t$year \t\t\t= \\Request::get('year',date('Y'));\n\t\t$viewaxis \t\t= \\Request::get('viewaxis','pc_sales');\n\t\t$canvasData \t= Order::getCanvasData($viewaxis);\n\t\tif ($canvasData) {$chartTitle = Order::getChartTitle($viewaxis);} else {$chartTitle = 'There are no orders for the date selected.';}\n\t\t\t\t\t\t\t\t\n\t\treturn view('orders.graph', compact('orders'))->with('month', $month)->with('year', $year)->with('viewaxis', $viewaxis)->with('chartTitle', $chartTitle)->with('canvasData', $canvasData);\n\t\t//return view('orders.index', array('orders' => $orders));\n\t}", "title": "" }, { "docid": "8869ed97a94f73bae61a3f2af962a54a", "score": "0.5166342", "text": "public function index()\n {\n \t$msgs = Message::count();\n \t$cats = Category::count();\n \t$cmds = Comand::count();\n \t$pds = Product::count();\n\n \n\n $groups=array(1,2,4,6);\n for ($i=0; $i<=count($groups); $i++) {\n $colours[] = '#' . substr(str_shuffle('ABCDEF0123456789'), 0, 6);\n }\n\n $chart = new Chart;\n $chart->labels = (array_keys($groups));\n $chart->dataset = (array_values($groups));\n $chart->colours = $colours;\n \treturn view('admin.dashboard',compact('chart','msgs','cats','cmds','pds'));\n }", "title": "" }, { "docid": "60894864dd86a368fda9f21ebbabbd3d", "score": "0.51643103", "text": "public function getSugarChart()\n {\n if ($this->canDrawChart()) {\n\n /* @var $sugarChart SugarChart or its sub class */\n $sugarChart = SugarChartFactory::getInstance('', 'Reports');\n\n $sugarChart->setData($this->chartRows);\n global $do_thousands;\n\n $sugarChart->setProperties(\n $this->chartTitle, // title\n '', // subtitle\n $this->chartType, // type\n 'on', // legend\n 'value', // labels\n 'on', // print\n $do_thousands, // thousands\n $this->reporter->module,\n $this->reporter->name\n );\n\n $reportDef = $this->reporter->report_def;\n\n // set the measure data type\n //TODO: this fails for some RLI/QLI charts\n if (isset($reportDef['numerical_chart_column_type'])) {\n $yDataType = $reportDef['numerical_chart_column_type'];\n } else {\n $yDataType = 'numeric';\n }\n $xDataType = 'numeric';\n\n // no drillthru for bwc modules\n $allowDrillthru = !isModuleBWC($this->reporter->module);\n\n if (isset($reportDef['group_defs'])) {\n $groupByNames = array();\n $groupByLabels = array();\n $groupByTypes = array();\n\n foreach ($reportDef['group_defs'] as $group_def) {\n $groupByNames[] = $group_def['name'];\n\n $bean = $this->reporter->full_bean_list[$group_def['table_key']];\n if (!empty($bean)) {\n $fieldDef = $bean->getFieldDefinition($group_def['name']);\n $moduleName = $reportDef['full_table_list'][$group_def['table_key']]['module'];\n $groupByLabel = translate($fieldDef['vname'], $moduleName);\n } else {\n $groupByLabel = $group_def['label'];\n }\n $groupByLabels[] = rtrim($groupByLabel, ':');\n\n if (!empty($group_def['type'])) {\n $groupByType = $group_def['type'];\n } elseif (isset($fieldDef) && !empty($fieldDef['type'])) {\n $groupByType = $fieldDef['type'];\n }\n\n if ($groupByType === 'int' || $groupByType === 'decimal') {\n $groupByTypes[] = 'numeric';\n } elseif ($groupByType === 'datetime' || $groupByType === 'currency') {\n $groupByTypes[] = $groupByType;\n } else {\n $groupByTypes[] = 'string';\n }\n\n // check for any unsupported drillthru fields for sidecar modules\n if ($allowDrillthru) {\n // no drillthru on fields: 'datetime' (no column function), 'multienum'\n if ($groupByType === 'multienum'\n || ($groupByType === 'datetime' && empty($group_def['column_function']))) {\n $allowDrillthru = false;\n }\n }\n }\n\n $sugarChart->setDisplayProperty('groupName', $groupByLabels[0]);\n $sugarChart->setDisplayProperty('groupType', $groupByTypes[0]);\n $xDataType = $groupByTypes[0] === 'string' ? 'ordinal' : $groupByTypes[0];\n\n if (isset($groupByLabels[1])) {\n $sugarChart->setDisplayProperty('seriesName', $groupByLabels[1]);\n $sugarChart->setDisplayProperty('seriesType', $groupByTypes[1]);\n }\n\n $sugarChart->group_by = $groupByNames;\n }\n\n $sugarChart->setDisplayProperty('xDataType', $xDataType);\n $sugarChart->setDisplayProperty('yDataType', $yDataType);\n $sugarChart->setDisplayProperty('allow_drillthru', $allowDrillthru);\n\n return $sugarChart;\n } else {\n global $current_language;\n $mod_strings = return_module_language($current_language, 'Reports');\n return $mod_strings['LBL_NO_CHART_DRAWN_MESSAGE'];\n }\n }", "title": "" }, { "docid": "c98d6d11dc522eeb8b54a91ba86fad30", "score": "0.5162737", "text": "public function getChartOptions()\n\t{\n\t\treturn $this->coptions;\n\t}", "title": "" }, { "docid": "dacbdce08d7d520e325593dda85d2a6c", "score": "0.51613843", "text": "public function index()\n {\n $categories=category::all();\n\n $main_array=$this->pieChart();\n $main_array2=$this->barGraphs();\n\n JavaScript::put([\n 'bargraphs' => $main_array2\n ]);\n \n\n //return $main_array;\n\n for($i=0;$i<count($main_array);$i++){\n $chartjs = app()->chartjs\n ->name('pieChartTest')\n ->type('pie')\n ->size(['width' => 400, 'height' => 200])\n ->labels($main_array[0])\n ->datasets([\n [\n 'backgroundColor' => ['#FF6384', '#36A2EB'],\n 'hoverBackgroundColor' => ['#FF6384', '#36A2EB'],\n 'data' => $main_array[1]\n ]\n ])\n ->options([]);\n }\n return view('admin/dashboard')->with('chartjs',$chartjs)->with('categories',$categories)->with('main_array2',$main_array2);\n \n\n \n //return view('admin/dashboard');\n }", "title": "" }, { "docid": "6df6fc3dc3b50f022a8a8e2c998f359f", "score": "0.51599455", "text": "public function getCharts()\n {\n return collect([]);\n }", "title": "" }, { "docid": "6768a45b47785c8cbbc3f55ff27810df", "score": "0.51421845", "text": "abstract public function getChartTitle() : string;", "title": "" }, { "docid": "8b7855678757a9a07e9210e4ecb6b847", "score": "0.5129019", "text": "protected function getHelper()\n {\n return Mage::helper(\"cornerdrop_collect\");\n }", "title": "" }, { "docid": "db7d82d373816780d1b4ec55277b69c0", "score": "0.5111469", "text": "public function getChartType()\n\t{\n\t\treturn $this->_chartType;\n\t}", "title": "" }, { "docid": "33feb56ca5676db603beca803d93b14f", "score": "0.5105065", "text": "public function __construct()\n {\n $this->helper = new Helpers;\n }", "title": "" }, { "docid": "33feb56ca5676db603beca803d93b14f", "score": "0.5105065", "text": "public function __construct()\n {\n $this->helper = new Helpers;\n }", "title": "" }, { "docid": "33feb56ca5676db603beca803d93b14f", "score": "0.5105065", "text": "public function __construct()\n {\n $this->helper = new Helpers;\n }", "title": "" }, { "docid": "33feb56ca5676db603beca803d93b14f", "score": "0.5105065", "text": "public function __construct()\n {\n $this->helper = new Helpers;\n }", "title": "" }, { "docid": "33feb56ca5676db603beca803d93b14f", "score": "0.5105065", "text": "public function __construct()\n {\n $this->helper = new Helpers;\n }", "title": "" }, { "docid": "33feb56ca5676db603beca803d93b14f", "score": "0.5105065", "text": "public function __construct()\n {\n $this->helper = new Helpers;\n }", "title": "" }, { "docid": "33feb56ca5676db603beca803d93b14f", "score": "0.5105065", "text": "public function __construct()\n {\n $this->helper = new Helpers;\n }", "title": "" }, { "docid": "33feb56ca5676db603beca803d93b14f", "score": "0.5105065", "text": "public function __construct()\n {\n $this->helper = new Helpers;\n }", "title": "" }, { "docid": "f1e97f0e98df38df407b357d08c5ed41", "score": "0.50961185", "text": "public static function generatePieReport() {\n $command = Yii::app()->db->createCommand()\n ->select('tt.tipo,count(*) as total')->from('tx_trasaccion tt')\n ->group('tt.tipo');\n $command = $command->queryAll();\n// var_dump($command);\n $data = array();\n foreach ($command as $value) {\n array_push($data, array($value['tipo'] == self::TIPO_PAGAR ? 'PAGOS' : 'DEUDAS', (int) $value['total']));\n }\n $report = array();\n $report['chart'] = array(\n 'plotBackgroundColor' => null,\n 'plotBorderWidth' => 1, //null,\n 'plotShadow' => false,\n 'height' => '320',\n );\n $report['plotOptions'] = array(\n 'pie' => array(\n 'allowPointSelect' => true,\n 'cursor' => 'pointer',\n 'dataLabels' => array(\n 'enabled' => true,\n 'color' => '#AAAAAA',\n 'connectorColor' => '#AAAAAA',\n ),\n 'showInLegend' => true,\n )\n );\n $report['title']['text'] = 'Pagos y Deudas';\n\n\n\n $report['title']['text'] = 'Pagos y Deudas';\n $report['series'][0]['type'] = 'pie';\n// $report['series'][]['name'] = 'Percentage';\n $report['series'][0]['data'] = $data;\n// var_dump($data);\n\n return $report;\n }", "title": "" }, { "docid": "2a8032a8a9fa984d9132a32909113e2e", "score": "0.5077479", "text": "public static function add_chart_bars() {\n ?>\n <style>\n .dhbc svg {\n height: 200px;\n width: 100%;\n }\n\n .barchart {\n width: 100%;\n display: none;\n }\n\n object {\n width: 100%;\n display: block;\n height: auto;\n }\n </style>\n <div class='barchart stat-row dhbc' style='width:100%;'>\n <object>\n <svg></svg>\n </object>\n </div>\n <?php\n }", "title": "" }, { "docid": "0606a816bd2c11ddfcb0df23e9db3d12", "score": "0.5070165", "text": "public function index()\n {\n self::deleteOldRecords();\n\n $views = View::all();\n $records = Record::all();\n\n $labels = [];\n $normal_views = [];\n $sessions = [];\n for ($i = 6; $i >= 0; $i--) {\n $time = Carbon::now()->subDays($i);\n $nv = View::whereDate('created_at', $time->toDateString());\n array_push($labels, $time->toFormattedDateString());\n array_push($normal_views, $nv->pluck('views')->sum());\n array_push($sessions, $nv->pluck('sessions')->sum());\n }\n\n $latest_views_chart = Charts::multi('bar', 'highcharts')\n ->title(' ')->elementLabel(__('laralum_statistics::general.views'))\n ->labels($labels)\n ->dataset(__('laralum_statistics::general.views'), $normal_views)\n ->dataset(__('laralum_statistics::general.sessions'), $sessions);\n\n $oss = $records->where('type', 'os')->unique('name');\n\n $valuesOSS = [];\n foreach ($oss as $os) {\n array_push($valuesOSS, $oss->where('name', $os->name)->pluck('sessions')->sum());\n }\n\n $oss_chart = Charts::create('donut', 'highcharts')\n ->title(' ')\n ->labels($oss->pluck('name'))\n ->values($valuesOSS)\n ->colors(['#F44336', '#3F51B5', '#4CAF50', '#FFC107', '#2196F3', '#009688', '#673AB7', '#795548']);\n\n $browsers = $records->where('type', 'browser')->unique('name');\n\n $valuesBRS = [];\n foreach ($browsers as $browser) {\n array_push($valuesBRS, $browsers->where('name', $browser->name)->pluck('sessions')->sum());\n }\n\n $browsers_chart = Charts::create('donut', 'highcharts')\n ->title(' ')\n ->labels($browsers->pluck('name'))\n ->values($valuesBRS)\n ->colors(['#F44336', '#3F51B5', '#4CAF50', '#FFC107', '#2196F3', '#009688', '#673AB7', '#795548']);\n\n $langs = $records->where('type', 'language')->unique('name');\n $valuesLNG = [];\n foreach ($langs as $lang) {\n array_push($valuesLNG, $langs->where('name', $lang->name)->pluck('sessions')->sum());\n }\n\n return view('laralum_statistics::index', [\n 'latest_views_chart' => $latest_views_chart,\n 'browsers_chart' => $browsers_chart,\n 'oss_chart' => $oss_chart,\n 'views' => $views->pluck('views')->sum(),\n 'sessions' => $views->pluck('sessions')->sum(),\n 'most_used' => [\n 'language' => Localizer::getLanguage($records\n ->where('sessions', collect($valuesLNG)->max())\n ->where('type', 'language')\n ->first()->name),\n 'browser' => $records\n ->where('sessions', collect($valuesBRS)->max())\n ->where('type', 'browser')\n ->first()->name,\n 'os' => $records\n ->where('sessions', collect($valuesOSS)->max())\n ->where('type', 'os')\n ->first()->name,\n ],\n ]);\n }", "title": "" }, { "docid": "368fd4142071f2914c28366e7b76b3c7", "score": "0.50603837", "text": "function _initViewHelpers ()\n\t{\n\t\t$view = new Zend_View();\n\t\t$viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();\n\t \n\t\t$view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper');\n\t\t$viewRenderer->setView($view);\n\t\tZend_Controller_Action_HelperBroker::addHelper($viewRenderer);\n\t}", "title": "" }, { "docid": "c6d15c81154740c345dfabec72993eee", "score": "0.5051374", "text": "private function generatePChartCode()\n {\n return;\n $charts = array(\n 'filecount' => jgettext('Files')\n , 'linecount' => jgettext('Code lines')\n , 'sizecount' => jgettext('Size')\n );\n\n $chartCode = '';\n\n foreach($charts as $chart => $title)\n {\n $chartCode .= 'var '.$chart.';'.NL;\n }\n\n $chartCode .= \"window.addEvent('domready', function() {\".NL;\n\n foreach($charts as $chart => $title)\n {\n if( ! isset($this->series[$chart]))\n continue;\n\n $x = strpos($chart, 'ratio_');\n\n $options = array();\n $options['legend'] = true;\n\n $chartCode .= $this->getPieChart($chart, $chart, $title, $this->series[$chart], $options);\n }\n\n $charts = array();\n\n $series = array();\n\n $categories = array();\n\n foreach(array_keys($this->codeRatioTypes) as $ext)\n {\n if( ! $this->projectData[$ext]['lines'])\n continue;\n\n $categories[] = $ext;\n\n $series[jgettext('code')][] = $this->series['ratio_'.$ext]['code'];\n $series[jgettext('blanks')][] = $this->series['ratio_'.$ext]['blanks'];\n $series[jgettext('comments')][] = $this->series['ratio_'.$ext]['comments'];\n }\n\n $chartCode .= 'var ratio;'.NL;\n $title = jgettext('Comment to Code ratio');\n\n $chartCode .= $this->getBarChart('fooo', 'ratio', $title, $categories, $series);\n\n $chartCode .= NL.'});'.NL.'</script>'.NL;\n\n $this->chartCode = $chartCode;\n }", "title": "" }, { "docid": "3ed313ac5b4a76dffd143937f3bb1a14", "score": "0.50414395", "text": "public function Charts(Request $request)\n {\n $chart = new MontlyViews;\n $chart->labels(['One', 'Two', 'Three', 'Four']);\n $chart->dataset('My dataset', 'bar', [1, 2, 3, 4]);\n $chart->dataset('My dataset 2', 'bar', [4, 3, 2, 1]);\n\n return view('welcome', compact('chart'));\n }", "title": "" }, { "docid": "88dd877130caf73f75f9d42010a20b4d", "score": "0.5030695", "text": "function chart()\n\t{\n\t\t\n\t\t/*\n\t\t\tget and set light box & graph width & height\n\t\t*/\n\t\tif(!empty($this->params['url']['width']) and !empty($this->params['url']['height']))\n\t\t{\n\t\t\t$width \t= $this->params['url']['width'] ;\n\t\t\t$height = $this->params['url']['height'] ;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$width = 600;\n\t\t\t$height=400;\n\t\t}\n\t\t\n\t\t$this->set('cwidth',$width);\n\t\t$this->set('cheight',$height);\n\t\t\n\t\t$this->set('width',round($width/1.25));\n\t\t$this->set('height',round($height/1.5));\n\t\t\n\t\t// \tEnd get and set light box & graph width & height\n\t\t\n\t\tif(!empty($this->params['url']['id']))\n\t\t{\n\t\t\t$this->Session->write('lfm_m_id',$this->params['url']['id']);\n\t\t}\n\t\t\n\t\tif(!empty($this->params['url']['bandid']))\n\t\t{\n\t\t\t$this->Session->write('band_id',$this->params['url']['bandid']);\n\t\t\t\n\t\t}\n\t\t\n\t\n\t\t/*\n\t\t\tif in case chart call within the chart\n\t\t\telse in case of chart first time call without dates then default date & option applied \n\t\t*/\n\t\tif(!empty($this->params['url']['date']) and !empty($this->params['url']['opt']))\n\t\t{\n\t\t\t$this->set('flag',0);\n\t\t\tif($this->Session->check('lfm_m_id'))\n\t\t\t{\n\t\t\t\n\t\t\t\t$lastdate = $this->params['url']['date'];\n\t\t\t\t$opt = $this->params['url']['opt'];\n\t\t\t\t$id=trim($this->Session->read('lfm_m_id'));\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$this->getGraphData($id,$lastdate,$opt,'listeners','','listeners'); // Get & set listeners data for graphs , params( id , date , option , field, track or album name , type)\n\t\t\t\tif($this->params['url']['type']=='listener')\n\t\t\t\t{\n\t\t\t\t\t$this->Session->write('type','listener');\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif($this->Session->check('top_album'))\n\t\t\t\t{\n\t\t\t\t $this->Session->write('top_album',$this->Session->read('top_album'));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif($this->Session->check('tracks'))\n\t\t\t\t{\n\t\t\t\t $this->Session->write('top_tracks',$this->Session->read('top_tracks'));\n\t\t\t\t}\n\t\t\t\t/* if album trend chart required\n\t\t\t\t if($this->params['url']['type']=='albumtrend')\n\t\t\t\t{\n\t\t\t\t\t$name = $this->params['url']['name'];\n\t\t\t\t\t$this->getGraphData($id,$lastdate,$opt,'playcount',$name,'albumtrend'); // Get & set listeners data for graphs , params( id , date , option , field, track or album name , type)\n\t\t\t\t\t$this->Session->write('type','albumtrend');\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t$mmm_id = $this->Session->read('id');\n\t\t\t\tif(@$this->params['url']['ids'])\n\t\t\t\t{\n\t\t\t\t\t$lfm_id = $this->params['url']['ids'];\n\t\t\t\t\t$titles = $this->params['url']['title'];\n\t\t\t\t\t$color = $this->params['url']['color'];\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$lfm_id ='0';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$this->set('lfm_id',$lfm_id);\n\t\t\t\t$track_lfm = $this->Session->read('track_lfm');\n\t\t\t\t$this->set('track_lfm',$track_lfm);\n\t\t\t\t$this->set('id',$id);\n\t\t\t\t\n\t\t\t\t$totalplays \t= NULL;\n\t\t\t\t$lfmlistener \t= NULL;\n\t\t\t\t\n\t\t\t\tforeach($track_lfm as $key => $val)\n\t\t\t\t{\n\t\t\t\t\t$lfm_ids \t= $val['l']['toptrack_id'];\n\t\t\t\t\t$title\t\t= $val['l']['name'];\n\t\t\t\t\t\n\t\t\t\t\tif($key < 5)\n\t\t\t\t\t{\n\t\t\t\t\t\tif($lfm_id=='all') \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$_SESSION[$title]\t=\"1\";\n\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\t$lfmplays[$title] \t= $this->getGraphData($id,$lastdate,$opt,'playcount',addslashes($title),'plays');\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tforeach($lfmplays[$title] as $mskey => $msval)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t@$totalplays[$mskey]+= $msval;\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$lfmtotalplays \t= $this->getGraphData($id,$lastdate,$opt,'playcount',addslashes($title),'totalplays');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t// get & set total plays statistics\n\t\t\t\t\t\tforeach($lfmtotalplays as $mskey => $msval)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t@$totalplays[$mskey]+= $msval;\t\n\t\t\t\t\t\t} // foreach($lfmtotalplays as $mskey => $msval)\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$lfmplays['tplay'] = $totalplays;\n\t\t\t\t$this->set('lfmplays',$lfmplays);\n\t\t\t\t$this->Session->write('lfmplays',$lfmplays);\n\t\t\t\t\n\t\t\t\t\t\tif($lfm_id=='all')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($this->params['url']['type']=='plays')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$this->Session->write('type','plays');\n\t\t\t\t\t\t\t\t$this->Session->write('tplay',\"1\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif($lfm_id=='none')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tforeach($track_lfm as $key => $val)\t// All plays toggle off\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$title= $val['l']['name'];\n\t\t\t\t\t\t\t\tif($key < 5 )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif($this->params['url']['type']=='plays')\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$_SESSION[$title]=\"0\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->Session->write('lastdate',$lastdate);\n\t\t\t\t\t\t\t$this->Session->write('opt',$opt);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif($this->params['url']['type']=='plays')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$totalplays \t= NULL;\n\t\t\t\t\t\t\t\t$lfmplays \t= NULL;\n\t\t\t\t\t\t\t\t// video play views\n\t\t\t\t\t\t\t\t$this->Session->write('tplay',\"0\"); // Total plays toggle off\n\t\t\t\t\t\t\t\t$this->set('lfmplays',$lfmplays);\n\t\t\t\t\t\t\t\t$this->Session->write('lfmplays',$lfmplays);\n\t\t\t\t\t\t\t\t$this->Session->write('type','plays');\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif($lfm_id=='tplay')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif($this->params['url']['type']=='plays')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$this->Session->write('type','plays');\n\t\t\t\t\t\t\t\tif($this->Session->read('tplay')=='1')\n\t\t\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\t\t$this->Session->write('tplay','0');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$this->Session->write('tplay','1');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} // if($this->params['url']['type']=='views')\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif($lfm_id==\"0\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif($this->params['url']['type']=='plays')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$this->Session->write('type','plays');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif(!empty($lfm_id))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif($this->params['url']['type']=='plays')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$this->Session->write('type','plays');\n\t\t\t\t\t\t\t\t$this->Session->write('color',$color);\n\t\t\t\t\t\t\t\tif($this->Session->read($titles)=='1')\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$_SESSION[$titles]='0';\n\t\t\t\t\t\t\t\t} // if($this->Session->read($title)=='1')\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$_SESSION[$titles]='1';\n\t\t\t\t\t\t\t\t} // if($this->Session->read($title)=='1')\n\t\t\t\t\t\t\t} // if($this->params['url']['type']=='views')\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} // if($this->Session->check('mssid'))\n\t\t\t\n\t\t} // if(!empty($this->params['url']['date']) and !empty($this->params['url']['opt']))\n\t\telse \n\t\t{\n\t\t\t$this->set('flag',0);\n\t\t\tif($this->Session->check('lfm_m_id'))\n\t\t\t{\n\t\t\t\t$mmm_id = $this->Session->read('id');\n\t\t\t\t$lfm_m_id = $this->Session->read('lfm_m_id');\n\t\t\t\t$results = $this->Lfm->find(array('mmm_id'=>$mmm_id,'lfm_m_id'=>$lfm_m_id)); //\n\t\t\t\t\n\t\t\t\tif($results)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t$id = $results['Lfm']['lfm_m_id'];\n\t\t\t\t\t$this->Session->write('lfm_m_id',$id); // to get myspace home page\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t$lfmlistener= $this->getGraphData($id,'w','d','listeners','','listeners'); // Get & set listeners data for graphs , params( id , date , option , field, track or album name , type)\n\t\t\t\t\t$this->Session->write('type','listener'); // by default channel views tab selected\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t// Top Album\n\t\t\t\t\t$qry = \"select a.name , a.playcount from lfm_top_album a , lfm_music m\n\t\t\t\t\t\twhere a.lfm_m_id=$id and a.etime=m.executetime and a.lfm_m_id=m.lfm_m_id and m.mmm_id='$mmm_id'\n\t\t\t\t\t\tand a.rank < 6\";\n\t\n\t\t\t\t\t$top_album = $this->Lfmalbum->findBySql($qry);\n\t\t\t\t\tif($top_album)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->Session->write('top_album',$top_album);\n\t\t\t\t\t\t$this->set('top_album',$top_album);\n\t\t\t\t\t} // if($top_album)\n\t\n\t\n\t\t\t\t\t// Top Tracks\n\t\t\t\t\t$qry = \"select t.name , t.playcount from lfm_top_tracks t , lfm_music m\n\t\t\t\t\t\twhere t.lfm_m_id=$id and t.etime=m.executetime and t.lfm_m_id=m.lfm_m_id and m.mmm_id='$mmm_id'\n\t\t\t\t\t\tand t.rank < 6\";\n\t\n\t\t\t\t\t$top_tracks = $this->Lfmtrack->findBySql($qry);\n\t\t\t\t\tif($top_tracks)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->Session->write('top_tracks',$top_tracks);\n\t\t\t\t\t\t$this->set('top_tracks',$top_tracks);\n\t\t\t\t\t} // if($top_album)\n\t\t\t\t\t\n\t\n\t\t\t\t} // if($results)\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif($this->Session->check('band_id'))\n\t\t\t\t\t\t$this->set('bandid',$this->Session->read('band_id'));\n\t\t\t\t\t\t\n\t\t\t\t\t$this->Session->setFlash('No Last.fm data found.');\n\t\t\t\t\t$this->set('flag',1); // if no data found\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t} // if($results)\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t$this->set('lfm_id','all');\n\t\t\t\t\t\t\t\t\n\t\t\t\t$qry = \"select l.toptrack_id , l.name from lfm_top_tracks l , lfm_music m \n\t\t\t\t\t\t\t\twhere\n\t\t\t\t\t\t\t\tl.lfm_m_id=$id and l.etime = m.executetime and l.lfm_m_id = m.lfm_m_id and m.mmm_id = '$mmm_id' \n\t\t\t\t\t\t\t\tgroup by l.name , l.toptrack_id\n\t\t\t\t\t\t\t\torder by sum(l.playcount) desc\n\t\t\t\t\t\t\t\t\";\n\t\t\t\t$track_lfm = $this->Lfmtrack->findBySql($qry);\n\t\t\t\t\n\t\t\t\tif($track_lfm)\n\t\t\t\t{\n\t\t\t\t\t$this->Session->write('track_lfm',$track_lfm);\n\t\t\t\t\t$this->set('track_lfm',$track_lfm);\n\t\t\t\t\t\n\t\t\t\t\t$this->Session->write('color','#FF6600');\n\t\t\t\t\t$this->set('id',$id);\n\t\t\t\t\t$lfmlistener = NULL;\n\t\t\t\t\t\n\t\t\t\t\t$this->Session->write('tplay',\"1\"); // total plays toggle on\n\t\t\t\t\t\n\t\t\t\t\tforeach($track_lfm as $key => $val)\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t$title= $val['l']['name'];\n\t\t\t\t\t\tif($key<5)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$lfmplays[$title] \t= $this->getGraphData($id,'w','d','playcount',addslashes($title),'plays');\n\t\t\t\t\t\t\t$_SESSION[$title]=\"1\"; // All plays toggle on\n\t\t\t\t\t\t\t//$this->Session->write(\"$title\",\"1\"); // All plays toggle on\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// get & set total plays statistics\n\t\t\t\t\t\t\tforeach($lfmplays[$title] as $mskey => $msval)\n\t\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\t@$totalplays[$mskey]+= $msval;\t\n\t\t\t\t\t\t\t} // foreach($msplays[$title] as $mskey => $msval)\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$lfmtotalplays \t= $this->getGraphData($id,'w','d','playcount',addslashes($title),'totalplays');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// get & set total plays statistics\n\t\t\t\t\t\t\tforeach($lfmtotalplays as $mskey => $msval)\n\t\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\t@$totalplays[$mskey]+= $msval;\t\n\t\t\t\t\t\t\t} // foreach($msplays[$title] as $mskey => $msval)\n\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t} // foreach($track_lfm as $key => $val)\n\t\t\t\t\t\t\n\t\t\t\t\t\t$lfmplays['tplay'] = $totalplays ;\n\t\t\t\t\t\t$this->set('lfmplays',$lfmplays);\n\t\t\t\t\t\t$this->Session->write('lfmplays',$lfmplays);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t} // if($track_lfm)\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif($this->Session->check('band_id'))\n\t\t\t\t\t\t$this->set('bandid',$this->Session->read('band_id'));\n\t\t\t\t\t$this->Session->setFlash('No Last.fm data found.');\n\t\t\t\t\t$this->set('flag',1);\n\t\t\t\t\t\n\t\t\t\t\t// if no data found\n\t\t\t\t} // if($track_lfm)\n\t\t\t} //if($this->Session->check('band_id'))\n\t\t\telse\n\t\t\t{\n\t\t\t\t\tif($this->Session->check('band_id'))\n\t\t\t\t\t\t$this->set('bandid',$this->Session->read('band_id'));\n\t\t\t\t\t$this->Session->setFlash('Session expired.');\n\t\t\t\t\t$this->set('flag',1); // session expired\n\t\t\t} //if($this->Session->check('band_id'))\n\t\t\t\n\t\t\t\t\n\t\t}\n\t\t\t\n\t\t$this->layout=\"stats\";\n\t}", "title": "" }, { "docid": "2f336f49b7f8a8ef6675a51bc3d424a7", "score": "0.5018205", "text": "function Mylibraries()\n {\n $this->load->css('public/assets/plugins/timepicker/bootstrap-timepicker.min.css');\n\t\t$this->load->css('public/assets/plugins/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css');\n\t\t$this->load->js('public/assets/plugins/timepicker/bootstrap-timepicker.min.js');\n\t\t$this->load->js('public/assets/plugins/mjolnic-bootstrap-colorpicker/dist/js/bootstrap-colorpicker.min.js');\n\t\t$this->load->js('public/assets/plugins/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js');\n\t\t$this->load->css('public/assets/plugins/bootstrap-select/dist/css/bootstrap-select.min.css');\n\t\t$this->load->js('public/assets/plugins/bootstrap-select/dist/js/bootstrap-select.min.js');\n\t\t$this->load->js('public/assets/plugins/bootstrap-filestyle/src/bootstrap-filestyle.min.js');\n $this->load->js('public/assets/plugins/parsleyjs/dist/parsley.min.js');\n \n $this->load->js('public/assets/js/script.custom.js');\n }", "title": "" }, { "docid": "87b0b3613c903a57d081e51ceeeb1648", "score": "0.5005278", "text": "function carton_reports() {\n\n\t$charts = array(\n\t\t'sales' => array(\n\t\t\t'title' => __( 'Sales', 'carton' ),\n\t\t\t'charts' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'title' => __( 'Overview', 'carton' ),\n\t\t\t\t\t'description' => '',\n\t\t\t\t\t'hide_title' => true,\n\t\t\t\t\t'function' => 'carton_sales_overview'\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'title' => __( 'Sales by day', 'carton' ),\n\t\t\t\t\t'description' => '',\n\t\t\t\t\t'function' => 'carton_daily_sales'\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'title' => __( 'Sales by month', 'carton' ),\n\t\t\t\t\t'description' => '',\n\t\t\t\t\t'function' => 'carton_monthly_sales'\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'title' => __( 'Product Sales', 'carton' ),\n\t\t\t\t\t'description' => '',\n\t\t\t\t\t'function' => 'carton_product_sales'\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'title' => __( 'Top sellers', 'carton' ),\n\t\t\t\t\t'description' => '',\n\t\t\t\t\t'function' => 'carton_top_sellers'\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'title' => __( 'Top earners', 'carton' ),\n\t\t\t\t\t'description' => '',\n\t\t\t\t\t'function' => 'carton_top_earners'\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'title' => __( 'Sales by category', 'carton' ),\n\t\t\t\t\t'description' => '',\n\t\t\t\t\t'function' => 'carton_category_sales'\n\t\t\t\t)\t\t\t)\n\t\t),\n\t\t'coupons' => array(\n\t\t\t'title' => __( 'Coupons', 'carton' ),\n\t\t\t'charts' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'title' => __( 'Overview', 'carton' ),\n\t\t\t\t\t'description' => '',\n\t\t\t\t\t'hide_title' => true,\n\t\t\t\t\t'function' => 'carton_coupons_overview'\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'title' => __( 'Discounts by coupon', 'carton' ),\n\t\t\t\t\t'description' => '',\n\t\t\t\t\t'function' => 'carton_coupon_discounts'\n\t\t\t\t)\n\t\t\t)\n\t\t),\n\t\t'customers' => array(\n\t\t\t'title' => __( 'Customers', 'carton' ),\n\t\t\t'charts' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'title' => __( 'Overview', 'carton' ),\n\t\t\t\t\t'description' => '',\n\t\t\t\t\t'hide_title' => true,\n\t\t\t\t\t'function' => 'carton_customer_overview'\n\t\t\t\t),\n\t\t\t)\n\t\t),\n\t\t'stock' => array(\n\t\t\t'title' => __( 'Stock', 'carton' ),\n\t\t\t'charts' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'title' => __( 'Overview', 'carton' ),\n\t\t\t\t\t'description' => '',\n\t\t\t\t\t'hide_title' => true,\n\t\t\t\t\t'function' => 'carton_stock_overview'\n\t\t\t\t),\n\t\t\t)\n\t\t)\n\t);\n\n\tif ( get_option( 'carton_calc_taxes' ) == 'yes' ) {\n\t\t$charts['sales']['charts'][] = array(\n\t\t\t'title' => __( 'Taxes by month', 'carton' ),\n\t\t\t'description' => '',\n\t\t\t'function' => 'carton_monthly_taxes'\n\t\t);\n\t}\n\n\t$charts = apply_filters( 'carton_reports_charts', $charts );\n\n\t$first_tab = array_keys($charts);\n\t$first_chart = array_keys($charts[$first_tab[0]]['charts']);\n\n\t$current_tab \t= isset( $_GET['tab'] ) ? sanitize_title( urldecode( $_GET['tab'] ) ) : $first_tab[0];\n\t$current_chart \t= isset( $_GET['chart'] ) ? absint( urldecode( $_GET['chart'] ) ) : $first_chart[0];\n\n ?>\n\t<div class=\"wrap carton\">\n\t\t<div class=\"icon32 icon32-carton-reports\" id=\"icon-carton\"><br /></div><h2 class=\"nav-tab-wrapper woo-nav-tab-wrapper\">\n\t\t\t<?php\n\t\t\t\tforeach ( $charts as $key => $chart ) {\n\t\t\t\t\techo '<a href=\"'.admin_url( 'admin.php?page=carton_reports&tab=' . urlencode( $key ) ).'\" class=\"nav-tab ';\n\t\t\t\t\tif ( $current_tab == $key ) echo 'nav-tab-active';\n\t\t\t\t\techo '\">' . esc_html( $chart[ 'title' ] ) . '</a>';\n\t\t\t\t}\n\t\t\t?>\n\t\t\t<?php do_action('carton_reports_tabs'); ?>\n\t\t</h2>\n\n\t\t<?php if ( sizeof( $charts[ $current_tab ]['charts'] ) > 1 ) {\n\t\t\t?>\n\t\t\t<ul class=\"subsubsub\">\n\t\t\t\t<li><?php\n\n\t\t\t\t\t$links = array();\n\n\t\t\t\t\tforeach ( $charts[ $current_tab ]['charts'] as $key => $chart ) {\n\n\t\t\t\t\t\t$link = '<a href=\"admin.php?page=carton_reports&tab=' . urlencode( $current_tab ) . '&amp;chart=' . urlencode( $key ) . '\" class=\"';\n\n\t\t\t\t\t\tif ( $key == $current_chart ) $link .= 'current';\n\n\t\t\t\t\t\t$link .= '\">' . $chart['title'] . '</a>';\n\n\t\t\t\t\t\t$links[] = $link;\n\n\t\t\t\t\t}\n\n\t\t\t\t\techo implode(' | </li><li>', $links);\n\n\t\t\t\t?></li>\n\t\t\t</ul>\n\t\t\t<br class=\"clear\" />\n\t\t\t<?php\n\t\t}\n\n\t\tif ( isset( $charts[ $current_tab ][ 'charts' ][ $current_chart ] ) ) {\n\n\t\t\t$chart = $charts[ $current_tab ][ 'charts' ][ $current_chart ];\n\n\t\t\tif ( ! isset( $chart['hide_title'] ) || $chart['hide_title'] != true )\n\t\t\t\techo '<h3>' . $chart['title'] . '</h3>';\n\n\t\t\tif ( $chart['description'] )\n\t\t\t\techo '<p>' . $chart['description'] . '</p>';\n\n\t\t\t$func = $chart['function'];\n\t\t\tif ( $func && function_exists( $func ) )\n\t\t\t\t$func();\n\t\t}\n\t\t?>\n\t</div>\n\t<?php\n}", "title": "" }, { "docid": "139a77b73bae9b1f61ae9d5fe48ca05a", "score": "0.49928957", "text": "public function __bootstrap(){\n new AssetHelper;\n }", "title": "" }, { "docid": "98b73d6704089522fe528abf72699967", "score": "0.49760106", "text": "function albumcharttrend()\n\t{\n\t\t$albumtrend = $this->Session->read('lfmalbumtrend');\n\t\t$dt = $this->Session->read('dt');\n\t\t$this->set('albumtrend',$albumtrend);\n\t\t$this->set('dt',$dt);\n\n\t}", "title": "" }, { "docid": "8fa5fca376eb18f288340731d27a992b", "score": "0.49751282", "text": "function report_chart_ac() {\n if ($this->input->post('chart')) {\n \n } else {\n $data['title'] = 'Welcome to Hospital Management System';\n $data['menu'] = 'accounts';\n $data['content'] = 'admin/ac/report_chart';\n $data['ac_chart_tree'] = $this->MAc_charts->get_coa_tree();\n $this->load->vars($data);\n $this->load->view('admin/dashboard');\n }\n }", "title": "" }, { "docid": "ef4029193d3b6be9cdcf90fa9b5d25fd", "score": "0.49699345", "text": "private function generateChartCode()\n {\n $charts = array(\n 'filecount' => jgettext('Files')\n , 'linecount' => jgettext('Code lines')\n , 'sizecount' => jgettext('Size')\n );\n\n $chartCode = '';\n\n $chartCode .= \"\n<script type=\\\"text/javascript\\\">\";\n\n foreach($charts as $chart => $title)\n {\n $chartCode .= 'var '.$chart.';'.NL;\n }\n\n $chartCode .= \"window.addEvent('domready', function() {\".NL;\n\n foreach($charts as $chart => $title)\n {\n if( ! isset($this->series[$chart]))\n continue;\n\n $x = strpos($chart, 'ratio_');\n\n $options = array();\n $options['legend'] = true;\n\n $chartCode .= $this->getPieChart($chart, $chart, $title, $this->series[$chart], $options);\n }\n\n $charts = array();\n\n $series = array();\n\n $categories = array();\n\n foreach(array_keys($this->codeRatioTypes) as $ext)\n {\n if( ! $this->projectData[$ext]['lines'])\n continue;\n\n $categories[] = $ext;\n\n $series[jgettext('code')][] = $this->series['ratio_'.$ext]['code'];\n $series[jgettext('blanks')][] = $this->series['ratio_'.$ext]['blanks'];\n $series[jgettext('comments')][] = $this->series['ratio_'.$ext]['comments'];\n }\n\n $chartCode .= 'var ratio;'.NL;\n $title = jgettext('Comment to Code ratio');\n\n $chartCode .= $this->getBarChart('fooo', 'ratio', $title, $categories, $series);\n\n $chartCode .= NL.'});'.NL.'</script>'.NL;\n\n $this->chartCode = $chartCode;\n }", "title": "" }, { "docid": "03ee9cdc743a04c331eabba97ef07a3e", "score": "0.49508077", "text": "function var_init() { \r\n\t\t$this->css_table \t\t= \"easyChart\";\r\n\t /**\r\n\t * Title CSS class name.\r\n\t */\r\n\t\t$this->css_title \t\t= \"easyChart_title\";\r\n\t /**\r\n\t * Footer CSS class name.\r\n\t */\r\n\t\t$this->css_footer \t\t= \"easyChart_footer\";\r\n\t /**\r\n\t * Top label CSS class name.\r\n\t */\r\n\t\t$this->css_label_top \t= \"easyChart_label_top\";\r\n\t /**\r\n\t * Middle chart label CSS class name.\r\n\t */\r\n\t\t$this->css_label_middle = \"easyChart_label_middle\";\r\n\t /**\r\n\t * Bottom label CSS class name.\r\n\t */\r\n\t\t$this->css_label_bootom = \"easyChart_label_bottom\";\r\n\t /**\r\n\t * Name of chart image used for interfsace.\r\n\t */\r\n\t\t$this->chart_image \t\t= \"chart.gif\";\r\n\t /**\r\n\t * Set width of each chart collum to defined value.\r\n\t */\r\n\t\t$this->chart_col_width \t= 0;\r\n\t /**\r\n\t * Set width of chart picture. Should be the same like image width size.\r\n\t */\r\n\t\t$this->chart_pic_width \t= 16;\r\n\t /**\r\n\t * This value multiply chart picture. \r\n\t */\r\n\t\t$this->multipler \t\t= 1;\r\n\t /**\r\n\t * Allow/Deny show in label decimal number.\r\n\t */\r\n\t\t$this->allow_decimal \t= 1;\r\n\t /**\r\n\t * Control global hight of chart table.\r\n\t */\r\n\t\t$this->high_offset \t\t= 0;\r\n\t}", "title": "" }, { "docid": "da1c9fc0fbea4c8c61c8c7044993ceb9", "score": "0.49503145", "text": "function generateXAxis(){}", "title": "" }, { "docid": "fa78f8cc85ee65b2757a413d17e174cd", "score": "0.4950212", "text": "public function dashboard()\n {\n\n //For Invoice chart\n\n $inv_unpaid=Invoices::where('status','Unpaid')->where('cl_id',Auth::guard('client')->user()->id)->count();\n $inv_paid=Invoices::where('status','Paid')->where('cl_id',Auth::guard('client')->user()->id)->count();\n $inv_cancelled=Invoices::where('status','Cancelled')->where('cl_id',Auth::guard('client')->user()->id)->count();\n $inv_partially_paid=Invoices::where('status','Partially Paid')->where('cl_id',Auth::guard('client')->user()->id)->count();\n\n $invoices_json = app()->chartjs\n ->name('invoiceChart')\n ->type('pie')\n ->size(['width' => 400, 'height' => 200])\n ->labels(['Unpaid', 'Paid', 'Cancelled', 'Partially Paid'])\n ->datasets([\n [\n 'backgroundColor' => ['#F0AD4E', '#30DDBC','#D9534F','#5BC0DE'],\n 'hoverBackgroundColor' => ['#F0AD4E', '#30DDBC','#D9534F','#5BC0DE'],\n 'data' => [$inv_unpaid, $inv_paid,$inv_cancelled,$inv_partially_paid]\n ]\n ])\n ->options([\n 'legend'=>['display'=>false]\n ]);\n\n\n\n //For Support Ticket Chart\n\n $st_pending=SupportTickets::where('status','Pending')->where('cl_id',Auth::guard('client')->user()->id)->count();\n $st_answered=SupportTickets::where('status','Answered')->where('cl_id',Auth::guard('client')->user()->id)->count();\n $st_replied=SupportTickets::where('status','Customer Reply')->where('cl_id',Auth::guard('client')->user()->id)->count();\n $st_closed=SupportTickets::where('status','Closed')->where('cl_id',Auth::guard('client')->user()->id)->count();\n\n\n $tickets_json = app()->chartjs\n ->name('supportTicketChart')\n ->type('doughnut')\n ->size(['width' => 400, 'height' => 200])\n ->labels(['Pending', 'Answered', 'Customer Reply', 'Closed'])\n ->datasets([\n [\n 'backgroundColor' => ['#d9534f', '#30DDBC','#5bc0de','#7E57C2'],\n 'hoverBackgroundColor' => ['#d9534f', '#30DDBC','#5bc0de','#7E57C2'],\n 'data' => [$st_pending, $st_answered,$st_replied,$st_closed]\n ]\n ])\n ->options([\n 'legend'=>['display'=>false]\n ]);\n\n\n\n //For SMS Status Chart\n\n\n $sms_history=SMSHistory::where('userid',Auth::guard('client')->user()->id)->select('id')->get();\n $client_ids=[];\n\n foreach ($sms_history as $sh){\n array_push($client_ids,$sh->id);\n }\n\n $sms_count=SMSInbox::whereIn('msg_id',$client_ids)->count();\n $sms_success=SMSInbox::whereIn('msg_id',$client_ids)->where('status','like','%Success%')->count();\n $sms_failed=$sms_count-$sms_success;\n\n $sms_status_json = app()->chartjs\n ->name('smsStatusChat')\n ->type('pie')\n ->size(['width' => 400, 'height' => 200])\n ->labels(['Success', 'Failed'])\n ->datasets([\n [\n 'backgroundColor' => ['#30DDBC', '#F95F5B'],\n 'hoverBackgroundColor' => ['#30DDBC', '#F95F5B'],\n 'data' => [$sms_success, $sms_failed]\n ]\n ])\n ->options([\n 'legend'=>['display'=>false]\n ]);\n\n\n //For SMS History Chart\n /*$day_10=get_date_format(Carbon::now(app_config('Timezone'))->subDays(9));\n $day_9=get_date_format(Carbon::now(app_config('Timezone'))->subDays(8));\n $day_8=get_date_format(Carbon::now(app_config('Timezone'))->subDays(7));\n $day_7=get_date_format(Carbon::now(app_config('Timezone'))->subDays(6));\n $day_6=get_date_format(Carbon::now(app_config('Timezone'))->subDays(5));\n $day_5=get_date_format(Carbon::now(app_config('Timezone'))->subDays(4));\n $day_4=get_date_format(Carbon::now(app_config('Timezone'))->subDays(3));\n $day_3=get_date_format(Carbon::now(app_config('Timezone'))->subDays(2));\n $day_2=get_date_format(Carbon::now(app_config('Timezone'))->subDays(1));\n $day_1=get_date_format(Carbon::now(app_config('Timezone')));*/\n $date = date('Y-m-d');\n $day_10 = date(\"Y-m-d\", strtotime($date . \" -9 day\"));\n $day_9 = date(\"Y-m-d\", strtotime($date . \" -8 day\"));\n $day_8 = date(\"Y-m-d\", strtotime($date . \" -7 day\"));\n $day_7 = date(\"Y-m-d\", strtotime($date . \" -6 day\"));\n $day_6 = date(\"Y-m-d\", strtotime($date . \" -5 day\"));\n $day_5 = date(\"Y-m-d\", strtotime($date . \" -4 day\"));\n $day_4 = date(\"Y-m-d\", strtotime($date . \" -3 day\"));\n $day_3 = date(\"Y-m-d\", strtotime($date . \" -2 day\"));\n $day_2 = date(\"Y-m-d\", strtotime($date . \" -1 day\"));\n $day_1 = $date;\n\n $day_10_count_inbound=SMSInbox::whereIn('msg_id',$client_ids)->where('send_by','receiver')->whereDay('created_at',get_mysql_date($day_10))->count();\n $day_10_count_outbound=SMSInbox::whereIn('msg_id',$client_ids)->where('send_by','sender')->whereDay('created_at',get_mysql_date($day_10))->count();\n\n $day_9_count_inbound=SMSInbox::whereIn('msg_id',$client_ids)->where('send_by','receiver')->whereDay('created_at',get_mysql_date($day_9))->count();\n $day_9_count_outbound=SMSInbox::whereIn('msg_id',$client_ids)->where('send_by','sender')->whereDay('created_at',get_mysql_date($day_9))->count();\n\n $day_8_count_inbound=SMSInbox::whereIn('msg_id',$client_ids)->where('send_by','receiver')->whereDay('created_at',get_mysql_date($day_8))->count();\n $day_8_count_outbound=SMSInbox::whereIn('msg_id',$client_ids)->where('send_by','sender')->whereDay('created_at',get_mysql_date($day_8))->count();\n\n $day_7_count_inbound=SMSInbox::whereIn('msg_id',$client_ids)->where('send_by','receiver')->whereDay('created_at',get_mysql_date($day_7))->count();\n $day_7_count_outbound=SMSInbox::whereIn('msg_id',$client_ids)->where('send_by','sender')->whereDay('created_at',get_mysql_date($day_7))->count();\n\n $day_6_count_inbound=SMSInbox::whereIn('msg_id',$client_ids)->where('send_by','receiver')->whereDay('created_at',get_mysql_date($day_6))->count();\n $day_6_count_outbound=SMSInbox::whereIn('msg_id',$client_ids)->where('send_by','sender')->whereDay('created_at',get_mysql_date($day_6))->count();\n\n $day_5_count_inbound=SMSInbox::whereIn('msg_id',$client_ids)->where('send_by','receiver')->whereDay('created_at',get_mysql_date($day_5))->count();\n $day_5_count_outbound=SMSInbox::whereIn('msg_id',$client_ids)->where('send_by','sender')->whereDay('created_at',get_mysql_date($day_5))->count();\n\n $day_4_count_inbound=SMSInbox::whereIn('msg_id',$client_ids)->where('send_by','receiver')->whereDay('created_at',get_mysql_date($day_4))->count();\n $day_4_count_outbound=SMSInbox::whereIn('msg_id',$client_ids)->where('send_by','sender')->whereDay('created_at',get_mysql_date($day_4))->count();\n\n $day_3_count_inbound=SMSInbox::whereIn('msg_id',$client_ids)->where('send_by','receiver')->whereDay('created_at',get_mysql_date($day_3))->count();\n $day_3_count_outbound=SMSInbox::whereIn('msg_id',$client_ids)->where('send_by','sender')->whereDay('created_at',get_mysql_date($day_3))->count();\n\n $day_2_count_inbound=SMSInbox::whereIn('msg_id',$client_ids)->where('send_by','receiver')->whereDay('created_at',get_mysql_date($day_2))->count();\n $day_2_count_outbound=SMSInbox::whereIn('msg_id',$client_ids)->where('send_by','sender')->whereDay('created_at',get_mysql_date($day_2))->count();\n\n $day_1_count_inbound=SMSInbox::whereIn('msg_id',$client_ids)->where('send_by','receiver')->whereDay('created_at',get_mysql_date($day_1))->count();\n $day_1_count_outbound=SMSInbox::whereIn('msg_id',$client_ids)->where('send_by','sender')->whereDay('created_at',get_mysql_date($day_1))->count();\n $day_10 = date('d-m-Y', strtotime($day_10));\n $day_9 = date('d-m-Y', strtotime($day_9));\n $day_8 = date('d-m-Y', strtotime($day_8));\n $day_7 = date('d-m-Y', strtotime($day_7));\n $day_6 = date('d-m-Y', strtotime($day_6));\n $day_5 = date('d-m-Y', strtotime($day_5));\n $day_4 = date('d-m-Y', strtotime($day_4));\n $day_3 = date('d-m-Y', strtotime($day_3));\n $day_2 = date('d-m-Y', strtotime($day_2));\n $day_1 = date('d-m-Y', strtotime($day_1));\n\n $sms_history= app()->chartjs\n ->name('smsHistoryChart')\n ->type('line')\n ->size(['width' => 200, 'height' => 50])\n ->labels([$day_10,$day_9, $day_8, $day_7, $day_6, $day_5, $day_4,$day_3,$day_2,$day_1])\n ->datasets([\n [\n \"label\" => \"Outbound\",\n 'backgroundColor' => \"rgba(0, 51, 102, 0.5)\",\n 'borderColor' => \"rgba(0, 51, 102, 0.8)\",\n \"pointBorderColor\" => \"rgba(0, 51, 102, 0.8)\",\n \"pointBackgroundColor\" => \"rgba(0, 51, 102, 0.8)\",\n \"pointHoverBackgroundColor\" => \"#fff\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => [$day_10_count_outbound,$day_9_count_outbound , $day_8_count_outbound, $day_7_count_outbound, $day_6_count_outbound, $day_5_count_outbound, $day_4_count_outbound, $day_3_count_outbound, $day_2_count_outbound, $day_1_count_outbound],\n ],\n [\n \"label\" => \"Inbound\",\n 'backgroundColor' => \"rgba(233, 114, 76, 0.5)\",\n 'borderColor' => \"rgba(233, 114, 76, 0.8)\",\n \"pointBorderColor\" => \"rgba(233, 114, 76, 0.8)\",\n \"pointBackgroundColor\" => \"rgba(233, 114, 76, 0.8)\",\n \"pointHoverBackgroundColor\" => \"#fff\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => [$day_10_count_inbound,$day_9_count_inbound , $day_8_count_inbound, $day_7_count_inbound, $day_6_count_inbound, $day_5_count_inbound, $day_4_count_inbound, $day_3_count_inbound, $day_2_count_inbound, $day_1_count_inbound],\n ]\n ])\n ->options([\n 'legend'=>['display'=>false]\n ]);\n\n $recent_five_invoices=Invoices::orderBy('id','desc')->where('cl_id',Auth::guard('client')->user()->id)->take(5)->get();\n $recent_five_tickets=SupportTickets::orderBy('id','desc')->where('cl_id',Auth::guard('client')->user()->id)->take(5)->get();\n\n return view('client.dashboard',compact('invoices_json','sms_history','tickets_json','sms_status_json','recent_five_invoices','recent_five_tickets'));\n }", "title": "" }, { "docid": "eb8ff85051169982b1ebbeeb017770c0", "score": "0.49465075", "text": "function cGraph()\n\t{\n\t\t$this->data_sets = array();\n\t\t$this->id=\"graph1\";\n\t\t$this->variables=array();\n\t\t$this->data = array();\n\t\t$this->links = array();\n\t\t$this->width = 250;\n\t\t$this->height = 200;\n\t\t$this->js_path = 'js/';\n\t\t$this->swf_path = '../images/chart.swf';\n\t\t$this->x_labels = array();\n\t\t$this->y_min = '';\n\t\t$this->y_max = '';\n\t\t$this->x_min = '';\n\t\t$this->x_max = '';\n\t\t$this->y_steps = '';\n\t\t$this->title = '';\n\t\t$this->title_style = '';\n\t\t$this->occurence = 0;\n\n\t\t$this->x_offset = '';\n\n\t\t$this->x_tick_size = -1;\n\n\t\t$this->y2_max = '';\n\t\t$this->y2_min = '';\n\n\t\t// GRID styles:\n\t\t$this->x_axis_colour = '';\n\t\t$this->x_axis_3d = '';\n\t\t$this->x_grid_colour = '';\n\t\t$this->x_axis_steps = 1;\n\t\t$this->y_axis_colour = '';\n\t\t$this->y_grid_colour = '';\n\t\t$this->y2_axis_colour = '';\n\n\t\t// AXIS LABEL styles:\n\t\t$this->x_label_style = '';\n\t\t$this->y_label_style = '';\n\t\t$this->y_label_style_right = '';\n\n\n\t\t// AXIS LEGEND styles:\n\t\t$this->x_legend = '';\n\t\t$this->x_legend_size = 20;\n\t\t$this->x_legend_colour = '#000000';\n\n\t\t$this->y_legend = '';\n\t\t$this->y_legend_right = '';\n\t\t//$this->y_legend_size = 20;\n\t\t//$this->y_legend_colour = '#000000';\n\n\t\t$this->lines = array();\n\t\t$this->line_default['type'] = 'line';\n\t\t$this->line_default['values'] = '3,#87421F';\n\t\t$this->js_line_default = 'so.addVariable(\"line\",\"3,#87421F\");';\n\n\t\t$this->bg_colour = '#FFFFFF';\n\t\t$this->bg_image = '';\n\n\t\t$this->inner_bg_colour = '';\n\t\t$this->inner_bg_colour_2 = '';\n\t\t$this->inner_bg_angle = '';\n\n\t\t// PIE chart ------------\n\t\t$this->pie = '';\n\t\t$this->pie_values = '';\n\t\t$this->pie_colours = '';\n\t\t$this->pie_labels = '';\n\n\t\t$this->tool_tip = '';\n\n\t\t// which data lines are attached to the\n\t\t// right Y axis?\n\t\t$this->y2_lines = array();\n\n\t\t// Number formatting:\n\t\t$this->y_format='';\n\t\t$this->num_decimals='';\n\t\t$this->is_fixed_num_decimals_forced='';\n\t\t$this->is_decimal_separator_comma='';\n\t\t$this->is_thousand_separator_disabled='';\n\n\t\t$this->output_type = '';\n\t\t$this->output_string='';\n\t\t//\n\t\t// set some default value incase the user forgets\n\t\t// to set them, so at least they see *something*\n\t\t// even is it is only the axis and some ticks\n\t\t//\n// \t\t$this->set_y_min( 0 );\n// \t\t$this->set_y_max( 20 );\n// \t\t$this->set_x_axis_steps( 1 );\n// \t\t$this->y_label_steps( 5 );\n\t}", "title": "" }, { "docid": "47caab046d6b22288e16b8e1fad5c62f", "score": "0.4943873", "text": "public function getTooltipHelpers() {\n\t\treturn array(\"icon\", \"name\", \"link\", \"limitDescription\", \"tooltipButtons\");\n\t}", "title": "" }, { "docid": "753dc2f839851b7ea86bada86d255e38", "score": "0.49416447", "text": "protected function getSettings()\n {\n\n $settings = array();\n $cKeys = array_keys($this->columns);\n\n $dataColumns = array();\n foreach ($this->dataStore as $row) {\n $dataCol = array();\n foreach ($cKeys as $i => $key) {\n array_push($dataCol, $row[$key]);\n }\n array_push($dataColumns, $dataCol);\n }\n $settings[\"data\"] = array(\n \"columns\" => $dataColumns\n );\n\n $settings[\"cKeys\"] = $cKeys;\n\n //Label\n if($this->label)\n {\n $show = Utility::get($this->label,\"show\",true);\n $settings[\"pie\"] = array(\n \"label\"=>array(\n \"show\"=>$show,\n )\n );\n if($show)\n {\n $use = Utility::get($this->label,\"use\",\"ratio\");\n $decimals = Utility::get($this->label,\"decimals\",$use===\"ratio\"?1:0);\n $thousandSep = Utility::get($this->label,\"thousandSep\",\n Utility::get($this->label,\"thousandSeparator\",\",\"));\n $decPoint = Utility::get($this->label,\"decPoint\",\n Utility::get($this->label,\"decimalPoint\",\".\")); \n $prefix = Utility::get($this->label,\"prefix\",\"\");\n $suffix = Utility::get($this->label,\"suffix\",$use===\"ratio\"?\"%\":\"\");\n\n $value = ($use===\"ratio\")?\"ratio*100\":\"value\";\n\n $settings[\"pie\"][\"label\"][\"format\"] = \"function(value,ratio,id){return KoolReport.d3.format($decimals,'$decPoint','$thousandSep','$prefix','$suffix')($value);}\";\n }\n }\n\n //Tooltips\n if($this->tooltip)\n {\n $show = Utility::get($this->tooltip,\"show\",true);\n $settings[\"tooltip\"] = array(\n \"show\"=>$show\n );\n if($show)\n {\n $use = Utility::get($this->tooltip,\"use\",\"ratio\");\n $decimals = Utility::get($this->tooltip,\"decimals\",$use===\"ratio\"?1:0);\n $thousandSep = Utility::get($this->tooltip,\"thousandSep\",\n Utility::get($this->tooltip,\"thousandSeparator\",\",\"));\n $decPoint = Utility::get($this->tooltip,\"decPoint\",\n Utility::get($this->tooltip,\"decimalPoint\",\".\")); \n $prefix = Utility::get($this->tooltip,\"prefix\",\"\");\n $suffix = Utility::get($this->tooltip,\"suffix\",$use===\"ratio\"?\"%\":\"\");\n \n $value = ($use===\"ratio\")?\"ratio*100\":\"value\";\n \n $settings[\"tooltip\"][\"format\"] = array(\n \"value\"=> \"function(value,ratio,id,index){return KoolReport.d3.format($decimals,'$decPoint','$thousandSep','$prefix','$suffix')($value);}\"\n ); \n } \n }\n\n\n return Utility::arrayMergeRecursive(parent::getSettings(), $settings);\n }", "title": "" }, { "docid": "75606a7ec833355af8a5d04e8f9a91e5", "score": "0.49416187", "text": "public function index()\n {\n $user = Auth::user();\n $showmodal = \"no\";\n\n if($user->user_firstlogin == 1 && $user->user_type == 1)\n {\n $showmodal = \"yes\";\n $user->user_firstlogin = 0;\n $user->save();\n }\n\n $chartjs = app()->chartjs\n ->name('ClientChart')\n ->type('line')\n ->element('lineChartTest')\n ->labels(['January', 'February', 'March', 'April', 'May', 'June', 'July'])\n ->datasets([\n [\n \"label\" => \"SignUps\",\n 'backgroundColor' => \"rgba(243, 156, 18, 0.3)\",\n 'borderColor' => \"rgba(243, 156, 18, 0.7)\",\n \"pointBorderColor\" => \"rgba(255, 255, 255, 0.7)\",\n \"pointBackgroundColor\" => \"rgba(243, 156, 18, 0.7)\",\n \"pointHoverBackgroundColor\" => \"#f00\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => [65, 40, 80, 81, 56, 55, 40],\n ],\n [\n \"label\" => \"Revenue\",\n 'backgroundColor' => \"rgba(77, 175, 124, 0.3)\",\n 'borderColor' => \"rgba(77, 175, 124, 0.7)\",\n \"pointBorderColor\" => \"rgba(255, 255, 255, 0.7)\",\n \"pointBackgroundColor\" => \"rgba(77, 175, 124, 0.7)\",\n \"pointHoverBackgroundColor\" => \"#00f\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => [40, 33, 44, 44, 90, 23, 80],\n ]\n ])\n ->options([]);\n return view('dashboard', compact('chartjs', 'showmodal'));\n }", "title": "" }, { "docid": "d2a18bca9897881ac700e554a3509a6f", "score": "0.4940573", "text": "public function __construct() {\n parent::__construct();\n $this->load->model('chart_model');\n $this->load->helper('url');\n }", "title": "" }, { "docid": "a489ac5e51c42f142e513da8ba3a4bda", "score": "0.49365658", "text": "function yearly_chart() {\n $view_data[\"currencies_dropdown\"] = $this->_get_currencies_dropdown();\n return $this->template->view(\"invoices/yearly_payments_chart\", $view_data);\n }", "title": "" }, { "docid": "8be4abe55c4ce0279b7c45cb41ca5fea", "score": "0.4918305", "text": "public function getHelpers()\n {\n return $this->_helper;\n }", "title": "" }, { "docid": "9d3dd801a94e8a9a36c9b4a52d07f77b", "score": "0.49075893", "text": "public function dashboard_sma()\n {\n // Code Here\n }", "title": "" }, { "docid": "f238bc5b64de544fd4ea32a9119b693f", "score": "0.490552", "text": "public function getProductChartData(Request $request)\n {\n $shop = \\ShopifyApp::shop();\n\n $viewDashboard = DB::table('report_dashboard')\n ->select('phrase','result',DB::raw('count(phrase) as total'))\n ->where('shop_id', $shop->id)\n ->where('result', 'yes')\n ->groupBy('phrase')\n ->orderBy('total', 'DESC')\n ->get();\n\n\n $productAmountData = [];\n $total = 0;\n $autoChart= 0;\n $valueTotal = 0;\n $totalDashboard = count($viewDashboard);\n foreach ($viewDashboard as $value) {\n $total += $value->total;\n\n }\n\n foreach ($viewDashboard as $value) {\n $autoChart ++;\n if($autoChart<=9){\n $color = '#' . str_pad(dechex(mt_rand(0, 0xFFFFFF)), 6, '0', STR_PAD_LEFT);\n $valuePercentages = round(($value->total/$total)*100, 2);\n array_push($productAmountData, ['value' => $valuePercentages, 'color' => $color, 'highlight' => $color, 'label' =>$value->phrase]);\n }else{\n $valueTotal += $value->total;\n if($autoChart===$totalDashboard) {\n\n $valueOtherPercentages = round(($valueTotal/$total)*100, 2);\n $color = '#' . str_pad(dechex(mt_rand(0, 0xFFFFFF)), 6, '0', STR_PAD_LEFT);\n array_push($productAmountData, ['value' => $valueOtherPercentages, 'color' => $color, 'highlight' => $color, 'label' => 'Other Phrase']);\n }\n }\n\n\n };\n\n return response()->json(['success' => true,\n 'product_amount' => $productAmountData\n ]);\n }", "title": "" }, { "docid": "70119a957cdc1168b467d1b4aa756b1a", "score": "0.48984373", "text": "function trackchart()\n\t{\n\t\t$top_tracks = $this->Session->read('top_tracks');\n\t\t$this->set('top_tracks', $top_tracks);\n\n\t}", "title": "" }, { "docid": "1fcfc830b03ba25f8d0bf4dfca5cd519", "score": "0.48787454", "text": "public function show(Chart $chart)\n {\n //\n }", "title": "" }, { "docid": "1fcfc830b03ba25f8d0bf4dfca5cd519", "score": "0.48787454", "text": "public function show(Chart $chart)\n {\n //\n }", "title": "" }, { "docid": "d88a042a7eab2e3215e408ed40edba17", "score": "0.4877076", "text": "function getChart() {\r\n\t\t\r\n\t\t$this->colls = count($this->data_array);\r\n\t\t\r\n\t\tif ($this->max_val > 0){\r\n\t\t\t\r\n\t\t\t$this->max_var = $this->max_val;\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\t$this->max_var = max($this->data_array);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t$str .= \"\\r<!-- RRSOFT EASY CHART V1.0 -->\\n\\r\";\r\n\t\t$str .= \"\\r<!-- www.rrsoft.cz; info@rrsoft.cz -->\\n\\r\";\r\n\t\t$str .= \"\\r<!-- START EASYCHART CODE -->\\n\\r\";\r\n\t\t$str .= \"<table class=\\\"$this->css_table\\\">\\n\\t\";\r\n\t\t$str .= \"<tr>\\n\\t<td colspan=\\\"$this->colls\\\" class=\\\"$this->css_title\\\">$this->chart_title_text</td>\\n</tr>\\n\";\r\n\t\t$str .= \"<tr>\\n\\t\".$this->getColls($this->colls).\"</tr>\";\r\n\t\t\r\n\t\tif ($this->chart_footer_text<>\"\"){\r\n\t\t\t\r\n\t\t\t$str .= \"<tr>\\n\\t<td colspan=\\\"$this->colls\\\" class=\\\"$this->css_footer\\\">$this->chart_footer_text</td></tr>\";\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t$str .= \"</table>\\n\";\r\n\t\t$str .= \"<!-- END EASYCHART CODE -->\\n\";\r\n\t\t\r\n\t\treturn $str;\r\n\t}", "title": "" }, { "docid": "880aec3edf4ca63e3449ff7d4954fc88", "score": "0.48644766", "text": "function open_flash_chart()\n\t{\n\t\t$this->elements = array();\n\t}", "title": "" }, { "docid": "0a00eb96a75faf2322b8aba910467318", "score": "0.48558068", "text": "public function __construct()\n {\n parent::__construct();\n\n $this->load->helper('item');\n $this->load->helper('dompdf');\n }", "title": "" }, { "docid": "41b461f30aed7e171f48d4e16904c5ab", "score": "0.48527345", "text": "abstract protected function getChartContent();", "title": "" }, { "docid": "648a187a65ade7688a0521f748cfda17", "score": "0.48438668", "text": "public function getView(string $name) : IChartView;", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bac3188558c3acab53dd8d5175c1d4e", "score": "0.0", "text": "public function show($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "754e1795026ca4c71e3959656a533ca3", "score": "0.77020115", "text": "private function _displayResource() {\n\t\t// determine which action to take\n\t\t$lti_message_type = $this->lti_model->getLtiDataValue('lti_message_type');\n\t\tswitch( $lti_message_type ){\n\t\t\tcase 'ContentItemSelectionRequest' : // take user to the content item selector\n\t\t\t\t$this->_getContentItemSelectionRequest();\n\t\t\t\tbreak;\n\t\t\tcase 'basic-lti-launch-request' : // retrieve the requested resource\n\t\t\tdefault :\n\t\t\t\t// store LTI basic outcomes service details when an outcome is requested\n\t\t\t\t$this->lti_outcomes->saveLtiOutcomesValues();\n\t\t\t\t$this->getContent( $custom_resource_id );\n\t\t}\n\t}", "title": "" }, { "docid": "d77a1cf077ad489eb930bc1facfeb4a7", "score": "0.7348343", "text": "public function show($class_id, $resource)\n {\n //\n }", "title": "" }, { "docid": "26f38c42099a7c64fba7842c4ce19062", "score": "0.7230476", "text": "public function show(Resource $resource)\n {\n return view('actions.resource.show', compact('resource'));\n }", "title": "" }, { "docid": "b8de278532cf1b2d94016c0cd12737fd", "score": "0.7159185", "text": "public function show(Resource $resource)\n {\n $resource = new ResourceResource($resource);\n return $this->success('Resource Detail.', $resource);\n }", "title": "" }, { "docid": "48fb67ee8a54377a224740d572c17cdd", "score": "0.7143722", "text": "public function show(Resource $resource)\n {\n return view('resource.show',['resource'=>$resource]);\n }", "title": "" }, { "docid": "50078f2eddc7667a37be0da403d6d3e4", "score": "0.7131298", "text": "function display($resource_name, $cache_id = null, $compile_id = null) {\n // Был старый выхзов, учитывал кеширование\n //$this->fetch($resource_name, $cache_id, $compile_id, true);\n $this->render($resource_name);\n }", "title": "" }, { "docid": "860344e8f85b09bf11e41aa48e928f6e", "score": "0.6776001", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BWBlogBundle:Resource')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Resource entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BWBlogBundle:Resource:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(), ));\n }", "title": "" }, { "docid": "bc7cbf8f7bf2cdecfc58cc20b4ee76ef", "score": "0.6574996", "text": "public function show($course, Resource $resource)\n {\n\n\n $pageTitle = 'Resource';\n\n return view('resources.resource')->with(compact( 'resource', 'pageTitle'));\n }", "title": "" }, { "docid": "cc94e2329160f202733c635aa4bf0b30", "score": "0.65286446", "text": "public function show($param)\r\n {\r\n\r\n $data['resource_header'] = true;\r\n $user_id = ($this->auth)?$this->auth->id:null;\r\n $data['resource'] = Resource::with(['tags', 'likesCount', 'user', 'downloads', 'category', 'category.resources' => function($q){\r\n $q->limit(4);\r\n }, 'like' => function($q)use($user_id){\r\n $q->where('user_id', $user_id);\r\n }])\r\n ->where('slug', $param)\r\n ->orWhere('id', $param)\r\n ->firstOrFail();\r\n\r\n $author = User::with('profile')\r\n ->where('id', $data['resource']->user_id)\r\n ->get()\r\n ->toArray();\r\n\r\n if(count($author) > 0){\r\n $data['author'] = $author[0];\r\n }\r\n\r\n $data['latestResources'] = Resource::with('category')->orderBy('id', 'desc')->limit(5)->get();\r\n $data['tags'] = Tag::orderBy('id','desc')->get();\r\n\r\n return view('public.resource')->with($data);\r\n }", "title": "" }, { "docid": "69545e83d1d4c03b646757789a897b5b", "score": "0.6515112", "text": "public function show(Resource $resource)\n {\n //\n // $this->authorize('view',Resource::class);\n // $page=Page::all();\n // $resource=Resource::all();\n // return view('resource.show',compact('page','resource'));\n return response()->json($resource);\n }", "title": "" }, { "docid": "51abeaf13e315e938469da7a51936df5", "score": "0.6467601", "text": "public function show($id)\n {\n $query = '\"select\":\"*\",\"where\":\"id=' . $id . '\"';\n $data = ResourcesService::getResourcesTableRow($query);\n $resource = $data[\"Result\"][0];\n //$resource = Resource::findOrFail($id);\n\n return view('admin.resources.show', compact('resource'));\n }", "title": "" }, { "docid": "4869655563febeddc21b876b2d3bd399", "score": "0.6464456", "text": "public function showResource(Request $request, $id = 0);", "title": "" }, { "docid": "6e101e96500f24d567e50a803b6d00fb", "score": "0.64562225", "text": "public function show($id)\n\t{\n\t\t// Get the resource if it has not been provided by the child class\n\t\tif( ! $this->resource->getKey())\n\t\t\t$this->resource = $this->resource->findOrFail($id);\n\n\t\t$this->layout->subtitle = _('Details');\n\n\t\treturn $this->loadView(__FUNCTION__, $this->resource->getVisibleLabels());\n\t}", "title": "" }, { "docid": "0bfd2fab1690e405f8ae90f2f671725b", "score": "0.63684106", "text": "public function show($id)\n\t{\n\t\t$resource = Resource::findOrFail($id);\n\t\treturn View::make('resource/show', compact('resource'));\n\t}", "title": "" }, { "docid": "14f061e926b1904b496ec52586cb2b35", "score": "0.63535744", "text": "public function display() {\n\t\t\ttry {\n\t\t\t\tif(!is_null($this->id)) {\n\t\t\t\t\t$this->returnView($this->model->display($this->id));\n\t\t\t\t} else {\n\t\t\t\t\t$this->error404();\n\t\t\t\t}\n\t\t\t} catch(Exception $e) {\n\t\t\t\t$this->session->add('error', $e->getMessage());\n\t\t\t\texit(header('Location: '.$_SERVER['HTTP_REFERER']));\n\t\t\t}\n\t\t\t$this->session->sUnset('error');\n\t\t}", "title": "" }, { "docid": "30460e9f10fc35f6066e56c0edf07f11", "score": "0.62772554", "text": "public function resource($resource)\n {\n // TODO: Implement resource() method.\n }", "title": "" }, { "docid": "742c2b4cd2f26a04a82af80f8ee84057", "score": "0.62133056", "text": "public function show()\n {\n $dispatcher = Dispatcher::getSharedDispatcher();\n $dataProvider = $this->getDataProvider();\n $controller = $dataProvider->getControllerClassForPath($this->getPath());\n $action = $this->getIdentifier() . 'Action';\n $controller = GeneralUtility::makeInstance($controller);\n\n if (is_object($controller)) {\n $controller->setRequest($dispatcher->getRequest());\n }\n if (is_numeric($this->getIdentifier())\n && is_object($controller) && method_exists($controller, 'showAction')\n ) {\n $result = $controller->processAction('showAction', $this->getIdentifier());\n } elseif (is_object($controller) && method_exists($controller, $action)) {\n $result = $controller->processAction($action);\n } else {\n $result = false;\n }\n\n return $result ? $this->createResponse($result, 200) : $result;\n }", "title": "" }, { "docid": "f61677388a9b71138fce919e36a82ca0", "score": "0.61413664", "text": "public function show($id)\n {\n #$resource = resource::find($id);\n $resource = Resource::where('slug', '=', $id)->orWhere('id', '=', $id)->firstOrFail();\n\n $related_resources = Resource::where('id', \"!=\", $resource->id)\n ->orWhere('name', 'LIKE', '%' . $resource->name . '%')\n ->orWhere('description', 'LIKE', '%' . $resource->description . '%')->take(8)->get();\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $related_resources,\n ];\n\n return view('resources.show-resource')->with($data);\n }", "title": "" }, { "docid": "404169262f3328542c2f476a8bae067c", "score": "0.6073625", "text": "public function fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n $this->fixURI($resource_name);\n\n return parent::fetch($resource_name, $cache_id, $compile_id, $display);\n }", "title": "" }, { "docid": "90a025ba515ea1ffda1792e51f379566", "score": "0.6065236", "text": "public function show($id)\n {\n $resource = Resource::findOrFail($id);\n\n return view('resources.show')->with(compact('resource'));\n }", "title": "" }, { "docid": "d4b48f077d182386266a016e1934227a", "score": "0.60600674", "text": "public function render(&$objResource);", "title": "" }, { "docid": "120fe33c517800f7a36fd36a7d8ff2a0", "score": "0.6034755", "text": "public function showAction($id);", "title": "" }, { "docid": "691f9d494ebbd3698416c27402ce6045", "score": "0.6024695", "text": "public function show($id)\n {\n if (is_numeric($id)) {\n return new ActionResource (Action::find($id));\n }else{\n abort(404 , 'resource not found.');\n \n }\n \n }", "title": "" }, { "docid": "c6f154f853b604d366507e7f3651128c", "score": "0.59881043", "text": "public function index()\n\t{\n\t\t$this->load->view('resource');\n\t}", "title": "" }, { "docid": "78f674e0991329ee80d8bfe522602ce3", "score": "0.59581137", "text": "public function actionShow()\n {\n $this->render('show', array());\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5954321", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "3411150986f3334a3ae059e3824a705e", "score": "0.59518707", "text": "public function showAction() {\n\n\t\t// ...\n\t\tif(isset($this->externalWebsiteUri)) {\n\t\t\t$this->view->assign('external_website_uri', $this->externalWebsiteUri);\n\t\t}\n\t}", "title": "" }, { "docid": "51df0e59505572a08a6c3c4ea6558bb4", "score": "0.5942475", "text": "public function showAction()\n\t{\n\t\t$this->loadLayout()->renderLayout();\n\t}", "title": "" }, { "docid": "7a089792dd9f8cefa56e79369d710cb2", "score": "0.59358656", "text": "public function show(Request $request, string $resource, string $id) {\n if(!Lyra::checkPermission('read', $resource)) abort(403);\n\n if(config('lyra.translator.enabled') && $request->has('lang')) App::setLocale($request->get('lang'));\n\n $resourcesNamespace = Lyra::getResources()[$resource];\n $modelClass = $resourcesNamespace::$model;\n\n if (method_exists($modelClass, 'trashed')) {\n $model = $modelClass::withTrashed()->find($id);\n } else {\n $model = $modelClass::find($id);\n }\n\n if (!Arr::first($model)) return abort(404, \"No query results for model [$modelClass]\");\n $resourceCollection = new $resourcesNamespace(collect([$model]));\n return $resourceCollection->getCollection($request, 'show');\n }", "title": "" }, { "docid": "a5fe9713f7fa35feab808a95acb937a5", "score": "0.59236246", "text": "public function show(Artist $artist)\n {\n\n\n return new ShowArtistResource($artist);\n\n\n }", "title": "" }, { "docid": "4dd721a222d59966f8999c2bf46a1634", "score": "0.5913372", "text": "public function url($resource = self::URL_RESOURCE, array $args = array()) \n {\n return parent::url($resource, $args);\n }", "title": "" }, { "docid": "eaff1ff5ad75e879908bb065beeea534", "score": "0.5910201", "text": "public function edit(Resource $resource)\n {\n return view('actions.resource.edit', compact('resource'));\n }", "title": "" }, { "docid": "f2800dcfd7234cc6b914253341f2a919", "score": "0.5905734", "text": "public function display()\n {\n $this->getAdapter()->display();\n }", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "c6b5201b64b56afc1aba96e7f01df942", "score": "0.5895745", "text": "public function displayAction()\r\n\t\t{\r\n\r\n\t\t\t$q = Doctrine_Query::create()\r\n\t\t\t->from('Webteam_Model_User i')\r\n\t\t\t->where('i.UserName = ?', $this->identity['UserName']);\r\n\t\t\t$result = $q->fetchArray();\r\n\t\t\tif (count($result) == 1) {\r\n\t\t\t\t$this->view->item = $result[0];\r\n\t\t\t} else {\r\n\t\t\t\tthrow new Zend_Controller_Action_Exception('Page not found', 404);\r\n\t\t\t}\r\n\r\n\t\t}", "title": "" }, { "docid": "e1911719b5dbc5045d62ac4e5e20cd33", "score": "0.587909", "text": "protected function showAction() {\n\t\t$em = $this->getEntityManager();\n\t\t$book = $em->find('Entities\\\\Book', $_GET['id']);\n\t\t$this->addContext('book', $book);\n\t}", "title": "" }, { "docid": "9593ec2b031b164d16249f1ae81182ef", "score": "0.58776784", "text": "public function show(Retex $retex)\n {\n //\n }", "title": "" }, { "docid": "093db99e28544f24edb386d2bf2129f0", "score": "0.58682454", "text": "public function display() {\n\t\t$this->displayContent();\n\t}", "title": "" }, { "docid": "95d012dca84499e39b434e04c9f86031", "score": "0.58522356", "text": "public function showAction()\n\t{\n\t\tif (!isset($this->sGlobal->uId) && !Zend_Auth::getInstance ()->hasIdentity ()) {\n\t\t\t$this->_helper->redirector->gotoRoute ( array('action' => 'index', 'controller' => 'auth'), 'default' );\n\t\t}\n\t\t \n\t\t$dbRoutes = new Model_Ride_DbRoutes();\n\t\t\n\t\t$routes = $dbRoutes->getRoutesByUserId($this->sGlobal->uId);\n\t\t\n\t\t$this->view->routes = $routes;\n\t\t\n\t\t$this->view->deleteRideLink = $this->_helper->url->url(array('controller'=>'Ride', 'action'=>'deleteride'), 'default', true);\n\t\t\n\t}", "title": "" }, { "docid": "a6ea4c61d98549d6b82aa6c50e5153c9", "score": "0.58442765", "text": "public function show($id)\n {\n // return \"Show \".$id;\n abort(404);\n }", "title": "" }, { "docid": "57e04be30c8d73c6f1b1f97f0813c951", "score": "0.5839814", "text": "public function show($parm);", "title": "" }, { "docid": "7fa6d8ebb4c7b91b6b1219f34c1ccc2e", "score": "0.5827577", "text": "public function show()\n {\n return $this->resource->transform();\n }", "title": "" }, { "docid": "1f025b0828827877859e8e2f72f5add5", "score": "0.5824839", "text": "public function resourceAction();", "title": "" }, { "docid": "bc8b175839d90931dc37b6d17073534e", "score": "0.5824825", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n );\n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams());\n\n // test if input is valid\n // retrieve requested record\n // attach to view\n if ($input->isValid()) {\n $q = Doctrine_Query::create()\n ->from('Zf1_Model_Item i')\n ->leftJoin('i.Zf1_Model_Country c')\n ->leftJoin('i.Zf1_Model_Grade g')\n ->leftJoin('i.Zf1_Model_Type t')\n ->where('i.RecordID = ?', $input->id)\n ->addWhere('i.DisplayStatus = 1')\n ->addWhere('i.DisplayUntil >= CURDATE()');\n $sql = $q->getSqlQuery();\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->item = $result[0];\n $this->view->images = array();\n $config = $this->getInvokeArg('bootstrap')->getOption('uploads');\n foreach (glob(\"{$config['uploadPath']}/{$this->view->item['RecordID']}_*\") as $file) {\n $this->view->images[] = basename($file);\n }\n $configs = $this->getInvokeArg('bootstrap')->getOption('configs');\n $localConfig = new Zend_Config_Ini($configs['localConfigPath']);\n $this->view->seller = $localConfig->user->displaySellerInfo;\n $registry = Zend_Registry::getInstance();\n $this->view->locale = $registry->get('Zend_Locale');\n $this->view->recordDate = new Zend_Date($result[0]['RecordDate']);\n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404);\n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input');\n }\n }", "title": "" }, { "docid": "bcd5d6f048ed9967b2cc42a2b9c646e4", "score": "0.58217233", "text": "public function show($id)\n\t{\n\t\t//...\n\t}", "title": "" }, { "docid": "062f661f5aa2b0fb00beffc662c406c7", "score": "0.58164716", "text": "public function show($id)\n {\n $catalog_detail = Catalog::where(\"id\", \"=\", $id,)->first();\n\n if (!is_null($catalog_detail)) {\n return $this->ok(\"\", new CatalogResource($catalog_detail));\n }\n\n return $this->ok(__('global.record_not_found'));\n }", "title": "" }, { "docid": "e5b312e565cadd216286627cb156afa1", "score": "0.5814938", "text": "public function show() {\n $this->display = true;\n }", "title": "" }, { "docid": "3c83da877de5a8b9a28620cc567e154f", "score": "0.5812585", "text": "public function show($model)\n {\n $model = $this->getModel($model);\n\n $this->authorize('view', $model);\n\n $model = $this->showModel($model);\n\n $resource = resource($model);\n\n return ok($resource);\n }", "title": "" }, { "docid": "8fa3c5aa92241bd98bf245a72087750b", "score": "0.58067733", "text": "public function show($id)\n {\n return Resource::find($id);\n }", "title": "" }, { "docid": "305f64db85d64f68019d2fadcd0a85d2", "score": "0.58012545", "text": "public function show()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "7d4b687c2015cbab6585700fbd9fed75", "score": "0.5790671", "text": "protected function showResourceView($id)\n\t{\n\n\t\t$element = $this->getElements($id);\n\t\treturn Response::view('adm/Regions/element', array('data' => $element));\n\n\t}", "title": "" }, { "docid": "6d0ead3170a91374660511ebe07a7e52", "score": "0.57788694", "text": "public function display($file){\n\t\techo $this->fetch($file);\n\t}", "title": "" }, { "docid": "1ebe558af6c12f3e75c7741d736cd837", "score": "0.5773779", "text": "public function show($id)\n\t{\n\t\t$this->layout->nest('content', $this->view, ['car' => $this->resource]);\n\t}", "title": "" }, { "docid": "ff99e6923e061969deb024f038cd9fd9", "score": "0.5771933", "text": "public abstract function show();", "title": "" }, { "docid": "f37f81a8bf0d836ce01d6e66ee929689", "score": "0.57692647", "text": "public function show()\n {\n $ResourceRepo = new ResouceRepo();\n $res = $ResourceRepo->show();\n $count = $ResourceRepo->getcount();\n\n return view('ViewResource',['resources' => $res,'totalcount' =>$count]);\n }", "title": "" }, { "docid": "23d3f586042fc7ef9f98c33613fd010d", "score": "0.5757193", "text": "public function url($resource = 'instances', array $args = array())\n {\n return parent::url($resource, $args);\n }", "title": "" }, { "docid": "64ca047c763cbf564dd5de6f46e00c8a", "score": "0.5757105", "text": "public function display(){}", "title": "" }, { "docid": "be16c52b6734a0cf50cdaa52b26c8ee0", "score": "0.57546145", "text": "public function show(Resroom $resroom)\n {\n //\n }", "title": "" }, { "docid": "6552a6831d000ffc0b68b09357fd4a3c", "score": "0.5750852", "text": "public function show($id)\n\t{\n\t\techo $id;\n\t}", "title": "" }, { "docid": "58d82a32f57975c44fc660ccacd3a42f", "score": "0.5749565", "text": "public function resource( $resc= '')\n {\n return view('home.resource',['resource'=>$resc]);\n }", "title": "" }, { "docid": "c28bc00a20642b8f45cbb36b8f142bb6", "score": "0.5747548", "text": "public function show( $id );", "title": "" }, { "docid": "f3bc4ff0e0f2cc54bf914d77670e405e", "score": "0.5737612", "text": "public function edit(Resource $resource)\n {\n return view('resource.edit',['resource'=>$resource]);\n }", "title": "" }, { "docid": "a5c4f542acf75c65ff05c5578f254411", "score": "0.57365245", "text": "public function show($id)\t{\n\t\t//\n\t}", "title": "" }, { "docid": "c0c57945d6d1643edc1ffb95ae99eef9", "score": "0.5735039", "text": "public function show($id)\n { \n if( $this->checkShowModelRequest($id) ) return abort(404, \"Resource not found\");\n\n if(request()->expectsJson() || $this->onlyJsonResponse) \n return response()->json($this->showModelQueryResponse($id));\n\n return $this->renderView(\n $this->moduleName != null ? Str::plural($this->moduleName) . '.show' : 'show' ,\n $this->showResponse($id)\n );\n }", "title": "" }, { "docid": "1bb2758d3ba7fe86461bda00a9606e3e", "score": "0.5734708", "text": "public function show( $id )\n\t{\n\t\t$model = Input::get( 'model' );\n\n\t\tif ( !class_exists( $model ) ) {\n\t\t\treturn $this->renderResponse( false, \"That model does not exist\" );\n\t\t}\n\n\t\t$item = $model::find( $id );\n\n\t\tif ( !is_null( $item ) ) {\n\t\t\tif ( property_exists( $item, 'eager_relations' ) ) {\n\t\t\t\t$item->load( $item->eager_relations );\n\t\t\t}\n\t\t\treturn $this->renderResponse( true, $item->toArray( true ) );\n\t\t}\n\n\t\treturn $this->renderResponse( false, \"Resource not found\" );\n\t}", "title": "" }, { "docid": "ab8f27385173dda96b8eaafa7aa90f82", "score": "0.5734516", "text": "public function show(Hirtory $hirtory)\n {\n //\n }", "title": "" }, { "docid": "cb0625cb8bda35818012bd67fb011d73", "score": "0.5728958", "text": "protected function showAction()\n {\n $this->showAction\n ->setAccess($this, Access::CAN_SHOW)\n ->execute($this, NULL, UserActionEvent::class, NULL, __METHOD__)\n ->render()\n ->with(\n [\n 'user_log' => $this->userMeta->unserializeData(\n ['user_id' => $this->thisRouteID()],\n [\n 'login', /* array index 0 */\n 'logout', /* array index 1 */\n 'brute_force', /* index 2 */\n 'user_browser' /* index 3 */\n ]\n )\n ]\n )\n ->singular()\n ->end();\n }", "title": "" }, { "docid": "09abe18b0f313de0a8ae600fe6626d31", "score": "0.57271934", "text": "public function display() {\r\n\t\techo '<a href=\"' . $this->_link .\r\n\t\t\t\t'\" title=\"' . $this->_text .\r\n\t\t\t\t'\">' . $this->_text . '</a><br/>';\r\n\t}", "title": "" }, { "docid": "20397e06b8673db8692c5f84120c3011", "score": "0.5724891", "text": "public function show()\n\t{\n\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "d02c7bae2c97989fe256da11612461c7", "score": "0.5721667", "text": "function display()\n\t{\n\t\t$document \t=& JFactory::getDocument();\n\t\t$viewType\t= $document->getType();\t\n \t\t$viewName\t= JRequest::getCmd( 'view', $this->getName() );\n \t\t$view\t\t=& $this->getView( $viewName , '' , $viewType );\n \t\tif($this->checkPhotoAccess())\n \t\t\techo $view->get( __FUNCTION__ );\n\t}", "title": "" }, { "docid": "3e94f05854b4dbc5a4d900f54aa8043a", "score": "0.5719658", "text": "function index( $request ){\r\n\t\t\r\n\t\t// Look for \"resource\" in request //\r\n\t\t$requestVars = Router :: getRequestVars();\r\n\t\t\r\n\t\t// Show a help page if local //\r\n\t\tif( App :: get()->local ){\r\n\t\t\tif( !isset( $requestVars->resource )){\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Hard set the channel to simplify URLs to resource view //\r\n\t\tRouter :: resetChannel( 'resource' );\r\n\t\t\r\n\t}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "e2404ea37d0dd7d634ec1a88ba6e0b01", "score": "0.5708454", "text": "public function show() {\n\t\t$author = pick_arg(Author::class);\n\t\treturn $this->viewShow(compact('author'));\n\t}", "title": "" }, { "docid": "695e29ca27ebbcb0a342e19915e00ae9", "score": "0.57076776", "text": "protected function makeDisplayFromResource()\n\t{\n\t\t$query = Query::getQuery();\n\t\t$json = json_encode($this->activeResource);\n\t\tif(isset($query['callback']) && self::$jsonpEnable)\n\t\t{\n\t\t\t$this->mimeType = 'application/javascript';\n\t\t\t$callback = preg_replace('[^A-Za-z0-9]', '', $query['callback']);\n\t\t\treturn $callback . '(' . $json . ')';\n\t\t}else{\n\t\t\treturn $json;\n\t\t}\n\t}", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "4e2d551ce901c5ead89d9fc7791dcc50", "score": "0.0", "text": "public function store(Request $request)\n {\n $this->validate($request,['group_acname' => 'required']);\n $this->validate($request,['type_acc' => 'required']);\n $gc = new GroupAcc(\n [\n 'group_acname' => $request->get('group_acname'),\n 'type_acc' => $request->get('type_acc')\n ]);\n $gc->save();\n return redirect('/gc')->with('status', 'save');\n }", "title": "" } ]
[ { "docid": "6fd12939ad43e0b8465f714deb95dc17", "score": "0.68325156", "text": "protected function storeResources()\n {\n try {\n $this->storage->get('version');\n } catch (\\Exception $e) {\n $this->storeVersion();\n }\n\n $resources = $this->resources(['format' => 'json']);\n $this->storage->put('resources', $resources);\n }", "title": "" }, { "docid": "d0bfac5fb1dbb1b2eafc131014133a72", "score": "0.67544043", "text": "public function store()\n\t{\n $this->resourceForm->validate(Input::all());\n $resource = Resource::create(\n Input::only('id_number', 'first_name', 'last_name', 'time_zone', 'extension_num', 'extension_pin', 'primary_phone', 'secondary_phone', 'active')\n );\n return Redirect::to('resources');\n\t}", "title": "" }, { "docid": "53b23500f551bbef6ad4a65447665f8a", "score": "0.6527683", "text": "public function store() {}", "title": "" }, { "docid": "35ea40baf62f42e40aaed808f3011b13", "score": "0.64787066", "text": "public function store()\n {\n if (!$this->id) {\n $this->insertObject();\n } else {\n $this->updateObject();\n }\n }", "title": "" }, { "docid": "14f9113e10ab16db8b93522fa5bed4d4", "score": "0.6436744", "text": "public function store() {\n // TODO: Implement store() method.\n }", "title": "" }, { "docid": "26fc32d420262b338412a368e56f3c24", "score": "0.64273345", "text": "protected function store() {\n if (count($this->storage) > 0) {\n set_transient($this->hash, $this->storage, self::$expire);\n } else {\n delete_transient($this->hash);\n }\n }", "title": "" }, { "docid": "6cd571f4466b5901b43a82652b434634", "score": "0.64145803", "text": "public function store(CreateRequest $request)\n {\n Resource::create($request->only(['name', 'type','resource_starts','resource_ends','exclude_weekends']));\n\n return redirect(route('resources.index'))->withSuccess('Resource created!');\n }", "title": "" }, { "docid": "635cb61885cca5673270994e1d7049ef", "score": "0.64108855", "text": "public function store()\n {\n return $this->sendResponse(\n new $this->resource($this->model->create($this->request->all())),\n 'successfully created.',\n true,\n 201\n );\n }", "title": "" }, { "docid": "8f52d18a0b337a866245dca6174b31f7", "score": "0.6383452", "text": "public function store()\n {\n $data = request()->validate([\n 'name' => 'required|unique:storage_locations',\n 'nickname' => 'nullable',\n 'description' => 'required',\n 'storage_type_id' => 'exists:storage_types,id'\n ]);\n\n $location = StorageLocation::create($data);\n\n session()->flash('flash', ['message' => 'Storage Location added successfully!', 'level' => 'success']);\n\n return redirect(route('storage.locations.index'));\n }", "title": "" }, { "docid": "e6a2ecff8be90a692566c0ac3bcd7773", "score": "0.6366602", "text": "public function store()\r\n\t\t{\r\n\t\t\t//\r\n\t\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" } ]
c878647dcf9c18424b3bc86e7720aa1d
This is a function that would be called before a form is submitted. Generally, a dropdown box or something similar that would force a submit of the form via javascript should put this in their onchange line as well so that the WYSIWYG can do any cleanups before the actual form submission takes place.
[ { "docid": "dcd852c3b04c33efd7e8e6899905bf43", "score": "0.58620983", "text": "function wysiwyg_page_form_submit();", "title": "" } ]
[ { "docid": "1ad61b20e9c201c9c7f457b36eddd559", "score": "0.6885836", "text": "protected function preSubmit() {\n\t\t// Template Method to be implemented in inheriting classes\n\t}", "title": "" }, { "docid": "2f49b8ca4b2322d4542551e489cb85b0", "score": "0.6115432", "text": "function options_submit(&$form, &$form_state) { }", "title": "" }, { "docid": "4aa036d1967dccbf3f3d6839a3014581", "score": "0.6057556", "text": "function process_form()\r\n {\r\n }", "title": "" }, { "docid": "93280753dfde70d28e2bfa7274ec9d95", "score": "0.60410506", "text": "public function onSubmit()\n {\n /* Loop through all vars and check if there's anything to do on\n * submit. */\n $variables = $this->getVariables();\n foreach ($variables as $var) {\n $var->type->onSubmit($var, $this->_vars);\n /* If changes to var being tracked don't register the form as\n * submitted if old value and new value differ. */\n if ($var->getOption('trackchange')) {\n $varname = $var->getVarName();\n if (!is_null($this->_vars->get('formname')) &&\n $this->_vars->get($varname) != $this->_vars->get('__old_' . $varname)) {\n $this->_submitted = false;\n }\n }\n }\n }", "title": "" }, { "docid": "525d7df30b0dc5afbaa1f66cdb0745da", "score": "0.6003133", "text": "public function afterFormSaved()\n {\n // nothing by default\n }", "title": "" }, { "docid": "968278e35c2615d558f8855871093141", "score": "0.59506017", "text": "function syntax_page_form_submit();", "title": "" }, { "docid": "2c6bfa4f1320c337b820312085e7cabc", "score": "0.5907405", "text": "function options_submit($form, &$form_state) {\n }", "title": "" }, { "docid": "a5b121cbaa241825cb591b865d2be6d4", "score": "0.5901005", "text": "private function handleForm(): void\n {\n $changes = $this->form->getChangedControls();\n $values = $this->form->getValues();\n\n // Return immediately if no changes are submitted.\n if (empty($changes['data'])) return;\n\n foreach ($changes['data'] as $pagId => $dummy)\n {\n if ($values['data'][$pagId]['pag_enabled'])\n {\n Nub::$nub->DL->abcSystemFunctionalityInsertPage($this->funId, $pagId);\n }\n else\n {\n Nub::$nub->DL->abcSystemFunctionalityDeletePage($this->funId, $pagId);\n }\n }\n\n // Use brute force to proper profiles.\n Nub::$nub->DL->abcProfileProper();\n }", "title": "" }, { "docid": "9be066f58e03b3d7800103151875c05c", "score": "0.5883866", "text": "function fillAfterSubmit($fieldID) {\n if ($_SERVER[\"REQUEST_METHOD\"] == \"POST\") {\n if (isset($_POST[$fieldID]) && $_POST[$fieldID] !== \"\") {\n switch ($fieldID) { // special fields that need a default value\n default:\n echo htmlspecialchars($_POST[$fieldID]);\n }\n return;\n }\n }\n switch ($fieldID) { // special fields that need a default value\n default:\n break;\n }\n}", "title": "" }, { "docid": "a15fa96ca83b5fb261f9d0ff9ef603c1", "score": "0.57845175", "text": "function preFormRun($myForm) {\n }", "title": "" }, { "docid": "11c4561db4851b598cb173602de3e7aa", "score": "0.57738054", "text": "function submit() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b0996c4afd3654574a6abdfb789ab1b4", "score": "0.57609177", "text": "function rscrub_primary_ops() {\n\n\t// Check if the form was submitted\n\tif( isset( $_POST['rscrub_scope'] ) ) {\n\t\n\t\t// Check nonce\n\t\tyourls_verify_nonce( 'rscrub' );\n\t\t\n\t\t// Process form - update option in database\n\t\tyourls_update_option( 'rscrub_scope', $_POST['rscrub_scope'] );\n\t\tif(isset($_POST['rscrub_prefix'])) yourls_update_option( 'rscrub_prefix', $_POST['rscrub_prefix'] );\n\t\tif(isset($_POST['rscrub_passthrough'])) yourls_update_option( 'rscrub_passthrough', $_POST['rscrub_passthrough'] );\n\t\t\n\t\techo '<font color=\"green\">Rscrub options saved. Have a nice day!</font>';\n\t}\n}", "title": "" }, { "docid": "6c2418cc789e4345db1ebf7d448ac6a5", "score": "0.5755566", "text": "function preinit()\r\n {\r\n //If there is something posted\r\n $this->input->disable=!$this->_filterinput;\r\n $submitted = $this->input->{$this->Name};\r\n if (!is_object($submitted)) $submitted = $this->input->{$this->Name.'_hidden'};\r\n $this->input->disable=false;\r\n if (is_object($submitted))\r\n {\r\n //Get the value and set the text field\r\n $this->_text = $submitted->asString();\r\n\r\n //If there is any valid DataField attached, update it\r\n $this->updateDataField($this->_text);\r\n }\r\n }", "title": "" }, { "docid": "57ef3f5d95814af5aa41e84d3dc03d14", "score": "0.57504666", "text": "function set_submit_normal()\n\t{\n\t\t$this->_submit_type = \"application/x-www-form-urlencoded\";\n\t}", "title": "" }, { "docid": "b4f239a70f3795f9baa06896af919b42", "score": "0.57049924", "text": "protected function beforeSetAddFormHook()\n {\n }", "title": "" }, { "docid": "e27d1a4bab33c37281c2b82d3394769e", "score": "0.5666386", "text": "public function maybe_process_form() {\n // Stop if the wpac POST isn't set\n if(!isset($_POST['wpac'])) {\n return;\n }\n\n $post_type = $_POST['wpac'];\n // Check this post_type\n $post_type_object = get_post_type_object($post_type);\n if(!$post_type) {\n return;\n }\n\n $title = isset($_POST['title']) ? $_POST['title'] : get_the_archive_title();\n $description = isset($_POST['description']) ? wp_kses_post(stripslashes($_POST['description'])) : '';\n\n update_option(\"wpac_{$post_type}_title\", $title);\n update_option(\"wpac_{$post_type}_description\", $description);\n wp_redirect(admin_url(\"edit.php?post_type={$post_type}&wpac-updated=true\"));\n exit;\n }", "title": "" }, { "docid": "a82e12759323ee475321f10d4439437d", "score": "0.565126", "text": "public function handleSubmittedForm()\n {\n if ($_SERVER['REQUEST_METHOD'] !== 'POST') {\n return;\n }\n\n if (!isset($_POST['join'])) {\n return;\n }\n\n // Actual form validation\n// $this->\n }", "title": "" }, { "docid": "1dbb7a3619dc0b7e94e10e471f73b7a2", "score": "0.56171596", "text": "protected function getPreSubmitClosure()\n {\n return function (FormEvent $event) {\n $data = $event->getData();\n if (is_array($data) && empty($data)) {\n $event->setData('');\n }\n };\n }", "title": "" }, { "docid": "045cc811dfc4d1702e3fdb5bbeb08153", "score": "0.5604499", "text": "function preinit()\r\n {\r\n $this->input->disable=!$this->_filterinput;\r\n $submitted = $this->input->{$this->Name};\r\n $this->input->disable=false;\r\n if (is_object($submitted))\r\n {\r\n // Escape the posted string if sent from a richeditor;\r\n // otherwise all tags are stripped and plain text is written to Text\r\n if ($this->_asspecialchars)\r\n {\r\n $this->Text = ($this->_richeditor) ? $submitted->asSpecialChars() : $submitted->asString();\r\n }\r\n else\r\n {\r\n $this->Text = $submitted->asUnsafeRaw();\r\n }\r\n\r\n //If there is any valid DataField attached, update it\r\n $this->updateDataField($this->Text);\r\n }\r\n }", "title": "" }, { "docid": "ee2eaf6965a5cb2b46e1e95eec2b7a94", "score": "0.5584967", "text": "public function onSubmit(){\n\n if (($code = post('code')) != ''){\n $user = $this->getuser();\n UserGroup::joinByCode($code, $user);\n }\n \n // Updated list of request and other vars\n $this->prepareVars();\n }", "title": "" }, { "docid": "a0fc0f4707297a39d4fe72925eba87ca", "score": "0.558232", "text": "public function settingsFormHandleSubmit(&$form, &$form_state);", "title": "" }, { "docid": "bfaaa6bc89debb3ed9cc3ee4c457ac8e", "score": "0.5581724", "text": "function writeOnSubmit($value) { $this->_onsubmit=$value; }", "title": "" }, { "docid": "68ec99f980738048192286dbd8456432", "score": "0.55753076", "text": "public function gform_before_submission($form)\n {\n $ccb_gform_hash = md5(json_encode($_POST));\n $sess_gform_hash = isset($_SESSION['ccb_plugin']['ccb_gform_hash']) ? $_SESSION['ccb_plugin']['ccb_gform_hash'] : array();\n if (in_array($ccb_gform_hash, $sess_gform_hash))\n {\n wp_redirect($this->referrer_url);\n exit();\n }\n }", "title": "" }, { "docid": "eb550850f37022f2e8c2f5585ad5e900", "score": "0.55446947", "text": "public function plugin_page() {\n\n\t\tif (isset($_REQUEST['result']) && $_REQUEST['result'] == 'error') { ?>\n\t\t\t<div class=\"error notice\">\n\t\t\t\t<p><?php _e('Error saving form.', 'gf_bulk_actions_pro'); ?></p>\n\t\t\t</div>\n\t\t<?php } elseif (isset($_REQUEST['result']) && $_REQUEST['result'] == 'updated') { ?>\n\t\t\t<div class=\"updated notice\">\n\t\t\t\t<p><?php _e('Form updated successfully', 'gf_bulk_actions_pro'); ?></p>\n\t\t\t</div>\n\t\t<?php }\n\n?>\n\t\t\t<form id=\"gf_bulk_actions_form_select\" method=\"get\" action=\"<?php echo self_admin_url('admin.php?page='.$this->_slug); ?>\" novalidate=\"novalidate\">\n\t\t\t\t<input type=\"hidden\" name=\"page\" value=\"<?php echo $this->_slug; ?>\" />\n\t\t\t\t<table id=\"form_select\" class=\"form-table\">\n\t\t\t\t\t<tbody>\n\t\t\t\t\t<tr valign=\"top\">\n\t\t\t\t\t\t<th scope=\"row\"><label for=\"gform_select\"><?php _e('Form', 'gf_bulk_actions_pro'); ?>:</label></th>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<select name=\"gform_id\" id=\"gform_select\">\n\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t$forms = GFAPI::get_forms();\n\t\t\t\t\t\t\t\t$selected_id = (isset($_REQUEST['gform_id']) && !empty($_REQUEST['gform_id'])) ? $_REQUEST['gform_id'] : $forms[0]['id'];\n\t\t\t\t\t\t\t\t$selected_form = NULL;\n\t\t\t\t\t\t\t\tforeach($forms as $form): ?>\n\t\t\t\t\t\t\t\t<option <?php if ($form['id'] == $selected_id) { $selected_form = $form; echo 'selected=\"selected\"'; } ?> value=\"<?php echo $form['id']; ?>\"><?php echo $form['title']; ?></option>\n\t\t\t\t\t\t\t\t<?php endforeach; ?>\n\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td align=\"right\">\n\t\t\t\t\t\t\t<a href=\"<?php echo self_admin_url('admin.php?page=gf_edit_forms&id='.$selected_form['id']); ?>\" class=\"button button-secondary button-large\" id=\"return_form\"><?php _e('Form Editor', 'gf_bulk_actions_pro'); ?></a>&nbsp;\n\t\t\t\t\t\t\t<a href=\"<?php echo site_url('/?gf_page=preview&id='.$selected_form['id']); ?>\" class=\"button button-secondary button-large\" id=\"preview_form\" target=\"_blank\"><?php _e('Preview Form', 'gf_bulk_actions_pro'); ?></a> &nbsp;\n\t\t\t\t\t\t\t<button type=\"button\" class=\"button button-primary button-large\" id=\"update_form\"><?php _e('Update Form', 'gf_bulk_actions_pro'); ?></button>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t</tbody>\n\t\t\t\t</table>\n\t\t\t</form>\n\t\t\t<form id=\"gf_bulk_actions_form_edit\" method=\"post\" action=\"<?php echo self_admin_url('admin.php?page='.$this->_slug); ?>\" novalidate=\"novalidate\">\n\t\t\t\t<input type=\"hidden\" name=\"page\" value=\"<?php echo $this->_slug; ?>\" />\n\t\t\t\t<input type=\"hidden\" name=\"bulk_edit_action\" value=\"update\" />\n\t\t\t\t<input type=\"hidden\" name=\"gform_id\" value=\"<?php echo $selected_form['id']; ?>\" />\n\t\t\t\t<input type=\"hidden\" name=\"updated_fields\" value=\"\" />\n\t\t\t</form>\n\t\t\t<div id=\"actions\">\n\t\t\t\t<ul class=\"subsubsub\" id=\"selection_options\">\n\t\t\t\t\t<li><?php _e('Select', 'gf_bulk_actions_pro'); ?>: </li>\n\t\t\t\t\t<li><a href=\"javascript:void(0);\" id=\"select_all\"><?php _e('All', 'gf_bulk_actions_pro'); ?></a> |</li>\n\t\t\t\t\t<li><a href=\"javascript:void(0);\" id=\"select_invert\"><?php _e('Invert', 'gf_bulk_actions_pro'); ?></a> |</li>\n\t\t\t\t\t<li><a href=\"javascript:void(0);\" id=\"select_none\"><?php _e('None', 'gf_bulk_actions_pro'); ?></a></li>\n\t\t\t\t</ul>\n\t\t\t\t<ul class=\"subsubsub\" id=\"action_options\">\n\t\t\t\t\t<li><button type=\"button\" id=\"edit_fields\" class=\"button button-secondary button-large\" disabled=\"disabled\"><span class=\"dashicons dashicons-edit\"></span> <span><?php _e('Edit', 'gf_bulk_actions_pro'); ?></span></button></li>\n\t\t\t\t\t<li><button type=\"button\" id=\"duplicate_fields\" class=\"button button-secondary button-large\" disabled=\"disabled\"><span class=\"dashicons dashicons-welcome-add-page\"></span> <span><?php _e('Duplicate', 'gf_bulk_actions_pro'); ?></span></button></li>\n\t\t\t\t\t<li><button type=\"button\" id=\"clone_fields\" class=\"button button-secondary button-large\" disabled=\"disabled\"><span class=\"dashicons dashicons-admin-page\"></span> <span><?php _e('Clone', 'gf_bulk_actions_pro'); ?></span></button></li>\n\t\t\t\t\t<li><button type=\"button\" id=\"copy_fields\" class=\"button button-secondary button-large\" disabled=\"disabled\"><span class=\"dashicons dashicons-redo\"></span> <span><?php _e('Copy to form', 'gf_bulk_actions_pro'); ?></span></button></li>\n\t\t\t\t\t<li><button type=\"button\" id=\"delete_fields\" class=\"button button-secondary button-large\" disabled=\"disabled\"><span class=\"dashicons dashicons-trash\"></span> <span><?php _e('Delete', 'gf_bulk_actions_pro'); ?></span></button></li>\n\t\t\t\t</ul>\n\t\t\t\t<div id=\"options\">\n\t\t\t\t\t<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td valign=\"middle\">\n\t\t\t\t\t\t\t\t<i><?php _e('Use Ctrl (Cmd) + Click to select multiple fields individually, or Shift + Click to select a range', 'gf_bulk_actions_pro'); ?></i><br/>\n\t\t\t\t\t\t\t\t<i><?php _e('Double-click a field to edit individual labels. Press Enter to finish editing', 'gf_bulk_actions_pro'); ?></i>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td valign=\"middle\" align=\"right\">\n\t\t\t\t\t\t\t\t<span><?php _e('Duplicate/clone placement', 'gf_bulk_actions_pro'); ?>:</span> <label><input type=\"radio\" name=\"duplicate_placement\" value=\"top\" /> <?php _e('Top', 'gf_bulk_actions_pro'); ?></label> &nbsp; <label><input type=\"radio\" name=\"duplicate_placement\" value=\"bottom\" checked=\"checked\" /> <?php _e('Bottom', 'gf_bulk_actions_pro'); ?></label> &nbsp; <label><input type=\"radio\" name=\"duplicate_placement\" value=\"inline\" /> <?php _e('Inline', 'gf_bulk_actions_pro'); ?></label>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t</table>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div id=\"form_fields_wrap\">\n\t\t\t\t<script type=\"text/template\" id=\"fields_copy_template\">\n\t\t\t\t\t<form id=\"gf_bulk_actions_fields_copy\" method=\"post\" action=\"<?php echo self_admin_url('admin.php?page='.$this->_slug); ?>\" novalidate=\"novalidate\">\n\t\t\t\t\t\t<input type=\"hidden\" name=\"bulk_fields_copy_source_form\" id=\"bulk_fields_copy_source_form\" value=\"<?php echo $selected_id; ?>\" />\n\t\t\t\t\t\t<input type=\"hidden\" name=\"bulk_fields_copy_fields\" id=\"bulk_fields_copy_fields\" />\n\t\t\t\t\t\t<select name=\"bulk_fields_copy_target_form\" id=\"bulk_fields_copy_target_form\" multiple>\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\tforeach($forms as $form):\n\t\t\t\t\t\t\t\tif ($form['id'] != $selected_id): ?>\n\t\t\t\t\t\t\t\t\t<option value=\"<?php echo $form['id']; ?>\"><?php echo $form['title']; ?></option>\n\t\t\t\t\t\t\t\t<?php endif;\n\t\t\t\t\t\t\tendforeach; ?>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</form>\n\t\t\t\t</script>\n\t\t\t\t<form id=\"gf_bulk_actions_fields_edit\" method=\"post\" action=\"<?php echo self_admin_url('admin.php?page='.$this->_slug); ?>\" novalidate=\"novalidate\">\n\t\t\t\t\t<div id=\"bulk_fields_edit_mode\">\n\t\t\t\t\t\t<b><?php _e('Edit Mode:', 'gf_bulk_actions_pro'); ?></b> &nbsp; <label><input type=\"radio\" name=\"fields_edit_mode\" value=\"singles\" checked=\"checked\" /> <?php _e('Individual', 'gf_bulk_actions_pro'); ?></label> &nbsp; <label><input type=\"radio\" name=\"fields_edit_mode\" value=\"bulk\" /> <?php _e('Bulk', 'gf_bulk_actions_pro'); ?></label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<table id=\"bulk_fields_edit\" class=\"form-table\">\n\t\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr valign=\"top\">\n\t\t\t\t\t\t\t<th style=\"width:20%;\"><?php _e('Field Label', 'gf_bulk_actions_pro'); ?></th>\n\t\t\t\t\t\t\t<th style=\"width:30%;\"><?php _e('Field Description', 'gf_bulk_actions_pro'); ?></th>\n\t\t\t\t\t\t\t<th style=\"width:20%;\"><?php _e('Admin Label', 'gf_bulk_actions_pro'); ?></th>\n\t\t\t\t\t\t\t<th style=\"width:20%;\"><?php _e('CSS Class', 'gf_bulk_actions_pro'); ?></th>\n\t\t\t\t\t\t\t<th style=\"width:10%; text-align:center;\"><?php _e('Required', 'gf_bulk_actions_pro'); ?> <input type=\"checkbox\" id=\"required_toggle_all\" name=\"required_toggle_all\" value=\"1\" /></th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t<tr valign=\"top\" class=\"bulk\">\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<input type=\"text\" id=\"bulk_fields_label\" name=\"bulk_fields_label\" value=\"\" /><br/>\n\t\t\t\t\t\t\t\t<i><?php _e('Leave empty to keep labels unchanged', 'gf_bulk_actions_pro'); ?></i>\n\t\t\t\t\t\t\t</td>\n <td>\n <textarea id=\"bulk_fields_description\" name=\"bulk_fields_description\"></textarea><br/>\n\t\t\t\t\t\t\t\t<i><?php _e('Leave empty to keep descriptions unchanged', 'gf_bulk_actions_pro'); ?></i>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<input type=\"text\" id=\"bulk_fields_admin_label\" name=\"bulk_fields_admin_label\" value=\"\" /><br/>\n\t\t\t\t\t\t\t\t<i><?php _e('Leave empty to keep admin labels unchanged', 'gf_bulk_actions_pro'); ?></i>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<input type=\"text\" id=\"bulk_fields_cls\" name=\"bulk_fields_cls\" value=\"\" /><br/>\n\t\t\t\t\t\t\t\t<i><?php _e('Custom CSS classes entered here will be appended to all fields', 'gf_bulk_actions_pro'); ?></i>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td align=\"center\">\n\t\t\t\t\t\t\t\t<select id=\"bulk_fields_required\" name=\"bulk_fields_required\">\n\t\t\t\t\t\t\t\t\t<option value=\"unchanged\"><?php _e('Leave unchanged', 'gf_bulk_actions_pro'); ?></option>\n\t\t\t\t\t\t\t\t\t<option value=\"required\"><?php _e('All required', 'gf_bulk_actions_pro'); ?></option>\n\t\t\t\t\t\t\t\t\t<option value=\"not_required\"><?php _e('All not required', 'gf_bulk_actions_pro'); ?></option>\n\t\t\t\t\t\t\t\t</select><br/>\n\t\t\t\t\t\t\t\t&nbsp;\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t<tfoot>\n\t\t\t\t\t\t<tr valign=\"top\">\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<i class=\"important\"><?php _e('These settings will be applied to all selected fields.', 'gf_bulk_actions_pro'); ?></i>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td colspan=\"4\" align=\"right\">\n\t\t\t\t\t\t\t\t<button type=\"button\" id=\"cancel_bulk_fields_edits\" class=\"button button-secondary button-large\"><?php _e('Cancel', 'gf_bulk_actions_pro'); ?></button> &nbsp;\n\t\t\t\t\t\t\t\t<button type=\"button\" id=\"submit_bulk_fields_edits\" class=\"button button-primary button-large\"><?php _e('Done', 'gf_bulk_actions_pro'); ?></button>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tfoot>\n\t\t\t\t\t</table>\n\t\t\t\t</form>\n\n\t\t\t\t<ul id=\"form_fields\" class=\"fields\">\n\t\t\t\t\t<?php\n\t\t\t\t\t$fields = $selected_form['fields'];\n\t\t\t\t\tforeach($fields as $field):\n\t\t\t\t\t\t$field_title = $field['label'];\n\t\t\t\t\t\t$field_class_extra = 'field--'.$field['type'];\n\t\t\t\t\t\tif ($field['type'] == 'page') {\n\t\t\t\t\t\t\t$field_title = '-- Page Break --';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$field_custom_cls = (isset($field['cssClass']) && !empty($field['cssClass'])) ? $field['cssClass'] : \"\";\n\n\t\t\t\t\t\tif ($field->isRequired) {\n\t\t\t\t\t\t\t$field_class_extra = ' field--required';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t?>\n\t\t\t\t\t\t<li class=\"postbox field <?php echo $field_class_extra; ?>\" id=\"field_<?php echo $field['id']; ?>\" data-custom-cls=\"<?php echo $field_custom_cls; ?>\" data-id=\"<?php echo $field['id']; ?>\" data-type=\"<?php echo $field['type']; ?>\" data-admin-label=\"<?php echo $field['adminLabel']; ?>\" data-description=\"<?php echo htmlspecialchars($field['description'], ENT_QUOTES, 'UTF-8'); ?>\">\n\t\t\t\t\t\t\t<label class=\"field__title\"><span class=\"field__title-text\"><?php echo $field_title; ?></span><input type=\"text\" class=\"field__title-input\" name=\"field_<?php echo $field['id']; ?>_title\" value=\"<?php echo $field_title; ?>\" disabled=\"disabled\" /> <span class=\"field__id\">(ID: <?php echo $field['id']; ?>)</span></label>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t<?php endforeach; ?>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<script type=\"text/javascript\">\n\t\t\t\tvar form = <?php echo json_encode($selected_form); ?>;\n\t\t\t</script>\n<?php\n\t}", "title": "" }, { "docid": "83ca4a2db7b3beab727cf8fd48f644f7", "score": "0.5544323", "text": "function elife_front_matter_action_edit_form_submit(&$form, &$form_state) {\n // Nothing.\n}", "title": "" }, { "docid": "019fb8c9c31bcd35074674059599e326", "score": "0.553303", "text": "function on_save_changes() {\n\t\t//user permission check\n\t\tif ( !current_user_can('manage_options') )\n\t\t\twp_die( __('Cheatin&#8217; uh?') );\n\t\t//cross check the given referer\n\t\tcheck_admin_referer('wp-pmanager-general');\n\n\t\t//process here your on $_POST validation and / or option saving\n if(isset($_POST['action'])) {\n if($_POST['action'] == 'save_wp_pmanager_general') {\n if(isset($_POST['drop']) && isset($_POST['delete'])) {\n global $wpdb;\n\n $sql = \"DROP TABLE IF EXISTS \".pmanagerMainTABLE;\n $wpdb->query($sql);\n\n $sql = \"DROP TABLE IF EXISTS \".pmanagerCatTABLE;\n $wpdb->query($sql);\n } else {\n $this->options = get_option(self::PMANAGER_PLUGIN_ID);\n $this->save_content_css();\n $this->save_tabcontrol_css();\n $this->save_tabs_css();\n $this->options['show_cats'] = $_POST['show_cats'];\n update_option(self::PMANAGER_PLUGIN_ID,$this->options);\n }\n } \n }\n\n\t\t//lets redirect the post request into get request (you may add additional params at the url, if you need to show save results\n\t\twp_redirect($_POST['_wp_http_referer']);\n\t}", "title": "" }, { "docid": "892d6d42fcf3a3163f07db137827f0b0", "score": "0.5520505", "text": "public function hooks()\n {\n $this->enqueue_js();\n\n add_action('gform_pre_submission', array($this, 'gform_before_submission'), 5, 1);\n add_action('gform_after_submission', array($this, 'gform_after_submission'), 5, 2);\n\n add_filter('gform_validation', array($this, 'gform_validation_api_call'), 10);\n\n\n add_filter('gform_pre_render', array($this, 'gform_pre_render'), 10);\n //Note: when changing choice values, we also need to use the gform_pre_validation so that the new values are available when validating the field.\n add_filter('gform_pre_validation', array($this, 'gform_pre_render'), 10);\n //Note: when changing choice values, we also need to use the gform_admin_pre_render so that the right values are displayed when editing the entry.\n add_filter('gform_admin_pre_render', array($this, 'gform_pre_render'), 10);\n //Note: this will allow for the labels to be used during the submission process in case values are enabled\n add_filter('gform_pre_submission_filter', array($this, 'gform_pre_render'), 10);\n\n\n add_filter('gform_field_content', array($this, 'gform_add_custom_attr'), 10, 5);\n\n add_filter('gform_disable_notification', array($this, 'gform_disable_notification'), 10, 4);\n add_filter(\"gform_address_types\", array($this, \"address_compatibily_to_api\"), 10, 2);\n\n $this->set_custom_confirmation();\n }", "title": "" }, { "docid": "0c3c2a74a210779b278404b5cc4be70b", "score": "0.55004", "text": "private function check_posted_data() {\n\t\t# the Settings API sanitize is not being called :/\n\t\tif (\n\t\t\t!empty( $_POST )\n\t\t\t&& check_admin_referer( plugin_basename( __FILE__ ) )\n\t\t) {\n if( isset( $_POST[self::$option_name]['ignore'] ) ) {\n update_option( self::$option_name, 'on' );\n $this->options = 'on';\n }\n else {\n delete_option( self::$option_name );\n $this->options = null;\n }\n\n if( isset( $_POST[self::$option_name]['reset'] ) ) {\n $this->reset = false;\n if( file_exists( $this->logpath ) ) {\n $this->reset = true;\n \t\t\tunlink( $this->logpath );\n }\n }\n\t\t}\n }", "title": "" }, { "docid": "1ef4f52b7f988a63a67690962788cf21", "score": "0.54991484", "text": "function submit_entry_form()\n {\n if (!$this->check_access('enter')) {\n return;\n }\n $this->load_lib('Entry', 'na', $this->my_tag);\n $this->entry->submit_entry_form();\n }", "title": "" }, { "docid": "9be699f9cd1176236619de130d07ccad", "score": "0.54876876", "text": "function pps_form_alter(&$form, &$form_state, $form_id) {\n if(substr($form_id, 0, 20) == 'webform_client_form_') { // All webforms\n foreach ($form[\"submitted\"] as $key => $value) {\n if (in_array($value[\"#type\"], array(\"textfield\", \"webform_email\", \"textarea\"))) {\n $form[\"submitted\"][$key]['#attributes'][\"placeholder\"] = t($value[\"#title\"]);\n $form[\"submitted\"][$key]['#title_display'] = 'invisible';\n }\n }\n }\n}", "title": "" }, { "docid": "87a8c633f20b732d65c9fd68e7f1ef38", "score": "0.54816955", "text": "protected function _beforeToHtml()\n\t{\n\t\t$this->_prepareForm();\n\t\t$this->_initFormValues();\n\t\treturn parent::_beforeToHtml();\n\t}", "title": "" }, { "docid": "e28d260f679f3e48def0f4fd47adcec2", "score": "0.5469453", "text": "function preGenerateForm(&$formbuilder)\n {\n parent::preGenerateForm($formbuilder);\n }", "title": "" }, { "docid": "19b685d4ed040733375f09d838eccf54", "score": "0.5462349", "text": "function hmbpm_cc_form()\n{\n return;\n}", "title": "" }, { "docid": "7bcb0718423828de446876d01ea7d219", "score": "0.5456643", "text": "public function start_form()\n {\n $this->process('wpsearchconsole_apply_todo_filter', 'wpsearchconsole_reset_todo_filter'); ?>\n\n <form method=\"post\" action=\"\" enctype=\"multipart/form-data\">\n <div class=\"wp-filter\" style=\"padding: 20px;\">\n <div class=\"alignleft\">\n <fieldset>\n <?php $this->dropdown('priority', get_option('wpsearchconsole_todo_priority'));\n $this->dropdown('category', get_option('wpsearchconsole_todo_categories'));\n $this->dropdown('responsible', $this->authors->user_details());\n $this->dropdown('dates',\n array(\n 0 => __('All Dates', 'wpsearchconsole'),\n 1 => __('Next Day', 'wpsearchconsole'),\n 7 => __('Next Week', 'wpsearchconsole'),\n 15 => __('Next 15 Days', 'wpsearchconsole'),\n 30 => __('Next 30 Days', 'wpsearchconsole'),\n ));\n $this->dropdown('archived', get_option('wpsearchconsole_todo_archived'));\n submit_button(__('Apply Filter', 'wpsearchconsole'), 'secondary', 'wpsearchconsole_apply_todo_filter', false); ?>\n </fieldset>\n </div>\n <div class=\"alignright\">\n <fieldset>\n <a href=\"<?php echo getenv('REQUEST_ADDR'); ?>\"></a>\n <?php submit_button(__('Reset Filter', 'wpsearchconsole'), 'secondary', 'wpsearchconsole_reset_todo_filter', false); ?>\n </fieldset>\n </div>\n </div>\n </form>\n <?php\n }", "title": "" }, { "docid": "c1cd030cebd3a5d7b1d74237c9419c91", "score": "0.5453179", "text": "protected function postProcessDefaultSettingsPage()\n {\n $submitted = false;\n\n foreach (array_keys($this->getDefaultSettingsFormValues()) as $key) {\n if (Tools::isSubmit($key)) {\n $submitted = true;\n Configuration::updateValue($key, Tools::getValue($key));\n }\n }\n\n if ($submitted && empty($this->context->controller->errors)) {\n $this->addConfirmation($this->l('Settings updated'));\n }\n }", "title": "" }, { "docid": "e774bffaee01fcbc27d19ae91c49311d", "score": "0.5452232", "text": "function nlg_overview_page_form_submit($form, $form_state) {\r\n\r\n}", "title": "" }, { "docid": "ca9d92091babfeab54ebfda3dda773de", "score": "0.5445779", "text": "protected function OnPossibleStateChange() {\n \t if (AJAX_REQUEST && $this->hasProperty(\"Text\")) {\n \t agent()->call(\"page.{$this->fName}.setValue\", $this->getProperty(\"Text\"));\n \t }\n \t }", "title": "" }, { "docid": "4e00083f5f682ede88c58c3b1dc41b32", "score": "0.5442027", "text": "function ramlisting_admin_tools_submit($form, &$form_state) {\n\n\n}", "title": "" }, { "docid": "cef612bf231eb60c19e3da0c0886e276", "score": "0.5438004", "text": "function addSubmitIfNecessary() {\n foreach ($this->fields as $key => $value) {\n if ($value['type'] == 'submit') {\n return;\n }\n }\n $this->addSubmit(\"submit\", \"Submit\");\n }", "title": "" }, { "docid": "3f1b06bb84c592732478032c881d0586", "score": "0.54311323", "text": "function options_form(&$form, &$form_state) {\r\r\n parent::options_form($form, $form_state);\r\r\n }", "title": "" }, { "docid": "5473f138f0efe4eea06b961feb4592ba", "score": "0.5424275", "text": "function _onPost() {\n // if action is cancel, call onCancel()\n if(isset($_POST['action']) && $_POST['action'] == 'cancel') {\n $this->onCancel();\n return;\n }\n // otherwise check for errors\n if(form_get_errors()) { return; } // don't do anything if there are errors\n // grab post data if everything looks good\n $this->postValues = $this->_getPostValues();\n if(count($this->postValues) > 0) {\n $this->onPost();\n }\n }", "title": "" }, { "docid": "2b87fc6a66f4fe66e36c874a6875b85d", "score": "0.54079634", "text": "function dh_wspadoption_form_submit(&$form, &$form_state) {\n form_load_include($form_state, 'inc', 'entity', 'includes/entity.ui');\n form_load_include($form_state, 'inc', 'dh', 'dh.admin');\n $dh_adminreg_feature = entity_ui_form_submit_build_entity($form, $form_state);\n if (trim($dh_adminreg_feature->admincode) == '') {\n $dh_adminreg_feature->admincode = str_replace(' ', '_', strtolower($dh_adminreg_feature->name ));\n }\n $dh_adminreg_feature->save();\n}", "title": "" }, { "docid": "02dfdf10e101cce6f47f0b40b2e2a5fd", "score": "0.54067063", "text": "function submit() {\n\t\tglobal $wgOut;\n\t\tif( !$this->mPopulated ) {\n\t\t\t$wgOut->addWikiText( wfMsg( 'hiderevision-norevisions' ) );\n\t\t\t$this->showForm();\n\t\t} elseif( empty( $this->mReason ) ) {\n\t\t\t$wgOut->addWikiText( wfMsg( 'hiderevision-noreason' ) );\n\t\t\t$this->showForm();\n\t\t} else {\n\t\t\t$dbw = wfGetDB( DB_MASTER );\n\t\t\t$success = $this->hideRevisions( $dbw );\n\t\t\t$wgOut->addWikiText( '* ' . implode( \"\\n* \", $success ) );\n\t\t}\n\t}", "title": "" }, { "docid": "9d065b04c6edbb9d73f9e5f9697c78c4", "score": "0.53978527", "text": "public function fix_form_actions() {\n\t if($this->is_our_context()) {\n\t if(isset($_REQUEST['_wp_http_referer'])) {\n $query = parse_url($_REQUEST['_wp_http_referer']);\n $query = $query['query'];\n parse_str($query, $query);\n \n $query = array_merge($_REQUEST, $query);\n } else {\n $query = $_REQUEST;\n }\n ?>\n <script type=\"text/javascript\">\n // send image variables back to opener\n WPImageFormField = WPImageFormField || {};\n \n if( WPImageFormField.fixFormActions ){\n WPImageFormField.fixFormActions({\n 'wp_image_field': 1,\n 'preview_size' : '<?php echo addslashes($query['preview_size']) ?>',\n 'insert_text' : '<?php echo addslashes($query['insert_text']) ?>'\n });\n }\n </script>\n <?php\n }\n\t}", "title": "" }, { "docid": "3065013aa6dfb5e64a304018be3eaae1", "score": "0.5378616", "text": "function defaultPage(){\n\tglobal $CONSTANT_PROFILE_STATUS, $fields, $profile_table, $error,\n\t$CONSTANT_PROFILE_SEX, $CONSTANT_PROFILE_INTERESTEDINSEX;\n\t$collegeinfoclass = new collegeinfo(AUTH_COLLEGEID);\nif (!empty($error)){\n\techo '<p align=\"left\"><font class=\"error\"><b>Error: </b>'.$error.'</font></p>';\n}\n?>\n<form method=\"post\" action=\"/editp/general?submit=1\" style=\"margin:0px;padding:0px;\">\n<?php ob_start('funcs_fillForm');?>\n<table cellpadding=\"0\" cellspacing=\"5\" align=\"left\">\n\t<tr><td colspan=\"2\"><h1><span class=\"edtHdr\">School</span></h1></td></tr>\n\t<tr>\n\t\t<td align=\"right\" width=\"120\" nowrap >Current Status:</td>\n\t\t<td align=\"left\">\n\t\t\t<select name=\"<?=$profile_table->field_status?>\">\n\t\t\t<option value=\"\"/>\n\t\t\t<?php foreach ($CONSTANT_PROFILE_STATUS as $key => $value):?>\n\t\t\t\t<option value=\"<?=$key?>\"><?=$value?></option>\n\t\t\t<?php endforeach;?>\n\t\t\t</select>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align=\"right\" width=\"120\">Year:</td>\n\t\t<td align=\"left\">\n\t\t<?php $currentYear = date('Y',mktime());?>\n\t\t<select name=\"<?=$profile_table->field_year?>\">\n\t\t<option value=\"\"/>\n\t\t<?php for ($i=0;$i<5;$i++):?>\n\t\t\t<option value=\"<?=($currentYear+$i)?>\"><?=($currentYear+$i)?></option>\n\t\t<?php endfor;?>\n\t\t</select>\n\t\t</td>\n\t</tr>\t\n\t<tr>\n\t\t<td align=\"right\" width=\"120\">Major: </td>\n\t\t<td align=\"left\">\n\t\t<?php\n\t\t$majorList = $collegeinfoclass->getMajorList();\n\t\t?>\n\t\t<select name=\"<?=$profile_table->field_major?>\">\n\t\t<option value=\"\"/>\n\t\t<?php foreach ($majorList as $key => $value):?>\n\t\t\t<option value=\"<?=$key?>\"><?=ucwords($value)?></option>\n\t\t<?php endforeach;?>\n\t\t</select>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align=\"right\" width=\"120\" nowrap>Second Major: </td>\n\t\t<td align=\"left\">\n\t\t<select name=\"<?=$profile_table->field_majorsecond?>\">\n\t\t<option value=\"\"/>\n\t\t<?php foreach ($majorList as $key => $value):?>\n\t\t\t<option value=\"<?=$key?>\"><?=ucwords($value)?></option>\n\t\t<?php endforeach;?>\n\t\t</select>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align=\"right\" width=\"120\">House: </td>\n\t\t<td align=\"left\">\n\t\t<?php\n\t\t$houseList = $collegeinfoclass->getHouseList();\n\t\t?>\n\t\t<select name=\"<?=$profile_table->field_house?>\">\n\t\t<option value=\"\"/>\n\t\t<?php foreach ($houseList as $key => $value):?>\n\t\t\t<option value=\"<?=$key?>\"><?=ucwords($value)?></option>\n\t\t<?php endforeach;?>\n\t\t</select>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align=\"right\">High School:</td>\n\t\t<td><input type=\"text\" name=\"<?=$profile_table->field_hs?>\" size=\"30\" maxlength=\"<?=$profile_table->field_hs_length?>\"></td>\n\t</tr>\n\t<tr>\n\t\t<td align=\"right\" width=\"120\" nowrap>Building, Room #:</td>\n\t\t<td align=\"left\">\n\t\t\t<input type=\"text\" name=\"<?=$profile_table->field_room?>\" size=\"3\">\n\t\t</td>\n\t</tr>\n\t<tr><td colspan=\"2\"><h1><span class=\"edtHdr\">General</span></h1></td></tr>\n\t<tr valign=\"top\">\n\t\t<td align=\"right\">About me:</td>\n\t\t<td>\n\t\t<textarea name=\"<?=$profile_table->field_aboutme?>\" cols=\"40\" rows=\"6\"></textarea>\n\t\t</td>\n\t</tr>\n\t<tr valign=\"top\">\n\t\t<td align=\"right\">My Interests:</td>\n\t\t<td>\n\t\t<textarea name=\"<?=$profile_table->field_interests?>\" cols=\"40\" rows=\"6\"></textarea><br>\n\t\t<font style=\"font-size:10px\">separate by commas</font>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align=\"right\">Sex:</td>\n\t\t<td>\n\t\t<select name=\"<?=$profile_table->field_sex?>\">\n\t\t<option value=\"\"/>\n\t\t<option value=\"1\">male</option>\n\t\t<option value=\"2\">female</option>\n\t\t</select>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=\"2\" align=\"center\">\n\t\t<input type=\"submit\" class=\"submitButton\" style=\"background-color:#6699CC;\" value=\"submit\">\n\t\t</td>\n\t</tr>\n</table>\n<?php ob_end_flush();?>\n</form>\n<?php }", "title": "" }, { "docid": "02785321a5a1f1cbbc8f54b9bf5efcd6", "score": "0.53786117", "text": "function mwf_frontend_ajax_form_scripts() {\n?>\n<script type=\"text/javascript\">\n jQuery(function($){\n $('#filter select').change(function() {\n var filter = $('#filter');\n // console.log(filter.serialize());\n $.ajax({\n url:filter.attr('action'),\n data:filter.serialize(), // form data\n type:filter.attr('method'), // POST\n beforeSend:function(xhr){\n filter.find('button').text('Processing...'); // changing the button label\n },\n success:function(data){\n filter.find('button').text('Apply filter'); // changing the button label back\n $('ul.products').html(data); // insert data\n }\n });\n return false;\n });\n });\n</script>\n<?php }", "title": "" }, { "docid": "f10a38e3f16fab306e3f35aa850f0202", "score": "0.5360884", "text": "function culturefeed_search_ui_admin_sort_order_settings_form_submit(&$form, &$form_state) {\n\n if (!empty($form_state['values']['sort_options'])) {\n\n // Don't save empty options.\n foreach ($form_state['values']['sort_options'] as $type => $options) {\n\n $default_sort = $form_state['values']['sort_options'][$type]['default'];\n foreach ($options as $key => &$option) {\n\n if ($key == 'default') {\n continue;\n }\n\n if (empty($option['value'])) {\n unset($options[$key]);\n }\n }\n\n variable_set('culturefeed_search_sortoptions_' . $type, $options);\n }\n }\n}", "title": "" }, { "docid": "e731972b6c060304be4fcc3b1cb4fdf7", "score": "0.5356726", "text": "protected function onSubmit()\r {\r\r if ($this->dataId == null) {\r $this->onSave();\r } else {\r $this->onUpdate();\r }\r\r }", "title": "" }, { "docid": "993ab34e79c5c7589caf45f703dc7d6a", "score": "0.53525525", "text": "function form () {\n\t}", "title": "" }, { "docid": "91adae8f5d81cf583290ae3069be0e93", "score": "0.5348238", "text": "function formActions()\n {\n $this->submit('submit', _('Save'));\n }", "title": "" }, { "docid": "03940bc341ef8266fc61a6ecbe0eff89", "score": "0.53445137", "text": "function onBeforeBrowse()\n\t{\n\t\t$this->getProfileIdAndName();\n\n\t\t// Get Sort By fields\n\t\t$this->sortFields = [\n\t\t\t'id' => JText::_('JGRID_HEADING_ID'),\n\t\t\t'description' => JText::_('COM_AKEEBA_PROFILES_COLLABEL_DESCRIPTION'),\n\t\t];\n\n\t\tparent::onBeforeBrowse();\n\n\t\tJHtml::_('behavior.multiselect');\n\t\tJHtml::_('dropdown.init');\n\t}", "title": "" }, { "docid": "e8cf7a620206012c2d66967f0570102c", "score": "0.5343389", "text": "public function setForm() {\n\t\t$this->setMethod('post');\n\t\t$this->addApplicantAddress();\n\t\t$this->addRent();\n\t\t$this->addApartmentInformation();\n\t\t$this->addReasonForLeaving();\n\n\t\tif( $this->getIsSkippable() ) {\n\t\t\t$this->addSkipButton();\n\t\t\t$this->setLegend('previousApplicantAddress');\n\t\t} else {\n\t\t\t$this->setLegend('currentApplicantAddress');\n\t\t}\n\t\t//\tTicket 277 , add a back button\n\t\t//$this->addBackButton();\n\t\t$this->addSubmitButton();\n\t\t$this->setDisplayGroup();\n\t\t$this->setFormTranslator();\n\t}", "title": "" }, { "docid": "499cb3c63c40a84ba2188ffb2160ada5", "score": "0.5331344", "text": "function handle_post()\r\n\t{\r\n\t\t// if current user does not have administrator rights, then DIE\r\n\t\tif(!current_user_can('administrator')) wp_die('<strong>ERROR</strong>: Not an Admin!');\r\n\t\t\r\n\t\t// verify nonce, if not verified, then DIE\r\n\t\tif(isset($_POST[\"_{$this->plugin['nonce']}\"])) wp_verify_nonce($_POST[\"_{$this->plugin['nonce']}\"], $this->plugin['nonce']) || wp_die('<strong>ERROR</strong>: Incorrect Form Submission, please try again.');\r\n\t\telseif(isset($_POST[\"reset\"])) wp_verify_nonce($_POST[\"reset\"], 'reset_nonce') || wp_die('<strong>ERROR</strong>: Incorrect Form Submission, please try again.');\r\n\t\t\r\n\t\t// resets options to default values\r\n\t\tif(isset($_POST[\"reset\"])) return $this->default_options();\r\n\t\t\r\n\t\t// load up the current options from the database\r\n\t\t$this->LoadOptions();\t\t\r\n\t\t\r\n\t\t//Process Checkbox\r\n\t\tforeach (array('search_noindex', 'search_nofollow', 'enabled', 'category_nofollow', 'category_noindex') as $k)$this->options[$k] = ((!isset($_POST[\"{$k}\"])) ? '0' : '1');\r\n\r\n\t\t// Save code and options arrays to database\r\n\t\t$this->SaveOptions();\r\n\t}", "title": "" }, { "docid": "583c0d5f0f452e6f475e61bb581d2270", "score": "0.5321616", "text": "function ggj_og_access_settings_form_submit() {\n // Refresh all cached access control.\n node_access_needs_rebuild(TRUE);\n menu_rebuild();\n}", "title": "" }, { "docid": "8cba217046e6aa8021f912603fc992ad", "score": "0.5321107", "text": "function media_admin_config_browser_pre_submit(&$form, &$form_state) {\n if (!$form_state['values']['media_dialog_theme']) {\n variable_del('media_dialog_theme');\n unset($form_state['values']['media_dialog_theme']);\n }\n}", "title": "" }, { "docid": "728d5fb3676761431e99f33fe4c7e49c", "score": "0.5315772", "text": "function init()\r\n {\r\n parent::init();\r\n\r\n $this->input->disable=!$this->_filterinput;\r\n $submitted = $this->input->{$this->Name};\r\n if (!is_object($submitted)) $submitted = $this->input->{$this->Name.'_hidden'};\r\n $this->input->disable=false;\r\n\r\n // Allow the OnSubmit event to be fired because it is not\r\n // a mouse or keyboard event.\r\n if ($this->_onsubmit != null && is_object($submitted))\r\n {\r\n $this->callEvent('onsubmit', array());\r\n }\r\n\r\n $submitEvent = $this->input->{$this->readJSWrapperHiddenFieldName()};\r\n\r\n if (is_object($submitEvent) && $this->_enabled == 1)\r\n {\r\n // check if the a click event has been fired\r\n if ($this->_onclick != null && $submitEvent->asString() == $this->readJSWrapperSubmitEventValue($this->_onclick))\r\n {\r\n $this->callEvent('onclick', array());\r\n }\r\n // check if the a double-click event has been fired\r\n if ($this->_ondblclick != null && $submitEvent->asString() == $this->readJSWrapperSubmitEventValue($this->_ondblclick))\r\n {\r\n $this->callEvent('ondblclick', array());\r\n }\r\n }\r\n }", "title": "" }, { "docid": "ace4a8b7efd635d6019305e9e4e730c7", "score": "0.5315046", "text": "function committee_committee_form_submit($form, &$form_state) {\n // Callback specified for the \"submit\" button\n //orgright_debug_msg('committee','Fn: committee_committee_form_submit');\n // Make sure that this node is neither promoted nor sticky\n $form_state['values']['promote'] = 0;\n $form_state['values']['sticky'] = 0;\n // Set the redirection\n $form_state['redirect'] = $form['#goto'];\n}", "title": "" }, { "docid": "a7bce9b6bafa92872406892e00726697", "score": "0.53039277", "text": "function mollom_admin_configure_form_submit($form, &$form_state) {\r\n $mollom_form = $form_state['values']['mollom'];\r\n // Merge in form information from $form_state.\r\n $mollom_form += $form_state['storage']['mollom_form'];\r\n\r\n // Only store a list of enabled textual analysis checks.\r\n $mollom_form['checks'] = array_keys(array_filter($mollom_form['checks']));\r\n // Prepare selected fields for storage.\r\n $enabled_fields = array();\r\n foreach (array_keys(array_filter($mollom_form['enabled_fields'])) as $field) {\r\n $enabled_fields[] = rawurldecode($field);\r\n }\r\n $mollom_form['enabled_fields'] = $enabled_fields;\r\n\r\n $status = mollom_form_save($mollom_form);\r\n if ($status === SAVED_NEW) {\r\n drupal_set_message(t('The form protection has been added.'));\r\n }\r\n else {\r\n drupal_set_message(t('The form protection has been updated.'));\r\n }\r\n\r\n unset($form_state['storage']);\r\n $form_state['redirect'] = 'admin/settings/mollom';\r\n}", "title": "" }, { "docid": "0ae7f568cbe660f132f7bad0af345f4d", "score": "0.529834", "text": "function pre_edit_form( $tag, $taxonomy ) {\n\t\tadd_action( $taxonomy . '_edit_form_fields', array( $this, 'edit_form' ), 10, 2 );\n\t}", "title": "" }, { "docid": "c0409e55ed1d1e125d26b2d8f67f8d1f", "score": "0.5289756", "text": "protected function addOnSubmitJavaScriptCode()\n {\n $onSubmitCode = [];\n $onSubmitCode[] = 'if (RTEarea[' . GeneralUtility::quoteJSvalue($this->domIdentifier) . ']) {';\n $onSubmitCode[] = 'document.editform[' . GeneralUtility::quoteJSvalue($this->data['parameterArray']['itemFormElName']) . '].value = RTEarea[' . GeneralUtility::quoteJSvalue($this->domIdentifier) . '].editor.getHTML();';\n $onSubmitCode[] = '} else {';\n $onSubmitCode[] = 'OK = 0;';\n $onSubmitCode[] = '};';\n $this->resultArray['additionalJavaScriptSubmit'][] = implode(LF, $onSubmitCode);\n }", "title": "" }, { "docid": "969075ba262c599e599ad5b886cff613", "score": "0.52891886", "text": "private function handleFormValues() {\n\t\t// before saving the current values. this is needed because not checking\n\t\t// a previously selected option may mean it is not included in the submitted\n\t\t// form values.\n\t\t$page = model_Event::getPageById($this->event, $this->pageId);\n\t\tforeach($page['sections'] as $section) {\n\t\t\tif(model_Section::containsRegOptions($section)) {\n\t\t\t\tforeach($section['content'] as $group) {\n\t\t\t\t\t$this->clearRegOptionGroupSessionValue($group);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tforeach($_REQUEST as $key => $value) {\n\t\t\tif(strpos($key, model_ContentType::$REG_TYPE.'_') === 0) {\n\t\t\t\t$this->setRegTypeValue($value);\n\t\t\t}\n\t\t\telse if(strpos($key, model_ContentType::$CONTACT_FIELD.'_') === 0) {\n\t\t\t\t$this->setContactFieldValue($key, $value);\n\t\t\t}\n\t\t\telse if(strpos($key, model_ContentType::$REG_OPTION.'_') === 0) {\n\t\t\t\t$this->setRegOptionValue($key, $value);\n\t\t\t}\n\t\t\telse if(strpos($key, model_ContentType::$VAR_QUANTITY_OPTION.'_') === 0) {\n\t\t\t\t$this->setVariableQuantityValue($key, $value);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "444e5dc17facf022f1c20d7b8da6690a", "score": "0.5282438", "text": "function emt_webform_optin_form_submit($form, $form_state) {\n $values = $form_state['values'];\n db_delete('emt')\n ->condition('eid', $values['eid'])\n ->execute();\n db_insert('emt')\n ->fields(array(\n 'eid' => $values['eid'],\n 'nid' => $values['nid'],\n 'type' => 'optin',\n 'value' => serialize(array(\n 'component' => $values['component'],\n 'custom' => $values['custom'],\n 'component_or_custom' => $values['component_or_custom'],\n )),\n ))\n ->execute();\n drupal_goto('node/'.$values['nid'].'/webform/emt');\n}", "title": "" }, { "docid": "56e3ab7f99479a8da2bd8d5665c124d1", "score": "0.5279929", "text": "function gravityforms_admin_page() {\n \n\techo \"<div style='width: 60%'>\";\n\techo \"<h2><span style='font-size: 20px;' class='dashicons dashicons-info'></span> Need help? Use the handy form below and let me know how I can assist you!</h2>\";\n \n\tgravity_form_enqueue_scripts( 2, true ); // Enqueue form scripts (only for form with ID of 2)\n \n\tgravity_form( 2, false, true, false, null, false ); // Output a form with an ID of 2\n \n\techo \"</div>\";\n}", "title": "" }, { "docid": "485a7b4aa949515af600fd6fc099b6a0", "score": "0.52743375", "text": "function editor_form_submit(&$context, $values) {\n // Merge existing values in from non-active conditions.\n $existing = $this->fetch_from_context($context, 'values');\n $values += !empty($existing) ? $existing : array();\n\n ksort($values);\n\n // Editor forms are generally checkboxes -- do some checkbox processing.\n return drupal_map_assoc(array_keys(array_filter($values)));\n }", "title": "" }, { "docid": "25a82d6a85b863cfa135d08177725677", "score": "0.5273887", "text": "protected function _beforeToHtml()\n {\n $this->_prepareForm();\n $this->_initFormValues();\n return parent::_beforeToHtml();\n }", "title": "" }, { "docid": "439fbce72d891540d3a3ad630696d531", "score": "0.5272727", "text": "function aloha_admin_submit($form, &$form_state) {\n\n // Check if submit button was pressed and rebuild the functionality.\n // We must use \"clicked_button\" becaus values['op'] was unset by\n // system_settings_form_submit.\n $op = isset($form_state['clicked_button']['#value']) ? $form_state['clicked_button']['#value'] : '';\n if ($op == t('Save configuration')) {\n drupal_clear_js_cache();\n }\n}", "title": "" }, { "docid": "d658f7e4b7b2e0aaadd2acd9e9710e85", "score": "0.52722895", "text": "function wpcf_init(){\n\t// put the below into a function and add checks all sections (especially radio buttons) have a valid choice (i.e. no section is blank)\n\t// this is primarily to check newly added options have correct initial values\n\t$tmp = get_option('wpcf_options');\n\tif(!$tmp['rdo_strict_filtering'])\n\t{ // check strict filtering option has a starting value\n\t\t$tmp[\"rdo_strict_filtering\"] = \"strict_off\";\n\t\tupdate_option('wpcf_options', $tmp);\n\t}\n\tregister_setting( 'wpcf_plugin_options', 'wpcf_options', 'wpcf_validate_options' );\n\twpcf_legacy();\n}", "title": "" }, { "docid": "693f799848bcf3479d325875b804fb51", "score": "0.52694845", "text": "abstract protected function getDefaultFormAction();", "title": "" }, { "docid": "590b7901b48a55999926aab07539a6c5", "score": "0.52553254", "text": "function commerce_avatax_general_settings_form_submit($form, &$form_state) {\n commerce_avatax_flush_caches();\n}", "title": "" }, { "docid": "bd5499c448616677ee8f5a5ae93b2850", "score": "0.52539", "text": "function appthemes_before_comments_form() {\n\tdo_action( 'appthemes_before_comments_form' );\n}", "title": "" }, { "docid": "b107f6f4273f1877f393c1bb0bd88aa5", "score": "0.52519095", "text": "protected function _form() {\n\t\t?>\n\t\t\t<form method=\"post\" action=\"<?php echo esc_attr( remove_query_arg( array( 'updated' ) ) ) ?>\" class=\"qsot-ajax-form\">\n\t\t\t\t<input type=\"hidden\" name=\"_n\" value=\"<?php echo esc_attr( wp_create_nonce( 'do-qsot-admin-report-ajax' ) ) ?>\" />\n\t\t\t\t<input type=\"hidden\" name=\"sa\" value=\"<?php echo esc_attr( $this->slug ) ?>\" />\n\n\t\t\t\t<?php $this->form() ?>\n\t\t\t</form>\n\t\t<?php\n\t}", "title": "" }, { "docid": "452b97156e79ee6a164c69a35d71b82e", "score": "0.5250112", "text": "function widget_pzdc_search_form_options_form() {\n global $PraizedCommunity;\n $PraizedCommunity->widget_search_form_options_form();\n }", "title": "" }, { "docid": "c8796d6e9bd83efdc238189aa8be86fe", "score": "0.5248335", "text": "protected function alterForm( HTMLForm $form ) {\n\t\tif ( $this->type === null\n\t\t\t|| ( in_array( $this->type, [ 'rev', 'log', ] ) && $this->id === '0' )\n\t\t) {\n\t\t\t$form->suppressDefaultSubmit( true );\n\t\t} else {\n\t\t\t$form->setSubmitText( $this->msg( 'thanks-submit' )->escaped() );\n\t\t}\n\t}", "title": "" }, { "docid": "38c7e95c54e362ffc4272343734dac20", "score": "0.5245713", "text": "function options_form_submit($values) {\n return $values;\n }", "title": "" }, { "docid": "7d3bd2da082b794de7e68ac95822eef3", "score": "0.5243905", "text": "function restapi_admin_form_submit($form, &$form_state) {\n\n // Ensure the menu system picks up the changes due to the prefix update.\n if (!empty($form_state['storage']['restapi_url_prefix_changed'])) {\n menu_rebuild();\n }\n\n}", "title": "" }, { "docid": "c90e24473aa74a5f351e19d7f9d787a9", "score": "0.52325505", "text": "public function on_start()\n {\n // This will prevent the submission from saving and sending the email more than once...\n $_SESSION[$this->config->formName]['sent'] = FALSE;\n }", "title": "" }, { "docid": "3f44a5d69a844026928e69571710bc05", "score": "0.5232461", "text": "function javascript_libraries_default_form_submit($form, &$form_state) {\n $library_states = array_filter($form_state['values']['enable']);\n // Save the values from the default library form.\n variable_set('javascript_libraries_drupal_libraries', $library_states);\n drupal_set_message(t('Your settings have been saved.'));\n}", "title": "" }, { "docid": "ea778b5318250c094aab332b3ed71d1e", "score": "0.5231672", "text": "function options_form(&$form, &$form_state) {\n parent::options_form($form, $form_state);\n }", "title": "" }, { "docid": "ea778b5318250c094aab332b3ed71d1e", "score": "0.5231672", "text": "function options_form(&$form, &$form_state) {\n parent::options_form($form, $form_state);\n }", "title": "" }, { "docid": "d82f1bd26820270738ba337789498f5e", "score": "0.5225535", "text": "function cnapi_browse_filter_what_production_form_submit($form, &$form_state) {\n // functionality, so we override any static destination set in the request,\n // for example by drupal_access_denied() or drupal_not_found()\n // (see http://drupal.org/node/292565).\n if (isset($_GET['destination'])) {\n unset($_GET['destination']);\n }\n\n // initialising the request object with the event context\n $request = cnapi_ui_get_active_request();\n\n cnapi_browse_process_form_values($request, $form_state['values']);\n\n cnapi_ui_goto($request);\n}", "title": "" }, { "docid": "a48c8966a008cb521b309594d4b5b1cc", "score": "0.521851", "text": "function kc_options_do_page() {\n\n\tif (! isset($_REQUEST['settings-updated']))\n\t\t$_REQUEST['settings-updated'] = false;\n\t?>\n\t<div class=\"wrap\">\n\t\t<?php screen_icon(); echo \"<h2>\".get_current_theme().__(' Theme Options', 'kaleidos-chaos').\"</h2>\"; ?>\n\n\t\t<?php if (false !== $_REQUEST['settings-updated']) : ?>\n\t\t<div class=\"updated fade\"><p><strong><?php _e('Options saved', 'kaleidos-chaos'); ?></strong></p></div>\n\t\t<?php endif; ?>\n\n\t\t<form method=\"post\" action=\"options.php\">\n\t\t\t<?php settings_fields('kc_theme_options'); ?>\n\t\t\t<?php $options = get_option('kc_theme_options'); ?>\n\n\t\t\t<table class=\"form-table\">\n\n\t\t\t\t<?php\n\t\t\t\t/**\n\t\t\t\t * A sample text input option\n\t\t\t\t */\n\t\t\t\t?>\n\t\t\t\t<tr valign=\"top\"><th scope=\"row\"><label class=\"description\" for=\"kc_theme_options[googleanalytics]\"><?php _e('Google Analytics Key', 'kaleidos-chaos'); ?></label></th>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<input id=\"kc_theme_options[googleanalytics]\" class=\"regular-text\" type=\"text\" name=\"kc_theme_options[googleanalytics]\" value=\"<?php esc_attr_e($options['googleanalytics']); ?>\" />\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t\t<p class=\"submit\">\n\t\t\t\t<input type=\"submit\" class=\"button-primary\" value=\"<?php _e('Save Options', 'kaleidos-chaos'); ?>\" />\n\t\t\t</p>\n\t\t</form>\n\t</div>\n\t<?php\n}", "title": "" }, { "docid": "a81e3840d2ff875048c17f8d56c3ce80", "score": "0.5212291", "text": "protected function _preSave() {\n\t\tif (isset($GLOBALS[Tinhte_XenTag_Constants::GLOBALS_CONTROLLERADMIN_FORUM_SAVE])) {\n\t\t\t$GLOBALS[Tinhte_XenTag_Constants::GLOBALS_CONTROLLERADMIN_FORUM_SAVE]->Tinhte_XenTag_actionSave($this);\n\t\t}\n\t\t\n\t\treturn parent::_preSave();\n\t}", "title": "" }, { "docid": "6527ea84590bb21644db554a5ec9294e", "score": "0.5209498", "text": "function TampilkanMdlGrp() {\r\n//function GetOption2($_table, $_field, $_order='', $_default='', $_where='', $_value='', $not=0) {\r\n $opt = GetOption2('mdlgrp', \"concat(Urutan, '. ', Nama)\", 'Urutan', $_SESSION['mdlgrp'], \"Accounting = 'N'\", 'MdlGrpID');\r\n echo \"<p><table class=box cellspacing=1 cellpadding=4>\r\n <form action='?' method=POST>\r\n <input type=hidden name='mnux' value='sysmod'>\r\n <input type=hidden name='token' value='DftrMdl'>\r\n <tr><td class=inp1>Group Modul</td><td class=ul><select name='mdlgrp' onChange=\\\"this.form.submit()\\\">$opt</select></td></tr>\r\n </form></table></p>\";\r\n}", "title": "" }, { "docid": "f9ca895b84395bd10f833f8795a21641", "score": "0.5194106", "text": "function dh_needstatement_form_submit(&$form, &$form_state) {\n form_load_include($form_state, 'inc', 'entity', 'includes/entity.ui');\n form_load_include($form_state, 'inc', 'dh', 'dh.admin');\n $dh_adminreg_feature = entity_ui_form_submit_build_entity($form, $form_state);\n if (trim($dh_adminreg_feature->admincode) == '') {\n $dh_adminreg_feature->admincode = str_replace(' ', '_', strtolower($dh_adminreg_feature->name ));\n }\n $dh_adminreg_feature->save();\n}", "title": "" }, { "docid": "dc8de41ea9623d1e7c41b1c2a1cba933", "score": "0.51931614", "text": "function mkb_eval_conflict_missing_form_submit($form, &$form_state) {\r\n\r\n switch ($form_state['stage']) {\r\n\r\n case 'conflict_mail_body':\r\n $form_state['multistep_values'][$form_state['stage']] = $form_state['values'];\r\n if ($form_state['triggering_element']['#value'] != 'Back') {\r\n mkb_eval_conflict_mail_body_form_submit($form, $form_state);\r\n $form_state['complete'] = TRUE;\r\n }\r\n break;\r\n\r\n default:\r\n $form_state['multistep_values'][$form_state['stage']] = $form_state['values'];\r\n $form_state['new_stage'] = mkb_eval_conflict_missing_move_to_next_stage($form, $form_state);\r\n break;\r\n\r\n }\r\n\r\n if (isset($form_state['complete'])){\r\n drupal_goto($GLOBALS['base_url'] . '/eval/application_experts/41');\r\n }\r\n\r\n if ($form_state['triggering_element']['#value'] == 'Back') {\r\n $form_state['new_stage'] = mkb_eval_conflict_missing_move_to_previous_stage($form, $form_state);\r\n }\r\n\r\n if (isset($form_state['multistep_values']['form_build_id'])) {\r\n $form_state['values']['form_build_id'] = $form_state['multistep_values']['form_build_id'];\r\n }\r\n $form_state['multistep_values']['form_build_id'] = $form_state['values']['form_build_id'];\r\n $form_state['stage'] = $form_state['new_stage'];\r\n $form_state['rebuild'] = TRUE;\r\n\r\n}", "title": "" }, { "docid": "c4c8c1170289dea017f6674e0d37bb51", "score": "0.51919705", "text": "public function start_form()\n {\n\n $this->reset('wpsearchconsole_apply_analysis_reset');\n //$this->process( 'wpsearchconsole_apply_analysis_filter' );\n do_settings_sections('analysis_section');\n $this->get_data_inputs(); ?>\n <span class=\"alignright description\"><?php echo $this->note; ?></span>\n <form method=\"post\" action=\"\" enctype=\"multipart/form-data\">\n <div class=\"wp-filter\" style=\"padding: 20px;\">\n <div class=\"alignleft\">\n <?php $this->filter_check(); ?>\n </div>\n <div class=\"alignright\">\n <?php $field_value = (get_option('wpsearchconsole_analysis_point') ? get_option('wpsearchconsole_analysis_point') : false); ?>\n <span id=\"wpsearchconsole_analysis_page\" class=\"wpsearchconsole_analysis_datatype_hide\">\n\t\t\t\t\t\t\t<?php\n $this->dropdown('page_select', $this->pre_url_data);\n $this->filter_field('wpsearchconsole_analysis_page_field', $field_value, 'http://example.com'); ?>\n\t\t\t\t\t\t</span>\n <span id=\"wpsearchconsole_analysis_request\" class=\"wpsearchconsole_analysis_datatype_hide\">\n\t\t\t\t\t\t\t<?php\n $this->dropdown('request_select', $this->pre_query_data);\n $this->filter_field('wpsearchconsole_analysis_request_field', $field_value, __('keyword', 'wpsearchconsole')); ?>\n\t\t\t\t\t\t</span>\n <?php\n $this->dropdown('date', $this->dates_data);\n $this->dropdown('type', $this->type_data);\n $this->dropdown('device', $this->device_data);\n $this->dropdown('country', $this->country_data);\n submit_button(__('Refresh Data', 'wpsearchconsole'), 'primary', 'wpsearchconsole_apply_analysis_filter', false);\n echo '&nbsp;&nbsp;&nbsp;';\n submit_button(__('Reset', 'wpsearchconsole'), 'secondary', 'wpsearchconsole_apply_analysis_reset', false); ?>\n </fieldset>\n </div>\n </div>\n </form>\n\n <!--For sending the value of chosen parameter to javascript-->\n <input type=\"hidden\" id=\"wpsearchconsole_analysis_param\"\n value=\"<?php echo get_option('wpsearchconsole_analysis_param'); ?>\"/>\n <fieldset>\n <?php $this->quick_view(); ?>\n </fieldset>\n <?php\n }", "title": "" }, { "docid": "6047f70c8484ac1c8a419ca7c483f45b", "score": "0.51912874", "text": "function submit_form($post, $conn)\n{\n $msg = 'error submitting form!';\n if (isset($post['hd_frm']))\n {\n echo 'form submitted....<br>';\n\n // make sure all the mandatory fields are fields\n $form_is_valid = false;\n if (isset($_POST['mand_flds']))\n {\n // make sure mandatory fields are set\n $form_is_valid = ensure_submit($post, $_POST['mand_flds']);\n }\n else\n {\n // set form submission as valid\n $form_is_valid = true;\n }\n if (\n $form_is_valid == true\n )\n {\n $msg = 'all mandatory fields submitted!';\n }\n\n if ($form_is_valid)\n {\n // get the query\n if ($post['hd_frm'] == 'frm_u')\n {\n $SQL = get_update_sql($post, $tbl, $conn);\n }\n else\n {\n $SQL = get_create_sql($post, $tbl, $conn);\n }\n\n // submit the query\n $rs = mysql_query($SQL, $conn) or die(mysql_error());\n if ($rs)\n {\n $row = mysql_fetch_assoc($rs);\n $msg = 'form submitted successfully!';\n }\n else\n {\n $msg = 'error submitting form!';\n }\n }\n\n // redirect: the javascript way\n echo redir('?msg='.$msg);\n\n }\n}", "title": "" }, { "docid": "6e5224c7e86b11cb6dcc9684bee8f176", "score": "0.5190114", "text": "function entity_translation_admin_form_submit($form, $form_state) {\n // Clear the entity info cache for the new entity translation settings.\n entity_info_cache_clear();\n menu_rebuild();\n}", "title": "" }, { "docid": "b426b1cb7fdf9dc487ab716830abdd2e", "score": "0.51779705", "text": "public function initFormFront()\n {\n }", "title": "" }, { "docid": "247a7848c408b7ca3dddfb264699d6af", "score": "0.51765424", "text": "function form_handler() {\n\t\t// Conversion is done during page content to show results\n\t}", "title": "" }, { "docid": "b497f26744492fed6b7a3f16239f76fb", "score": "0.51730925", "text": "public function definition_after_data() {\n $mform = $this->_form;\n $mform->applyFilter('tname', 'trim');\n }", "title": "" }, { "docid": "3f48ba5f3fc148812f89a42e100b19e5", "score": "0.51652104", "text": "public function run()\n\t{\n\t\tif (!$this->Database->fieldExists('cleardefault', 'tl_form_field'))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tif (!$this->Database->fieldExists('placeholder', 'tl_form_field'))\n\t\t{\n\t\t\t$this->Database->query(\"ALTER TABLE tl_form_field ADD `placeholder` varchar(255) NOT NULL default ''\");\n\t\t}\n\n\t\t$this->Database->query(\"UPDATE tl_form_field SET placeholder=value, value='' WHERE cleardefault='1' AND placeholder=''\");\n\t\t$this->Database->query(\"ALTER TABLE tl_form_field DROP `cleardefault`\");\n\t}", "title": "" }, { "docid": "7de4fe2dda94488c066e8270ce997e20", "score": "0.5165171", "text": "public function onPreSubmit(FormEvent $event)\n {\n $params = $event->getData();\n \n if (!isset($params['lunchStartAt'])) {\n $event->getForm()->remove('lunchStartAt');\n }\n\n if (!isset($params['lunchEndAt'])) {\n $event->getForm()->remove('lunchEndAt');\n }\n\n if (!isset($params['startAt'])) {\n $event->getForm()->remove('startAt');\n }\n\n if (!isset($params['endAt'])) {\n $event->getForm()->remove('endAt');\n }\n\n if (!isset($params['dayInWeek'])) {\n $event->getForm()->remove('dayInWeek');\n }\n }", "title": "" }, { "docid": "73611323aa2a333343d56a6eeaf6d414", "score": "0.5164771", "text": "function options_submit(&$form, &$form_state){\n parent::options_submit($form, $form_state);\n switch($form_state['section']){\n case 'batch_items':\n $this->set_option('batch_items', $form_state['values']['batch_items']);\n break;\n }\n }", "title": "" }, { "docid": "7331d7adb60c4e6b3bce0d43a7ac326e", "score": "0.5162266", "text": "function appthemes_before_page_comments_form() {\n\tdo_action( 'appthemes_before_page_comments_form' );\n}", "title": "" }, { "docid": "4be7b2dc9caf125b79fbe1068a223ea4", "score": "0.5160408", "text": "function ekmod_filter_form_submit($form, &$form_state) {\n $filters = ekmod_filters();\n switch ($form_state['values']['op']) {\n case t('Filter'):\n case t('Refine'):\n // Apply every filter that has a choice selected other than 'any'.\n foreach ($filters as $filter => $options) {\n if (isset($form_state['values'][$filter]) && $form_state['values'][$filter] != '[any]') {\n // Flatten the options array to accommodate hierarchical/nested options.\n $flat_options = form_options_flatten($filters[$filter]['options']);\n // Only accept valid selections offered on the dropdown, block bad input.\n if (isset($flat_options[$form_state['values'][$filter]])) {\n $_SESSION['ekmod_overview_filter'][] = array($filter, $form_state['values'][$filter]);\n }\n }\n }\n break;\n case t('Undo'):\n array_pop($_SESSION['ekmod_overview_filter']);\n break;\n case t('Reset'):\n $_SESSION['ekmod_overview_filter'] = array();\n break;\n }\n}", "title": "" }, { "docid": "a63f3ec71a7bb22fe846fe87e93a6e15", "score": "0.51580334", "text": "public function clean()\n\t{\n\t\t(($sPlugin = Phpfox_Plugin::get('language.component_block_admincp_form_clean')) ? eval($sPlugin) : false);\t\t\n\t}", "title": "" }, { "docid": "56c2c9b97b470f7ee72d3e1ef742c4ed", "score": "0.5154343", "text": "function dh_droughtplanupload_form_submit(&$form, &$form_state) {\n form_load_include($form_state, 'inc', 'entity', 'includes/entity.ui');\n form_load_include($form_state, 'inc', 'dh', 'dh.admin');\n $dh_adminreg_feature = entity_ui_form_submit_build_entity($form, $form_state);\n if (trim($dh_adminreg_feature->admincode) == '') {\n $dh_adminreg_feature->admincode = str_replace(' ', '_', strtolower($dh_adminreg_feature->name ));\n }\n $dh_adminreg_feature->save();\n}", "title": "" }, { "docid": "a75b85e0123b868df44c671edfbbe722", "score": "0.51499754", "text": "function committee_appointment_form_submit($form, &$form_state) {\n //orgright_debug_msg('committee','Fn: committee_appointment_form_submit');\n // Make sure that this node is neither promoted nor sticky\n $form_state['values']['promote'] = 0;\n $form_state['values']['sticky'] = 0;\n // Set the redirection\n $form_state['redirect'] = $form['#goto'];\n}", "title": "" }, { "docid": "eae2683602d4e997a93968578dc75a55", "score": "0.51344424", "text": "function options_form_submit($values) {\n return array('noindex' => 1);\n }", "title": "" } ]
ecea69b61c5f3f03fc07de85aaa1da45
Refreshes the user for the account interface. It is up to the implementation to decide if the user data should be totally reloaded (e.g. from the database), or if the UserInterface object can just be merged into some internal array of users / identity map.
[ { "docid": "5c4398cacb973317d7a1208136f8af3e", "score": "0.5697003", "text": "public function refreshUser(UserInterface $user)\n {\n if (!$user instanceof UserInterface) {\n throw new UnsupportedUserException(sprintf('Expected an instance of FOS\\UserBundle\\Model\\UserInterface, but got \"%s\".', get_class($user)));\n }\n\n if (!$this->supportsClass(get_class($user))) {\n throw new UnsupportedUserException(sprintf('Expected an instance of %s, but got \"%s\".', $this->userManager->getClass(), get_class($user)));\n }\n\n if (null === $reloadedUser = $this->userManager->findUserBy(array('id' => $user->getId()))) {\n throw new UsernameNotFoundException(sprintf('User with ID \"%s\" could not be reloaded.', $user->getId()));\n }\n\n return $reloadedUser;\n }", "title": "" } ]
[ { "docid": "32f26133859f85e89d5d9ecd2137fa17", "score": "0.73645014", "text": "public function refreshUser(UserInterface $user)\n {\n // TODO: Implement refreshUser() method.\n }", "title": "" }, { "docid": "6a60e5e3ae0c87451d5c0c2106360216", "score": "0.71815723", "text": "public function refreshUser(UserInterface $user)\n {\n $this->find($user->getId());\n }", "title": "" }, { "docid": "cafe3ba5d515f8257ae0e6d79f628893", "score": "0.6863544", "text": "public function refreshUser(UserInterface $user)\n {\n // after it has been deserialized from the session\n\n // you might use $user to query the database for a fresh user\n // $id = $user->getId();\n // use $id to make a query\n\n // if you are *not* reading from a database and are just creating\n // a User object (like in this example), you can just return it\n return $user;\n }", "title": "" }, { "docid": "d5abb1401aaad0fd28ad2cd92bd51d91", "score": "0.68199736", "text": "public function refreshUser(UserInterface $user)\n {\n return $this->loadUserByUsername($user->getUsername());\n }", "title": "" }, { "docid": "d4908245d400d397d71f9511d2bb8f9d", "score": "0.67293686", "text": "public function refreshUser(UserInterface $user)\n {\n return $this->loadUserByUsername($user->getUsername());\n }", "title": "" }, { "docid": "7d53fb97d44fcd0ccf2b58b2cee000a2", "score": "0.6524442", "text": "public function refresh()\n\t{\n\t\t$this->userSetTokens($this->curUser);\n\t}", "title": "" }, { "docid": "74c6a74d2e396921945180dd40a4aa56", "score": "0.63067335", "text": "public function refreshUser(UserInterface $user)\n {\n // but in this example, the token is sent in each request,\n // so authentication can be stateless. Throwing this exception\n // is proper to make things stateless\n throw new UnsupportedUserException();\n }", "title": "" }, { "docid": "74c6a74d2e396921945180dd40a4aa56", "score": "0.63067335", "text": "public function refreshUser(UserInterface $user)\n {\n // but in this example, the token is sent in each request,\n // so authentication can be stateless. Throwing this exception\n // is proper to make things stateless\n throw new UnsupportedUserException();\n }", "title": "" }, { "docid": "92ed71feb7233a9dc90d9f67e679830a", "score": "0.6242017", "text": "protected function _refreshAuth() {\n\t\t$oldUser = $this->Auth->user();\n\t\t$newUser = $this->User->find('first', array('conditions' => array('User.id' => $oldUser['id']), 'recursive' => -1,'contain' => array('Organisation', 'Role')));\n\t\t// Rearrange it a bit to match the Auth object created during the login\n\t\t$newUser['User']['Role'] = $newUser['Role'];\n\t\t$newUser['User']['Organisation'] = $newUser['Organisation'];\n\t\tunset($newUser['Organisation'], $newUser['Role']);\n\t\t$this->Auth->login($newUser['User']);\n\t}", "title": "" }, { "docid": "e339a9c05c14a75c9e25ba6366c8171f", "score": "0.62282526", "text": "public function refreshUser(UserInterface $user) {\n // but in this example, the token is sent in each request,\n // so authentication can be stateless. Throwing this exception\n // is proper to make things stateless\n throw new UnsupportedUserException();\n }", "title": "" }, { "docid": "9fcf21312efe26e52231ddedc5f4999d", "score": "0.620559", "text": "public function refreshUser(UserInterface $user)\n {\n if ($user instanceof UserEntity)\n {\n $newUser = $this->er->findOneBy(['googleUid' => $user->getGoogleUid()]);\n \n if (!empty($newUser))\n {\n return $newUser;\n }\n }\n \n throw new UnsupportedUserException();\n }", "title": "" }, { "docid": "087d7928070fe0cd53e6d60a1a468376", "score": "0.6089945", "text": "public function reload_user() \n\t{\n\t\t// only for logged in users\n\t\tif ($this->logged_in()) \n\t\t{\n\n\t\t\t// get user id from session\n\t\t\t$user_data = $this->get_user();\n\t\t\t$user_model = new Auth_Users_Model($user_data->{$this->config['primary_key']});\n\t\t\tif ( ! $user_model->loaded())\n\t\t\t{\n\t\t\t\t// if there is no such user in database - quit\n\t\t\t\treturn FALSE;\n\t\t\t}\t\t \n\t\t\t\n\t\t\tif (intval($user_model->active) === 1)\n\t\t\t{\n\t\t\t\t// if user is active, prepare user data to be stored in session\n\t\t\t\t$simple_user = new Simple_User;\n\t\t\t\t$simple_user->set_user($user_model->as_array());\n\t\t\t\t$this->session->set($this->config['session_key'], $simple_user);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// if user is inactive, log him out\n\t\t\t\t$this->logout();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "792f9a53f34638bac17e0e7881d275fe", "score": "0.60272855", "text": "public function refresh($user_id)\n {\n if ($this->getId() == $user_id) {\n $this->initialize($this->userModel->getById($user_id));\n }\n }", "title": "" }, { "docid": "6c1130eca9f53d8a48911220873cf81f", "score": "0.59596264", "text": "public function refreshUserInterfaceSettings($user, $interface)\n {\n TagDependency::invalidate(Yii::$app->commonCache, self::getCacheTag($user, $interface));\n }", "title": "" }, { "docid": "925327fe0c4afb9332358d7ad46cd893", "score": "0.5956647", "text": "public function updatePreferences() {\n\n $this->userrepo->updatePreferences(auth()->id());\n\n }", "title": "" }, { "docid": "547a55c7003ba8ef04e28830493cf64d", "score": "0.58495265", "text": "function refresh(){\n\t\t\n\t\t\t//\n\t\t\t//\tPrepare the connection\n\t\t\t//\n\n\t\t\t$connection = $this->connection();\n\n\t\t\t//\n\t\t\t//\tPrepare a query\n\t\t\t//\n\n\t\t\t$userQuery = $connection->query('SELECT * FROM Users');\n\n\t\t\t$userProperties = array('id', 'number', 'email', 'username', 'password', 'isWatchingCourses');\n\n\t\t\t$userQuery->setFetchMode(PDO::FETCH_CLASS|PDO::FETCH_PROPS_LATE, 'User', $userProperties);\n\n\t\t\t//\n\t\t\t//\tPull the users from the database\n\t\t\t//\n\n\t\t\t$this->users = $userQuery->fetchAll();\n\t\t}", "title": "" }, { "docid": "20c6f8d1c0d79dfc0dc3ba0de061c665", "score": "0.57836366", "text": "public function refresh() {\n if(!$this->Login->isLoggedIn()) return;\n\n try {\n $this->Login->loginUser($this->Cookie->getCookie('cookie_username'));\n return $this->success();\n } catch(KnockException $e) {\n return $this->error($e);\n }\n }", "title": "" }, { "docid": "c24557eedc9988a85858ba4a6cac4cf8", "score": "0.5783114", "text": "public function refreshUser(UserInterface $user)\n {\n if ($user instanceof User) {\n $manager = $this->managerRegistry->getManagerForClass(User::class);\n /** @var User|null $refreshUser */\n $refreshUser = $manager->find(User::class, (int) $user->getId());\n if ($refreshUser !== null &&\n $refreshUser->isEnabled() &&\n $refreshUser->isAccountNonExpired() &&\n $refreshUser->isAccountNonLocked()) {\n // Always refresh User from database: too much related entities to rely only on token.\n return $refreshUser;\n } else {\n throw new UsernameNotFoundException('Token user does not exist anymore, authenticate again…');\n }\n }\n throw new UnsupportedUserException();\n }", "title": "" }, { "docid": "e88c97f460e5be3d97d21aef146f4908", "score": "0.57814676", "text": "public function refreshUser(UserInterface $user)\n {\n if (!$user instanceof User) {\n throw new UnsupportedUserException(sprintf('Instances of \"%s\" are not supported.', get_class($user)));\n }\n\n $this->app['session']->set('user', $this->getUserSessionData($user));\n\n return $this->loadUserByUsername($user->getUsername());\n }", "title": "" }, { "docid": "fe35ec02ec04e38a89880def83a5f6cb", "score": "0.5732369", "text": "public static function reload()\n {\n $current_user=VISITOR::init();\n if($current_user->user)\n {\n if(get_parent_class($current_user->user)=='baseUSER')\n {\n $current_user->user->reload();\n }\n else\n {\n throw new UserException('Class is not a descendant of baseUSER');\n }\n }\n else\n {\n throw new UserException('Set Media class for Vizitor Object via VISITOR::setMedia()');\n }\n }", "title": "" }, { "docid": "80a442fc37de89c2afb0ab8da7f1ec08", "score": "0.5639904", "text": "private function update() {\n\t\t// get profile from graph if no cached profile\n\t\tif( !isset($this->profile['id']) || $this->profile['id'] != $this->uid ) {\n\t\t\t$result = $this->getGraphProfile();\n\t\t\tif( $result['success'] ) {\n\t\t\t\t$this->profile = $result['profile'];\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t$token = ( isset($_SESSION['fb_access_token']) ) ? $_SESSION['fb_access_token'] : null;\n\n\t\t// query the user table\n\t\t$result = DB::queryFirstRow(\"SELECT uid FROM users WHERE uid = %i LIMIT 1\", $this->profile['id']);\n\n\t\t// user not exists in database\n\t\tDB::insertUpdate('users', array(\n\t\t\t'uid' => $this->profile['id'],\n\t\t\t'username' => $this->profile['id'],\n\t\t\t'name' => $this->profile['name'],\n\t\t\t'updated' => $this->profile['updated_time'],\n\t\t));\n\n\t\t// grant default theme for user just created their account\n\t\tif( !isset($result['uid']) ) {\n\t\t\trequire_once('./includes/class.shop.php');\n\t\t\t$s = new Shop();\n\t\t\t$s->grantDefaultItem($this->profile['id']);\n\t\t}\n\t}", "title": "" }, { "docid": "ae081b3cd1cb32718e6b1a34b468f66c", "score": "0.5635128", "text": "public function refreshUser(SecurityUserInterface $user)\n {\n $class = $this->getClass();\n\n if (!$user instanceof $class) {\n throw new UnsupportedUserException('Account is not supported');\n }\n\n if (!$user instanceof SecurityUserInterface) {\n throw new UnsupportedUserException(\n sprintf('Expected an instance of Pim\\Bundle\\UserBundle\\Entity\\UserInterface, but got \"%s\"', get_class($user))\n );\n }\n\n $refreshedUser = $this->findUserBy(array('id' => $user->getId()));\n\n if (null === $refreshedUser) {\n throw new UsernameNotFoundException(sprintf('User with ID \"%d\" could not be reloaded', $user->getId()));\n }\n\n return $refreshedUser;\n }", "title": "" }, { "docid": "54333b1a9c467a2d0d432205f9d05714", "score": "0.56337595", "text": "final public function refreshUser(UserInterface $user)\n {\n if (!$user instanceof BaseUser) {\n throw new UnsupportedUserException(\n sprintf('Instances of \"%s\" are not supported.', get_class($user))\n );\n }\n\n return $this->userService->findUserByEmail($user->getUsername());\n }", "title": "" }, { "docid": "96ccc6bf6726fcf502fb5e396260f56c", "score": "0.5616714", "text": "private function updateUser() \r\n {\r\n $this->correctUsers = $this->userFile->getUsers();\r\n $this->loginRules = new LoginRules($this->correctUsers);\r\n }", "title": "" }, { "docid": "5eed5594b3e62a184d846c838872e8ad", "score": "0.560193", "text": "public function updateUser()\n {\n $this->_logger->logData(\"User updated\");\n }", "title": "" }, { "docid": "3731f6f80f68b84b7d102a8c6575c953", "score": "0.5583755", "text": "public function refreshUser(UserInterface $user) {\n if (!$this->supportsClass(get_class($user))) {\n throw new UnsupportedUserException(sprintf('Instances of \"%s\" are not supported.', get_class($user)));\n }\n\n if (!$user->getFacebookID()) {\n throw new UsernameNotFoundException('Unable to find facebook id');\n }\n\n $user = $this->loadUserByFacebookID($user->getFacebookID());\n\n return $user;\n }", "title": "" }, { "docid": "fc141f7ec159d3568f8c4345e6195226", "score": "0.5572581", "text": "public function refreshUser(UserInterface $user)\n {\n if (!$user instanceof User) {\n throw new UnsupportedUserException(sprintf('Instances of \"%s\" are not supported.', get_class($user)));\n }\n\n return $this->loadUserByUsername($user->getUsername());\n }", "title": "" }, { "docid": "fcbe602ab14b1cc47e6620478da095b1", "score": "0.55633724", "text": "public function reload() {\n if (($ao = $this->getAuthObj()) !== false) {\n return $ao->reload();\n }\n return false;\n }", "title": "" }, { "docid": "7f7ac43a15439a6255ae12ef91e54568", "score": "0.5551147", "text": "function _refreshAuth()\r\n\t{\r\n\t\t$Administrador\t= ClassRegistry::init($this->Auth->userModel);\r\n\t\t$Administrador->recursive\t= -1;\r\n\t\t$this->Auth->login($Administrador->findById($this->Auth->user('id')));\r\n\t}", "title": "" }, { "docid": "a72f2913b6c408d55f7dfd0536367503", "score": "0.5521467", "text": "public function refreshUser(UserInterface $user)\n {\n if (!$this->supportsClass(get_class($user))) {\n throw new UnsupportedUserException('Unsupported user');\n }\n\n return $this->loadUserByUsername($user->getUsername());\n }", "title": "" }, { "docid": "37f8cb801313ed60c0a1dde7fdb99659", "score": "0.5517997", "text": "public function update()\r\n {\r\n \r\n if($this->getSessionHandler()->isLoggedIn())\r\n {\r\n $id = $this->getRequestObject()->getParameter('id');\r\n $user = new account();\r\n $user->id = $this->getRequestObject()->getParameter('id');\r\n $user->email = $this->getRequestObject()->getParameter('email'); \r\n $user->fname = $this->getRequestObject()->getParameter('fname');\r\n $user->lname = $this->getRequestObject()->getParameter('lname');\r\n $user->phone = $this->getRequestObject()->getParameter('phone');\r\n $user->birthday = $this->getRequestObject()->getParameter('birthday');\r\n $user->gender = $this->getRequestObject()->getParameter('gender');\r\n $user->password = $this->getRequestObject()->getParameter('password'); //gets hashed in account model\r\n \r\n //validate\r\n if($user->validate() !== true)\r\n {\r\n //returns array of error messages\r\n $errors = $user->validate();\r\n $v = new ValidationView();\r\n $v->injectData(array('messages' => $errors));\r\n echo $v->render();\r\n die(); //halt execution if it's invalid\r\n }\r\n \r\n $user->save();\r\n\r\n header(\"Location: index.php?page=accounts&action=show&id=$id\");\r\n }\r\n else {\r\n $this->displayMessage('You must login to view this area!');\r\n }\r\n\r\n }", "title": "" }, { "docid": "6a186a11d57bedb1ef512e1503f867a6", "score": "0.55103403", "text": "public function refreshUser(UserInterface $user) {\n $class = get_class($user);\n if (!$this->supportsClass($class)) {\n throw new UnsupportedUserException(sprintf('Instances of \"%s\" are not supported.', $class));\n }\n return $this->loadUserByUsername($user->getUsername());\n }", "title": "" }, { "docid": "2e3ef29c2cdbf094f92eb6360fbf3ca3", "score": "0.54912233", "text": "public function updatePassword(UserInterface $user);", "title": "" }, { "docid": "9a416a5f44cb90c9b5e1a07427a0a898", "score": "0.5489643", "text": "public function refresh()\n {\n return $this->auth->refresh();\n\n }", "title": "" }, { "docid": "ef6b53686aae562bf5979082a5763b24", "score": "0.5488157", "text": "public function refresh(AbstractModelInterface $object): void\n {\n if (! $object->id) {\n return;\n }\n\n $data = $this->getFromApi($object->id);\n $object->populateFromApi($data);\n }", "title": "" }, { "docid": "5648d930bb751fcc2c0b597d0a539660", "score": "0.54651195", "text": "public function changeUser()\r\n { \r\n // User has clicked log in button\r\n if($this->loginView->isLoggedInButtonPushed())\r\n {\r\n $this->login();\r\n }\r\n // User has clicked log out button\r\n else if($this->loginView->isLoggedOutButtonPushed())\r\n {\r\n $this->isSameMessage($this->feedback->getByeMsg(), false);\r\n $this->loginController->logout($this->loginView->getCookieName()); // Log out the user\r\n }\r\n // If there is a correct session\r\n else if($this->loginController->isSessionCorrect($this->loginController->getSessionId()))\r\n {\r\n $this->user->setNewInfo(\"\", \"\", true, \"\");\r\n }\r\n // If there is cookies\r\n else if($this->loginView->isCookies())\r\n {\r\n // If the cookie is correct, login the user\r\n if($this->loginController->authenticateCookies($this->loginView->getCookieName()))\r\n {\r\n $this->setSession();\r\n $this->isSameMessage($this->feedback->getWelcomeCookieMsg(), true); \r\n }\r\n // Set error in cookies message\r\n else\r\n {\r\n $this->user->setNewInfo(\"\", \"\", false, $this->feedback->getWrongInformationCookies()); \r\n }\r\n }\r\n }", "title": "" }, { "docid": "b61e8d373e17c594983bb123a6afe0ce", "score": "0.545564", "text": "public function updateClient(ClientInterface $client)\n {\n $this->userManager->updateUser($client);\n }", "title": "" }, { "docid": "3cde1b86d51c0fda443378ddcf3df04e", "score": "0.5454951", "text": "function action() {\r\n\t\t\r\n\t\t$u = owa_coreAPI::entityFactory('base.user');\r\n\t\t$u->getByColumn('user_id', $this->getParam('user_id'));\r\n\t\t$u->set('email_address', $this->getParam('email_address'));\r\n\t\t$u->set('real_name', $this->getParam('real_name'));\r\n\t\t\r\n\t\t// never change the role of the admin user\r\n\t\tif (!$u->isOWAAdmin()) {\r\n\t\t\t$u->set('role', $this->getParam('role'));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t$u->update();\r\n\t\t$this->set('status_code', 3003);\r\n\t\t$this->setRedirectAction('base.users');\r\n\t}", "title": "" }, { "docid": "2f25e37b3abe1d79c606fee5f5d4c64b", "score": "0.5433659", "text": "public function reload() {\n\t\treturn $this->init($this->userData['email'], $this->listId);\n\t}", "title": "" }, { "docid": "edc7ffe4187b8cb68f873a2278b4bea6", "score": "0.5429421", "text": "public function updateSessionUser()\n {\n $user = $this->getCurrentUser();\n if (empty($user['id'])) {\n return;\n }\n\n $userDB = $this->Users->getUser($user['id']);\n unset($userDB['password']);\n\n $this->setSession('user', $userDB);\n $this->setCookie('user', $userDB);\n }", "title": "" }, { "docid": "aaf5b1042a2ba5076d34cf492c8f6174", "score": "0.5420315", "text": "public function updateUser() {\n try {\n if (!($this->user instanceof Base_Model_Lib_App_Core_User_Entity_User)) {\n throw new Base_Model_Lib_App_Core_User_Exception(\" User Entity not initialized\");\n } else {\n $data = array(\n 'user_role_id' => $this->user->getUserRole(),\n 'emp_number' => $this->user->getEmpNumber(),\n 'full_name' => $this->user->getFullName(),\n 'display_name' => $this->user->getDisplayName(),\n 'country_id' => $this->user->getCountry(),\n 'region_id' => $this->user->getRegion(),\n 'branch_id' => $this->user->getBranch(),\n 'department_id' => $this->user->getDepartment(),\n 'email_address' => $this->user->getEmailAddress(),\n 'user_name' => $this->user->getUserName(),\n 'status_is' => $this->user->getStatusIs(),\n 'date_modified' => $this->user->getDateModified(),\n 'modified_user_id' => $this->user->getModifiedUser(),\n 'user_data_privilage' => $this->user->getDataPrivilage(),\n 'allowed_countries' => $this->user->getAllowedCountries(),\n 'allowed_regions' => $this->user->getAllowedRegions(),\n 'allowed_branches' => $this->user->getAllowedBranches(),\n 'allowed_departments' => $this->user->getAllowedDepartments(),\n 'default_currency_id' => $this->user->getDefaultCurrency());\n \n return $this->update($data, 'id = ' . (int) $this->user->getId());\n }\n } catch (Exception $ex) {\n throw new Base_Model_Lib_App_Core_User_Exception($ex);\n }\n }", "title": "" }, { "docid": "34403d9db55228112f4349239322b378", "score": "0.5419798", "text": "public function updateUser()\n {\n $logger = new logger();\n $logger->logData(\"User updated\");\n }", "title": "" }, { "docid": "56a44ff7bb180a02a86ed4c30b12d83c", "score": "0.5411118", "text": "public function refreshUser(UserInterface $user)\n {\n if (!$user instanceof WebserviceUser) {\n throw new UnsupportedUserException(sprintf('Instances of \"%s\" are not supported.', get_class($user)));\n }\n\n return $this->loadUserByUsername($user->getUsername());\n }", "title": "" }, { "docid": "a20d3ec347c531ffc7b1ffe1a5e2605f", "score": "0.540073", "text": "public function refreshUser(UserInterface $user)\n {\n $class = get_class($user);\n\n if (!$this->supportsClass($class)) {\n throw new UnsupportedUserException(sprintf('Instances of \"%s\" are not supported.', $class));\n }\n\n return $user;\n }", "title": "" }, { "docid": "3e20922536b0d0fdfbaf038ff03b7156", "score": "0.53841144", "text": "public function refreshUser(UserInterface $auteur)\n {\n if (!$auteur instanceof Auteur) :\n throw new UnsupportedUserException (\n sprintf ('Les instances de \"%s\" ne sont pas autorisées.', getClass($auteur))\n );\n endif;\n\n # Si tous est correct, je peux charger l'utilisateur via son username.\n return $this->loadUserByUsername($auteur->getUsername());\n }", "title": "" }, { "docid": "2776463308d91cdc49d19aee4c7b4b47", "score": "0.537774", "text": "function updateUser(){\n\t}", "title": "" }, { "docid": "e958bc9079313a3c35e0d9db10588a41", "score": "0.53713894", "text": "public function updateUser()\n\t{\n\t\t// update user, validation happens in model\n\t\t$users = new UserModel();\n\t\t$getRule = $users->getRule('update_account');\n\t\t$users->setValidationRules($getRule);\n\t\t$user = [\n\t\t\t'id' \t=> $this->request->getPost('id'),\n\t\t\t'name' \t=> $this->request->getPost('name'),\n\t\t\t'phone_number'=>$this->request->getPost('phone'),\n\t\t\t'address'=>$this->request->getPost('address')\n\t\t];\n\n\t\tif (! $users->save($user)) {\n\t\t\treturn redirect()->back()->withInput()->with('errors', $users->errors());\n }\n\n // update session data\n $this->session->push('userData', $user);\n\n return redirect()->route('users')->with('success', lang('Auth.updateSuccess'));\n\t}", "title": "" }, { "docid": "8d015e330c60ac770b9aaab7603dd2a4", "score": "0.53298473", "text": "public function refreshUser(UserInterface $user): UserInterface\n {\n if (! $this->supportsClass(get_class($user)))\n throw new UnsupportedUserException(sprintf('The user provided was not valid.'));\n if ($this->supportsClass(get_class($user)) && $this->getUser() && $this->getUser()->isEqualTo($user))\n return $this->getUser();\n if ($user instanceof UserInterface)\n $user = $this->loadUserByUsername($user->getUsername());\n\n $this->setUser($user);\n return $this->getUser();\n }", "title": "" }, { "docid": "9b24478cdf3a929d1e3fc5a3fd876fb6", "score": "0.5313564", "text": "private function updateUser(UserInterface $user, UserResponseInterface $response)\n {\n $user->setEmail($response->getEmail());\n // TODO: Add more fields?!\n\n $this->em->persist($user);\n $this->em->flush();\n }", "title": "" }, { "docid": "2416ecbe4e9f68def31c0c727197fc52", "score": "0.5302562", "text": "protected function recalculateUserStats()\n {\n $this->comment('--- RECALCULATING USER STATS ---');\n\n /** @var UserService $userSvc */\n $userSvc = app(UserService::class);\n\n User::all()->each(function ($user) use ($userSvc) {\n $userSvc->recalculateStats($user);\n });\n }", "title": "" }, { "docid": "5acf40031f725f10827ec5d0b3fa2ea1", "score": "0.52932876", "text": "function reactivate() {\n $user = $this->get_user_from_request(true);\n\n $user = $this->set_user_status($user, TNP_User::STATUS_CONFIRMED);\n $this->add_user_log($user, 'reactivate');\n\n return $user;\n }", "title": "" }, { "docid": "30c7bea6b2f9ec7989beb7c9607bae45", "score": "0.5285268", "text": "protected function setUser(UserInterface $user)\n {\n $this->retrievedUsers[$user->getId()] = $user;\n }", "title": "" }, { "docid": "c6e71ec66487c4a692ad48741aa6a26d", "score": "0.527658", "text": "private function editUser(): void {\n if (!is_numeric($_POST['user_id'])) {\n return;\n }\n\n $userID = (int) $_POST['user_id'];\n\n if (!$this->authorizeUser($userID)) {\n return;\n }\n\n //TODO: tilføj et ekstra felt, \"confirm password\" og tjek at de er ens\n\n $firstname = $_POST['firstname'];\n $lastname = $_POST['lastname'];\n $email = $_POST['email'];\n $phone = $_POST['phone'];\n $address = $_POST['address'];\n $zipcode = $_POST['zipcode'];\n $city = $_POST['city'];\n $level = $this->RCMS->Login::STANDARD_USER_LEVEL;\n\n if ($this->RCMS->Login->isAdmin()) {\n $level = $_POST['level'];\n }\n\n $currentUser = $this->getUserByID($userID);\n\n // Tjek om brugeren vil ændre sin e-mail, og om e-mailen er optaget\n if ($currentUser['Email'] !== $email) {\n $exists = $this->RCMS->execute('CALL getUserByEmail(?)', array('s', $email));\n if ($exists->num_rows !== 0) {\n // E-mail er allerede taget\n header(\"Location: ?userid=$userID&emailtaken\");\n return;\n }\n }\n\n // Tjek om brugeren vil ændre sit password\n if (isset($_POST['password']) && $_POST['password'] !== '') {\n $password = $this->RCMS->Login->saltPass($_POST['password']);\n } else {\n $password = $currentUser['Password'];\n }\n\n $this->RCMS->execute('CALL editUser(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)', array('issssssssi', $userID, $firstname, $lastname, $email, $password, $phone, $address, $zipcode, $city, $level));\n\n if ($userID === $this->RCMS->Login->getUserID()) {\n // Brugerens information har ændret sig, så de skal opdateres i sessionen\n $user = $this->getUserByID($userID);\n unset($user['Password']);\n $_SESSION['user'] = $user;\n }\n\n $this->editCustomerInStripe($currentUser['StripeID'], $firstname, $lastname, $email, $phone, $address, $zipcode, $city);\n\n header('Location: /dashboard');\n }", "title": "" }, { "docid": "a22b9926f8d8ab984f1c270ea8b60b3e", "score": "0.5274888", "text": "public function updateUser(AuthenticationSuccessEvent $event, UserInterface $user)\n {\n $user->setLastLogin(new \\DateTime());\n if ($user->getIp() !== $event->getRequest()->getClientIp()) {\n $user->setIp($event->getRequest()->getClientIp());\n }\n $this->em->persist($user);\n $this->em->flush();\n\n // Register a new login hit\n $userAgent = $event->getRequest()->headers->get('user-agent');\n if ($this->em instanceof DocumentManager) {\n $newHit = new OdmLoginAnalytics($user, $userAgent);\n } else {\n $newHit = new OrmLoginAnalytics($user, $userAgent);\n }\n $this->em->persist($newHit);\n $this->em->flush();\n }", "title": "" }, { "docid": "f109a04c6ec46ca87863904dd72d8a50", "score": "0.52635205", "text": "public function useraccountupdate()\n {\n $username = $this->session->userdata('username');\n $this->load->model('user_model');\n $data['user_data'] = $this->user_model->fetch_single_data($username);\n $this->load->view('userAccountUpdate', $data);\n }", "title": "" }, { "docid": "0a21e2d3beb365b78272f42e00492b27", "score": "0.52600086", "text": "function refresh_user_session($user_id) {\n $user_data = $this->build_user_profile($user_id);\n $this->CI->session->set_userdata(array('user' => $user_data));\n $this->CI->load_user_profile();\n\n return TRUE;\n }", "title": "" }, { "docid": "6749f9617acea0910d4d68abfff014d4", "score": "0.52583903", "text": "public function edit_reg_account($user_id)\r\n\t\t\t{\r\n\t\t\t\t$this->load->model('Users_model');\r\n\t\t\t\t$user_fetch_data=$this->Users_model->fetch_reg_data($user_id);\r\n\t\t\t\t$this->load->view('User/Update_registration',['user_fetch_data'=>$user_fetch_data]);\t\r\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "899422962a430c72292b653971357e97", "score": "0.52340657", "text": "public function testUpdateUser()\n {\n }", "title": "" }, { "docid": "6043de0453721cbdb13386c0a173e5c0", "score": "0.52280545", "text": "public function replace(UserInterface $oldUser, UserInterface $newUser): bool;", "title": "" }, { "docid": "f2d7a5259046d7c994a5846ca95f4ec3", "score": "0.5219581", "text": "public function edit()\n {\n $userId = $this->auth->id() ?? throwErr($this->auth->errors());\n\n // data to update\n $data = request([\"username\", \"email\", \"password\"]);\n\n // data to find user by\n $where = [\"id\" => $userId];\n\n // params which shouldn't already exist in db\n $uniques = [\"username\", \"email\"];\n\n $user = $this->auth->update(\"users\", $data, $where, $uniques);\n\n json($user ?? throwErr($this->auth->errors()));\n }", "title": "" }, { "docid": "24b0c61b10cddb20e85de0f91f3e9e8d", "score": "0.5218239", "text": "function reload()\n\t{\n\t\t$session =& JFactory::getSession();\n\t\t$profile_id = $session->get('profile', null, 'joomlapack');\n\t\t$this->_id = $profile_id;\n\t\t$this->_loadRegistry();\n\t}", "title": "" }, { "docid": "a8fae74a643fc2ed96d83004d9ef7f27", "score": "0.5206773", "text": "public function resetAccount($user_id)\n\t{\n\t\t// Need to get user data for the email\n\t\t$result_row = $this->getUserDataById($user_id);\n\t\t// Creates a new random 10 character password for the user\n\t\t$user_password = $this->createRandomPassword();\n\t\t\n\t\t// check if we have a constant HASH_COST_FACTOR defined (in config/hashing.php),\n\t\t// if so: put the value into $hash_cost_factor, if not, make $hash_cost_factor = null\n\t\t$hash_cost_factor = (defined('HASH_COST_FACTOR') ? HASH_COST_FACTOR : null);\n\n\t\t// crypt the user's password with the PHP 5.5's password_hash() function, results in a 60 character hash string\n\t\t// the PASSWORD_DEFAULT constant is defined by the PHP 5.5, or if you are using PHP 5.3/5.4, by the password hashing\n\t\t// compatibility library. the third parameter looks a little bit shitty, but that's how those PHP 5.5 functions\n\t\t// want the parameter: as an array with, currently only used with 'cost' => XX.\n\t\t$user_password_hash = password_hash($user_password, PASSWORD_DEFAULT, array('cost' => $hash_cost_factor));\n\t\t\n\t\t$query = \"UPDATE `users` SET `user_password_hash` = :user_password_hash, `user_registration_datetime` = now(), `user_password_change` = 0 WHERE `user_id` = :user_id;\";\n\t\t$query_reset_account_update = $this->db_connection->prepare($query);\n\t\t$query_reset_account_update->bindValue(\":user_password_hash\", $user_password_hash, PDO::PARAM_STR);\n\t\t$query_reset_account_update->bindValue(\":user_id\", $user_id, PDO::PARAM_STR);\n\t\t$query_reset_account_update->execute();\n\t\t\n\t\t// unsets the variable so that it cannot be re-triggered through refreshing\n\t\tunset($_SESSION['reset_user_accounts_array']);\n\t\t\n\t\tif($query_reset_account_update)\n\t\t{\n\t\t\t// Send an email with the user name and password for the account\n\t\t\tif($this->sendResetAccountEmail($result_row->user_name, $result_row->user_email, $user_password))\n\t\t\t{\n\t\t\t\t// Mail sent successfully\n\t\t\t\t$this->messages[] = MESSAGE_RESET_ACCOUNT_MAIL_SENT;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Error message for inability to send email\n\t\t\t\t$this->errors[] = MESSAGE_RESET_ACCOUNT_MAIL_ERROR;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->errors[] = MESSAGE_RESET_ACCOUNT_FAILED;\n\t\t}\n\t}", "title": "" }, { "docid": "74a79ceba56fa4bcc0da9335716a255d", "score": "0.51902866", "text": "public function refreshUser(UserInterface $user)\n {\n if (!$user) {\n $msg = $this->translator->trans(\n 'security.ldap.bad_instance'\n );\n throw new UnsupportedUserException($msg);\n }\n\n return $user;\n }", "title": "" }, { "docid": "da2287129f2bcdcc696a22f50a9f1c0c", "score": "0.51879233", "text": "function editAccount() {\n // Check if all inputs were entered\n if (!isset($_POST['user_name']) || empty($_POST['user_name'])\n || !isset($_POST['email']) || empty($_POST['email'])\n || ($_POST['change_password'] == \"true\"\n && (!isset($_POST['password_old']) || empty($_POST['password_old'])\n || !isset($_POST['password_new']) || empty($_POST['password_new'])\n || !isset($_POST['password_confirm']) || empty($_POST['password_confirm'])))) {\n return Error::Input;\n }\n\n $user = checkLogin();\n if (!$user) {\n return Error::Login; // User is not logged in\n }\n\n // Email validation\n if (!isValidEmail(trim($_POST['email']))) {\n return Error::Email;\n }\n // Check that edited email isn't already registered\n $registered = Db::queryOne('\n SELECT *\n FROM user\n WHERE Email = ?\n ', $_POST['email']);\n if ($registered && $registered['Id'] != $user['Id']) {\n return Error::Registered;\n }\n\n // Define SQL query data\n $data = array(\n 'UserName' => trim($_POST['user_name']),\n 'Email' => trim($_POST['email'])\n\n );\n\n // User wants to change his password\n if ($_POST['change_password'] == \"true\") {\n $loggedIn_user = Db::queryOne('SELECT * FROM user WHERE Id = ?', $user['Id']);\n if ($loggedIn_user) {\n // Check passwords\n if (!password_verify($_POST['password_old'], $loggedIn_user['Password'])) { return Error::Password; }\n\n // New password validation\n if (trim($_POST['password_new']) != trim($_POST['password_confirm'])) { return Error::EqualPasswords; }\n\n // Define new password\n $data['Password'] = password_hash(trim($_POST['password_new']), PASSWORD_BCRYPT);\n // Update session login_string\n $_SESSION['login_string'] = hash('sha512', $loggedIn_user['Password'] . $_SERVER['HTTP_USER_AGENT']);\n }\n }\n\n $condition = 'WHERE Id = ' . $user['Id'];\n $result = Db::update('user', $data, $condition);\n\n return $result;\n}", "title": "" }, { "docid": "c8d754a301627e3bdbb52cd2adff7ed0", "score": "0.5172138", "text": "public function setUser(UserAccount $userAccount);", "title": "" }, { "docid": "d63f87b33e7afc8f48c0732dc154673e", "score": "0.5166594", "text": "function user_update() {\n $user_obj = new SFACTIVE\\User();\n\n\t\t// we check if the password is safe\n\t\tif($user_obj->check_pass_security($_POST['password']) === \"ok\")\n\t\t{\n\t\t\t$user_fields = array(\n 'user_id' => $_POST['user_id1'],\n 'username' => $_POST['username1'],\n 'password' => $_POST['password'],\n 'email' => $_POST['email'],\n 'phone' => $_POST['phone'],\n 'first_name' => $_POST['first_name'],\n 'last_name' => $_POST['last_name']\n );\n\n \t$error_num = $user_obj->update($user_fields);\n\t\t\tif($_SESSION['secure'] !== \"yes\")\n\t\t\t{\n\t\t\t\t$_SESSION['secure'] = \"yes\" ;\n\t\t\t\t$new_loc = '../';\n\t\t\t\theader(\"Location: $new_loc\");\n\t\t\t\texit ;\n\t\t\t}else{\n\t\t\t\theader(\"Location: user_display_list.php\");\n\t\t\t\t$new_loc = \"user_display_edit.php?user_id1=\".$_POST['user_id1'];\n\t\t\t\theader(\"Location: $new_loc\");\n\t\t\t\texit;\n\t\t\t}\n\t\t}else{\n\t\t\t$new_loc = \"user_display_edit.php?user_id1=\".$_POST['user_id1'].\"&insecure=yes\";\n\t\t\theader(\"Location: $new_loc\");\n\t\t\texit;\n\t\t}\n }", "title": "" }, { "docid": "7fcb7e76456d55cb606bfe885e1f6be3", "score": "0.51604724", "text": "public function preUpdate(UserInterface $user): void\n {\n if (\\is_string($user->getPlainPassword()) && '' !== $user->getPlainPassword()) {\n $user->setPassword($this->passwordEncoder->hashPassword($user, $user->getPlainPassword()));\n $user->eraseCredentials();\n }\n }", "title": "" }, { "docid": "bef196ea2b4cb4a3416203070db1ba8d", "score": "0.51588225", "text": "public function modify_user() {\r\n\r\n\t\t// Can be the current or selected WP_User object (depending on the user view).\r\n\t\t$user = $this->store->get_selectedUser();\r\n\r\n\t\t/**\r\n\t\t * Allow other modules to hook after the initial changes to the current user.\r\n\t\t *\r\n\t\t * @since 1.6.3\r\n\t\t * @since 1.6.4 Renamed from `vaa_view_admin_as_modify_current_user`.\r\n\t\t * @param \\WP_User $user The modified user object.\r\n\t\t */\r\n\t\tdo_action( 'vaa_view_admin_as_modify_user', $user );\r\n\t}", "title": "" }, { "docid": "8c22d6299b026593ad8084672eb5671f", "score": "0.51563746", "text": "public function save()\n {\n wp_update_user($this);\n }", "title": "" }, { "docid": "c6e799463ab3578ac6239b04c3c4eca6", "score": "0.51534635", "text": "public function refreshUser(UserInterface $user): UserInterface\n {\n if (!$user instanceof KeycloakBearerUser) {\n throw new UnsupportedUserException(sprintf('Instances of \"%s\" are not supported.', get_class($user)));\n }\n\n $user = $this->loadUserByIdentifier($user->getAccessToken());\n\n if (!$user) {\n throw new UserNotFoundException();\n }\n\n return $user;\n }", "title": "" }, { "docid": "c0c994cdd8f169e8ef1acc886d3f97e0", "score": "0.5152998", "text": "public function updateacc()\n {\n $session = \\Config\\Services::session();\n $user_id = $session->get('user');\n $session->set('page', 'myacc');\n\n $customerModel = new CustomerModel();\n $user = $customerModel->where('customer_id', $user_id)->first();\n\n echo view('header', [\n 'title' => 'My Account',\n ]);\n\n echo view('navbar_cust', [\n 'session' => $session,\n ]);\n\n echo view('cust/my_acc_update', [\n 'data' => $user,\n ]);\n\n echo view('footer');\n }", "title": "" }, { "docid": "4662a504055097338f59e3799256e99a", "score": "0.51435405", "text": "private function reloadIfDidLogIn(){\n\t\tif($this->checkIfUserLoggedIn()){\n\t\t\t$this->reloadPage();\n\t\t}\n\t}", "title": "" }, { "docid": "0c5a6c0be9f85b2f75ef40ffd8f004c9", "score": "0.51405185", "text": "public function edit()\n {\n $session = new UserSession();\n $userSession = $session->get('_userStart');\n $session->ifNotConnected();\n\n $userData = (new UserRepository())->findOneBy('user','id', $userSession['id']);\n\n if(count($_POST) > 0)\n {\n $input = new Input();\n $post = $input->cleaner($_POST);\n \n (new UserUpdateEmail($userData, $post));\n (new UserUpdatePassword($userData, $post));\n }\n\n (new Repository())->disconnect();\n\n $this->render('admin/user/edition', [\n 'session' => (new Session()),\n 'email' => $userData['email'],\n 'law' => $userData['law'] ,\n 'createdAt' => (new DateTime($userData['created_at']))->format('d/m/Y à H:i') ,\n ]);\n \n }", "title": "" }, { "docid": "f2e387889d4b68941e04d6ddebc427b4", "score": "0.5121793", "text": "public function refresh(array $params = [])\n {\n $this->getClient()->refreshAccount($this, $params);\n }", "title": "" }, { "docid": "e984e5fb4a5ad2fcb4063f99dcc8cdea", "score": "0.51096815", "text": "function updateAccount( $post )\n{\n $user_id = $_SESSION['user_id'];\n $email = $post['email'];\n $password = hash('sha256', $post['password']); // Hash input password to compare with the hashed password within DB.\n //$password = $post['password'];\n $newPassword = $post['newPassword'];\n $newPasswordConfirm = $post['newPasswordConfirm'];\n $user = new User();\n $userData = $user->getUserById($user_id); // Get the current user's data in order to compare the inputs with the current data.\n // The current password is required to save new data.\n if ($password != $userData['password']) {\n $error_msg = \"Le mot de passe n'est pas valide.\";\n }\n elseif (!preg_match(\"/^[_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,})$/i\", $email))\n {\n $error_msg = \"Format de mail non valide.\";\n }\n elseif (strlen($newPassword) < 5)\n {\n $error_msg = \"Nouveau mot de passe incorrect, 5 caractères minimum.\";\n }\n elseif ($newPassword != $newPasswordConfirm)\n {\n $error_msg = \"Les nouveaux mots de passe ne correspondent pas.\";\n }\n else\n {\n $user->setId($user_id);\n $user->setEmail($email);\n $user->setPassword($newPassword);\n $userData = $user->getUserByEmail();\n if ($userData && sizeof( $userData ) > 0) // If email address is already in used, show error.\n {\n $error_msg = \" Adresse mail est déjà utilisée.\";\n }\n else\n {\n $user->updateUser();\n $success_msg = \"Vos informations ont été modifiées avec succès.\";\n }\n }\n require('view/accountView.php');\n}", "title": "" }, { "docid": "2baee5fd08a3992ff216060beadc32ec", "score": "0.5096612", "text": "public function refreshUser(UserInterface $user)\n {\n if (!$user instanceof User) {\n throw new UnsupportedUserException(sprintf('Expected an instance of MBH\\Bundle\\UserBundle\\Document\\User, but got \"%s\".', get_class($user)));\n }\n\n return $this->dm->find('MBHUserBundle:User', $user->getId());\n }", "title": "" }, { "docid": "9db72f9921e3fc702245beab3d9b8483", "score": "0.50960296", "text": "public function update()\n {\n $user = Sentry::getUser();\n \n $input = Input::all();\n\n $rules = array(\n 'email' => 'email|required|unique:users,email,:id',\n 'first_name' => 'required|max:100',\n 'last_name' => 'required|max:100',\n );\n\n $rules = $this->inject_id($rules, $user->id);\n\n $validator = Validator::make($input, $rules);\n\n if (!$validator->passes())\n {\n return Redirect::route('account.edit')\n ->withInput()\n ->withErrors($validator);\n }\n\n $user->email = Input::get('email');\n $user->first_name = Input::get('first_name');\n $user->last_name = Input::get('last_name');\n $user->save();\n\n return Redirect::route('home');\n }", "title": "" }, { "docid": "1a16e2696df721141d381a2e6d842ad6", "score": "0.50837517", "text": "public function update()\n {\n $this->authorize('manage', User::class);\n\n foreach (request('users') as $userId => $roles) {\n User::where('id', $userId)->first()->roles()->sync($roles);\n }\n\n return redirect('settings/permissions');\n }", "title": "" }, { "docid": "2856f49d2c979fdf4ae75f47cefdb5e1", "score": "0.507847", "text": "public function update(\\Cvut\\Fit\\BiWt1\\Blog\\CommonBundle\\Entity\\UserInterface $user);", "title": "" }, { "docid": "aff66aed54a31b89a36eccc38aaba531", "score": "0.5064247", "text": "protected function reload(){\r\n \r\n $args = $this->request->args;\r\n $lastUpdateTime = (isset($args[\"updateTime\"]))? $args[\"updateTime\"]:NULL;\r\n $sender = (isset($args[\"sender\"]))? $args[\"sender\"]:NULL;\r\n \r\n $this->domainState = $this->user->reload($lastUpdateTime);\r\n \r\n if($sender){\r\n $this->appState = new $sender($this->domainState);\r\n }\r\n }", "title": "" }, { "docid": "478894b6c2925bdc4e29549bc109c708", "score": "0.50621647", "text": "public function updateRoleUser(){\n \n foreach($this->getRoles() as $rol)\n {\n if($this->hasRole($rol))\n $this->removeRole ($rol);\n }\n if(!$this->hasRole($this->role))\n {\n $this->addRole($this->role);\n }\n }", "title": "" }, { "docid": "53f4823345ff29327a5e69308eecde0d", "score": "0.5061015", "text": "public function save(): void\n {\n $dataObject = get_object_vars($this);\n\n // cast user class to array\n // and keep non default properties\n $dataChild = array_diff_key($dataObject, get_class_vars(get_class()));\n\n // check if the user has an id\n if (is_null($dataChild[\"id\"])) {\n $this->createUser($dataChild);\n } else {\n $this->updateUser($dataChild);\n }\n }", "title": "" }, { "docid": "57392656cc37e17a04a885fcecd9bef8", "score": "0.50550294", "text": "public function setUser(UserInterface $user);", "title": "" }, { "docid": "00b9e4b803e050bd838017ab215c5807", "score": "0.5054043", "text": "public function refresh()\n {\n if ($this->isDataLoaded())\n {\n $this->loadData();\n }\n }", "title": "" }, { "docid": "b417aacf15e0f8a46162fdb72fc50e79", "score": "0.50288826", "text": "public function pendingPasswordChange(ArmorUserInterface $user):void;", "title": "" }, { "docid": "1de00249f6794c9bb41d9dc3462991e5", "score": "0.50285137", "text": "public function claimAction() {\n\t\t//if the user username and password are a match\n\n\t\t$sess = Mage::getSingleton('customer/session');\n\n\t\t$tmpUser = $sess->getCustomer();\n\n\t\t//cloning deletes the entity_id\n\t\t$oldUid = $tmpUser->getId();\n\t\t//we want the oldUser completely disassociated from the current user\n\t\t// to avoid any potential hacking attempts, so clone the \n\t\t// user away from the session\n\t\t$oldUser = clone $tmpUser;\n\n\t\t$login = $this->getRequest()->getPost('login');\n\t\tif (!empty($login['username']) && !empty($login['password'])) {\n\t\t\ttry {\n\n\t\t\t\t//this will change the old user into the new user with \"loadByEmail\"\n\t\t\t\tif ($oldUser->authenticate($login['username'], $login['password'])) {\n\t\t\t\t\t$sess->setCustomer($oldUser);\n\t\t\t\t\t$store = Mage::app()->getStore();\n\t\t\t\t\t$storeId = $store->getStoreId();\n\t\t\t\t\t$fbObj = Mage::helper('fbconnect')->getFb();\n\t\t\t\t\tMage::helper('fbconnect/account')->convertFbUidLink($oldUid, $fbObj->user, $storeId, $oldUser->getId());\n\t\t\t\t\tMage::helper('fbconnect/account')->convertAccountOrders($oldUid, $oldUser->getId());\n\t\t\t\t\t//might not need this dispatch stuff, user is already \"logged in\"\n\t\t\t\t\t/*\n\t\t\t\t\tMage::dispatchEvent('customer_login', array('customer'=>$oldUser));\n\t\t\t\t\tMage::dispatchEvent('customer_customer_authenticated', array(\n\t\t\t\t\t\t'model' => $sess,\n\t\t\t\t\t\t'password' => '',\n\t\t\t\t\t));\n\t\t\t\t\t */\n\n\t\t\t\t\t$this->_redirect('fbc/account');\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\tdie('no got login');\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception $e) {\n\t\t\t\t$sess->addError($e->getMessage());\n\t\t\t\t$sess->setUsername($login['username']);\n\t\t\t\t$this->_redirect('fbc/account');\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}\n\n\t\t$sess->addError($this->__('Login and password are required'));\n\t\t$this->_redirect('fbc/account');\n\t}", "title": "" }, { "docid": "428c850ef8cadede606fedc95e19fcc2", "score": "0.50258046", "text": "public static function refreshSession() {\n $model = UsersLogin::model()->findByAttributes(array('sessions'=>Yii::app()->session->getSessionID()));\n if ($model != null) {\n $model->last_access = date('Y-m-d H:i:s');\n $model->save();\n }\n }", "title": "" }, { "docid": "2118f9a15eb30a191bb36424421fc50d", "score": "0.5025238", "text": "public function updateUserAction()\n {\n $newEmail = isset($_POST['insertedEmail']) ? $_POST['insertedEmail'] : NULL;\n $newName = isset($_POST['insertedName']) ? $_POST['insertedName'] : NULL;\n\n $settings = new SettingsData();\n $settings->updateUser($newEmail, $newName);\n }", "title": "" }, { "docid": "5c980492a8628d77fdf6db15193d7567", "score": "0.50101584", "text": "protected function resetUser()\n {\n $this->user = null;\n }", "title": "" }, { "docid": "4bdd3a39e46fa07d4e0383ac76d9d070", "score": "0.5006194", "text": "public function update()\n\t {\n\t //\n $user = $this->_user;\n $user->update(Input::only(['first_name', 'last_name']));\n $user->company_name = Input::get('company_name');\n $user->save();\n return Redirect::to(route('employers.settings'));\n\t }", "title": "" }, { "docid": "38314628164fc220e5eec77fffec08a1", "score": "0.5004043", "text": "public function updateUsers()\n {\n $this->clearUsers();\n $users = Users::find();\n $client = \\Aiden\\Models\\GoogleSheets::getClient();\n $service = new \\Google_Service_Sheets($client);\n $range = 'Users!A:G';\n $param = [\n \"valueInputOption\" => \"USER_ENTERED\",\n \"insertDataOption\" => \"INSERT_ROWS\",\n ];\n\n if($users){\n $userArr[] = [\n \"First Name\",\n \"Last Name\",\n \"Email\",\n \"Website Url\",\n \"Company\",\n \"Status\",\n \"Solution\"\n ];\n foreach ($users as $user){\n $userArr[] = [\n $user->getName(),\n $user->getLastName(),\n $user->getEmail(),\n $user->getWebsiteUrl(),\n $user->getCompanyName(),\n $user->getSubscriptionStatus(),\n $user->getSolution()\n ];\n }\n $values = [\"values\" => $userArr\n ];\n\n $requestBody = new \\Google_Service_Sheets_ValueRange($values);\n $response = $service->spreadsheets_values->append($this->spreadSheetId, $range, $requestBody, $param);\n\n }\n return true;\n }", "title": "" }, { "docid": "727e27ae8a7d2075ecbde6148eb9139a", "score": "0.50030947", "text": "public function reset(User $user, array $input): void\n {\n $user->forceFill([\n 'password' => Hash::make($input['password']),\n 'remember_token' => Str::random(60),\n ])->save();\n\n event(new PasswordReset($user));\n }", "title": "" }, { "docid": "f8d886345969a1b92cbb5716630db202", "score": "0.49974665", "text": "public function run()\n {\n $this->checkAuthorization(Manager::context(), 'ManageAccount');\n\n $user = $this->get_user();\n\n $this->form =\n new AccountForm(AccountForm::TYPE_EDIT, $user, $this->get_url(), $this->getAuthenticationValidator());\n\n if ($this->form->validate())\n {\n $success = $this->form->update_account();\n if (!$success)\n {\n if (isset($_FILES['picture_uri']) && $_FILES['picture_uri']['error'])\n {\n $neg_message = 'FileTooBig';\n }\n else\n {\n $neg_message = 'UserProfileNotUpdated';\n }\n }\n else\n {\n $neg_message = 'UserProfileNotUpdated';\n $pos_message = 'UserProfileUpdated';\n }\n $this->redirect(\n Translation::get($success ? $pos_message : $neg_message),\n ($success ? false : true),\n array(Application::PARAM_ACTION => self::ACTION_VIEW_ACCOUNT)\n );\n }\n else\n {\n return $this->renderPage();\n }\n }", "title": "" }, { "docid": "6825bbf39021fdeca6db524bd680b9c3", "score": "0.49898356", "text": "public function getAccount(): UserInterface {\n return $this->variables['account'];\n }", "title": "" }, { "docid": "c2fa97eb8e341b69e615566864c1bb74", "score": "0.49817333", "text": "public function update()\n {\n // if we have POST data to create a new User entry\n if (isset($_POST['submit_update_user'])) {\n // Instance new Model (Users)\n $User = new UsersModel();\n // do update() from model/model.php\n $User->update($_POST['login'], $_POST['senha'], $_POST['user_id']);\n }\n\n // where to go after User has been added\n header('location: ' . URL . 'users/index');\n }", "title": "" }, { "docid": "4497cd1725eed20541dc8f5c0f3eae62", "score": "0.49815357", "text": "public function loadUserByOAuthUserResponse(UserResponseInterface $response)\n {\n $email = $response->getEmail();\n\n if(null === $user = $this->userManager->findUserByEmail($email)){\n throw new AccountNotLinkedException(sprintf('User with email [%s] not found.', $email));\n }\n\n $resourceOwnerName = $response->getResourceOwner()->getName();\n $setter = 'set' . ucfirst($resourceOwnerName) . 'Id';\n\n if(!method_exists($user, $setter)){\n throw new \\RuntimeException(sprintf(\"No property defined for entity for resource owner '%s'.\", $resourceOwnerName));\n }\n\n $username = $response->getUsername();\n $user->$setter($username);\n\n $this->userManager->updateUser($user);\n\n return $user;\n }", "title": "" }, { "docid": "edc602d02f8e996a319fa14e71c57087", "score": "0.4976048", "text": "public function load() {\n\n if (strlen($this->name) > 0 && $this->exists) {\n $this->loadJSON();\n if (isset($this->json->roles)) {\n $this->roles = (array)$this->json->roles;\n }\n if (isset($this->json->password)) {\n $this->setPassword($this->json->password);\n }\n if (isset($this->json->email)) {\n $this->setEmail($this->json->email);\n }\n if (isset($this->json->first_name)) {\n $this->setFirstName($this->json->first_name);\n }\n if (isset($this->json->last_name)) {\n $this->setLastName($this->json->last_name);\n }\n }\n\n $vars = array('user' => &$this);\n $this->env->hook('user_load', $vars);\n }", "title": "" }, { "docid": "d527444217f9385760706b4ad52684c2", "score": "0.49731162", "text": "public function updateUser()\n {\n $sql = \"UPDATE users SET \n first_name = '{$this->first_name}',\n last_name = '{$this->last_name}',\n email_address = '{$this->email_address}',\n password = '{$this->password}'\n WHERE id = '{$this->user_id}'\";\n\n if (!$query = $this->dbc->query($sql)) {\n throw new Exception(\"Error! Cannot update user\" . $this->dbc->error);\n }\n }", "title": "" }, { "docid": "4adf5eafd1483d1827e15d6271d0fe6f", "score": "0.4966807", "text": "public function users()\n {\n $svcUpgradeUser = new Services_Upgrade_Users($this->_daoFactory, $this->_settings);\n $svcUpgradeUser->update();\n }", "title": "" }, { "docid": "8d6aa31f6fd2a61fbb636ccae4860632", "score": "0.49593902", "text": "function unify(){\r\n\r\n //checks if user is logged in\r\n $user = session('user');\r\n\r\n if ($user !== NULL){\r\n\r\n //get new user data\r\n $user = DB::table('users')->where('email', $user->email)->first();\r\n\r\n //save user data to session for use\r\n session(['user' => $user]);\r\n }\r\n }", "title": "" } ]
a1b1f9f920521f4c977e2c4b2c111292
Add in a default help method
[ { "docid": "ce2e098584403819a5139defa94c356a", "score": "0.7060855", "text": "private function attachHelp()\n {\n $this->option('help')\n ->describe('Show the help page for this command.')\n ->boolean();\n }", "title": "" } ]
[ { "docid": "fd740deeee33d5f75a880f4da7fdcc44", "score": "0.82939", "text": "public function new_help()\n {\n }", "title": "" }, { "docid": "fd740deeee33d5f75a880f4da7fdcc44", "score": "0.82939", "text": "public function new_help()\n {\n }", "title": "" }, { "docid": "fd740deeee33d5f75a880f4da7fdcc44", "score": "0.82939", "text": "public function new_help()\n {\n }", "title": "" }, { "docid": "4411e18476a3f25418898286c36ba740", "score": "0.82174414", "text": "protected function help()\n {\n }", "title": "" }, { "docid": "b6ee52ba6c78548612ca2ec382ba738e", "score": "0.8135704", "text": "abstract public function help();", "title": "" }, { "docid": "8765a2ac28ca5f49d4c8126516535c15", "score": "0.7983889", "text": "public function edit_help()\n {\n }", "title": "" }, { "docid": "8765a2ac28ca5f49d4c8126516535c15", "score": "0.7983889", "text": "public function edit_help()\n {\n }", "title": "" }, { "docid": "8765a2ac28ca5f49d4c8126516535c15", "score": "0.7983889", "text": "public function edit_help()\n {\n }", "title": "" }, { "docid": "0e65ba96f6ac325caf0401028847020a", "score": "0.7961549", "text": "abstract public function displayHelp();", "title": "" }, { "docid": "72f5f257f336f30603550c1832e4ada4", "score": "0.7949128", "text": "public function showHelp(){\n\n\t}", "title": "" }, { "docid": "30fa7f5667f36a3d7d7059b650e0a2b7", "score": "0.7937208", "text": "public function getHelp();", "title": "" }, { "docid": "30fa7f5667f36a3d7d7059b650e0a2b7", "score": "0.7937208", "text": "public function getHelp();", "title": "" }, { "docid": "670c5a699eeec430488835d18e99ba5f", "score": "0.78131723", "text": "public function help()\n {\n $this->viewHelp = true;\n }", "title": "" }, { "docid": "246296f7fc739f3d7168b9057fbf3fb2", "score": "0.7726267", "text": "function GetHelpAction()\n {\n return \"Help\";\n }", "title": "" }, { "docid": "7ce807c4230e56de43fce02b1ae87a66", "score": "0.7680813", "text": "private function defaultHelp() \n\t{\n\t\techo \"usage: {$this->_name} SUBCOMMAND [options] [args]\\n\";\n\t\techo \"Type '{$this->_name} help SUBCOMMAND' for help on a specific subcommand.\\n\\n\";\n\t\techo \"Available subcommands:\\n\";\n\t\t$actions = $this->_actions;\n\t\tforeach ($actions as $action => $args) \n\t\t{\n\t\t\t$args = implode(' ',$args);\t\n\t\t\techo \" $action $args\\n\";\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "8c91f30f472a14c9504abce5ccebc8c8", "score": "0.76725423", "text": "public function actionGetHelp();", "title": "" }, { "docid": "d3ffe052e98ae76965b4e500308be113", "score": "0.7508715", "text": "public function testDefaultHelp()\n {\n $command = new Command();\n $command->useDefaultHelp();\n }", "title": "" }, { "docid": "5d6055609af5eb7f261f40b7e1539c45", "score": "0.7452306", "text": "private function addHelpOption()\n {\n if (!isset($this->longOptions['help'])) {\n $this->add(['help', 'h', 'Display this screeen',\n 'callback' => function ($value, $options) {\n $options->displayManPage();\n die();\n }\n ]);\n }\n }", "title": "" }, { "docid": "77b577dbfeab8ef21ac6f6d059432d7a", "score": "0.73915297", "text": "public function addDefaultCommands()\n {\n $this->add(new Help);\n }", "title": "" }, { "docid": "68a81ff2f3c6b77a91035d89b451bc3c", "score": "0.7316339", "text": "function help() {\n\t \t$screen = get_current_screen();\n \n\t\t$screen->add_help_tab( array(\n\t\t\t'id' => 'sample-help', \n\t\t\t'title' => 'Sample Help',\n\t\t\t'content' => '<p>Help content goes here.</p>',\n\t\t) );\n\t }", "title": "" }, { "docid": "bdebc8a9abef198f394f66b62a7f3c15", "score": "0.73136234", "text": "function MyApp_Handle_Help()\n {\n $this->MyApp_Interface_Head();\n \n echo\n $this->H(1,\"Tópicos de Ajuda\").\n $this->MyApp_Handle_Help_Show();\n }", "title": "" }, { "docid": "27564a2340d6b933ecbe83ec5a8ad56d", "score": "0.7308513", "text": "public function help()\n\t{\n\t\tif ($this->type)\n\t\t{\n\t\t\t$class = __NAMESPACE__ . '\\\\Scaffolding\\\\' . ucfirst($this->type);\n\t\t\t$obj = new $class($this->output, $this->arguments);\n\n\t\t\t// Call the help method\n\t\t\t$obj->help();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->output = $this->output->getHelpOutput();\n\t\t\t$this\n\t\t\t\t->output\n\t\t\t\t->addOverview(\n\t\t\t\t\t'Create a new item scaffold. There are currently no arguments available.\n\t\t\t\t\tType \"muse scaffolding help [scaffolding type]\" for more details.');\n\t\t\t$this->output->render();\n\t\t}\n\t}", "title": "" }, { "docid": "2c0bef2ea211a7ea3d734500bc8c1360", "score": "0.7244691", "text": "public function getHelp() {\n return parent::getHelp() . ' [command-name]';\n }", "title": "" }, { "docid": "3d96ec6f87b485cf4d2b2e4d83ccab0f", "score": "0.72416025", "text": "static public function help() {\n\t\t$help = parent::help ();\n\t\t\n\t\t$help [__CLASS__] [\"text\"] = array ();\n\t\t\n\t\treturn $help;\n\t}", "title": "" }, { "docid": "3d96ec6f87b485cf4d2b2e4d83ccab0f", "score": "0.72416025", "text": "static public function help() {\n\t\t$help = parent::help ();\n\t\t\n\t\t$help [__CLASS__] [\"text\"] = array ();\n\t\t\n\t\treturn $help;\n\t}", "title": "" }, { "docid": "3d96ec6f87b485cf4d2b2e4d83ccab0f", "score": "0.72416025", "text": "static public function help() {\n\t\t$help = parent::help ();\n\t\t\n\t\t$help [__CLASS__] [\"text\"] = array ();\n\t\t\n\t\treturn $help;\n\t}", "title": "" }, { "docid": "3d96ec6f87b485cf4d2b2e4d83ccab0f", "score": "0.72416025", "text": "static public function help() {\n\t\t$help = parent::help ();\n\t\t\n\t\t$help [__CLASS__] [\"text\"] = array ();\n\t\t\n\t\treturn $help;\n\t}", "title": "" }, { "docid": "6706379ddb2769cdcaa2e8ada4664bec", "score": "0.72235036", "text": "function Help()\n\t{\n\t\t//Return a text description explaining the command's syntax and purpose.\n\t\t\n\t\treturn \"$this->name: $this->desc\\n(Syntax: \" .$this->bot->GetNick() .\", $this->name [CommandName])\";\n\t}", "title": "" }, { "docid": "f7b63536f06d72ba860cf93379136101", "score": "0.72226435", "text": "public function help()\n\t{\n\t\t// You could include a file and return it here.\n\t\treturn \"Some Help Stuff\";\n\t}", "title": "" }, { "docid": "fc8b0c57ecbfb8ae35ae51d2df1410ad", "score": "0.7192775", "text": "function help() {\n\t \t$screen = get_current_screen();\n \n\t\t$screen->add_help_tab( array(\n\t\t\t'id' => 'uvasom-help', \n\t\t\t'title' => 'UVA SOM Help',\n\t\t\t'content' => '<p>Help content goes here.</p>',\n\t\t) );\n\t }", "title": "" }, { "docid": "451012bad790798156627456e4d40360", "score": "0.7184333", "text": "private function help(): void\n {\n $this->output->writeln(' *** RUN - HELP ***');\n $this->output->writeln('');\n\n (new Help('...', $this->options, $this->output))->display();\n }", "title": "" }, { "docid": "194fe7ce56ae7b44854489bc802e6eab", "score": "0.71667206", "text": "public function help()\n\t{\n\t\t// You could include a file and return it here.\n\t\treturn \"No documentation has been added for this module.<br />Contact the module developer for assistance.\";\n\t}", "title": "" }, { "docid": "45fb9ed1230d0f058075d4790f3061e5", "score": "0.7151195", "text": "public function helpAction ()\r\n\t{\t\t\r\n\t\techo \"\\n./cli doc [help|build]\\n\\n\";\r\n\t}", "title": "" }, { "docid": "51c2059129e9187d356e43b6c6e98099", "score": "0.71112275", "text": "public function help_text()\n {\n return '';\n }", "title": "" }, { "docid": "12b9cf8c2be61469df794872de8507c4", "score": "0.7111193", "text": "public function actionHelp()\n {\n // using the main layout 'protected/views/layouts/main.php'\n $this->render('help');\n }", "title": "" }, { "docid": "734ca0f9ff83e28b5b5820b8b3a8430d", "score": "0.7107342", "text": "static public function help() {\n\t\t$help = parent::help ();\n\t\t\n\t\t$help [__CLASS__] [\"text\"] = array ();\n\t\t$help [__CLASS__] [\"text\"] [] .= \"--template_class\";\n\t\t\n\t\treturn $help;\n\t}", "title": "" }, { "docid": "44551d52f7b5f4ca60f98b93d2d0440b", "score": "0.703916", "text": "function GetHelp()\r\n\t{\r\n\t\treturn $this->Lang(\"help\");\r\n\t}", "title": "" }, { "docid": "6adb90e6c881284d6389549e541cfbc4", "score": "0.7027958", "text": "function help($message = null) {\n if (isset($message))\n echo $message.NL.NL;\n\n $self = basename($_SERVER['PHP_SELF']);\n\necho <<<HELP\n\n Syntax: $self [symbol ...]\n\n Options: -v Verbose output.\n -vv More verbose output.\n -vvv Very verbose output.\n -h This help screen.\n\n\nHELP;\n}", "title": "" }, { "docid": "9f3978495c5b7297b88dd288f2f7c760", "score": "0.7025648", "text": "function Help()\n\t{\n\t\t//Return a text description explaining the command's syntax and purpose.\n\t\treturn \"$this->name: $this->desc\\n(This should only be invoked by the server.)\";\n\t}", "title": "" }, { "docid": "a0072caa27f16484e2710d76f551f0a8", "score": "0.7012014", "text": "function main() {\n\t\t$this->help();\n\t}", "title": "" }, { "docid": "a0072caa27f16484e2710d76f551f0a8", "score": "0.7012014", "text": "function main() {\n\t\t$this->help();\n\t}", "title": "" }, { "docid": "f7fe39a7f61083f0849fa3629d485869", "score": "0.70001245", "text": "function MyApp_Handle_Help_Has()\n {\n return True;\n }", "title": "" }, { "docid": "921ebd2a98170bc85164ca439378454f", "score": "0.69855905", "text": "public function help()\n {\n // You could include a file and return it here.\n return \"<h4>Overview</h4>\";\n }", "title": "" }, { "docid": "fefdfb7e62f871a02fe080ddb340cfa0", "score": "0.69852185", "text": "public function index()\n {\n $this->help();\n }", "title": "" }, { "docid": "fefdfb7e62f871a02fe080ddb340cfa0", "score": "0.69852185", "text": "public function index()\n {\n $this->help();\n }", "title": "" }, { "docid": "338587021daf5ce94634600c04d24e53", "score": "0.69459313", "text": "public function shortHelp()\n {\n $this->line('No help for this command');\n }", "title": "" }, { "docid": "e031e8667f20b1f0ca37bbf9d7d73e1c", "score": "0.69458103", "text": "public function main() {\n\t\t$this->help();\n\t}", "title": "" }, { "docid": "f3316cdc6d13a972e480822d1800d169", "score": "0.6933145", "text": "public function add_help_tabs() {}", "title": "" }, { "docid": "447901fde95333d5be1df694d5acb551", "score": "0.6926091", "text": "public function getHelp()\n {\n echo <<<EOS\nn/a\nEOS;\n }", "title": "" }, { "docid": "9376f60244ee4f10b1c23436c511f152", "score": "0.69133264", "text": "public static function help() {\n\t\tWP_CLI::line( <<<EOB\n\nEOB\n );\n }", "title": "" }, { "docid": "0ffce1a4fbebebdd85e4a44e68899081", "score": "0.69041806", "text": "public static function help()\n\t{\n\t\t// show some ... help!\n\t\texit();\n\t}", "title": "" }, { "docid": "34e7ed41954367a0b7ac0fc4bfd9233f", "score": "0.6901606", "text": "public function getExtendedHelpMessage()\n {\n return 'extended help message';\n }", "title": "" }, { "docid": "b49acae56d6aa622640956435c7cf3ba", "score": "0.6888204", "text": "function HandleHelp()\n { \n return $this->ApplicationObj->HandleHelp();;\n }", "title": "" }, { "docid": "6b550edf154f67009ee1027306780515", "score": "0.6849461", "text": "public function help()\n\t{\n\t\t$this\n\t\t\t->output\n\t\t\t->addOverview(\n\t\t\t\t'Store shared configuration variables used by the command line tool.\n\t\t\t\tThese will, for example, be used to fill in docblock stubs when\n\t\t\t\tusing the scaffolding command.'\n\t\t\t)\n\t\t\t->addTasks($this)\n\t\t\t->addArgument(\n\t\t\t\t'--{keyName}',\n\t\t\t\t'Sets the variable keyName to the given value.',\n\t\t\t\t'Example: --name=\"John Doe\"'\n\t\t\t);\n\t}", "title": "" }, { "docid": "9a24649f640a3462fdd751eb14a541a5", "score": "0.68374914", "text": "function helpdesk_simple_helpbutton($title, $name, $return=true) {\n global $CFG;\n $result = helpbutton($name, $title, 'block_helpdesk', true, false, '', $return);\n return $result;\n\n}", "title": "" }, { "docid": "24ce5219c831b081a58bfcf7d81389f8", "score": "0.68237466", "text": "public function set_help() {\n\t\t$screen = get_current_screen();\n\n\t\t$screen->add_help_tab(\n\t\t\tarray(\n\t\t\t\t'id' => 'basic-help',\n\t\t\t\t'title' => __( 'Issue categories', 'wordpress-seo' ),\n\t\t\t\t'content' => '<p><strong>' . __( 'Desktop', 'wordpress-seo' ) . '</strong><br />' . __( 'Errors that occurred when your site was crawled by Googlebot.', 'wordpress-seo' ) . '</p>'\n\t\t\t\t\t\t\t. '<p><strong>' . __( 'Smartphone', 'wordpress-seo' ) . '</strong><br />' . __( 'Errors that occurred only when your site was crawled by Googlebot-Mobile (errors didn\\'t appear for desktop).', 'wordpress-seo' ) . '</p>'\n\t\t\t\t\t\t\t. '<p><strong>' . __( 'Feature phone', 'wordpress-seo' ) . '</strong><br />' . __( 'Errors that only occurred when your site was crawled by Googlebot for feature phones (errors didn\\'t appear for desktop).', 'wordpress-seo' ) . '</p>',\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "a733dff08a77502ed3e7531322fccb85", "score": "0.6811099", "text": "private function action_help($subcommand=null) \n\t{\n\t\tif (isset($subcommand)) \n\t\t{\n\t\t\treturn $this->subcommandHelp($subcommand);\n\t\t}\n\t\treturn $this->defaultHelp();\n\t}", "title": "" }, { "docid": "e1825ecac734e9303ea70e7c81a4f8d0", "score": "0.6789168", "text": "public abstract function getHelpUrl();", "title": "" }, { "docid": "0d7f1479d5059071d16bdab9a23ed19d", "score": "0.6769353", "text": "public function help()\n\t{\n\t\treturn <<<HELP\n\nThe print task\n\nHELP;\n\t}", "title": "" }, { "docid": "a5aa1e4832a3c1f7c4bca7e183ca6812", "score": "0.67634976", "text": "public function help()\n {\n return \"Here you can enter HTML with paragrpah tags or whatever you like\";\n \n // or\n \n // You could include a file and return it here.\n return $this->load->view('help', null, true); // loads modules/sample/views/help.php\n }", "title": "" }, { "docid": "950ede734d1fcc0684250bc24392381a", "score": "0.6761608", "text": "public function help()\n\t\t{\n\t\t\thelper::writeLine(helper::getSeparator());\n\t\t\thelper::writeLine(\"TYPE ONE OF THE FOLLOWING COMMANDS:\\n\");\n\t\t\thelper::writeLine(E_SYNC_ROOT.\" \".IMPORTER_ROOT.\" import auto\\t\\t\\t\\tImports all active resources that have to be imported now\");\n\t\t\thelper::writeLine(E_SYNC_ROOT.\" \".IMPORTER_ROOT.\" import all\\t\\t\\t\\tImports all active resources\");\n\t\t\thelper::writeLine(E_SYNC_ROOT.\" \".IMPORTER_ROOT.\" import [resource_name]\\t\\tImports [resource_name] if exists and is active\");\n\t\t\thelper::writeLine(helper::getSeparator());\n\t\t}", "title": "" }, { "docid": "693688a3fbd04b79639dba764dfda885", "score": "0.674816", "text": "public function displayHelp() {\n $obj = CommandLineWriter::getInstance();\n $obj->addText('./migrate.php recreate');\n $obj->addText('Creates migration table');\n }", "title": "" }, { "docid": "09f35bc7372ad754b50a862123380e0d", "score": "0.67239404", "text": "public function getHelp()\n {\n return $this->help;\n }", "title": "" }, { "docid": "70ea0668a4cf3b0f4e09ba89325c47eb", "score": "0.6722355", "text": "public function help()\n\t{\n\t\tif(!isset($this->help))\n\t\t\treturn '';\n\n\t\t$html = sprintf('<a href=\"%s\" target=\"%s\" class=\"helper\" title=\"%s\">%s</a>', $this->help_url,\n\t\t\t$this->help_target, htmlentities($this->help), $this->help_display);\n\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "aea3da9e233957c9123cb79369dcb4a7", "score": "0.67181075", "text": "public function page_help() {\n\n\t\tinclude( plugin_dir_path( __FILE__ ) . 'partials/nfl-teams-help.php' );\n\n\t}", "title": "" }, { "docid": "c4051367b8f9ac6bf74a6b8c34277949", "score": "0.6710467", "text": "public function help()\n {\n $this->setGlobalIndent(0);\n echo $this->yellow->render('Usage:');\n echo $this(' phillip [options] [file|directory]');\n\n echo $this('');\n echo $this->yellow->render('Options:');\n echo $this(' -h, --help Show help text and exit.');\n echo $this(' -v, --version Show version information and exit.');\n echo $this(' -c, --coverage Show coverage data.');\n echo $this(' -s, --suite <suite> Run a predefined test suite.');\n echo $this(' -r, --random Run tests within each suite in random order.');\n }", "title": "" }, { "docid": "48e992a01160f3c7f7f663b37b667f9d", "score": "0.6707859", "text": "public function getHelp() : string\n {\n return self::$logo . parent::getHelp();\n }", "title": "" }, { "docid": "f38d00f76e01705120fa61c094a3eb07", "score": "0.66812783", "text": "public function help()\n {\n // You could include a file and return it here.\n return '<p>Manage settings from streams. go to <a href=\"'.site_url('admin/streams').'\">Streams</a> to manage settings.</p>';\n }", "title": "" }, { "docid": "28bf3dd50a9c8af859dda4a6949982e8", "score": "0.667265", "text": "public function getHelp()\n\t{\n\t\treturn $this->run(array('help'));\n\t}", "title": "" }, { "docid": "d9380ed1817b5b7dbd41b35f7078779a", "score": "0.66622144", "text": "private function printHelp() {\n\t\t$this->info(\"FizzBuzz Client Help\");\n\t\t$this->line(\"Select the oprations you desire to execute by introducing the action number in brakets on the menu.\");\n\t\t$this->info(\"Navigation\");\n\t\t$this->line(\"Yo can navigate the pagination by using Go to page [3] command and introducing page number, if page number is invalid the app will default back to page 1\");\n\t\t$this->info(\"Favorites\");\n\t\t$this->line(\"You can add or remove to favories by using option [5] and indicating the ID of the item you desire to save or remove.\");\n\t\t$this->line(\"If the item is not already added into the favorites will be added however if the item is alredy on the favorite list will be removed.\");\n\t\t$this->info(\"Pagination\");\n\t\t$this->line(\"You can specified the size of list to display by using option [2]. If the size is negative or out of bounds (100,000,000,000) will default to 100 which is the default value.\");\n\t\t$this->printMenu();\n\t}", "title": "" }, { "docid": "989901307f62718ec2b1a3e80a104bad", "score": "0.6644972", "text": "public function help()\n {\n $help = file_get_contents(BUILTIN_SHELL_HELP . 'cache.txt');\n $this->put($help);\n }", "title": "" }, { "docid": "66d0e3a0e093f613d3f59e466fa8452f", "score": "0.6614204", "text": "public static function help($subtool=null) {\n\t\treturn \n'help - Help function\n<b>Usage:</b> help [TOOL|SERVICE [EXTRA]*]\nShow help for using a particular TOOL or SERVICE.\nIf extra information is available for that TOOL or SERVICE, the EXTRA argument \ncan be used to select it.\n';\n\t}", "title": "" }, { "docid": "28ae798564dfd1252d9b2f00ebfccc14", "score": "0.65941274", "text": "public function help()\n\t{\n\t\treturn \"The shop module.\";\n\t}", "title": "" }, { "docid": "a4aaa83aa45db35d5bc204c46fb464bb", "score": "0.6586469", "text": "public function help()\n\t{\n\t\t// You could include a file and return it here.\n\t\treturn \"This modules manages the Mariner Certificates.\";\n\t}", "title": "" }, { "docid": "c8aaa6dcfa6b49ddc2ea3e1d0a785544", "score": "0.6579459", "text": "function help() {\n $head = \"Usage: postfixadmin-cli alias <task> [<address>] [] [-m <method>]\\n\";\n $head .= \"-----------------------------------------------\\n\";\n $head .= \"Parameters:\\n\\n\";\n\n $commands = array(\n 'task' => \"\\t<task>\\n\" .\n \"\\t\\tAvailable values:\\n\\n\".\n \"\\t\\t\".sprintf(\"%-20s %s\", \"view: \", \"View an existing alias.\").\"\\n\".\n \"\\t\\t\".sprintf(\"%-20s %s\", \"add: \", \"Adds an alias.\").\"\\n\".\n \"\\t\\t\".sprintf(\"%-20s %s\", \"update: \", \"Updates an alias.\").\"\\n\".\n \"\\t\\t\".sprintf(\"%-20s %s\", \"delete: \", \"Deletes an alias\").\"\\n\",\n 'address' => \"\\t[<address>]\\n\" .\n \"\\t\\tA address of recipient.\\n\",\n );\n\n $this->out($head);\n if (!isset($this->args[1])) {\n foreach ($commands as $cmd) {\n $this->out(\"{$cmd}\\n\\n\");\n }\n } elseif (isset($commands[low($this->args[1])])) {\n $this->out($commands[low($this->args[1])] . \"\\n\\n\");\n } else {\n $this->out(\"Command '\" . $this->args[1] . \"' not found\");\n }\n }", "title": "" }, { "docid": "a3022c07e89cd8d4a6ff5a3fd53d8939", "score": "0.6573963", "text": "public function help() {\n $this->out(__d('users', \"Users Shell\"));\n $this->out(\"\");\n $this->out(__d('users', \"\\tCreate users.\"));\n $this->out(\"\");\n $this->out(__d('users', \"\\tUse:\"));\n $this->out(__d('users', \"\\t\\tcake user create\"));\n $this->out(\"\");\n $this->out(__d('users', \"\\tExample Use:\"));\n $this->out(__d('users', \"\\t\\tcake Users.user create\"));\n $this->out(\"\");\n $this->hr();\n $this->out(\"\");\n }", "title": "" }, { "docid": "b966f73d4edbd1f9e1c3bf95ea5aaf0f", "score": "0.65695983", "text": "public function contextual_help() {\n\t\tWP_Contextual_Help::init();\n\t\t// Only display on the pages - post.php and post-new.php, but only on the `demo` post_type\n\t\tWP_Contextual_Help::register_tab(\n 'demo-example', __( 'Demo Management', LP_TEXTDOMAIN ), array(\n\t\t\t'page' => array( 'post.php', 'post-new.php' ),\n\t\t\t'post_type' => 'demo',\n\t\t\t'wpautop' => true,\n\t\t)\n );\n\n\t\t// Add to a custom plugin settings page\n\t\tWP_Contextual_Help::register_tab(\n 'lp_settings', __( 'Boilerplate Settings', LP_TEXTDOMAIN ), array(\n\t\t\t'page' => 'settings_page_' . LP_TEXTDOMAIN,\n\t\t\t'wpautop' => true,\n\t\t)\n );\n\t}", "title": "" }, { "docid": "f12314ca077ab9530af9d1d9f3c2b38a", "score": "0.65566576", "text": "public function help()\r\n\t{\r\n\t\t$help = \"\";\r\n\t\treturn $help;\r\n\t}", "title": "" }, { "docid": "dc5608eda094b026eecbef8389cb74d2", "score": "0.6555992", "text": "public function add_the_contextual_help() {\n\t\t\techo prince_contextual_help_view( esc_attr( $_REQUEST['name'] ), esc_attr( $_REQUEST['count'] ) );\n\t\t\tdie();\n\t\t}", "title": "" }, { "docid": "c228eaaa5af96396b2fd679bd0132c99", "score": "0.6555597", "text": "public function actionHelp()\n {\n $help[] = array( 'allowed actions' => 'get / post / put');\n\n $get = array( 'action' => 'get', 'access' => 'unrestricted', 'routes' => array() );\n $get['routes'][] = array('todos os endpoints disponiveis' => 'users/help',);\n $help[] = $get;\n\n $get = array( 'action' => 'post', 'access' => 'unrestricted', 'routes' => array() );\n $get['routes'][] = array('registo de um user' => 'user/registo',\n 'login de um user' => 'user/login');\n $help[] = $get;\n\n $get = array( 'action' => 'post', 'access' => 'unrestricted', 'routes' => array() );\n $get['routes'][] = array('registo de um user' => 'user/registo',\n 'login de um user' => 'user/login');\n $help[] = $get;\n\n return array($help);\n }", "title": "" }, { "docid": "2cab6d88cef5f7c70e7f34ec957a634f", "score": "0.65549237", "text": "public function usageHelp()\n {\n return <<<USAGE\nUsage: php -f addAttrToSet.php -- [options]\n\n --attr <Attribute code>\n\n help This help\nUSAGE;\n }", "title": "" }, { "docid": "f9e27c2b6119cde4722e1743e9ea5025", "score": "0.65475726", "text": "function get_help_text() {\r\n\t\treturn $this->help_text;\r\n\t}", "title": "" }, { "docid": "aa770879bafea84cd812d235755153ce", "score": "0.6529387", "text": "public static function help()\n\t{\n\t\t$output = <<<HELP\n\nDescription:\n Task of Ratchet Server\n\nCommands:\n php oil refine ratchet:ws <class_name>\n php oil refine ratchet:wamp <class_name>\n php oil refine ratchet:help\n\nHELP;\n\t\t\\Cli::write($output);\n\t}", "title": "" }, { "docid": "93b1d2d5d93f6fba22b2d7fa31093ef5", "score": "0.65141034", "text": "public function getCommandHelp()\n {\n return <<<HELP\n\n\\e[33mAllows to clean or regenerate classmap of the web application.\\e[0m\n\n\\e[36mThe use cases:\\e[0m\n\n 1. \\e[32mcfg classmap create\\e[0m\n \n Regenerates the classmap file according to the settings of the configuration file(s).\n\n 2. \\e[32mcfg classmap clean\\e[0m\n\n Cleans the classmap.\n\nHELP;\n }", "title": "" }, { "docid": "3a5e1b8e6eda8a9d9e85853de4f16c00", "score": "0.65137964", "text": "function getHelpButton(){\n return $this->_helpbutton;\n }", "title": "" }, { "docid": "87230831c257fd8667fe6e976693d43f", "score": "0.65115196", "text": "function help()\n {\n\n global $argv;\n\n print $argv[0] . \" [ --dry-run | --update ] --verbose ]\\n\";\n print $argv[0] . \" [ [ -d | -U ] -v ]\\n\";\n }", "title": "" }, { "docid": "d3fd1ee1bb2683d200a5caa4feadad73", "score": "0.6488962", "text": "public static function run()\n\t{\n\t\tstatic::help();\n\t}", "title": "" }, { "docid": "62a49fdd65d6aad0b3fb8cb7392fbde3", "score": "0.64687634", "text": "public function help()\n {\n $help = file_get_contents(BUILTIN_SHELL_HELP . 'destroy.txt');\n $this->put($help);\n }", "title": "" }, { "docid": "ab68b700cb81a8d59699f336268f57b4", "score": "0.64650965", "text": "function bbp_admin_tools_reset_help()\n{\n}", "title": "" }, { "docid": "612eb2a8a4814f0b0581b210afc9b104", "score": "0.64637786", "text": "function help() {\n\t \t$screen = get_current_screen();\n\n\t\t$screen->add_help_tab( array(\n\t\t\t'id' => 'mustsee-footer-help',\n\t\t\t'title' => 'Must See Footer',\n\t\t\t'content' => '<p>Use the editors below to customize the content of the footer left, footer right, and disclaimer.</p>',\n\t\t) );\n\t }", "title": "" }, { "docid": "67c40858194d97177d8a50d628cdd61b", "score": "0.6450891", "text": "private function createCommandHelp() {\n echo \"The PHP Farm - a simple command line animals app\" . PHP_EOL;\n echo PHP_EOL;\n echo \"Command Usage:\" . PHP_EOL;\n echo \" [create | c] <name=> <type=> creates a animal with name\" . PHP_EOL;\n echo PHP_EOL;\n echo \"Examples:\" . PHP_EOL;\n echo \" php Main.php [create | c] name=my_animal_name\" . PHP_EOL;\n echo \" php Main.php [create | c] name=my_animal_name type=pig\" . PHP_EOL;\n }", "title": "" }, { "docid": "eba409680355d23aebf0bb74451f4377", "score": "0.6448547", "text": "public function html_help()\n {\n\t\t$controller=$this->input->post('cname');\n\t\t$method =$this->input->post('mname');\n\t\t//get ids from names\n\t\t//$use_default=false;\n\t\t$ctr = $this->permissions_model->get_controller_id_by_name($controller);\n\t\tif(!isset($ctr[0])) \n\t\t{\n\t\t\t//these wont be found on the welcome screen, for example\n\t\t\t//$use_default=true;\n\t\t\treturn;\n\t\t}\n\t\t$DEFAULT='default.php';\n\t\t$c_id = $ctr[0]['controller_id'] ;\n\t\t$meth = $this->permissions_model->get_method_id_by_name($method,$c_id);\n\t\tif(!isset($meth[0])) {return;}\n\t\t$m_id = $meth[0]['method_id'];\n\t\t//get the help file data\n\t\t$file_data = $this->endeavor_model->get_help($c_id,$m_id);\n\t\t\n\t\t$help = (count($file_data)==0 \n\t\t\t|| !isset($file_data[0]['data'])//if not defined or no file exists\n\t\t\t|| !@file_exists(APPPATH.\"views/help/\".$file_data[0]['data']) )\n\t\t\t? $DEFAULT//a default view if no help file is found\n\t\t\t: $file_data[0]['data'] ;//use the file saved in db\n\t\t\n\t\t//to change the file above, go to maintenance and use the help form (middle table, bottom left)\n\t\t//tehy are stored in system.sys_help table\n \t\t\n \t\tIF($help === $DEFAULT)\n \t\t{\n\t\t\t//if we are loading default view, then check these hardcoded guys \n\t\t\t//EVENTUALLY, these data values would possibly be stored in database\n\t\t\t//attached to this window method OR this help screen,\n\t\t\t//put there by some bulider\n\t\t\t\n\t\t\t\n\t\t\t//the array varaibles - in future would be column names\n\t\t\t$iconIdx='iconCls';\n\t\t\t$dataIdx='data';\n\t\t\t\n\t\t\t$data['iconIdx']=$iconIdx;\n\t\t\t$data['dataIdx']=$dataIdx;\n\t\t\t \n\t\t\t$help_data=array();\n\t\t\t\n\t\t\t\n\t\t\t//mimics a database call, for now this method is just a SWITCH statement\n\t\t\t$data['help_data']=$this->get_window_help_data($controller,$method);\n\t\t\t\n\t\t\t$data['right']=array();//data for right panel?\n\t\t\t\n \t\t}\n \t\t\n \t\t\n\t\t \n\t\t$data['hidden']=array('controller_id'=>$m_id,'method_id'=>$m_id,'method_name'=>$controller.'/'.$method);//not really used\n\t\t\n\t\t$this->load->view('/help/'.$help,$data);\n }", "title": "" }, { "docid": "a51fc6bc69837e0abfb9b201b0c22e59", "score": "0.6443626", "text": "static public function help() {\n\t\t$help = parent::help ();\n\t\t$help [__CLASS__] [\"text\"] = array ();\n\t\t$help [__CLASS__] [\"text\"] [] .= \"pingdom Wsclient :\";\n\t\t$help [__CLASS__] [\"text\"] [] .= \"\\t--dry-run n'applique pas les changements\";\n\t\t$help = array_merge ( $help, pingdom_datas::help () );\n\t\treturn $help;\n\t}", "title": "" }, { "docid": "c72288bcb79c06c671fa2dcad607bf8e", "score": "0.6436905", "text": "public function getSource()\n {\n return 'help';\n }", "title": "" }, { "docid": "b89aa56d8b677879d539d96448918931", "score": "0.64205503", "text": "function displayHelp() {\r\n\t\treturn $this->pi_getLL('wrong_display_code');\r\n\t}", "title": "" }, { "docid": "2546998f5a9b6002b15c3d21f5d5a200", "score": "0.6401946", "text": "function hook_help($path, $arg) {\n switch ($path) {\n // Main module help for the block module\n case 'admin/help#block':\n return '<p>' . t('Blocks are boxes of content rendered into an area, or region, of a web page. The default theme Bartik, for example, implements the regions \"Sidebar first\", \"Sidebar second\", \"Featured\", \"Content\", \"Header\", \"Footer\", etc., and a block may appear in any one of these areas. The <a href=\"@blocks\">blocks administration page</a> provides a drag-and-drop interface for assigning a block to a region, and for controlling the order of blocks within regions.', array('@blocks' => url('admin/structure/block'))) . '</p>';\n\n // Help for another path in the block module\n case 'admin/structure/block':\n return '<p>' . t('This page provides a drag-and-drop interface for assigning a block to a region, and for controlling the order of blocks within regions. Since not all themes implement the same regions, or display regions in the same way, blocks are positioned on a per-theme basis. Remember that your changes will not be saved until you click the <em>Save blocks</em> button at the bottom of the page.') . '</p>';\n }\n}", "title": "" }, { "docid": "2f68862f9375534c90264c9ea0ca8ec4", "score": "0.6387598", "text": "public function displayHelp()\n\t{\n\t\t$obj = MpmCommandLineWriter::getInstance();\n\t\t$obj->addText('./migrate.php list [page] [per page]');\n\t\t$obj->addText(' ');\n\t\t$obj->addText('This command is used to display a list of all the migrations available. Each migration is listed by number and timestamp. You will need the migration number in order to perform an up or down migration.');\n\t\t$obj->addText(' ');\n\t\t$obj->addText('Since a project may have a large number of migrations, this command is paginated. The page number is required. If you do not enter it, the command will assume you want to see page 1.');\n\t\t$obj->addText(' ');\n\t\t$obj->addText('If you do not provide a per page argument, this command will default to 30 migrations per page.');\n\t\t$obj->addText(' ');\n\t\t$obj->addText('Valid Examples:');\n\t\t$obj->addText('./migrate.php list', 4);\n\t\t$obj->addText('./migrate.php list 2', 4);\n\t\t$obj->addText('./migrate.php list 1 15', 4);\n\t\t$obj->write();\n\t}", "title": "" }, { "docid": "cdfee48abec07b7d6312cc348d7202a9", "score": "0.6366698", "text": "function help($ModulName){\n\t\techo $hilfe_array[$ModulName];\n }", "title": "" }, { "docid": "e0b632713ec70f713134b028b07e7b2e", "score": "0.63655335", "text": "public function help() \n\t{\n\t\t$help = _t( 'To use, add <code>&lt;?php $theme->tag_links(); ?&gt;</code> to your theme where you want the list output.' );\n\t\treturn $help;\n\t}", "title": "" }, { "docid": "bc94c203282e7bc602520c1173ac7c7a", "score": "0.63555145", "text": "protected function helpMsg()\n {\n \n foreach($this->defaultOptions as $array) {\n \n foreach($array['options'] as $option) {\n \n CliColors::render($option . PHP_EOL, CliColors::FG_GREEN);\n \n }\n \n print(\"\\t\\t\\t\");\n \n CliColors::render($array['description'] . PHP_EOL, CliColors::FG_YELLOW);\n \n }\n \n exit();\n \n }", "title": "" } ]
03afdc2a1bd635b180e80ccaf4a63f45
change Search Form input type from "text" to "search" and add placeholder text
[ { "docid": "67443906c66510781f960cafbadcac77", "score": "0.6291936", "text": "function boilerplate_search_form ( $form ) {\n\t\t$form = '<form role=\"search\" method=\"get\" id=\"searchform\" action=\"' . home_url( '/' ) . '\" >\n\t\t<div><label class=\"screen-reader-text\" for=\"s\">' . __('Search for:') . '</label>\n\t\t<input type=\"search\" placeholder=\"Search for...\" value=\"' . get_search_query() . '\" name=\"s\" id=\"s\" />\n\t\t<input type=\"submit\" id=\"searchsubmit\" value=\"'. esc_attr__('Search') .'\" />\n\t\t</div>\n\t\t</form>';\n\t\treturn $form;\n\t}", "title": "" } ]
[ { "docid": "c8f7f959f6b27df18a35869bea769238", "score": "0.6754016", "text": "public function search_field()\n {\n $form = '';\n return $form;\n\n }", "title": "" }, { "docid": "85ede2de6d41105859692ed85e4b1a1e", "score": "0.66486096", "text": "function _searchform(){\n global $lang, $INPUT;\n echo '<form action=\"\" method=\"post\"><div class=\"no\">';\n echo '<label>'.$this->getLang('filter').': </label>';\n echo '<input type=\"text\" name=\"filter\" class=\"edit\" value=\"'.hsc($INPUT->str('filter')).'\" />';\n echo ' <input type=\"submit\" class=\"button\" value=\"'.$lang['btn_search'].'\" />';\n echo ' <span>'.$this->getLang('note1').'</span>';\n echo '</div></form><br /><br />';\n }", "title": "" }, { "docid": "1e7c5bad3c43194965069520ecc8c785", "score": "0.65618265", "text": "public function search() {\n\t\techo $this->form();\n\t\t$this->set('search', true);\n\t\t$this->getView()->render('search_form');\n\t}", "title": "" }, { "docid": "15f40c31afc402cb2dc86d45d6ac1562", "score": "0.6538518", "text": "function ashe_custom_search_form( $html ) {\n\n\t$html = '<form role=\"search\" method=\"get\" id=\"searchform\" class=\"clear-fix\" action=\"'. esc_url( home_url( '/' ) ) .'\">';\n\t$html .= '<input type=\"search\" name=\"s\" id=\"s\" placeholder=\"'. esc_attr__( 'Search...', 'ashe' ) .'\" data-placeholder=\"'. esc_attr__( 'Type then hit Enter...', 'ashe' ) .'\" value=\"'. get_search_query() .'\" />';\n\t$html .= '<i class=\"fa fa-search\"></i>';\n\t$html .= '<input type=\"submit\" id=\"searchsubmit\" value=\"st\" />';\n\t$html .= '</form>';\n\n\treturn $html;\n}", "title": "" }, { "docid": "c499d5d5f9565d566ebd306deb9d15c2", "score": "0.65358496", "text": "function wpbootstrap_wpsearch($form) {\r\n $form = '<form class=\"navbar-search pull-right\" role=\"search\" method=\"get\" id=\"searchform\" action=\"' . home_url( '/' ) . '\" >\r\n <input class=\"search-query\" type=\"text\" value=\"' . get_search_query() . '\" name=\"s\" id=\"s\" placeholder=\"Search\" />\r\n </form>';\r\n return $form;\r\n}", "title": "" }, { "docid": "31b1c4f91c00246d8a19d7b7d6f6718e", "score": "0.65000236", "text": "function ashe_custom_search_form( $html )\n{\n $html = '<form role=\"search\" method=\"get\" id=\"searchform\" class=\"clear-fix\" action=\"' . esc_url( home_url( '/' ) ) . '\">';\n $html .= '<input type=\"search\" name=\"s\" id=\"s\" placeholder=\"' . esc_attr__( 'Search...', 'ashe-pro' ) . '\" data-placeholder=\"' . esc_attr__( 'Type & hit Enter...', 'ashe-pro' ) . '\" value=\"' . get_search_query() . '\" />';\n $html .= '<span class=\"svg-fa-wrap\"><i class=\"fa fa-search\"></i></span>';\n $html .= '<input type=\"submit\" id=\"searchsubmit\" value=\"st\" />';\n $html .= '</form>';\n return $html;\n}", "title": "" }, { "docid": "718aae73e584897327f5a75fee9836ed", "score": "0.647607", "text": "function bones_wpsearch($form) {\n $form = '<form role=\"search\" method=\"get\" id=\"searchform\" action=\"' . home_url( '/' ) . '\" >\n <label class=\"screen-reader-text\" for=\"s\">' . __('', 'bonestheme') . '</label>\n <input type=\"text\" value=\"' . get_search_query() . '\" name=\"s\" id=\"s\" placeholder=\"'.esc_attr__('Search the Site...','bonestheme').'\" />\n <input type=\"submit\" id=\"searchsubmit\" value=\"'. esc_attr__('Search') .'\" />\n </form>';\n return $form;\n}", "title": "" }, { "docid": "8f37f8d2da8bd028990ef6c6a5d411e6", "score": "0.6447382", "text": "function bones_wpsearch($form) {\n\n $form = '<form role=\"search\" method=\"get\" id=\"searchform\" action=\"' . home_url( '/' ) . '\" >\n\n <label class=\"screen-reader-text\" for=\"s\">' . __('Search for:', 'bonestheme') . '</label>\n\n <input type=\"text\" value=\"' . get_search_query() . '\" name=\"s\" id=\"s\" placeholder=\"'.esc_attr__('Search the Site...','bonestheme').'\" />\n\n <input type=\"submit\" id=\"searchsubmit\" value=\"'. esc_attr__('Search') .'\" />\n\n </form>';\n\n return $form;\n\n}", "title": "" }, { "docid": "1793ab795c36bfc2959c7520884282ed", "score": "0.6435501", "text": "function islandimagined_form_alter(&$form, &$form_state, $form_id) {\n\tif($form_id == \"islandora_solr_simple_search_form\"){\n\t\t$form['simple']['islandora_simple_search_query']['#default_value'] = t('Search IslandScholar:'); // Set a default value for the textfield\n\t\t$form['simple']['islandora_simple_search_query']['#attributes']['onblur'] = \"if (this.value == '') {this.value = 'Search IslandScholar:';}\";\n\t\t$form['simple']['islandora_simple_search_query']['#attributes']['onfocus'] = \"if (this.value == 'Search IslandScholar:') {this.value = '';}\";\n\t}\n}", "title": "" }, { "docid": "446f33e128ec8f887bb71977f46c8af5", "score": "0.641826", "text": "function jbb_wpsearch($form) {\n\t$form = '<form role=\"search\" method=\"get\" id=\"searchform\" action=\"' . home_url( '/' ) . '\" >\n\t<label class=\"screen-reader-text\" for=\"s\">' . __('Search for:', 'jbbtheme') . '</label>\n\t<input type=\"text\" value=\"' . get_search_query() . '\" name=\"s\" id=\"s\" placeholder=\"'.esc_attr__('Search the Site...','jbbtheme').'\" />\n\t<input type=\"submit\" id=\"searchsubmit\" value=\"'. esc_attr__('Search') .'\" />\n\t</form>';\n\treturn $form;\n}", "title": "" }, { "docid": "0c554bc5173b06b1f9e1083e81339033", "score": "0.6411276", "text": "function bones_wpsearch($form) {\n $form = '<form role=\"search\" method=\"get\" id=\"searchform\" action=\"' . home_url( '/' ) . '\" >\n <label class=\"screen-reader-text\" for=\"s\">' . __('Search for:', 'feasttheme') . '</label>\n <input type=\"text\" value=\"' . get_search_query() . '\" name=\"s\" id=\"s\" placeholder=\"'.esc_attr__('Search the Site...','feasttheme').'\" />\n <input type=\"submit\" id=\"searchsubmit\" value=\"'. esc_attr__('Search') .'\" />\n </form>';\n return $form;\n}", "title": "" }, { "docid": "11b9da57b7eafa49e67f91e98c616964", "score": "0.63887995", "text": "function bones_wpsearch($form) {\r\r\n $form = '<form role=\"search\" method=\"get\" id=\"searchform\" action=\"' . home_url( '/' ) . '\" >\r\r\n <label class=\"screen-reader-text\" for=\"s\">' . __('Search for:', 'bonestheme') . '</label>\r\r\n <input type=\"text\" value=\"' . get_search_query() . '\" name=\"s\" id=\"s\" placeholder=\"Search the Site...\" />\r\r\n <input type=\"submit\" id=\"searchsubmit\" value=\"'. esc_attr__('Search') .'\" />\r\r\n </form>';\r\r\n return $form;\r\r\n}", "title": "" }, { "docid": "fbeb381252d335c668d9906cf3b52f7b", "score": "0.63858193", "text": "function tech_15_form_alter(&$form, &$form_state, $form_id) {\n if ($form_id == 'search_block_form') {\n $form['search_block_form']['#title'] = t('Search'); // Change the text on the label element\n $form['search_block_form']['#title_display'] = 'invisible'; // Toggle label visibilty\n $form['search_block_form']['#size'] = 12; // define size of the textfield\n $form['search_block_form']['#default_value'] = t('Search'); // Set a default value for the textfield\n $form['actions']['submit']['#value'] = t('GO!'); // Change the text on the submit button\n //$form['actions']['submit'] = array('#type' => 'image_button', '#src' => base_path() . path_to_theme() . '/css/images/search-icon.png');\n\n// Add extra attributes to the text box\n $form['search_block_form']['#attributes']['onblur'] = \"if (this.value == '') {this.value = 'Search';}\";\n $form['search_block_form']['#attributes']['onfocus'] = \"if (this.value == 'Search') {this.value = '';}\";\n }\n}", "title": "" }, { "docid": "ae1b0ef1392bbce3dd24447b1d3696a7", "score": "0.63737756", "text": "function searchBox() {\n?>\n\t<!-- search -->\n\t<div id=\"p-search\" class=\"block\">\n\t\t<h2><label for=\"searchInput\"><?php $this->msg('search') ?></label></h2>\n\t\t<div id=\"searchBody\" class=\"content\">\n\t\t\t<form action=\"<?php $this->text('searchaction') ?>\" id=\"searchform\"><div>\n\t\t\t\t<input id=\"searchInput\" name=\"search\" type=\"text\"<?php echo $this->skin->tooltipAndAccesskey('search');\n\t\t\t\t\tif( isset( $this->data['search'] ) ) {\n\t\t\t\t\t\t?> value=\"<?php $this->text('search') ?>\"<?php } ?> />\n\t\t\t\t<input type='submit' name=\"go\" class=\"searchButton\" id=\"searchGoButton\"\tvalue=\"<?php $this->msg('searcharticle') ?>\"<?php echo $this->skin->tooltipAndAccesskey( 'search-go' ); ?> />&nbsp;\n\t\t\t\t<input type='submit' name=\"fulltext\" class=\"searchButton\" id=\"mw-searchButton\" value=\"<?php $this->msg('searchbutton') ?>\"<?php echo $this->skin->tooltipAndAccesskey( 'search-fulltext' ); ?> />\n\t\t\t</div></form>\n\t\t</div><!-- pBody -->\n\t</div><!-- portlet -->\n<?php\n\t}", "title": "" }, { "docid": "f4544b852e8f55efb029706b4242493b", "score": "0.6370203", "text": "function wpdocs_my_search_form( $form ) {\n $form = '<form role=\"search\" method=\"get\" id=\"searchform\" class=\"searchform\" action=\"' . home_url( '/' ) . '\" >\n <div>\n <input type=\"text\" value=\"' . get_search_query() . '\" name=\"s\" id=\"s\" />\n <input type=\"submit\" id=\"searchsubmit\" value=\"'. esc_attr__( 'Search' ) .'\" />\n </div>\n </form>';\n \n return $form;\n}", "title": "" }, { "docid": "49853a3b5be3ec57fae877c543b2f971", "score": "0.63666314", "text": "function asteria_search_form( $form ) {\r\n $form = '<form role=\"search\" method=\"get\" id=\"searchform\" action=\"' . home_url( '/' ) . '\" >\r\n <div>\r\n <input placeholder=\"' . __( 'Search....', 'asteria' ) . '\" type=\"text\" value=\"' . get_search_query() . '\" name=\"s\" id=\"s\" />\r\n <input type=\"submit\" id=\"searchsubmit\" value=\"'. esc_attr__( 'Search', 'asteria' ) .'\" />\r\n </div>\r\n </form>';\r\n\r\n return $form;\r\n}", "title": "" }, { "docid": "467fcc699e658c3b464b399a946c76c9", "score": "0.6346714", "text": "public function search_box( $text, $input_id ) {\n $input_id .= '-search-input';\n\n /*if ( ! empty( $_REQUEST['orderby'] ) )\n echo '<input type=\"hidden\" name=\"orderby\" value=\"' . esc_attr( $_REQUEST['orderby'] ) . '\" />';\n if ( ! empty( $_REQUEST['order'] ) )\n echo '<input type=\"hidden\" name=\"order\" value=\"' . esc_attr( $_REQUEST['order'] ) . '\" />';\n if ( ! empty( $_REQUEST['post_mime_type'] ) )\n echo '<input type=\"hidden\" name=\"post_mime_type\" value=\"' . esc_attr( $_REQUEST['post_mime_type'] ) . '\" />';\n if ( ! empty( $_REQUEST['detached'] ) )\n echo '<input type=\"hidden\" name=\"detached\" value=\"' . esc_attr( $_REQUEST['detached'] ) . '\" />';*/\n ?>\n <p class=\"search-box\">\n <label class=\"screen-reader-text\" for=\"<?php echo $input_id; ?>\"><?php echo $text; ?>:</label>\n <input type=\"search\" id=\"<?php echo $input_id; ?>\" name=\"s\" value=\"<?php _admin_search_query(); ?>\" />\n <?php submit_button( $text, 'button', false, false, array( 'id' => 'search-submit' ) ); ?>\n </p>\n <?php\n }", "title": "" }, { "docid": "a8022c2aafb4b5bd1a2a9d0492336adf", "score": "0.63285094", "text": "function style_search_form($form) {\r\r\n $form = '<form role=\"search\" method=\"get\" id=\"searchform\" class=\"form-search \" action=\"' . get_option('home') . '/\" >\r\r\n <div>';\r\r\n if (is_search()) {\r\r\n $form .='<input type=\"text\" value=\"' . attribute_escape(apply_filters('the_search_query', get_search_query())) . '\" name=\"s\" autocomplete=\"off\" id=\"s\" />';\r\r\n } else {\r\r\n $form .='<input type=\"text\" value=\"' . __(\"Search for:\", \"themeton\") . '\" name=\"s\" id=\"s\" onfocus=\"if(this.value==this.defaultValue)this.value=\\'\\';\" onblur=\"if(this.value==\\'\\')this.value=this.defaultValue;\"/>';\r\r\n }\r\r\n $form .= '<input type=\"submit\" id=\"searchsubmit\" value=\"' . __(\"Search\", \"themeton\") . '\" />\r\r\n </div>\r\r\n </form>';\r\r\n return $form;\r\r\n }", "title": "" }, { "docid": "ed9196e1cea4f2aa127ebf42c68db430", "score": "0.628599", "text": "function widget_sandbox_search($args) {\n\textract($args);\n\tif ( empty($title) )\n\t\t$title = __('Search', 'sandbox');\n?>\n\t\t<?php echo $before_widget ?>\n\t\t\t<?php echo $before_title ?><label for=\"s\"><?php echo $title ?></label><?php echo $after_title ?>\n\t\t\t<form id=\"searchform\" method=\"get\" action=\"<?php bloginfo('home') ?>\">\n\t\t\t\t<div>\n\t\t\t\t\t<input id=\"s\" name=\"s\" type=\"text\" value=\"<?php echo wp_specialchars(stripslashes($_GET['s']), true) ?>\" size=\"10\" tabindex=\"1\" />\n\t\t\t\t\t<input id=\"searchsubmit\" name=\"searchsubmit\" type=\"submit\" value=\"<?php _e('Find', 'sandbox') ?>\" tabindex=\"2\" />\n\t\t\t\t</div>\n\t\t\t</form>\n\t\t<?php echo $after_widget ?>\n\n<?php\n}", "title": "" }, { "docid": "3929a1b2bc52501b8e4be505d1a7a086", "score": "0.6271734", "text": "public function fillSearch($text)\n {\n $this->_rootElement->find($this->searchInput, Locator::SELECTOR_CSS)->setValue($text);\n }", "title": "" }, { "docid": "a58ad84f5acb41b98532246c6c32f45c", "score": "0.6268899", "text": "function wpmanual_sanitize_search( $context = false ) {\r\n\t$search = false;\r\n\r\n\tif( !empty( $_GET['manual-search'] ) ) {\r\n\r\n\t\tif( $context == 'input' )\r\n\t\t\t$search = esc_html( wpmanual_unslash( $_GET['manual-search'] ) );\r\n\t\telse\r\n\t\t\t$search = apply_filters( 'single_post_title', wpmanual_unslash( $_GET['manual-search'] ) );\r\n\t\t\r\n\t}\r\n\r\n\treturn $search;\r\n}", "title": "" }, { "docid": "752dd8ce56a03975f71be833bf8fd4ad", "score": "0.6231547", "text": "public function search()\n {\n $this->addCrumb($this->label('search', get_search_query()));\n }", "title": "" }, { "docid": "38477fe297bddaa6b7676e693e4ce662", "score": "0.6210132", "text": "public function getSearchText()\t{\treturn '';\t}", "title": "" }, { "docid": "4c8776b6101d35dfbe16de1cb642da55", "score": "0.6204172", "text": "public function testSearchForm()\n {\n $this\n ->visit('/')\n ->type('keyword', 'q')\n ->press('Search')\n ->seePageIs('/search?q=keyword')\n ->see('Searching for \"keyword\"');\n }", "title": "" }, { "docid": "b806cf71c0000c09707679db1adb488a", "score": "0.6157569", "text": "function html5_search_form( $form ) {\n $form = '<form role=\"search\" method=\"get\" id=\"searchform\" action=\"' . home_url( '/' ) . '\" >\n <input type=\"search\" placeholder=\"'.__(\"Enter term...\").'\" value=\"' . get_search_query() . '\" name=\"s\" id=\"s\" />\n <input type=\"submit\" id=\"searchsubmit\" value=\"Search\" />\n </form>';\n \n return $form;\n}", "title": "" }, { "docid": "f13f7bb7d3c1bf35f69ad958a3704710", "score": "0.6155559", "text": "function cc_search_form( $form ) {\n $form = '<form role=\"search\" method=\"get\" class=\"search-form\" action=\"' . home_url( '/' ) . '\">';\n $form .= ' <label>';\n $form .= ' <span class=\"screen-reader-text\">' . _x( 'Search for:', 'label' ) . '</span>';\n $form .= ' <input type=\"search\" class=\"search-field\"';\n $form .= ' placeholder=\"' . esc_attr_x( 'Search the website', 'placeholder' ) . '\"';\n $form .= ' value=\"' . get_search_query() . '\" name=\"s\"';\n $form .= ' title=\"' . esc_attr_x( 'Search for:', 'label' ) . '\" />';\n $form .= ' </label>';\n $form .= ' <button type=\"submit\" class=\"search-submit\" value=\"' . esc_attr_x( 'Search', 'submit button' ) . '\">';\n $form .= ' <span class=\"screen-reader-text\">Search</span>';\n $form .= ' </button>';\n $form .= '</form>';\n\n return $form;\n}", "title": "" }, { "docid": "9a30bdb5cb602bbbd9b93e5293f09b09", "score": "0.6153171", "text": "function searchBox() {\n global $wgUseTwoButtonsSearchForm;\n?>\n <div id=\"p-search\" class=\"portlet\">\n <h5 <?php $this->html('userlangattributes') ?>><label for=\"searchInput\"><?php $this->msg('search') ?></label></h5>\n <div id=\"searchBody\" class=\"pBody\">\n <form action=\"<?php $this->text('wgScript') ?>\" id=\"searchform\">\n <input type='hidden' name=\"title\" value=\"<?php $this->text('searchtitle') ?>\"/>\n <input id=\"searchInput\" name=\"search\" type=\"text\"<?php echo $this->skin->tooltipAndAccesskey('search');\n if( isset( $this->data['search'] ) && $this->data['search'] ) {\n ?> value=\"<?php $this->text('search') ?>\"<?php } ?> />\n <input type='submit' name=\"go\" class=\"searchButton\" id=\"searchGoButton\" value=\"<?php $this->msg('searcharticle') ?>\"<?php echo $this->skin->tooltipAndAccesskey( 'search-go' ); ?> /><?php if ($wgUseTwoButtonsSearchForm) { ?>&nbsp;\n <input type='submit' name=\"fulltext\" class=\"searchButton\" id=\"mw-searchButton\" value=\"<?php $this->msg('searchbutton') ?>\"<?php echo $this->skin->tooltipAndAccesskey( 'search-fulltext' ); ?> /><?php } else { ?>\n\n <div><a href=\"<?php $this->text('searchaction') ?>\" rel=\"search\"><?php $this->msg('powersearch-legend') ?></a></div><?php } ?>\n\n </form>\n </div>\n </div>\n<?php\n }", "title": "" }, { "docid": "e45127da5be5f66e73534986965e325a", "score": "0.6152452", "text": "public function set_search($search) { $this->set_param('Query', $search); }", "title": "" }, { "docid": "3b5984be7331c0f885c6b1558986d5f2", "score": "0.6125791", "text": "public function searchForm()\n {\n $html = '<form action=\"javascript:void(0);\" '\n . 'id=\"searchForm\" '\n . 'data-path=\"' . $this->link2('home') . '\">'\n . '<input class=\"search-query\" '\n . 'type=\"search\" '\n . 'placeholder=\"' . tr::get('search_site') . '\" '\n . 'name=\"search\" '\n . 'id=\"search\"'\n . ($this->getSearchString() ? ' value=\"' . $this->getSearchString(true) . '\"' : '') . ' />'\n . '</form>';\n $js = <<<EOD\n<script>\n$('#searchForm').submit(function(){\n if($('#search').val() !== '' ){\n window.location = $(this).data('path') + '/search:' + encodeURIComponent($('#search').val());\n }\n});\n</script>\nEOD;\n $this->setQueue('modules', $js, true);\n return $html;\n }", "title": "" }, { "docid": "ce00405e4a71e5a7cbcb933ad4131cd6", "score": "0.61229765", "text": "public function set_search($search);", "title": "" }, { "docid": "984b6f83a16174e975f257271c07f2e7", "score": "0.6109017", "text": "function searchdata() { $this->searchdata = ''; }", "title": "" }, { "docid": "ff5c8639822ccc7a183bca82cd7bf570", "score": "0.60993975", "text": "function html5_search_form( $form ) {\r\n\t\t$form = '<form role=\"search\" method=\"get\" id=\"searchform\" action=\"' . home_url( '/' ) . '\" > \r\n\t\t<input type=\"search\" placeholder=\"'.__(\"Search and hit enter...\").'\" value=\"' . get_search_query() . '\" name=\"s\" id=\"s\" />\r\n\t\t<input type=\"submit\" id=\"searchsubmit\" />\r\n\t\t</form>';\r\n\t\treturn $form;\r\n\t}", "title": "" }, { "docid": "f7507930002cf731a334a76c83a988f8", "score": "0.60873395", "text": "function my_search_form( $form ) {\n\t\t\t$form = '<form role=\"search\" method=\"get\" id=\"searchform\" class=\"searchform\" action=\"' . home_url( '/' ) . '\" >\n\t\t\t<div><label class=\"screen-reader-text\" for=\"s\">' . __( 'Search for:' ) . '</label>\n\t\t\t<input type=\"text\" value=\"' . get_search_query() . '\" name=\"s\" id=\"s\" />\n\t\t\t<input type=\"submit\" id=\"searchsubmit\" value=\"'. esc_attr__( 'Search' ) .'\" />\n\t\t\t</div>\n\t\t\t</form>';\n\t\t\n\t\t\treturn $form;\n\t\t}", "title": "" }, { "docid": "37ad2a7ac01a9b921b93a4230325cbbb", "score": "0.60785687", "text": "function dirindex_searchbox() {\n\nglobal $dirindex_fugue;\n\n$search_icon = $dirindex_fugue::searchbox_icon_url();\n$search_pattern = $dirindex_fugue->search_pattern();\n\n?>\n<!-- Search Box -->\n<div id=\"searchbox\">\n<form method=\"get\">\n<img id=\"searchicon\" src=\"<?php echo $search_icon; ?>\" />\n<input id=\"search\" type=\"text\" name=\"P\" value=\"<?php echo $search_pattern; ?>\" />\n</form>\n</div>\n<!-- END Search Box -->\n<?php }", "title": "" }, { "docid": "730a51a96ea346e8173241cea5b18663", "score": "0.606073", "text": "function sfi_search_form( $form ) {\n $form = '<form role=\"search\" method=\"get\" id=\"searchform\" class=\"searchform\" action=\"' . home_url() . '\" >\n <div class=\"sfi-search-form-wrapper\">\n <input type=\"text\" class=\"input input-search\" placeholder=\"Sök här ...\" value=\"'. get_search_query() .'\" name=\"s\" id=\"s\" autocomplete/>\n <button alt=\"Sökknapp\" type=\"submit\" class=\"button button-solid button-search \" id=\"search-btn\">\n <i class=\"fas fa-search\"></i>\n <p>Sök</p>\n </button>\n </div>\n </form>';\n\n return $form;\n}", "title": "" }, { "docid": "53bbc2cb569f7407c48dbb4334e61002", "score": "0.60413307", "text": "function themeprefix_search_button_text( $text ) {\nreturn ( 'SEARCH...');\n}", "title": "" }, { "docid": "91d6f4f60d4c867665014c7c60edd9c6", "score": "0.6034338", "text": "public function SearchFormForWidget() {\n $searchText = isset($this->Query) ? $this->Query : '';\n \n // -- Form Fields \n $fields = new FieldSet(new TextField(\"Search\", \"\", $searchText));\n \n $actions = new FieldSet(new FormAction('FaqsResults', '»'));\n \n return new SearchForm($this, \"SearchFaqsFormWidget\", $fields, $actions); \t\n }", "title": "" }, { "docid": "36b64433762f36d6bc64ba21ab19bb90", "score": "0.60341185", "text": "function widget_docwhat_search() {\n?>\n<li class=\"nomin gradwhite boxc\" id=\"sidebar_search\">\n <form method=\"get\" id=\"searchform\" action=\"<?php bloginfo('url'); ?>/\">\n <div id=\"searchformbox\">\n <input type=\"text\" value=\"<?php the_search_query(); ?>\" name=\"s\" id=\"s\" />\n <input type=\"submit\" id=\"searchsubmit\" value=\"Search\" />\n </div>\n </form>\n</li>\n<?php\n}", "title": "" }, { "docid": "a8b99a5ba243593c748f02d73a75224f", "score": "0.6027552", "text": "function search_form() {\n global $CFG;\n return new search_form(\"$CFG->wwwroot/blocks/helpdesk/search.php\", null, 'post');\n }", "title": "" }, { "docid": "717583d9e95eeb5e10e2ade5f37de6ce", "score": "0.60160357", "text": "function bp_simple_search($html='',$buttonText = \"Search\", $formProperties=array('class'=>'simple-search'), $uri = null)\n{\n if (!$uri) {\n $uri = url('items/browse');\n }\n \n $searchQuery = array_key_exists('search', $_GET) ? $_GET['search'] : '';\n $formProperties['action'] = $uri;\n $formProperties['method'] = 'get';\n $html = '<form ' . tag_attributes($formProperties) . '>' . \"\\n\";\n $html .= '<fieldset>' . \"\\n\\n\";\n $html .= get_view()->formText('search', $searchQuery, array('name'=>'search','class'=>'textinput','placeholder'=>'Search items'));\n $html .= get_view()->formSubmit('submit_search', $buttonText);\n $html .= '</fieldset>' . \"\\n\\n\";\n \n // add hidden fields for the get parameters passed in uri\n $parsedUri = parse_url($uri);\n if (array_key_exists('query', $parsedUri)) {\n parse_str($parsedUri['query'], $getParams);\n foreach($getParams as $getParamName => $getParamValue) {\n $html .= get_view()->formHidden($getParamName, $getParamValue);\n }\n }\n \n $html .= '</form>';\n return $html;\n}", "title": "" }, { "docid": "329989b961081a5d46d09e491a9a6f2c", "score": "0.60035586", "text": "function search_fields($input)\n\t{\n\t\tglobal $lang;\n\t\t$this->input = $input;\n\t\t$this->output = $output;\n\n\t\tswitch($this->input)\n\t\t{\n\t\t\tcase SEARCH_TITLE_MSG:\n\t\t\t\t$this->output = $lang['Search_title_msg'];\n\t\t\t\tbreak;\n\n\t\t\tcase SEARCH_MSG:\n\t\t\t\t$this->output = $lang['Search_msg_only'];\n\t\t\t\tbreak;\n\n\t\t\tcase SEARCH_TITLE:\n\t\t\t\t$this->output = $lang['Search_title_only'];\n\t\t\t\tbreak;\n\t\t}\n\t\treturn $this->output;\n\t}", "title": "" }, { "docid": "e24350d83187c9897f5640f3ee9157ab", "score": "0.5995606", "text": "public function renderSearchBox()\n\t{\n\t\tif ($this->getOption('show_search_box') !== true)\n\t\t{\n\t\t\treturn '';\n\t\t}\n\n\t\t$legacyClass = $this->getOption('legacy_html_class_support') ? 'isu-search-form' : '';\n\n\t\t$html = array();\n\t\t$html[] = '<form action=\"' . $this->getOption('search_action') . '\" class=\"wd-l-SearchBox ' . $legacyClass . '\" method=\"GET\" role=\"search\">';\n\n\t\tif (($value = $this->getOption('search_output')))\n\t\t{\n\t\t\t$html[] = '<input name=\"output\" type=\"hidden\" value=\"' . $this->escape($value) . '\"/>';\n\t\t}\n\t\tif (($value = $this->getOption('search_client')))\n\t\t{\n\t\t\t$html[] = '<input name=\"client\" type=\"hidden\" value=\"' . $this->escape($value) . '\"/>';\n\t\t}\n\t\tif (($value = $this->getOption('search_site')))\n\t\t{\n\t\t\t$html[] = '<input name=\"sitesearch\" type=\"hidden\" value=\"' . $this->escape($value) . '\"/>';\n\t\t}\n\t\tif (($value = $this->getOption('search_style')))\n\t\t{\n\t\t\t$html[] = '<input name=\"proxystylesheet\" type=\"hidden\" value=\"' . $this->escape($value) . '\"/>';\n\t\t}\n\n\t\t$html[] = '<input accesskey=\"s\" name=\"q\" title=\"Search\" placeholder=\"' . $this->escape($this->getOption('search_placeholder')) . '\" tabindex=\"1\" type=\"text\"/>';\n\t\t$html[] = '<input name=\"btnG\" title=\"Submit\" type=\"submit\" value=\"' . $this->escape($this->getOption('search_submit')) . '\"/>';\n\t\t$html[] = '</form>';\n\n\t\treturn implode(\"\\n\", $html);\n\t}", "title": "" }, { "docid": "76b679d1538d83bd7ddd2c5d514fe90f", "score": "0.59955543", "text": "function hb_charity_search_form() {\n\t\t$form = '<form role=\"search\" method=\"get\" id=\"searchform\" class=\"searchform\" action=\"' . home_url( '/' ) . '\" >\n\t\t\t \t<div class=\"input-group stylish-input-group\">\n\t\t\t \t\t<label class=\"screen-reader-text\" for=\"s\">' . __( 'Search for:', 'hb-charity' ) . '</label>\n\t\t\t \t\t<input type=\"text\" value=\"' . get_search_query() . '\" name=\"s\" id=\"s\" class=\"form-control\" />\n\t\t\t \t\t<span class=\"input-group-addon\">\n\t\t\t \t\t\t<button type=\"submit\" id=\"searchsubmit\" value=\"'. esc_attr__( 'Search', 'hb-charity' ).'\">\n\t\t\t \t\t\t\t<span class=\"glyphicon glyphicon-search\"></span>\n\t\t\t \t\t\t</button>\n\t\t\t \t\t</span>\n\t\t\t \t</div>\n\t\t\t </form>';\n\n\t\treturn $form;\n\t}", "title": "" }, { "docid": "b979a17a1f4bd11e6732c28d367a8085", "score": "0.5994408", "text": "public function give_search_box( $text, $input_id ) {\n\t\t$input_id = $input_id . '-search-input';\n\n\t\tif ( ! empty( $_REQUEST['orderby'] ) ) {\n\t\t\techo '<input type=\"hidden\" name=\"orderby\" value=\"' . esc_attr( $_REQUEST['orderby'] ) . '\" />';\n\t\t}\n\t\tif ( ! empty( $_REQUEST['order'] ) ) {\n\t\t\techo '<input type=\"hidden\" name=\"order\" value=\"' . esc_attr( $_REQUEST['order'] ) . '\" />';\n\t\t}\n\t\t?>\n\t\t<p class=\"search-box donor-search\" role=\"search\">\n\t\t\t<label class=\"screen-reader-text\" for=\"<?php echo $input_id ?>\"><?php echo $text; ?>:</label>\n\t\t\t<input type=\"search\" id=\"<?php echo $input_id ?>\" name=\"s\" value=\"<?php _admin_search_query(); ?>\" />\n\t\t\t<?php submit_button( $text, 'button', false, false, array( 'ID' => 'search-submit' ) ); ?>\n\t\t</p>\n\t<?php\n\t}", "title": "" }, { "docid": "3d0319417b6324ddfa554728716ede88", "score": "0.5984587", "text": "function make_search_form() {\n $str = '';\n $str .= _make_search_selector();\n $str .= _make_search_input();\n $str .= _make_search_command();\n return $str;\n}", "title": "" }, { "docid": "c81d31f360249e0c450001e37b629a5d", "score": "0.59772205", "text": "function gSEARCH(){\r\n\t\tglobal $_GET;\r\n\t\treturn (isset($_GET[\"search\"]))?db_connect()->real_escape_string($_GET[\"search\"]):\"\";\r\n\t}", "title": "" }, { "docid": "c66f3e21770b09ddb71889350b5f89aa", "score": "0.59687304", "text": "function oublog_get_search_form($name, $value, $strblogsearch, $querytext='', $newsearchimage = false, $cmid = null) {\n if (!oublog_search_installed()) {\n return '';\n }\n global $OUTPUT, $DB;\n\n // Check if search in shared blog.\n if ($name == 'id') {\n $cm = get_coursemodule_from_id('oublog', $value);\n $oublog = $DB->get_record('oublog', ['id' => $cm->instance]);\n if ($oublog->individual && $oublog->idsharedblog) {\n // Get master blog.\n $masterblog = oublog_get_master($oublog->idsharedblog);\n // Get cmid of master blog.\n $cmmaster = get_coursemodule_from_instance('oublog', $masterblog->id);\n $value = $cmmaster->id;\n $cmid = $cm->id;\n }\n }\n $out = html_writer::start_tag('form', array('action' => 'search.php', 'method' => 'get'));\n $out .= html_writer::start_tag('div');\n $out .= html_writer::tag('label', $strblogsearch . ' ', array('for' => 'oublog_searchquery'));\n $out .= $OUTPUT->help_icon('searchblogs', 'oublog');\n $out .= html_writer::empty_tag('input', array('type' => 'hidden', 'name' => $name,\n 'value' => $value));\n $out .= html_writer::empty_tag('input', array('type' => 'hidden', 'name' => 'cmid',\n 'value' => $cmid));\n $out .= html_writer::empty_tag('input', array('type' => 'text', 'name' => 'query',\n 'id' => 'oublog_searchquery', 'value' => $querytext));\n $src = ($newsearchimage) ? $OUTPUT->image_url('search_rgb_32px', 'theme_osep') : $OUTPUT->image_url('i/search');\n $out .= html_writer::empty_tag('input', array('type' => 'image',\n 'id' => 'ousearch_searchbutton', 'alt' => get_string('search'),\n 'title' => get_string('search'), 'src' => $src));\n $out .= html_writer::end_tag('div');\n $out .= html_writer::end_tag('form');\n return $out;\n}", "title": "" }, { "docid": "6e740bd3e83d821b5516de05c067550b", "score": "0.5954456", "text": "function _writeSearchBox($pagingParams,$postfix=\"\",$divClass=\"style=\\\"float:right;\\\"\",$inputClass=\"class=\\\"inputbox\\\"\",$task=\"userProfile\")\r\r\n\t{\r\r\n\t\t$base_url = $this->_getAbsURLwithParam($pagingParams, $task, true, array($postfix.\"search\",$postfix.\"limitstart\"));\r\r\n\t\t$searchPagingParams = stripslashes($pagingParams[$postfix.\"search\"]);\r\r\n\r\r\n\t\t$searchForm = \"<form action=\\\"\".$base_url.\"\\\" method=\\\"post\\\"><div\".($divClass?\" \".$divClass:\"\").\">\";\r\r\n/* done in _getAbsURLwithParam:\r\r\n\t\tforeach ($pagingParams as $k => $pp) {\r\r\n\t\t\tif ($pp && !in_array($k,array($postfix.\"search\",$postfix.\"limitstart\"))) {\r\r\n\t\t\t\t$searchForm .= \"<input type='hidden' name='\".$this->_getPagingParamName($k).\"' value=\\\"\".htmlspecialchars($pp).\"\\\" />\";\t//BB $_CB_framework->outputCharset() charset into htmlspecialchars everywhere ?\r\r\n\t\t\t}\r\r\n\t\t}\r\r\n*/\r\r\n\t\t$searchForm .= \"<input type=\\\"text\\\" name=\\\"\".$this->_getPagingParamName(\"search\",$postfix).\"\\\" \".$inputClass.\" value=\\\"\"\r\r\n\t\t\t\t\t.($searchPagingParams ? htmlspecialchars($searchPagingParams) : _UE_SEARCH_INPUT).\"\\\"\";\r\r\n\t\tif (!$searchPagingParams) {\r\r\n\t\t\t$searchForm .= \" onblur=\\\"if(this.value=='') { this.value='\"._UE_SEARCH_INPUT.\"'; return false; }\\\"\"\r\r\n\t\t\t\t\t\t.\" onfocus=\\\"if(this.value=='\"._UE_SEARCH_INPUT.\"') this.value='';\\\"\";\r\r\n\t\t}\r\r\n\t\t$searchForm .= \" onchange=\\\"if(this.value!='\".($searchPagingParams ? str_replace(array(\"\\\\\",\"'\"),array(\"\\\\\\\\\",\"\\\\'\"),htmlspecialchars($searchPagingParams)) : _UE_SEARCH_INPUT).\"')\"\r\r\n\t\t\t\t\t.\" { \";\r\r\n\t\tif (!$searchPagingParams) {\r\r\n\t\t\t$searchForm .= \"if (this.value=='\"._UE_SEARCH_INPUT.\"') this.value=''; \";\r\r\n\t\t}\r\r\n\t\t$searchForm .= \"this.form.submit(); }\\\" />\"\r\r\n\t\t\t\t\t. \"</div></form>\";\r\r\n\t\treturn $searchForm;\r\r\n\t}", "title": "" }, { "docid": "0e336377c19ef38be2a9176ca0a285c4", "score": "0.59528196", "text": "public function search_box( $text, $input_id ) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "9df93ecee0ce3369fbd7796f9ad6af60", "score": "0.5950251", "text": "public function onSearch()\n {\n // get the search form data\n $data = $this->form->getData();\n\n // clear session filters\n // define the filter field\n $filters = array();\n TSession::setValue('BlogArticulo_filters', array());\n //TSession::setValue('BlogArticulo_categoria_id', '');\n TSession::setValue('BlogArticulo_titulo', '');\n //TSession::setValue('BlogArticulo_tipo', '');\n // check if the user has filled the form\n\n \n\n if ($data->name)\n {\n // creates a filter using what the user has typed\n $filter = new TFilter('name', 'Like', \"%{$data->name}%\");\n\n // stores the filter in the session\n TSession::setValue('BlogArticulo_titulo', $data->name);\n $filters[] = $filter;\n }\n\n \n\n // fill the form with data again\n $this->form->setData($data);\n TSession::setValue('BlogArticulo_filter_data', $data);\n\n // keep the search data in the session\n TSession::setValue('BlogArticulo_filters_data', $filters);\n\n $param = array();\n $param['offset'] = 0;\n $param['first_page'] = 1;\n $this->onReload($param);\n }", "title": "" }, { "docid": "5ee9bd4a649416a66f270418f01b4cfc", "score": "0.5940835", "text": "protected function generateSearch()\n\t{\n\t\t$this->Template->hasSearch = false;\n\t\t$this->Template->hasAutocomplete = ($this->iso_searchAutocomplete) ? true : false;\n\n\t\tif (is_array($this->iso_searchFields) && count($this->iso_searchFields)) // Can't use empty() because its an object property (using __get)\n\t\t{\n\t\t\tif ($this->Input->get('keywords') != '' && $this->Input->get('keywords') != $GLOBALS['TL_LANG']['MSC']['defaultSearchText'])\n\t\t\t{\n\t\t\t\t$arrKeywords = trimsplit(' |-', $this->Input->get('keywords'));\n\t\t\t\t$arrKeywords = array_filter(array_unique($arrKeywords));\n\n\t\t\t\tforeach ($arrKeywords as $keyword)\n\t\t\t\t{\n\t\t\t\t\tforeach ($this->iso_searchFields as $field)\n\t\t\t\t\t{\n\t\t\t\t\t\t$GLOBALS['ISO_FILTERS'][$this->id][] = array\n\t\t\t\t\t\t(\n\t\t\t\t\t\t\t'group'\t\t=> ('keyword: '.$keyword), // Must create an OR group because multiple fields can be searched for\n\t\t\t\t\t\t\t'operator'\t=> 'search',\n\t\t\t\t\t\t\t'attribute'\t=> $field,\n\t\t\t\t\t\t\t'value'\t\t=> $keyword,\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->Template->hasSearch = true;\n\t\t\t$this->Template->keywordsLabel = $GLOBALS['TL_LANG']['MSC']['searchTermsLabel'];\n\t\t\t$this->Template->keywords = $this->Input->get('keywords');\n\t\t\t$this->Template->searchLabel = $GLOBALS['TL_LANG']['MSC']['searchLabel'];\n\t\t\t$this->Template->defaultSearchText = $GLOBALS['TL_LANG']['MSC']['defaultSearchText'];\n\t\t}\n\t}", "title": "" }, { "docid": "79ba78e816afaabc8f27ec763cec8b70", "score": "0.5926693", "text": "function em_location_search_form($args = array()){\n\t$args = em_get_search_form_defaults($args);\n\t$args['ajax'] = isset($args['ajax']) ? $args['ajax']:(!defined('EM_AJAX') || EM_AJAX );\n\tem_locate_template('templates/locations-search.php',true, array('args'=>$args));\n}", "title": "" }, { "docid": "5b0f5bfbcc7dfaf707853d082f015b5b", "score": "0.59253377", "text": "function alma_item_list_search_content_type_edit_form_submit($form, &$form_state) {\n $input = $form_state['input'];\n\n $form_state['conf']['alma_search_query'] = trim($input['alma_search_query']);\n $form_state['conf']['alma_search_limit'] = $input['alma_search_limit'];\n $form_state['conf']['alma_search_cache'] = $input['alma_search_cache'];\n}", "title": "" }, { "docid": "7219a0e3de16c2e262b24abaa3136a72", "score": "0.5916616", "text": "public function __construct($placeholder = 'Search', $q = '')\n {\n $this->q = $q;\n $this->placeholder = $placeholder;\n }", "title": "" }, { "docid": "18c39b3bbaea11580da3c03aa0e0da9e", "score": "0.5913428", "text": "public static function getSearchField()\n {\n return 'title';\n }", "title": "" }, { "docid": "5b76536bdd7c4047b3d4e8f9c459e745", "score": "0.5910526", "text": "function fiorello_mikado_get_search() {\n\t\tfiorello_mikado_load_search_template();\n\t}", "title": "" }, { "docid": "3c19ced9b8331fe8f330e5ffc5272487", "score": "0.58644277", "text": "function zerif_before_search_trigger() {\n\tdo_action( 'zerif_before_search' );\n}", "title": "" }, { "docid": "62a12bea5478afdf67ddf9f99271cc1a", "score": "0.58469445", "text": "function zen_hvcp_preprocess_search_block_form(&$vars, $hook) {\n // Set a default value for text inside the search box field.\n $vars['form']['search_block_form']['#value'] = t('Search');\n \n // Add a custom class and placeholder text to the search box.\n $vars['form']['search_block_form']['#attributes'] = array('class' => 'NormalTextBox txtSearch', 'onblur' => \"if (this.value == '') { this.value = '\".$vars['form']['search_block_form']['#value'].\"'; this.style.fontWeight = 'bold'; this.style.color = '#bbbbbb'; }\", 'onfocus' => \"if (this.value == '\".$vars['form']['search_block_form']['#value'].\"') {this.value = ''; this.style.fontWeight = 'normal'; this.style.color = '#000000'; }\" );\n \n // Rebuild the rendered version (search form only, rest remains unchanged)\n unset($vars['form']['search_block_form']['#printed']);\n $vars['search']['search_block_form'] = drupal_render($vars['form']['search_block_form']);\n \n // Collect all form elements to make it easier to print the whole form.\n $vars['search_form'] = implode($vars['search']);\n}", "title": "" }, { "docid": "b29952ef0a5dda6ffa3d6d0c96335cb0", "score": "0.5829806", "text": "public function tabSearch() {\n global $INPUT;\n echo '<div class=\"panelHeader\">';\n echo $this->locale_xhtml('intro_search');\n echo '</div>';\n\n $form = new Doku_Form(array('action' => $this->tabURL('', array(), '&'), 'class' => 'search'));\n $form->addElement(form_makeTextField('q', $INPUT->str('q'), $this->getLang('search_for')));\n $form->addElement(form_makeButton('submit', '', $this->getLang('search')));\n $form->printForm();\n\n if(!$INPUT->bool('q')) return;\n\n /* @var helper_plugin_extension_repository $repository FIXME should we use some gloabl instance? */\n $repository = $this->loadHelper('extension_repository');\n $result = $repository->search($INPUT->str('q'));\n\n /* @var helper_plugin_extension_extension $extension */\n $extension = $this->loadHelper('extension_extension');\n /* @var helper_plugin_extension_list $list */\n $list = $this->loadHelper('extension_list');\n $list->start_form();\n if($result){\n foreach($result as $name) {\n $extension->setExtension($name);\n $list->add_row($extension, $extension->getID() == $this->infoFor);\n }\n } else {\n $list->nothing_found();\n }\n $list->end_form();\n $list->render();\n\n }", "title": "" }, { "docid": "0bb746a3a11322a06f5dd09b4586aff8", "score": "0.5827818", "text": "public function searchBox($header=true){\n $value = $this->getSubmitVariable('searchterm') ? $this->getSubmitVariable('searchterm') : '';\n $row[] = $this->getImage('search-icon-for-field.png',array('height' => '25'));\n $row[] = $this->getFieldtext($value,array('style' => 'example_searchbox_text',\n 'hint' => '{#free_text_search#}','submit_menu_id' => 'searchbox','variable' => 'searchterm',\n //'suggestions' => MobileexampleAccessor::getInitialWordList(10),\n 'id' => 'something','width' => '70%',\n 'suggestions_style_row' => 'example_list_row','suggestions_text_style' => 'example_list_text',\n 'submit_on_entry' => '1','activation' => 'initially'\n ));\n $col[] = $this->getRow($row,array('style' => 'example_searchbox','width' => '70%'));\n $col[] = $this->getTextbutton('Search',array('style' => 'example_searchbtn','id' => 'dosearch'));\n $this->data->header[] = $this->getRow($col,array('background-color' => $this->color_topbar));\n\n if($header == true){\n $this->funnyHeader();\n }\n $this->data->scroll[] = $this->getLoader('Loading',array('color' => '#000000','visibility' => 'onloading'));\n }", "title": "" }, { "docid": "8124c01986102275284850baff42a2b7", "score": "0.58113474", "text": "function em_event_search_form($args = array()){\n\t$args = em_get_search_form_defaults($args);\n\t$args['ajax'] = isset($args['ajax']) ? $args['ajax']:(!defined('EM_AJAX') || EM_AJAX );\n\tem_locate_template('templates/events-search.php',true, array('args'=>$args));\n}", "title": "" }, { "docid": "fd9c604b73a405a5840240926a90188d", "score": "0.58029187", "text": "public function search() {\n\t\tConfigure::write('debug', 2);\n\t\t$this->set('site_title', 'Search');\n\t\t$this->set('searchmeta', utf8_encode('Trouvez rapidement un vétérinaire ŕ prenez rendez-vous gratuitement en ligne en quelques clics'));\n\t}", "title": "" }, { "docid": "854bef08997795a51137d90b67775412", "score": "0.5801651", "text": "function get_search_form() {\n $form = '';\n locate_template('/templates/searchform.php', true, false);\n return $form;\n}", "title": "" }, { "docid": "0804f3fbb66de11cb245fed9536e3726", "score": "0.5792429", "text": "public function search(){\n\t\t$term = $this->input->post('search');\n\t\tif($term <> \"\")\n\t\t\tredirect(\"main/filter/search/\".$term);\n\t\telse \n\t\t\tredirect(base_url());\n\t}", "title": "" }, { "docid": "07a26a48591252ce20186bb38eb4682d", "score": "0.57830966", "text": "function phptemplate_search_theme_form($form) {\n unset($form['search_theme_form']['#title']);\n return drupal_render($form);\n}", "title": "" }, { "docid": "98ebd2497f7118bbfb48b847610860aa", "score": "0.5750987", "text": "function print_search_form() {\n global $libhtml, $my_get;\n $html = $libhtml->form_start();\n $html .= open_table(\"600px\",\"\",\"action_form\");\n\n $html .= $libhtml->render_form_table_row(\"search_term\", my_request('search_term', ''), \"Search String\", \"search_term\");\n\n $html .= close_table();\n $html .= $libhtml->render_form_table_row_hidden(\"search\", \"Search\");\n $html .= $libhtml->render_form_table_row_hidden(\"move_to_get\", true);\n\n $html .= $libhtml->render_actions(\n array(\n $libhtml->render_button(\"search_button\", \"Search\"),\n ),\n array(\n \"show_prompt\"=>false,\n \"show_cancel\"=>false,\n \"pause\"=>false,\n )\n );\n\n $html .= $libhtml->form_end();\n return $html;\n }", "title": "" }, { "docid": "de073a7e27b5a150e01cf873a6f0cd9a", "score": "0.5746081", "text": "public function globalSearch()\n {\n if ($this->globalSearch != false) {\n $filterModel = $this->filterModel;\n $searchField = $this->globalSearch['searchField'];\n $filterModel->$searchField = $this->globalSearch['value'];\n $result = Html::beginTag('div', ['class' => 'search-list grid-header-blk btn-group col-md-2 col-sm-2 col-xs-3']);\n $result .= '<i class=\"fa fa-search\"></i>';\n $result .= Html::activeTextInput(\n $filterModel,\n $searchField,\n ['placeholder' => 'Search', 'class' => 'form-control ' . $this->options['id'] . '_search']\n );\n $result .= Html::endTag('div');\n return $result;\n }\n }", "title": "" }, { "docid": "05c5e319332f72c6a70b107acc3e8d47", "score": "0.57428086", "text": "protected function createComponentSearchForm(){\r\n \r\n $form = new Form;\r\n \r\n $form->addText('search', '');\r\n // ->setAttribute('placeholder', 'Vyhledávání');\r\n \r\n $form->addSubmit('find', '');\r\n \r\n $form->onSuccess[] = [$this, 'searchFormSucceeded'];\r\n return $form;\r\n }", "title": "" }, { "docid": "8f89c759209a0593aeb44849a7c44681", "score": "0.5734827", "text": "public function searchAction() {\n // gets the POST-value from the searchformular\n $queryString = $this->request->getArgument('searchBox');\n //trim special and space characters in queryString\n $replace = array(' ','&nbsp;');\n $queryString = trim($queryString);\n $queryString = str_replace($replace,'',$queryString);\n // go to listaction if querystring is false\n if(!isset($queryString) || $queryString == '' || (empty($queryString))) {\n $this->flashMessageContainer->add('Es wurden keine korrekten Suchkriterien eingegeben.');\n $this->redirect('list');\n } else {\n // search table with POST-value\n $foundProducts = $this->productRepository->findByTitle($queryString);\n $this->view->assign('foundProducts', $foundProducts);\n $this->view->assign('queryString', $queryString);\n }\n }", "title": "" }, { "docid": "51523d8111620b45da4b189d83cc7fb2", "score": "0.5733929", "text": "public function search();", "title": "" }, { "docid": "51523d8111620b45da4b189d83cc7fb2", "score": "0.5733929", "text": "public function search();", "title": "" }, { "docid": "51523d8111620b45da4b189d83cc7fb2", "score": "0.5733929", "text": "public function search();", "title": "" }, { "docid": "51523d8111620b45da4b189d83cc7fb2", "score": "0.5733929", "text": "public function search();", "title": "" }, { "docid": "b859d2feea90ec93dd500324db544d2c", "score": "0.57171065", "text": "public function searchSuggestAction()\n {\n $this->getRequest()->setParam('q', $this->getRequest()->getParam('query'));\n try {\n $this->loadLayout(false);\n $this->renderLayout();\n } catch (Mage_Core_Exception $e) {\n $this->_message($e->getMessage(), self::MESSAGE_STATUS_ERROR);\n } catch (Exception $e) {\n $this->_message($this->__('Unable to load search.'), self::MESSAGE_STATUS_ERROR);\n Mage::logException($e);\n }\n }", "title": "" }, { "docid": "c4686045f81f363ff38d34ad519f873f", "score": "0.5710642", "text": "static function searchForm() { \n echo '<form>\n <div class=\"form-row align-items-center\" method=\"GET\">\n <div class=\"col-sm-4 my-1\">\n <input type=\"text\" class=\"form-control\" id=\"searchTerms\" name=\"searchTerms\" placeholder=\"Search Terms...\" required>\n </div>\n <div class=\"col-auto my-1\">\n <button type=\"submit\" class=\"btn btn-primary\">Go!</button>\n </div>\n </div>\n </form>';\n }", "title": "" }, { "docid": "6eff2200ad532b93818ed244b08a4905", "score": "0.56903845", "text": "protected function setSearchInputs($model)\n {\n foreach (array('Reviewer', 'Review', 'Song', 'SongGenre', 'Genre') as $class) {\n if (get_class($model) === $class) {\n $model->unsetAttributes();\n if (isset($_GET[$class])) {\n $model->attributes = $_GET[$class];\n }\n } else {\n $prop = 'search' . $class;\n if (property_exists($model, $prop)) {\n $model->$prop = new $class('search');\n $model->$prop->unsetAttributes();\n if (isset($_GET[$class])) {\n $model->$prop->attributes = $_GET[$class];\n }\n }\n }\n }\n }", "title": "" }, { "docid": "be9079780d72bda0306f5a36c13ee1b1", "score": "0.56889135", "text": "public function setSearch($search) {\n $this->search = $search;\n }", "title": "" }, { "docid": "1ed0adcd2559c29fc400559245adfbf2", "score": "0.56828445", "text": "function zerif_after_search_trigger() {\n\tdo_action( 'zerif_after_search' );\n}", "title": "" }, { "docid": "c81de9198fa9c1736bcca9c1d208f92d", "score": "0.56785697", "text": "function roots_get_search_form() {\n $form = '';\n locate_template('/templates/searchform.php', true, false);\n return $form;\n}", "title": "" }, { "docid": "116e76673b471a3cb2d9d1aa8ae08992", "score": "0.5677726", "text": "protected function search_form($attrib)\n {\n // add some labels to client\n $this->add_label('searching');\n\n $attrib['name'] = '_q';\n\n if (empty($attrib['id'])) {\n $attrib['id'] = 'rcmqsearchbox';\n }\n if ($attrib['type'] == 'search' && !$this->browser->khtml) {\n unset($attrib['type'], $attrib['results']);\n }\n\n $input_q = new html_inputfield($attrib);\n $out = $input_q->show();\n\n $this->add_gui_object('qsearchbox', $attrib['id']);\n\n // add form tag around text field\n if (empty($attrib['form'])) {\n $out = $this->form_tag(array(\n 'name' => \"rcmqsearchform\",\n 'onsubmit' => self::JS_OBJECT_NAME . \".command('search'); return false\",\n 'style' => \"display:inline\"),\n $out);\n }\n\n return $out;\n }", "title": "" }, { "docid": "19837d1c7e31946fd310bdae0540787d", "score": "0.5667693", "text": "function bullpen_search($atts)\n\t\t{\n\t\t\t$form = get_search_form(false);\n\t\t\t$hidden = '<input type=\"hidden\" name=\"post_type\" value=\"bullpen-jobs\" />';\n\t\t\treturn str_replace('</form>', $hidden . '</form>', $form);\n\t\t}", "title": "" }, { "docid": "a59dd98ccef1af62ede546ba06a2e2b3", "score": "0.5644821", "text": "function yourfitness_post_search_title() {\n\n\tif ( !is_search() )\n\t\treturn;\n\n\techo yourfitness_open_markup( 'yourfitness_search_title', 'h1', array( 'class' => 'uk-article-title' ) );\n\n\t\techo yourfitness_output( 'yourfitness_search_title_text', esc_html__( 'Search results for: ', 'your-fitness' ) ) . get_search_query();\n\n\techo yourfitness_close_markup( 'yourfitness_search_title', 'h1' );\n\n}", "title": "" }, { "docid": "e2a27c78fc7ff94062031069b163f62a", "score": "0.564", "text": "public function search(string $key, $label = null, ?array $attributes = []) : string \n {\n return $this->input('search', $key, $label, $attributes);\n }", "title": "" }, { "docid": "42624d4cea68cde20597a98ee1bf3582", "score": "0.56238604", "text": "public function setPlaceholder(string $placeholder): ISearchOption {\n\t\t$this->placeholder = $placeholder;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "86ce61a6bc032d97c54764eb8c39a672", "score": "0.5620684", "text": "public function searchUser($input);", "title": "" }, { "docid": "2c209dcfa7c471d863ee6f6c2020c8c6", "score": "0.5620347", "text": "public function constructSearch(){\n\t\t\t$searchParams = array($this->keywords, $this->geo, $this->lang, $this->rpp);\n\t\t\t$this->search = implode('&',$searchParams);\n\t\t}", "title": "" }, { "docid": "d9133e719e2df4e0c1caeb6a9aab1382", "score": "0.56175256", "text": "public function preSearch(Request $request)\n\t\t{\n\t\t\t$q = strtolower($request -> get('q'));\n\t\t\t$qclean = preg_replace(\"[^ 0-9a-zA-Z]\", \" \", $q);\n\t\t\t\n\t\t\twhile (strstr($qclean, \" \")) {\n\t\t\t\t$qclean = str_replace(\" \", \" \", $qclean);\n\t\t\t}\n\t\t\t\n\t\t\t$qclean = str_replace(\" \", \"_\", $qclean);\n\t\t\t\n\t\t\tif ($q != '') {\n\t\t\t\treturn redirect( '/dosen/search/'.$qclean );\n\t\t\t}\n\t\t\treturn Redirect::back() -> withErrors(['q' => 'Isi kata kunci pencarian yang diinginkan terlebih dahulu']);\n\t\t}", "title": "" }, { "docid": "3e05d4143eef659e47b07f3972532e8e", "score": "0.5616438", "text": "public function getUserSearchFilter($search) {\n return '';\n }", "title": "" }, { "docid": "58bcced9eda7b4d7ac4392adf7429055", "score": "0.5615881", "text": "protected function getFilter()\n\t{\n\t\t// Initialize some field attributes.\n\t\t$size = $this->element['size'] ? ' size=\"' . (int) $this->element['size'] . '\"' : '';\n\t\t$maxLength = $this->element['maxlength'] ? ' maxlength=\"' . (int) $this->element['maxlength'] . '\"' : '';\n\t\t$filterclass = $this->element['filterclass'] ? ' class=\"' . (string) $this->element['filterclass'] . '\"' : '';\n\t\t$placeholder = $this->element['placeholder'] ? $this->element['placeholder'] : $this->getLabel();\n\t\t$name = $this->element['searchfieldname'] ? $this->element['searchfieldname'] : $this->name;\n\t\t$placeholder = ' placeholder=\"' . JText::_($placeholder) . '\"';\n\n\t\tif ($this->element['searchfieldname'])\n\t\t{\n\t\t\t$model = $this->form->getModel();\n\t\t\t$searchvalue = $model->getState((string) $this->element['searchfieldname']);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$searchvalue = $this->value;\n\t\t}\n\n\t\t// Initialize JavaScript field attributes.\n\t\tif ($this->element['onchange'])\n\t\t{\n\t\t\t$onchange = ' onchange=\"' . (string) $this->element['onchange'] . '\"';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$onchange = ' onchange=\"document.adminForm.submit();\"';\n\t\t}\n\n\t\treturn '<input type=\"text\" name=\"' . $name . '\" id=\"' . $this->id . '\"' . ' value=\"'\n\t\t\t. htmlspecialchars($searchvalue, ENT_COMPAT, 'UTF-8') . '\"' . $filterclass . $size . $placeholder . $onchange . $maxLength . '/>';\n\t}", "title": "" }, { "docid": "5cee514c112a8af4e9e12bf573785fbd", "score": "0.5608414", "text": "public function setSearch(string $search)\n {\n $this->search = $search;\n }", "title": "" }, { "docid": "80c72891bff3683b28d8f298584e85ba", "score": "0.56081915", "text": "public function searchFormAction() {\n // Validate request methods\n $this->validateRequestMethod();\n $this->respondWithSuccess(Engine_Api::_()->getApi('Siteapi_Core', 'sitemember')->getSearchForm());\n }", "title": "" }, { "docid": "64486865adf18e2f312db41c6bf35ee6", "score": "0.5605427", "text": "function displaySearchForm(){\n $form = '<form role=\"search\" method=\"get\" id=\"searchForm\" action=\"' . esc_url(home_url('/')) . '\">\n <input type=\"text\" value=\"' . get_search_query() . '\" name=\"s\" id=\"s\" placeholder=\"Cari produk, kategori atau merek\" />\n <button class=\"btn btn-default\" type=\"submit\"><span class=\"fa fa-search\"></span>\n <input type=\"hidden\" name=\"post_type\" value=\"product\" />\n </button>\n </form>';\n echo $form;\n}", "title": "" }, { "docid": "d43fb416870d46fe9bbccfedbdc5fe97", "score": "0.5593843", "text": "protected function search(Builder $query, string $type = null, $search = null)\n {\n switch ($type) {\n case 'checked':\n $query->where($this->property('name'), true);\n break;\n case 'unchecked':\n $query->where($this->property('name'), false);\n break;\n }\n }", "title": "" }, { "docid": "425b5a6fb5906330f082a9c83416a128", "score": "0.5593371", "text": "function responsivepp_search_bar() {\n\n\t\treturn \n\t\t'<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-37\">\n\t\t <form method=\"get\" id=\"searchform\" class=\"form-inline\" action='. esc_url( home_url( '/' ) ).' role=\"search\">\n\t\t\t <input type=\"search\" class=\"form-control input-search\" placeholder='.__(\"Search...\",\"odin\").' name=\"s\" id=\"s\" />\n\t\t \t</form>\n\t\t</li>';\n\t}", "title": "" }, { "docid": "b42d57ecf9aa3414e33d08258dfb1d42", "score": "0.55920637", "text": "function search()\r\n {\r\n global $mainframe, $Itemid;\r\n\r\n // get POST array values\r\n $pattern = JRequest::getVar( 'pattern', '' );\r\n\t\t$pattern_safe = str_replace(\"'\", \"\", $pattern);\r\n\t\t$pattern_safe = str_replace('\"', \"\", $pattern_safe);\r\n\t\t$pattern_safe = addslashes($pattern_safe);\r\n $category = JRequest::getInt( 'category_id', '0' );\r\n\t\t$url = JRoute::_('index.php?option=com_hwdphotoshare&task=displayresults&pattern='.$pattern_safe.'&category_id='.$category.'&Itemid='.$Itemid);\r\n\t\t$mainframe->redirect(html_entity_decode($url));\r\n }", "title": "" }, { "docid": "ee46f59e3f43185df42cb54608a5ae28", "score": "0.55838394", "text": "function output_search($query = '', $incl_br = true)\n{\n echo \"<form name='input' action='' method='get'>\";\n echo \"Search: <input type='text' name='query' value='$query'>&nbsp;\";\n echo \"<input type='submit' value='Search'></form>\";\n if ($incl_br) {\n echo \"<br><br>\";\n }\n}", "title": "" }, { "docid": "7787004261109b19adf33301d707016f", "score": "0.55630857", "text": "public function getFormPlaceholder() {\n return '<!--facetapi_keep_facets_placeholder:' . $this->view->name . ':' . $this->view->current_display . '-->';\n }", "title": "" }, { "docid": "a6937d6a0404a612c81fbc49afdc4361", "score": "0.5549848", "text": "public static function displayForm($keyword) {\n echo '<form role=\"search\" class=\"search-form\" action=\"' . $_SERVER['REQUEST_URI'] . '\" method=\"post\">\n\t<label for=\"search-form-2\">\n\t\t<span class=\"screen-reader-text\">Search for:</span>\n\t\t<input type=\"search\" id=\"search-form-2\" class=\"search-field\" placeholder=\"Search Products…\" value=\"' . (isset($_POST['keyword']) ? $keyword : NULL) . '\" name=\"keyword\">\n\t</label>\n\t<input type=\"submit\" name=\"submit\" class=\"search-submit\" value=\"Search\">\n</form>';\n }", "title": "" }, { "docid": "1bcc4d718e11e7f52997becfb26e6b85", "score": "0.55408096", "text": "public function onSearch()\n {\n // get the search form data\n $data = $this->form->getData();\n \n // clear session filters\n TSession::setValue('ProfissaoList_filter_descricao', NULL);\n\n if (isset($data->descricao) AND ($data->descricao)) \n {\n $filter = new TFilter('descricao', 'ilike', \"%{$data->descricao}%\"); // create the filter\n TSession::setValue('ProfissaoList_filter_descricao', $filter); // stores the filter in the session\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('Profissao_filter_data', $data);\n \n $param=array();\n $param['offset'] =0;\n $param['first_page']=1;\n $this->onReload($param);\n }", "title": "" }, { "docid": "b764e6de826a27b2247707af74a86fa4", "score": "0.5528872", "text": "public function SearchForm() {\n\t\t// Search fields\n\t\t$fields = new FieldList(\n\t\t\tnew TextField('q[Term]', _t('CMSSearch.QUERY', 'Query'))\n\t\t);\n\n\t\t// Submit and reset buttons\n\t\t$actions = new FieldList(\n\t\t\tFormAction::create('doSearch', _t('CMSMain_left_ss.APPLY_FILTER', 'Apply Filter'))\n\t\t\t\t->addExtraClass('ss-ui-action-constructive'),\n\t\t\tObject::create('ResetFormAction', 'clear', _t('CMSMain_left_ss.RESET', 'Reset'))\n\t\t);\n\n\t\t// Use <button> to allow full jQuery UI styling on the all of the Actions\n\t\tforeach ($actions->dataFields() as $action) {\n\t\t\t$action->setUseButtonTag(true);\n\t\t}\n\n\t\t// Create the form\n\t\t$form = CMSForm::create($this, 'SearchForm', $fields, $actions)\n\t\t\t->addExtraClass('cms-search-form')\n\t\t\t->setFormMethod('GET')\n\t\t\t->setFormAction($this->Link('filter'))\n\t\t\t->disableSecurityToken()\n\t\t\t->unsetValidator();\n\t\t$form->setResponseNegotiator($this->getResponseNegotiator());\n\t\t$form->disableDefaultAction();\n\n\t\t// Load the form with previously sent search data\n\t\t$form->loadDataFrom($this->request->getVars());\n\n\t\t// Allow decorators to modify the form\n\t\t$this->extend('updateSearchForm', $form);\n\n\t\treturn $form;\n\t}", "title": "" } ]
4cb6f185fe079edbda78dbbd7a1cb25e
deletes record param true/false delete all descendent records
[ { "docid": "0fdacc3eacf2741a3186cdd713560b9a", "score": "0.0", "text": "public function delete($id, $with_children=false)\n {\n\n //little clumsy, due to some Active Record restrictions\n\n if ($with_children)\n {\n $parent = $this->get_one($id);\n } \n\n $this->db->like('id', $id, 'none');\n if (!empty($parent) && $with_children)\n { \n $this->db->or_like($this->lineage, $parent[$this->lineage].'-', 'after');\n } \n \n $this->db->delete($this->table); \n\n }", "title": "" } ]
[ { "docid": "b482dbc4860aedb23eaa8ef3f2149276", "score": "0.68309397", "text": "function delete($record)\n {\n $classname = $this->m_destination;\n $cache_id = $this->m_owner.\".\".$this->m_name;\n $rel = &getNode($classname,$cache_id);\n \n for ($i=0, $_i = count($this->m_refKey); $i<$_i; $i++)\n {\n $primkeyattr = &$this->m_ownerInstance->m_attribList[$this->m_ownerInstance->m_primaryKey[$i]]; \n $whereelems[] = $rel->m_table.\".\".$this->m_refKey[$i].\"='\".$primkeyattr->value2db($record).\"'\";\n }\n $where = implode(\" AND \", $whereelems);\n\n if ($where!=\"\") // double check, so we never by accident delete the entire db\n {\n return $rel->deleteDb($where);\n }\n return true;\n }", "title": "" }, { "docid": "338e99e7d8ffe8ff0dba28e65f28916e", "score": "0.66215295", "text": "public function delete()\n {\n // warn if we are in read-only mode\n if( $this->read_only )\n {\n log::warning( 'Tried to delete read-only record.' );\n return;\n }\n \n // delete the current record\n parent::delete();\n\n $rank_parent_key = is_null( static::$rank_parent ) ? false : static::$rank_parent.'_id';\n\n // now get a list of all records that come after this one\n $modifier = lib::create( 'database\\modifier' );\n if( $rank_parent_key ) $modifier->where( $rank_parent_key, '=', $this->$rank_parent_key );\n $modifier->where( 'rank', '>=', $this->rank );\n $modifier->order( 'rank' );\n $records = static::select( $modifier );\n\n // and now decrement the rank for all records from the list above\n foreach( $records as $record )\n {\n $record->rank--;\n $record->save();\n }\n }", "title": "" }, { "docid": "fc1d23b623d9e1becd7e3baf6626e9fc", "score": "0.64960295", "text": "public function deleteAll()\n {\n \t$records = $this->getAll();\n \t\n \t$counter = 0;\n \t\n \tforeach ($records->body->data as $record){\n \t\t$counter++;\n \t\t$this->delete($record->id); //This is inefficient, but DME does not provide a mass delete method.\n \t}\n \t \n \treturn $counter > 0;\n }", "title": "" }, { "docid": "12d0af071d24c8b7fc13e50f019f6a54", "score": "0.64835805", "text": "abstract public function delete_all(): bool;", "title": "" }, { "docid": "6a7b8bbcc8c70368b66a2b1fa3407ddd", "score": "0.6396719", "text": "public function delete() {\n\n if($this->persists) {\n\n // Get arranger (for compatibility with 5.6 set into separated operation)\n $arranger = DBOModelTransformerManager::getArranger();\n\n // Do Delete\n if ($arranger::delete($this->_getStructure(), $this->currentData)) {\n\n // Flag entity as not persisted in system\n $this->persists = false;\n\n // Erase value of the indexing parameter in the child\n if($this->__currentSchema->primary) {\n\n $this->currentData[$this->__currentSchema->primary->parameterName] = null;\n\n }\n\n }\n\n }\n\n }", "title": "" }, { "docid": "964d2ac553002dff2ecf623b049eba0f", "score": "0.6385412", "text": "public function delete()\n {\n $this->db->delete(self::TABLE_NAME_RELATIONS,\n $this->db->quoteInto(\"colId = ? AND \", $this->model->getColId())\n . $this->db->quoteInto(\"groupId = ? \", $this->model->getGroupId()));\n }", "title": "" }, { "docid": "f4f24a37224a13087b52e07e1e3e4e20", "score": "0.632592", "text": "function delete()\n\t{\n\t\t$id = intval($this['id']);\n\t\t// $db = Zend_Registry::get('db');\n\t\tSQL::query('DELETE FROM base_file WHERE link = ?', array($this->link()) );\n\t\tSQL::query('DELETE FROM base_note WHERE link = ?', array($this->link()) );\n\t\tSQL::query('DELETE FROM workorder_item WHERE workorder_id = ?', array($id) );\n\t\tSQL::query('DELETE FROM workorder WHERE id = ?', array($id) );\n\t\treturn true;\n\t}", "title": "" }, { "docid": "73a80db49ca014608a5db709ccaa5833", "score": "0.632383", "text": "public function delete() {\n\t\t$pk = $this->primaryKey;\n\t\tif ($pk == '') {\n\t\t\t// at the moment can't delete records without primary key\n\t\t\treturn false;\n\t\t}\n\t\t$query = new \\Airaghi\\DB\\SimpleORM\\Query($this->adapter);\n\t\t$query->setTables( $this->tableName );\n\t\t$query->setWhere();\n\t\t$query->appendCondition($pk,'=','?');\n\t\t$query->close();\n\t\t$cmd = $query->getCommandToExecute('delete');\n\t\t$adapterToCall = $query->getAdapter();\n\t\t$bindValues = array($this->$pk);\n\t\t$ok = $adapterToCall->execute($cmd,$bindValues);\n\t\tif ($ok) {\n\t\t\t$this->$pk = '';\n\t\t}\n\t\treturn $ok;\n\t}", "title": "" }, { "docid": "9ab9b5b49d5abb2e7d40da06986babc6", "score": "0.6321714", "text": "abstract public function deleteFromDb();", "title": "" }, { "docid": "450da93327b197acaccda6338fb7f824", "score": "0.6297303", "text": "function delete()\n {\n $exist = $this->exist();\n if (!$exist) return false;\n\n\n //1. delete relations\n $queryRel =\"DELETE FROM $this->_table_relation_name\n WHERE source = :id\n OR target = :id\";\n\n $stmtRel = $this->_conn->prepare($queryRel);\n $stmtRel->bindParam(':id', $this->id);\n\n $stmtRel->execute();\n\n\n // 2. delete node\n $query = \"DELETE FROM $this->_table_name\n WHERE id = :id\";\n \n $stmt = $this->_conn->prepare($query);\n $stmt->bindParam(':id', $this->id);\n \n $stmt->execute();\n if ($stmt->rowCount() > 0); return true;\n\n return false;\n }", "title": "" }, { "docid": "1239ab37e9aa2daad0d9f8ce319ce11b", "score": "0.62759787", "text": "public function DeleteRecord()\r\n\t{\r\n\t\tglobal $dbobj,$generalobj,$otherObj,$clipart;\r\n\t\t$FieldPara = $this->getFieldArray();\r\n\t\t$iPrimaryId = $FieldPara[0][1];\r\n\t\t$TablePara = $this->getTableArray();\r\n\t\tif(GetVar('tabfile') == 'planlogs'){\r\n\t\t\t$staTable = $TablePara[1][0];\r\n\t\t}else{\r\n\t\t\t$staTable = $TablePara[0][0];\r\n\t\t}\r\n\t\t//echo $iPrimaryId;\r\n\t\t//echo $staTable;exit;\r\n\t\tif($this->checkedArr !=\"\")\r\n\t\t{\r\n\t\t\t$checkedArr = \"\".str_replace(\",\",\"','\",$this->checkedArr).\"\";\r\n\t\t\t$checkedArr = \"\".str_replace(\",\",\"','\",$this->checkedArr).\"\";\r\n\r\n\r\n\t\t\t$whe = \"$iPrimaryId in ($this->checkedArr)\";\r\n\t\t\t//$db_res = $dbobj->MySQLDelete($staTable,$whe);\r\n\r\n if($staTable == \"\".PRJ_DB_PREFIX.\"_country_master\")\r\n {\r\n $whe = \"$iPrimaryId in ($this->checkedArr)\";\r\n\t\t\t\t$relDeleteArr = array(\r\n\t\t\t\t\t\t\t\t\t\"tables\"\t=> \tarray(\"\".PRJ_DB_PREFIX.\"_state_master\"),\r\n\t\t\t\t\t\t\t\t\t\"relation\"\t=>\t\" iCountryId in($this->checkedArr)\",\r\n\t\t\t\t\t\t\t\t\t\"checkedArr\"=>\t$this->checkedArr\r\n\t\t\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t//To Delete All Related record to This Id(s)\r\n\t\t\t\t$generalobj->deleteRelRecord($relDeleteArr);\r\n }\r\n $db_res = $dbobj->MySQLDelete($staTable,$whe);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9947bd322136dd405ebc7628cebc64e7", "score": "0.6246632", "text": "public function deleteRecord()\n {\n if ($this->conf['delete']) { // If deleting is enabled\n $origArr = $this->getTypoScriptFrontendController()->sys_page->getRawRecord($this->theTable, $this->recUid);\n if ($this->getTypoScriptFrontendController()->loginUser || $this->aCAuth($origArr)) {\n // Must be logged in OR be authenticated by the aC code in order to delete\n // If the recUid selects a record.... (no check here)\n if (is_array($origArr)) {\n if ($this->aCAuth($origArr) || $this->DBmayFEUserEdit($this->theTable, $origArr, $this->getTypoScriptFrontendController()->fe_user->user, $this->conf['allowedGroups'], $this->conf['fe_userEditSelf'])) {\n // Display the form, if access granted.\n if (!$GLOBALS['TCA'][$this->theTable]['ctrl']['delete']) {\n // If the record is fully deleted... then remove the image (or any file) attached.\n $this->deleteFilesFromRecord($this->recUid);\n }\n $this->DBgetDelete($this->theTable, $this->recUid, true);\n $this->currentArr = $origArr;\n $this->saved = 1;\n } else {\n $this->error = '###TEMPLATE_NO_PERMISSIONS###';\n }\n }\n }\n }\n }", "title": "" }, { "docid": "8fba799043db3a0ed054431499c1eadf", "score": "0.6241156", "text": "function delete_all_marked()\r\n\t{\r\n\t\tif (!isset($_REQUEST[\"records_ids\"]))\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n $obj=$this->get_db_object($_REQUEST[\"obj_name\"],$_REQUEST[\"id_column_name\"]);\r\n\r\n\t\t$ids_arr=$_REQUEST[\"records_ids\"];\r\n\t\tforeach ($ids_arr as $id)\r\n\t\t{\r\n \t$obj->delete($id);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "50e0460d52624285cdab99bcffe1a5b8", "score": "0.6237032", "text": "public function deletion();", "title": "" }, { "docid": "9f9ea90923b9d1662ede31323aa8d42a", "score": "0.62353265", "text": "function delete($ids){\r\n\t\tglobal $connection;\r\n\t\t//delete the relations with this instance, childs.\r\n\t\tif(count($ids)==0) return true;\r\n\t\tif(count($this->childs)>0){\r\n\t\t\t$allids=array();//of arrays\r\n\t\t\t$objs=array();//of AbstractObjects\r\n\t\t\t\r\n\t\t\tfor($i=0,$n=count($this->childs);$i<$n;$i++){\r\n\t\t\t\teval(\"\\$objs[\\$i]=new \".$this->childs[$i].\"();\");\r\n\t\t\t\t$allids[$i]=array();\r\n\t\t\t\t\r\n\t\t\t\t$query=\" SELECT \".$objs[$i]->primarykey.\" FROM \".$objs[$i]->tablename.\" WHERE \".$this->primarykey;\r\n\t\t\t\tif(is_array($ids)) $query.=\" in ('\".implode(\"','\",$ids).\"')\";\r\n\t\t\t\telse $query.=\" = '\".$ids.\"'\";\r\n\t\t\t\t\r\n\t\t\t\t//logOn($query);\r\n\t\t\t\t$rs=$connection->query($query);\r\n\t\t\t\t\r\n\t\t\t\tif(!$rs) continue;\r\n\t\t\t\tfor($j=0,$m=$connection->getNumRows($rs);$j<$m;$j++)\r\n\t\t\t\t\tarray_push($allids[$i],$connection->getResult($rs,$j));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$flag=true;\r\n\t\tif(count($this->relations)>0){\r\n\t\t\tfor($i=0,$n=count($this->relations);$i<$n;$i++){\r\n\t\t\t\teval(\"\\$obj = new \".$this->relations[$i].'();');\r\n\t\t\t\t$obj->primarykey = $this->primarykey;\r\n\t\t\t\t$flag &= $obj->delete($ids);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//delete the files pointed by the type fields file or image\t\r\n\t\t$this->deleteFiles($ids);\r\n\t\t\r\n\t\t$query=\"DELETE FROM \".$this->tablename.\" WHERE \".$this->primarykey;\t\r\n\t\tif(is_array($ids)) $query.=\" IN ('\".implode(\"','\",$ids).\"')\";\r\n\t\telse $query.=\" = '\".$ids.\"'\";\r\n\t\t\r\n\t\tfor($i=0,$n=count($objs);$i<$n && $flag;$i++)\r\n\t\t\t$flag &= $objs[$i]->delete($allids[$i]);\r\n\t\t\t\r\n\t\t//echo $query;\r\n\t\t//logOn($query);\r\n\t\tif(!($connection->query($query) && $flag)){\r\n\t\t\t$this->error=new Error(GENERAL_ERROR,'SQL error: '.$connection->getError());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "16bc73ccce7c892973fb584ab3a4da37", "score": "0.6182897", "text": "public function delete(): bool\n\t{\n\t\t$this->load();\n\t\tif (!$this->exists()) // If it doesn't exist, then there is nothing to delete\n\t\t\treturn false;\n\n\t\tEvents::dispatch(new Delete($this->getClassShortName(), $this['id']));\n\n\t\ttry {\n\t\t\t$this->getORM()->getDb()->beginTransaction();\n\n\t\t\tif ($this->beforeDelete()) {\n\t\t\t\tif ($this->ar_orderBy and $this->ar_orderBy['custom'])\n\t\t\t\t\t$this->shiftOrder($this->db_data_arr[$this->ar_orderBy['field']]);\n\n\t\t\t\t$this->getORM()->getDb()->delete($this->settings['table'], [$this->settings['primary'] => $this[$this->settings['primary']]]);\n\n\t\t\t\t$form = $this->getForm();\n\t\t\t\t$dataset = $form->getDataset();\n\t\t\t\tforeach ($dataset as $d)\n\t\t\t\t\t$d->delete();\n\n\t\t\t\t$this->afterDelete();\n\t\t\t\tif ($this[$this->settings['primary']] and isset($this->parent, $this->init_parent) and $this->init_parent['children'] and $this->parent->children_ar and isset($this->parent->children_ar[$this->init_parent['children']]) and is_array($this->parent->children_ar[$this->init_parent['children']]) and array_key_exists($this[$this->settings['primary']], $this->parent->children_ar[$this->init_parent['children']]))\n\t\t\t\t\tunset($this->parent->children_ar[$this->init_parent['children']][$this[$this->settings['primary']]]);\n\t\t\t} else {\n\t\t\t\t$this->model->error('Can\\t delete, not allowed.');\n\t\t\t}\n\n\t\t\t$this->getORM()->getDb()->commit();\n\n\t\t\t$this->destroy();\n\n\t\t\treturn true;\n\t\t} catch (\\Exception $e) {\n\t\t\t$this->getORM()->getDb()->rollBack();\n\t\t\tthrow $e;\n\t\t}\n\t}", "title": "" }, { "docid": "7a2056d13478b20f53e55fff3c82b621", "score": "0.61828655", "text": "function doRealDelete()\n {\n $this->assignSingle();\n /* Delete the record */\n DatabaseBean::dbDeleteById();\n }", "title": "" }, { "docid": "a61ae80ec577ffd443488596b91209dd", "score": "0.61718535", "text": "public function _delete() {\n //DELETE LISTING\n \tparent::_delete();\n }", "title": "" }, { "docid": "ffeb5ae78f04b1bb64d42a7b8c270b7d", "score": "0.6168333", "text": "public function delete(){ return false; }", "title": "" }, { "docid": "ffeb5ae78f04b1bb64d42a7b8c270b7d", "score": "0.6168333", "text": "public function delete(){ return false; }", "title": "" }, { "docid": "36e1492a9ead799000a94159780798b6", "score": "0.6143294", "text": "public function delete_all();", "title": "" }, { "docid": "0a1ab49ca0042907339dede642400152", "score": "0.6137498", "text": "public function deleting(Record $record)\n {\n if($record->isForceDeleting()) \n {\n $this->forceDeleting($record);\n }\n }", "title": "" }, { "docid": "9d7f869075bf7caa4b2fce7bde9851a6", "score": "0.61257297", "text": "protected function delrec($parent_id) { // crud5 BACKEND D ELETE R OW\n //$parent_id = isset($_REQUEST[$this->idname]) ? intval($_REQUEST[$this->idname]) : 0;\n // $this->idval_url\n //basename(__FILE__).' SAYS'.'<br>'.'$id'.'=='.$parent_id.'=='\n if ('') $this->utl->phpjsmsg('***** '.__FUNCTION__.'() SAYS: ' \n .'<br>'.'$dml=***'.$this->cdel_row_byid.'***<br>'.'?=$parent_id=***'\n .$parent_id.'***');\n // is this m s g e a reply?\n if ($parent_id) {\n // Make sure m s g e doesn't change while we're working with it.\n $this->db->beginTransaction();\n $this->inTransaction = true;\n //\"DELETE FROM $this->table WHERE $this->idname=?\"; //$values[]=$parent_id;\n $st = $this->db->prepare($this->cdel_row_byid);\n //or $this->db->get_con()->prepare ?\n $st->execute(array($parent_id));\n // fetchAll() is needed only for s e l e c t \n //Commit all the operations\n $this->db->commit();\n $this->inTransaction = false;\n } \n }", "title": "" }, { "docid": "f5aafdba5ad8ee17cedaee83dfef0c83", "score": "0.6123683", "text": "function delete() {\n db_begin_work();\n \n $delete = parent::delete();\n if($delete && !is_error($delete)) {\n StatusUpdates::dropByParent($this);\n \n db_commit();\n return true;\n } else {\n db_rollback();\n return $delete;\n } // if\n }", "title": "" }, { "docid": "fbe372f3b8eb8a7328e5fa56cedd8327", "score": "0.6095325", "text": "public function delete(): bool {\n $this->query = \"DELETE FROM {$this->table} \";\n $this->query .= $this->conditions;\n return $this->exeQuery();\n }", "title": "" }, { "docid": "cf03fb30e02eeffa3da50fdb854374fa", "score": "0.60821676", "text": "public function delete($entity, $id = null )\n {\n\n if (is_object($entity)) {\n\n if ($entity instanceof Entity) {\n $id = $entity->getId();\n $entityKey = $entity->getEntityName();\n //$entity\n $entityTable = $entity->getTable();\n } elseif ($entity instanceof LibSqlCriteria) {\n $this->db->delete($this->sqlBuilder->buildDelete($entity));\n\n return false;\n }\n\n } else {\n //$id\n $entityKey = $entity;\n\n if (!$entity = $this->get($entityKey, $id)) {\n Message::addWarning('Tried to delete a non existing Dataset');\n\n return false;\n }\n\n $entityTable = $entity->getTable();\n }\n\n\n $references = $entity->getAllReferences();\n\n // Prüfen aller Referenzen um rekursiv löschen zu können\n foreach ($references as $attribute => $ref) {\n\n if ($attribute == 'rowid') {\n\n //array('type' => 'oneToOne', 'entity' => 'CorePeople' , 'refId' => 'rowid' , 'delete' => true),\n foreach ($ref as $conRef) {\n if (!$conRef['delete'])\n continue;\n\n $this->deleteWhere(SParserString::subToCamelCase($conRef['entity']), $conRef['refId'].' = '.$id);\n\n }\n\n } else {\n\n if (!$ref['delete'])\n continue;\n\n if (!$entity->$attribute)\n continue;\n\n // Rekursives Löschen\n $this->deleteWhere(SParserString::subToCamelCase($ref['entity']), $ref['refId'].' = '.$entity->$attribute);\n }\n\n }\n\n // daten aus dem Data Index entfernen\n //if ($entity->hasIndex())\n // $this->removeIndex($entity);\n\n $sqlstring = $this->sqlBuilder->buildDelete($entityTable, 'rowid', $id);\n\n $this->db->delete($sqlstring);\n\n $this->removeFromPool($entityKey, $id);\n\n return true;\n\n }", "title": "" }, { "docid": "0e58ef956bea264766922c3744e9e83e", "score": "0.60754484", "text": "public function forceDeleting(Record $record)\n {\n //\n }", "title": "" }, { "docid": "e82d8e92047b38a480d3834a37e9ef15", "score": "0.60480887", "text": "function delete_multipal($table,$where){\n\t $this->db->where_in('Lead_id',$where);\n\t\t$del = $this->db->delete($table);\n\t\tif($del){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "ca9fd41878ca8caf4df22c15cc77b872", "score": "0.6047627", "text": "public function deleted(Record $record)\n {\n //\n }", "title": "" }, { "docid": "ec31431637999863047dd575625d3419", "score": "0.604725", "text": "public function delete(){\n\t\tif (!$this->deleted){\n\t\t\tforeach ($this->fields as $item){\n\t\t\t\t/** @var DBItemField $item */\n\t\t\t\t$item->deleteDependencies($this);\n\t\t\t}\n\t\t\t\n\t\t\t$this->db->query(\"DELETE FROM \" . $this->table . \" WHERE `id` = \" . $this->DBid);\n\t\t\t\n\t\t\tunset(self::$instances[$this->specifier->getSpecifiedName()][$this->DBid]);\n\t\t\t$this->deleted = true;\n\t\t\t$this->changed = false;\n\t\t}\n\t}", "title": "" }, { "docid": "dd2692b0d92da8c7ce0bd8dde611de9a", "score": "0.60451627", "text": "public function delete($set_record_objects_data_to_empty_array=false): bool {\n \n $result = $this->getModel()->deleteSpecifiedRecord($this);\n \n if( $result && $set_record_objects_data_to_empty_array ) {\n \n $this->data = [];\n $this->related_data = [];\n $this->initial_data = [];\n $this->non_table_col_and_non_related_data = [];\n }\n \n // if $result is null this means the record does not even exist in the db\n // and it's as good as it being deleted, so return true\n return $result ?? true;\n }", "title": "" }, { "docid": "5820bcda7e5af9f2621ee631a563515b", "score": "0.6031561", "text": "public function del()\n\t{\n\t\t$this->deleted = 1;\n\t\t$this->save();\n\t}", "title": "" }, { "docid": "ac78fe58bd4e579b18a282f605fce79b", "score": "0.60120153", "text": "private function delete_record($table, Array $columns, Array $records, $printSQL = false) {\n\t\treturn $this->get_database_utils ()->delete_record ( $table, $columns, $records, $printSQL );\n\t}", "title": "" }, { "docid": "ac78fe58bd4e579b18a282f605fce79b", "score": "0.60120153", "text": "private function delete_record($table, Array $columns, Array $records, $printSQL = false) {\n\t\treturn $this->get_database_utils ()->delete_record ( $table, $columns, $records, $printSQL );\n\t}", "title": "" }, { "docid": "ac78fe58bd4e579b18a282f605fce79b", "score": "0.60120153", "text": "private function delete_record($table, Array $columns, Array $records, $printSQL = false) {\n\t\treturn $this->get_database_utils ()->delete_record ( $table, $columns, $records, $printSQL );\n\t}", "title": "" }, { "docid": "cce34227ac7023525b84f215b4cd07eb", "score": "0.6008445", "text": "public function delete()\n {\n // if this is an association result or it is limited,\n // create specific result for local rows and execute\n\n if ($this->parent_ || isset($this->limitCount)) {\n return $this->primaryResult()->delete();\n }\n\n return $this->db->delete($this->table, $this->where, $this->whereParams);\n }", "title": "" }, { "docid": "a459a32c375857ed760569a80590a77c", "score": "0.59996814", "text": "public function deleteAll(): bool;", "title": "" }, { "docid": "11d135c4f11305730c30e003222df524", "score": "0.59868723", "text": "public function delete()\n {\n $this->detail()->delete();\n $data = Detail::where(\"order_id\", $this->id)->delete();\n return parent::delete();\n }", "title": "" }, { "docid": "648bb4a586c279ded5298ab84394476d", "score": "0.59853745", "text": "public function test_delete_records() {\n\t\t$table = 'login' ;\n\t\t$conditions = array('pass'=>'LBL');\t\t\n\t\t//$this->assertTrue(delete_records($table,$conditions)) ;\n\t}", "title": "" }, { "docid": "450ebc775e61a9030c8bca5819d675c5", "score": "0.5976632", "text": "public function forceDelete();", "title": "" }, { "docid": "9cee305e2a36db0037ebe093fc554031", "score": "0.597143", "text": "protected function _delete()\n{\n\t# Record id to delete from table.\n\t$id = $this->read_attribute($this->primary_key);\n\t\n\t# Only delete if id exists.\n\tif ( $id )\n\t{ \t\n\t\t# Delete record from table.\n\t\t$this->db->delete($this->table_name(), array($this->primary_key() => $id));\t\n\t}\n}", "title": "" }, { "docid": "bed0f0cf89f329db57f22e4d696c2cb0", "score": "0.5970448", "text": "abstract public function delete();", "title": "" }, { "docid": "bed0f0cf89f329db57f22e4d696c2cb0", "score": "0.5970448", "text": "abstract public function delete();", "title": "" }, { "docid": "5a2f7eea65f24e6c7daa77648d66f488", "score": "0.59696937", "text": "function deleteFromDB() {\n\t\tglobal $firebug;\n\t\tglobal $dbconn;\n\t\t\n\t\t// Check for required parameters\n\t\tif ($this->getID () == NULL) {\n\t\t\t$this->setErrorMessage ( \"902\", \"Missing parameter - 'id' field is required.\" );\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\t// Only attempt to run SQL if there are no errors so far\n\t\tif ($this->getLastErrorCode () == NULL) {\n\t\t\t$dbconnstatus = pg_connection_status ( $dbconn );\n\t\t\tif ($dbconnstatus === PGSQL_CONNECTION_OK) {\n\t\t\t\t$sql = \"SELECT * FROM cpgdb.findvmchildren('\" . $this->getID () . \"', FALSE)\";\n\t\t\t\tpg_send_query ( $dbconn, $sql );\n\t\t\t\t$result = pg_get_result ( $dbconn );\n\t\t\t\t\n\t\t\t\t// Check whether there are any vmeasurements that rely upon this one\n\t\t\t\tif (pg_num_rows ( $result ) > 0) {\n\t\t\t\t\t$this->setErrorMessage ( \"903\", \"There are existing measurements that rely upon this measurement. You must delete all child measurements before deleting the parent.\" );\n\t\t\t\t\treturn FALSE;\n\t\t\t\t} else {\n\t\t\t\t\t// Retrieve data for record about to be deleted\n\t\t\t\t\t$this->setParamsFromDB ( $this->getID () );\n\t\t\t\t\t\n\t\t\t\t\tif ($this->vmeasurementOp->getValue () == \"Direct\") {\n\t\t\t\t\t\t// This is a direct measurement so we can delete the tblmeasurement entry and everything else should cascade delete\n\t\t\t\t\t\t$deleteSQL = \"DELETE FROM tblmeasurement WHERE measurementid='\" . pg_escape_string ( $this->getMeasurementID () ) . \"';\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// This is a derived measurement so we just delete the tblvmeasurement record and let everything else cascade delete\n\t\t\t\t\t\t$deleteSQL = \"DELETE FROM tblvmeasurement WHERE vmeasurementid='\" . pg_escape_string ( $this->getID () ) . \"';\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Perform deletes using transactions\n\t\t\t\t\t$transaction = \"BEGIN;\" . $deleteSQL;\n\t\t\t\t\tpg_send_query ( $dbconn, $transaction );\n\t\t\t\t\t$result = pg_get_result ( $dbconn );\n\t\t\t\t\t$status = pg_transaction_status ( $dbconn );\n\t\t\t\t\tif ($status === PGSQL_TRANSACTION_INERROR) {\n\t\t\t\t\t\t// All gone badly so throw error and rollback\n\t\t\t\t\t\t$this->setErrorMessage ( \"002\", pg_result_error ( $result ) . \"--- SQL was $transaction\" );\n\t\t\t\t\t\tpg_send_query ( $dbconn, \"ROLLBACK;\" );\n\t\t\t\t\t\treturn FALSE;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$result = pg_get_result ( $dbconn );\n\t\t\t\t\t\t// All gone well so commit transaction to db\n\t\t\t\t\t\tpg_send_query ( $dbconn, \"COMMIT;\" );\n\t\t\t\t\t\treturn TRUE;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Connection bad\n\t\t\t\t$this->setErrorMessage ( \"001\", \"Error connecting to database\" );\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Return true as write to DB went ok.\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "a6f1d4a630dfa1170234266c4fff02dd", "score": "0.59646004", "text": "public function purgeSoftDeletedRecords()\n {\n\n $qb = $this->db()->getConnection()->createQueryBuilder();\n $qb->delete('activities');\n $qb->where('deleted = ' . $qb->createPositionalParameter(1));\n $GLOBALS['log']->info(__METHOD__ . ' ' . $qb->getSQL().' '.print_r($qb->getParameters(), true));\n $qb->execute();\n\n $qb = $this->db()->getConnection()->createQueryBuilder();\n $qb->delete('activities_users');\n $qb->where('deleted = ' . $qb->createPositionalParameter(1));\n $GLOBALS['log']->info(__METHOD__ . ' ' . $qb->getSQL().' '.print_r($qb->getParameters(), true));\n $qb->execute();\n\n $qb = $this->db()->getConnection()->createQueryBuilder();\n $qb->delete('comments');\n $qb->where('deleted = ' . $qb->createPositionalParameter(1));\n $GLOBALS['log']->info(__METHOD__ . ' ' . $qb->getSQL().' '.print_r($qb->getParameters(), true));\n $qb->execute();\n }", "title": "" }, { "docid": "2a6a84d62d9383ef06ee100998875763", "score": "0.59584033", "text": "public function delete()\n {\n\t\tif (!$this->checkIsSaved()) return false;\n\t\t$success = self::$db->delete($this->table_name, \"`id` = \".self::$db->getSQ(), array($this->getID()));\n\t\tif (!$success) {\n return false;\n } else {\n return true; \n }\n\t}", "title": "" }, { "docid": "d41afc2b07f8d62298152da427ffe4b2", "score": "0.5954239", "text": "public function forceDestroy($record);", "title": "" }, { "docid": "1eb235a2ff05b49bde24b94562bba796", "score": "0.5953504", "text": "public function isDelete();", "title": "" }, { "docid": "f7d605413341bba7cd56a9aae81307f1", "score": "0.5952836", "text": "public function deleteAll()\n {\n // first deletes linked records\n foreach ($this->_leftJoins as $leftJoin) {\n $record = $leftJoin->getRecord();\n $record->deleteAll();\n }\n \n // and finally deletes the current record\n $this->delete();\n }", "title": "" }, { "docid": "699f2cebdef30e2746dca719a4aeca0e", "score": "0.5951754", "text": "public function delete() {\n return true;\n //return $this->getDao()->delete($this->id);\n }", "title": "" }, { "docid": "791ca7883f08a2d0d834951f9953812e", "score": "0.59365475", "text": "function delete(){\n\t\tparent::delete();\n\t\treturn true;\n\t}", "title": "" }, { "docid": "e236019c2e8d2c66cb218b1802b6a4b1", "score": "0.5936102", "text": "public function destroy()\n\t{\n\t\t// Remove comments\n\t\tforeach ($this->replies()->rows() as $comment)\n\t\t{\n\t\t\tif (!$comment->destroy())\n\t\t\t{\n\t\t\t\t$this->addError($comment->getError());\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Remove vote logs\n\t\tforeach ($this->votes()->rows() as $vote)\n\t\t{\n\t\t\tif (!$vote->destroy())\n\t\t\t{\n\t\t\t\t$this->addError($vote->getError());\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Attempt to delete the record\n\t\treturn parent::destroy();\n\t}", "title": "" }, { "docid": "2b58687d385fdc1e158b709e3f9fe2b0", "score": "0.59335375", "text": "public function nestDelete() \n\t{\n\t\tforeach ($this->details as $detail) \n\t\t{\n\t\t\t$detail->delete();\n\t\t}\n\n\t\tforeach ($this->images as $image) \n\t\t{\n\t\t\t$image->nestDelete();\n\t\t}\n\n\t\t$this->delete();\n\t}", "title": "" }, { "docid": "76e97b0b56a130630f1dceebd113dd44", "score": "0.5930121", "text": "public function delete()\n {\n if (empty ($this->data[$this->primaryKey]))\n return false;\n\n $this->db->where($this->primaryKey, $this->data[$this->primaryKey]);\n $res = $this->db->delete($this->dbTable);\n $this->toSkip = array();\n return $res;\n }", "title": "" }, { "docid": "519aded79e6ecec78e9b6a718912d710", "score": "0.59263724", "text": "abstract protected function delete();", "title": "" }, { "docid": "c8c0245626dd9a19c3e98f9fd3df574a", "score": "0.592593", "text": "public function del()\n\t{\n\t\t$param = array();\n\t\tforeach($this->_param->primary AS $row => $name)\n\t\t\t$param[':'.$name] = $this->_data[$name];\n\t\t\n\t\t\\He\\Trace::addTrace(\"Supression de la ligne \".print_r($param[':'.$name.$row], 1).\"...\", get_called_class());\n\t\t\n\t\t$this->_prepareDel()->execute($param);\n\t\t$this->_exist = false;\n\t\t\\He\\Trace::addTrace(\"Effectué !\", get_called_class());\n\t\tunset($this);\n\t}", "title": "" }, { "docid": "bf2d543676452700b01c7df290c5a670", "score": "0.59218603", "text": "public function delete_child($data) {\n \t\t\n \t\t// $this->db->where('userId', $data['userId']);\n \t\t// $this->db->where('id', $data['childId']);\n // \t\t$this->db->delete('children');\n \t\t\n // \t\tif($this->db->affected_rows() > 0){\n\t\t// \treturn true;\n\t\t// }else{\n\t\t// \t$this->errors = array(\n\t\t// \t\t'database'\t=> 'Nothing to delete.',\n\t\t// \t);\n // return false;\n\t\t// }\n\t}", "title": "" }, { "docid": "9bdd340d9837bfa31a950576efb59874", "score": "0.59202784", "text": "public function delete() : bool \n {\n // objectif : supprimer un enregistrement selon son id\n // définition de la requete\n $sql = \"\n DELETE\n FROM `\" . self::TABLE . \"`\n WHERE id = :id\n \";\n\n // selon son id === qqch de dynamique === requete préparée\n // préparation\n $pdoStatement = Database::getPDO()->prepare($sql);\n\n // assignation des jetons\n $pdoStatement->bindValue(':id', $this->id, PDO::PARAM_INT);\n\n // execution\n $pdoStatement->execute();\n\n // on peut récupérer le nombre de ligne affectées par le dernier execute de l'objet pdoStatement avec rowCount\n $numRows = $pdoStatement->rowCount();\n\n // retour true ou false selon le nombre de lignes impactées\n return $numRows > 0;\n }", "title": "" }, { "docid": "89fc0960cbeb9863c55091e1aefcc99a", "score": "0.5918425", "text": "protected function deleteRecords () {\n try {\n // Now we have the 2-3 ids we need to delete:\n $this->deleteHold();\n // Deleting bib appears to trigger deletion of item\n $this->deleteBib();\n\n APILogger::addInfo('Deleted ' . ($this->hold_id ? 'hold, bib, and item' : 'bib and item') . ' for virtual record ' . $this->item_id);\n\n return true;\n } catch (APIException $exception) {\n APILogger::addError('Encountered error deleting virtual record: ' . $exception->getMessage());\n return false;\n } catch (Exception $exception) {\n APILogger::addError('Error: ' . $exception->getMessage());\n return false;\n } \n }", "title": "" }, { "docid": "e136fb209e6e6901dc14080d423f0221", "score": "0.59177744", "text": "public function delete() {\n $db = static::$current_db;\n global $$db;\n $DB = $$db;\n\n $current_child_table_name = static::$table_name;\n\n /*\n * { - Create query - end\n */\n $query = \"DELETE FROM \";\n $query .= $current_child_table_name . \" \";\n $query .= \"WHERE id=\" . $DB->mysql_prep_value($this->id) . \" \";\n $query .= \"LIMIT 1\";\n\n /*\n * } - Create query - end\n */\n if($DB->run_query($query)) {\n br();\n echo \"User with id\" . $this->id . \"was successfully deleted\";\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "7bf9c10f6b902a85bee13a4bf8df9287", "score": "0.59147877", "text": "public abstract function delete();", "title": "" }, { "docid": "f6453761d242466206211a719e11b978", "score": "0.59132147", "text": "public function delete(){\r\n\t\t$params = array();\r\n\t\tforeach($this->id as $fieldName){\r\n\t\t\t$alias = $this->fields[$fieldName];\r\n\t\t\t$params[$this->fields[$fieldName]] = $this->$alias;\r\n\t\t}\r\n\r\n\t\t$this->deleteById($params);\r\n\t}", "title": "" }, { "docid": "ffc163d9447c41461882da49644dbef2", "score": "0.59080136", "text": "function postDelete($record){\r\n\t\t// notify the user that the record has been deleted\r\n\t\t$this->printMessage(\"Record, \".$record[$this->index_field].\", Deleted Successfully\");\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "d47f5ed7efb07b0df14980582bf2f19b", "score": "0.5902854", "text": "function deleteOrphans() {\n return true;\n }", "title": "" }, { "docid": "3170c08715b9da96b65e61b17e366355", "score": "0.58981377", "text": "private function _delete_records(){\n\t\t\t$file_url = $this->class_settings[ 'calling_page' ] . $this->directory_of_process_handlers . $this->class_settings[ 'database_table' ] . '/delete_process_before.php';\n\t\t\tif( file_exists( $file_url ) ){\n\t\t\t\tinclude $file_url;\n\t\t\t}\n\t\t\t\n\t\t\t$returning_html_data = '';\n\t\t\t\n\t\t\t$controller_table = '';\n\t\t\tif( isset( $this->class_settings[ 'database_controller_table' ] ) )\n\t\t\t\t$controller_table = $this->class_settings[ 'database_controller_table' ];\n\t\t\t\n\t\t\tif( isset($_POST['mod']) && ( $_POST['mod']=='delete-'.md5( $this->class_settings[ 'database_table' ] ) || $_POST['mod']=='delete-'.md5( $controller_table ) ) && ( isset( $_POST['id'] ) || isset($_POST['ids']) ) ){\n\t\t\t\t$condition = \"\";\n\t\t\t\t$fields_to_delete = \"\";\n\t\t\t\t$values_to_delete = \"\";\n\t\t\t\t$select_clause_for_query = \"\";\n\t\t\t\t\n\t\t\t\tif( isset($_POST['ids']) && $_POST['ids'] ){\n\t\t\t\t\t$condition = \"OR\";\n\t\t\t\t\t\n\t\t\t\t\t$array_of_ids = explode(':::' , $_POST['ids']);\n\t\t\t\t\tif( is_array($array_of_ids) ){\n\t\t\t\t\t\tforeach( $array_of_ids as $ids ){\n\t\t\t\t\t\t\tif( $ids ){\n\t\t\t\t\t\t\t\tif($values_to_delete)$values_to_delete .= '<>'.$ids;\n\t\t\t\t\t\t\t\telse $values_to_delete = $ids;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif($fields_to_delete)$fields_to_delete .= ',id';\n\t\t\t\t\t\t\t\telse $fields_to_delete = 'id';\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif($select_clause_for_query)$select_clause_for_query .= \" OR `\" . $this->class_settings[ 'database_table' ] . \"`.`id`='\".$ids.\"'\";\n\t\t\t\t\t\t\t\telse $select_clause_for_query = \"`\" . $this->class_settings[ 'database_table' ] . \"`.`id`='\".$ids.\"'\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif( ! ($fields_to_delete && $values_to_delete) ){\n\t\t\t\t\t$fields_to_delete = 'id';\n\t\t\t\t\t$values_to_delete = $_POST['id'];\n\t\t\t\t\t\n\t\t\t\t\t$select_clause_for_query = \"`\" . $this->class_settings[ 'database_table' ] . \"`.`id`='\".$_POST['id'].\"'\"; \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//delete items\n\t\t\t\t$settings_array = array(\n\t\t\t\t\t'database_name' => $this->class_settings['database_name'] ,\n\t\t\t\t\t'database_connection' => $this->class_settings['database_connection'] ,\n\t\t\t\t\t'table_name' => $this->class_settings[ 'database_table' ] ,\n\t\t\t\t\t'field_and_values' => array(\n\t\t\t\t\t\t'record_status' => array(\n\t\t\t\t\t\t\t'value' => '0',\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'modification_date' => array(\n\t\t\t\t\t\t\t'value' => date(\"U\"),\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'modified_by' => array(\n\t\t\t\t\t\t\t'value' => $this->class_settings['user_id'] ,\n\t\t\t\t\t\t),\n\t\t\t\t\t) ,\n\t\t\t\t\t'where_fields' => $fields_to_delete ,\n\t\t\t\t\t'where_values' => $values_to_delete ,\n\t\t\t\t\t'condition' => $condition ,\n\t\t\t\t);\n\t\t\t\t$save = update( $settings_array );\n\t\t\t\t\n\t\t\t\tif($save){\n\t\t\t\t\t//Auditor\n\t\t\t\t\t//auditor( $this->class_settings , 'delete' , $this->class_settings[ 'database_table' ] , 'deleted record with '.$fields_to_delete.' '.$values_to_delete.' in the table' );\n\t\t\t\t\t\n\t\t\t\t\t//Process to Execute After Successful Delete Process\n\t\t\t\t\t$file_url = $this->class_settings[ 'calling_page' ] . $this->directory_of_process_handlers . $this->class_settings[ 'database_table' ] . '/delete_process_success.php';\n\t\t\t\t\tif( file_exists( $file_url ) ){\n\t\t\t\t\t\tinclude $file_url;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//Return Successful write operation to database\n\t\t\t\t\t$err = new cError(010001);\n\t\t\t\t\t$err->action_to_perform = 'notify';\n\t\t\t\t\t\n\t\t\t\t\t$err->class_that_triggered_error = 'cregistered_users.php';\n\t\t\t\t\t$err->method_in_class_that_triggered_error = '_delete';\n\t\t\t\t\t$err->additional_details_of_error = 'updated record with '.$fields_to_delete.' '.$values_to_delete.' on line 284';\n\t\t\t\t\t\n $returning = $err->error();\n \n $returning['deleted_records_select_query'] = $select_clause_for_query;\n if( isset($_POST['ids']) && $_POST['ids'] ){\n $returning['deleted_record_id'] = $_POST['ids'];\n }else{\n if( isset($_POST['id']) && $_POST['id'] )$returning['deleted_record_id'] = $_POST['id'];\n }\n \n return $returning;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Process to Execute After Failed Delete Process\n\t\t\t$file_url = $this->class_settings[ 'calling_page' ] . $this->directory_of_process_handlers . $this->class_settings[ 'database_table' ] . '/delete_process_failed.php';\n\t\t\tif( file_exists( $file_url ) ){\n\t\t\t\tinclude $file_url;\n\t\t\t}\n\t\t\t\n\t\t\t//Return unsuccessful update operation\n\t\t\t$err = new cError(000006);\n\t\t\t$err->action_to_perform = 'notify';\n\t\t\t\n\t\t\t$err->class_that_triggered_error = 'cProcess_handler.php';\n\t\t\t$err->method_in_class_that_triggered_error = '_delete_records';\n\t\t\tif( isset( $fields_to_delete ) && isset( $values_to_delete ) ){\n\t\t\t\t$err->additional_details_of_error = 'could not update record on line 284 with fields ' . $fields_to_delete . ' and values '.$values_to_delete;\n\t\t\t}else{\n\t\t\t\t$err->additional_details_of_error = '$_POST variable not set, thus could not update record on line 284';\n\t\t\t}\n\t\t\treturn $err->error();\n\t\t}", "title": "" }, { "docid": "6bfbec032fc887789ff02da0452deb8e", "score": "0.5891063", "text": "public function delete() {\n \t\n \treturn false;\n \t\n }", "title": "" }, { "docid": "f816a18cb34d47864708ab158d939595", "score": "0.5890118", "text": "public function deleteAll()\n {\n $company_id = Configure::get('Blesta.company_id');\n $this->Record\n ->from(self::TABLE_PIN)\n ->from('clients')\n ->from('client_groups')\n ->where(self::TABLE_PIN . '.client_id', '=', 'clients.id', false)\n ->where('clients.client_group_id', '=', 'client_groups.id', false)\n ->where('client_groups.company_id', '=', $company_id)\n ->delete([self::TABLE_PIN]);\n }", "title": "" }, { "docid": "be5e36bcae810cc1dc24f87555adaa49", "score": "0.5884758", "text": "function delete()\r\n\t{\r\n\t\t$cids = JRequest::getVar( 'cid', array(0), 'post', 'array' );\r\n\r\n\t\t$row =& $this->getTable();\r\n\r\n\t\tif (count( $cids )) {\r\n\t\t\tforeach($cids as $cid) {\r\n\t\t\t\tif (!$row->delete( $cid )) {\r\n\t\t\t\t\t$this->setError( $row->getErrorMsg() );\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "be5e36bcae810cc1dc24f87555adaa49", "score": "0.5884758", "text": "function delete()\r\n\t{\r\n\t\t$cids = JRequest::getVar( 'cid', array(0), 'post', 'array' );\r\n\r\n\t\t$row =& $this->getTable();\r\n\r\n\t\tif (count( $cids )) {\r\n\t\t\tforeach($cids as $cid) {\r\n\t\t\t\tif (!$row->delete( $cid )) {\r\n\t\t\t\t\t$this->setError( $row->getErrorMsg() );\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "6657295fff3be51bf5e706c3feddb894", "score": "0.58839434", "text": "public function DBEliminar()\n {\n $oDbl = $this->getoDbl();\n $nom_tabla = $this->getNomTabla();\n if (($oDblSt = $oDbl->exec(\"DELETE FROM $nom_tabla WHERE id_item=$this->iid_item\")) === false) {\n $sClauError = 'ProfesorDocenciaStgr.eliminar';\n $_SESSION['oGestorErrores']->addErrorAppLastError($oDbl, $sClauError, __LINE__, __FILE__);\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "eb161eb1e5cc4191b58942b7b51fd5ed", "score": "0.5880743", "text": "function deleteEntry() \n {\n // first remove any associated fields with this DAObj\n $daFieldList = new DAFieldList( $this->getID() );\n $daFieldList->setFirst();\n while( $field = $daFieldList->getNext() ) {\n $field->deleteEntry();\n }\n \n // now call parent method\n parent::deleteEntry();\n \n }", "title": "" }, { "docid": "e1bc2002439e36384461d96f2cdcfea6", "score": "0.58767307", "text": "public function delete()\n\t{\n\t\tif ( count($this->where) )\n\t\t\treturn safe_delete($this->table, $this->clause_string());\n\t}", "title": "" }, { "docid": "83b486d5cf12ec72ae7b1954240d2add", "score": "0.5875798", "text": "function del_data($table, $id)\n\t{\n\t\t$this->db->where('id', $id);\n\t\t$val = $this->db->delete($table); \n\t\t// echo $this->db->last_query();\n\t\t// die();\n\t\tif($val)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "3b0e73fabc6674ba2c7d4d5493836077", "score": "0.5869762", "text": "public function delete() {\n\t\treturn true; \n\t}", "title": "" }, { "docid": "948480605833a427666bc469b7103d93", "score": "0.58657914", "text": "abstract public function delete( $entity );", "title": "" }, { "docid": "aaf76d15893a2cf1257f8ba95050a441", "score": "0.58619356", "text": "public function _do_delete(&$success = TRUE, &$error_message = '', $propagate = TRUE)\n {\n if($this->_deleted == '')\n {\n return $this->_do_purge($success, $error_message, $propagate);\n }\n // get table, pk, pk_field, and timestamp\n $table = $this->_table;\n $pk_field = $this->_id;\n $pk = $this->_get_id();\n\n if($pk === NULL)\n {\n return array('success' => FALSE, $error_message = 'Deletion cannot be performed on '.$this->db->dbprefix.$this->_table.'. Primary Key is not defined');\n }\n\n $timestamp = date('Y-m-d H:i:s');\n\n // start transaction\n $this->db->trans_start();\n\n // before delete\n $this->before_delete($success, $error_message);\n if($success)\n {\n // something is going to changed, delete cached_result\n $class = get_called_class();\n\n // Don't need to change anything else \n $simple_array = array();\n\n // add timestamp, and update deleted\n if($this->_deleted_at != '')\n {\n $simple_array[$this->_deleted_at] = $timestamp;\n $this->__set($this->_deleted_at, $timestamp);\n }\n if($this->_deleted != '')\n {\n $simple_array[$this->_deleted] = TRUE;\n $this->__set($this->_deleted, TRUE);\n }\n $success = $this->db->update($table, $simple_array, array($pk_field=>$pk));\n $error = $this->db->error();\n $error_message = $error['message'];\n\n // cut of relationship with parents\n foreach($this->_parents as $alias=>$config)\n {\n $this->_unset_parent($alias);\n $simple_array[$alias] = NULL;\n }\n\n // override cached record\n if($success)\n {\n $simple_array[$pk_field] = $pk;\n $class::override_cached_record($simple_array);\n }\n }\n\n // update foreign keys of children\n if($success && $propagate)\n {\n foreach($this->_children as $alias=>$child_config)\n {\n $fk = $child_config['foreign_key']; \n $on_delete = $child_config['on_delete'];\n $children = $this->__get($alias);\n\n $backref_alias = $this->_get_backref_relation($alias);\n\n // set foreign key and delete\n switch($on_delete)\n {\n case 'set_null' :\n foreach($children as &$child)\n {\n $child->_unset_parent($backref_alias);\n $child->_do_save($success, $error_message, FALSE);\n }\n break;\n\n case 'cascade' :\n foreach($children as &$child)\n {\n $child->_do_delete($success, $error_message, FALSE);\n $new_child[] = $child;\n }\n break;\n\n case 'restrict' :\n default :\n foreach($children as &$child)\n {\n $success = FALSE;\n $error_message = 'Deletion cannot be performed. Table '.$this->db->dbprefix.$this->_table.' still has ' . $alias;\n break;\n }\n }\n\n if(!$success)\n {\n break;\n }\n }\n }\n\n if($success)\n {\n $this->after_delete($success, $error_message);\n }\n\n\n // stop transaction\n if($success)\n {\n $this->db->trans_complete();\n }\n else\n {\n $this->db->trans_rollback();\n }\n\n return array('success' => $success, 'error_message' => $error_message);\n }", "title": "" }, { "docid": "1c820848e18691f3cd3325217c4e216b", "score": "0.58590883", "text": "public function delete()\n\t{\n\t\ttry{\n\t\t\t$id = (int)$this->{$this->primaryKey};\n\t\t\t$db = joz_db::getLink();\n\t\t\tif(joz_config::getInstance()->getVar(\"logSQLQueries\"))\n\t\t\t{\n\t\t\t\t$this->logger->debug(\"DELETE FROM {$this->tableName} WHERE {$this->primaryKey} = :pk\".\" :pk = $id\");\n\t\t\t}\n\t\t\t$query = $db->prepare(\"DELETE FROM {$this->tableName} WHERE {$this->primaryKey} = :pk\");\n\t\t\t$query->bindParam(':pk',$id, PDO::PARAM_INT);\n\t\t\t$result = $query->execute();\n\t\t\tif($result)\n\t\t\t\treturn true;\n\t\t\t$this->logger->error('Trying to delete record with id '.$this->{$this->primaryKey}.'. But something whent wrong, bailing out.');\n\t\t\treturn false;\n\t\t}catch(PDOException $e)\n\t\t{\n\t\t\t$this->logger->error((string)$e);\n\t\t\t$this->_error = 'An unexpected error occured, please try again later';\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "983ce3df14762ff652169bf53495439c", "score": "0.58574593", "text": "function get_delete($where){\n $this->db->where($where);\n $this->db->delete($this->tabel);\n return TRUE;\n }", "title": "" }, { "docid": "a5e4e936d8455441bf009adf5547ebab", "score": "0.5847348", "text": "function delete(){\n // read properties of the child class, get the primary key and create sql delete satement and execute from connection class\n \n foreach ($this as $key=>$value){\n\n if (get_class((object)$value) == \"PrimaryKey\"){\n break;\n }\n\n }\n\n // \"DELETE FROM table_name WHERE pk_column = value\";\n $sql = \"DELETE FROM \" . static::$tableName . \" WHERE \". $key . \"='\". $value->value.\"'\"; // identify the record to delete by the primary key\n\n Connection::execute($sql);\n }", "title": "" }, { "docid": "2487c1da50b8f03d0b66eee483f96268", "score": "0.5841928", "text": "function delete_where($table, $where) {\n \n $table = strtolower($table);\n\n $this->table($table);\n\n $where_arr = array();\n $where_str = '';\n foreach($where as $field => $value) {\n if (strlen($value) > 0) {\n $where_str .= ($where_str?' AND ':'').$field.' = ?';\n array_push($where_arr, $value);\n } else\n $where_str .= ($where_str?' AND ':'').$field.' IS NULL';\n } \n $passed = false;\n global $db; \n\n $query = $db->query_ex('SELECT '.$this->key_field($table). ' AS id FROM '.$table.' WHERE '.$where_str, $where_arr);\n while ($row = $db->next_row($query)) {\n $result = $this->delete($table, $row['id'], null, null, true);\n if (!$result) {\n //if ($passed and $this->is_nested_set($table))\n // $this->setup_nested_set($table);\n return false;\n } else \n $passed = true;\n }\n \n //if ($this->is_nested_set($table))\n // $this->setup_nested_set($table);\n \n return true;\n \n }", "title": "" }, { "docid": "b36929c2510fdc05e1c5b3def99c66a2", "score": "0.5841401", "text": "function delete()\n {\n $this->obj->buildDeleteWhere(\"id\");\n $this->assertEquals(null, $this->obDB->delete(\"students\", $this->obj));\n }", "title": "" }, { "docid": "a4fe92ca4446063146a88021ef358120", "score": "0.5833263", "text": "public function delete(){\n $this->attributes()->delete();\n return parent::delete();\n }", "title": "" }, { "docid": "2e8f1f29c1d4bc4fbd19d0ddfe540c66", "score": "0.5829049", "text": "public function flagDelete()\n {\n if(!$this->getId()) {\n return false;\n }\n \n if(!$this->setProperty('delete', true)->save()) {\n return false;\n }\n \n return $this->apply();\n }", "title": "" }, { "docid": "7cd42fc865c0b957a0a5eba4313ff0fe", "score": "0.58279437", "text": "function delete()\n\t{\n\t\tglobal $ilDB;\n\t\t\n\t\t// always call parent delete function first!!\n\t\tif (!parent::delete())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t// delete terms\n\t\tif (!$this->isVirtual())\n\t\t{\n\t\t\t$terms = $this->getTermList();\n\t\t\tforeach ($terms as $term)\n\t\t\t{\n\t\t\t\t$term_obj =& new ilGlossaryTerm($term[\"id\"]);\n\t\t\t\t$term_obj->delete();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// delete glossary data entry\n\t\t$q = \"DELETE FROM glossary WHERE id = \".$ilDB->quote($this->getId());\n\t\t$ilDB->query($q);\n\n\t\t// delete meta data\n\t\t$this->deleteMetaData();\n/*\n\t\t$nested = new ilNestedSetXML();\n\t\t$nested->init($this->getId(), $this->getType());\n\t\t$nested->deleteAllDBData();\n*/\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "67f8ffa93be22fb11b13fbf2f7d8e084", "score": "0.5820064", "text": "abstract public function delete(): bool;", "title": "" }, { "docid": "42982f5c0a5d57fb430f58877b142091", "score": "0.58190775", "text": "protected function delete_specific() {\n\t\tquery(query_delete(array(\n\t\t\t\"TABLE\" => $this->database_name, \n\t\t\t\"WHERE\" => array($this->primary_key => \n\t\t\t\tarray(\"=\", $this->id))\n\t\t))); \n\t\t\n\t\treturn true; \n\t}", "title": "" }, { "docid": "0164a547fe92b83c542fbcaadcc5f01a", "score": "0.58166295", "text": "public function delete() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "df9a9541c1489b1d354a34557e706cc3", "score": "0.5815031", "text": "function delete(){\n\t\t$this->updateData($this->getTblWard(), array('wards_deleted' => \"1\"), 'wards_id', $this->getId());\n\t}", "title": "" }, { "docid": "dec8008a7ff4971074f78c213ebaaa3e", "score": "0.5813934", "text": "public function deleting()\n {\n //\n }", "title": "" }, { "docid": "7d7e77ade2448c0698fbe5467cf2b74e", "score": "0.581327", "text": "public function ar_delete() {\n\t\t\treturn $this->active_table->ar_delete();\n\t\t}", "title": "" }, { "docid": "0b91638d07121a1dfc244880419f54ab", "score": "0.5808985", "text": "public function delete()\n {\n if (isset($this->vals, $this->name)) {\n $this->filter();\n if (!isset($this->Dname)) {\n $this->normalize();\n }\n $delCommand = $this->mainP->delete()->from($this->Dname . 'Rt')->where('id', $this->vals['id']);\n $this->result = $delCommand->execute();\n if ($this->result) {\n echo 'Deleting successfully Accomplished!' . PHP_EOL;\n }\n } else {\n echo 'Insert Vals and Name first!' . PHP_EOL;\n }\n }", "title": "" }, { "docid": "06deb7fb72a45854bdb8780a50b1bd2c", "score": "0.58071357", "text": "function deleteRecord() {\r\n\tglobal $am;\r\n\t\r\n\tif (isset($_GET['ID']) || isset($_GET['accountID'])) {\r\n\t\t$IDs = explode(\",\",$_GET['ID']); \t\r\n\t\t\t\t\t\r\n\t\t//check if we can delete this item\r\n\t\t$acc = $am->getAccountById($_GET['accountID']);\r\n\t\t\r\n\t\t$processedPlannedTransactions = array();\r\n\t\t\r\n\t\tforeach($IDs as $ID){\r\n\t\t\tif(substr($ID,0,1)==\"p\") {\r\n\t\t\t\t$pos = strpos($ID,\"_\");\t\t\t\t\r\n\t\t\t\t$ID = substr($ID,1,$pos-1);\r\n\r\n\t\t\t\t//Prevent try to delete one plannedTransaction several times if it was expanded to\r\n\t\t\t\t//more than one occurence\r\n\t\t\t\tif (array_key_exists($ID, $processedPlannedTransactions)) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$processedPlannedTransactions[$ID] = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$acc->deletePlannedTransaction($ID);\r\n\t\t\t} else {\r\n\t\t\t\t$acc->deleteFinishedTransaction($ID);\r\n\t\t\t}\r\n\t\t}\r\n\t\techo \"\";\r\n\t} else {\r\n\t\techo \"no ID/accID was transmitted!\";\t\r\n\t}\t\r\n\t\r\n}", "title": "" }, { "docid": "54bb485fc72611c6d2963c0a04f82e04", "score": "0.58042055", "text": "public function delete() {\n if (!$this->id())\n return false;\n foreach ($this->schema[\"fields\"] as $key => $field) {\n if ($field[\"type\"] == \"file\" && $this->get($key)) {\n $File = $this->getEntity(\"File\", $this->get($key));\n $File->delete();\n }\n }\n if (!$this->Db->delete($this->schema[\"table\"], [\"id\" => $this->id()]))\n return false;\n $this->deleteAlias();\n return true;\n }", "title": "" }, { "docid": "7d7e6c8dfb99e9b2226d2774a0a3e70a", "score": "0.5803888", "text": "abstract public function destroy($delete = false);", "title": "" }, { "docid": "da44f777c6e2882fa71a6975b2fba687", "score": "0.57985085", "text": "public function doDelete(){\r\n\t\t}", "title": "" }, { "docid": "dc17f11fead6e2e627069cb2556d3eab", "score": "0.579368", "text": "public function delete()\n\t{\n\t\t$success = true;\n\t\t$transaction = $this->getDbConnection()->beginTransaction();\n\n\t\t// get all related objects\n\t\t$adventure_steps = $this->getRelated('adventureSteps');\n\t\t$adventure_step_options = array();\n\t\tforeach($adventure_steps as $adventure_step) {\n\t\t\t$temp = $adventure_step->getRelated('stepOptions');\n\t\t\tforeach($temp as $option)\n\t\t\t{\n\t\t\t\t$adventure_step_options[$option->id] = $option;\n\t\t\t}\n\t\t}\n\n\t\t// first delete the step options/connections\n\t\tforeach($adventure_step_options as $adventure_step_option)\n\t\t{\n\t\t\t$success = $adventure_step_option->deleteByPk($adventure_step_option->id);\n\t\t\tif (!$success)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif ($success)\n\t\t{\n\t\t\t// the delete the steps\n\t\t\tforeach($adventure_steps as $adventure_step)\n\t\t\t{\n\t\t\t\t$success = $adventure_step->deleteByPk($adventure_step->id);\n\t\t\t\tif (!$success)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($success)\n\t\t{\n\t\t\t// delete the adventure\n\t\t\t$success = parent::delete();\n\t\t}\n\t\tif ($success)\n\t\t{\n\t\t\t$transaction->commit();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$transaction->rollback();\n\t\t}\n\t\treturn $success;\n\t}", "title": "" }, { "docid": "fc798f91e084d4f75af02c19370a3cfd", "score": "0.5788228", "text": "function delete()\n {\n if (!$this->id || !$this->exists()) {\n return false;\n }\n\n $query = \"DELETE FROM {$this->table_name} WHERE id = ?\";\n\n // prepare query\n $stmt = $this->conn->prepare($query);\n\n // sanitize\n $this->id=htmlspecialchars(strip_tags($this->id));\n\n // bind id of record to delete\n $stmt->bindParam(1, $this->id);\n\n // execute query\n if($stmt->execute()){\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "30ff3221f3daed1e1e7eeacf6bef79f7", "score": "0.57838297", "text": "public function deleteALL(){\n $query = \"DELETE FROM {$this->quoteTable($this->tablename)}\";\n $this->getDB()->exec($query);\n $this->invalidate();\n $query = \"ALTER TABLE {$this->quoteTable($this->tablename)} AUTO_INCREMENT = 1\";\n $this->getDB()->exec($query);\n return true;\n }", "title": "" }, { "docid": "10c888c95c3beaaaf8b57e57d745e272", "score": "0.5776441", "text": "public function delete() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ac441d1bf1388903a5b9bed1a1085f00", "score": "0.57745", "text": "protected function preDelete()\n\t{\n\t\t// hapus child\n\t\tif( $this->content_parent == 0 ) \n\t\t{\n\t\t\t$childs = self::GetContents($this->_db, array('parent_in' => $this->getId()));\n\t\t\tif( $childs )\n\t\t\t{\n\t\t\t\tforeach( $childs as $child )\n\t\t\t\t\t$child->delete(false);\n\t\t\t\t\n\t\t\t\t$content_ids = array_keys( $childs );\n\t\t\t\t$this->term->deleteAllTerms( $content_ids );\n\t\t\t}\n\t\t} \n\t\t\n\t\t// hapus term\n\t\t$this->term->deleteAllTerms( $this->getId() );\n\t\t\n\t\t// hapus profile ( custom fields )\n\t\t$this->profile->delete();\n\t\t\n\t\tif( $this->images ) \n\t\t{\n\t\t\t// hapus semua gambar terkait\n\t\t\tforeach ( $this->images as $image )\n\t\t\t{\n\t\t\t\t$image->delete(false);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "4cc845233ad309e12e9ddc173d3d1ffc", "score": "0.5759153", "text": "function delete(){\n \n // delete query\n $query = \"DELETE FROM \" . $this->table_name . \" WHERE idRenter = ?\";\n \n // prepare query\n $stmt = $this->conn->prepare($query);\n \n // sanitize\n $this->idRenter=htmlspecialchars(strip_tags($this->idRenter));\n \n // bind idRenter of record to delete\n $stmt->bindParam(1, $this->idRenter);\n \n // execute query\n if($stmt->execute()){\n return true;\n }\n \n return false;\n \n }", "title": "" } ]
d90ff8c229afe3fff86321bb60082982
Tests the setVille() method.
[ { "docid": "8fec779cba0b0032cc84bd92d3d0cf42", "score": "0.7960063", "text": "public function testSetVille() {\n\n $obj = new DecTvaGroupe();\n\n $obj->setVille(\"ville\");\n $this->assertEquals(\"ville\", $obj->getVille());\n }", "title": "" } ]
[ { "docid": "c680c82787933d3f204344cfb7ed6bbe", "score": "0.64047635", "text": "public function setPersonne_ville(Ville $valeur) {\n \t$this->personne_ville = $valeur;\n }", "title": "" }, { "docid": "a9a9adcec2e9f50a6356e11fd5e76ee3", "score": "0.60677445", "text": "public function set_idVille(int $_idVille)\n {\n $this->_idVille = $_idVille;\n\n return $this;\n }", "title": "" }, { "docid": "e7194ed102df1a938b4d7a249c83a926", "score": "0.5938457", "text": "public function setVille($ville)\n {\n $this->ville = $ville;\n\n return $this;\n }", "title": "" }, { "docid": "27043c996242f61b3bc2e86ee482224a", "score": "0.5913312", "text": "public function testSetCodeSousFamille() {\n\n $obj = new Clients();\n\n $obj->setCodeSousFamille(\"codeSousFamille\");\n $this->assertEquals(\"codeSousFamille\", $obj->getCodeSousFamille());\n }", "title": "" }, { "docid": "635318a8768a31eecdcb39cd87a65eb7", "score": "0.58902025", "text": "function setValuta($valuta);", "title": "" }, { "docid": "364268a2ec6d700d94a5d842e61363dc", "score": "0.58640647", "text": "public function testSetCodeVentilCompta() {\n\n $obj = new Clients();\n\n $obj->setCodeVentilCompta(\"codeVentilCompta\");\n $this->assertEquals(\"codeVentilCompta\", $obj->getCodeVentilCompta());\n }", "title": "" }, { "docid": "4f3d837f6c23bbdec21d3cc37e09961b", "score": "0.5757557", "text": "public function setVille($ville)\n {\n $this->ville = $ville;\n\n return $this;\n }", "title": "" }, { "docid": "702be3c8a03ed6de27144ead1d8036d7", "score": "0.572342", "text": "public function get_idVille()\n {\n return $this->_idVille;\n }", "title": "" }, { "docid": "18f24908b38474a25412649b71338bba", "score": "0.571337", "text": "public function testSetLibelle() {\n\n $obj = new TypeIntervenants();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }", "title": "" }, { "docid": "b43e47f22fbe09e32d3f8b03ec6acb39", "score": "0.5702603", "text": "public function testSetCodeFamille() {\n\n $obj = new Clients();\n\n $obj->setCodeFamille(\"codeFamille\");\n $this->assertEquals(\"codeFamille\", $obj->getCodeFamille());\n }", "title": "" }, { "docid": "7772b47541ade05727f3126f6fbefc19", "score": "0.5659118", "text": "public function testSetCommentaire() {\n\n $obj = new AffaireSuivi();\n\n $obj->setCommentaire(\"commentaire\");\n $this->assertEquals(\"commentaire\", $obj->getCommentaire());\n }", "title": "" }, { "docid": "db5e527417a9ea0ee50c2da4ba61917a", "score": "0.5621418", "text": "function setVykon($setVykon);", "title": "" }, { "docid": "58673c6c0da69f92dae25e203a45d5ff", "score": "0.56196725", "text": "public function testSetLibelle() {\n\n $obj = new ClientsSelectionSuite();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }", "title": "" }, { "docid": "6e130830588e19998fca531204616eea", "score": "0.5618812", "text": "public function testSetCocheFournisseur() {\n\n $obj = new ClientsSelectionSuite();\n\n $obj->setCocheFournisseur(true);\n $this->assertEquals(true, $obj->getCocheFournisseur());\n }", "title": "" }, { "docid": "68f36ec27731edd5171b4ba18091aa38", "score": "0.55839425", "text": "public function testSetCompteurSurEx() {\n\n $obj = new InfoStatistiques();\n\n $obj->setCompteurSurEx(10);\n $this->assertEquals(10, $obj->getCompteurSurEx());\n }", "title": "" }, { "docid": "63bdce07eaeb956ec6173540b1d6b5be", "score": "0.5579555", "text": "public function getVille(){\n return $this->ville;\n }", "title": "" }, { "docid": "bda6ef8971f164e1392209df9a452e54", "score": "0.5559001", "text": "public function testSetAnneeUtilisation() {\n\n $obj = new RecapDpa();\n\n $obj->setAnneeUtilisation(10);\n $this->assertEquals(10, $obj->getAnneeUtilisation());\n }", "title": "" }, { "docid": "1fc8101360eeb87a23e6f484de129ca1", "score": "0.5539878", "text": "public function getVille()\n {\n return $this->ville;\n }", "title": "" }, { "docid": "9c8bbf84b8a135e89f53b4fb61484616", "score": "0.55244195", "text": "public function testSetPremierExercice() {\n\n $obj = new LettresMissionsEntetes();\n\n $obj->setPremierExercice(10);\n $this->assertEquals(10, $obj->getPremierExercice());\n }", "title": "" }, { "docid": "dc1cdf2d8590be48750bad2e126e177b", "score": "0.54963565", "text": "public function testGetESetValor($valor) {\n $valor = 24.99;\n\n $item = new Item();\n $item->setValor($valor);\n $this->assertEquals($valor, $item->getValor());\n }", "title": "" }, { "docid": "2dad8361d3bcbfd99b0dfded51814115", "score": "0.5482075", "text": "public function testSetNumSeance() {\n\n $obj = new ActionsCoSuivi();\n\n $obj->setNumSeance(10);\n $this->assertEquals(10, $obj->getNumSeance());\n }", "title": "" }, { "docid": "a7879073617e9be7cbb733441be0c6ec", "score": "0.5470698", "text": "public function testSetEtat() {\n\n $obj = new LettresMissionsEntetes();\n\n $obj->setEtat(\"etat\");\n $this->assertEquals(\"etat\", $obj->getEtat());\n }", "title": "" }, { "docid": "43df5a1cfad47a31363d544f1d7d6320", "score": "0.5465772", "text": "public function getVille()\n {\n return $this->ville;\n }", "title": "" }, { "docid": "6306398d2ed34bb1ef7d8e9077b44f65", "score": "0.54355127", "text": "public function testSetNumeroLettre() {\n\n $obj = new LettresMissionsEntetes();\n\n $obj->setNumeroLettre(\"numeroLettre\");\n $this->assertEquals(\"numeroLettre\", $obj->getNumeroLettre());\n }", "title": "" }, { "docid": "185ac7a0c237d85dbc8e8409212c0ecc", "score": "0.54331726", "text": "public function testSetNbrEcrituresRecettes() {\n\n $obj = new LettresMissionsEntetes();\n\n $obj->setNbrEcrituresRecettes(10.092018);\n $this->assertEquals(10.092018, $obj->getNbrEcrituresRecettes());\n }", "title": "" }, { "docid": "dd761a35c858e4cc34e29f7a37eaf7a0", "score": "0.54193455", "text": "public function testSetIniVal()\n {\n $this->todo('stub');\n }", "title": "" }, { "docid": "28f1194a231905b84643a716e606265f", "score": "0.5414333", "text": "public function testSetPrix4() {\n\n $obj = new LettresMissionsEntetes();\n\n $obj->setPrix4(10.092018);\n $this->assertEquals(10.092018, $obj->getPrix4());\n }", "title": "" }, { "docid": "27efb16b97d6f27190bb477dfa0be4a4", "score": "0.54078805", "text": "public function setVinculo($sVinculo){\n\n switch ($sVinculo) {\n// case \"g\" :\n// $this->sVinculoServidor = \" rh30_vinculo = 'G' \";\n// break;\n case \"a\" :\n $this->sVinculoServidor = \" rh30_vinculo = 'A' \";\n break;\n case \"i\" :\n $this->sVinculoServidor = \" rh30_vinculo = 'I' \";\n break;\n case \"p\" :\n $this->sVinculoServidor = \" rh30_vinculo = 'P' \";\n break;\n case \"ip\":\n $this->sVinculoServidor = \" rh30_vinculo in ('I','P') \";\n break;\n default:\n $this->sVinculoServidor = null;\n break;\n }\n }", "title": "" }, { "docid": "903c95671e0bdadb989221eb66c2f069", "score": "0.54056567", "text": "public function testSetPriseRdv() {\n\n $obj = new ActionsCoSuivi();\n\n $obj->setPriseRdv(10);\n $this->assertEquals(10, $obj->getPriseRdv());\n }", "title": "" }, { "docid": "82d4b7a035b9d090e3df74d264e10a97", "score": "0.5405033", "text": "public function testSetTauxEscompte() {\n\n $obj = new Clients();\n\n $obj->setTauxEscompte(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxEscompte());\n }", "title": "" }, { "docid": "2e37400054e42a00e73140db6c425841", "score": "0.53880787", "text": "public function testSetCommentaire() {\n\n $obj = new Clients();\n\n $obj->setCommentaire(\"commentaire\");\n $this->assertEquals(\"commentaire\", $obj->getCommentaire());\n }", "title": "" }, { "docid": "369330cfe9fd5d49c42b105a3ffff789", "score": "0.53671473", "text": "public function testSetNoLotEcritures() {\n\n $obj = new DecTvaGroupe();\n\n $obj->setNoLotEcritures(10);\n $this->assertEquals(10, $obj->getNoLotEcritures());\n }", "title": "" }, { "docid": "67a6bdd574cc0e821e58cf004148c33d", "score": "0.5360512", "text": "public function testSetPeriode() {\n\n // Set a Date/time mock.\n $periode = new DateTime(\"2018-09-10\");\n\n $obj = new DecTvaGroupe();\n\n $obj->setPeriode($periode);\n $this->assertSame($periode, $obj->getPeriode());\n }", "title": "" }, { "docid": "075dd25ef62a3eae5a2c1d2f03f1e8c6", "score": "0.535261", "text": "public function testSetTransporteur() {\n\n $obj = new Clients();\n\n $obj->setTransporteur(\"transporteur\");\n $this->assertEquals(\"transporteur\", $obj->getTransporteur());\n }", "title": "" }, { "docid": "9c1bd6d01506d41dcc9d54d6815bc705", "score": "0.5341642", "text": "public function testSetCorres4() {\n\n $obj = new DecTvaGroupe();\n\n $obj->setCorres4(\"corres4\");\n $this->assertEquals(\"corres4\", $obj->getCorres4());\n }", "title": "" }, { "docid": "e835b6ca043a1f2421828a025094540f", "score": "0.53342587", "text": "public function testSetCodeTva() {\n\n $obj = new Clients();\n\n $obj->setCodeTva(\"codeTva\");\n $this->assertEquals(\"codeTva\", $obj->getCodeTva());\n }", "title": "" }, { "docid": "cfa039cb4e3e49d7e72733007955e183", "score": "0.5324381", "text": "public function testSetNumInterlocuteur() {\n\n $obj = new ActionsCoSuivi();\n\n $obj->setNumInterlocuteur(10);\n $this->assertEquals(10, $obj->getNumInterlocuteur());\n }", "title": "" }, { "docid": "5a6ee1f459857497dc078da2a30ba9d5", "score": "0.5315331", "text": "public function testSetPremiereAnneeFacturee() {\n\n $obj = new Clients();\n\n $obj->setPremiereAnneeFacturee(10);\n $this->assertEquals(10, $obj->getPremiereAnneeFacturee());\n }", "title": "" }, { "docid": "ed1edc11f3bc769c3ccfea192a4d85e2", "score": "0.5306492", "text": "public function testSetPrimesFranch() {\n\n $obj = new RecapDpa();\n\n $obj->setPrimesFranch(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimesFranch());\n }", "title": "" }, { "docid": "8d2e523b2cec1ef4728ab790b67546e1", "score": "0.52916765", "text": "public function testSetCorres5() {\n\n $obj = new DecTvaGroupe();\n\n $obj->setCorres5(\"corres5\");\n $this->assertEquals(\"corres5\", $obj->getCorres5());\n }", "title": "" }, { "docid": "a0b7a1e6a71d96ae73ba394729408cbc", "score": "0.5285661", "text": "public function testSetProvMini() {\n\n $obj = new Dossier2();\n\n $obj->setProvMini(10.092018);\n $this->assertEquals(10.092018, $obj->getProvMini());\n }", "title": "" }, { "docid": "c68ef344b4c13cf05f017b41bb587aa1", "score": "0.5276002", "text": "public function testSetSelAdresseDest() {\n\n $obj = new DecTvaGroupe();\n\n $obj->setSelAdresseDest(\"selAdresseDest\");\n $this->assertEquals(\"selAdresseDest\", $obj->getSelAdresseDest());\n }", "title": "" }, { "docid": "dc4844dcd56678d4d2d523afdba10829", "score": "0.5271261", "text": "public function testSetNbrEcrituresOd() {\n\n $obj = new LettresMissionsEntetes();\n\n $obj->setNbrEcrituresOd(10.092018);\n $this->assertEquals(10.092018, $obj->getNbrEcrituresOd());\n }", "title": "" }, { "docid": "599496e9b325dd07961c53ae245d1203", "score": "0.5264303", "text": "public function testSetLibelle4() {\n\n $obj = new LettresMissionsEntetes();\n\n $obj->setLibelle4(\"libelle4\");\n $this->assertEquals(\"libelle4\", $obj->getLibelle4());\n }", "title": "" }, { "docid": "e5ac731d8efce6a8485094d61e9a9f89", "score": "0.5260865", "text": "public function testSetEcheanceLe() {\n\n $obj = new Clients();\n\n $obj->setEcheanceLe(10);\n $this->assertEquals(10, $obj->getEcheanceLe());\n }", "title": "" }, { "docid": "4e4426e6c8ab1341a18591a837d0c9f3", "score": "0.52086765", "text": "public function setValor($valor){\n\t\t$this->valor = $valor;\n\t}", "title": "" }, { "docid": "9f41223a9c29bac56b9b1f671643ccb4", "score": "0.520269", "text": "public function testSetDerniereAnneeFacturee() {\n\n $obj = new Clients();\n\n $obj->setDerniereAnneeFacturee(10);\n $this->assertEquals(10, $obj->getDerniereAnneeFacturee());\n }", "title": "" }, { "docid": "70d2ad59e7a24a57729e37a17d345bd3", "score": "0.5198205", "text": "public function testSetLibelle6() {\n\n $obj = new LettresMissionsEntetes();\n\n $obj->setLibelle6(\"libelle6\");\n $this->assertEquals(\"libelle6\", $obj->getLibelle6());\n }", "title": "" }, { "docid": "7681aa3b09d24c018ebf3dc68566ea37", "score": "0.519466", "text": "public function testSetEcheanceNbJours() {\n\n $obj = new Clients();\n\n $obj->setEcheanceNbJours(10);\n $this->assertEquals(10, $obj->getEcheanceNbJours());\n }", "title": "" }, { "docid": "0b28cd4ebc0164c0038c35bebf845c18", "score": "0.51872224", "text": "public function testSetiLock() {\n\n $obj = new DecTvaGroupe();\n\n $obj->setiLock(10);\n $this->assertEquals(10, $obj->getiLock());\n }", "title": "" }, { "docid": "a5ab690632a87c54e9b6efff2c915027", "score": "0.5168091", "text": "public function testSetCompteurHorsEx() {\n\n $obj = new InfoStatistiques();\n\n $obj->setCompteurHorsEx(10);\n $this->assertEquals(10, $obj->getCompteurHorsEx());\n }", "title": "" }, { "docid": "f3db62cc1af8893178d33a5fe772543e", "score": "0.51640546", "text": "public function testSetCorres3() {\n\n $obj = new DecTvaGroupe();\n\n $obj->setCorres3(\"corres3\");\n $this->assertEquals(\"corres3\", $obj->getCorres3());\n }", "title": "" }, { "docid": "dc418099235a7dad1aaf21a82a940799", "score": "0.5155776", "text": "function setVehiculo($Vehiculo) {\r\n $this->Vehiculo = $Vehiculo;\r\n }", "title": "" }, { "docid": "7db04e4814819201a276b3e639177358", "score": "0.5155048", "text": "function setFrecuencia($nuevaFrecuencia){\n if($nuevaFrecuencia <= 110 && $nuevaFrecuencia >= 80 && $this->encendida == true){\n $this->frecuencia = $nuevaFrecuencia;\n }\n}", "title": "" }, { "docid": "c378c4805394ea2f3628e9bf5443c226", "score": "0.51444256", "text": "public function testSetLienSaiImmos() {\n\n $obj = new Dossier2();\n\n $obj->setLienSaiImmos(true);\n $this->assertEquals(true, $obj->getLienSaiImmos());\n }", "title": "" }, { "docid": "38687be789544edea3028cada6bcf3df", "score": "0.51370627", "text": "public function testSetNbEcrituresRaz() {\n\n $obj = new Dossier2();\n\n $obj->setNbEcrituresRaz(10);\n $this->assertEquals(10, $obj->getNbEcrituresRaz());\n }", "title": "" }, { "docid": "a09660ada65cea60f7d5720eb5470c8f", "score": "0.51326543", "text": "public function testSetPrix6() {\n\n $obj = new LettresMissionsEntetes();\n\n $obj->setPrix6(10.092018);\n $this->assertEquals(10.092018, $obj->getPrix6());\n }", "title": "" }, { "docid": "ee5bb4d3135f5179feb6bf8d7e4e1e07", "score": "0.5117367", "text": "public function testSetRffLimite() {\n\n $obj = new Dossier2();\n\n $obj->setRffLimite(10.092018);\n $this->assertEquals(10.092018, $obj->getRffLimite());\n }", "title": "" }, { "docid": "d5cf65a3557ff60d39803e4bf398c59e", "score": "0.50987047", "text": "public function testSetCodeAnalytique() {\n\n $obj = new Clients();\n\n $obj->setCodeAnalytique(\"codeAnalytique\");\n $this->assertEquals(\"codeAnalytique\", $obj->getCodeAnalytique());\n }", "title": "" }, { "docid": "c90cad824682e469817d48e5e052a46a", "score": "0.5098485", "text": "public function testSetConfirmes() {\n\n $obj = new ActionsCoSuivi();\n\n $obj->setConfirmes(10);\n $this->assertEquals(10, $obj->getConfirmes());\n }", "title": "" }, { "docid": "cde2f12aa9b33babb0532199936adc49", "score": "0.50902474", "text": "public function testSetCodeElement() {\n\n $obj = new InfoStatistiques();\n\n $obj->setCodeElement(10);\n $this->assertEquals(10, $obj->getCodeElement());\n }", "title": "" }, { "docid": "f50c5ae6cb572c87653c4fc2f95a0ffd", "score": "0.50880057", "text": "public function testSetPeriode() {\n\n // Set a Date/time mock.\n $periode = new DateTime(\"2018-09-10\");\n\n $obj = new HistoTransfPaie();\n\n $obj->setPeriode($periode);\n $this->assertSame($periode, $obj->getPeriode());\n }", "title": "" }, { "docid": "ab3edffe9c47e59f8398c2620fba860e", "score": "0.5087094", "text": "public function testSetFaireControleLettrage() {\n\n $obj = new Dossier2();\n\n $obj->setFaireControleLettrage(\"faireControleLettrage\");\n $this->assertEquals(\"faireControleLettrage\", $obj->getFaireControleLettrage());\n }", "title": "" }, { "docid": "28baed9e642c82c04f1e5cbd4b6f8164", "score": "0.50865823", "text": "public function testSetNbDecimalesMt() {\n\n $obj = new Dossier2();\n\n $obj->setNbDecimalesMt(\"nbDecimalesMt\");\n $this->assertEquals(\"nbDecimalesMt\", $obj->getNbDecimalesMt());\n }", "title": "" }, { "docid": "8c3c97ea9fe237c85efb176ca196f8fb", "score": "0.5079709", "text": "public function testSetPrix1() {\n\n $obj = new LettresMissionsEntetes();\n\n $obj->setPrix1(10.092018);\n $this->assertEquals(10.092018, $obj->getPrix1());\n }", "title": "" }, { "docid": "582cec5e2783f83db01071518933837f", "score": "0.5072888", "text": "public function testSetAccesLibre() {\n\n $obj = new TypeIntervenants();\n\n $obj->setAccesLibre(true);\n $this->assertEquals(true, $obj->getAccesLibre());\n }", "title": "" }, { "docid": "2a47f391a4e0f9ea614f61809f98cb80", "score": "0.5061299", "text": "public function testSetLibelle5() {\n\n $obj = new LettresMissionsEntetes();\n\n $obj->setLibelle5(\"libelle5\");\n $this->assertEquals(\"libelle5\", $obj->getLibelle5());\n }", "title": "" }, { "docid": "27ff11be4094d585d18fb0be9d8bf3c9", "score": "0.50592875", "text": "public function testSetZ25() {\n\n $obj = new DecTvaGroupe();\n\n $obj->setZ25(10.092018);\n $this->assertEquals(10.092018, $obj->getZ25());\n }", "title": "" }, { "docid": "79d1ae16c8e70b717cac05d74238b41f", "score": "0.50584626", "text": "public function testSetDads1LivrePaie() {\n\n $obj = new Dossier2();\n\n $obj->setDads1LivrePaie(10.092018);\n $this->assertEquals(10.092018, $obj->getDads1LivrePaie());\n }", "title": "" }, { "docid": "12b964b658aaefa3088cdc9162dbf896", "score": "0.5055375", "text": "public function testSetMttAnnee() {\n\n $obj = new RecapDpa();\n\n $obj->setMttAnnee(10.092018);\n $this->assertEquals(10.092018, $obj->getMttAnnee());\n }", "title": "" }, { "docid": "cafe5d30253dcaccfcd8c3408eaae0cb", "score": "0.50524044", "text": "public function testSetFactureEuros() {\n\n $obj = new Clients();\n\n $obj->setFactureEuros(true);\n $this->assertEquals(true, $obj->getFactureEuros());\n }", "title": "" }, { "docid": "e60159bdb8bd954bd8b646631e09489a", "score": "0.5049507", "text": "public function testSetComment4() {\n\n $obj = new LettresMissionsEntetes();\n\n $obj->setComment4(\"comment4\");\n $this->assertEquals(\"comment4\", $obj->getComment4());\n }", "title": "" }, { "docid": "ce26f170347b1c4c719f9c92e8156a82", "score": "0.5048869", "text": "public function testSetAFacturerSurEx() {\n\n $obj = new InfoStatistiques();\n\n $obj->setAFacturerSurEx(10);\n $this->assertEquals(10, $obj->getAFacturerSurEx());\n }", "title": "" }, { "docid": "c1fd7afa11d38c46c223b1ccae419d47", "score": "0.50409627", "text": "public function testSetNbComptesRaz() {\n\n $obj = new Dossier2();\n\n $obj->setNbComptesRaz(10);\n $this->assertEquals(10, $obj->getNbComptesRaz());\n }", "title": "" }, { "docid": "2e1e2fc4bdd31e5fe77d4f753b107f1f", "score": "0.50392514", "text": "public function testSetPrix5() {\n\n $obj = new LettresMissionsEntetes();\n\n $obj->setPrix5(10.092018);\n $this->assertEquals(10.092018, $obj->getPrix5());\n }", "title": "" }, { "docid": "4d0bb0a4794403cfda98ce0b92540bb2", "score": "0.50345224", "text": "public function testSetCorres1() {\n\n $obj = new DecTvaGroupe();\n\n $obj->setCorres1(\"corres1\");\n $this->assertEquals(\"corres1\", $obj->getCorres1());\n }", "title": "" }, { "docid": "7eaa0d457c08d76ac375a3d574259c5e", "score": "0.5032419", "text": "public function testSetLibellePlusDe30Carac() {\n\n $obj = new Dossier2();\n\n $obj->setLibellePlusDe30Carac(true);\n $this->assertEquals(true, $obj->getLibellePlusDe30Carac());\n }", "title": "" }, { "docid": "3bf3f457591a79be4aecec64d1678d5b", "score": "0.5032392", "text": "public function testSetLibelle3() {\n\n $obj = new LettresMissionsEntetes();\n\n $obj->setLibelle3(\"libelle3\");\n $this->assertEquals(\"libelle3\", $obj->getLibelle3());\n }", "title": "" }, { "docid": "894b376cf7a51021ea416804be1e9be5", "score": "0.50277627", "text": "public function testSetLibelle7() {\n\n $obj = new LettresMissionsEntetes();\n\n $obj->setLibelle7(\"libelle7\");\n $this->assertEquals(\"libelle7\", $obj->getLibelle7());\n }", "title": "" }, { "docid": "0c4248bd9dcbf9b2f0ce957757813fc8", "score": "0.50222903", "text": "function setInfosVillage($nom, $rue, $cp, $mail, $telephone, $lat, $long){\n $bdd = getConnection();\n\n if ($bdd->exec('INSERT INTO Ville SET Nom = \"'.$nom.'\",\n Adresse = \"'.$rue.'\",\n Code_postal = \"'.$cp.'\",\n Mail = \"'.$mail.'\",\n Numero = \"'.$telephone.'\",\n Latitude = \"'.$lat.'\",\n Longitude = \"'.$long.'\";')){\n return true;\n\n }\n else\n return false;\n }", "title": "" }, { "docid": "0f0c237961f4135cf28f8a470c93a309", "score": "0.5018969", "text": "public function set_Vie($Changement)\n {\n $this->_Vie = $this->_Vie;\n }", "title": "" }, { "docid": "46526948935ddaf79538f965c5f60825", "score": "0.5013663", "text": "public function testSetLibelle1() {\n\n $obj = new LettresMissionsEntetes();\n\n $obj->setLibelle1(\"libelle1\");\n $this->assertEquals(\"libelle1\", $obj->getLibelle1());\n }", "title": "" }, { "docid": "1a8e13cf29cb4866ca5bab63c46e6803", "score": "0.5008935", "text": "public function testSetting()\n\t{\n\t\t$this->assertTrue(true);\t\n\t}", "title": "" }, { "docid": "28fa863aada4575a2f6858bb4eaa9fd8", "score": "0.50088555", "text": "public function testSetFieldValues()\n {\n $this\n ->plugin\n ->setFieldValues([\n 'field1' => 'New value',\n 'field2' => false,\n ]);\n\n $this->assertEquals(\n [\n 'field1' => 'New value',\n 'field2' => false,\n ],\n $this->plugin->getFieldValues()\n );\n }", "title": "" }, { "docid": "224db43c72d59fcd1fc7cd68b05c146d", "score": "0.50042546", "text": "public function setTelefono($value){\n if($this->validateNumeric($value,1,50)){\n $this->telefono = $value;\n return true;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "b6e5c6da7e6ba0cedbd53b9a6acdb95e", "score": "0.49990332", "text": "public function setValue()\n {\n $this->assertSame($this->element, $this->element->setValue('test'));\n $this->assertEquals('test', $this->element->getValue());\n }", "title": "" }, { "docid": "6a1c9a0ae217c04f9a854a9a0b60d8ac", "score": "0.4993619", "text": "public function testSetZ9999() {\n\n $obj = new DecTvaGroupe();\n\n $obj->setZ9999(10.092018);\n $this->assertEquals(10.092018, $obj->getZ9999());\n }", "title": "" }, { "docid": "2f737580ec1949b89639a748b13c916a", "score": "0.49895707", "text": "public function testSetPrix3() {\n\n $obj = new LettresMissionsEntetes();\n\n $obj->setPrix3(10.092018);\n $this->assertEquals(10.092018, $obj->getPrix3());\n }", "title": "" }, { "docid": "a1e9564fc080ae00fe322d3716951a0e", "score": "0.49878708", "text": "function setValores($num_serie,$codigo_op,$nombre_producto,$cabina,$orden_produccion,$estado,$fecha_desde,$fecha_hasta,$id_sede,$paginacion) {\n\t\t$this->num_serie = $num_serie;\n\t\t$this->codigo_op = $codigo_op;\n\t\t$this->nombre_producto = $nombre_producto;\n\t\t// $this->cabina = $cabina;\n\t\t$this->orden_produccion = $orden_produccion;\n\t\t$this->estado = $estado;\n\t\t$this->fecha_desde = $fecha_desde;\n\t\t$this->fecha_hasta = $fecha_hasta;\n\t\t$this->id_sede = $id_sede;\n\t\t$this->paginacion = $paginacion;\n\t\t$this->prepararConsulta();\n\t}", "title": "" }, { "docid": "8d83895b828857c638b0e3717f72eef7", "score": "0.49790752", "text": "public function testSetCorres2() {\n\n $obj = new DecTvaGroupe();\n\n $obj->setCorres2(\"corres2\");\n $this->assertEquals(\"corres2\", $obj->getCorres2());\n }", "title": "" }, { "docid": "17a57d50f4e6822f05364b8c676aee61", "score": "0.49755955", "text": "public function testSetLibDoss() {\n\n $obj = new DecTvaGroupe();\n\n $obj->setLibDoss(\"libDoss\");\n $this->assertEquals(\"libDoss\", $obj->getLibDoss());\n }", "title": "" }, { "docid": "f63c2a6f108dd1ad1715a53035a13a3b", "score": "0.49755573", "text": "public function testSetNbrEcrituresDepenses() {\n\n $obj = new LettresMissionsEntetes();\n\n $obj->setNbrEcrituresDepenses(10.092018);\n $this->assertEquals(10.092018, $obj->getNbrEcrituresDepenses());\n }", "title": "" }, { "docid": "d369dea89937fef96663a2e6974d855a", "score": "0.49751824", "text": "public function testSetZ9989() {\n\n $obj = new DecTvaGroupe();\n\n $obj->setZ9989(10.092018);\n $this->assertEquals(10.092018, $obj->getZ9989());\n }", "title": "" }, { "docid": "071590eb55c620c6e848e44a60982f6c", "score": "0.4972786", "text": "public function testSetPrix2() {\n\n $obj = new LettresMissionsEntetes();\n\n $obj->setPrix2(10.092018);\n $this->assertEquals(10.092018, $obj->getPrix2());\n }", "title": "" }, { "docid": "b6f62ce61d3dd10c864baf5a8c94e3cb", "score": "0.49677914", "text": "public function testSetAz1080b() {\n\n $obj = new DecTvaGroupe();\n\n $obj->setAz1080b(10.092018);\n $this->assertEquals(10.092018, $obj->getAz1080b());\n }", "title": "" }, { "docid": "529720503820e0f4fad382f5ea26ab4e", "score": "0.49655274", "text": "public function testSetAz1040b() {\n\n $obj = new DecTvaGroupe();\n\n $obj->setAz1040b(10.092018);\n $this->assertEquals(10.092018, $obj->getAz1040b());\n }", "title": "" }, { "docid": "d2fb7392f746d8fe36e4b2d5ac99ba96", "score": "0.49651518", "text": "public function testSetZ9979() {\n\n $obj = new DecTvaGroupe();\n\n $obj->setZ9979(10.092018);\n $this->assertEquals(10.092018, $obj->getZ9979());\n }", "title": "" }, { "docid": "a99adaa65703a7dcf1ea6588b421259c", "score": "0.4965078", "text": "public function testSettingNumerator(): void\n {\n $this->fraction->setNumerator(12);\n $this->assertEquals('6', $this->fraction->__toString());\n\n $this->fraction->setNumerator(0);\n $this->assertEquals('0', $this->fraction->__toString());\n\n $this->fraction = new Fraction(1, 2);\n $this->fraction->setNumerator(-12);\n $this->assertEquals('-6', $this->fraction->__toString());\n }", "title": "" }, { "docid": "46ccc3f127f42a10f8a9bbb82a6f27c2", "score": "0.49529493", "text": "public function testSetZ8002() {\n\n $obj = new DecTvaGroupe();\n\n $obj->setZ8002(10.092018);\n $this->assertEquals(10.092018, $obj->getZ8002());\n }", "title": "" }, { "docid": "99e61786c5a95f046b4306c2328338a8", "score": "0.495242", "text": "public function getVilleById($id){\n return $this->villeRepository->findOneBy(array('id' => $id));\n }", "title": "" } ]
525c382c0fedffd751f0ae57869ddb28
Remove the songs added for the test cases
[ { "docid": "27bcf689ec06693eea1c82f195d9695b", "score": "0.56037563", "text": "public function tearDown()\n {\n $delete = new \\Apps\\Database\\Delete();\n $sql = $delete->delete()->from('Songs')->where('Title LIKE :title')->result();\n $pdo = array('title' => 'UnitTest%');\n $this->database->run($sql, $pdo);\n\n $this->database->close();\n }", "title": "" } ]
[ { "docid": "5aab55bf2a33fad1f72bae3ddb1f82c1", "score": "0.67472535", "text": "public function purge() {\n foreach ($playlists as $playlist) {\n\n // Get the songs for the playlist\n $songs = $this->CRUD_model->get('songs', array('playlistId' => $playlist['id']));\n\n // Iterate through each song in the playlist\n foreach ($songs as $song) {\n \n // If the playlist wasn't updated at the same time as the song\n if ($song['updated'] != $playlist['updated']) {\n\n // DELETE IT!!!\n $this->CRUD_model->delete('songs', $song['id']);\n } \n }\n }\n }", "title": "" }, { "docid": "f4817ca5c0b46cc9b17a86b946b8f642", "score": "0.66929984", "text": "public function delete_all_song()\n {\n $this->solr_document_delete_by_DocumentType($this->kiki_music_client, 'music');\n }", "title": "" }, { "docid": "a0096166bb4d5be60ff92bf1d61da0a3", "score": "0.6345623", "text": "public function delete_all_playlist()\n {\n $this->solr_document_delete_by_DocumentType($this->kiki_music_client, 'playlist');\n }", "title": "" }, { "docid": "67c85915e6e715a1eea40c64cdfd6d5b", "score": "0.6100374", "text": "function permanently_delete_songs($db)\r\n\t{\r\n\t\t$debug=array();\r\n\t\t$songs=get_deleted_songs($db);\r\n\t\tforeach($songs as $song)\r\n\t\t{\r\n\t\t\t$debug[]=permanently_delete_song($db,$song->getID());\r\n\t\t}\r\n\t\tif(!in_array(false,$debug))\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "7662d0fe4c48dae2884d6fc9193788ca", "score": "0.60768425", "text": "public function freeSongsFromJudges()\n { \n $res = $this->cron_model->selectRows();\n echo \"<pre>\";print_r($res);\n\t\tfor($i=0; $i<count($res); $i++){\n\t\t\t$affectedRows = $this->cron_model->deleteRows($res[$i]->id);\n\t\t}\n \n }", "title": "" }, { "docid": "4fe8db468493e84420d1c06f220f118e", "score": "0.58575827", "text": "function clearPlayedSequences()\n{\n global $pluginName;\n\n writeToConfig('PLAYED_SEQUENCES', urlencode(json_encode(array())), $pluginName);\n}", "title": "" }, { "docid": "d18d465d95f0a340aa91ea694a6a5cf9", "score": "0.58179754", "text": "public function delete_all_artist()\n {\n $this->solr_document_delete_by_DocumentType($this->kiki_music_client, 'artist');\n\n }", "title": "" }, { "docid": "514a21fbdd9235a020c2a7482d3b1cbd", "score": "0.5744519", "text": "protected function tearDown(): void\n\t{\n\t\t// remove temporary test data\n\t\trequire_once(SUBSDIR . '/Topic.subs.php');\n\t\tremoveTopics($this->id_topic); // it should remove the likes too\n\t}", "title": "" }, { "docid": "2655e305c6311f147d91dd996c816d49", "score": "0.57043606", "text": "function restore_deleted_songs($db)\r\n\t{\r\n\t\t$debug=array();\r\n\t\t$songs=get_deleted_songs($db);\r\n\t\tforeach($songs as $song)\r\n\t\t{\r\n\t\t\t$debug[]=restore_deleted_song($db,$song->getID());\r\n\t\t}\r\n\t\tif(!in_array(false,$debug))\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "aef97ffd04a01aff9e767c12f1a0d5c0", "score": "0.56956124", "text": "public function tearDown()\n {\n $cleanup = [\n 'sprite.jpg',\n 'sprite.vtt',\n 'blubber.jpg',\n 'blubber.vtt',\n 'ffmpegthumbnailer.jpg',\n 'ffmpegthumbnailer.vtt'\n ];\n\n foreach ($cleanup as $file) {\n $this->outputFS->has($file) && $this->outputFS->delete($file);\n }\n }", "title": "" }, { "docid": "cab0dee4d95d87f17c26d5bda0d399bb", "score": "0.5645405", "text": "public function testDeletePlaylist()\n {\n $this->tester->haveInDatabase('users',['name' => $this->name, 'email' => $this->email, 'password' => $this->password]);\n\n //Add a playlist inorder for the relation to be correct\n $this->tester->haveInDatabase('playlists',['ownerid' => $this->ownerid, 'name' => $this->playName, 'description' => $this->playDesc, 'thumbnail' => $this->playThumb]);\n\n $this->playlist->deletePlaylist($this->playlistid, $this->ownerid);\n\n $this->tester->dontSeeInDatabase('playlists',['ownerid' => $this->ownerid, 'name' => $this->playName, 'description' => $this->playDesc, 'thumbnail' => $this->playThumb]);\n\n }", "title": "" }, { "docid": "d205ffc866cffc1e672db3d1c317e5b9", "score": "0.5624734", "text": "protected function removeSample()\n\t{\n\t\t$this->method = 'Sample';\n\t\t$this->query = sprintf(\n\t\t\t\"SELECT r.guid, r.searchname, r.id\n\t\t\tFROM releases r\n\t\t\tWHERE r.totalpart > 1\n\t\t\tAND r.size < 40000000\n\t\t\tAND r.name LIKE %s\n\t\t\tAND r.categoryid IN (%d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d) %s\",\n\t\t\t\"'%sample%'\",\n\t\t\t\\Category::CAT_TV_ANIME,\n\t\t\t\\Category::CAT_TV_DOCUMENTARY,\n\t\t\t\\Category::CAT_TV_FOREIGN,\n\t\t\t\\Category::CAT_TV_HD,\n\t\t\t\\Category::CAT_TV_OTHER,\n\t\t\t\\Category::CAT_TV_SD,\n\t\t\t\\Category::CAT_TV_SPORT,\n\t\t\t\\Category::CAT_TV_WEBDL,\n\t\t\t\\Category::CAT_MOVIE_3D,\n\t\t\t\\Category::CAT_MOVIE_BLURAY,\n\t\t\t\\Category::CAT_MOVIE_DVD,\n\t\t\t\\Category::CAT_MOVIE_FOREIGN,\n\t\t\t\\Category::CAT_MOVIE_HD,\n\t\t\t\\Category::CAT_MOVIE_OTHER,\n\t\t\t\\Category::CAT_MOVIE_SD,\n\t\t\t$this->crapTime\n\t\t);\n\n\t\tif ($this->checkSelectQuery() === false) {\n\t\t\treturn $this->returnError();\n\t\t}\n\n\t\treturn $this->deleteReleases();\n\t}", "title": "" }, { "docid": "3792f6f5f45022c7d8c4a00f4e556762", "score": "0.5614839", "text": "public static function cleanTestFolders()\n {\n if (is_dir($dir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'mink-legacy-driver')) {\n $filesystem = new Filesystem();\n $filesystem->remove($dir);\n }\n }", "title": "" }, { "docid": "677ac49d3bce0d4ff61691db47d63a42", "score": "0.5584292", "text": "function clearFromDb() {\n Queries::clearPlaylist($this->userId, $this->name);\n }", "title": "" }, { "docid": "10e61b9d1b54a076f83d4a290895960a", "score": "0.5569716", "text": "public function testGettingWrongAlbumTracks()\n {\n $token = $this->_createUser();\n $headers = $this->_getHeaders($token);\n $artist = $this->_createArtist($token);\n\n $newAlbum = $this->_getnewAlbumArray($artist);\n $newAlbumResponse = $this->json('POST', '/api/v1/albums', $newAlbum, $headers);\n $album = json_decode($newAlbumResponse->getContent());\n if($album !== null) {\n if (is_array($album)) {\n $album = $album[0];\n }\n }\n\n $response = $this->json('GET', '/api/v1/albums/' . $album->_hash.'1212/tracks', array(), $headers);\n\n $this->_removeUser($token['user']);\n $this->_removeArtist($artist);\n $this->_removeAlbum($album->_hash);\n\n $response->assertStatus(409);\n }", "title": "" }, { "docid": "4e3395155f7ac09f9ce1274230a4a745", "score": "0.5548803", "text": "private function removeAllArtworks(){\n $entityManager = $this->getDoctrine()->getManager();\n \n $projects = $this->getDoctrine()\n ->getRepository(Project::class)\n ->findAll();\n foreach($projects as $project){\n $project->setFrontArt();\n foreach($project->getArtworks() as $artwork)\n $entityManager->remove($artwork);\n }\n $entityManager->flush();\n }", "title": "" }, { "docid": "9b4c176959f87f94b70d6248356fa994", "score": "0.5548326", "text": "private function clearframes(){\n foreach($this->parsedfiles as $temp_frame){\n unlink($temp_frame);\n }\n }", "title": "" }, { "docid": "5ecf1f504189fb071d1f65805e93cc88", "score": "0.5511713", "text": "public function remove_added_uploads() {}", "title": "" }, { "docid": "000bbe6ff142c17aa58b8e5eace94a00", "score": "0.5509347", "text": "public function tearDown()\n {\n unset($this->Player);\n }", "title": "" }, { "docid": "cf01d2447894a7c3a1067233daa4b113", "score": "0.55021346", "text": "public function test_clean_test_tournaments() {\n $count = 0;\n\n foreach($this->bb->tournament->list_my('API Demo') as $tournament) {\n $tournament->delete();\n ++$count;\n }\n foreach($this->bb->tournament->list_my('Unit Test') as $tournament) {\n $tournament->delete();\n ++$count;\n }\n\n var_dump(['Tournaments Cleaned' => $count]);\n }", "title": "" }, { "docid": "ccf7e37fc677da6ee418119ad47601bd", "score": "0.54895747", "text": "public function testUnsubscribeToPlaylist() \n {\n $this->tester->haveInDatabase('users',['name' => $this->name, 'email' => $this->email, 'password' => $this->password]);\n\n //Add a playlist inorder for the relation to be correct\n $this->tester->haveInDatabase('playlists',['ownerid' => $this->ownerid, 'name' => $this->playName, 'description' => $this->playDesc, 'thumbnail' => $this->playThumb]);\n\n $this->tester->haveInDatabase('subscriptions', ['userid' => $this->userid, 'playlistid' => $this->playlistid]);\n\n $this->playlist->unsubscribeToplaylist($this->playlistid, $this->userid);\n\n $this->tester->dontSeeInDatabase('subscriptions', ['userid' => \"1\", 'playlistid' => $this->playlistid]);\n }", "title": "" }, { "docid": "057ce22a84a504e221dc969e4214a273", "score": "0.5480939", "text": "public function cleanupTestUploadFiles()\n {\n foreach ($this->uploadFilePaths as $uploadFilePath) {\n if (file_exists($uploadFilePath) and !is_dir($uploadFilePath)) {\n @unlink($uploadFilePath);\n }\n }\n $this->uploadFilePaths = [];\n }", "title": "" }, { "docid": "a4fe82173da4d6cbba66f29e04d67a06", "score": "0.54775685", "text": "public function testAddingRemovingItems()\n\t{\n\n\t\t$products = [];\n\n\t\twhile (count($products) < 3) {\n\t\t\t$products[] = App\\TestProduct::create([\n\t\t\t\t'price' \t\t\t=> count($products) + 0.99,\n\t\t\t\t'sku'\t\t\t\t=> str_random(15),\n\t\t\t\t'name'\t\t\t\t=> str_random(64),\n\t\t\t\t'description'\t\t=> str_random(500),\n\t\t\t]);\n\t\t}\n\n\t\t$cart = App\\Cart::current()\n\t\t\t->add($products[0])\n\t\t\t->add($products[1], 2)\n\t\t\t->add($products[2], 3);\n\n\t\t$this->assertEquals($cart->count, 6);\n\n\t\t$cart->add($products[2], 1, true);\n\n\t\t$this->assertEquals($cart->count, 4);\n\n\t\t$cart->remove($products[0], 1);\n\n\t\t$this->assertEquals($cart->count, 3);\n\n\t\t$cart->remove($products[2], 1);\n\n\t\t$this->assertEquals($cart->count, 2);\n\n\t\t$cart->clear();\n\n\t\t$this->assertEquals($cart->items->count(), 0);\n\n\t\tforeach ($products as $product) {\n\t\t\t$product->delete();\n\t\t}\n\t}", "title": "" }, { "docid": "5fff4ef025fcad45a9b7a90dd1429cae", "score": "0.54439455", "text": "public function delete_all_music_client()\n {\n // get an update query instance\n $update = $this->kiki_music_client->createUpdate();\n\n // add the delete query and a commit command to the update query\n $update->addDeleteQuery('id:*');\n $update->addCommit();\n\n // this executes the query and returns the result\n $result = $this->kiki_music_client->update($update);\n }", "title": "" }, { "docid": "5b9deafb93510e58698c8e8a57a83ae9", "score": "0.5443133", "text": "function questionnaire_cleanup() {\n global $CFG;\n\n /// Find surveys that don't have questionnaires associated with them.\n $sql = 'SELECT qs.* FROM '.$CFG->prefix.'questionnaire_survey qs '.\n 'LEFT JOIN '.$CFG->prefix.'questionnaire q ON q.sid = qs.id '.\n 'WHERE q.sid IS NULL';\n\n if ($surveys = get_records_sql($sql)) {\n foreach ($surveys as $survey) {\n questionnaire_delete_survey($survey->id, 0);\n }\n }\n /// Find deleted questions and remove them from database (with their associated choices, etc. // TODO\n return true;\n}", "title": "" }, { "docid": "6d0e2bc07a6fc0c8da78e35697c1a3ca", "score": "0.5426829", "text": "public function deletePlaylistAudios(){\n $audioId = '';\n $this->setRules(['playlist_id' => 'required', 'audio_id' => 'required']);\n $this->validate($this->request, $this->getRules());\n $playlistId = $this->request->playlist_id;\n $audioInput = $this->request->audio_id;\n if(!isMobile()) {\n $audioInfo = $this->audios->select('id')->where('slug', $audioInput)->first();\n $audioId = (!empty($audioInfo)) ? $audioInfo->id : $this->throwJsonResponse(false, 500, trans( 'audio::audio.audio_playlists.audio_not_exists' ));\n }else{\n $audioId = $audioInput;\n }\n try {\n $this->audioPlaylist->where('playlist_id', (string) $playlistId)->where('audio_id', (int) $audioId)->delete();\n return true;\n } catch (\\Exception $e){\n $this->throwJsonResponse(false, 500, $e->getMessage());\n }\n }", "title": "" }, { "docid": "5aac7bb5e94d09b44ea475fe7e4f02a6", "score": "0.5425332", "text": "protected function tearDown(): void {\n DB::run(\"DELETE FROM courseworks WHERE name like 'test coursework'\");\n DB::run(\"DELETE FROM students WHERE name LIKE 'test student'\");\n DB::run(\"DELETE FROM submissions WHERE submission_id = 0 OR hand_in_date LIKE '2000-12-12'\");\n }", "title": "" }, { "docid": "9286ddd79b00dcf8ba36862a9cb70c8b", "score": "0.54241157", "text": "public function delete(){\n foreach ( $this->playeractiveitems as $playeractiveitem ){\n $playeractiveitem->delete();\n }\n foreach ( $this->registrations as $registrations ){\n $registrations->delete();\n }\n parent::delete();\n }", "title": "" }, { "docid": "f24f7a2d6e6103c05c776d94ca2cdc11", "score": "0.54165375", "text": "protected function tearDown()\n {\n foreach ($this->testFiles as $file)\n {\n if ($file->getId())\n $this->entityDataMapper->delete($file, true);\n }\n }", "title": "" }, { "docid": "1a45fd62398a5d607aaa19f95992a6ae", "score": "0.54158705", "text": "protected function tearDown()\n {\n foreach ($this->testFiles as $file) {\n $this->fileSystem->deleteFile($file, true);\n }\n }", "title": "" }, { "docid": "caed317b50757e0cad0329fd9bb7d6b4", "score": "0.54113114", "text": "public function removeQuestionSetRelatedData()\n\t{\n\t\t$this->testOBJ->removeAllTestEditings();\n\n\t\t$res = $this->db->queryF(\n\t\t\t\"SELECT question_fi FROM tst_test_question WHERE test_fi = %s\",\n\t\t\tarray('integer'), array($this->testOBJ->getTestId())\n\t\t);\n\n\t\twhile( $row = $this->db->fetchAssoc($res) )\n\t\t{\n\t\t\t$this->testOBJ->removeQuestion($row[\"question_fi\"]);\n\t\t}\n\n\t\t$this->db->manipulateF(\n\t\t\t\"DELETE FROM tst_test_question WHERE test_fi = %s\",\n\t\t\tarray('integer'), array($this->testOBJ->getTestId())\n\t\t);\n\n\t\t$this->testOBJ->questions = array();\n\n\t\t$this->testOBJ->saveCompleteStatus($this);\n\t}", "title": "" }, { "docid": "34abbdcbdf6f6eb6fc29cddf2bb42f0e", "score": "0.5382085", "text": "public function deletePreviews() \n {\n $previewsPath = \"images/paintings/previews/\";\n\n $files = glob($previewsPath . '*', GLOB_NOSORT);\n\n foreach ($files as $file) {\n unlink($file);\n }\n\n }", "title": "" }, { "docid": "acbbb82b76ab0082d5558a8345256ff8", "score": "0.53385895", "text": "public function delete_from_test_databases() {\n $db = new Database();\n $sql = \"DELETE FROM phpunit_stop_reference\";\n $db->execute_sql($sql);\n $sql = \"DELETE FROM phpunit_stop_reference_temp\";\n $db->execute_sql($sql);\n }", "title": "" }, { "docid": "43c8eb7990cb12dde462dd1792ccbc91", "score": "0.5330501", "text": "public static function cleanTestFolders(): void\n {\n if (is_dir($dir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'behat')) {\n self::clearDirectory($dir);\n }\n }", "title": "" }, { "docid": "5db748b3304b14db43fdd42eac09bc3d", "score": "0.5323529", "text": "function get_deleted_songs($db)\r\n\t{\r\n\t\tif(!is_a($db,\"SQLite3\"))\r\n\t\t{\r\n\t\t\ttrigger_error(\"Handle passed to function get_deleted_songs is not a valid database.\",E_USER_ERROR);\r\n\t\t\treturn array();\r\n\t\t}\r\n\t\t//Initialize set of defaults\r\n\t\t$songs=array();\r\n\t\t//Prepare statement for selecting\r\n\t\t$statement=$db->prepare(\"SELECT id,list,details,added,count,lastreq FROM oldsongs\");\r\n\t\tif($statement !== false)\r\n\t\t{\r\n\t\t\t//Execute statement\r\n\t\t\t$result=$statement->execute();\r\n\t\t\tif($result !== false)\r\n\t\t\t{\r\n\t\t\t\t//Loop through all entries\r\n\t\t\t\twhile($entry=$result->fetchArray(SQLITE3_ASSOC))\r\n\t\t\t\t{\r\n\t\t\t\t\t//Set up data format\r\n\t\t\t\t\t$song=array(\"id\"=>-1,\"list\"=>\"ERROR\",\"details\"=>\"Failed to obtain song. Microwave something expensive.\",\"added\"=>0,\"count\"=>666,\"lastreq\"=>0);\r\n\t\t\t\t\t//Get data from result\r\n\t\t\t\t\tif(isset($entry[\"ID\"]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$song[\"id\"]=$entry[\"ID\"];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(isset($entry[\"List\"]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$song[\"list\"]=$entry[\"List\"];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(isset($entry[\"Details\"]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$song[\"details\"]=$entry[\"Details\"];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(isset($entry[\"Added\"]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$song[\"added\"]=$entry[\"Added\"];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(isset($entry[\"Count\"]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$song[\"count\"]=$entry[\"Count\"];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(isset($entry[\"LastReq\"]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$song[\"lastreq\"]=$entry[\"LastReq\"];\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//Create song object\r\n\t\t\t\t\t$songobject=new Song($song[\"id\"],$song[\"list\"],$song[\"details\"],$song[\"added\"],$song[\"count\"],$song[\"lastreq\"]);\r\n\t\t\t\t\t//Add object to list\r\n\t\t\t\t\t$songs[]=$songobject;\r\n\t\t\t\t}\r\n\t\t\t\t//Close statement\r\n\t\t\t\t$statement->close();\r\n\t\t\t\tunset($statement);\r\n\t\t\t\treturn $songs;\r\n\t\t\t}\r\n\t\t\t//Failed to execute statement\r\n\t\t\ttrigger_error(\"Failed to execute statement in function get_deleted_songs.\",E_USER_ERROR);\r\n\t\t\tgoto failure;\r\n\t\t}\r\n\t\t//Failed to create statement\r\n\t\ttrigger_error(\"Failed to create statement in function get_deleted_songs.\",E_USER_ERROR);\r\n\t\tfailure:\r\n\t\t//Close statement if necessary\r\n\t\tif(isset($statement) && is_a($statement,\"SQLite3Stmt\"))\r\n\t\t{\r\n\t\t\t$statement->close();\r\n\t\t\tunset($statement);\r\n\t\t}\r\n\t\t//Exit\r\n\t\treturn $songs;\r\n\t}", "title": "" }, { "docid": "475f15d39ff5728eddb6e23870d800b2", "score": "0.5309482", "text": "public function emptyTmpFolder()\n {\n $res = array_map('unlink', glob(\"uploads/tmp/*\"));\n echo \"<pre />\";\n var_dump($res);\n }", "title": "" }, { "docid": "51070ff0c16ce070d5e68240ba8553ff", "score": "0.53063595", "text": "function _do_empty_album()\n {\n\n\n $this->ipsclass->DB->simple_construct( array( 'select' => 'id, masked_file_name, thumbnail, directory', \n 'from' => 'gallery_images', \n 'where' => \"album_id={$this->ipsclass->input['id']}\" ) );\n $q = $this->ipsclass->DB->simple_exec();\n\n while( $i = $this->ipsclass->DB->fetch_row( $q ) )\n {\n $dir = ( $i['directory'] ) ? \"{$i['directory']}/\" : \"\";\n @unlink( $this->ipsclass->input['gallery_images_path'].'/'.$dir.$i['masked_file_name'] );\n if( $this->img['thumbnail'] )\n {\n @unlink( $this->ipsclass->input['gallery_images_path'].'/'.$dir.'tn_'.$i['masked_file_name'] );\n }\n\n $this->ipsclass->DB->simple_delete( 'gallery_comments' , \"img_id={$i['id']}\" ); $this->ipsclass->DB->simple_exec();\n $this->ipsclass->DB->simple_delete( 'gallery_bandwidth', \"file_name='{$i['masked_file_name']}'\" ); $this->ipsclass->DB->simple_exec();\n $this->ipsclass->DB->simple_delete( 'gallery_ratings' , \"img_id={$i['id']}\" ); $this->ipsclass->DB->simple_exec();\n $this->ipsclass->DB->simple_delete( 'gallery_favorites', \"img_id={$i['id']}\" ); $this->ipsclass->DB->simple_exec();\n $this->ipsclass->DB->simple_delete( 'gallery_images' , \"id={$i['id']}\" ); $this->ipsclass->DB->simple_exec();\n }\n \n $this->ipsclass->DB->simple_update( 'gallery_albums', 'images=0,comments=0, last_pic=0', \"id={$this->ipsclass->input['id']}\", 1 );\n $this->ipsclass->DB->simple_exec(); \n\n $this->ipsclass->admin->done_screen( \"The album's contents have been emptied\", \"Invision Gallery Manager\", \"act=gallery\" );\n\n }", "title": "" }, { "docid": "071ab9a5891462aa1eb58daf4159f773", "score": "0.5298041", "text": "public function deleteMusic(){\n\n DB::enableQueryLog();\n $data = Request::all();\n $user = \\Auth::user();\n $ffmpegObj = new FFmpegController;\n $path = $ffmpegObj->path;\n \n if(count($data) > 0){\n if(array_key_exists('aid', $data) && !empty($data['aid'])){\n\n $audioInfo = (array) DB::table('audios')\n ->where('audios.id','=', $data['aid'])\n ->where('audios.user_id','=', $user->id)\n ->first();\n \n if(!empty($audioInfo)){\n\n $audioPath = $path.'/audios/'.$audioInfo['audioName']; \n \n $status = DB::table('audios')\n ->where('id', '=', $data['aid'])\n ->where('audios.user_id','=', $user->id)\n ->delete();\n shell_exec(\"rm -Rf $audioPath\"); \n }\n $audioList = DB::table('audios')\n ->where('audios.user_id','=', $user->id)\n ->get(); \n\n return redirect('mymusic');\n\n }elseif(array_key_exists('rid', $data) && !empty($data['rid'])){ \n $recordedInfo = (array) DB::table('recorded_voice')\n ->where('recorded_voice.id','=', $data['rid'])\n ->where('recorded_voice.user_id','=', $user->id)\n ->first();\n \n if(!empty($recordedInfo)){\n\n $rvoicePath = $path.'/audios/'.$recordedInfo['audioName']; \n \n $status = DB::table('recorded_voice')\n ->where('id', '=', $data['rid'])\n ->where('recorded_voice.user_id','=', $user->id)\n ->delete();\n shell_exec(\"rm -Rf $rvoicePath\"); \n }\n $recordedList = DB::table('recorded_voice')\n ->where('recorded_voice.user_id','=', $user->id)\n ->get(); \n return redirect('mymusic');\n }\n }\n }", "title": "" }, { "docid": "6a8b3c45adb3d5ad9a9e94d9d6b80846", "score": "0.52947456", "text": "public function cleanRemoved();", "title": "" }, { "docid": "7e7e41b957f9392ef58183e136ea2b25", "score": "0.52854997", "text": "public function testRemoveAll()\n {\n \t$this->object->removeAll($this->object);\n }", "title": "" }, { "docid": "f00ab530ebfb7701bc8700c86e5ef9ce", "score": "0.5265951", "text": "public static function cleanTestFolders()\n {\n if (is_dir(self::getTmpFolder())) {\n self::clearDirectory(self::getTmpFolder());\n }\n }", "title": "" }, { "docid": "7052b01b9a36f066d850d86ec505ee7a", "score": "0.5260577", "text": "public static function getMusicList()\n {\n\n }", "title": "" }, { "docid": "569ae58630c11f351d2285fb82265bb6", "score": "0.5256641", "text": "protected function removeFiles()\n {\n }", "title": "" }, { "docid": "4e7613fa5fc8b270396f68a879322e60", "score": "0.5254043", "text": "function questionnaire_cleanup() {\n global $DB;\n\n // Find surveys that don't have questionnaires associated with them.\n $sql = 'SELECT qs.* FROM {questionnaire_survey} qs '.\n 'LEFT JOIN {questionnaire} q ON q.sid = qs.id '.\n 'WHERE q.sid IS NULL';\n\n if ($surveys = $DB->get_records_sql($sql)) {\n foreach ($surveys as $survey) {\n questionnaire_delete_survey($survey->id, 0);\n }\n }\n // Find deleted questions and remove them from database (with their associated choices, etc.).\n return true;\n}", "title": "" }, { "docid": "0987d719a6b4ee9e53b8cef699201e87", "score": "0.525259", "text": "function delete_files($target)\n {\n if (is_dir($target)) {\n $files = glob($target . '*', GLOB_MARK);\n foreach ($files as $file) {\n delete_files($file);\n }\n if ($GLOBALS['totalalbum']!=0) {\n rmdir($target);\n $GLOBALS['totalalbum']--;\n }\n } elseif (is_file($target)) {\n unlink($target);\n }\n }", "title": "" }, { "docid": "945bca8bbfce19f1e9fb20189f4cf170", "score": "0.524745", "text": "function _do_del_album()\n {\n\n\n $this->ipsclass->DB->simple_construct( array( 'select' => 'id, masked_file_name, thumbnail, directory', \n 'from' => 'gallery_images', \n 'where' => \"album_id={$this->ipsclass->input['id']}\" ) );\n $q = $this->ipsclass->DB->simple_exec();\n\n while( $i = $this->ipsclass->DB->fetch_row( $q ) )\n {\n $dir = ( $i['directory'] ) ? \"{$i['directory']}/\" : \"\";\n @unlink( $this->ipsclass->input['gallery_images_path'].'/'.$dir.$i['masked_file_name'] );\n if( $this->img['thumbnail'] )\n {\n @unlink( $this->ipsclass->input['gallery_images_path'].'/'.$dir.'tn_'.$i['masked_file_name'] );\n }\n $this->ipsclass->DB->simple_delete( 'gallery_comments' , \"img_id={$i['id']}\" ); $this->ipsclass->DB->simple_exec();\n $this->ipsclass->DB->simple_delete( 'gallery_bandwidth', \"file_name='{$i['masked_file_name']}'\" ); $this->ipsclass->DB->simple_exec();\n $this->ipsclass->DB->simple_delete( 'gallery_ratings' , \"img_id={$i['id']}\" ); $this->ipsclass->DB->simple_exec();\n $this->ipsclass->DB->simple_delete( 'gallery_favorites', \"img_id={$i['id']}\" ); $this->ipsclass->DB->simple_exec();\n $this->ipsclass->DB->simple_delete( 'gallery_images' , \"id={$i['id']}\" ); $this->ipsclass->DB->simple_exec();\n }\n $this->ipsclass->DB->simple_delete( 'gallery_albums', \"id={$this->ipsclass->input['id']}\" ); $this->ipsclass->DB->simple_exec();\n $this->ipsclass->admin->done_screen( \"The album has been removed and it's contents deleted\", \"Invision Gallery Manager\", \"section=components&act=gallery\" );\n\n }", "title": "" }, { "docid": "9e053d64affe1f3ae176061fe3758f2c", "score": "0.52431595", "text": "public function delUpload(){\n\t\tarray_map( 'unlink', glob( _PPSK_UPLOAD_FILES.'*.*' ));\n\t\tarray_map( 'unlink', glob( _PPSK_UPLOAD_FILES._PPSK_THUMB_FOLD.'*.*'));\n\t}", "title": "" }, { "docid": "c9b55462d1c447bc2260d877dd39abe3", "score": "0.522732", "text": "function del() {\n\t\t\n\t\t\n\t\t//delete answer\n\t\tif(!sql_query(\"\n\t\tDELETE FROM \".$GLOBALS['prefix_lms'].\"_testtrack_answer \n\t\tWHERE idQuest = '\".$this->id.\"'\")) return false;\n\t\t\n\t\t//remove answer\n\t\tif(!sql_query(\"\n\t\tDELETE FROM \".$GLOBALS['prefix_lms'].\"_testquestanswer_associate \n\t\tWHERE idQuest = '\".$this->id.\"'\")) {\n\t\t\treturn false;\n\t\t}\n\t\tif(!sql_query(\"\n\t\tDELETE FROM \".$GLOBALS['prefix_lms'].\"_testquestanswer \n\t\tWHERE idQuest = '\".$this->id.\"'\")) {\n\t\t\treturn false;\n\t\t}\n\t\t//remove question\n\t\treturn sql_query(\"\n\t\tDELETE FROM \".$GLOBALS['prefix_lms'].\"_testquest \n\t\tWHERE idQuest = '\".$this->id.\"'\");\n\t}", "title": "" }, { "docid": "984660c6e6f8a9e02e9b249f63b28232", "score": "0.52256155", "text": "protected function tearDown()\n {\n $myDB = oxDb::getDB();\n $sDelete = 'delete from oxrecommlists where oxid like \"testlist%\" ';\n $myDB->execute($sDelete);\n\n $sDelete = 'delete from oxobject2list where oxlistid like \"testlist%\" ';\n $myDB->execute($sDelete);\n\n parent::tearDown();\n }", "title": "" }, { "docid": "b6023c9f2af37aea6136fb052d01327c", "score": "0.52208483", "text": "function getRemainingSongParts($song)\n{\n $used = [];\n foreach ($song->onsongs as $onsong) {\n array_push($used, $onsong->song_part_id);\n }\n $songparts = App\\Models\\SongPart::whereNotIn('id', $used)->orderby('sequence')->get();\n return $songparts;\n}", "title": "" }, { "docid": "93e767dd5f3e5f2a0aab2b42fef74444", "score": "0.52027303", "text": "public function tearDown()\n\t{\n\t\tunset($this->target_collection);\n\t}", "title": "" }, { "docid": "30652b21ae3f93e712e68fbcd80dcb59", "score": "0.519649", "text": "public function getSongs()\n {\n return $this->songs;\n }", "title": "" }, { "docid": "5d438806da4d056476b602f498581917", "score": "0.5173136", "text": "public function testGettingAlbumTracks()\n {\n $token = $this->_createUser();\n $headers = $this->_getHeaders($token);\n $artist = $this->_createArtist($token);\n\n $newAlbum = $this->_getnewAlbumArray($artist);\n $newAlbumResponse = $this->json('POST', '/api/v1/albums', $newAlbum, $headers);\n $album = json_decode($newAlbumResponse->getContent());\n if($album !== null) {\n if (is_array($album)) {\n $album = $album[0];\n }\n }\n\n $response = $this->json('GET', '/api/v1/albums/' . $album->_hash.'/tracks', array(), $headers);\n\n $this->_removeUser($token['user']);\n $this->_removeArtist($artist);\n $this->_removeAlbum($album->_hash);\n\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "c2d88e93eb93dc896fa686e76fd20fcb", "score": "0.5172752", "text": "public function deleteAll() {\n $this->Parts->removeAllParts();\n }", "title": "" }, { "docid": "a028e73b83e8f97970bfe5c2dead1c74", "score": "0.5160869", "text": "protected function tearDown()\n {\n foreach ($this->testModules as $module)\n {\n $this->moduleService->delete($module);\n }\n }", "title": "" }, { "docid": "d4fcad5c3461f68fb149eb421bfdbb26", "score": "0.51582456", "text": "function tearDown() {\r\n\t\t$fileIDs = $this->allFixtureIDs('Image');\r\n\t\tforeach($fileIDs as $fileID) {\r\n\t\t\t$file = DataObject::get_by_id('Image', $fileID);\r\n\t\t\tif($file && file_exists(BASE_PATH.\"/$file->Filename\")) unlink(BASE_PATH.\"/$file->Filename\");\r\n\t\t}\r\n\r\n\t\t/* Remove the test folders that we've crated */\r\n\t\t$folderIDs = $this->allFixtureIDs('Folder');\r\n\t\tforeach($folderIDs as $folderID) {\r\n\t\t\t$folder = DataObject::get_by_id('Folder', $folderID);\r\n\t\t\tif($folder && file_exists(BASE_PATH.\"/$folder->Filename\")) Filesystem::removeFolder(BASE_PATH.\"/$folder->Filename\");\r\n\t\t}\r\n\t\t\r\n\t\tparent::tearDown();\r\n\t}", "title": "" }, { "docid": "78c4cff379c07476037d94f9cec03b9c", "score": "0.51571494", "text": "public static function clearOutCurrentPlaylist(): void {\n $playlist_id = DB::connect()->getPlaylistID('Current', 0);\n if ($playlist_id === null) {\n throw new Exception('Could not find Current playlist in database');\n }\n\n $body = [\n 'uris' => [],\n ];\n $uri = Env::load()->get('APIURI').\"/playlists/$playlist_id/tracks\";\n Curl::put($uri)\n ->addHeader('Authorization', self::getBearerHeader())\n ->addHeader('Content-Type', 'application/json')\n ->setJsonBody(json_encode($body))\n ->exec();\n }", "title": "" }, { "docid": "50bc9f047a27d7fd0e31bce968555b21", "score": "0.5150662", "text": "protected function _clearNoRemoveSiblings()\n {\n $collection = $this->getCollection()\n ->addFilter('action', 'add')\n ->addFilter('name', $this->getName())\n ->addFilter('object', ($object = $this->getData('object')) ? $object : '')\n ->addFilter('entity_id', $this->getEntityId());\n\n foreach ($collection as $event) {\n $event->delete();\n }\n\n $collection = $this->getCollection()\n ->addFilter('action', 'modify')\n ->addFilter('name', $this->getName())\n ->addFilter('object', ($object = $this->getData('object')) ? $object : '')\n ->addFilter('entity_id', $this->getEntityId());\n\n foreach ($collection as $event) {\n $event->delete();\n }\n }", "title": "" }, { "docid": "80354adb60628e7135c71b624cebea86", "score": "0.51430297", "text": "function delete_track_played($start){\n $changed = false;\n if (can_edit_at_time($start) && feedback_op(query(\"DELETE from track_played WHERE start = start\", $suppress_warnings), \"track removed from $start\", \"track not removed from $start\"))\n $changed = $start;\n return $changed;\n \n}", "title": "" }, { "docid": "6d2c1b853ca09634cf1bef6f76afd091", "score": "0.5135755", "text": "public function deletePhotoPlaylist()\n\t\t\t{\n\t\t\t\t$playlist_ids = $this->fields_arr['photo_playlist_ids'];\n\t\t\t\t//DELETED PLAYLIST TAGS//\n\t\t\t\t//$this->deletePhotoPlaylistTag($playlist_ids);\n\t\t\t\t// *********Delete records from PLAYLIST related tables start*****\n\t\t\t\t//$tablename_arr = array('photo_playlist_comments', 'photo_playlist_favorite', 'photo_playlist_listened', 'photo_playlist_featured', 'photo_playlist_viewed', 'photo_playlist_rating');\n\t\t\t\t$tablename_arr = array('photo_playlist_viewed', 'photo_in_playlist');\n\t\t\t\tfor($i=0;$i<sizeof($tablename_arr);$i++)\n\t\t\t\t\t{\n\t\t\t\t\t\t$sql = 'DELETE FROM '.$this->CFG['db']['tbl'][$tablename_arr[$i]].' WHERE photo_playlist_id IN(' . $playlist_ids . ')';\n\n\t\t\t\t\t\t$stmt = $this->dbObj->Prepare($sql);\n\t\t\t\t\t\t$rs = $this->dbObj->Execute($stmt);\n\t\t\t\t\t\tif (!$rs)\n\t\t\t\t\t\t\ttrigger_error($this->dbObj->ErrorNo() . ' ' . $this->dbObj->ErrorMsg(), E_USER_ERROR);\n\t\t\t\t\t}\n\n\t\t\t\t//DELETE PLAYLIST RELATED ACTIVITY //\n\t\t\t\t$action_key = array('playlist_create', 'playlist_comment', 'playlist_rated', 'playlist_featured', 'playlist_favorite', 'playlist_share');\n\t\t\t\tfor($inc=0;$inc<count($action_key);$inc++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//$condition = ' SUBSTRING(action_value, 1, 1 ) IN ('.$playlist_ids.') AND action_key = \\''.$action_key[$inc].'\\'';\n\t\t\t\t\t\t//$condition = ' content_id IN ('.$playlist_ids.') AND action_key = \\''.$action_key[$inc].'\\'';\n\t\t\t\t\t\t$condition = ' SUBSTRING_INDEX(action_value, \\'~\\', 1 ) IN ('.$playlist_ids.') AND action_key = \\''.$action_key[$inc].'\\'';\n\n\t\t\t\t\t\t$sql='SELECT parent_id FROM '.$this->CFG['db']['tbl']['photo_activity'].' WHERE '.$condition;\n\t\t\t\t\t\t$stmt = $this->dbObj->Prepare($sql);\n\t\t\t\t\t\t$rs = $this->dbObj->Execute($stmt);\n\t\t\t\t\t\tif (!$rs)\n\t\t\t\t\t\t\ttrigger_error($this->dbObj->ErrorNo().' '.$this->dbObj->ErrorMsg(), E_USER_ERROR);\n\t\t\t\t\t\tif ($rs->PO_RecordCount()>0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$parent_id ='';\n\t\t\t\t\t\t\twhile($row = $rs->FetchRow())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif($parent_id=='')\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$parent_id = $row['parent_id'];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$parent_id = $parent_id.','.$row['parent_id'];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$sql = 'DELETE FROM '.$this->CFG['db']['tbl']['photo_activity'].\n\t\t\t\t\t\t' WHERE '.$condition;\n\n\t\t\t\t\t\t$stmt = $this->dbObj->Prepare($sql);\n\t\t\t\t\t\t$rs = $this->dbObj->Execute($stmt);\n\t\t\t\t\t\tif (!$rs)\n\t\t\t\t\t\t\ttrigger_error($this->dbObj->ErrorNo().' '.$this->dbObj->ErrorMsg(), E_USER_ERROR);\n\n\t\t\t\t\t\t$condition_act = ' parent_id IN ('.$parent_id.') ';\n\t\t\t\t\t\t$sql = 'DELETE FROM '.$this->CFG['db']['tbl']['activity'].' WHERE '.$condition_act;\n\t\t\t\t\t\t$stmt = $this->dbObj->Prepare($sql);\n\t\t\t\t\t\t$rs = $this->dbObj->Execute($stmt);\n\t\t\t \t\tif (!$rs)\n\t\t\t\t \t\ttrigger_db_error($this->dbObj);\n\t\t\t\t \t}\n\n\t\t\t\t\t}\n\n\t\t\t\t$sql = 'DELETE FROM '.$this->CFG['db']['tbl']['photo_playlist'].\n\t\t\t\t\t\t' WHERE photo_playlist_id IN ('.$playlist_ids.')' ;\n\n\t\t\t\t$stmt = $this->dbObj->Prepare($sql);\n\t\t\t\t$rs = $this->dbObj->Execute($stmt);\n\t\t\t\tif (!$rs)\n\t\t\t\t\ttrigger_error($this->dbObj->ErrorNo().' '.$this->dbObj->ErrorMsg(), E_USER_ERROR);\n\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "6436dead43980a4e6d70ca0fb7120e14", "score": "0.512926", "text": "public function eliminarTemaPlaylist($id){\n foreach($_SESSION[\"playlist\"] as $key => $temas){\n if($temas[\"id\"] == $id){\n unset($_SESSION[\"playlist\"][$key]);\n $playlist = $_SESSION[\"playlist\"]; \n break;\n }\n }\n unset($_SESSION[\"playlist\"]);\n $_SESSION[\"playlist\"] = $playlist;\n return $_SESSION[\"playlist\"];\n }", "title": "" }, { "docid": "e51c72a5529f2ad6d9b5320790c97f99", "score": "0.51274484", "text": "public function cleanup() {\n foreach ($this->items as $item) {\n amazon_item_delete($item['asin'], $item['locale']);\n }\n }", "title": "" }, { "docid": "e44018bf94a4da9a590f1b44eb16e37a", "score": "0.5123385", "text": "public function deleteUnexisting()\n {\n $files = array(\n\n // site\n '/components/com_tkdclub/models/eventpart.php',\n '/components/com_tkdclub/models/forms/eventpart.xml',\n '/components/com_tkdclub/controllers/eventpart.json.php',\n '/components/com_tkdclub/controllers/eventpart.php',\n '/components/com_tkdclub/assets/css/medallist.css',\n '/components/com_tkdclub/assets/images/bronce.png',\n '/components/com_tkdclub/assets/images/bronze.png',\n '/components/com_tkdclub/assets/images/gold.png',\n '/components/com_tkdclub/assets/images/silver.png',\n '/components/com_tkdclub/assets/images/silber.png',\n\n // admin\n '/administrator/components/com_tkdclub/assets/images/active.png',\n '/administrator/components/com_tkdclub/assets/images/bronce.png',\n '/administrator/components/com_tkdclub/assets/images/exam_add-32.png',\n '/administrator/components/com_tkdclub/assets/images/exam_edit-32.png',\n '/administrator/components/com_tkdclub/assets/images/exam_publish-32.png',\n '/administrator/components/com_tkdclub/assets/images/exams-16.png',\n '/administrator/components/com_tkdclub/assets/images/exams-48.png',\n '/administrator/components/com_tkdclub/assets/images/exam_unpublish.png',\n '/administrator/components/com_tkdclub/assets/images/gold.png',\n '/administrator/components/com_tkdclub/assets/images/inactive.png',\n '/administrator/components/com_tkdclub/assets/images/loading-24.gif',\n '/administrator/components/com_tkdclub/assets/images/medalbronce-16.png',\n '/administrator/components/com_tkdclub/assets/images/medalgold-16.png',\n '/administrator/components/com_tkdclub/assets/images/medals-16.png',\n '/administrator/components/com_tkdclub/assets/images/medals-48.png',\n '/administrator/components/com_tkdclub/assets/images/medalsilver-16.png',\n '/administrator/components/com_tkdclub/assets/images/member-48.png',\n '/administrator/components/com_tkdclub/assets/images/members-16.png',\n '/administrator/components/com_tkdclub/assets/images/members-48.png',\n '/administrator/components/com_tkdclub/assets/images/optimised.svg',\n '/administrator/components/com_tkdclub/assets/images/save-24.png',\n '/administrator/components/com_tkdclub/assets/images/silver.png',\n '/administrator/components/com_tkdclub/assets/images/supporter.png',\n '/administrator/components/com_tkdclub/assets/images/exam_unpublish-32.png',\n '/administrator/components/com_tkdclub/assets/images/taekwondo-16.png',\n '/administrator/components/com_tkdclub/assets/images/taekwondo-16-white.png',\n '/administrator/components/com_tkdclub/assets/images/taekwondo-32.png',\n '/administrator/components/com_tkdclub/assets/images/taekwondo-48.png',\n '/administrator/components/com_tkdclub/assets/images/taekwondo-black.svg',\n '/administrator/components/com_tkdclub/assets/images/taekwondo-kick.svg',\n '/administrator/components/com_tkdclub/assets/images/taekwondo-kick-white.svg',\n '/administrator/components/com_tkdclub/assets/images/tkd-14-black.png',\n '/administrator/components/com_tkdclub/assets/images/tkd-14-white.png',\n '/administrator/components/com_tkdclub/assets/images/tkd-18-black.png',\n '/administrator/components/com_tkdclub/assets/images/tkd-18-white.png',\n '/administrator/components/com_tkdclub/assets/images/tkd-24-black.png',\n '/administrator/components/com_tkdclub/assets/images/tkd-24-white.png',\n '/administrator/components/com_tkdclub/assets/images/tkd-36-black.png',\n '/administrator/components/com_tkdclub/assets/images/tkd-36-white.png',\n '/administrator/components/com_tkdclub/assets/images/tkd-48-black.png',\n '/administrator/components/com_tkdclub/assets/images/tkd-48-white.png',\n '/administrator/components/com_tkdclub/assets/images/tkd-fighter.svg',\n '/administrator/components/com_tkdclub/assets/images/trainings-16.png',\n '/administrator/components/com_tkdclub/assets/images/trainings-48.png',\n '/administrator/components/com_tkdclub/assets/images/xls.png',\n '/administrator/components/com_tkdclub/assets/js/agedistchart.js',\n '/administrator/components/com_tkdclub/assets/js/genderchart.js',\n '/administrator/components/com_tkdclub/assets/js/statechart.js',\n '/administrator/components/com_tkdclub/assets/js/submitbutton.js',\n '/administrator/components/com_tkdclub/assets/js/tkdclub.js',\n '/administrator/components/com_tkdclub/assets/js/trainnumberschart.js',\n '/administrator/components/com_tkdclub/assets/js/trainpartschart.js',\n '/administrator/components/com_tkdclub/assets/js/traintypeschart.js',\n '/administrator/components/com_tkdclub/controllers/equipments.php',\n '/administrator/components/com_tkdclub/controllers/equipment.php',\n '/administrator/components/com_tkdclub/controllers/eventparts.php',\n '/administrator/components/com_tkdclub/controllers/eventpart.php',\n '/administrator/components/com_tkdclub/controllers/exams.php',\n '/administrator/components/com_tkdclub/controllers/exam.php',\n '/administrator/components/com_tkdclub/controllers/examparts.php',\n '/administrator/components/com_tkdclub/controllers/exampart.php',\n '/administrator/components/com_tkdclub/controllers/mail.php',\n '/administrator/components/com_tkdclub/controllers/exampart.php',\n '/administrator/components/com_tkdclub/controllers/stats.php',\n '/administrator/components/com_tkdclub/includes/membercharts.php',\n '/administrator/components/com_tkdclub/includes/trainingscharts.php',\n '/administrator/components/com_tkdclub/models/equipments.php',\n '/administrator/components/com_tkdclub/models/equipment.php',\n '/administrator/components/com_tkdclub/models/eventparts.php',\n '/administrator/components/com_tkdclub/models/eventpart.php',\n '/administrator/components/com_tkdclub/models/exams.php',\n '/administrator/components/com_tkdclub/models/exam.php',\n '/administrator/components/com_tkdclub/models/examparts.php',\n '/administrator/components/com_tkdclub/models/exampart.php',\n '/administrator/components/com_tkdclub/models/mail.php',\n '/administrator/components/com_tkdclub/models/stats.php',\n '/administrator/components/com_tkdclub/models/fields/equipcat.php',\n '/administrator/components/com_tkdclub/models/fields/examparts.php',\n '/administrator/components/com_tkdclub/models/fields/exams.php',\n '/administrator/components/com_tkdclub/models/fields/years.php',\n '/administrator/components/com_tkdclub/models/forms/equipment.xml',\n '/administrator/components/com_tkdclub/models/forms/eventpart.xml',\n '/administrator/components/com_tkdclub/models/forms/exam.xml',\n '/administrator/components/com_tkdclub/models/forms/exampart.xml',\n '/administrator/components/com_tkdclub/models/forms/filter_examparts.xml',\n '/administrator/components/com_tkdclub/models/forms/filter_eventparts.xml',\n '/administrator/components/com_tkdclub/models/forms/mail.xml',\n '/administrator/components/com_tkdclub/tables/equipments.php',\n '/administrator/components/com_tkdclub/tables/eventparts.php',\n '/administrator/components/com_tkdclub/tables/examparts.php',\n '/administrator/components/com_tkdclub/tables/exams.php',\n '/administrator/components/com_tkdclub/helpers/actions.php',\n '/administrator/components/com_tkdclub/helpers/agecalc.php',\n '/administrator/components/com_tkdclub/helpers/geteventparts.php',\n '/administrator/components/com_tkdclub/helpers/getpaystate.php',\n '/administrator/components/com_tkdclub/helpers/list.php',\n '/administrator/components/com_tkdclub/helpers/members.php',\n '/administrator/components/com_tkdclub/helpers/sidebar.php',\n '/administrator/components/com_tkdclub/helpers/trainer.php',\n\n );\n\n $folders = array(\n\n // site\n '/components/com_tkdclub/views/eventpart',\n\n //admin\n '/administrator/components/com_tkdclub/views/equipment',\n '/administrator/components/com_tkdclub/views/equipments',\n '/administrator/components/com_tkdclub/views/eventpart',\n '/administrator/components/com_tkdclub/views/eventparts',\n '/administrator/components/com_tkdclub/views/exams',\n '/administrator/components/com_tkdclub/views/exam',\n '/administrator/components/com_tkdclub/views/mail',\n '/administrator/components/com_tkdclub/views/exampart',\n '/administrator/components/com_tkdclub/views/examparts',\n '/administrator/components/com_tkdclub/views/stats',\n );\n\n foreach ($files as $file) {\n if (File::exists(JPATH_ROOT . $file) && !File::delete(JPATH_ROOT . $file)) {\n echo Text::sprintf('FILES_JOOMLA_ERROR_FILE_FOLDER', $file) . '<br />';\n }\n }\n\n foreach ($folders as $folder) {\n if (Folder::exists(JPATH_ROOT . $folder) && !Folder::delete(JPATH_ROOT . $folder)) {\n echo Text::sprintf('FILES_JOOMLA_ERROR_FILE_FOLDER', $folder) . '<br />';\n }\n }\n }", "title": "" }, { "docid": "5f2ef8b8cbb23a215459bbd759205a30", "score": "0.51196206", "text": "protected function tearDown() {\n foreach ($this->connect as $connect) {\n $courselinks = $connect->get_resource_list(event::RES_COURSELINK);\n foreach ($courselinks->get_ids() as $eid) {\n // All courselinks were created by 'unittest1'.\n $this->connect[1]->delete_resource($eid, event::RES_COURSELINK);\n }\n }\n\n // Delete all events.\n foreach ($this->connect as $connect) {\n while ($connect->read_event_fifo(true)) {\n ;\n }\n }\n\n $this->connect = array();\n $this->mid = array();\n }", "title": "" }, { "docid": "989e0144eddfcd17822355d68fbbdb35", "score": "0.5116878", "text": "public function testDeleteVideoFromPlaylist()\n {\n $this->tester->haveInDatabase('users',['name' => $this->name, 'email' => $this->email, 'password' => $this->password]);\n\n //Add a playlist inorder for the relation to be correct\n $this->tester->haveInDatabase('playlists',['ownerid' => $this->ownerid, 'name' => $this->playName, 'description' => $this->playDesc, 'thumbnail' => $this->playThumb]);\n\n //Add a video inorder for the relation to be correct\n $this->tester->haveInDatabase('video',['userid' => $this->userid, 'title' => $this->title, 'description' => $this->desc, 'topic' => $this->topic, 'course' => $this->course, 'thumbnail_path' => $this->thumbnail]);\n \n $this->tester->haveInDatabase('playlistvideos', ['videoid' => $this->videoid, 'playlistid' => $this->playlistid, 'position' => '1']);\n\n $this->playlist->deleteVideoFromPlaylist($this->playlistid, $this->videoid);\n\n $this->tester->dontSeeInDatabase('playlistvideos', ['videoid' => $this->videoid, 'playlistid' => $this->playlistid, 'position' => '1']);\n\n }", "title": "" }, { "docid": "c6e2b296b80d16beab980bec4d511c7c", "score": "0.51167077", "text": "function deleteCachedItemsContainingSongId(Song $song)\n{\n $items = $song->items()->get();\n\n $item_id_list = [];\n // get each item id into an array\n foreach ($items as $item) {\n # find item in cache\n array_push($item_id_list, $item->id);\n }\n\n // get all items in the cache with the same item_id's\n $cachedItems = PlanCache::whereIn('item_id', $item_id_list);\n $cachedItems->delete();\n}", "title": "" }, { "docid": "a5e3a35971dab03327143e633e3bac7f", "score": "0.5110824", "text": "public function run()\n {\n $tests = \\App\\Models\\Test::all();\n foreach ($tests as $test) {\n $test->delete();\n }\n }", "title": "" }, { "docid": "604f516a231b855bcad0de2e61aa670b", "score": "0.51059854", "text": "static public function tearDown(){\n\t\tforeach(self::$storages as $mountpoint=>$storage){\n\t\t\tunset(self::$storages[$mountpoint]);\n\t\t}\n\t\t$fakeRoot='';\n\t}", "title": "" }, { "docid": "db338ad484111bf828fb446aa82a1a3d", "score": "0.5104912", "text": "public function removeAllTmpAction()\n {\n SwfUpload::removeAllTmp();\n exit();\n }", "title": "" }, { "docid": "c4fada8c5b98b9a6ab8f08e010bef951", "score": "0.5104491", "text": "function removeTitles($tarray) {\n\t\tforeach($tarray as $t) {\n\t\t\tif (($key = array_search($t, $this->titles, true)) !== FALSE) {\n\t\t\t\t//echo \"found and removed \".$t->productCode;\n\t\t\t\tunset($this->titles[$key]);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "0111ca96cd1c81fc8157b0303f66aa4d", "score": "0.5100266", "text": "public function testShutdownRemovesObservedFilesSetup(): void\n {\n self::$removeFilesOnTearDown = false;\n\n $fileToBeDeleted = sys_get_temp_dir().'/cs_fixer_foo.php';\n $fileNotToBeDeleted = sys_get_temp_dir().'/cs_fixer_bar.php';\n\n file_put_contents($fileToBeDeleted, '');\n file_put_contents($fileNotToBeDeleted, '');\n\n $fileRemoval = new FileRemoval();\n\n $fileRemoval->observe($fileToBeDeleted);\n }", "title": "" }, { "docid": "9bd67854fe4084cb6713c202bd7cdff3", "score": "0.5099569", "text": "public function clear_files()\n {\n $file = new Filesystem;\n $res = $file->cleanDirectory(storage_path('app/test'));\n }", "title": "" }, { "docid": "7858d80e2bcf2042b3b5d471741d8762", "score": "0.5091294", "text": "protected function tearDown()\n {\n for ($i = 0; $i < 10; ++$i) {\n $this->autoRecordAArray[$i]->delete();\n $this->autoRecordBArray[$i]->delete();\n $this->autoRecordCArray[$i]->delete();\n $this->autoRecordAArray[$i] = null;\n $this->autoRecordBArray[$i] = null;\n $this->autoRecordCArray[$i] = null;\n }\n }", "title": "" }, { "docid": "cbb0a62e61a2fa18754d310c1727102b", "score": "0.50879234", "text": "public function kiki_song_delete_by_id($id)\n {\n $document_id = 'music_' . $id;\n $this->solr_document_delete_by_ID($this->kiki_music_client, $document_id);\n\n }", "title": "" }, { "docid": "5a9f69c7021e7ef6fe4c4ee36b113c7d", "score": "0.5077884", "text": "public function clear()\n {\n $this->champions = [];\n }", "title": "" }, { "docid": "dc8e5e7980aae838ace8be4a825b0df9", "score": "0.50768715", "text": "function track_get_list_from_curr($curid) {\n global $CURMAN;\n\n $tracks = $CURMAN->db->get_records(TRACKTABLE, 'curid', $curid);\n\n if (is_array($tracks)) {\n foreach ($tracks as $key => $track) {\n if (1 == $track->defaulttrack) {\n unset($tracks[$key]);\n }\n }\n }\n return $tracks;\n}", "title": "" }, { "docid": "cd92afb703dd6939ea2044436fd54ea0", "score": "0.5073124", "text": "public function delete()\n {\n $database = new Database();\n\n FileUtils::remove(Config::getPath('albums_root').$this->id, true);\n\n foreach ($this->getSongs() as $song) {\n $song->delete();\n }\n\n return $database->delete(self::ALBUMS_TABLE, \"`id` = $this->id\");\n }", "title": "" }, { "docid": "1de0941d789786add696e97f9690678d", "score": "0.5055839", "text": "function deleteFiles(){\n if (file_exists(\"test_script.xml\")){\n unlink(\"test_script.xml\");\n }\n if(file_exists(\"test_script.out\")){\n unlink(\"test_script.out\");\n }\n }", "title": "" }, { "docid": "9f30556b636476bab01d8c6064d51671", "score": "0.50555676", "text": "private function rewriteAudioPlayers($html)\n {\n // Find all audio Players\n $audioPlayers = $html->find('div[class=audioPlayer]');\n\n foreach ($audioPlayers as $audioPlayer) {\n // Get the javascript content below the player\n $js = $audioPlayer->next_sibling();\n\n // Extract the audio file URL\n preg_match('/wavesurfer[0-9]+.load\\(\\'(.*)\\'\\)/m', $js->innertext, $urls);\n\n // Create the plain HTML <audio> content to play this audio file\n $content = '<audio style=\"width: 100%\" src=\"' . $urls[1] . '\" controls ></audio>';\n\n // Replace the <script> tag by the <audio> tag\n $js->outertext = $content;\n // Remove the initial Audio Player\n $audioPlayer->outertext = '';\n }\n }", "title": "" }, { "docid": "38df6cd580acfd17029a335b6c06a185", "score": "0.50555676", "text": "public function clean_up_albums( $ids ) {\n\n\t\tglobal $wpdb;\n\n\t\t$albums_table = KokenSync::table_name('albums');\n\n\t\t$ids = join( ',', $ids );\n\n\t\t// clean up albums\n\t\t$wpdb->query(\"\n\t\t\tDELETE FROM \" . $albums_table . \"\n\t\t\tWHERE album_id NOT IN ($ids)\n\t\t\");\n\t}", "title": "" }, { "docid": "baa3fb7fedce1a5ddb0e6a06ac66839a", "score": "0.5053983", "text": "public static function tearDownAfterClass()\n {\n parent::tearDownAfterClass();\n\n if (file_exists(__DIR__ . '/GeneratedModels/Dummy/Commands')) {\n static::recursiveRemoveDir(__DIR__ . '/GeneratedModels/Dummy/Commands');\n }\n\n if (file_exists(__DIR__ . '/GeneratedModels/Dummy/Events')) {\n static::recursiveRemoveDir(__DIR__ . '/GeneratedModels/Dummy/Events');\n }\n\n if (file_exists(__DIR__ . '/GeneratedModels/User/Commands')) {\n static::recursiveRemoveDir(__DIR__ . '/GeneratedModels/User/Commands');\n }\n\n if (file_exists(__DIR__ . '/GeneratedModels/User/Events')) {\n static::recursiveRemoveDir(__DIR__ . '/GeneratedModels/User/Events');\n }\n }", "title": "" }, { "docid": "1ecd689e186037e8b769b83fe51a31d2", "score": "0.50505483", "text": "function delete_stray_files() {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "3ac88ea83c1aa463205b288304046a80", "score": "0.50479233", "text": "public function testRemove()\n {\n return true;\n }", "title": "" }, { "docid": "c87dc3719d1ed9c1bc7df46106061030", "score": "0.50440913", "text": "public function removeAll() {\n $this->_itemIds = array();\n }", "title": "" }, { "docid": "2b9e22f475b118d954eec297cbe10334", "score": "0.5042538", "text": "public function testRemovedFiles() {\n $workdir = $this->webroot() . '/sites/all/modules';\n $this->drush('dl', array('exif_custom-1.14'), array(), NULL, $workdir);\n\n // Remove a file.\n unlink($workdir . '/exif_custom/exif_custom.features.inc');\n\n // Check that diff reports changes.\n $this->drush('bandaid-diff', array('exif_custom'), array(), NULL, $workdir, self::EXIT_CODE_DIFF_DETECTED);\n }", "title": "" }, { "docid": "abb677e3c5d78c0dd1e0bb64bb209df9", "score": "0.50393754", "text": "public function deleteSong(){\r\n $this-> isLogined();\r\n if(isset($_POST['search'])){\r\n\r\n $result['songs']=$this->Song_model->Search(\"K\");\r\n \r\n }else{\r\n $result['songs']=$this->Song_model->Search(\"\");\r\n \r\n }\r\n \r\n $this->load->view('header');\r\n $this->load->view(\"deletesong\",$result);\r\n }", "title": "" }, { "docid": "66cbd3cf1197cf65fe3a07bcef81dd9a", "score": "0.50355333", "text": "public function clean()\n {\n $mainFile = $this->filePath;\n $exclude = array();\n\n if (isset($this->metadata['sizes']))\n {\n foreach($this->metadata['sizes'] as $size => $data)\n {\n $exclude[] = $data['file'];\n }\n }\n $result['excluding'] = $exclude;\n\n $ext = pathinfo($mainFile, PATHINFO_EXTENSION); // file extension\n $base = substr($mainFile, 0, strlen($mainFile) - strlen($ext) - 1);\n $pattern = '/' . preg_quote($base, '/') . '-\\d+x\\d+\\.'. $ext .'/';\n $thumbsCandidates = @glob($base . \"-*.\" . $ext);\n\n $thumbs = array();\n if(is_array($thumbsCandidates)) {\n foreach($thumbsCandidates as $th) {\n if(preg_match($pattern, $th)) {\n $thumbs[]= $th;\n }\n }\n if( count($this->customThumbSuffixes)\n && !( is_plugin_active('envira-gallery/envira-gallery.php')\n || is_plugin_active('soliloquy/soliloquy.php')\n || is_plugin_active('soliloquy-lite/soliloquy-lite.php'))){\n foreach ($this->customThumbSuffixes as $suffix){\n $pattern = '/' . preg_quote($base, '/') . '-\\d+x\\d+'. $suffix . '\\.'. $ext .'/';\n foreach($thumbsCandidates as $th) {\n if(preg_match($pattern, $th)) {\n $thumbs[]= $th;\n }\n }\n }\n }\n }\n\n $result['removed'] = array();\n\n foreach($thumbs as $thumb) {\n if($thumb === $mainFile)\n {\n continue;\n }\n if (in_array(basename($thumb), $exclude))\n {\n continue;\n }\n\n if($thumb !== $mainFile) {\n $status = @unlink($thumb);\n $result['removed'][] = $thumb . \"($status)\";\n }\n }\n\n return $result;\n }", "title": "" }, { "docid": "a10da2da0a70cc6dcb100cb88c045958", "score": "0.5034214", "text": "public function removeEmptySpots() {\n foreach( $this->getSpots() as $spot ) {\n if( $spot->isEmpty() ) {\n //echo \"remove spot!!!!! <br>\";\n $this->removeSpot($spot);\n }\n }\n }", "title": "" }, { "docid": "7974cd8ef95a734662d88fff1126e5d2", "score": "0.5032455", "text": "public function testDeleteFromPlaylist(array $input) {\n /** @var Playlist $playlist */\n $playlist = $input[0];\n /** @var Video[] $videos */\n $videos = $input[1];\n $playlist->setVideoIds([]);\n $videoIds = $playlist->getVideoIds();\n $playlist = $this->cms->updatePlaylist($playlist);\n $createdVideoIds = $playlist->getVideoIds();\n\n $this->assertEquals($videoIds, $createdVideoIds);\n\n return [$playlist, $videos];\n }", "title": "" }, { "docid": "23fb1b97306e56d1352b0200bd181f22", "score": "0.50299597", "text": "function do_favs_remove( )\n\t{\n\t\t$to_remove = array();\n\t\t\n \t\tforeach ($this->ipsclass->input as $key => $value)\n \t\t{\n \t\t\tif ( preg_match( \"/^rm_(\\d+)$/\", $key, $match ) )\n \t\t\t{\n \t\t\t\tif ($this->ipsclass->input[$match[0]])\n \t\t\t\t{\n \t\t\t\t\t$to_remove[ $match[1] ] = $this->ipsclass->input[$match[0]];\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n\t\tif( count($to_remove) == 0 )\n\t\t{\n\t\t\tif( $this->ipsclass->input['return'] )\n\t\t\t{\n\t\t\t\t$this->ipsclass->boink_it( $this->ipsclass->base_url.\"autocom=downloads\" );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->funcs->produce_error( 'cannot_find_to_remove' );\n\t\t\t\t$this->list_subs();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$removed_cnt = 0;\n\t\t\t\n\t\t\tforeach( $to_remove as $id => $yes )\n\t\t\t{\n\t\t\t\tif( $yes == 1 )\n\t\t\t\t{\n\t\t\t\t\t$id = intval($id);\n\t\t\n\t\t\t\t\tif( !$id )\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\t\t\n\t\t\n\t\t\t\t\t$this->ipsclass->DB->simple_delete( \"downloads_favorites\", \"fmid={$this->ipsclass->member['id']} AND ffid={$id}\" );\n\t\t\t\t\t$this->ipsclass->DB->exec_query();\n\t\t\t\t\t\n\t\t\t\t\t$removed_count++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\tif( $this->ipsclass->input['return'] == 1 )\n\t\t\t{\n\t\t\t\t$this->ipsclass->print->redirect_screen( $this->ipsclass->lang['ucp_removedtofavs'], \"autocom=downloads&amp;showfile={$id}\" );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->message = sprintf( $this->ipsclass->lang['ucp_removedtofavss'], $removed_count );\n\t\t\t\t$this->list_favs();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "dd751d358ae7493f21636699726b8339", "score": "0.5018798", "text": "public function getSongs() {\n $data = array();\n $songs = $this->file_manager->songs();\n \n foreach ($songs as $song) {\n $song_info['file_name'] = $song['file_name'];\n $song_info['file_ext'] = $song['file_ext'];\n $song_info['image_id'] = $song['image_id'];\n \n $data['songs'][] = $song_info;\n }\n \n $this->layout->set_title('Songs');\n $data['upload'] = site_url('media/file_upload');\n $this->layout->view('user/songs', $data);\n }", "title": "" }, { "docid": "629014d15a20eee4f505ca2e43af6d50", "score": "0.50159156", "text": "public function removeTestEntity()\n {\n $this->removeTestTag('Test Public Tag in POST');\n $this->removeTestTag('Test Public Tag in UPDATE');\n }", "title": "" }, { "docid": "d9d45b6c28282f7451282364d23640bf", "score": "0.50149596", "text": "public function clearFiles();", "title": "" }, { "docid": "63a2790a6efb7efb15b9aaa5705de44e", "score": "0.50141734", "text": "private function _clearMagicList() {\n\t\tif(!check($this->_player)) return;\n\t\t\n\t\t$result = $this->db->query(\"UPDATE \"._TBL_MASTERLVL_.\" SET \"._CLMN_ML_SKILL_.\" = null WHERE \"._CLMN_ML_NAME_.\" = ?\", array($this->_player));\n\t\tif(!$result) return;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f6f8cf210a376235450b8975ee34b749", "score": "0.5008859", "text": "function clean_up_upload() {\n\t$upload_dir = get_upload_path();\n\t$files = glob( $upload_dir . '*.*' );\n\tforeach ( $files as $file ) {\n\t\tunlink( $file );\n\t}\n}", "title": "" }, { "docid": "061dc53f1019a19126c6b08dfd08d32f", "score": "0.50078917", "text": "public function testRemoveCodePlayground()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "5c7dfac2e1322b3efe800178615a0311", "score": "0.50056666", "text": "function removeAll($db) {\n try {\n $db->exec(\"TRUNCATE TABLE Pokedex\");\n } catch (PDOException $pdoex) {\n print(json_encode(['exception' => $pdoex]));\n }\n print(json_encode(['success' => \"Success! All Pokemon removed from your Pokedex!\"]));\n }", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.49992266", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.49992266", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.49992266", "text": "public function remove();", "title": "" } ]
27b2407fc19b6544116e903b8516a84e
TODO: needs to be fixed
[ { "docid": "b95c8edf237b4b09a78c58fdeb7037d4", "score": "0.0", "text": "public function DestroyUser()\n {\n $username = 'test@test.test';\n $password = 'secret';\n\n $url = env('ACCOUNT_URL') . \"/api/login\";\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, 'username=' . $username . '&password=' . $password);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $result = curl_exec($ch);\n curl_close($ch);\n\n $account_data = json_decode($result);\n\n session(['account_token' => $account_data->access_token]);\n\n $response = $this->delete(\"/user/{$this->user->id}/destroy\");\n $response->assertOk();\n }", "title": "" } ]
[ { "docid": "7ab73e8cb2c0babdfa7bdbdea1195143", "score": "0.58564955", "text": "private function upgrade_1591()\n {\n }", "title": "" }, { "docid": "abb5f713358da5529853b6431479b471", "score": "0.5520858", "text": "private function upgrade_1403()\n {\n }", "title": "" }, { "docid": "0e59379112512b1f4fc1b3ae6ccaa830", "score": "0.549415", "text": "private function __construct () {}", "title": "" }, { "docid": "0e59379112512b1f4fc1b3ae6ccaa830", "score": "0.549415", "text": "private function __construct () {}", "title": "" }, { "docid": "bf8b6b2eac30c1afd7ebe8a254f2bc09", "score": "0.547818", "text": "private function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "ea0db09f4336a2572e994ff745c2ff4a", "score": "0.54741967", "text": "private function __construct(){\n\t\t\n\t}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.5415004", "text": "private function __construct() {}", "title": "" }, { "docid": "6688547035b17a16e3a1dbc95f5f69d2", "score": "0.53862953", "text": "private function upgrade_157()\n {\n }", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.5374676", "text": "final private function __construct() {}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.5374676", "text": "final private function __construct() {}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.5374676", "text": "final private function __construct() {}", "title": "" }, { "docid": "1de51be9ea5b14667770ba9166ca43d3", "score": "0.53552306", "text": "private function __construct() {\n\t\t\t\n\t}", "title": "" }, { "docid": "b0cc34a9048833a17d8373fb6440d33b", "score": "0.5349773", "text": "public function abonar2()\n\n {\n\n }", "title": "" }, { "docid": "d9001cbbd8333782ebf5ce16d7344ae8", "score": "0.5348452", "text": "public function init() ;", "title": "" }, { "docid": "34fd3986b54350a19892686272e3f9fa", "score": "0.5343432", "text": "private function upgrade_149()\n {\n }", "title": "" }, { "docid": "1996906b6e02b3d7fb418c17bc444ca4", "score": "0.5338111", "text": "private function upgrade_77()\n {\n }", "title": "" }, { "docid": "82b2fec70d74bb46c033845355f283e5", "score": "0.5335978", "text": "private function __() {\n }", "title": "" }, { "docid": "82b2fec70d74bb46c033845355f283e5", "score": "0.5335978", "text": "private function __() {\n }", "title": "" }, { "docid": "dcf917738bba884de5b951b75e992a6f", "score": "0.5320104", "text": "private function upgrade_63()\n {\n }", "title": "" }, { "docid": "ab6a952b12499fc4ca87388114731ffe", "score": "0.53086776", "text": "private function __construct() \n\t\t{\n\t\t}", "title": "" }, { "docid": "201433bb2af3b93189c57497737f4f15", "score": "0.530778", "text": "function __construct (){\n\t\t\n\t}", "title": "" }, { "docid": "5322d3a2da92af100e2a7063b1f72c91", "score": "0.5307599", "text": "private function __construct() {\n \n }", "title": "" }, { "docid": "3d29157393d1e8e8c5742a471749d52b", "score": "0.52942914", "text": "private function __construct() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "3d29157393d1e8e8c5742a471749d52b", "score": "0.52942914", "text": "private function __construct() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a00453a1d3044c896debd4017c876a60", "score": "0.529237", "text": "public function soul();", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.52904975", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.52904975", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.52904975", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.52904975", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.52904975", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.52904975", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.52904975", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.52904975", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.52904975", "text": "protected function __construct() {}", "title": "" }, { "docid": "9b8e050cb4f8f03dcf541d0fec9d593c", "score": "0.5289384", "text": "private function upgrade_153()\n {\n }", "title": "" }, { "docid": "4d3ec4d120da4f4ba73783b84248d6ac", "score": "0.5286977", "text": "private final function __construct() {}", "title": "" }, { "docid": "b9fb7aa4cd8792f7254e91b0be2e3bd0", "score": "0.5283526", "text": "private function __construct() { \n\t\t\n\n\t}", "title": "" }, { "docid": "93f723cece12d9e63f18b048631c2c35", "score": "0.5270798", "text": "public function testCase4()\n {\n\n }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.52629256", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.52629256", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.52629256", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.52629256", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.52629256", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.52629256", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.52629256", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.52629256", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.52629256", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.52629256", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.52629256", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.52629256", "text": "private function __construct() { }", "title": "" }, { "docid": "d9dcb048a105274d7e32634a8705f3ff", "score": "0.52556854", "text": "private function upgrade_145()\n {\n }", "title": "" }, { "docid": "e88b6b5b78998e4dcc843b3c08d4e6ab", "score": "0.5245007", "text": "private function __construct() {\n \n }", "title": "" }, { "docid": "e88b6b5b78998e4dcc843b3c08d4e6ab", "score": "0.5245007", "text": "private function __construct() {\n \n }", "title": "" }, { "docid": "e88b6b5b78998e4dcc843b3c08d4e6ab", "score": "0.5245007", "text": "private function __construct() {\n \n }", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.524374", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.524374", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.524374", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.524374", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.524374", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.524374", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.524374", "text": "private function __construct(){}", "title": "" } ]
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "4b703c353ac32fab541a3aa087d31e1f", "score": "0.0", "text": "public function update(Request $request, Comment $comment)\n {\n //\n }", "title": "" } ]
[ { "docid": "995ba0c8f03901b2d9d4e3a2b71aed6a", "score": "0.7192627", "text": "public function put($resource);", "title": "" }, { "docid": "01534868cb4f609380c1221841e980b3", "score": "0.7055208", "text": "public function testUpdateResource()\n {\n\n }", "title": "" }, { "docid": "806a502be14c3132fb31b52b5f6fc652", "score": "0.6811669", "text": "public function update(Request $request, Resource $resource)\n {\n //\n $this->authorize('update', $resource);\n $input=$request->all();\n $resource->update($input);\n return redirect('/resource/'.$resource->id);\n }", "title": "" }, { "docid": "f5a994e832253cd9f55282b676779eee", "score": "0.665668", "text": "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'title' => 'required',\n 'content' => 'required',\n 'icon_id' => 'required'\n ]);\n \n $updateEntry = $resource;\n $updateEntry->title = $request->title;\n $updateEntry->content = $request->content;\n $updateEntry->icon_id = $request->icon_id;\n $updateEntry->save();\n return redirect('resources');\n }", "title": "" }, { "docid": "718f7d64347dbb970d3af2645ff41b28", "score": "0.6624096", "text": "public function update(Request $request, Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "718f7d64347dbb970d3af2645ff41b28", "score": "0.6624096", "text": "public function update(Request $request, Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "24dae383ef96f6cd3c2ae0eb901b0e6e", "score": "0.6533836", "text": "public function update_storage()\n {\n }", "title": "" }, { "docid": "2390e2b8ee9b8954b577e83f8820c087", "score": "0.64636725", "text": "public function update(Request $request, Resource $resource)\n {\n $this->save($resource, $request);\n\n return redirect()->route('resource.show', ['resource' => $resource]);\n }", "title": "" }, { "docid": "8467ecb0dbf1d9ccb84ac63dd18c0896", "score": "0.63440365", "text": "public function update(Request $request, storage $storage)\n {\n $storage->update($request->all());\n\n return redirect()->route('storage.index')->withStatus(__('storage successfully updated.'));\n }", "title": "" }, { "docid": "cc19cd46a06e40af74215bec5d1bff6f", "score": "0.62828", "text": "public function update(Request $request, Storage $storage)\n {\n //\n $data = $request->all();\n $update = Storage::findOrFail($request->storage_id);\n $data = $request->all();\n $ok = $update->update($data);\n\n if ($ok) {\n return back()->with('success', \"Activity updated successfully\");\n } else {\n return back()->with('error', \"Something wen't wrong! Please try again\");\n }\n }", "title": "" }, { "docid": "fa2a013f8711944438e691cb6cc55e66", "score": "0.6139667", "text": "public function update_object ($obj)\n {\n $this->_commit ($obj, Storage_action_update);\n }", "title": "" }, { "docid": "8b36ffcc87dfcd18f23af856d8853acc", "score": "0.6045223", "text": "public function replace(Resource $resource)\n {\n return $this->save($resource, $replace = true);\n }", "title": "" }, { "docid": "53fb2f47835e8885a16e9805805e80d8", "score": "0.60224766", "text": "public function update($resource)\n {\n if ($resource instanceof Model) {\n return $this->form()->update($resource->id);\n }\n\n return $this->form()->update($resource);\n }", "title": "" }, { "docid": "fae18446ab6ba766002815d7efd6d0f2", "score": "0.60153604", "text": "public function updateStream($resource)\n {\n return $this->filesystem->updateStream($this->path, $resource);\n }", "title": "" }, { "docid": "7fcd166007fa0df141cb1ff80f531590", "score": "0.59964967", "text": "public function update(Resource $resource) {\n\t\t$class = get_class($resource);\n\t\t$reflector = new ReflectionClass($class);\n\n\t\t$table = strtolower(substr($class, strrpos($class, \"\\\\\") + 1));\n\t\t$criteria = $resource->getRequiredEqualities();\n\t\t$populateCriteria = $criteria == null;\n\n\t\t$parameters = array();\n\t\tforeach($reflector->getProperties() as $parameter) {\n\t\t\tif($resource->isDirty($parameter->name)) {\n\t\t\t\t$parameters[$parameter->name] = $resource->{'get' . ucfirst(\\framework\\camelCase($parameter->name))}();\n\t\t\t} else if($populateCriteria) {\n\t\t\t\t$criteria[$parameter->name] = $resource->{'get' . ucfirst(\\framework\\camelCase($parameter->name))}();\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\t$this->driver->update($parameters, $table, $criteria);\n\t\t} catch (InvalidQueryException $exception) {\n\t\t\tthrow $exception; # Move it up the line.\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c578eae6b6dfa4e69347194aa71e0c56", "score": "0.5987175", "text": "public function update($object)\r\n\t{\r\n\t\tif(file_exists($this->conf->paths['storage'].\"/\".$object->get_id()))\r\n\t\t\t$fp = fopen($this->conf->paths['storage'].\"/\".$object->get_id(), \"w\");\r\n\t\tif(!$fp)\r\n\t\t\tthrow new Exception(\"Failed to open file: '\".$this->conf->paths['storage'].\"/\".$object->get_id().\"'\");\r\n\t\tfwrite($fp, serialize($object));\r\n\t\tfclose($fp);\r\n\t\t$this->update_stat();\r\n\t}", "title": "" }, { "docid": "fb6d6d2f47c01b40c3ee6f90a7b30eaa", "score": "0.59581053", "text": "public function update(Request $request, $id)\n {\n //\n $product=Shirts::find($id);\n // validation\n $this->validate($request,[\n 'name'=>'required',\n 'size'=>'required',\n 'price'=>'required',\n 'description'=>'required'\n ]);\n\n $oldImage=Input::get('image');\n\n $product->description =$request->input('description');\n $product->name = $request->input('name');\n $product->price = $request->input('price');\n $product->size = $request->input('size');\n\n $Image = $request->file('image');\n\n if($Image)\n {\n $filenameToStore= Products::updatePhoto('image','shirts',$request);\n\n $product->image = $filenameToStore;\n\n Storage::delete('public/photos/shirts/'.$oldImage);\n }\n\n $product->save();\n return redirect()->route('shirts.index');\n }", "title": "" }, { "docid": "0491a14749073a0385a7050311d8f458", "score": "0.595499", "text": "public function update(ResourceRequest $request, Resource $resource)\n {\n try {\n $resource = $this->resourceService->updateResource($request->all(), $resource);\n return $this->respondWithSuccess('Resource Updated.', ['resource' => new ResourceResource($resource)], Response::HTTP_ACCEPTED);\n } catch (Exception $e) {\n return $this->respondWithError($e->getMessage());\n }\n }", "title": "" }, { "docid": "98b58f9ade13a98b810ff57532876c2b", "score": "0.5909375", "text": "public function update(Request $request, $id)\n {\n $item = StoragePhoto::findOrFail($id);\n\n if ($request->hasFile('file')) {\n $oldFile = $item->file;\n\n $image = $request->file('image');\n $filename = time() . '.' . $image->getClientOriginalExtension();\n\n $path = $image->storeAs('public/storage_photos', $filename);\n\n $item->file = $filename;\n\n /* TODO - удалить старую пикчу */\n Storage::disk('public')->delete('storage_photos/' . $oldFile);\n }\n\n $item->save();\n\n return redirect()->route('admin.banners.index');\n }", "title": "" }, { "docid": "c505a7676741f8b0f0d5b54e66cdf22a", "score": "0.58993477", "text": "public static function register_or_update_storage_resource($storageResourceDesc, $update = false)\n {\n if ($update) {\n $storageResourceId = $storageResourceDesc->storageResourceId;\n \n if (Airavata::updateStorageResource(Session::get('authz-token'), $storageResourceId, $storageResourceDesc)) {\n $storageResource = Airavata::getStorageResource(Session::get('authz-token'), $storageResourceId);\n return $storageResource;\n } else\n print_r(\"Something went wrong while updating!\");\n exit;\n } else {\n $sr = new StorageResourceDescription( $storageResourceDesc);\n $storageResourceId = Airavata::registerStorageResource(Session::get('authz-token'), $sr);\n }\n $storageResource = Airavata::getStorageResource(Session::get('authz-token'), $storageResourceId);\n return $storageResource;\n\n }", "title": "" }, { "docid": "24392ed55179d91794136a7abc353e0b", "score": "0.5845655", "text": "function handle_put_pic($resource)\n{\n\t$owner = get_owner_of_pic_resource($resource);\n\tif(!authenticate_user($owner))\n\t{\n\t\theader(\"HTTP/1.1 403 Forbidden\");\n\t\tdie(\"You can only update your own resources!\");\n\t}\n\n\t$data = json_decode(file_get_contents(\"php://input\"));\n\n\t$owner = isset($data->owner) ? $data->owner : null;\n\t$info = isset($data->info) ? $data->info : null;\n\t$image_data = isset($data->image) ? $data->image : null;\n\n\t// All fields must be supplied\n\tif(is_null($owner) || is_null($info) || is_null($image_data))\n\t{\n\t\theader('HTTP/1.1 422 Unprocessable Entity');\n\t\tdie(\"owner, info and image fields must be supplied\");\n\t}\n\n\tupdate_pic_resource($resource, $owner, $info, $image_data);\n}", "title": "" }, { "docid": "996f4a8678aca25bf47aeb5352fb1d2d", "score": "0.5841891", "text": "public function update(Request $request, $resource)\n { \n $resource = RequiredDocument::find($resource);\n try {\n $resource->update($request->all()); \n } catch (\\Exception $th) {\n return responseJson(0, $th->getMessage());\n }\n return responseJson(1, __('done'));\n }", "title": "" }, { "docid": "96e56ee021bd9ebb23ab79ce64045619", "score": "0.57721734", "text": "public function update(Request $request, $id)\n {\n // return $request;\n /**\n * melakukan validasi\n */\n $this->validate($request, [\n 'title',\n 'type',\n 'creator',\n 'format',\n 'file' => '',\n 'image' => ''\n ]);\n\n DB::beginTransaction();\n try {\n $resource = Resource::find($id);\n // simpan tanpa gambar dan file\n $resource->update([\n 'title' => $request->title,\n 'subject_id' => $request->subject_id,\n 'description' => $request->description,\n 'creator' => $request->creator,\n 'source' => $request->source,\n 'publisher' => $request->publisher,\n 'date' => Carbon::now(),\n 'contributor_id' => Auth::user()->id,\n 'rights' => $request->rights,\n 'format' => $request->format,\n 'language' => $request->language,\n 'type_id' => $request->type_id,\n 'collection_id' => $request->collection_id,\n 'citation' => null\n ]);\n $resource->save();\n\n // olah gambar dan file\n $file = $request->file('file');\n if($file != NULL){\n $fileExt = $file->getClientOriginalExtension();\n $fileName = 'resource_' . $id . '.' . $fileExt;\n $tujuan_file = $this->path_resource_file;\n $file->move($tujuan_file,$fileName);\n \n $image = $request->file('image');\n $imageExt = $image->getClientOriginalExtension();\n $imageName = 'image_' . $id . '.' . $imageExt;\n $tujuan_image = $this->path_resource_image;\n $image->move($tujuan_image,$imageName);\n \n $resource->update([\n 'file' => $fileName,\n 'image' => $imageName\n ]);\n $resource->save();\n }\n DB::commit();\n return redirect()->route('admin.oer.resource.index')->with('status','Resource berhasil diupdate');\n } catch (\\Throwable $th) {\n DB::rollBack();\n return redirect()->route('admin.oer.resource.index')->with('status','Resource gagal diupdate');\n }\n }", "title": "" }, { "docid": "3b6c3aaa23b4fb918ebc093545c13dc6", "score": "0.57525045", "text": "public function update($entity);", "title": "" }, { "docid": "7fa7323735ca22c15cfa4866e023dcb7", "score": "0.57337505", "text": "public function setResource($resource);", "title": "" }, { "docid": "79170e0c428aa8840550d2f009bc0bd5", "score": "0.57258964", "text": "public function edit($id)\n\t{\n\t\t// the specified resource from storage.\n\t \n\t}", "title": "" }, { "docid": "68611877d8742448025a8506ebac8d13", "score": "0.5723295", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "title": "" }, { "docid": "eaa9290a68686ebc6d5bfe4b4d4da3ed", "score": "0.57221985", "text": "public function update(ResourceUpdateRequest $request, int $id)\n {\n if (auth()->user()->user_type_id == 0){\n return redirect('/admin/resources')->with(['error' => 'Unauthorized!']);\n }\n $subjects = $this->Subject->GetAllAndOrder('name', 'asc')->pluck('name', 'id');\n $courses = $this->Course->GetAllAndOrder('name', 'asc')->pluck('name', 'id');\n\n // Validated Request\n $data = $request->validated();\n\n //Handle File Upload\n if ($request->hasFile('pdf_path')) {\n $ext = $request->file('pdf_path')->getClientOriginalExtension();\n $pdf_path = 'CI_' . time() . '.' . $ext;\n $PDFPath = $request->file('pdf_path')->storeAs('public/cover_images', $pdf_path);\n }\n\n // if ($request->hasFile('video_path')) {\n // $ext = $request->file('video_path')->getClientOriginalExtension();\n // $video_path = 'CI_' . time() . '.' . $ext;\n // $VideoPath = $request->file('video_path')->storeAs('public/cover_images', $video_path);\n // }\n\n if ($request->hasFile('audio_path')) {\n $ext = $request->file('audio_path')->getClientOriginalExtension();\n $audio_path = 'CI_' . time() . '.' . $ext;\n $AudioPath = $request->file('audio_path')->storeAs('public/cover_images', $audio_path);\n }\n\n $entity = $this->Resource->UpdateResource(\n $data['name'],\n $data['description'],\n $data['subject_id'],\n $pdf_path,\n $audio_path,\n $data['video_path'],\n $id\n );\n\n if ($entity == null) {\n return redirect()->back()->withInput()->with(['error' => 'Error encountered while updating user, Please try again!', 'subjects'=>$subjects, 'courses'=>$courses]);\n }\n\n return redirect(\"/admin/resources\")->with(['success' => $entity->name.' Resource Updated!']);\n }", "title": "" }, { "docid": "069b4ac7f6c57fe9a04373680c642655", "score": "0.5707731", "text": "public function update(Request $request, $id)\n {\n $this->validate($request,[\n 'social_name'=>'required',\n 'link'=>'required'\n ]);\n $path=$request->old_image;\n if($request->hasFile('icon')){\n if($path!=null){\n unlink('storage/',$path);\n }\n $path=$request->file('icon')->store('Icon');\n }\n $social=Social::where('id',$id)->first();\n $social->name=$request->social_name;\n $social->icon=$path;\n $social->link=$request->link;\n $social->save();\n return redirect()->route('listSocial');\n }", "title": "" }, { "docid": "f47b9d570ea05e0c010d421e6ee2956d", "score": "0.570513", "text": "public function update(Request $request, $id)\n {\n \n $product= Product::find($id);\n\n $product->fill($request->all())->save();\n\n if($request->file('file')){\n\n $photo =Storage::disk('public')->put('files', $request->file('file'));\n $product->fill(['file'=>asset($photo)])->save();\n //$product->fill($request->all())->save();\n\n }\n return redirect()->route('products.index')->with('info','Actualizacion exitosa.');\n }", "title": "" }, { "docid": "e298ed6e92031fa9134c5a6ed2507d24", "score": "0.5691853", "text": "public function update($object);", "title": "" }, { "docid": "e298ed6e92031fa9134c5a6ed2507d24", "score": "0.5691853", "text": "public function update($object);", "title": "" }, { "docid": "e298ed6e92031fa9134c5a6ed2507d24", "score": "0.5691853", "text": "public function update($object);", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5675671", "text": "public function update($data);", "title": "" }, { "docid": "aa791f30f13ec2f303130ddbd0ce5da7", "score": "0.56709456", "text": "public function update ($object);", "title": "" }, { "docid": "d1cbfd525b1daec79739ff0e6ccf1268", "score": "0.56673855", "text": "public function testUpdateById()\n {\n $server = $this->server->getByAssetId('78453');\n $rams = $this->ram->getByServerId($server->getId(), 1, 100, true);\n $this->assertTrue($this->ram->updateById($rams[0]['id'], ['size' => '6']));\n }", "title": "" }, { "docid": "1473bff93d350e39f21ce4988672250e", "score": "0.56635326", "text": "public function setResource(?Resource $resource)\n {\n if($this->exists) {\n $this->rewriteResource = true;\n }\n\n $this->resource = $resource;\n }", "title": "" }, { "docid": "0b3db3a626ff99124139d26b53736d7f", "score": "0.56604844", "text": "public function setResource(?string $resource): void;", "title": "" }, { "docid": "069d6ef83ac999fe8c81dd1c3b87e822", "score": "0.565091", "text": "function update_pic_resource($resource, $owner, $info, $image_data)\n{\n\t$pics_table = TABLE_PICS;\n\n\t// Check whether resource exists\n\t$db = connect_database();\n\t$res = $db->prepare(\"SELECT * FROM $pics_table WHERE id=?\");\n\t$input = array($resource);\n\t$res->execute($input);\n\n\tif(!($res))\n\t{\n\t\theader('HTTP/1.1 500 Internal Server Error');\n\t\tdie(\"Database error\");\n\t}\n\n\n\t// Resource does not exist?\n\tif($res->rowCount() != 1)\n\t{\n\t\theader('HTTP/1.1 404 Not Found');\n\t\tdie();\n\t}\n\n\t// Update owner\n\tif(!is_null($owner))\n\t{\n\t\t$res = $db->prepare(\"UPDATE $pics_table SET owner=? WHERE id=?\");\n\t\t$input = array($owner, $resource);\n\t\t$res->execute($input);\n\n\t\tif(!($res))\n\t\t{\n\t\t\theader('HTTP/1.1 500 Internal Server Error');\n\t\t\tdie(\"Database error\");\n\t\t}\n\t}\n\n\t// Update image info\n\tif(!is_null($info))\n\t{\n\t\t$res = $db->prepare(\"UPDATE $pics_table SET info=? WHERE id=?\");\n\t\t$input = array($info, $resource);\n\t\t$res->execute($input);\n\n\t\tif(!($res))\n\t\t{\n\t\t\theader('HTTP/1.1 500 Internal Server Error');\n\t\t\tdie(\"Database error\");\n\t\t}\n\t}\n\n\t// Update actual image\n\tif(!is_null($image_data))\n\t{\n\t\t// Get filename from database\n\t\t$res = $db->prepare(\"SELECT filename FROM $pics_table WHERE id=?\");\n\t\t$input = array($resource);\n\t\t$res->execute($input);\n\t\t$row = $res->fetch(PDO::FETCH_ASSOC);\n\t\t$filename = $row['filename'];\n\n\t\t// Save data to file\n\t\t$res = file_put_contents(BASE_IMAGE_DIR.$filename, base64_decode($image_data));\n\t\t// FIXME: Check result\n\t}\n}", "title": "" }, { "docid": "8eaf334df7b5605dd932f3d2e8a41f85", "score": "0.5650028", "text": "public function update(Request $request, $id)\n {\n $item = Item::find($id);\n if ($request->file('file')) {\n $path = $request->file('file')->store('app/public/img');\n $item->path = $path = 'storage'.substr($path, 10);\n }\n $item->name = $request->input('name');\n\n $item->sizes()->detach();\n if($request->input('sizes')) {\n foreach ($request->input('sizes') as $size) {\n $item->sizes()->attach($size);\n }\n }\n $item->save();\n return redirect()->route('index');\n }", "title": "" }, { "docid": "5291290bcd969edf6f73d602449094f5", "score": "0.5647362", "text": "public function update(StoreRequest $request, $id)\n {\n if ($request->file('image')){\n $path = $request->file('image')->store('images','public');\n $request->validated();\n $data = [\n 'image' => $path,\n 'title' => $request->title,\n 'text' => $request->text,\n ];\n Slider::whereId($id)->update($data);\n return redirect()->route('admin.sliders.index')->with('succsess', 'Данные были обновленны успешно');\n }\n else {\n $request->validated();\n $data = [\n 'image' => $request->hiddenImage,\n 'title' => $request->title,\n 'text' => $request->text,\n ];\n Slider::whereId($id)->update($data);\n return redirect()->route('admin.sliders.index')->with('succsess', 'Данные были обновлены успешно');\n }\n }", "title": "" }, { "docid": "c0f5addccae14c8f29d848399d71595d", "score": "0.5644971", "text": "public function update(Request $request, $id)\n {\n //\n \n $user = User::find($id);\n if($request->has('name'))\n {\n $user->name=$request->get('name');\n }\n\n // TODO: Handle 404 error\n if($request->hasFile('avatar'))\n {\n $featuredImage = $request->file('avatar');\n $filename = time().$featuredImage->getClientOriginalName();\n // Storage::disk('images')->putFileAs($filename, $featuredImage,$filename);\n \n //Storage::putFile('public/images', $featuredImage,'public');\n\n $path= Storage::put('public/images/', $featuredImage, 'public');\n\n // Storage::putFile('photos', new File('/path/to/photo'), 'public');\n\n }\n\n $user->avatar = url($path);\n\n $user->save();\n\n return new UserResource($user);\n }", "title": "" }, { "docid": "3225745ceb37b1c7e09aa4ce56382df1", "score": "0.563803", "text": "public function update(Request $request, $id)\n {\n\n // AIzaSyBT7FGQguFSd8ajZiuAt1zk4LCaM9LAbWo\n try\n {\n $this->validate($request, [\n 'address' => 'required',\n 'latitude' => 'required',\n 'longitude' => 'required',\n ]);\n\n $storage = Storage::findOrFail($id);\n\n $storage->address = $request->input('address');\n $storage->latitude = $request->input('latitude');\n $storage->longitude = $request->input('longitude');\n\n $storage->save();\n\n return redirect()->route('storages.index')->with('success', \"The storage <strong>$storage->address</strong> has successfully been updated.\");\n }\n catch (ModelNotFoundException $ex) \n {\n if ($ex instanceof ModelNotFoundException)\n {\n return response()->view('errors.'.'404');\n }\n }\n }", "title": "" }, { "docid": "c8f367908b757c81a8edc82408118665", "score": "0.5618928", "text": "public function update(StoreProductRequest $request, $id)\n {\n $product = Product::findOrFail($id);\n\n $path = $product->photo;\n $file = '/public/'.$path;\n\n if ($request->file('photo')) {\n $path = $request->file('photo')->store('photos', 'public');\n }\n\n $product->update([\n 'name' => $request->name,\n 'description' => $request->description,\n 'price' => $request->price,\n 'category_id' => $request->category_id,\n 'photo' => $path\n ]);\n\n if (Storage::exists($file) AND $path != self::DEFAULT_IMAGE_STORAGE_URL) {\n Storage::delete($file);\n }\n\n return redirect()->route('admin.products.index')->with('success', 'Product has been updated successfully!');\n }", "title": "" }, { "docid": "7a0daf096da3d4426382a1e223faf321", "score": "0.5611065", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->stream($path, $resource, $config, 'update');\n }", "title": "" }, { "docid": "859149ae859a2b4652938544f4f690ac", "score": "0.55987424", "text": "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required|max:255',\n 'price' => 'required|numeric|min:0',\n 'url' => 'nullable|max:255',\n 'manufacturer' => 'exists:manufacturers,id'\n ]);\n \n //$image_store = request()->file('image')->store('/Users/kieranmurphy/Documents/Uni/webAppDev/assignment2/prod/public/products_images');\n $image_store = request()->file('image')->store('', 'public');\n $product = Product::find($id);\n $product->name = $request->name;\n $product->price = $request->price;\n $product->url = $request->url;\n $product->image = $image_store;\n $product->manufacturer_id = $request->manufacturer;\n $product->save();\n return redirect(url(\"product/$product->id\"));\n }", "title": "" }, { "docid": "cf289fdccd02b9207ca528e586bf8602", "score": "0.55945903", "text": "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n\n $product->product_name = $request->input('product_name');\n $product->product_desc = $request->input('product_desc');\n $product->product_condition = $request->input('product_condition');\n $product->product_price = $request->input('product_price');\n $product->brand_id = $request->input('brand_id');\n $product->state_id = $request->input('state_id');\n $product->area_id = $request->input('area_id');\n $product->subcategory_id = $request->input('subcategory_id');\n $product->user_id = auth()->id();\n\n if ($request->hasFile('product_image')) {\n # code...\n $path = $request->product_image->store('public/uploads');\n $product->product_image = $request->product_image->hashName();\n }\n\n $product->save();\n\n // flash('Product successfully updated')->overlay();\n alert()->success('Successfully updated.', 'Good Work!')->autoclose(3000);\n\n return redirect() ->route('products.index');\n }", "title": "" }, { "docid": "08bd864d1d979d05f0f5badd1d9c880d", "score": "0.5584394", "text": "public function update(Request $request,$id)\n {\n\n\n\n\n if ($request->hasFile('file')){\n $todo = Todo::find($id);\n $nam = class_basename($todo->photo);\n Storage::delete('images/'.$nam);\n $path = $request->file('file')->store('images');\n\n\n }else {\n $todo = Todo::find($id);\n $path = $todo->photo;\n }\n $item = Todo::find($id);\n $item->photo = $path;\n $item->text = $request->text;\n $item->update();\n return redirect()->route('slide.index')\n ->with('success','Slider updated successfully');\n }", "title": "" }, { "docid": "5fed529c5b080f27dd2e01ca8fc4ac47", "score": "0.557354", "text": "public function update(Request $request, $id)\n {\n $product = Products::findOrFail($id);\n $product->fill($request->all());\n if (!$request->hasFile('inputFile')) {\n\n } else {\n $imageName = time().'.'.$request->inputFile->extension();\n $request->inputFile->move(public_path('uploads'), $imageName);\n $product->image = 'uploads/'.$imageName;\n }\n $product->save();\n return redirect()->route('product.index');\n }", "title": "" }, { "docid": "5d4b1ffc9d0784b5904148d809883df2", "score": "0.55700654", "text": "public function update(Request $request,$id): \\Illuminate\\Http\\RedirectResponse\n {\n $product = Product::find($id);\n $product->name =$request->name;\n $product->price =$request->price;\n $path = $request->file('image')->store('/image', 'public');\n $product->image = $path;\n $product->save();\n if ($request->hasFile('image')) {\n $file = $request->file('image');\n $file->storeAs('public/image', 'anh_' . $product->id);\n }\n return redirect()->route('product.index');\n }", "title": "" }, { "docid": "af33e60c955c4d563496960443215622", "score": "0.55682975", "text": "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n $product -> ProductName = $request->name;\n $product -> ProductPrice = $request->price;\n $product -> ProductCount = $request->count;\n $product -> ProductName = $request->name;\n $product -> Size = $request->size;\n $product -> Type = $request->type;\n $product -> Brand = $request->brand;\n $product -> Sale = $request->sale;\n $product -> Note = $request->note;\n\n if($request['ImageUpload']){\n\n $ProductImage = $request['ImageUpload'];\n $ext = $ProductImage->getClientOriginalExtension();\n $name = time().'_'.$ProductImage->getClientOriginalName();\n Storage::disk('public')->put($name,File::get($ProductImage));\n $product->ProductImage = $name;\n \n }\n\n $product->save();\n \n return redirect()->back();\n }", "title": "" }, { "docid": "8906f32f155d40c8f8a49be55b1f4a18", "score": "0.55671555", "text": "public function update(Request $request, $id)\n {\n $request_data = $request->all();\n $item = Products::find($id);\n\n // 判斷是否有更新圖片\n if($request->hasFile('img')){\n // 刪除原有圖片\n Storage::disk('public')->delete($item->img);\n // 上傳新的圖片\n $file_name = $request->file('img')->store('','public');\n $request_data['img'] = $file_name;\n }\n // 更新資料\n $item->update($request_data);\n return redirect('/home/product');\n }", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.55661047", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "2727357bb406596eb8dfe8891f67ccfc", "score": "0.55604166", "text": "public function update(Request $request, EventResource $eventResource): JsonResponse\n {\n if ($request->has('type')) {\n $eventResource->type = $request->type;\n }\n\n if ($request->hasFile('url')) {\n Storage::disk('event')->delete($eventResource->url);\n $eventResource->url = $request->url->store('/', 'event');\n }\n\n if (!$eventResource->isDirty()) {\n return $this->errorResponse(\n 'Se debe especificar al menos un valor diferente para actualizar',\n );\n }\n $eventResource->saveOrFail();\n return $this->api_success([\n 'data' => new EventResourceResource($eventResource),\n 'message' => __('pages.responses.updated'),\n 'code' => 200\n ]);\n }", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "2cfa3f035d49122191c6037f7c1b1ce1", "score": "0.55438745", "text": "public function update(Request $request, $id)\n {\n\n\n $data = $request->all();\n $data['Photo'] = $request->file('Photo')->store(\n 'assets/wisata', 'public'\n );\n\n $item = Gallery::findOrFail($id);\n\n $item->update($data);\n\n return redirect()->route('gallery.index');\n }", "title": "" }, { "docid": "b6ff7a39be0c5754d44a62a820354b5a", "score": "0.55404127", "text": "public function update(Request $request, $id)\n {\n $product = ProductService::update($id,$request);\n return new ProductResource($product);\n }", "title": "" }, { "docid": "abb88a7c05d8fee17d4ac3a6820978dd", "score": "0.5531798", "text": "public function setResource(Resource $resource);", "title": "" }, { "docid": "0cd1468122b5df0652960de9beec7153", "score": "0.5530294", "text": "protected function _update() {\n $name = $this->name;\n $identifier = $this->getIdentifier($name);\n $this->identifier = $identifier;\n }", "title": "" }, { "docid": "e4e5746029a652a8af6357dfd0ecfb0a", "score": "0.55277145", "text": "public function updateRecord($record, ResourceObjectInterface $resource, EncodingParametersInterface $params);", "title": "" }, { "docid": "7475c4693bb0f704a1fb08bd9326903b", "score": "0.55227137", "text": "public function onUpdate(ResourceEvent $e)\n {\n return $this->onPatch($e);\n }", "title": "" }, { "docid": "659edc6c8bc72bf94adc8569c8ce32c9", "score": "0.55171585", "text": "public function put($id, $data);", "title": "" }, { "docid": "a1a5da45e646cd439edfe58999c79c91", "score": "0.5516766", "text": "public function update(Request $request, Product $product)\n {\n \n \n $product->name = $request->name;\n $product->description = $request->description;\n $product->cost = $request->cost;\n $product->acquired_at = $request->dateAcq;\n $product->condition = $request->condition;\n $product->serial_no = $request->serial_no;\n $product->category_id = $request->category;\n $product->quantity = $request->quantity;\n $product->acquired_at = $request->acquired_at;\n $product->manufacturer_id = $request->manufacturer;\n $product->supplier_id = $request->supplier;\n \n if($request->file(\"image\") != null){\n $image = $request->file(\"image\");\n $image_name = time().\".\".$image->getClientOriginalExtension();\n $destination = \"images/\";\n $image->move($destination, $image_name);\n $product->img_path = $destination.$image_name;\n }\n\n $product->save();\n //hint 3: where to go back after editing the product\n return redirect(\"/products/\".$product->id);\n\n }", "title": "" }, { "docid": "f009b4c5e467cb86d91dd277d8f582d8", "score": "0.5515574", "text": "public function update(Request $request, $id)\n {\n $image = $request->newphoto;\n if ($image) {\n $img = Supplier::findOrFail($id);\n $old_imgPath = $img->photo;\n unlink($old_imgPath);\n\n $position = strpos($request->newphoto,';');\n $sub = substr($request->newphoto, 0 ,$position);\n $ext = explode('/', $sub)[1];\n $img_name = time().'.'.$ext;\n Image::make($request->newphoto)->resize(240,240)->save('backend/supplier/'.$img_name);\n $img_url = 'backend/supplier/'.$img_name;\n Supplier::findOrFail($id)->update([\n 'name' => $request->name,\n 'email' => $request->email,\n 'phone' => $request->phone,\n 'address' => $request->address,\n 'shopname' => $request->shopname,\n 'photo' => $img_url,\n 'created_at' => Carbon::now(),\n ]);\n \n }else{\n $old_img = $request->photo;\n Supplier::findOrFail($id)->update([\n 'name' => $request->name,\n 'email' => $request->email,\n 'phone' => $request->phone,\n 'address' => $request->address,\n 'shopname' => $request->shopname,\n 'photo' => $old_img,\n 'created_at' => Carbon::now(),\n \n ]);\n }\n }", "title": "" }, { "docid": "53ffba08b9cf71fb87cb5e0af2376524", "score": "0.551535", "text": "public function update(Request $request, $id)\n {\n $rules = array(\n 'name' => 'required',\n 'category' => 'required',\n 'photo' => 'image|mimes:jpeg,png,jpg,gif,svg|max:1024',\n );\n $validator = Validator::make($request->all(), $rules);\n\n // process the login\n if ($validator->fails()) {\n\n return Redirect::back()->withErrors($validator);\n\n\n } else {\n\n $product = Product::find($id);\n $file = $request->file('photo');\n if ($file){\n\n $path = $file->hashName();\n $image = Image::make($file);\n Storage::put($path, (string)$image->encode());\n $image->resize(100, 100, function ($constraint) {\n $constraint->aspectRatio();\n });\n Storage::put('thumb_' . $path, (string)$image->encode());\n $product->photos = $path;\n $product->save();\n }\n DB::beginTransaction();\n\n try {\n\n\n $product->attributesValues()->sync($request->get('attributes'));\n $product->name = $request->name;\n $product->category_id = $request->category;\n $product->save();\n\n DB::commit();\n } catch (\\Throwable $err) {\n DB::rollBack();\n return Redirect::back()->withErrors($err->getMessage());\n }\n\n\n return Redirect::to('product')->with('status', 'product successfully changed');\n }\n }", "title": "" }, { "docid": "59a46299e3ae479658e854c41ed9b55c", "score": "0.551217", "text": "public function update(Request $request, $client, $resource)\n\t{\n\t\t$resource = Resource::findBySlug($client, $resource);\n\n\t\tif (!$resource) {\n\t\t\treturn response(view('resources.404'), 404);\n\t\t}\n\n\t\t$resource->load('client');\n\t\t$client = $resource->client;\n\n\t\t$this->authorize('manage', $resource);\n\n\t\t$this->validate($request, [\n\t\t\t'name' => ['required', 'max:255'],\n\t\t\t'slug' => [\n\t\t\t\t'required',\n\t\t\t\t'max:255',\n\t\t\t\t'alpha_dash',\n\t\t\t\t'unique:resources,slug,'.$request->input('slug', $resource->slug).',slug,client_id,'.$resource->client->id,\n\t\t\t\t'not_in:create,destroy,edit,prune'\n\t\t\t],\n\n\t\t\t'metadata.*' => ['array'],\n\t\t\t'metadata.keys.*' => ['distinct', 'required_with:metadata.values.*'],\n\n\t\t\t'attachments' => ['array'],\n\t\t\t'uploads' => ['array'],\n\n\t\t\t'type' => ['required'],\n\n\t\t\t'client' => ['required', 'exists:clients,id'],\n\n\t\t\t'tags' => ['array'],\n\t\t\t'tags.*' => ['exists:tags,id'],\n\t\t]);\n\n\t\tif (($newClient = $request->input('client', $resource->client->id)) != $resource->client->id) {\n\t\t\t$client = Client::find($newClient);\n\t\t\t$resource->client()->associate($client);\n\t\t}\n\n\t\t$resource->name = $request->input('name');\n\t\t$resource->slug = $request->input('slug');\n\t\t$resource->description = $request->input('description');\n\n\t\t$metadata = static::parseMetadataFromForm($request->input('metadata', []));\n\t\t$resource->metadata = Crypt::encrypt($metadata);\n\n\t\t$attachments = $request->input('attachments', []);\n\n\t\tif ($request->hasFile('uploads')) {\n\t\t\t$uploads = $request->file('uploads');\n\t\t\t$attachments = array_merge($attachments, $uploads);\n\t\t}\n\n\t\t$resource->attachments = $attachments;\n\n\t\t// set type\n\t\tif (!($type = ResourceType::findBySlug($request->input('type')))) {\n\t\t\t$type = ResourceType::create([\n\t\t\t\t'name' => $request->input('type'),\n\t\t\t\t'slug' => str_slug($request->input('type')),\n\t\t\t]);\n\t\t}\n\n\t\t$resource->type()->associate($type);\n\n\t\t$resource->save();\n\n\t\t$resource->tags()->sync($request->input('tags', []));\n\n\t\treturn redirect()->route('clients.resources.show', ['client' => $resource->client->url, 'resource' => $resource->url])\n\t\t\t->with('alert-success', 'Resource updated!');\n\t}", "title": "" }, { "docid": "265c7e4e1d9ccb8f2d919846c5c6d0e1", "score": "0.55072427", "text": "public function update($id, $input);", "title": "" }, { "docid": "265c7e4e1d9ccb8f2d919846c5c6d0e1", "score": "0.55072427", "text": "public function update($id, $input);", "title": "" }, { "docid": "4f9a7eefe9ee310c77dd90bb772d0268", "score": "0.550326", "text": "protected function save($resource = array()) {\n if (isset($resource['public_id']) && !empty($resource['mode'])) {\n $data = array(\n 'public_id' => $resource['public_id'],\n 'mode' => $resource['mode'],\n 'metadata' => serialize($resource),\n );\n\n db_merge('cloudinary_storage')\n ->key(array('public_id' => $data['public_id']))\n ->fields($data)\n ->execute();\n }\n }", "title": "" }, { "docid": "de666400bd564055ceae68366a410cf6", "score": "0.5495869", "text": "function updateProduct(ProductInterface $product, $andPersist = true);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "2e6523045766c061920aeea9222af1fe", "score": "0.54858494", "text": "public function edit(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "2e6523045766c061920aeea9222af1fe", "score": "0.54858494", "text": "public function edit(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "2e6523045766c061920aeea9222af1fe", "score": "0.54858494", "text": "public function edit(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "915de74b592076343102ef830bad4760", "score": "0.5483238", "text": "public function update(Request $request, $id)\n {\n\n $product = Product::find($id);\n\n if($request->image !=null)\n {\n $path= $request->images->store('products');\n $product->image =$path;\n }\n $product->name = $request->name;\n $product->title = $request->title;\n $product->subtitle = $request->subtitle;\n $product->price = $request->price;\n $product->description = $request->description;\n\n $product->save();\n return redirect('/admin/products');\n }", "title": "" }, { "docid": "cd9002163bfb014aae433fe03ba6f3c6", "score": "0.5481594", "text": "public function update(Request $request, Product $product)\n {\n try{\n// $product = Product::findOrFail($id);\n $data = $request->all();\n if ($request->hasFile('image')) {\n $this->unlink($product->image);\n $data['image'] = $this->uploadImage($request->image, $request->title);\n }\n $product->update($data);\n $sizes = $request->size;\n $colors = $request->color;\n $tags = $request->tag;\n $product->sizes()->sync($sizes);\n $product->colors()->sync($colors);\n $product->tags()->sync($tags);\n\n return redirect()->route('products.index')->withStatus('Updated Successfully !');\n }catch (QueryException $e){\n return redirect()->back()->withInput()->withErrors($e->getMessage());\n }\n }", "title": "" }, { "docid": "4cfc56539ed021bab827429f46aed628", "score": "0.5481018", "text": "protected function updateResources()\n {\n // Get user model\n $user = $this->buildingQueue->city->nation->user;\n $update = new UpdateResources();\n $update->handle($user);\n }", "title": "" }, { "docid": "345df4adf8928070e91a2554a8379eef", "score": "0.54775786", "text": "public function update(Request $request, $id)\n {\n // dd($request->title);\n $image = $request->image;\n if ($image) {\n //一意のファイル名を自動生成しつつ保存し、かつファイルパス($productImagePath)を生成\n //ここでstore()メソッドを使っているが、これは画像データをstorageに保存している\n $image_path = $image->store('public/uploads'); //storage/app/public/uploadsに保存される\n } else {\n $image_path = \"\";\n }\n \n $update = [\n 'title' => $request->title,\n 'contents' => $request->contents,\n 'image' => $image_path\n ];\n Book::find($id)->update($update);\n return redirect('/');\n }", "title": "" }, { "docid": "c9b0a501066581b7e74c2cd60e16e729", "score": "0.5477371", "text": "public function update($id, Request $request)\n {\n $data = $request->validate([\n 'name' => 'required',\n 'description' => 'required',\n 'barcode' => 'required | digits_between:1,10',\n 'quantity' => 'required | numeric',\n 'cost_price' => 'required | between:0,99.99',\n 'sell_price' => 'required | between:0,99.99',\n 'image' => 'image',\n ]);\n\n\n if ( $request->hasFile('image') )\n {\n $imagePath = $request->file('image')->store('products', 'public');\n $image = Image::make(public_path(\"storage/{$imagePath}\"))->fit(1000, 1000);\n $image->save();\n\n $imageArray = ['image' => $imagePath];\n }\n $data = array_merge($data , $imageArray ?? []);\n\n $product = Product::findOrFail($id);\n\n $product->update($data);\n// dd($product);\n\n return redirect()->route('product.show', ['id' => $product->id]);\n }", "title": "" }, { "docid": "3131a9734c737496b73d9b7f02ce130a", "score": "0.5475807", "text": "public function update(Request $request, ReferenceStorage $referenceStorage)\n {\n //\n }", "title": "" }, { "docid": "a6807e80417b5a587e2afd3bf245f13e", "score": "0.54740566", "text": "public function update(Request $request, $id)\n {\n $v = Volumes::find($id);\n $path = $request->file('capa')->store('capas');\n $v->imagem = $path;\n $v->update($request->all());\n return redirect()->action('VolumeController@index', ['id' => $v->id_colecao]);\n }", "title": "" }, { "docid": "c0e7f9346f3ee0689ec8d7ff708a7de2", "score": "0.5470321", "text": "public function update(Request $request, $id)\n {\n $fullPathName=\"\";\n if($request->has('img')){ \n $fullPathName = $request->file('img')->getClientOriginalName();\n $imagename = $request->file('img');\n $path = public_path(('front/images/sliders/').$imagename->getClientOriginalName());\n $image = Image::make($request->file('img'))->resize(300, 200)->save($path);\n }\n Slider::find($id)->update(\n [\n 'img'=>$fullPathName\n ]);\n \n return redirect()->route('sliders.index')->with('message', 'Data Updated');\n }", "title": "" }, { "docid": "480b6359dcc805593929864642755b60", "score": "0.5468656", "text": "public function update($id)\n\t{\n\t\t$rules = array(\n\t\t\t'name' \t=> \t'required',\n\t\t\t'route' =>\t'required'\n\t\t\t);\n\t\t$validator = Validator::make(Input::all(), $rules);\n\n\t\tif ($validator -> fails()) {\n\t\t\treturn Redirect::to('resource/'. $id. '/edit')\n\t\t\t\t->withErrors($validator)\n\t\t\t\t->withInput(Input::all());\n\t\t}\n\t\telse{\n\t\t\t$resource = Resource::find($id);\n\t\t\t$resource->name \t= \tInput::get('name');\n\t\t\t$resource->route \t= \tInput::get('route');\n\t\t\t$resource->save();\n\n\t\t\tSession::flash('message', 'Successfully edited');\n\t\t\treturn Redirect::to('resource');\n\t\t}\n\t}", "title": "" }, { "docid": "ad38428475befeaa7bd22cc27d29dd43", "score": "0.5467444", "text": "public function update(Request $request, $id)\n {\n\n $requestData = $request->all();\n\n $resource = Resource::findOrFail($id);\n $resource->update($requestData);\n\n return redirect('resources')->with('flash_message', ' updated!');\n }", "title": "" }, { "docid": "18835ea7fdc7fdae900ff435256e6132", "score": "0.5461308", "text": "public function update(StoreUpdateProductRequest $request, $id)\n {\n if(!$product = Product::find($id))\n return redirect()->back();\n\n $data = $request->all();\n\n if($request->hasFile('image') && $request->image->isValid()) {\n\n if($product->image && Storage::exists($product->image)) {\n Storage::delete($product->image);\n //dd(Storage::exists($product->image));\n }\n\n $imagePath = $request->image->store('products');\n\n $data['image'] = $imagePath;\n }\n\n $product->update($data); //$request->all() -> pega todos os dados do formulário.\n\n return redirect()->route('teste.index');\n }", "title": "" }, { "docid": "888eacb2684deea060d74401ec576361", "score": "0.5459631", "text": "public function update($id, Request $request)\n {\n try {\n \n $data = $this->getData($request);\n \n $asset = Asset::findOrFail($id);\n $asset->update($data);\n\n return redirect()->route('assets.asset.index')\n ->with('success_message', 'Asset was successfully updated.');\n } catch (Exception $exception) {\n\n return back()->withInput()\n ->withErrors(['unexpected_error' => 'Unexpected error occurred while trying to process your request.']);\n } \n }", "title": "" }, { "docid": "c2ba1266c1f288e006d63595b8c95475", "score": "0.54551506", "text": "public function updateProductImage(Request $request,$id){\n \n // making sure that an image is uploaded, validating the incoming request\n Validator::make($request->all(),['image' => \"required|file|image|mimes:jpg,png,jpeg|max:5000000\"])->validate();\n\n //Checking if the file exists in the public storage folder\n if($request->hasFile('image')){\n $product = Product::find($id);\n $exists = Storage::disk('local')->exists(\"public/products_images/\".$product->image);\n\n //deleting the old image\n if($exists){\n Storage::delete('public/product_images/'.$product->image);\n }\n\n //uploading a new image\n $ext = $request->file('image')->getClientOriginalExtension(); //getting the image extensions\n\n $request->image->storeAs(\"public/product_images/\",$product->image); //storing the new image in the product_image folder\n\n $arrayToUpdate = array(\"image\" => $product->image);\n DB::table('products')->where('id',$id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayProducts\"); \n\n }else {\n \n $error = \"No image was selected\";\n return $error;\n \n }\n\n }", "title": "" }, { "docid": "36282285831dc6d68f5e70b518199798", "score": "0.54545444", "text": "public function indexResource(Resource $resource)\n {\n $this->addResource($resource);\n $this->commit();\n }", "title": "" }, { "docid": "a0e8039ee0fc1bca4aff88fac58bcb5d", "score": "0.5451169", "text": "public function update(Request $request, Product $product)\n {\n Storage::disk('public')->delete($product->image->path);\n $product->name = $request->name;\n $product->value = $request->value;\n $product->save();\n Image::where('id', $product->image->id)->update(['path' => $request->file('image')->store('product')]);\n return redirect()->route('products.index');\n }", "title": "" }, { "docid": "1cf069cc7d44d8c46dceb5aa2f934b84", "score": "0.5448955", "text": "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 }", "title": "" }, { "docid": "d7171e526ed9dfefe282174959b684f8", "score": "0.5434525", "text": "public function replace($id, $uploaded_file, $disk ='public'){\n $file = \\App\\File::findOrFail($id);\n //Replace on disk\n \\Illuminate\\Support\\Facades\\Storage::disk($disk)->delete($file->filename);\n\n $pathinfo = pathinfo($file->filename);\n $filename = $this->putAs(\n $uploaded_file ,\n $pathinfo['dirname'], \n $pathinfo['filename'], \n $disk,\n false);\n\n //Update on DB\n $this->updateOndb($file,$uploaded_file, $filename);\n }", "title": "" }, { "docid": "4d4572c7b46a11dd63d3345d70b2c678", "score": "0.54325026", "text": "public function update($id)\n {\n $rules = [\n 'name' => 'required|string|max:100'\n ,'description' => 'required|string'\n ,'price' => 'required|numeric|min:0|max:9999999.99'\n ,'image' => 'image|max:1024'\n ,'stock_number' => 'required|alpha_num|size:10'\n ,'available' => 'in:1'\n ];\n\n $validator = Validator::make(Input::all(), $rules);\n\n if($validator->passes())\n {\n $product = Product::find($id);\n\n if(!isset($product)){\n return Redirect::route('admin.home');\n }\n\n if(Input::hasFile('image'))\n {\n $file = public_path().$product->image;\n \n if(File::exists($file)) {\n File::delete($file);\n }\n\n $image = Input::file('image');\n $fileLocation = public_path().'/images/';\n $fileName = uniqid().'.'.$image->getClientOriginalExtension();\n $image->move($fileLocation, $fileName);\n\n $product->image = '/images/'.$fileName;\n }\n\n $product->name = Input::get('name');\n $product->description = Input::get('description');\n $product->price = Input::get('price');\n $product->stock_number = Input::get('stock_number');\n $product->available = Input::get('available', false);\n\n $product->save();\n\n return Redirect::route('admin.product.edit', $id)\n ->with('data', ['alert'=>'Product saved', 'alertType'=>'success']);\n }\n\n return Redirect::route('admin.product.edit', [$id])->withInput()->withErrors($validator);\n }", "title": "" }, { "docid": "ea8973d39e59e8f1c11bb3b1309f8968", "score": "0.54281324", "text": "public function update(RecordInterface $entity);", "title": "" }, { "docid": "f240996101fd1f576310adca24306421", "score": "0.5427304", "text": "public function update(Request $request, $id)\n {\n $product = Product::findOrFail($id);\n $product->name = $request->name;\n $product->airport_id = $request->airport;\n $product->service_id = $request->service;\n $product->product_code = $request->code;\n $product->sell_as_agent = $request->sell_as_agent == 'on' ? 1 : 0;\n $product->is_amendable = $request->is_amendable == 'on' ? 1 : 0;\n $product->is_refundable = $request->is_refundable == 'on' ? 1 : 0;\n\n if($request->file('photo')){\n $path = $this->save_image($request->file('photo'));\n $product->image = $path; \n }else{\n $path = $product->image;\n }\n\n $product->save();\n return response()->json(['message' => 'Product Saved', 'image_url' => $path, 'product_id' => $product->id]);\n }", "title": "" }, { "docid": "5487655f93ce1538067ec32ea1bba609", "score": "0.54081273", "text": "public function update(MetaResource $meta): bool\n {\n $this->checkReadOnly($meta->getKind());\n $response = $this->connector->put($this->getZonePath('/metadata/'.$meta->getKind()), new MetaTransformer($meta));\n\n // If the response is empty, everything is fine.\n return empty($response);\n }", "title": "" }, { "docid": "7b0a591f560c7cc51ca21361b8ff2d2f", "score": "0.54073846", "text": "public function update(Request $request, $id)\n {\n $data = Product::findOrFail($id);\n $data->id_jenis_product = $request->jenis;\n $data->name = $request->name;\n $data->low_name = strtolower($request->name);\n $data->unit = $request->unit;\n $data->price = $request->price;\n $data->stock = $request->stock;\n $data->status = $request->status;\n $data->promo = $request->promo;\n $data->size = $request->size;\n $data->detail = $request->detail;\n\n if ($request->hasFile('picture')) {\n $uploadedFile = $request->file('picture');\n $file_up = $uploadedFile->store('public/product');\n $data->picture = \\Storage::url($file_up);\n\n $picture = ProductPicture::where('id_product', $id)->where('status', 1)->first();\n if (!empty($picture)) {\n $picture->status = 1;\n $picture->id_product = $data->id;\n $picture->picture = \\Storage::url($file_up);\n $product->save();\n }\n }\n\n $data->save();\n\n Session::flash('success', 'Product berhasil di Update');\n return redirect()->back();\n }", "title": "" }, { "docid": "1a6a6b40dbea5cb9d0dbea3f140da229", "score": "0.5407359", "text": "public function update(Request $request, $id)\n {\n $validate=$request->validate([\n 'name'=>'required',\n 'description'=>'required'\n\n ]);\n $food=Food::find($id);\n $photo=$food->photo;\n if($request->file('photo')){\n $photo=$request->file('photo')->store('public/food');\n \\Storage::delete($food->photo);\n \n \n }\n $food->name=$request->name;\n $food->description=$request->description;\n $food->photo=$photo;\n $food->price=$request->price;\n $food->update();\n notify()->success('food Update Successfully!');\n return redirect('/food');\n }", "title": "" }, { "docid": "191adb1d2c401c83f13bd2f62285fdb5", "score": "0.5405329", "text": "public function Update($entity);", "title": "" }, { "docid": "b59a7203e329b5f41bb8bd3bec985c97", "score": "0.5403812", "text": "public function update(Request $request, $id)\n {\n $product = Product::findOrFail($id);\n $this->validate($request,[\n 'name' => 'required',\n 'quantity' => 'required',\n 'rate' => 'required',\n 'brands' => 'required',\n 'categories' => 'required',\n 'status' => 'required',\n 'image' => 'mimes:jpeg,jpg,bmp,png'\n ]);\n\n $image = $request->file('image');\n $slug = str_slug($request->name);\n\n\n if (isset($image)) {\n $currentDate = Carbon::now()->toDateString();\n $imagename = $slug .'-'. $currentDate .'-'. uniqid() .'.'. $image->getClientOriginalExtension();\n \n if (!file_exists('public/product')) {\n mkdir('public/product', 0777, true);\n }\n if (file_exists('public/product/'.$product->image)) {\n unlink('public/product/'.$product->image);\n }\n \n $image->move('public/product',$imagename);\n }else{\n $imagename = $product->image;\n }\n \n $product->name = $request->name;\n $product->quantity = $request->quantity;\n $product->rate = $request->rate;\n $product->status = $request->status;\n $product->image = $imagename;\n\n $product->save();\n\n $product->brands()->sync($request->brands);\n $product->categories()->sync($request->categories);\n\n Toastr::success('Product Successfully Saved :)' ,'Success');\n return redirect()->route('products.index');\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5403173", "text": "public function update($id)\n {\n \n }", "title": "" } ]
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "fa94aa639a4f5f9835342a361e4e1fed", "score": "0.0", "text": "public function update(UpdateUser $request, User $user)\n {\n $user->update($request->except('password'));\n if ($password = $request->input('password')) {\n $user->password = Hash::make($password);\n }\n\n return new UserResource($user);\n }", "title": "" } ]
[ { "docid": "b253a586f54d8fcd444353d114e8da96", "score": "0.76002145", "text": "public function update(IResource $resource)\r\n {\r\n }", "title": "" }, { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.70558053", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.70558053", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e4f40e3038a0bbe2516116b595f30a89", "score": "0.6757658", "text": "public function PUT($resource = null) {\r\n if ($resource === null || !($resource instanceof Resource)) {\r\n return null;\r\n }\r\n $already_cached = $this->isCached($resource->getURI());\r\n // set ID\r\n $this->setURI($resource->getURI());\r\n // read\r\n if ($this->isCached($resource->getURI())) {\r\n $this->GET();\r\n }\r\n // set properties\r\n $this->version = $this->version + 1;\r\n $this->modified = microtime(true);\r\n $this->resource = $resource;\r\n $this->resource_type = get_class($resource);\r\n // update/create\r\n if ($already_cached) {\r\n $this->bind($this->getStorage()->update($this, $this->getURI()));\r\n } else {\r\n $this->bind($this->getStorage()->create($this, $this->getURI()));\r\n }\r\n // mark changed\r\n $this->changed();\r\n // return\r\n return $this->resource;\r\n }", "title": "" }, { "docid": "af0e53c810a141c868f509b2eca6ad23", "score": "0.6743531", "text": "public function updateResource(AbstractHeidelpayResource $resource): AbstractHeidelpayResource\n {\n $method = HttpAdapterInterface::REQUEST_PUT;\n $response = $this->send($resource, $method);\n\n $isError = isset($response->isError) && $response->isError;\n if ($isError) {\n return $resource;\n }\n\n $resource->handleResponse($response, $method);\n return $resource;\n }", "title": "" }, { "docid": "9901ee04c4556a77d0429d850748027c", "score": "0.6518833", "text": "public function updateFromResource(\n $resource,\n $entity\n );", "title": "" }, { "docid": "cd4cefef6a02422061b8e2fdc23cf805", "score": "0.642772", "text": "public function updateResource($path) {\n return $this->makeResource($path, HTTPRequest::PUT);\n }", "title": "" }, { "docid": "f77e0fca5e412969e5d9a60f3c165b4e", "score": "0.6323831", "text": "public function update(Request $request, Resource $resource)\n {\n $resource->title = $request->title;\n $resource->question = $request->question;\n $resource->user = $request->user()->associate(User::findOrFail($request->user_id));\n }", "title": "" }, { "docid": "6d27a80a2106069e33922d96d66fcde8", "score": "0.63188976", "text": "public function update(Request $request, Resource $resource)\n {\n\n\n if ($request->file('img') != null) {\n Storage::delete($resource->img);\n $resource->img = $request->file('img')->store('public/media');\n }\n\n try{\n $resource->name = $request->input('name');\n $resource->price = $request->input('price');\n $resource->description = $request->input('description');\n $resource->resource_code = $request->input('code');\n\n if ($request->input('addresource') != 0 ){\n $resource->quantity = $request->input('quantity') + $request->input('addresource');\n } else {\n $resource->quantity = $request->input('quantity');\n }\n\n $resource->save();\n return redirect(route('resource.index'))->with('message', 'Componente Aggiornato Con Successo!');\n }\n catch (Exception $e){\n $message = explode(' ', $e->getMessage());\n $dbCode = rtrim($message[4], ']');\n $dbCode = trim($dbCode, '[');\n\n switch($dbCode){\n case 1062:\n $error = 'Codice Componente Duplicato ';\n break;\n case 2002:\n $error = 'Impossibile Connettersi Al Server MySql';\n break;\n case 2003:\n $error = 'Impossibile Connettersi Al Server MySql';\n break;\n default:\n $error = $e;\n break;\n }\n\n\n return redirect(route('resource.index'))->with('error', $error);\n }\n\n\n\n }", "title": "" }, { "docid": "bf67dca88299af3aa93875dea0131d6c", "score": "0.62461627", "text": "public function update(ResourceUpdateRequest $request, Resource $resource): RedirectResponse\n {\n $input = $request->validated();\n $input['is_facility'] = $request->has('is_facility');\n\n $resource->update($input);\n $resource->categories()->sync($request->get('categories'));\n $resource->groups()->sync($request->get('groups'));\n\n laraflash()\n ->message()\n ->title('Resource was updated')\n ->content('Resource was updated successfully.')\n ->success();\n\n return redirect()->route('resources.index');\n }", "title": "" }, { "docid": "0c0b4b27f6984eb668efd2e9b636202f", "score": "0.61261433", "text": "public function update($id, Request $request)\n\t{\n\t\t//$this->validate($request, ['name' => 'required']); // Uncomment and modify if needed.\n\t\t$resource = Resource::findOrFail($id);\n\n \t\t/*if($request->has('')){\n \t$resource->=1;\n }\n else{\n \t$resource->=0;\n }\n*/\n \t\t\n \t\t$resource->update($request->except(''));\n\t\treturn redirect('admin/resources')->with('success', Lang::get('message.success.update'));\n\t}", "title": "" }, { "docid": "9b0e60b6f7646914f2d5fb4d66277596", "score": "0.6066986", "text": "public function updateStorage($nid, $bundle, $vid, $profile_id);", "title": "" }, { "docid": "d841657bead79fe39d3503705f5c4087", "score": "0.60630876", "text": "public function update() {\n\t\ttry {\n\t\t\t$this->validateUpdate();\n\n\t\t\t$isParentWritable = false;\n\t\t\tif ($this->parentId) {\n\t\t\t\ttry {\n\t\t\t\t\t$this->context->checkPermission(\n\t\t\t\t\t\t\\Scrivo\\AccessController::WRITE_ACCESS,\n\t\t\t\t\t\t$this->parentId);\n\t\t\t\t\t$isParentWritable = true;\n\t\t\t\t} catch (\\Scrivo\\ApplicationException $e) {}\n\t\t\t}\n\n\t\t\t$sth = $this->context->connection->prepare(\n\t\t\t\t\"UPDATE asset SET\n\t\t\t\t\tparent_id = :parentId, type = 1, size = :size,\n\t\t\t\t\tdate_online = :dateOnline, date_offline = :dateOffline,\n\t\t\t\t\tdate_modified = now(), title = :title, location = :location,\n\t\t\t\t\tmime_type = :mimeType\n\t\t\t\tWHERE instance_id = :instId AND asset_id = :id\");\n\n\t\t\t$this->context->connection->bindInstance($sth);\n\t\t\t$sth->bindValue(\":id\", $this->id, \\PDO::PARAM_INT);\n\n\t\t\t$sth->bindValue(\":parentId\", $this->parentId, \\PDO::PARAM_INT);\n\t\t\t$sth->bindValue(\":size\", $this->size, \\PDO::PARAM_INT);\n\t\t\t$sth->bindValue(\":dateOnline\",\n\t\t\t\t$this->dateOnline->format(\"Y-m-d H:i:s\"), \\PDO::PARAM_STR);\n\t\t\t$sth->bindValue(\":dateOffline\", $this->dateOffline\n\t\t\t\t? $this->dateOffline->format(\"Y-m-d H:i:s\")\n\t\t\t\t: null, \\PDO::PARAM_STR);\n\t\t\t$sth->bindValue(\":title\", $this->title, \\PDO::PARAM_STR);\n\t\t\t$sth->bindValue(\":location\", $this->location, \\PDO::PARAM_STR);\n\t\t\t$sth->bindValue(\":mimeType\", $this->mimeType, \\PDO::PARAM_STR);\n\n\t\t\t$sth->execute();\n\n\t\t\tunset($this->context->cache[$this->id]);\n\t\t\tunset($this->context->cache[$this->parentId]);\n\n\t\t} catch(\\PDOException $e) {\n\t\t\tthrow new \\Scrivo\\ResourceException($e);\n\t\t}\n\t}", "title": "" }, { "docid": "1353d923d0fcfd0113977041bf74d05f", "score": "0.6000983", "text": "function update($id, $name)\n {\n $data = array(\n 'RESOURCE' => $name\n );\n return $this->db->update('resources', $data, array('ID' => $id));\n }", "title": "" }, { "docid": "af225e219a46339f3a9ee2689837d399", "score": "0.5993225", "text": "public function updateStorage($nid);", "title": "" }, { "docid": "d5cbb3a27c8468dc9640e48a0df53162", "score": "0.5968083", "text": "public function refresh($resource);", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5890722", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "dcfead633b02d4f78a929c5d2ae54c9f", "score": "0.5879812", "text": "public function update($id)\n {\n $name = Input::get('name');\n if ($id and $name) {\n $storage = PhoneStorage::find($id);\n if ($storage) {\n $storage->name = $name;\n if ($storage->save()) {\n return redirect('admin/sku/storage/show');\n }\n }\n }\n return redirect()->back();\n }", "title": "" }, { "docid": "29902bb4a9714a42f12eb5c45ea89ba9", "score": "0.58743304", "text": "public function update(Request $request, $id)\n {\n $request_data = $request ->all();\n if ($request->hasfile('img')) {\n $old_img = Product::find($id)->img;\n\n Storage::disk('public')->delete($old_img);\n $path = $request->file('img') ->store('','public');\n $request_data['img'] = $path;\n }\n Product::find($id) ->update($request_data);\n return redirect('/product_manager/products/');\n }", "title": "" }, { "docid": "f426c6b2b02fdbb52ed2455f38355540", "score": "0.58324945", "text": "public function update($object, Response $response) {}", "title": "" }, { "docid": "9b56bc7994357f250ca341a17f3d507e", "score": "0.5832236", "text": "public function updateStream($path, $resource, Config $config)\n {\n // TODO: Implement updateStream() method.\n }", "title": "" }, { "docid": "bf76975e3712725cb52495c5847b54b8", "score": "0.5827159", "text": "public function update(Request $request, $slug)\n {\n try{\n $obj = Obj::where('slug',$slug)->first();\n\n /* delete file request */\n if($request->get('deletefile')){\n\n if(Storage::disk('public')->exists($obj->image)){\n Storage::disk('public')->delete($obj->image);\n }\n redirect()->route($this->module.'.show',[$slug]);\n }\n\n $this->authorize('update', $obj);\n /* If image is given upload and store path */\n if(isset($request->all()['file_'])){\n $file = $request->all()['file_'];\n $filename = $request->get('slug').'.'.$file->getClientOriginalExtension();\n $path = Storage::disk('public')->putFileAs('company', $request->file('file_'),$filename);\n $request->merge(['image' => $path]);\n }\n\n \n\n $obj->update($request->except(['file_'])); \n\n $sizes = [300,600,900];\n foreach($sizes as $s)\n image_resize($obj->image,$s);\n\n /* update cache file of this product */\n $filename = $obj->slug.'.json';\n $filepath = $this->cache_path.$filename;\n file_put_contents($filepath, json_encode($obj,JSON_PRETTY_PRINT));\n\n /* update in cache folder main file */\n $filename = 'index.'.$this->app.'.'.$this->module.'.json';\n $filepath = $this->cache_path.$filename;\n $objs = $obj->orderBy('created_at','desc')\n ->get(); \n file_put_contents($filepath, json_encode($objs,JSON_PRETTY_PRINT));\n \n\n flash('('.$this->app.'/'.$this->module.') item is updated!')->success();\n return redirect()->route('page',$slug);\n }\n catch (QueryException $e){\n $error_code = $e->errorInfo[1];\n if($error_code == 1062){\n flash('Some error in updating the record')->error();\n return redirect()->back()->withInput();\n }\n }\n }", "title": "" }, { "docid": "bb41fea0d7e3820af9d350e035befccd", "score": "0.582132", "text": "public function update($resource, array $values, array $conditions);", "title": "" }, { "docid": "2f3851fd0b5ba0a397a32a1d8eba656a", "score": "0.5812446", "text": "public function update(Request $request, $id)\n {\n $accessLevel = $request->user()->hasAccessTo('resource', 'edit', 0);\n if ($accessLevel < 1) {\n throw new AccessDeniedHttpException('You don\\'t have permission to access this page');\n }\n\n $this->validate($request, []);\n\n $resource = resource::where('organization_id', $request->user()->organization_id)->where('resource_id', $id)->first();\n if (is_null($resource)) {\n return 'No such resource';\n }\n\n $resource->name = $request->name;\n $resource->amount = $request->amount;\n $resource->description = $request->description;\n $resource->organization_id = $request->user()->organization_id;\n\n $resource->save();\n\n Session::flash('success', 'Новый ресурс успешно сохранен!');\n\n return redirect()->route('resource.show', $resource->storage_id);\n }", "title": "" }, { "docid": "9e790706f8baf53a6ef7115ea3fe6310", "score": "0.5789587", "text": "public function updateStream($path, $resource, Config $config){\n\t\treturn $this->writeStream($path, $resource, $config);\n\t}", "title": "" }, { "docid": "80c3484093dcbc8bd47dc3e4e04d9033", "score": "0.57762426", "text": "public function update(Request $request, $id)\n {\n $product = Product::findOrFail($id);\n\n $request->validate([\n 'price' => 'numeric',\n 'stock' => 'nullable|integer|min:0'\n ]);\n\n $product->name = $request->name;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n $product->save();\n\n return new ProductResource($product);\n }", "title": "" }, { "docid": "e0ff4c1cfc6836b51bae3fbbba8ef3aa", "score": "0.57603025", "text": "public function update(int $id, array $parameters): Disk;", "title": "" }, { "docid": "3b6c3aaa23b4fb918ebc093545c13dc6", "score": "0.57525045", "text": "public function update($entity);", "title": "" }, { "docid": "3b6c3aaa23b4fb918ebc093545c13dc6", "score": "0.57525045", "text": "public function update($entity);", "title": "" }, { "docid": "3b6c3aaa23b4fb918ebc093545c13dc6", "score": "0.57525045", "text": "public function update($entity);", "title": "" }, { "docid": "eaf18f66946228a152f8b83c6b49e31e", "score": "0.5747208", "text": "public function update($id, $data) {}", "title": "" }, { "docid": "c237902cc83db4968a50dc1c6f5d8365", "score": "0.57336116", "text": "public function update(Storage $storage)\n {\n $data = request()->validate([\n 'name' => 'required|min:3',\n 'local' => 'required|min:3',\n ]);\n\n $storage->update($data);\n\n return back()->with('status', 'Estoque Alterado com sucesso!');\n }", "title": "" }, { "docid": "4833158a02d90c87e3c27432dd93c80b", "score": "0.57304865", "text": "public function update($id)\n {\n //Get Input\n $input = Input::all();\n\n if ($this->photo->isValid($input)) {\n $mime = $input['file']->getMimeType();\n $fileName = time() . \".\" . strtolower($input['file']->getClientOriginalExtension());\n\n $photo = Photo::find($id);\n $photo->title = Input::get('title');\n\n //Delete Old from Bucket\n $s3 = AWS::get('s3');\n $s3->deleteObject(array('Bucket' => 'anglyeds','Key' => \"resource/{$photo->file}\"));\n $s3->deleteObject(array('Bucket' => 'anglyeds','Key' => \"resource/{$photo->file}\"));\n\n //Upload new files\n $image = Image::make($input['file']->getRealPath());\n $this->upload_s3($image, $fileName, $mime, \"resource\");\n $image->resize(400, 300);\n $this->upload_s3($image, $fileName, $mime, \"resource\");\n\n $photo->file = $fileName;\n $photo->save();\n\n return Redirect::route('photo.index');\n } else {\n Session::flash('error', 'Se ha producido un error al editar la imagen');\n return Redirect::back()->withInput()->withErrors($this->photo->messages);\n }\n }", "title": "" }, { "docid": "992bd9bfc3103db43dbbe54ae361cb84", "score": "0.5727633", "text": "function item_put()\n {\n $key = $this->get('id');\n $record = array_merge(array('id' => $key), $this->_put_args);\n $this->inventories->update($record);\n $this->response(array('ok'), 200);\n }", "title": "" }, { "docid": "55142d8fdc217df83e69b5aed38a2b33", "score": "0.5727569", "text": "public function save(ResourceInterface $resource): void;", "title": "" }, { "docid": "8c02cbf8969d18f12686c5d54fa56b63", "score": "0.57223403", "text": "public function POST($resource) {\r\n if ($resource === null || !($resource instanceof Resource)) {\r\n throw new Error('No resource given to update', 400);\r\n }\r\n // set ID\r\n $this->setURI($resource->getURI());\r\n // set properties\r\n $this->version = 1;\r\n $this->modified = microtime(true);\r\n $this->resource = $resource;\r\n $this->resource_type = get_class($resource);\r\n // create\r\n $id = $this->getStorage()->create($this, $this->getURI());\r\n // mark changed\r\n $this->changed();\r\n // return\r\n return $id;\r\n }", "title": "" }, { "docid": "a0fc094a7f5473b79a41c9c40db99e36", "score": "0.5718959", "text": "private function put()\n {\n $response = $this->client->put(\n $this->resource . '/' . $this->resourceId,\n ['json' => $this->payload]\n );\n $this->response = json_decode($response->getBody()->getContents(), true);\n }", "title": "" }, { "docid": "7b8b98368c0360d1cb78858a1ff8292d", "score": "0.5718498", "text": "public function put($path, $data);", "title": "" }, { "docid": "cbf8435986892ace3d4dbcfbf62f6804", "score": "0.5714311", "text": "public function isUpdateResource();", "title": "" }, { "docid": "3bf886fc4d65fbf4193a0c7a70e3d27b", "score": "0.5710541", "text": "public function update( $resourcePath, Array $body = array() ) {\n\t\treturn $this->callResource( 'put', $resourcePath, array( 'body' => $body ) );\n\t}", "title": "" }, { "docid": "b4fb8c5371252f73bdae53fec248b16b", "score": "0.57056284", "text": "public function updateProduct(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->price = $request->input('price');\n\n if ($request->has('primary_img')) {\n $extension = $request->file('primary_img')->getClientOriginalExtension();\n $path = $request->file('primary_img')->storeAs('/product_img', uniqid() . \".\" . $extension, 'public');\n $product->primary_img = $path;\n } else {\n $product->primary_img = $product->primary_img;\n }\n $product->save();\n\n return redirect('/productos');\n }", "title": "" }, { "docid": "1042199aefe1809b61c91a4de6229983", "score": "0.56951517", "text": "public function put($resource, $data, array $headers = array(), $json = true)\n {\n return $this->sendRequest($resource, 'PUT', $data, $headers, $json);\n }", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5675671", "text": "public function update($data);", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5675671", "text": "public function update($data);", "title": "" }, { "docid": "38f04b68f8f45d3d25cd6544a96ec0f3", "score": "0.56726104", "text": "public function update(RestRequestInterface $request, string $identifier);", "title": "" }, { "docid": "f5de51ce0ea61490afec8e0f53576129", "score": "0.5672095", "text": "public function update($id, Request $request)\n {\n $imgID = Album::find($id);\n $edit = Photo::find($imgID->photo_id);\n Storage::disk('public')->delete('img/'.$edit->url);\n $request->file('url')->storePublicly('img/', 'public');\n $edit->url = $request->file('url')->hashName();\n $edit->save();\n return redirect()->back();\n }", "title": "" }, { "docid": "5714eda4d057b7b9776c292a2e47264d", "score": "0.56627923", "text": "public function update(Request $request, $id)\n {\n request()->validate([\n \"url\" => ['image','mimes:jpeg,png,jpg,gif,svg','max:2048']\n ]);\n\n $request->file('url')->storePublicly('img/','public');\n\n $updatePhoto = Photo::find($id);\n\n Storage::delete('public/img'.$updatePhoto->url);\n $updatePhoto->url = $request->file('url')->hashName();\n Storage::put('public/img', $request->file('url'));\n $updatePhoto->save();\n\n\n\n return redirect('/');\n }", "title": "" }, { "docid": "d45e1f57150d79cb0312c16b4b049e4f", "score": "0.5658075", "text": "public function update($id, Request $request)\n {\n $product = Product::find($id);\n $product->name= $request->input('name');\n $product->productID= $request->input('productID');\n $product->categoryID= $request->input('categoryID');\n $product->price= $request->input('price');\n $product->description= $request->input('description');\n $product->availability= $request->input('availability');\n\n $image = $request->file('image');\n $imageName = $image->getClientOriginalName();\n $image->move(\"storage/\", $imageName);\n $product->image = $request->root().\"/public/storage\".$imageName;\n\n $product->save();\n\n return Response::json(['success'=> \"Here you are!\"]);\n }", "title": "" }, { "docid": "ab66e621ecfde5ba3711ea79b9268701", "score": "0.563982", "text": "public function update(Request $request, $id)\n {\n $data = Product::find($id);\n $data->name = $request->name;\n $data->color = $request->color;\n $data->price = $request->price;\n $data->qty = $request->qty;\n if (empty($request->image)) {\n $data->image = $data->image;\n } else if (!empty($request->image)) {\n if ($data->image && file_exists(storage_path('app/public/' . $data->image))) {\n Storage::delete('public/' . $data->image);\n }\n $image_name = $request->file('image')->store('images', 'public');\n $data->image = $image_name;\n }\n $data->save();\n return redirect()->route('items')\n ->with('success', 'Item updated successfully');\n }", "title": "" }, { "docid": "d2036238965929966e0135348b9517ff", "score": "0.5609874", "text": "public function update(Request $request, $id)\n {\n $product = Products::find($id);\n $product->title = request('title');\n $product->category = request('category');\n $product->description = request('description');\n $product->brand = request('brand');\n $product->price = request('price');\n $product->file = request('file');\n $my_hot_value = $request['hot'];\n if($my_hot_value === 'yes')\n $product->hot = 1;\n else\n $product->hot = 0;\n // My checkbox slider value\n $my_slider_value = $request['slider'];\n if($my_slider_value === 'yes')\n $product->slider = 1;\n else\n $product->slider = 0;\n if($request->hasFile('file'))\n {\n $product->file->storeAs('public', $product->id);\n }\n\n $product->save();\n return redirect('admin');\n\n \n }", "title": "" }, { "docid": "05f26af1049875ba2f12ffb974cc9a64", "score": "0.5602483", "text": "public function update($Object);", "title": "" }, { "docid": "bfeea9f9948c0db1c36784d6379c7189", "score": "0.55961096", "text": "public function update(Request $request, $id)\n {\n\n $product = Product::where('id', $id)->get()->first();\n $file = $request->file('file');\n if (!$product || !$file) {\n return redirect()->back();\n }\n\n //$filename = 'SP_' . $id . '_' . strtotime(date('d-m-y h:m:s')) . '.jpg';\n $filename = 'SP_' . $id . '_' . $request['avatarNumber'] . '.jpg';\n Storage::disk('public')->put($filename, File::get($file));\n if ($request['avatarNumber'] == \"1\") {\n $product->avatar = $filename ? $filename : null;\n }\n if ($request['avatarNumber'] == \"2\") {\n $product->avatar2 = $filename ? $filename : null;\n }\n if ($request['avatarNumber'] == \"3\") {\n $product->avatar3 = $filename ? $filename : null;\n }\n $product->update();\n\n return redirect()->route('products.index')->with(['message' => 'Image uploaded!']);\n }", "title": "" }, { "docid": "025f3bc95bae47de84ce7ea5679c819d", "score": "0.5595669", "text": "public function update($id)\n\t{\n //Get Input\n $input = Input::all();\n if ($this->photo->isValid($input)) {\n $mime = $input['file']->getMimeType();\n $fileName = time() . \".\" . strtolower($input['file']->getClientOriginalExtension());\n\n $photo = Photo::find($id);\n $photo->title = Input::get('title');\n\n //Delete Old from Bucket\n $s3 = AWS::get('s3');\n $s3->deleteObject(array('Bucket' => 'images.jacksonlive.es','Key' => \"test/high/{$photo->file}\"));\n $s3->deleteObject(array('Bucket' => 'images.jacksonlive.es','Key' => \"test/low/{$photo->file}\"));\n\n //Upload new files\n $image = Image::make($input['file']->getRealPath());\n $this->upload_s3($image, $fileName, $mime, \"high\");\n $image->resize(400, 300);\n $this->upload_s3($image, $fileName, $mime, \"low\");\n\n $photo->file = $fileName;\n $photo->save();\n\n return Redirect::route('photo.index');\n } else {\n Session::flash('error', 'Se ha producido un error al editar la imagen');\n return Redirect::back()->withInput()->withErrors($this->photo->messages);\n }\n\t}", "title": "" }, { "docid": "058a35e0ac342d137897ebe02714f4f1", "score": "0.55892015", "text": "public function update($id, Request $request)\n {\n $data = $this->getData($request);\n if($request->hasFile('icon')) { \n $file = $request->file('icon');\n $photo = md5(mt_rand(0,100000000000)).'.'.$file->getClientOriginalExtension();\n $file->move(base_path().'/public/media/',$photo);\n $data['icon'] = $photo; \n }\n\n try {\n $service = Service::findOrFail($id);\n $service->update($data);\n\n return redirect()->route('services.service.index')\n ->with('success_message', 'Service was successfully updated.');\n } catch (Exception $exception) {\n\n return back()->withInput()\n ->withErrors(['unexpected_error' => 'Unexpected error occurred while trying to process your request.']);\n } \n }", "title": "" }, { "docid": "2249dc8ec122c9b1f72a6b802b92d42f", "score": "0.5585837", "text": "public function update(Request $request, string $id)\n {\n Image::destroy($id);\n Storage::disk('private')->delete(self::IMAGES_DIR_PATH.$id);\n\n return $this->store($request);\n }", "title": "" }, { "docid": "89c4a67510aadba767b3971ac6b08d35", "score": "0.5584348", "text": "public function update($record)\n\t{\n\t\t$this->rest->initialize(array('server' => REST_SERVER));\n $this->rest->option(CURLOPT_PORT, REST_PORT);\n $retrieved = $this->rest->put('/supplies', $record);\n\t}", "title": "" }, { "docid": "4016847dea9b55e59a4acd18600a30f5", "score": "0.55813426", "text": "public function update($request, $id);", "title": "" }, { "docid": "5b19d86345d122ba39068d134a83d940", "score": "0.5580762", "text": "public function update(Request $request, $id)\n {\n $data = array();\n\n $data['product_name'] = $request->product_name;\n $data['product_description'] = $request->product_description;\n $data['product_code'] = $request->product_code;\n $data['selling_price'] = $request->selling_price;\n $data['root'] = $request->root;\n $data['buying_price'] = $request->buying_price;\n $data['category_id'] = $request->category_id;\n $data['supplier_id'] = $request->supplier_id;\n $data['product_quantity'] = $request->product_quantity;\n $image = $request->newphoto;\n\n if($image){\n $position = strpos($image,';');\n\n //which index to take\n $sub = substr($image,0,$position);\n //remove slash from image link\n\n $ext = explode('/',$sub)[1];\n\n //image naming //\n\n $name = time().\".\".$ext;\n\n //image making & resizing with intervention //\n $image = Image::make($image)->resize(240,200);\n\n //upload path//\n $upload_path = 'ims/products/';\n $image_url = $upload_path.$name;\n $img = $image->save($image_url);\n\n if($img){\n $data['product_image'] = $image_url;\n $findphoto = Product::where('id',$id)->first();\n $oldImagePath = $findphoto->product_image;\n $unbind = unlink($oldImagePath);\n\n\n\n $update = Product::where('id',$id)->update($data);\n }\n }else{\n $oldPhoto = $request->photo;\n $data['product_image'] = $oldPhoto;\n $update = Product::where('id',$id)->update($data);\n }\n }", "title": "" }, { "docid": "64d7bb836b1a4ee806618910164b6428", "score": "0.55798095", "text": "public function update(Request $request, $id)\n {\n\n $request->validate([\n 'image-file' => 'image|mimes:png,jpg,jpeg,bmp,svg',\n 'id' =>'required',\n \n \n ]);\n\n $file_name = '.jpg';\n if($request->file('image-file')) {\n $img = $request->file('image-file');\n $file_ext = $img->getClientOriginalExtension();\n $file_name =$request->input('id').\".\".$file_ext;\n Storage::disk('imagesPC')->put(\n $file_name,\n file_get_contents($img->getRealPath())\n );\n }\n \n $product = Product::find($id);\n $product->update([\n 'img' => $file_name,\n 'id' => $request->input('id'),\n \n // 'status' => $request->input('status'),\n \n ]);\n\n return redirect()\n ->route('product');\n // ->with('status', 'Informacion Modificada Satisfactoriamente');\n }", "title": "" }, { "docid": "f12ebea5694f9afc42343cf99118a0d3", "score": "0.55755484", "text": "public function updateAction () {\n\t\t$this->validateHttpMethod(\"PUT\");\n\n\t\t// Expected / Allowed params.\n\t\t$expectedParams = array(\n\t\t\t\"id\"\n\t\t);\n\n\t\t// Get the expected params.\n\t\t$this->getExpectedParams($expectedParams);\n\n\t\t// Get the params.\n\t\t$params = $this->format($this->route->params);\n\n\t\t// Get the criteria (ID).\n\t\t$criteria = array(\"id\" => $params[\"id\"]);\n\n\t\t// Get the data, by removing the ID.\n\t\tunset($params[\"id\"]);\n\n\t\t// Update the attachment.\n\t\t$attachment = $this->attachmentsModel->update($params, $criteria);\n\n\t\t// Output the updated attachment.\n\t\t$this->view->json = $attachment;\n\t}", "title": "" }, { "docid": "94afefa8c113972aad0d3526b5234a55", "score": "0.5574236", "text": "public function update(Request $request, $id)\n {\n $productToUpdate = Product::find($id);\n\n \t\t$productToUpdate->name = $request->input('name');\n \t\t$productToUpdate->spec = $request->input('spec');\n \t\t$productToUpdate->varietal_id = $request->input('varietal_id');\n \t\t$productToUpdate->price = $request->input('price');\n\n \t\t// Obtengo el archivo que viene en el formulario (Objeto de Laravel) que tiene a su vez el archivo de la imagen\n \t\t$image = $request->file('image'); // El value del atributo name del input file\n\n \t\tif ($image) {\n\n $imagenFinal = uniqid(\"win_\") . \".\" . $image->extension();\n\n $image->storePubliclyAs(\"public/vinos\", $imagenFinal);\n\n $productToUpdate->image = $imagenFinal;\n \t\t}\n\n \t\t$productToUpdate->save();\n\n \t\t// Redireccionamos SIEMPRE a una RUTA\n \t\treturn redirect('/admin');\n }", "title": "" }, { "docid": "b96a752fa168940f8e9321e2329c1f2d", "score": "0.5573474", "text": "public function update(Model_has_permissionStoreRequest $request, $id)\n {\n \n$Model_has_permission=Model_has_permission::get()->where('id',$id)->first();\n if($Model_has_permission->update($request->toArray())) {\n return new Model_has_permissionResource($Model_has_permission);\n }\n }", "title": "" }, { "docid": "0b30756234d825612f1930f0d07886e9", "score": "0.557255", "text": "public function update(Request $request, $id)\n {\n $this->validate($request,[\n 'name'=>'required|unique:products,name,'.$id,\n 'description'=>'required',\n 'image'=>'image',\n 'purchase_price'=>'required',\n 'sale_price'=>'required',\n 'stock'=>'required'\n ]);\n $product=Product::findOrFail($id);\n $product->update($request->except('image'));\n if($request->image){\n if ($product->image != 'default.png'){\n Storage::disk('public_uploads')->delete('/product_images/' . $product->image);\n }\n Image::make($request->image)->resize(300, null, function ($constraint) {\n $constraint->aspectRatio();\n })->save(public_path('uploads/product_images/' . $request->image->hashName()),60);\n $product->image = $request->image->hashName();\n }\n $product->save();\n flash()->success(__('messages.Edited Successfuly'));\n return redirect(route('dashboard.products.index'));\n }", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.55661047", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "a17739672373b86b1bfc5b1c4620e617", "score": "0.55606586", "text": "public function update(Request $request, $id)\n {\n $this->validate(request(), [\n 'name' => 'required',\n 'description' => 'required',\n 'price' => 'required|numeric|min:0',\n 'amount' => 'required|integer|min:0',\n 'file' => 'image|max:2048',\n ]);\n\n try{\n $product= Product::findOrFail($id);\n\n $product->name = $request['name'];\n $product->description = $request['description'];\n $product->price = $request['price'];\n $product->amount = $request['amount'];\n\n if ($request->hasFile('file') ? true : false)\n {\n // Deleting not working\n if ($product->image_path != \"\")\n {\n $path = public_path() . '/products/' . $product->image_path;\n if(file_exists($path)) {\n unlink($path);\n }\n }\n $file = $request->file('file');\n $extension = $file->getClientOriginalExtension();\n $filename =time().'.'.$extension;\n $file->move('products/', $filename);\n\n $product->image_path = $filename;\n }\n\n $product->active = ($request['active'] ? true : false);\n\n $product->save();\n\n session()->flash('message', 'Product updated');\n return redirect('administration/products');\n }\n catch(ModelNotFoundException $err){\n //Show error page\n }\n }", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "72d4cf29d9ecee41a871927431f897ac", "score": "0.5549225", "text": "public function update($product_id, $id, Request $request) {\n $request->validate([\n 'name' => 'required',\n ]);\n\n $user = new User;\n $product = new Product;\n if ($user->storage($id)) {\n $product = $product->find($product_id);\n $product->name = $request->name;\n $product->save();\n }\n\n return redirect()->route('storage.list', $id);\n }", "title": "" }, { "docid": "a8f6fde443ffe7bf36ad99060af97a8e", "score": "0.55437666", "text": "public function update(Request $request, $id)\n {\n // dd($request);\n $complaint = Complaint::find($id);\n $complaint->fill($request->all());\n if ($request->hasFile('image')) {\n $path = $request->file('image')->store('complaint');\n $file = Storage::delete($complaint->image);\n $complaint->image = $path; \n }\n $complaint->update();\n // dd($complaint);\n return response()->json($complaint);\n }", "title": "" }, { "docid": "289387f15ea9b3c4b7c9c815400a2279", "score": "0.5543617", "text": "function put() {\n // Bypasses versioning if not applicable\n if (!$this->versioning) return parent::put();\n // Manages versioning\n $result = parent::put();\n $this->version('put', array(), $result);\n return $result;\n }", "title": "" }, { "docid": "aae45da6856538036b071d0306ddee2c", "score": "0.5542785", "text": "public function put($resource, $resourceId = null, $data = [])\n {\n $resourcePath = \"/$resource\";\n\n $resourceIdPath = (isset($resourceId)) ? \"/$resourceId\" : \"\";\n\n $relationshipsPath = \"\";\n if (isset($resource['relationship'])) {\n $relationshipsPath = \"/relationships/{$resource['relationship']}\";\n }\n\n $uri = \"{$resourcePath}{$resourceIdPath}{$relationshipsPath}\";\n $res = $this->request(\"PUT\", $uri, [], $data);\n return $res->getBody();\n }", "title": "" }, { "docid": "12e9da82b5f3a8c8188cbdeb9349fb89", "score": "0.55409086", "text": "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required|min:5|max:100',\n 'description' => 'required',\n 'price' => 'required|numeric',\n 'picture' => 'image:max:3000',\n 'status' => 'required|in:published,unpublished',\n 'sales' => 'required|in:sale,standard',\n 'reference' => 'required|alpha_num|min:16|max:16',\n 'categorie_id' => 'required|integer',\n 'sizes' => 'required'\n ]);\n\n // store the datas\n $datas = $request->all();\n\n\n // Store the image inside a folder named 'products' if the picture exist\n $file = $request->file('picture');\n if(!empty($file)){\n $file->store('products');\n $imgName = $request->picture->hashName();\n $datas['picture'] = 'products/' . $imgName; // Rewrite \"$datas['picture']\" as a path\n }\n\n\n // update the datas inside the database\n $product = Product::find($id);\n $product->update($datas);\n $product->size()->sync($request->sizes);\n\n return redirect()->route('products.index')->with('message', 'Votre produit a bien été mise à jour');\n }", "title": "" }, { "docid": "1af99b27761bbae794d8786141e7959f", "score": "0.5537572", "text": "public function update(Request $request, $id)\n {\n \n $historia = Historia::findOrFail($id);\n if($request->hasFile('imagen')){\n \n Storage::delete('public/'.$historia->imagen);\n $historia['imagen']= $request->file('imagen')->store('uploads','public');\n }\n\n $historia->descripcion = $request->descripcion;\n $historia->estado = $request->estado;\n $historia->update();\n return redirect('/historia')->with('mensaje','historia editada con éxito');\n \n }", "title": "" }, { "docid": "af8c898e1690790987dc2c3dd4f2392b", "score": "0.5537518", "text": "public function updateAction () {\n\t\t$this->validateHttpMethod(\"PUT\");\n\n\t\t// Expected / Allowed params.\n\t\t$expectedParams = array(\n\t\t\t\"id\"\n\t\t);\n\n\t\t// Get the expected params.\n\t\t$this->getExpectedParams($expectedParams);\n\n\t\t// Get the params.\n\t\t$params = $this->format($this->route->params);\n\n\t\t// Get the criteria (ID).\n\t\t$criteria = array(\"id\" => $params[\"id\"]);\n\n\t\t// Get the data, by removing the ID.\n\t\tunset($params[\"id\"]);\n\n\t\t// Update the tag.\n\t\t$tag = $this->tagsModel->update($params, $criteria);\n\n\t\t// Output the updated tag.\n\t\t$this->view->json = $tag;\n\t}", "title": "" }, { "docid": "0fa030ba99104dbf523d8f45baf06dac", "score": "0.55348396", "text": "abstract public function update($id, $object);", "title": "" }, { "docid": "f78eedb59ed2325d8a0c66b0a9d03f4e", "score": "0.552736", "text": "public function update(Request $request, $id)\n {\n $v = Validator::make($request->all(),[\n 'rak_id' => 'required|exists:raks,id',\n 'tingkat_id' => 'required|exists:tingkatan_raks,id'\n ]);\n\n if ($v->fails()) {\n return back()->withErrors($v)->withInput();\n }\n $storage = Storage::where('storage_in_kode', $id)->first();\n\n $storage->update($request->only('tingkat_id'));\n\n return redirect(route('storage.index'))->with('success', __( 'Saved!' ));\n }", "title": "" }, { "docid": "92db954df11f0863c42be0ce8c4c8b06", "score": "0.5522571", "text": "public function update(Request $request, $id)\n {\n $data=$this->validate($request,[\n 'name'=>'required|string|max:255',\n 'slug'=>'required|string|max:255|unique:products,slug,'.$id,\n 'brand'=>'required|string|max:20',\n 'image'=>'sometimes|image|mimes:jpg,jpeg,png,gif,svg',\n 'description'=>'required|string|min:100',\n 'specification'=>'required|string|min:10',\n ]);\n if($request->status=='on')\n {\n $request['status']='active';\n }\n else{\n $request['status']='pending';\n }\n $product=Product::find($id);\n $product->name=$data['name'];\n $product->slug=$data['slug'];\n $product->brand=$data['brand'];\n if($request->hasFile('image')){\n $extension=$request->image->extension();\n $img_name=$request['slug'].'.'.$extension;\n Storage::delete($product->image);\n $imagename=$request->image->storeAs('public/uploads/products',$img_name);\n $product->image=$imagename; \n }\n $product->description=$data['description'];\n $product->specification=$data['specification'];\n $product->status=$request['status'];\n $product->save();\n return redirect(route('products.index'))->with('success','Product has been updated successfully');\n }", "title": "" }, { "docid": "6efd0813cbdc295654c1e414776ed58b", "score": "0.55184317", "text": "public function update(Request $request, $id)\n {\n if(Product::find($id)){\n $save_data=$request->all();\n \n $validator = Validator::make($save_data, [\n \"name\"=>['required', 'string', 'max:255'],\n \"sku_code\"=>['required','unique:products,sku_code,'.$id],\n \"description\"=>['required', 'string'],\n \"imageviewfile\"=>['image','mimes:png,gif','max:2048']\n ]);\n\n if ($validator->fails()) {\n return response()->json([\"success\"=>false,'message'=>\"Validation fail\",'data'=>$validator->errors()], 422);\n }\n\n $update_data=[\n 'name' => $save_data['name'],\n 'sku_code' => $save_data['sku_code'],\n 'description' => $save_data['description'],\n 'update_by' =>auth('api')->user()->id\n ];\n\n if(!empty($request->file('imageviewfile'))){\n $update_data['imageviewfile'] = Storage::put('product_image',$request->file('imageviewfile'));\n }\n \n $product_data=Product::where('id',$id)->update($update_data);\n\n return response()->json([\n \"success\"=>true,\n \"message\"=>\"Product Updated\",\n \"data\"=>Product::find($id)\n ],200);\n }else{\n return response()->json([\"success\"=>false,'message'=>\"Invalid Id\",'data'=>[]], 422);\n }\n }", "title": "" }, { "docid": "3504c324cf5adb45e583c6d14200c48f", "score": "0.5516269", "text": "public function update(StoreProductRequest $request, $id)\n {\n $product = Product::find($id); // associé les fillables\n $product->sizes()->sync($request->sizes); // Synchronisation des tailles du produit\n\n $product->update($request->all());\n \n // image\n $im = $request->file('picture');\n \n // si on associe une image à un product \n if (!empty($im)) {\n $link = $request->file('picture')->store('images');\n\n if ($product->picture) {\n $product->picture()->delete();\n }\n\n // mettre à jour la table picture pour le lien vers l'image dans la base de données\n $product->picture()->create([\n 'link' => $link,\n ]);\n }\n\n return redirect()->route('product.index')->with('success', 'Le produit a été mis à jour');\n }", "title": "" }, { "docid": "7438ea17945e59af2ceb56728b438a5e", "score": "0.55092084", "text": "public function update(EntityInterface $Entity);", "title": "" }, { "docid": "265c7e4e1d9ccb8f2d919846c5c6d0e1", "score": "0.55072427", "text": "public function update($id, $input);", "title": "" }, { "docid": "0a31514680492fb282b8c54ef7d31776", "score": "0.5504863", "text": "public function update( Request $request, int $id )\n {\n $this->validate( $request, $this->fieldRequirement );\n\n $param = [\n 'name' => $request->get( 'name' ),\n 'price' => $request->get( 'price' ),\n 'category_id' => $request->get( 'category_id' ),\n 'description' => $request->get( 'description' ),\n ];\n\n $img = $request->file( 'img' );\n if ( $img && $img->isValid() ) {\n $imgName = hash_file( 'sha256', $img->getRealPath() ) . '.' . $img->getExtension();\n $img->move( public_path(), $imgName );\n $param[ 'img' ] = $imgName;\n }\n\n Product::find( $id )->update( $param );\n\n return redirect( '/' )->with( 'success', 'Edit successful' );\n }", "title": "" }, { "docid": "d879d942faec78fcdd9fe4bb72f22e68", "score": "0.5496361", "text": "public function update(StoreImageRequest $request, $id)\n {\n $this->productImageService->update($request, $id);\n return redirect('/products')->with('success','The image modifyed successfully!'); \n }", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "890dad3fdc9c25a0b27968f49ad32d24", "score": "0.5493897", "text": "public function startPut(string $resource, string $id, array $data) : string;", "title": "" }, { "docid": "360c61b32382459191d9d100527769a1", "score": "0.5488976", "text": "public function update(Request $request, $id)\n {\n\n\n $product = Product::findOrFail($id);\n\n if ($product) {\n if($request->hasFile('picture')) {\n $fileNameWithExt = $request->file('picture')->getClientOriginalName(); // Dit zet de exacte file naam in een var\n // Get just filename\n $filename = pathinfo($fileNameWithExt, PATHINFO_FILENAME); // Standaard php geen Laravel\n // Get just extension\n $extension = $request->file('picture')->getClientOriginalExtension();\n // Filename to store, alles samengevoegd in 1 var\n $fileNameToStore = $filename . '_' . time() . '.' . $extension;\n // Upload the image\n $path = $request->file('picture')->storeAs('images/', $fileNameToStore); // Save in /storage/app/public/images\n } else {\n $fileNameToStore = 'noimage.jpg';\n }\n\n\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n //$product->picture = $request->input('picture');\n $product->picture = \"/storage/images/\". $fileNameToStore; // href in view is /public/storage/images , which points to /storage/app/public/images\n $product->start_of_bid_period = $request->input('start_of_bid_period');\n $product->end_of_bid_period = $request->input('end_of_bid_period');\n $product->user_id = $request->input('user_id');\n $product->category_id = $request->input('category_id');\n }\n\n $product->save();\n\n compact('product');\n $request->session()->flash('alert-danger', 'Product was successful updated!');\n return redirect('/products');\n }", "title": "" }, { "docid": "fd6ecbbda7a15bdea01c7a62e4ecff3c", "score": "0.5486526", "text": "public function updateStream($path, $resource, $config = null)\n {\n $location = $this->applyPathPrefix($path);\n $result = $this->client->uploadFromStream($location, $resource);\n\n return $this->normalizeObject($result, $path);\n }", "title": "" }, { "docid": "51721799def9f75202fd763a50f731ba", "score": "0.5486384", "text": "public function update()\n {\n $tripod = $this->getTripod();\n if(isset($this->stat))\n {\n $tripod->setStat($this->stat);\n }\n $tripod->getComposite($this->operation)->update($this);\n }", "title": "" }, { "docid": "ac2354d8104b57ec9aec77b78215ec62", "score": "0.548305", "text": "public function update(Request $request, $id)\n {\n try {\n $result = $this->model->find($id);\n\n if ($result) {\n $inputs = $request->except('_token');\n\n if ($request->hasFile('icon')) {\n $fileName = time() . '.' . $request->icon->getClientOriginalExtension();\n $file = $request->file('icon');\n\n Storage::put($this->iconStoragePath . $fileName, file_get_contents($file), 'public');\n\n $inputs['icon'] = $fileName;\n\n if (isset($result->icon) && $result->icon) {\n if (Storage::exists($this->iconStoragePath . $result->icon)) {\n Storage::delete($this->iconStoragePath . $result->icon);\n }\n }\n }\n\n $isSaved = $result->update($inputs);\n\n if ($isSaved) {\n return redirect($this->moduleRoute)->with(\"success\", __($this->moduleName . \" updated!\"));\n }\n }\n return redirect($this->moduleRoute)->with(\"error\", __(\"Something went wrong, please try again later.\"));\n } catch (\\Exception $e) {\n return redirect($this->moduleRoute)->with('error', $e->getMessage());\n }\n }", "title": "" }, { "docid": "a246c7bce0b05275faa44d910c6a4ba0", "score": "0.5482692", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $stock = $product->stock;\n \n $this->validate($request,[\n 'name' => 'required|max:100',\n 'price' => 'required|numeric',\n 'cost' => 'required|numeric',\n 'stock' => 'required|numeric'\n ]);\n \n $product->name = $request->name;\n $product->price = $request->price;\n $product->cost = $request->cost;\n $stock->quantity = $request->stock;\n\n $product->save();\n $stock->save();\n\n return redirect()->back();\n }", "title": "" }, { "docid": "ef8052b00b5f9454ac32e1d5673258e4", "score": "0.54818344", "text": "public function update(Request $request, $id)\n {\n $product = Products::find($id);\n $requestData = $request->all();\n\n //判斷 是否有上傳圖片\n if($request->hasFile('product_image')) {\n //刪除舊有圖片\n $old_image = $product->product_image;\n File::delete(public_path().$old_image);\n\n //上傳新的圖片\n $file = $request->file('product_image');\n $path = $this->fileUpload($file,'product');\n\n //將新圖片的路徑,放入requestData中\n $requestData['product_image'] = $path;\n }\n\n $product->update($requestData);\n\n return redirect('/admin/product');\n }", "title": "" }, { "docid": "19869a7846a6aa9929efa8fd6945374d", "score": "0.5472727", "text": "public function update(Request $request, $id)\n { \n $path_name = '';\n if ($request->hasFile('thumb')) {\n $file = $request->thumb;\n $name = time() . $file->getClientOriginalName();\n $file_path = $request->file('thumb')->move('uploads/', $name);\n $path_name = $file_path->getPathname();\n }\n $data = [\n 'name' => $request->name,\n 'des' => $request->des,\n 'price' => $request->price,\n 'discount' => $request->discount,\n 'qty' => $request->qty,\n 'category_id' => $request->category_id,\n 'thumb' => $path_name ?? ''\n ];\n return $this->productRepo->update($id, $data);\n }", "title": "" }, { "docid": "adf4dc960b0f2ee354f5339e80bdc964", "score": "0.54717267", "text": "public function updateStream($path, $resource, array $config = [])\n {\n return $this->fileSystem->updateStream($path, $resource, $config);\n }", "title": "" }, { "docid": "d1f8487ee1e40873ff5630de6641484f", "score": "0.546559", "text": "public function update(Request $request, $id)\n {\n $request->validate([\n 'bland' => 'required|max:100',\n 'type' => 'nullable|max:100',\n 'area' => 'nullable|max:100',\n 'alcohol_content' => 'nullable|max:100',\n 'distillery' => 'nullable|max:100',\n 'memo' => 'nullable|max:500',\n 'image' => 'file|image|mimes:jpeg,png',\n ]);\n \n $item = Item::findOrFail($id);\n \n $item->bland = $request->bland;\n $item->type = $request->type;\n $item->area = $request->area;\n $item->alcohol_content = $request->alcohol_content;\n $item->distillery = $request->distillery;\n $item->memo = $request->memo;\n \n $item->user_id = $request->user()->id;\n \n if ($request->hasfile('image')) {\n $image = $request->file('image');\n $path = Storage::disk('s3')->putFile('test', $image, 'public');\n $item->image = Storage::disk('s3')->url($path);\n \n }\n $item->save();\n return redirect('');\n }", "title": "" }, { "docid": "d37d959897d637a1048c5095937ffc40", "score": "0.54649365", "text": "public function update(Request $request, $id)\n {\n $product = Product::findOrFail($id);\n $product->name = $request->name;\n $product->category_id = $request->brand;\n $image = $request->image->store('public/product');\n $product->image = $image;\n\n $image_detail = $request->image_detail->store('public/product');\n $product->imageDetail = $image_detail;\n\n $product->quantity = $request->quantity;\n $product->costPrice = $request->cost_price;\n $product->price = $request->price;\n $product->description = $request->description;\n $product->concentration = $request->concentration;\n $product->size = $request->size;\n\n $product->save();\n return redirect()->route('product.index');\n\n\n\n }", "title": "" }, { "docid": "3dfda81d3fa381cfa11d09a563d0ae01", "score": "0.546223", "text": "public function update(Request $request, Product $product)\n {\n\n // dd($request->file('imagen')->store('public'));\n $product->update(request(['codigo','nombre','stock','tipo','precio','categorias','marca']));\n return redirect('/products');\n }", "title": "" }, { "docid": "6b251af5c3f654e0524d57b218977068", "score": "0.5460091", "text": "public function update(Request $request, $id)\n {\n $p = Product::find($id);\n\n if($request->img->getClientOriginalName()){\n $ext = $request->img->getClientOriginalExtension();\n $file = date('YmdHis').'_'.rand(1,999).'.'.$ext;\n $request->img->storeAs('public/ProductImg',$file);\n }else{\n if(!$p->img)\n $file = '';\n else\n $file = $p->img;\n }\n\n $p->name = $request->name;\n $p->sub_category_id = $request->scid;\n $p->price = $request->price;\n $p->img = $file;\n $p->description = $request->description;\n $p->purl = $request->purl;\n\n // $p->sid = Auth::user()->supplier->id;\n $p->save();\n\n return redirect('dashboard/product');\n }", "title": "" }, { "docid": "a1d61f0aa122378fb9049378295f5945", "score": "0.54586715", "text": "public function update($entity)\n {\n }", "title": "" }, { "docid": "e160bd8a9f09b461b2f22f7417e53dfa", "score": "0.54570204", "text": "public function update(Request $request, $id)\n {\n\n $request->validate([\n 'public_name'=>'required',\n 'time'=>'required'\n \n ]);\n\n $data = array(\n 'public_name'=>$request->public_name,\n 'duration'=>$request->time\n );\n\n $res = Re_s3bucket::where(['etag'=>$id])->update($data);\n if($res)\n {\n return back()\n ->with('success', $request->public_name.' Has Been updated!.');\n \n \n \n }else{\n return back()\n ->with('error','Something Went Wrong!');\n }\n\n\n }", "title": "" }, { "docid": "d455ba07ce24df9d8ecac7b576a15a4a", "score": "0.54476535", "text": "public function update(Request $request, ResourceFile $resourcefile)\n {\n $validator = Validator::make($request->all(), self::RESOURCE_FILE_RULES);\n if ($validator->fails()) {\n return response()->json([\n 'error' => true,\n 'message' => $validator->messages()\n ]);\n }\n\n $oldName = $resourcefile->name;\n $resourcefile->name = $request->get(\"name\");\n $resourcefile->save();\n return response()->json([\n 'error' => false,\n 'message' => sprintf(self::UPDATE_RESOURCE_FILE, $oldName, $resourcefile->name)\n ]);\n }", "title": "" }, { "docid": "579bd0a2ccff79bfa2c9728cc98e4a35", "score": "0.54462624", "text": "public function update(UpdateAssetRequest $request, $id)\n {\n $input = $request->validated();\n \n $asset = Asset::find($id);\n if (is_null($asset)) {\n return $this->sendError('Asset not found.');\n }\n \n if ($request->picture_path) {\n \n $this->deleteOne($asset->picture_path);\n $image = $this->uploadOne($input['picture_path'], 'Assets');\n $input['picture_path'] = $image;\n }\n \n \n\n $asset->update($input);\n\n return $this->sendResponse(new AssetResource($asset), 'Asset Updated successfully.');\n }", "title": "" } ]
24b660426d7a9928085f108eedbb41fc
Handles the save event.
[ { "docid": "f8b4cd428d883118a67da513e6c48f6d", "score": "0.68769073", "text": "protected function save() {\n\t\t$this->eventObj->additionalFields = array_merge($this->eventObj->additionalFields, array(\n\t\t\t'userTitle' => $this->userTitle\n\t\t));\n\t}", "title": "" } ]
[ { "docid": "972b164848a901093af2874beb4f2a0a", "score": "0.7594989", "text": "protected function save(): void\n {\n\n //no need to create savepoint here for the\n\n new Event($this, '_before_save');\n $this->execute_save();\n $this->set_status(self::STATUS['SAVED']);\n $this->set_current_transaction($this->get_parent());\n new Event($this, '_after_save');\n }", "title": "" }, { "docid": "631027464fa121c4e19909fe66644790", "score": "0.7472947", "text": "protected function postSave() {}", "title": "" }, { "docid": "b5a84e7edfc68b8b22ccfa390258e700", "score": "0.7383134", "text": "public function save()\n\t{\n\t\t// TODO: Implement save() method.\n\t}", "title": "" }, { "docid": "3f743f9b50d9703b13c479ea4b42772d", "score": "0.7366627", "text": "protected function onSave() {\n\t}", "title": "" }, { "docid": "ce6444ca346e3b76b9cc8ba8f91bf532", "score": "0.7357133", "text": "protected function onSave()\n {\n }", "title": "" }, { "docid": "7efa9b0276e116aca23e95e99d55148a", "score": "0.7305266", "text": "public function save()\r\n\t{\r\n\t\tif ($this->hasEventHandler('onBeforeSave')) {\r\n\t\t\t$this->onBeforeSave(new CEvent($this));\r\n\t\t}\r\n\t\t$this->flush();\r\n\t\tif ($this->hasEventHandler('onAfterSave')) {\r\n\t\t\t$this->onAfterSave(new CEvent($this));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2a9aa94f0eaaccbdeb5e3114f6c36b18", "score": "0.72886974", "text": "public function onSaving() { }", "title": "" }, { "docid": "9fa6cd8b3f76a5c841c9594533d24c0a", "score": "0.7245553", "text": "public function save()\n {\n if (! $this->_isChanged) {\n return;\n\n }\n $this->saveRaw();\n $this->_isChanged = false;\n }", "title": "" }, { "docid": "e792a9488518884d7a3a360683d1c281", "score": "0.7180045", "text": "public function save() {\n\t\t\n\t}", "title": "" }, { "docid": "8df3a5c271f5fa3c8968b9e93dff37cc", "score": "0.7149833", "text": "protected function _save()\n {\n }", "title": "" }, { "docid": "aac5c12e7fb942c43e1b3627ee79d0da", "score": "0.7149068", "text": "public function save()\n {\n $this->save();\n }", "title": "" }, { "docid": "de26f1f2dffb19078ed7e48184c621dd", "score": "0.71116173", "text": "public function save() {\n }", "title": "" }, { "docid": "954c2eae8a7163328609513b688722ed", "score": "0.7106437", "text": "public function save() {\n }", "title": "" }, { "docid": "f8c97e1ac8c608db88e90e2a0a6f2d2b", "score": "0.71038246", "text": "public function save()\n {\n /* BENCHMARK */ $this->benchmark->mark('func_save_start');\n\n $this->load->model('events_admin_model');\n\n // get post\n $post=$this->get_input_vals();\n\n // save the sequence and get the node if for the reload\n $node_id=$this->events_admin_model->save_new_event_sequence($post);\n\n // reload\n $this->_log_action(\"events added\",\"events added\",\"events added \".$post['calendar_id']);\n $this->_reload(\"event/\".$node_id.\"/edit\",\"event sequence added\",'success');\n\n /* BENCHMARK */ $this->benchmark->mark('func_save_end');\n }", "title": "" }, { "docid": "ba8420f41f70b54def06a2e6809a0697", "score": "0.7090262", "text": "function save() {\n\t\t// create object\n\t\t$event = get_event_from_http();\n\t\t// save it\n\t\t$event->save();\n\t\t// respond\n\t\trespond_success($event);\n\t}", "title": "" }, { "docid": "9ba17753f72e11275c71039e17a2ac1d", "score": "0.7044632", "text": "protected function _postSave()\n {\n }", "title": "" }, { "docid": "c8745035d202429759b387b80477d73b", "score": "0.7036324", "text": "protected function _afterSave()\n {\n Mage::getSingleton('index/indexer')->processEntityAction(\n $this, self::ENTITY, Mage_Index_Model_Event::TYPE_SAVE\n );\n\n return parent::_afterSave();\n }", "title": "" }, { "docid": "6d20aa84661351e4924a89a0b9b71329", "score": "0.7035688", "text": "abstract protected function save();", "title": "" }, { "docid": "2b793a9eef00683b8812552aadf605f5", "score": "0.70090526", "text": "public function save_after() {\n // Nothing yet...\n }", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.69995713", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.69995713", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.69995713", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.69995713", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.69995713", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.69995713", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.69995713", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.69995713", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.69995713", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.69995713", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.69995713", "text": "public function save();", "title": "" }, { "docid": "90a89c1c8b3894700a8f9328e0bc7d62", "score": "0.69976467", "text": "public abstract function save();", "title": "" }, { "docid": "90a89c1c8b3894700a8f9328e0bc7d62", "score": "0.69976467", "text": "public abstract function save();", "title": "" }, { "docid": "90a89c1c8b3894700a8f9328e0bc7d62", "score": "0.69976467", "text": "public abstract function save();", "title": "" }, { "docid": "90a89c1c8b3894700a8f9328e0bc7d62", "score": "0.69976467", "text": "public abstract function save();", "title": "" }, { "docid": "02325d482754f1ff67a453105ba6d1be", "score": "0.6988063", "text": "abstract public function save();", "title": "" }, { "docid": "02325d482754f1ff67a453105ba6d1be", "score": "0.6988063", "text": "abstract public function save();", "title": "" }, { "docid": "02325d482754f1ff67a453105ba6d1be", "score": "0.6988063", "text": "abstract public function save();", "title": "" }, { "docid": "02325d482754f1ff67a453105ba6d1be", "score": "0.6988063", "text": "abstract public function save();", "title": "" }, { "docid": "02325d482754f1ff67a453105ba6d1be", "score": "0.6988063", "text": "abstract public function save();", "title": "" }, { "docid": "02325d482754f1ff67a453105ba6d1be", "score": "0.6988063", "text": "abstract public function save();", "title": "" }, { "docid": "886f2a19fae3ac3b6ad37bd66e64ae47", "score": "0.6972006", "text": "function save()\n {\n parent::save();\n }", "title": "" }, { "docid": "162f067b97e2580f80b31c9a1241db3a", "score": "0.69525844", "text": "public function save()\n {\n }", "title": "" }, { "docid": "162f067b97e2580f80b31c9a1241db3a", "score": "0.69525844", "text": "public function save()\n {\n }", "title": "" }, { "docid": "c5315cb420d44984de153692778a8e0a", "score": "0.69422203", "text": "public function onSaving()\n {\n $entry = $this->getFormEntry();\n $parent = $this->getParent();\n $disk = $this->getDisk();\n\n if ($disk) {\n $entry->disk = $disk->getId();\n }\n\n if ($parent) {\n $entry->parent_id = $parent->getId();\n }\n }", "title": "" }, { "docid": "2af767dc24098580a3d7616439041d40", "score": "0.6922556", "text": "public function save()\n {\n if ($this->dirty && $this->started) {\n $this->write($this->id, serialize($this->data));\n $this->dirty = false;\n }\n }", "title": "" }, { "docid": "9ca5e6b4b4f26d9aef1ec6575fde5387", "score": "0.6910023", "text": "public function save(): void\n {\n $this->ageFlashData();\n\n $this->handler->write($this->getId(), $this->prepareForStorage(serialize($this->attributes)));\n\n $this->started = false;\n }", "title": "" }, { "docid": "c273ad2652997a5d4df364b4dfa266ba", "score": "0.69089055", "text": "function save()\n\t{\n\t}", "title": "" }, { "docid": "8623e6bddc17feb374680fc3b39085cf", "score": "0.6891193", "text": "protected function handle_saving_request()\n\t{\n\t\tif (count($this->additional_params) > 0) {\n\n\t\t\t$result = $this->model->save($this->additional_params);\n\t\t\t\n\t\t\tif ($result) {\n\t\t\t\t$this->output->build_output_contents($this->model->attributes, 201);\n\t\t\t} else {\n\t\t\t\t$this->output->error_handler(400, 'Could not save record.');\n\t\t\t}\n\t\t} else {\n\t\t\t$this->output->error_handler(400, 'No values provided to save record');\n\t\t}\n\t}", "title": "" }, { "docid": "c8560ce68b7b8704ae6349dae1337f9d", "score": "0.68878263", "text": "protected function _afterSave()\n {\n $result = parent::_afterSave();\n Mage::getSingleton('index/indexer')->processEntityAction(\n $this, self::ENTITY, Mage_Index_Model_Event::TYPE_SAVE\n );\n return $result;\n }", "title": "" }, { "docid": "87e6630c97c96134a9fedd1135ae63ee", "score": "0.68866765", "text": "protected function afterSave()\n\t{\n\t}", "title": "" }, { "docid": "ef91d05ea4cb2ec7d9f49685cbbe27ec", "score": "0.6880694", "text": "public function postSaveCallback()\n {\n $this->performPostSaveCallback();\n }", "title": "" }, { "docid": "af909161a21e93b90521c17bfbcc41b7", "score": "0.6870622", "text": "protected function afterSave()\n {\n }", "title": "" }, { "docid": "8d1606ab37cb5373d885109be739e167", "score": "0.6857552", "text": "public function afterSave() {\n }", "title": "" }, { "docid": "8cfb50c495099ed221f1cda2f146a655", "score": "0.6848305", "text": "public function save()\n {\n }", "title": "" }, { "docid": "1084edea063aa46c0c8629a0e5de11f1", "score": "0.6845442", "text": "public function saveAction()\n {\n // TODO: Implement saveAction() method.\n }", "title": "" }, { "docid": "625f66cfa8661e9f44ef39d062636867", "score": "0.6831111", "text": "function onSave()\n {\n try\n {\n // open a transaction with database 'samples'\n TTransaction::open('fiscalizacao');\n \n $this->form->validate();\n // read the form data and instantiates an Active Record\n $customer = $this->form->getData('Militar');\n \n // stores the object in the database\n $customer->store();\n $this->form->setData($customer);\n \n // shows the success message\n new TMessage('info', 'Registro Salvo');\n \n TTransaction::close(); // close the transaction\n }\n catch (Exception $e) // in case of exception\n {\n // shows the exception error message\n new TMessage('error', '<b>Error</b>: ' . $e->getMessage());\n // undo all pending operations\n TTransaction::rollback();\n }\n }", "title": "" }, { "docid": "b318859d121bc5274a4069f88d3d975d", "score": "0.6824919", "text": "public function on_save( &$model ) {}", "title": "" }, { "docid": "342f1514dc596da09748a02af573fb20", "score": "0.68079126", "text": "function save()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "8a7bca7afec56e0644bd6f22ec0fc65e", "score": "0.6794695", "text": "public function onSave()\n\t{\n\t\treturn true;\n\t}", "title": "" }, { "docid": "4e1d3f87a7cffacc914efebfad2a1860", "score": "0.6788444", "text": "public function save()\n {\n $this->handler()->write($this->data);\n $this->close();\n }", "title": "" }, { "docid": "692182a273c216fdd803892dc9d86f83", "score": "0.67810833", "text": "public function afterSave()\n {\n }", "title": "" }, { "docid": "19762629f82a245d2204fe4ef9bc3984", "score": "0.6772371", "text": "public function save()\n {\n // Implementar en cada clase\n }", "title": "" }, { "docid": "28464d5b1d69d8ae2e4cfc80f9a81ba8", "score": "0.67705375", "text": "public function save()\n {\n $this->order = self::SAVE;\n }", "title": "" }, { "docid": "f7ea31eb1fdda5e3bdd74c09f6de67b7", "score": "0.67356783", "text": "public function save() \n\t{\n\t\t$this->getMapper()->save($this);\n\t}", "title": "" }, { "docid": "3935c2feb66f7cae1c7fd8672ca3c446", "score": "0.6723233", "text": "public function onAfterSave()\n\t{\n\t\t// Nothing to do\n\t}", "title": "" }, { "docid": "0157ff2cce140301379321472aa63554", "score": "0.67207426", "text": "public function save() {\n return Event::update((array) $this);\n }", "title": "" }, { "docid": "c99c21492b986e414a55927c41e32de3", "score": "0.6691197", "text": "public function save()\n {\n\n }", "title": "" }, { "docid": "f296d7a01e162057ffd2061850a0a800", "score": "0.6672746", "text": "public function save()\r\n {\r\n $this->_getMapper()->save($this);\r\n }", "title": "" }, { "docid": "428d5f2ff17b4622b948fd2da759d4c7", "score": "0.66620475", "text": "public function afterSave(ModelEventInterface $event);", "title": "" }, { "docid": "27c521f53b657d65c53e75bd954b48f4", "score": "0.66541123", "text": "public function postSave() {\n\t\tif ($this->getId() > 0) {\n\t\t\t$this->emptyCacheWidget();\n\t\t\t$this->_log->add($this->logFN(), 'debug', '['.$this->_whatLog.'|'.$this->getId().'] SAVE END // eqLogic.postSave()');\n\t\t}\n\t}", "title": "" }, { "docid": "69bc0a707607feca44be88a8bc3a8bc8", "score": "0.66482127", "text": "function save(){\n addLogMessage( \"Start\", $this->name.\"->save()\" );\n $this->doFinally();\n addLogMessage( \"Update or insert?\", $this->name.\"->save()\" );\n if( \n ( $this->keyfield == \"id\" && $this->id != 0 ) \n || \n ( $this->keyfield != \"id\" && $this->id )\n ){\n addLogMessage( \"Update\", $this->name.\"->save()\" );\n $return = $this->update();\n $this->afterUpdate();\n if( $this->listFieldsHaveChanged() && $this->autoindex ) $this->populateIdx();\n }else{\n addLogMessage( \"Insert\", $this->name.\"->save()\" );\n $return = $this->add();\n // if( intval( $return ) > 0 ) $this->id = intval( $return );\n $this->afterInsert();\n if( $this->autoindex ) $this->populateIdx();\n }\n $notice = $this->displayname;\n if( $this->getName() != \"\" ) $notice .= \" \\\"\".$this->getName().\"\\\"\";\n \n // Save successful\n if( $return ){\n $notice .= \" saved at \".date( SITE_TIMEFORMAT );\n if (count($this->aWarnings)>0) $notice .= \", however there are some warnings:\";\n foreach( $this->aWarnings as $warn ){\n Flash::addWarning($warn[\"message\"],$warn[\"fieldname\"]);\n }\n // if( $this->id != 0 ) $notice .= \" <a href=\\\"\".SITE_ROOT.$this->tablename.\"/edit/\".$this->id.\"\\\" class=\\\"edit\\\">edit</a>\";\n Flash::setNotice($notice);\n \n // Unflag any changed fields to denote unchanged\n $this->resetFieldChangedFlags();\n }\n \n // Unsuccessful save\n else{\n Flash::addError($notice.\" could not be saved\");\n }\n addLogMessage( \"End\", $this->name.\"->save()\" );\n return $return;\n }", "title": "" }, { "docid": "eeddd48c69ec295d2154719430a8f137", "score": "0.66213256", "text": "function Save()\n {\n Events::SendEvent('Core', 'ContentEditPre', array('content' => &$this));\n\n if( !is_array($this->_props) )\n\t{\n\t debug_buffer('save is loading properties');\n\t $this->_load_properties();\n\t}\n\n if (-1 < $this->mId)\n\t{\n\t $this->Update();\n\t}\n else\n\t{\n\t $this->Insert();\n\t}\n\n Events::SendEvent('Core', 'ContentEditPost', array('content' => &$this));\n }", "title": "" }, { "docid": "b4a227d8c86248bfc0c6f4a28f77484f", "score": "0.6612784", "text": "public function save()\n {\n $this->getMapper()->save($this);\n }", "title": "" }, { "docid": "b4a227d8c86248bfc0c6f4a28f77484f", "score": "0.6612784", "text": "public function save()\n {\n $this->getMapper()->save($this);\n }", "title": "" }, { "docid": "ec5c26af321263a32d8a8e3852f55aec", "score": "0.66013074", "text": "public function processSave()\n {\n if ($this->postData['includeNextGen'] == 1)\n {\n $nextgen = new NextGen();\n $previous = $this->model->includeNextGen;\n $nextgen->nextGenEnabled($previous);\n\n // Reset any integration notices when updating settings.\n AdminNoticesController::resetIntegrationNotices();\n }\n\n $check_key = false;\n if (isset($this->postData['apiKey']))\n {\n $check_key = $this->postData['apiKey'];\n unset($this->postData['apiKey']); // unset, since keyModel does the saving.\n }\n\n // write checked and verified post data to model. With normal models, this should just be call to update() function\n foreach($this->postData as $name => $value)\n {\n $this->model->{$name} = $value;\n }\n\n // first save all other settings ( like http credentials etc ), then check\n if (! $this->keyModel->is_constant() && $check_key !== false) // don't allow settings key if there is a constant\n {\n $this->keyModel->resetTried(); // reset the tried api keys on a specific post request.\n $this->keyModel->checkKey($check_key);\n }\n\n // end\n if ($this->do_redirect)\n $this->doRedirect('bulk');\n else {\n $this->doRedirect();\n }\n }", "title": "" }, { "docid": "8e8e8d24e3e46228a0a861cf22c76a0b", "score": "0.6596957", "text": "public function save()\n {\n $this->getRepository()->save();\n }", "title": "" }, { "docid": "90ab4081831a2bf7c465247e0f9af9dc", "score": "0.6588115", "text": "public function save()\n {\n return parent::save();\n }", "title": "" }, { "docid": "31aa6fb80ee597c13f7131a2d92dae53", "score": "0.6574523", "text": "public function saveAction() {\n parent::saveAction();\n }", "title": "" }, { "docid": "ca5d09a72556fa1607786d482335a627", "score": "0.6552565", "text": "public function save()\n\t{\n\t\t//Save only new records\n\t\tif(!$this->newRecord || $this->saved)\n\t\t\treturn;\n\t\t\n\t\t$this->recordModel->saveRecord($this->userID, $this->action, $this->result, $this->ref1, $this->ref2, $this->message);\n\t\t\n\t\t$this->saved = true;\n\t}", "title": "" }, { "docid": "0696f54d9f5d46d9d1b179c865e00b8a", "score": "0.65480804", "text": "public function afterSave()\n {\n Event::fire('awebsome.serverpilot.afterSaveSettings');\n }", "title": "" }, { "docid": "69815e9790c7a5522b39c804e3fda1e4", "score": "0.65365255", "text": "function save();", "title": "" }, { "docid": "69815e9790c7a5522b39c804e3fda1e4", "score": "0.65365255", "text": "function save();", "title": "" }, { "docid": "9a9b1a862b8700558d9629738af5207f", "score": "0.6516489", "text": "public function save()\n {\n if (!$this->unsaved) {\n // either nothing has been changed, or data has not been loaded, so\n // do nothing by returning early\n return;\n }\n\n $this->write($this->items);\n $this->unsaved = false;\n }", "title": "" }, { "docid": "947b59f612cd7bce6650ad91d5158f6a", "score": "0.65163046", "text": "private function doSave()\n {\n $this->performConfVarsSave();\n $sOxid = $this->getEditObjectId();\n\n //saving additional fields (\"oxshops__oxdefcat\") that goes directly to shop (not config)\n /** @var Shop $oShop */\n $oShop = oxNew(Shop::class);\n if ($oShop->load($sOxid)) {\n $oShop->assign(Registry::get(Request::class)->getRequestEscapedParameter(\"editval\"));\n $oShop->save();\n }\n }", "title": "" }, { "docid": "eb5de28c3b89af6d146337de5d69a485", "score": "0.6514611", "text": "public function save() {\n $this->data->bookkingid = $this->get_parent()->get_id();\n parent::save();\n $this->appointments->save_children();\n $this->update_calendar();\n }", "title": "" }, { "docid": "bee64f7774bde629220c18d6d6dc657b", "score": "0.6513352", "text": "public function afterSave($event)\n {\n $this->emit(\"save\");\n }", "title": "" }, { "docid": "461fbfdf649aa07d73e104b598ce9c42", "score": "0.64981794", "text": "public function fireAfterSaveEvent() {\n if (!empty($this->afterSaveEvent)) {\n $this->modx->invokeEvent($this->afterSaveEvent,array(\n 'mode' => modSystemEvent::MODE_UPD,\n $this->primaryKeyField => $this->object->get($this->primaryKeyField),\n $this->objectType => &$this->object,\n 'object' => &$this->object,\n ));\n }\n }", "title": "" }, { "docid": "a2d5e9c211958059501b74977538e468", "score": "0.64940643", "text": "function save()\n\t{\n\t\t$event = new MailEvent($this, $this->__isChanged);\n\t\t$dispatcher = MasterContainer::get(\"event_dispatcher\");\n\t\t$dispatcher->dispatch(MailEvents::onEmailMessageSave, $event);\n\n\t\tparent::save();\n\n\t\t//notify any listening bundles that an email has been saved\n\t\t$dispatcher->dispatch(MailEvents::onEmailMessagePostSave, $event);\n\t}", "title": "" }, { "docid": "918c119e5afa7fbf5fe6ba6408422cb8", "score": "0.6487283", "text": "public function save()\n {\n // CSRF prevention\n $this->csrfProtection();\n\n if (!$this->applySave())\n {\n return;\n }\n\n $humanViewNameSingular = $this->container->inflector->humanize( $this->container->inflector->singularize($this->view) );\n\n if ($customURL = $this->input->getBase64('returnurl', ''))\n {\n $customURL = base64_decode($customURL);\n }\n\n $url = !empty($customURL) ? $customURL : 'index.php?option=' . $this->container->componentName . '&view=' . $this->container->inflector->pluralize($this->view) . $this->getItemidURLSuffix();\n\n $this->setRedirect($url, \\JText::sprintf('COM_CAJOBBOARD_LBL_SAVED', $humanViewNameSingular));\n }", "title": "" }, { "docid": "edbf562ff6c680c98145eb89c6aa289c", "score": "0.64871454", "text": "function save()\r\n\t\t{\r\n\t\t\t$model =& $this->getModel( 'revue' );\r\n\t\t\t$model->store();\r\n\t\t\t\r\n\t\t\t$redirectTo = JRoute::_( 'index.php?option=' .\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t JRequest::getVar( 'option' ) .\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t '&task=display' );\r\n\t\t\t\r\n\t\t\t$this->setRedirect( $redirectTo, 'Revue Saved' );\r\n\t\t}", "title": "" }, { "docid": "3d2f18262d172bd4f838a8b1da52e683", "score": "0.648658", "text": "public function save()\n {\n // Google Calendar.\n if ( $this->isLoaded() && $this->hasGoogleCalendarEvent() ) {\n $modified = $this->getModified();\n if ( array_key_exists( 'staff_id', $modified ) ) {\n // Delete event from the Google Calendar of the old staff if the staff was changed.\n $staff_id = $this->getStaffId();\n $this->setStaffId( $modified['staff_id'] );\n $this->deleteGoogleCalendarEvent();\n $this->setStaffId( $staff_id )\n ->setGoogleEventId( null );\n }\n }\n\n return parent::save();\n }", "title": "" }, { "docid": "0c34572fbbb55460ba9a7f4b94179f38", "score": "0.6483402", "text": "protected function _save()\n {\n Horde_Exception_Pear::catchError($this->datatreeObject->save());\n }", "title": "" }, { "docid": "dd5765dc0700ce2d3eacb225390daf91", "score": "0.6454765", "text": "public function Save()\r\n {\r\n }", "title": "" }, { "docid": "2b74d1ebdb9872221120c5c196e04100", "score": "0.642136", "text": "protected function saveData()\n {\n $this->beforeSave();\n\n $fromOrgId = $this->request->getParam(\\MUtil_Model::REQUEST_ID2);\n $fromPid = $this->request->getParam(\\MUtil_Model::REQUEST_ID1);\n $fromRespId = $this->respondent->getId();\n $toOrgId = $this->formData['gr2o_id_organization'];\n $toPatientId = $this->formData['gr2o_patient_nr'];\n\n switch ($this->formData['change_method']) {\n case 'share':\n $this->_changed = $this->saveShare($fromOrgId, $fromPid, $toOrgId, $toPatientId);\n break;\n\n case 'copy':\n $this->_changed = $this->saveShare($fromOrgId, $fromPid, $toOrgId, $toPatientId);\n if ($this->_changed >= 0) {\n $this->_changed += $this->saveMoveTracks($fromOrgId, $fromRespId, $toOrgId, $toPatientId, false);\n } else {\n $this->addMessage($this->_('ERROR: Tracks not moved!'));\n }\n break;\n\n case 'move':\n $this->_changed = $this->saveTo($fromOrgId, $fromPid, $toOrgId, $toPatientId);\n if ($this->_changed >= 0) {\n $this->_changed += $this->saveMoveTracks($fromOrgId, $fromRespId, $toOrgId, $toPatientId, true);\n } else {\n $this->addMessage($this->_('ERROR: Tracks not moved!'));\n }\n break;\n\n default:\n $this->_changed = 0;\n\n }\n\n // Message the save\n $this->afterSave($this->_changed);\n }", "title": "" }, { "docid": "bca700cf0a5b047a586049387ca8c63d", "score": "0.64211917", "text": "public function saved($model)\n\t{\n\n\t}", "title": "" }, { "docid": "cf15ccd0b8db5e5ba44afbb289ca9f58", "score": "0.6409058", "text": "public function afterSave()\n {\n return parent::afterSave();\n }", "title": "" }, { "docid": "3a8a3676562ab4ff25639b072cb117cd", "score": "0.6404967", "text": "public function saveAction()\n {\n $redirectPath = '*/*';\n $redirectParams = array();\n\n // check if data sent\n $data = $this->getRequest()->getPost();\n if ($data) {\n $data = $this->_filterPostData($data);\n // init model and set data\n /* @var $model Recomiendo_Recipes_Model_Codifiers_%s_Item */\n $model = Mage::getModel($this->_currentEntityModelName);\n\n // if entity item exists, try to load it\n $entityId = $this->getRequest()->getParam($this->_getParamId);\n if ($entotyId) {\n $model->load($entityId);\n }\n\n if($data['published_at'] != NULL )\n {\n $date = Mage::app()->getLocale()->date($data['published_at'], Zend_Date::DATE_SHORT);\n $data['published_at'] = $date->toString('YYYY-MM-dd HH:mm:ss');\n }\n $data['classification'] = Mage::getModel(\"recomiendo_recipes/codifier_recipetype\")->getSetOfNames($data['recipetypes']);\n $model->addData($data);\n try {\n $hasError = false;\n // save the data\n $model->save();\n\n // display success message\n $this->_getSession()->addSuccess(\n Mage::helper('recomiendo_recipes')->__('La entidad %s se ha guardado', $this->_titleLabel)\n );\n\n // check if 'Save and Continue'\n if ($this->getRequest()->getParam('back')) {\n $redirectPath = '*/*/edit';\n $redirectParams = array('id' => $model->getId());\n }\n } catch (Mage_Core_Exception $e) {\n $hasError = true;\n $this->_getSession()->addError($e->getMessage());\n } catch (Exception $e) {\n $hasError = true;\n\n $this->_getSession()->addException($e,\n Mage::helper('recomiendo_recipes')->__('Ha ocurrido un error al guardar la entidad %s', $this->_titleLabel)\n );\n }\n\n if ($hasError) {\n $this->_getSession()->setFormData($data);\n $redirectPath = '*/*/edit';\n $redirectParams = array('id' => $this->getRequest()->getParam('id'));\n }\n }\n\n $this->_redirect($redirectPath, $redirectParams);\n }", "title": "" }, { "docid": "c149e0f2599f29a670b817b83de2290b", "score": "0.6404773", "text": "public function save()\n {\n if ($this->isNew) {\n //add new\n $data = $this->buildDataArray();\n self::$propertyDatabase->add($data);\n $this->isNew = false;\n } else {\n //edit\n $data = $this->buildDataArray();\n self::$propertyDatabase->edit($data);\n }\n }", "title": "" }, { "docid": "89c860f309035c392c2e9c39bf4a5f17", "score": "0.6400816", "text": "public function afterSave() {\r\n\t\t\t\t\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "fe4063c9e3a4714fa9c73d916394e351", "score": "0.6398852", "text": "public function p_save (){\n\t\tif (!$this->user)\n\t\t{\n\t\t\tdie(\"You must be logged in to do that! <a href='/users/login'>login </a> \");\n\t\t}\n\t\telse\n\t\t{\t\n\t\t\t$_POST['user_id'] = $this->user->user_id;\n\t\t\t$_POST['created'] = Time::now();\n\t\t\t$_POST['modified'] = Time::now();\t\n\t\t\t\n\t\t\t//query finds and previous times this user might have saved their query before.\n\t\t\t$q = \"SELECT saves.user_id, saves.tablename, saves.year\n\t\t\t\tFROM saves\n\t\t\t\tWHERE saves.tablename = '\".$_POST['tablename'].\"'\n\t\t\t\tAND saves.year = '\".$_POST['year'].\"'\n\t\t\t\tAND saves.user_id = '\".$_POST['user_id'].\"'\";\n\t\t\t\n\t\t\t$dupes = DB::instance(DB_NAME)->select_rows($q);\n\t\t\t\n\t\t\t//if there are no matches in the query, save the data as a new row in saves\n\t\t\tif ($dupes == NULL){\n\t\t\t\tDB::instance(DB_NAME)->insert(\"saves\", $_POST);\n\t\t\t\techo \"saved\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\techo \"already saved\";\n\t\t\t}\n\t\t}\n\t\n\t}", "title": "" } ]
b6cf39f0290953de18fe87ecafb0e6c9
fungsi cetak Laporan harian Poliklinik
[ { "docid": "9e9afaba46dc86b15461a06de67cb42f", "score": "0.0", "text": "public function actionCetakLaporanHarianPoliklinik($tanggal=null,$bulan=null,$tahun=null)\r\n\t{\r\n\t\t\t$pdf = new LaporanHarian();\r\n\t\t\t$model = 'Belum Siap';\r\n\t\t\t$this->renderPartial('dokumenLaporanPoliklinik',array('model'=>$model,'pdf'=>$pdf));\r\n\t}", "title": "" } ]
[ { "docid": "e5d1fb177855b2b6d14b6582e554ac94", "score": "0.7186318", "text": "function laporan_kegiatan_internal(){\n $data['laporan'] = $this->pegawai_model->tampilLaporan();\n $this->load->view('PenerimaSurat/laporan_kegiatan', $data);\n }", "title": "" }, { "docid": "7dff939d12a4108c08b5e1146990aed2", "score": "0.7177343", "text": "function Pmasukan_kiba()\n\t{\n\t\t$data['arsip']=$this->pb->get_masukan_kiba();\n\t\t//$data['skpd']=$this->pb->get_list_skpd();\n\t\t$data['aset']=$this->pb->get_list_aseta();\n\t\t//$data['all_tahun']=$this->pb->get_list_tahun_kiba();\n\n\t\t$this->load->view('pengurus_barang/header');\n\t\t$this->load->view('pengurus_barang/datamasukan/P_masukan_kib_a',$data);\n\t\t$this->load->view('pengurus_barang/footer');\n\t}", "title": "" }, { "docid": "8089c9e80c467bf9bd031618a547a750", "score": "0.7129807", "text": "public function detaillaporanpendaftaranakteut($tahun){\n $data=array(\n \"title\"=>'Laporan Pendaftaran Akte',\n \"aktif\"=>\"laporanakte\",\n \"bclass\"=>'',\n \"pertahunanu\"=>$this->model->getlapaktepertahunu($tahun)->result(),\n \"pertahunu\"=>$this->model->getthnu($tahun)->result_array(),\n \"bclass\"=>'',\n $username=$this->session->userdata('user'),\n $peran=$this->session->userdata('peran'),\n );\n $data['body']= $this->load->view('detaillap_pertahunakteu.php', $data, true);\n if ($peran=='2') {\n $data['aktif']=\"laporanakte\";\n $this->load->view('template_akte', $data);\n }else if($peran=='4') {\n $data['aktif']=\"lapakte\";\n $data['bclass']=\" \";\n $this->load->view('template_admin', $data);\n }\n }", "title": "" }, { "docid": "906b4b3ef771d4ae90873376fed0ceb5", "score": "0.71297127", "text": "public function laporanpendaftaranakte(){\n $data=array(\n \"title\"=>'Laporan Pendaftaran Akte',\n \"aktif\"=>\"laporanakte\",\n \"bclass\"=>'',\n \"perhari\"=>$this->model->getperhari(),\n \"perbulan\"=>$this->model->getperbulan(),\n \"pertahun\"=>$this->model->getpertahun(),\n \"perhariu\"=>$this->model->getperhariu(),\n \"perbulanu\"=>$this->model->getperbulanu(),\n \"pertahunu\"=>$this->model->getpertahunu(),\n \"perharitp\"=>$this->model->getperharitp(),\n \"perbulantp\"=>$this->model->getperbulantp(),\n \"pertahuntp\"=>$this->model->getpertahuntp(),\n $username=$this->session->userdata('user'),\n $peran=$this->session->userdata('peran'),\n );\n $data['body']= $this->load->view('laporan_akte.php', $data, true);\n if ($peran=='2') {\n $data['aktif']=\"laporanakte\";\n $this->load->view('template_akte', $data);\n }else if($peran=='4') {\n $data['aktif']=\"lapakte\";\n $data['bclass']=\" \";\n $this->load->view('template_admin', $data);\n }\n }", "title": "" }, { "docid": "7656e75cea817bc484a67904c91f33a0", "score": "0.71121716", "text": "public function detaillaporanpendaftaranaktet($tahun){\n $data=array(\n \"title\"=>'Laporan Pendaftaran Akte',\n \"aktif\"=>\"laporanakte\",\n \"bclass\"=>'',\n \"pertahunan\"=>$this->model->getlapaktepertahun($tahun)->result(),\n \"pertahun\"=>$this->model->getthn($tahun)->result_array(),\n \"bclass\"=>'',\n $username=$this->session->userdata('user'),\n $peran=$this->session->userdata('peran'),\n );\n $data['body']= $this->load->view('detaillap_pertahunakte.php', $data, true);\n if ($peran=='2') {\n $data['aktif']=\"laporanakte\";\n $this->load->view('template_akte', $data);\n }else if($peran=='4') {\n $data['aktif']=\"lapakte\";\n $data['bclass']=\" \";\n $this->load->view('template_admin', $data);\n }\n }", "title": "" }, { "docid": "ac74c74ae6fbc2ca60cbe4766b0f85f9", "score": "0.7099906", "text": "public function cetakraportsiswa() {\n $this->data['data_angkatan_aktif2'] = $this->siswa_m->get_data_angkatan_aktif2();\n $this->data['data_angkatan_tidakaktif2'] = $this->siswa_m->get_data_angkatan2();\n\n if (count($this->wali_m->statuswali())) {\n $this->data['subview'] = 'guru/cetaknilai/cetakraportsiswa';\n } else {\n $this->data['subview'] = 'guru/accessdenied/Cetakraport_wali';\n }\n \n $this->load->view('guru/admindesain', $this->data);\n \n }", "title": "" }, { "docid": "8915a3320f136bb419e8f80d36114309", "score": "0.708333", "text": "function laporan()\n\t\t{\n\t\t\t$data['laporan'] =\n\t\t\t$this->db->query(\"SELECT * FROM data_jaminan as A\n\t\t\t\t\t\t\tLEFT JOIN data_izin as B\n\t\t\t\t\t\t\tON A.id_surat = B.id_surat\n\t\t\t\t\t\t\tLEFT JOIN data_status as C\n\t\t\t\t\t\t\tON B.id_surat = C.id_surat\n\t\t\t\t\t\t\tLEFT JOIN s_status as D\n\t\t\t\t\t\t\tON C.status = D.status\n\t\t\t\t\t\t\tLEFT JOIN tpbdetail as E \n\t\t\t\t\t\t\tON B.id_tpb = E.id_tpb\n\t\t\t\t\t\t\tLEFT JOIN penjamindetail as F \n\t\t\t\t\t\t\tON A.id_penjamin = F.id_penjamin\n\t\t\t\t\t\t\tLEFT JOIN data_perben as G\n\t\t\t\t\t\t\tON A.id_jaminan = G.id_jaminan\n\t\t\t\t\t\t\tORDER BY B.tgl_surat DESC\n\t\t\t\t\t\t\t\")->result();\n\t\t\t// Query Pemanggilan Data Laporan Selesai\t\t\t\t\n\t\t\t\t\t\n\t\t\t$this->load->view(\"perben/kasi/v_head\");\n\t\t\t$this->load->view(\"perben/kasi/laporan\", $data);\n\t\t\t$this->load->view(\"perben/kasi/v_foot\");\n\t\t}", "title": "" }, { "docid": "9bab5b71f3fdd0dee56a414d0d08983c", "score": "0.7006605", "text": "public function detaillaporanpendaftaranaktetpt($tahun){\n $data=array(\n \"title\"=>'Laporan Pendaftaran Akte',\n \"aktif\"=>\"laporanakte\",\n \"bclass\"=>'',\n \"pertahunantp\"=>$this->model->getlapaktepertahuntp($tahun)->result(),\n \"pertahuntp\"=>$this->model->getthntp($tahun)->result_array(),\n \"bclass\"=>'',\n $username=$this->session->userdata('user'),\n $peran=$this->session->userdata('peran'),\n );\n $data['body']= $this->load->view('detaillap_pertahunaktetp.php', $data, true);\n if ($peran=='2') {\n $data['aktif']=\"laporanakte\";\n $this->load->view('template_akte', $data);\n }else if($peran=='4') {\n $data['aktif']=\"lapakte\";\n $data['bclass']=\" \";\n $this->load->view('template_admin', $data);\n }\n }", "title": "" }, { "docid": "7783530feebf639e9abb851fc659584a", "score": "0.6895297", "text": "public function tambah_infoPKTabarru()\r\n {\r\n $title['title'] = \"Input Informasi Pengembangan Koperasi Tabarru Baru\";\r\n $data['user'] = $this->db->get_where('user', ['nik' =>\r\n $this->session->userdata('nik')])->row_array();\r\n $this->load->view('templates/header', $title);\r\n $this->load->view('dewanPimpinan/temp_StafBRiset_PDP/sidebar');\r\n $this->load->view('templates/navbar', $data);\r\n $this->load->view('dewanPimpinan/box_briset/form_add_infoPKTabarru', $data);\r\n $this->load->view('templates/footer');\r\n }", "title": "" }, { "docid": "282a84e944d8ab75fb43596c4b99bf09", "score": "0.6874177", "text": "public function tambahkDetail(){\n \n if (count($_POST)==2) {\n header('Location: ' . BASEURL . 'transaksi/riwayatTransaksi');\n }else{\n if($_POST['kunci']=='sudah'){\n $status= $this->model(\"Transaksi_model\")->EditStatusKunci($_POST);\n if($status>0){\n Flasher::setFlash('Berhasil', 'Diubah', 'success');\n header('Location: ' . BASEURL . 'transaksi/riwayatTransaksi');\n exit;\n }\n }else{\n Flasher::setFlash('tidak', 'Dibuah', 'warning');\n header('Location: ' . BASEURL . 'transaksi/riwayatTransaksi');\n exit;\n }\n }\n \n \n\n }", "title": "" }, { "docid": "cf3e9fd8ffd5d1046c87a54fb4cb4eea", "score": "0.68499726", "text": "public function idxLK(){\n $data['bagian'] = $this->pegawai_model->getBagian();\n $this->load->view('PenerimaSurat/form_tambah_laporan_kegiatan', $data);\n }", "title": "" }, { "docid": "97391650f4a82bec62a08e051d2c2575", "score": "0.68388236", "text": "public function jadwal_hari_ini(){\n $data['disposisi'] = $this->pegawai_model->tampilDisposisi();\n $data['dsp'] = $this->pegawai_model->tampilPermintaanDisposisi();\n $data['agenda'] = $this->pegawai_model->tampilAgendaHariIni();\n $this->load->view('Camat/jadwal_hari_ini', $data);\n }", "title": "" }, { "docid": "3e7aea84f2d26b2e5daa3ab32598df39", "score": "0.6836292", "text": "public function tambah_infoPKTijarah()\r\n {\r\n $title['title'] = \"Input Informasi Pengembangan Koperasi Tijarah Baru\";\r\n $data['user'] = $this->db->get_where('user', ['nik' =>\r\n $this->session->userdata('nik')])->row_array();\r\n $this->load->view('templates/header', $title);\r\n $this->load->view('dewanPimpinan/temp_StafBRiset_PDP/sidebar');\r\n $this->load->view('templates/navbar', $data);\r\n $this->load->view('dewanPimpinan/box_briset/form_add_infoPKTijarah', $data);\r\n $this->load->view('templates/footer');\r\n }", "title": "" }, { "docid": "01c1be9a17a56070d0bd969c788210f5", "score": "0.6835562", "text": "public function detaillaporanpendaftaranakteu($tanggal){\n $data=array(\n \"title\"=>'Laporan Pendaftaran Akte',\n \"aktif\"=>\"laporanakte\",\n \"bclass\"=>'',\n \"perharianu\"=>$this->model->getlapakteperhariu($tanggal)->result(),\n \"perhariu\"=>$this->model->gettglu($tanggal)->result_array(),\n \"bclass\"=>'',\n $username=$this->session->userdata('user'),\n $peran=$this->session->userdata('peran'),\n );\n $data['body']= $this->load->view('detaillap_perhariakteu.php', $data, true);\n if ($peran=='2') {\n $data['aktif']=\"laporanakte\";\n $this->load->view('template_akte', $data);\n }else if($peran=='4') {\n $data['aktif']=\"lapakte\";\n $data['bclass']=\" \";\n $this->load->view('template_admin', $data);\n }\n }", "title": "" }, { "docid": "d606face34d96d411c9edeaed4e43921", "score": "0.68327147", "text": "public function detaillaporanpendaftaranaktetpb($bulan){\n $data=array(\n \"title\"=>'Laporan Pendaftaran Akte',\n \"aktif\"=>\"laporanakte\",\n \"bclass\"=>'',\n \"perbulanantp\"=>$this->model->getlapakteperbulantp($bulan)->result(),\n \"perbulantp\"=>$this->model->getblntp($bulan)->result_array(),\n \"bclass\"=>'',\n $username=$this->session->userdata('user'),\n $peran=$this->session->userdata('peran'),\n );\n $data['body']= $this->load->view('detaillap_perbulanaktetp.php', $data, true);\n if ($peran=='2') {\n $data['aktif']=\"laporanakte\";\n $this->load->view('template_akte', $data);\n }else if($peran=='4') {\n $data['aktif']=\"lapakte\";\n $data['bclass']=\" \";\n $this->load->view('template_admin', $data);\n }\n }", "title": "" }, { "docid": "d62a8b20f1f158b214f09564643f0320", "score": "0.6803447", "text": "public function kriteria_penilaian(){\n\t\t$data['tahap_penilaian'] = $this->M_manage->get_tahapPenilaian();\n\t\t$data['bidang_lomba'] = $this->M_manage->get_bidangLomba();\n\t\t$data['CI'] = $this;\n\n\t\t$data['module'] = \"manage_kompetisi\";\n\t\t$data['fileview'] = \"kompetisi/kriteria_penilaian\";\n\t\techo Modules::run('template/backend_main', $data);\n\t}", "title": "" }, { "docid": "f97eccc48e15482e83e20fba09c0e2ff", "score": "0.67999166", "text": "public function getlaporanbulananadmin()\n {\n $html_data_bulan = '';\n $bulan = $this->input->post('bulan');\n $tahun = $this->input->post('tahun');\n\n $data_bulan = $this->model_admin->getPasienLaporanBulanan($bulan, $tahun)->result_array();\n $no = 1;\n foreach ($data_bulan as $value) {\n $html_data_bulan .= '<tr>';\n $html_data_bulan .= '<td>' . $no . '</td>';\n $html_data_bulan .= '<td>' . $value['nm_lengkap'] . '</td>';\n $html_data_bulan .= '<td>' . $value['usia'] . '</td>';\n $html_data_bulan .= '<td>' . $value['jk'] . '</td>';\n $html_data_bulan .= '<td>' . $value['diagnosa'] . '</td>';\n $html_data_bulan .= '<td>' . $value['tindakan'] . '</td>';\n $html_data_bulan .= '</tr>';\n $no++;\n }\n\n $countlakilaki = $this->model_admin->getGrafikrujukBln($bulan, $tahun, 'jk', 'Laki-Laki');\n $countPerempuan = $this->model_admin->getGrafikrujukBln($bulan, $tahun, 'jk', 'Perempuan');\n $countTanseksual = $this->model_admin->getGrafikrujukBln($bulan, $tahun, 'jk', 'Transeksual');\n $countTdkdiketahui = $this->model_admin->getGrafikrujukBln($bulan, $tahun, 'jk', 'Tidak diketahui');\n $countTdkmenentukan = $this->model_admin->getGrafikrujukBln($bulan, $tahun, 'jk', 'Tidak menentukan');\n $countindividu = $this->model_admin->getGrafikrujukBln($bulan, $tahun, 'tindakan', 'Konseling Individu');\n $countkelompok = $this->model_admin->getGrafikrujukBln($bulan, $tahun, 'tindakan', 'Konseling Kelompok');\n $countdokter = $this->model_admin->getGrafikrujukBln($bulan, $tahun, 'tindakan', 'Rujuk ke Dokter');\n $countpsikolog = $this->model_admin->getGrafikrujukBln($bulan, $tahun, 'tindakan', 'Rujuk Psikolog');\n $rowstindakan = [$countindividu, $countkelompok, $countpsikolog, $countdokter];\n $rowsjk = [$countlakilaki, $countPerempuan, $countTanseksual, $countTdkdiketahui, $countTdkmenentukan];\n\n $data['nm_bulan'] = konversiBulan($bulan) . \" \" . $tahun;\n $data['cetak'] = $bulan . \"+\" . $tahun;\n $data['data_bulan'] = $html_data_bulan;\n $data['charttindakan'] = $rowstindakan;\n $data['chartjk'] = $rowsjk;\n echo json_encode($data);\n }", "title": "" }, { "docid": "90f341e40405f68950932bd7a01706d6", "score": "0.67810374", "text": "public function konfirmasi(){\n\t\t$this->siak_view->config = \"Siak Widyatama - Absensi Mahasiswa\";\n\t\t$this->siak_view->judul = \"Konfirmasi Absen\";\n\t\t$this->siak_breadcrumbs->add(array('title'=>'Pembelajaran','href'=>'#'));\n\t\t$this->siak_breadcrumbs->add(array('title'=>'Persiapan Kuliah','href'=>'#'));\n\t\t$this->siak_breadcrumbs->add(array('title'=>'Konfirmasi Absen','href'=>''. URL . 'siak_absensi_mahasiswa'));\n\t\t$this->siak_view->set_breadcrumbs($this->siak_breadcrumbs->output());\n\t\t//$where = array('kode_matkul' => $kode_matkul);\n\t\t//$this->siak_view->data_list = $this->siak_model->siak_query(\"select\", \"select cohort,a.kode_matkul,nama_matkul,a.prodi_id,tanggal,(select c.akhir from jadwal_kuliah c where c.kode_matkul=a.kode_matkul and c.cohort=a.cohort and c.pertemuanke=a.pertemuanke) as akhir,count(nim) as jumlah,a.kode_topik,pertemuanke,case when a.konfirmasi is null then 'belum' ELSE 'sudah' END as status from absensi a,matakuliah b where a.kode_matkul=b.kode_matkul group by cohort,a.kode_matkul,a.prodi_id,tanggal,a.kode_topik,pertemuanke,nama_matkul,konfirmasi order by a.kode_matkul,a.kode_topik,konfirmasi ASC\");\n\t\t\n\t\t$prodi_id = $_SESSION['prodi'];\n\t\t//var_dump($prodi_id);die()\n\t\tif($prodi_id != NULL){\n\t\t if(is_array(explode(',', $prodi_id))){\n\t\t $split = explode(',', $prodi_id);\n\n\t\t foreach($split as $p){\n\t\t $new[] = \"'\".$p.\"'\";\n\t\t }\n\t\t $new = implode(',', $new);\n\t\t $prodi = \"and a.prodi_id in (\".$new.\")\";\n\t\t }else{\n\t\t $prodi = \"and a.prodi_id = '\".$prodi_id.\"'\";\n\t\t }\n\t\t}\n\t\t\n// \t\techo $prodi;\n// \t\tdie();\n\t\t$this->siak_view->data_list = $this->siak_model->siak_query(\"select\", \"select cohort,a.kode_matkul,nama_matkul,a.prodi_id,to_char(tanggal,'DD-MM-yyyy HH12:MI:SS') as tanggal2, tanggal,(select c.akhir from jadwal_kuliah c where c.kode_matkul=a.kode_matkul and c.cohort=a.cohort and c.pertemuanke=a.pertemuanke) as akhir,count(nim) as jumlah,a.kode_topik,pertemuanke,case when a.konfirmasi is null then 'belum' ELSE 'sudah' END as status from absensi a,matakuliah b where a.kode_matkul=b.kode_matkul $prodi group by cohort,a.kode_matkul,a.prodi_id,tanggal,a.kode_topik,pertemuanke,nama_matkul,konfirmasi order by a.kode_matkul,a.kode_topik,konfirmasi ASC\");\n\t\t\n\t\t$this->siak_view->siak_render('siak_absensi_mahasiswa/data_konfirmasi', false);\n\t}", "title": "" }, { "docid": "e9c076a823c6759d3b0354fbc2353c12", "score": "0.67774", "text": "function peminjaman_tambah(){\n\t\t$where = array('status'=>1);\n\t\t$data['buku'] = $this->m_data->edit_data($where,'buku')->result();\n\t\t// mengambil data anggota dari database\n\t\t$data['anggota'] = $this->m_data->get_data('anggota')->result();\n\t\t$this->load->view('anggota/v_header');\n\t\t$this->load->view('anggota/v_peminjaman_tambah',$data);\n\t\t$this->load->view('anggota/v_footer');\n\t}", "title": "" }, { "docid": "5983557631182e298485ff22a53dc922", "score": "0.6766575", "text": "public function laporan($pencatatan = NULL){\n // if(isset($pencatatan) && $pencatatan == \"pelanggaran\") $data[\"info_pelanggaran\"] = $this->Cetak_model->tampilkanInfoPelanggaran();\n // if(isset($pencatatan) && $pencatatan == \"pelanggaran\") \n $this->check_login();\n $data[\"info_total\"] = $this->Cetak_model->tampilkanInfoTotalSkor($pencatatan);\n $data[\"tabPil\"] = $pencatatan;\n $data[\"info_prestasi\"] = $this->Cetak_model->tampilkanInfoPrestasi($pencatatan);\n $data[\"info_pelanggaran\"] = $this->Cetak_model->tampilkanInfoPelanggaran($pencatatan);\n if($this->input->method() == \"post\"){\n $kelasPil = $this->input->post(\"id_kelas\");\n $kelasPil2 = $this->input->post(\"id_kelas2\");\n $kelasPil3 = $this->input->post(\"id_kelas3\"); \n if($this->input->post(\"submit\") == \"cetakPelanggaran\"){\n $data[\"tabPil\"] = \"pelanggaran\";\n $data[\"info_pelanggaran\"] = $this->Cetak_model->tampilkanInfoPelanggaran($kelasPil);\n }else if($this->input->post(\"submit\") == \"cetakPrestasi\"){\n $data[\"tabPil\"] = \"prestasi\";\n $data[\"info_prestasi\"] = $this->Cetak_model->tampilkanInfoPrestasi($kelasPil2);\n }else if($this->input->post(\"submit\") == \"cetakTotalSkor\"){\n $data[\"tabPil\"] = \"total\";\n $data[\"info_total\"] = $this->Cetak_model->tampilkanInfoTotalSkor($kelasPil3);\n }\n }\n $data[\"kelas\"] = $this->Siswa_model->tampilkanSemuaKelas();\n $data[\"title\"] = \"Pencetakan Laporan\";\n $data[\"js\"] = \"User/cetak_js\";\n $this->load->view(\"template/header\", $data);\n $this->load->view(\"User/cetak\", $data);\n $this->load->view(\"template/footer\", $data);\n }", "title": "" }, { "docid": "3a0fc8645ff4700898a0a5b43968559a", "score": "0.67651427", "text": "public function detaillaporanpendaftaranakteub($bulan){\n $data=array(\n \"title\"=>'Laporan Pendaftaran Akte',\n \"aktif\"=>\"laporanakte\",\n \"bclass\"=>'',\n \"perbulananu\"=>$this->model->getlapakteperbulanu($bulan)->result(),\n \"perbulanu\"=>$this->model->getblnu($bulan)->result_array(),\n \"bclass\"=>'',\n $username=$this->session->userdata('user'),\n $peran=$this->session->userdata('peran'),\n );\n $data['body']= $this->load->view('detaillap_perbulanakteu.php', $data, true);\n if ($peran=='2') {\n $data['aktif']=\"laporanakte\";\n $this->load->view('template_akte', $data);\n }else if($peran=='4') {\n $data['aktif']=\"lapakte\";\n $data['bclass']=\" \";\n $this->load->view('template_admin', $data);\n }\n }", "title": "" }, { "docid": "0e3055e3cd7a7d4c5c8df0af5bc50625", "score": "0.67638904", "text": "public function data_jadwal_kuliah()\n\t{\n\tif($this->cek_login){\t\n\t\t$data['data'] = $this->m_jurusan->data_jadwal_kuliah(); \n\t\t$data['pagination'] = $this->pagination->create_links();\n\t\t$data['content'] = 'pg_jurusan/data_jadwal_kuliah';\n\t\t$this->load->view('pg_jurusan/content', $data);\n\t}else{\n\t\tredirect(\"p_jurusan/pilih_menu\");\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "4ba9296ac2aa92ae80ab98610ec862ed", "score": "0.67601556", "text": "public function detaillaporanpendaftaranakte($tanggal){\n $data=array(\n \"title\"=>'Laporan Pendaftaran Akte',\n \"aktif\"=>\"laporanakte\",\n \"bclass\"=>'',\n \"perharian\"=>$this->model->getlapakteperhari($tanggal)->result(),\n \"perhari\"=>$this->model->gettgl($tanggal)->result_array(),\n \"bclass\"=>'',\n $username=$this->session->userdata('user'),\n $peran=$this->session->userdata('peran'),\n );\n $data['body']= $this->load->view('detaillap_perhariakte.php', $data, true);\n if ($peran=='2') {\n $data['aktif']=\"laporanakte\";\n $this->load->view('template_akte', $data);\n }else if($peran=='4') {\n $data['aktif']=\"lapakte\";\n $data['bclass']=\" \";\n $this->load->view('template_admin', $data);\n }\n }", "title": "" }, { "docid": "7c203f3b1398306ecef36addb2d791fc", "score": "0.67540395", "text": "public function detaillaporanpendaftaranaktetp($tanggal){\n $data=array(\n \"title\"=>'Laporan Pendaftaran Akte',\n \"aktif\"=>\"laporanakte\",\n \"bclass\"=>'',\n \"perhariantp\"=>$this->model->getlapakteperharitp($tanggal)->result(),\n \"perharitp\"=>$this->model->gettgltp($tanggal)->result_array(),\n \"bclass\"=>'',\n $username=$this->session->userdata('user'),\n $peran=$this->session->userdata('peran'),\n );\n $data['body']= $this->load->view('detaillap_perhariaktetp.php', $data, true);\n if ($peran=='2') {\n $data['aktif']=\"laporanakte\";\n $this->load->view('template_akte', $data);\n }else if($peran=='4') {\n $data['aktif']=\"lapakte\";\n $data['bclass']=\" \";\n $this->load->view('template_admin', $data);\n }\n }", "title": "" }, { "docid": "503e8cf14255844a41cba402dd46847b", "score": "0.6750409", "text": "public function penilaian(){\r\n $data['karyawan'] = $this->Md_penilaian->tampil();\r\n $data['judul'] = \"Data Penilaian Karyawan\";\r\n\r\n $this->load->view('admin/data_penilaian', $data);\r\n }", "title": "" }, { "docid": "d4bdad6bc8abd81d1d51f4bae938db4b", "score": "0.6746765", "text": "function getInputLaporan(){\r\n\t\tif($this->session->userdata('logged_in')){\r\n\t\t\tif($this->session->userdata('id_role') != 3){\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t$uniq = $this->input->get('uniq');\r\n\t\t\tif($uniq != \"\"){\r\n\t\t\t\t$this->load->model('Laporan_gaji_admin');\r\n\t\t\t\t$data['daftar_gaji'] = $this->Laporan_gaji_admin->getInputLaporan($uniq);\r\n\t\t\t\tif($data['daftar_gaji']){\r\n\t\t\t\t\t$data['uniq'] = $uniq;\r\n\t\t\t\t\t$string = $this->load->view('pages_user/V_Template_Laporan_Gaji', $data, TRUE);\r\n\t\t\t\t\techo $string;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\techo 'Data tidak ditemukan';\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\techo \"You dont have access!\";\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1e36ad8214a4a817a27888ce74ace350", "score": "0.674394", "text": "public function kepeg()\n {\n $id = $this->fungsi->user_login()->id_kar;\n $data = array (\n 'judul' => \"BiasHRIS | Data Kepegawaian\",\n 'rowkar' => $this->M_Aproject->getInfokar($id),//get data pegawai dari table Karyawan\n 'rownip' => $this->M_Aproject->getNip($id), //get data Nip dari table KOntrak\n 'rowdok' => $this->M_Aproject->getDocKar($id), //get data DOkumen Karyawan darii table dockar\n 'rowhispeg' => $this->M_Aproject->getHistPeg($id), //Get Data History Kepegawaian (Jabatan, sbu, dll) tabel tb_hist_kepegawaian\n 'rowhiskon' => $this->M_Aproject->getHistKon($id), //Get Data History Kontrak tabel tb_hist_kontrak\n );\n $this->template->load('template','personal/v_kepegawaian', $data);\n }", "title": "" }, { "docid": "733cba3cd82b184e0a1e35ffe5bc7041", "score": "0.67410725", "text": "public function hapusLaporan(){\n $id_kegiatan =$this->input->post('id_kegiatan');\n if($id_kegiatan == null) {\n $this->session->set_flashdata('hps',\n '<div class=\"alert alert-danger\">\n <h4>Oppss</h4>\n <p>Tidak ada data dinput.</p>\n </div>');\n $this->laporan_kegiatan_internal();\n }else{\n $this->session->set_flashdata('hps',\n '<div class=\"alert alert-success alert-dismissible fade show\" role=\"alert\">\n <p>Data <strong>Laporan Kegiatan </strong> Berhasil Diubah </p>\n <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n </div>');\n $this->pegawai_model->hapusLaporan($id_kegiatan);\n $this->laporan_kegiatan_internal();\n };\n }", "title": "" }, { "docid": "956360ab03b246eb8e25474d32aba15c", "score": "0.6725992", "text": "public function kelolaHarga(){\n\t\t$data['kk'] = 'harga';\n\t\t$data['harga'] = $this->db->query(\"SELECT * FROM layanan\")->result();\n\t\t$this->load->view('admin/template/header',$data);\n\t\t$this->load->view('admin/pemilik/kelola_harga',$data);\n\t\t$this->load->view('admin/template/footer');\n\t}", "title": "" }, { "docid": "5768da9fb6db2c26858afb209607097a", "score": "0.67221725", "text": "function peminjaman(){\n\t\t$anggota1 = $this->db->get_where('anggota', ['id_anggota' => $this->session->userdata('id_anggota')])->row_array();\n\t\t$id = $anggota1['id_anggota'];\n\t\t// mengambil data dari database\n\t\t$data['peminjaman'] = $this->db->query(\"select peminjaman.* ,buku.judul_buku, anggota.nm_anggota from peminjaman join buku on peminjaman.id_buku=buku.id_buku join anggota on peminjaman.id_anggota=anggota.id_anggota where peminjaman.id_anggota = '$id' order by id_peminjaman desc\")->result();\n\t\t// $data['peminjaman'] = $this->m_data->get_data('peminjaman')->result();\n\t\t$this->load->view('anggota/v_header');\n\t\t$this->load->view('anggota/v_peminjaman',$data);\n\t\t$this->load->view('anggota/v_footer');\n\t}", "title": "" }, { "docid": "050cf40905bc3efd4e75d8456cc09edf", "score": "0.6717475", "text": "public function detail_pengajuan_unit()\n\t{\n\t\t#--------------------------------------------------------------------------\n\t # Persiapan pengambilamn data pada Model Mmember\n\t #--------------------------------------------------------------------------\n\t\t$this->load->model('Mmember');\n\t\t$data['rekap'] = $this->Mmember->get_pengajuan_unit_detail();\n\n\t\t$rekap = array();\n\n\t\tforeach ($data['rekap'] as $key)\n\t\t{\n\t\t\tarray_push($rekap, $key['id']);\n\t\t}\n\n\t\t$this->session->set_userdata('rekap', $rekap);\n\n\t\t$this->init('vmenu-daftar-pengajuan-detail', $data);\n\t}", "title": "" }, { "docid": "8279501b56ecda3aa0bb1a870c533dda", "score": "0.6714267", "text": "public function p_hiburan()\n\t{\n\t\t$data['p_hiburan'] = $this->M_apil->get_data('p_hiburan')->result();\n\t\t$this->load->view('adm/header');\n\t\t$this->load->view('adm/p_hiburan',$data);\n\t\t$this->load->view('adm/footer');\n\t}", "title": "" }, { "docid": "b680170f5e7e9dffc946f65ae0a323db", "score": "0.6710314", "text": "public function tahap_penilaian(){\n\t\t$data['tahap_penilaian'] = $this->M_manage->get_tahapPenilaian();\n\n\t\t$data['module'] = \"manage_kompetisi\";\n\t\t$data['fileview'] = \"kompetisi/tahap_penilaian\";\n\t\techo Modules::run('template/backend_main', $data);\n\t}", "title": "" }, { "docid": "2941f67264acff024ab6867bc2596a15", "score": "0.6705718", "text": "function cetakLaporanAdmin(){\r\n\t\tif($this->session->userdata('logged_in')){\r\n\t\t\tif($this->session->userdata('id_role') != 3){\r\n\t\t\t\tredirect('dashboard');\r\n\t\t\t}\r\n\t\t\t$id_periode = $this->input->get('id_periode');\r\n\t\t\t$id_admin = $this->input->get('id_admin');\r\n\t\t\tif($id_periode != \"\" && $id_admin != \"\"){\r\n\t\t\t\t$data['title'] = 'Cetak Laporan Gaji/Absensi Admin | SI Akademik Lab. Komputasi TIF UNPAR';\r\n\t\t\t\t$this->load->model('Periode_gaji');\r\n\t\t\t\t$this->load->model('Laporan_gaji_admin');\r\n\t\t\t\t$this->load->model('Users');\r\n\t\t\t\t$this->load->model('Konfigurasi_gaji');\r\n\t\t\t\t$is_admin = $this->Users->checkUserRole($id_admin, 4);\r\n\t\t\t\tif(!$is_admin){\r\n\t\t\t\t\tredirect('laporan_gaji/report');\r\n\t\t\t\t}\r\n\t\t\t\t$data['detail_admin'] = $this->Users->getUserById($id_admin);\r\n\t\t\t\t$data['nama_periode'] = $this->Periode_gaji->getIndividualItem($id_periode, 'KETERANGAN');\r\n\t\t\t\t$data['daftar_gaji'] = $this->Laporan_gaji_admin->getDataLaporan($id_periode, $id_admin);\r\n\t\t\t\t$array_data_tarif_jam = $this->Laporan_gaji_admin->getTarifAndJam($id_periode, $id_admin);\r\n\t\t\t\t$data['tarif'] = $array_data_tarif_jam[0]['TARIF_AKTIF'];\r\n\t\t\t\t$data['maks_jam'] = $array_data_tarif_jam[0]['WAKTU_MAKS_AKTIF'];\r\n\t\t\t\tdate_default_timezone_set('Asia/Jakarta');\r\n\t\t\t\t$data['now_date'] = date('Y-m-d H:i:s');\r\n\t\t\t\t$this->load->view('template/Header', $data);\r\n\t\t\t\t$this->load->view('pages_user/V_Cetak_Laporan_Gaji', $data);\r\n\t\t\t\t$this->load->view('template/Footer');\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tredirect('laporan_gaji/report');\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\tredirect('/');\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d12ece00550f1f88283ea39555108fae", "score": "0.66972846", "text": "public function laporan_pendapatan(){\n $data1['title'] = 'Keuangan';\n $data1['user'] = $this->db->get_where('t_user',['username'=>$this->session->userdata('username')])->row_array();\n $awal = $this->input->post('awal');\n $akhir = $this->input->post('akhir');\n $data['rekening'] = $this->db->get('t_rekening')->result_array();\n $data['laporan_pendapatan'] = $this->KeuanganModel->laporan_pendapatan()->result_array();\n // var_dump($data['laporan_pendapatan']); die;\n \n $this->load->view('templates/header', $data1);\n $this->load->view('manager/laporan_pendapatan',$data);\n $this->load->view('templates/footer');\n }", "title": "" }, { "docid": "010f9f0dcb5e394c367e017b3e883c36", "score": "0.6693259", "text": "public function penggunaan(){\n $this->isLogged();\n\n $search_key = $this->input->get('search_key');\n if (empty($search_key)) {\n $data['ruangans'] = $this->ruangan_model->getPenggunaan()->result();\n }else{\n $data['ruangans'] = $this->ruangan_model->getPenggunaan('',$search_key)->result();\n }\n $data['search_key'] =$search_key;\n $data['sidebar_color'] = 'azure';\n $data['page_name'] = 'Surat Keluar';\n $data['header'] = 'template/header.php';\n $data['t_foot'] = 'page/ruangan/penggunaan/t_foot.php';\n $data['content'] = 'page/ruangan/penggunaan/index.php';\n $this->load->view('template/main', $data);\n }", "title": "" }, { "docid": "3dc42cf1125f4b2e3f8f5e4702f5fe66", "score": "0.6688485", "text": "public function list_permohonan_prosesKasubag()\n {\n $data_title['title'] = 'List Permohonan Proses Kasubag';\n $data['kasi'] = $this->db->get_where('kasi', ['id_kasi' =>\n $this->session->userdata('id_kasi')])->row_array();\n\n $sie = $this->session->userdata('sie');\n $data['total_notif'] = $this->m_kasi->jml_notif($sie)->result();\n\n $data_detail['data_permohonan'] = $this->m_kasi->get_list_data_permohonan_prosesKasubag('Proses Kasubag')->result();\n\n $this->load->view('header', $data_title);\n $this->load->view('kasi/sidebar', $data);\n $this->load->view('topbar');\n $this->load->view('kasi/list_permohonan_prosesKasubag', $data_detail);\n $this->load->view('footer');\n }", "title": "" }, { "docid": "6ce19376f6798190ce8ac93fd8cbfd14", "score": "0.66805357", "text": "public function laporan(){\n $data1['title'] = 'Laporan';\n $data1['user'] = $this->db->get_where('t_user',['username'=>$this->session->userdata('username')])->row_array();\n $awal = $this->input->post('awal');\n $akhir = $this->input->post('akhir');\n $data['rekening'] = $this->db->get('t_rekening')->result_array();\n $data['laporan_all'] = $this->KeuanganModel->laporan()->result_array();\n\n $this->load->view('templates/header', $data1);\n $this->load->view('manager/laporan',$data);\n $this->load->view('templates/footer');\n }", "title": "" }, { "docid": "ec146cdb1354e0bd5095e6aba632ef82", "score": "0.6654192", "text": "function loadHalamanLaporan(){\r\n\t\tif($this->session->userdata('logged_in')){\r\n\t\t\tif($this->session->userdata('id_role') != 3){\r\n\t\t\t\tredirect('dashboard');\r\n\t\t\t}\r\n\t\t\t$this->load->model('Periode_gaji');\r\n\t\t\t$this->load->model('Laporan_gaji_admin');\r\n\t\t\t$this->load->model('Users');\r\n\t\t\t$data['title'] = 'Laporan Gaji/Absensi Admin | SI Akademik Lab. Komputasi TIF UNPAR';\r\n\t\t\t$data['data_periode'] = $this->Periode_gaji->getAllPeriodeGaji();\r\n\t\t\t$array_periode_aktif = $this->Periode_gaji->getPeriodeAktif();\r\n\t\t\tif($array_periode_aktif){\r\n\t\t\t\tforeach ($array_periode_aktif as $periode) {\r\n\t\t\t\t\t$data['id_periode_aktif'] = $periode['ID'];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t$data['id_periode_aktif'] = $this->Periode_gaji->getLastActiveId();\r\n\t\t\t}\r\n\t\t\t$data['laporan_gaji'] = true;\r\n\t\t\t$id_periode_selected = $this->input->get('id_periode');\r\n\t\t\tif($id_periode_selected){\r\n\t\t\t\t$data['id_periode_aktif'] = $id_periode_selected;\r\n\t\t\t}\r\n\t\t\t$data['ket_periode'] = $this->Periode_gaji->getIndividualItem($data['id_periode_aktif'],'KETERANGAN');\r\n\t\t\t$data_admin = $this->Users->getAllUserByRole(4);\r\n\t\t\t$data['data_admin'] = $data_admin;\r\n\t\t\t$arr_jumlah_masuk = array();\r\n\t\t\tif($data_admin){\r\n\t\t\t\tforeach ($data_admin as $admin) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t$jumlah_hari_masuk = $this->Laporan_gaji_admin->countJumlahMasuk($admin['ID'], $data['id_periode_aktif']);\r\n\t\t\t\t\t$arr_jml_masuk_ind = array($admin['ID'], $jumlah_hari_masuk);\r\n\t\t\t\t\tarray_push($arr_jumlah_masuk, $arr_jml_masuk_ind);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$data['jmlh_masuk'] = $arr_jumlah_masuk;\r\n\t\t\t$this->load->view('template/Header', $data);\r\n\t\t\t$this->load->view('template/Sidebar', $data);\r\n\t\t\t$this->load->view('template/Topbar');\r\n\t\t\t$this->load->view('template/Notification');\r\n\t\t\t$this->load->view('pages_user/V_List_Laporan_Gaji', $data);\r\n\t\t\t$this->load->view('template/Footer');\r\n\t\t}\r\n\t\telse{\r\n\t\t\tredirect('/');\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d43042e2a9696c3ba7d67e595c3b59cf", "score": "0.66484326", "text": "public function list_permohonan_selesaiKasi()\n {\n $data_title['title'] = 'List Permohonan Selesai Kasi';\n $data['kasi'] = $this->db->get_where('kasi', ['id_kasi' =>\n $this->session->userdata('id_kasi')])->row_array();\n\n $sie = $this->session->userdata('sie');\n $data['total_notif'] = $this->m_kasi->jml_notif($sie)->result();\n\n $data_detail['data_permohonan'] = $this->m_kasi->get_list_data_permohonan_selesaiKasi($sie)->result();\n\n $this->load->view('header', $data_title);\n $this->load->view('kasi/sidebar', $data);\n $this->load->view('topbar');\n $this->load->view('kasi/list_permohonan_selesaiKasi', $data_detail);\n $this->load->view('footer');\n }", "title": "" }, { "docid": "6b6846e1d662e685f66f84fe63a60a28", "score": "0.6648389", "text": "public function laporan_keuangan(){\n\t\t$bln = date('m');\n\t\t$data['keuangan_lapor'] = $this->db->query(\"SELECT * FROM pelanggan p join layanan g on g.id_layanan = p.id_layanan where MONTH(p.tgl_mulai) = '$bln' and p.status = 3 or p.status = 4\")->result();\n\t\t$data['pendapatan_sekarang'] = $this->db->query(\"SELECT sum(total_bayar) as bayar1 FROM pelanggan where status = 4 OR status = 3 and MONTH(tgl_mulai) = '$bln'\")->row_array();\n\t\t$data['kk'] = 'keuangan';\n\t\t$this->load->view('admin/template/header',$data);\n\t\t$this->load->view('admin/pemilik/laporan_keuangan',$data);\n\t\t$this->load->view('admin/template/footer');\n\t}", "title": "" }, { "docid": "da89717c3b1b4a187a921783c27282ad", "score": "0.66431844", "text": "function arsip_kiba()\n{\n\t\n\t$data['all_tahun']=$this->pb->get_list_tahun_kiba();\n\n\t$this->load->view('Pengurus_barang/header');\n\t$this->load->view('Pengurus_barang/arsip/arsip_kiba',$data);\n\t$this->load->view('Pengurus_barang/footer');\n}", "title": "" }, { "docid": "9edfc40dde731e234bbb4157bc0c7961", "score": "0.66225076", "text": "function peminjaman_tambah()\n\t{\n\t\t$where = array('status' => 1 );\n\t\t$data['buku'] = $this->m_data->edit_data($where, 'buku')->result();\n\n\t\t//mengambil data anggota\n\t\t$data['anggota'] = $this->m_data->get_data('anggota')->result()\t;\n\t\t//ini view tambah pinjam\n\t\t$this->load->view('petugas/v_header');\n\t\t$this->load->view('petugas/v_peminjaman_tambah',$data);\n\t\t$this->load->view('petugas/v_footer');\n\t}", "title": "" }, { "docid": "beaa41df8cf7db9053149a1a80affadf", "score": "0.6613014", "text": "public function karyawan(){\r\n $data['karyawan'] = $this->Md_karyawan->tampil();\r\n $data['judul'] = \"Data Karayawan\";\r\n\r\n $this->load->view('admin/data_karyawan', $data);\r\n }", "title": "" }, { "docid": "d6d424741e6c644da4cf7aef63b93d8b", "score": "0.6612716", "text": "function get_detail($tahun_renstra,$rentang_awal,$rentang_akhir,$kl)\r\n\t{\r\n\t\t$setting['sd_left']\t= array('cur_menu'\t=> \"LAPORAN\");\r\n\t\t$setting['page']\t= array('pg_aktif'\t=> \"datatables\");\r\n\t\t\r\n\t\t$template\t\t\t= $this->template->load_popup($setting); #load static template file\t\t\r\n\t\t$data['data'] = $this->print_matriks($rentang_awal,$rentang_akhir,$kl,true);\r\n\t\t$nama_kl = $this->kl->get_nama(array(\"tahun_renstra\"=>$tahun_renstra,'kode_kl'=>$kl));\r\n\t\t$data['periode'] = $rentang_awal.'-'.$rentang_akhir.'<br>'.$nama_kl;\r\n\t\t$data['renstra'] = $tahun_renstra;\r\n\t\t$data['rentang_awal'] = $rentang_awal;\r\n\t\t$data['rentang_akhir'] = $rentang_akhir;\r\n\t\t$data['kl'] = $kl;\r\n\t\t$template['konten']\t= $this->load->view('laporan/matriks_pembangunan_print_v',$data,true); #load konten template file\r\n\t\t\r\n\t\t#load container for template view\r\n\t\t$this->load->view('template/container_popup',$template);\r\n\t}", "title": "" }, { "docid": "73ea9998070d7c7747327db408d85b29", "score": "0.6610444", "text": "public function syaratpendafakte(){\n $data=array(\n \"title\"=>'Unggah Syarat Pendaftaran Akte',\n \"aktif\"=>\"syaratakte\",\n \"bread\"=>'Unggah Syarat Pedaftaran Akte',\n \"bclass\"=>'',\n \"pem\"=>$this->PendafAkteM->get_pendafakte(),\n $username=$this->session->userdata('user'),\n $peran=$this->session->userdata('peran'), \n );\n $this->session->set_userdata('asal', 'syarat');\n $data['body']= $this->load->view('syarat_pendafakte', $data, true);\n if ($peran=='2') {\n $data['aktif']=\"syaratakte\";\n $this->load->view('template_akte', $data);\n }else if($peran=='4') {\n $data['aktif']=\"adsyaratakte\";\n $data['bclass']=\" \";\n $this->load->view('template_admin', $data);\n }\n }", "title": "" }, { "docid": "c1cecc3f1fbc18ea51550cf368f8b82e", "score": "0.6601364", "text": "public function lihat_pembagian(){\n $this->db->where('tgl_trans', date('Y-m-d'));\n $cek = $this->db->get('pembagian')->result();\n $this->db->where('tgl_trans', date('Y-m-d'));\n $this->db->where('status >', '0');\n $cek1 = $this->db->get('pembagian')->result();\n $data['cek'] = $cek;\n $data['cek1'] = $cek1;\n if($cek1 == TRUE){\n $data['error'] = 'Pembagian untuk hari ini sudah dilakukan!';\n }\n $data['result'] = $this->db->get('pembagian')->result_array();\n $this->template->load('template', 'pembagian/view', $data);\n }", "title": "" }, { "docid": "b553ab101e136162284739693cb037f8", "score": "0.66005933", "text": "function set_potonggaji(){\r\n\t\t$ID_Jenis\t=$_POST['ID_Jenis'];\r\n\t\t$ID_Agt\t\t=$_POST['ID_Agt'];\r\n\t\t$ID_Simpanan=$_POST['ID_Simpanan'];\r\n\t\t$jumlah\t\t=$_POST['jumlah'];\r\n\t\t//collect data to array\r\n\t\t$data['ID_Unit']\t=rdb('perkiraan','ID_Unit','ID_Unit',\"where ID_Agt='$ID_Agt'\");\r\n\t\t$data['ID_Dept']\t=rdb('perkiraan','ID_Dept','ID_Dept',\"where ID_Agt='$ID_Agt'\");\r\n\t\t$data['ID_Klas']\t=rdb(\"jenis_simpanan\",'ID_Klasifikasi','ID_Klasifikasi',\"where ID='$ID_Simpanan'\");\r\n\t\t$data['ID_SubKlas']\t=rdb(\"jenis_simpanan\",'ID_Klasifikasi','ID_Klasifikasi',\"where ID='$ID_Simpanan'\");\r\n\t\t$data['ID_Perkiraan']=rdb('perkiraan','ID','ID',\"where ID_Agt='$ID_Agt' and ID_Simpanan='$ID_Simpanan'\");\r\n\t\t$data['Debet']\t\t=($ID_Jenis==1)?$jumlah:0;\r\n\t\t$data['Kredit']\t\t=($ID_Jenis==2)?$jumlah:0;\r\n\t\t$data['Keterangan']\t=$_POST['keterangan'];\r\n\t\t$data['ID_Stat']\t='0';\r\n\t\t$data['ID_Bulan']\t=$_POST['ID_Bulan'];\r\n\t\t$data['Tahun']\t\t=$_POST['Tahun'];\r\n\t\t$data['created_by']\t=$this->session->userdata('userid');\r\n\t\techo $this->Admin_model->replace_data('transaksi_temp',$data);\r\n\t\t\t\r\n\t}", "title": "" }, { "docid": "14d2475266dcb54709de3e29768c61cd", "score": "0.6599801", "text": "public function tambah_infoPKomunitas()\r\n {\r\n $title['title'] = \"Input Informasi Pengembangan Komunitas Baru\";\r\n $data['user'] = $this->db->get_where('user', ['nik' =>\r\n $this->session->userdata('nik')])->row_array();\r\n $this->load->view('templates/header', $title);\r\n $this->load->view('dewanPimpinan/temp_StafBRiset_PDP/sidebar');\r\n $this->load->view('templates/navbar', $data);\r\n $this->load->view('dewanPimpinan/box_briset/form_add_infoPKomunitas', $data);\r\n $this->load->view('templates/footer');\r\n }", "title": "" }, { "docid": "9046a3096e6c996cd4d908d4d9de89ce", "score": "0.65994287", "text": "function pasien_batal($no_mr,$no_registrasi,$no_kunjungan,$mode=\"1\",$kd_masuk=\"\")\r\n{\r\n\tglobal $db;\r\n\r\n\t\t/*1. Hapus di tabel tc_kunjungan :\r\n\t\t 2. Cek di tc_kunjungan untuk no registrasi tersebut ada atau tidak\r\n\t\t 3. Jika tidak ada maka hapus di tc_registrasi untuk no registrasi tersebut\r\n\t\t\r\n\t\t### tambahan suwi ###\r\n\t\tsebelum dihapus di 'transfer' dulu ke tabel history\r\n\r\n\t\t*/\r\n\t\tif( $mode == 1 ) {\r\n\t\t\t$sql_transfer_kunjungan = \"INSERT INTO tc_kunjungan_batal SELECT * FROM tc_kunjungan WHERE no_kunjungan =\".$no_kunjungan.\" AND no_registrasi=\".$no_registrasi.\" AND no_mr='\".$no_mr.\"'\";\r\n\t\r\n\t\t$sql_transfer_regis = \"INSERT INTO tc_registrasi_batal SELECT * FROM tc_registrasi WHERE no_registrasi=\".$no_registrasi.\" AND no_mr='\".$no_mr.\"'\";\r\n\t\t\t\r\n\t\t\t$db->Execute($sql_transfer_kunjungan);\r\n\t\t\t$db->Execute($sql_transfer_regis);\r\n\t\t\t\r\n\t\t\r\n\t\t\t//1.Hapus di tabel tc_kunjungan\r\n\t\t\t\t\tdelete_tabel(\"tc_kunjungan\",\"WHERE no_kunjungan=$no_kunjungan\");\r\n\t\t\t\r\n\t\t\t//2. Cek di tc_kunjungan untuk no registrasi tersebut ada atau tidak\r\n\t\t\t$registrasi_cek=baca_tabel(\"tc_kunjungan\",\"no_registrasi\",\"WHERE no_registrasi=$no_registrasi\");\r\n\t\t\t\tif($registrasi_cek==\"\")\r\n\t\t\t\t{\r\n\t\t\t\t\tdelete_tabel(\"tc_registrasi\",\"WHERE no_registrasi=$no_registrasi\");\r\n\t\t\t\t}\r\n\t\t\t/* sesudah itu update history untuk batal */\r\n\t\t\t\r\n\t\t\t$update_kunj_batal[\"tgl_keluar\"] = date(\"Y-m-d H:i:s\");\r\n\t\t\t$update_kunj_batal[\"status_keluar\"] = 3;\r\n\t\t\t\r\n\t\t\t$update_reg_batal[\"tgl_jam_keluar\"] = date(\"Y-m-d H:i:s\"); \r\n\t\t\t$update_reg_batal[\"status_batal\"] = 1; \r\n\t\r\n\t\tupdate_tabel(\"tc_kunjungan_batal\",$update_kunj_batal,\"WHERE no_kunjungan=$no_kunjungan AND no_registrasi=$no_registrasi AND no_mr='$no_mr'\");\r\n\t\t\tupdate_tabel(\"tc_registrasi_batal\",$update_reg_batal,\"WHERE no_registrasi=$no_registrasi AND no_mr='$no_mr'\");\r\n\t\r\n\t\t/*$sql_update=\"UPDATE tc_kunjungan_detail SET status_batal=1 WHERE no_registrasi=$no_registrasi\";\r\n\t\t\t$eksekusi_2=&$db->Execute($sql_update);\r\n\t\r\n\t\t$edit_tc_kunjungan_detail[\"status_batal\"]=1;\r\n\t\t\tupdate_tabel(\"tc_registrasi_\",$edit_tc_kunjungan_detail,\"Where no_registrasi=$no_registrasi\");\r\n\t\t\t*/\r\n\t\t}else if($mode==\"2\"){\r\n\r\n\t\t\t$kdMasuk=substr($kd_masuk,0,2);\r\n\r\n\t\t\t\r\n\t\t\tunset($fld);\r\n\t\t\t$fld[\"status_batal\"]\t\t= 1;\r\n\r\n\t\t\tif($kdMasuk == \"01\" ){\r\n\r\n\t\t\t\tif($kd_masuk == \"010901\" ){\r\n\r\n\t\t\t\t\tupdate_tabel(\"mcu_tc_registrasi\",$fld,\"WHERE no_kunjungan=$no_kunjungan\");\r\n\r\n\t\t\t\t}else{\r\n\r\n\t\t\t\t\tupdate_tabel(\"pl_tc_poli\",$fld,\"WHERE no_kunjungan=$no_kunjungan\");\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}else if($kdMasuk == \"02\"){\r\n\r\n\t\t\t\tupdate_tabel(\"gd_tc_gawat_darurat\",$fld,\"WHERE no_kunjungan=$no_kunjungan\");\r\n\r\n\t\t\t}else if($kdMasuk == \"03\"){\r\n\r\n\t\t\t\tupdate_tabel(\"ri_tc_rawatinap\",$fld,\"WHERE no_kunjungan=$no_kunjungan\");\r\n\r\n\t\t\t\t$kode_ruangan=baca_tabel(\"ri_tc_rawatinap\",\"kode_ruangan\",\"WHERE no_kunjungan=$no_kunjungan\");\r\n\t\t\t\t\r\n\t\t\t\tunset($editMtRuangan);\r\n\t\t\t\t$editMtRuangan[\"status\"] =NULL;\r\n\t\t\t\t$result = update_tabel(\"mt_ruangan\",$editMtRuangan, \"WHERE kode_ruangan='$kode_ruangan'\");\r\n\r\n\r\n\t\t\t}else if($kdMasuk == \"05\"){\r\n\t\t\t\t\r\n\t\t\t\tupdate_tabel(\"pm_tc_penunjang\",$fld,\"WHERE no_kunjungan=$no_kunjungan\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tunset($fld);\r\n\t\t\t$fld[\"status_batal\"]\t\t= 1;\r\n\t\t\t$fld[\"tgl_keluar\"]\t\t\t= date(\"Y-m-d H:i:s\"); \r\n\t\t\t$fld[\"status_keluar\"]\t\t= 3;\r\n\r\n\t\t\t$cekJmlkunjungan=baca_tabel(\"tc_kunjungan\",\"count(no_kunjungan)\",\" where no_registrasi=$no_registrasi AND no_mr='$no_mr' \");\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif($cekJmlkunjungan == 1){\r\n\r\n\t\t\t\tupdate_tabel(\"tc_kunjungan\",$fld,\"WHERE no_kunjungan=$no_kunjungan AND no_registrasi=$no_registrasi AND no_mr='$no_mr'\");\r\n\r\n\t\t\t\tunset($fld);\r\n\t\t\t\t$fld[\"status_batal\"]\t\t= 1;\r\n\t\t\t\t$fld[\"tgl_jam_keluar\"]\t\t= date(\"Y-m-d H:i:s\"); \r\n\t\t\t\t$fld[\"kode_bagian_keluar\"]\t= baca_tabel(\"tc_registrasi\",\"kode_bagian_masuk\",\" where no_registrasi=$no_registrasi AND no_mr='$no_mr' \");\r\n\r\n\t\t\t\tupdate_tabel(\"tc_registrasi\",$fld,\"WHERE no_registrasi=$no_registrasi AND no_mr='$no_mr'\");\r\n\r\n\t\t\t}else{\r\n\t\t\t\r\n\t\t\t\tupdate_tabel(\"tc_kunjungan\",$fld,\"WHERE no_kunjungan=$no_kunjungan AND no_registrasi=$no_registrasi AND no_mr='$no_mr'\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\r\n\t\t}\r\n}", "title": "" }, { "docid": "08c58e717136e54b01691e7d0ceb905a", "score": "0.65987587", "text": "public function aksi_tampil()\n {\n $id_siswa = $this->input->post('siswa');\n $id_kelas = $this->input->post('kelas');\n $id_periode_ujian = $this->input->post('periode_ujian');\n\n // Data-data Raport \n $identitas_santri = $this->Raport_M->getRaportIdentitasSantri($id_siswa, $id_periode_ujian);\n $pj_halaqoh = $this->Raport_M->getRaportIdentitasSantriPjHalaqoh($id_siswa);\n $prosentase_target = $this->Raport_M->getRaport_Prosentase($id_siswa, $id_periode_ujian);\n $hasilujian_santri = $this->Raport_M->getRaportHasilUjian($id_siswa, $id_periode_ujian);\n $nilai_ujian = $this->Raport_M->getRaport_NilaiUjian($id_siswa, $id_periode_ujian);\n $sum_avg_rank = $this->Raport_M->getRaport_Total_Avg_Rank($id_siswa, $id_periode_ujian);\n $jml_siswa_perKelas = $this->Raport_M->getRaport_JmlSiswaPerKelas($id_kelas);\n $total_point_pelanggaran_ibadah = $this->Raport_M->getRaport_TotalPointPelanggaranIbadah($id_siswa);\n $keterangan_pelanggaran_ibadah = $this->Raport_M->getRaport_KeteranganPelanggaranIbadah($id_siswa);\n $total_point_pelanggaran_bahasa = $this->Raport_M->getRaport_TotalPointPelanggaranBahasa($id_siswa);\n $keterangan_pelanggaran_bahasa = $this->Raport_M->getRaport_KeteranganPelanggaranBahasa($id_siswa);\n $catatan_perkembangan_target = $this->Raport_M->getRaport_Catatan_PerkembanganTarget($id_siswa, $id_periode_ujian);\n $catatan_sikap_santri = $this->Raport_M->getRaport_Catatan_SikapSantri($id_siswa, $id_periode_ujian);\n $catatan_akhlaq_perilaku = $this->Raport_M->getRaport_Catatan_AkhlaqPerilaku($id_siswa, $id_periode_ujian);\n $catatan_kerapian_kebersihan = $this->Raport_M->getRaport_Catatan_KerapianKebersihan($id_siswa, $id_periode_ujian);\n $catatan_catatan_musyrif = $this->Raport_M->getRaport_Catatan_CatatanMusyrif($id_siswa, $id_periode_ujian);\n $reward_ujian = $this->Raport_M->getRaport_Reward_Ujian($id_siswa, $id_periode_ujian);\n $pengasuh_pondok = $this->Raport_M->getRaport_Pengesahan_Pengasuh();\n $direktur_tahfidz = $this->Raport_M->getRaport_Pengesahan_Direktur();\n // check($identitas_santri);\n\n $data = [\n 'identitas_santri' => $identitas_santri,\n 'pj_halaqoh' => $pj_halaqoh,\n 'prosentase_target' => $prosentase_target,\n 'hasil_ujian_santri' => $hasilujian_santri,\n 'nilai_ujian' => $nilai_ujian,\n 'hasil_akhir' => $sum_avg_rank,\n 'jml_siswa' => $jml_siswa_perKelas,\n 'points_ibadah' => $total_point_pelanggaran_ibadah,\n 'keterangan_ibadah' => $keterangan_pelanggaran_ibadah,\n 'points_bahasa' => $total_point_pelanggaran_bahasa,\n 'keterangan_bahasa' => $keterangan_pelanggaran_bahasa,\n 'c_perkembangan_target' => $catatan_perkembangan_target,\n 'c_sikap_santri' => $catatan_sikap_santri,\n 'c_akhlaq_perilaku' => $catatan_akhlaq_perilaku,\n 'c_kerapian_kebersihan' => $catatan_kerapian_kebersihan,\n 'c_catatan_musyrif' => $catatan_catatan_musyrif,\n 'reward_ujian' => $reward_ujian,\n 'pengasuh' => $pengasuh_pondok,\n 'direktur' => $direktur_tahfidz\n ];\n // check($data['pengasuh']);\n $this->load->view('raport/preview', $data);\n }", "title": "" }, { "docid": "e4cedb7eae1827945aa1220cabecbdc4", "score": "0.65953785", "text": "function cetakLaporanGajiAdmin(){\r\n\t\tif($this->session->userdata('logged_in')){\r\n\t\t\tif($this->session->userdata('id_role') != 4){\r\n\t\t\t\tredirect('dashboard');\r\n\t\t\t}\r\n\t\t\t$id_periode = $this->input->get('id_periode');\r\n\t\t\tif($id_periode != \"\"){\r\n\t\t\t\t$id_admin = $this->session->userdata('id');\r\n\t\t\t\t$data['title'] = 'Cetak Laporan Gaji/Absensi Admin | SI Akademik Lab. Komputasi TIF UNPAR';\r\n\t\t\t\t$this->load->model('Periode_gaji');\r\n\t\t\t\t$this->load->model('Laporan_gaji_admin');\r\n\t\t\t\t$this->load->model('Users');\r\n\t\t\t\t$this->load->model('Konfigurasi_gaji');\r\n\t\t\t\t$is_admin = $this->Users->checkUserRole($id_admin, 4);\r\n\t\t\t\tif(!$is_admin){\r\n\t\t\t\t\tredirect('laporan_gaji/report');\r\n\t\t\t\t}\r\n\t\t\t\t$data['detail_admin'] = $this->Users->getUserById($id_admin);\r\n\t\t\t\t$data['nama_periode'] = $this->Periode_gaji->getIndividualItem($id_periode, 'KETERANGAN');\r\n\t\t\t\t$data['daftar_gaji'] = $this->Laporan_gaji_admin->getDataLaporan($id_periode, $id_admin);\r\n\t\t\t\t$array_data_tarif_jam = $this->Laporan_gaji_admin->getTarifAndJam($id_periode, $id_admin);\r\n\t\t\t\t$data['tarif'] = $array_data_tarif_jam[0]['TARIF_AKTIF'];\r\n\t\t\t\t$data['maks_jam'] = $array_data_tarif_jam[0]['WAKTU_MAKS_AKTIF'];\r\n\t\t\t\tdate_default_timezone_set('Asia/Jakarta');\r\n\t\t\t\t$data['now_date'] = date('Y-m-d h:i:sa');\r\n\t\t\t\t$this->load->view('template/Header', $data);\r\n\t\t\t\t$this->load->view('pages_user/V_Cetak_Laporan_Gaji', $data);\r\n\t\t\t\t$this->load->view('template/Footer');\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tredirect('laporan_gaji');\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\tredirect('/');\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8f2e2133c56fd5c26b94d1a0aeb11177", "score": "0.65903074", "text": "function peminjaman_aksi()\n\t{\n\t\t//menampung data dari elemen input\n\t\t$buku = $this->input->post('buku');\n\t\t$anggota = $this->input->post('anggota');\n\t\t$tanggal_mulai = $this->input->post('tanggal_mulai');\n\t\t$tanggal_sampai = $this->input->post('tanggal_sampai');\n\n\t\t//data ditampunng di array\n\t\t$data = array(\n\t\t\t'peminjaman_buku' => $buku,\n\t\t\t'peminjaman_anggota' => $anggota,\n\t\t\t'peminjaman_tanggal_mulai' => $tanggal_mulai,\n\t\t\t'peminjaman_tanggal_sampai' => $tanggal_sampai,\n\t\t\t'peminjaman_status' => 2\n\t\t);\n\n\t\t// insert data ke database\n\t\t$this->m_data->insert_data($data,'peminjaman');\n\n\t\t//# mengubah status buku menjadi di pinjam (2) sesuai id di table buku\n\t\t// X $w = array('id' => $id );\n\t\t\t\t// kesalahanya : asal ketik variable id tanpa tahu asalnya\n\t\t\t\t// penyelesaian : menelusuri -> $buku itu menangkap value dari elemnet select option name = \" buku\" di v_peminjaman_tambah. valuenya adalah id dari buku walaupunn yang muncul adalag h\n\n\t\t$w = array('id' => $buku );\n\n\t\t$d = array('status' => 2);\n\n\t\t$this->m_data->update_data($w, $d, 'buku');\n\n\t\t//mengalihkan ke halaman data peminjaman\n\t\tredirect(base_url('petugas/peminjaman'));\n\t}", "title": "" }, { "docid": "77f7a26b349e64746737a26b6d6c3ca2", "score": "0.6588618", "text": "function ujiFunc(){\n\t\t$query = \"SELECT a.id_barang, a.nama_barang, b.nama_kategori, a.harga, c.nama_supplier from barang_beli a, kategori b, supplier c where a.id_kategori = b.id_kategori AND a.id_supplier = c.id_supplier ORDER BY a.id_barang DESC\";\n\t\t$indexCount = 2;\n\t\t$sql = $this->db->query($query);\n\t\techo $this->view_filter_pencarian($sql->field_data());\n\t}", "title": "" }, { "docid": "e0ceee096e0512ece004048123df1a54", "score": "0.65828055", "text": "public function lanjutan()\n\t{\n\t\t$data['judul'] = 'Input Data Peminjam';\n\t\t$data['member']=$this->MAnggota->getData();\n\t\t$this->load->view('templates/header', $data);\n\t\t$this->load->view('transaksi/lanjutan');\n\t\t$this->load->view('templates/footer');\n\t}", "title": "" }, { "docid": "afd45a494fbda49c61cbb919d1f8de84", "score": "0.6581694", "text": "public function detaillaporanpendaftaranakteb($bulan){\n $data=array(\n \"title\"=>'Laporan Pendaftaran Akte',\n \"aktif\"=>\"laporanakte\",\n \"bclass\"=>'',\n \"perbulanan\"=>$this->model->getlapakteperbulan($bulan)->result(),\n \"perbulan\"=>$this->model->getbln($bulan)->result_array(),\n \"bclass\"=>'',\n $username=$this->session->userdata('user'),\n $peran=$this->session->userdata('peran'),\n );\n $data['body']= $this->load->view('detaillap_perbulanakte.php', $data, true);\n if ($peran=='2') {\n $data['aktif']=\"laporanakte\";\n $this->load->view('template_akte', $data);\n }else if($peran=='4') {\n $data['aktif']=\"lapakte\";\n $data['bclass']=\" \";\n $this->load->view('template_admin', $data);\n }\n }", "title": "" }, { "docid": "999fa31e04a012ab03956f1ca93e7ec4", "score": "0.65815645", "text": "public function cari_laporan(){\n $data1['title'] = 'Cari Laporan';\n $data1['user'] = $this->db->get_where('t_user',['username'=>$this->session->userdata('username')])->row_array();\n $awal = $this->input->post('awal');\n $akhir = $this->input->post('akhir');\n $data['ket'] = 'Dari : '.longdate_indo($awal).' - '.longdate_indo($akhir);\n $data['awal'] = $this->input->post('awal'); \n $data['akhir'] = $this->input->post('akhir'); \n $data['rekening'] = $this->db->get('t_rekening')->result_array();\n $data['laporan_print'] = $this->ManagerModel->view_by_month($awal,$akhir)->result_array();\n $data['t_inv'] = $this->ManagerModel->total_inv($awal,$akhir)->row()->t_inv;\n $data['t_sub_inv'] = $this->ManagerModel->total_sub_inv($awal,$akhir)->row()->t_sub_inv;\n \n $this->load->view('templates/header', $data1);\n $this->load->view('manager/cari_laporan',$data);\n $this->load->view('templates/footer');\n \n }", "title": "" }, { "docid": "c75e7ecc49bf9cb25e6deda5f5bcb898", "score": "0.6580372", "text": "function karyawan()\n {\n\n $data = array(\n 'title_karyawan' => \"Data Karyawan\",\n 'faicon_karyawan' => \"fa-id-badge\",\n 'title_jabatan' => \"Data Jabatan\",\n 'faicon_jabatan' => \"fa-bookmark\",\n 'title_gaji' => \"Data Gaji\",\n 'faicon_gaji' => \"fa-money\"\n );\n\n $data['data_karyawan'] = $this->m_crud->tampil('tbl_karyawan')->result();\n $data['data_jabatan'] = $this->m_crud->tampil('tbl_jabatan')->result();\n $data['data_gaji'] = $this->m_master->data_gaji()->result();\n $data['grafik_karyawan'] = $this->m_grafik->total_karyawan()->result();\n $data['grafik_jabatan'] = $this->m_grafik->total_jabatan()->result();\n $data['idk'] = $this->generateidkaryawan();\n $data['content'] = 'karyawan';\n $this->load->view('gaiabiai', $data);\n }", "title": "" }, { "docid": "b2de5a81840dbeac7cd14a9b32a43992", "score": "0.65792114", "text": "public function lihatujian($idpost){\n\n // update view count\n $ambilviewcount = $this->postdetail_model->ambiljumlahview($idpost);\n\n // tambah view +1\n // simpan viwe\n $updateview = $ambilviewcount['view']+1;\n $this->postdetail_model->updatepostview($idpost, $updateview);\n ///////////////////////////////////////////////////\n\n // ambil data ujian spesifik\n $datapost = $this->admin_model->ambildataujian($idpost);\n\n // potong kategori\n // tadinya = ujianmp1\n // jadi kategori = mp\n $jumlahstring = strlen($datapost['idkategori']);\n $kategori = substr($datapost['idkategori'], 5, ($jumlahstring-5-1)); // hasilnya apapun setelah ujian dan kurangi 1 char\n // $kategori = substr($datapost['idkategori'], -3, 2);\n $datapost['kategoriujian'] = $kategori;\n\n // potong level ujian\n $levelujian = substr($datapost['idkategori'], -1, 1);\n $datapost['levelujian'] = $levelujian;\n\n // ambil data pelatihandiikuti\n $datapelatihandiikuti = $this->admin_model->ambildatapelatihandiikuti($datapost['idauthor'], $kategori);\n $datapost['idpelatihandiikuti'] = $datapelatihandiikuti['idpelatihandiikuti'];\n\n // echo '<pre>';\n // print_r($datapost);\n // echo '</pre>';\n\n $data['post'] = $datapost;\n\n $this->load->view('admin/header');\n $this->load->view('admin/sidebar');\n $this->load->view('admin/topbar');\n $this->load->view('admin/ujianlihat', $data);\n $this->load->view('admin/footer');\n\n }", "title": "" }, { "docid": "9c188ffef0900fbd2ea124d46844fdd1", "score": "0.6564525", "text": "public function tambah_infoK()\r\n {\r\n $title['title'] = \"Input Informasi Kuttab Baru\";\r\n $data['user'] = $this->db->get_where('user', ['nik' =>\r\n $this->session->userdata('nik')])->row_array();\r\n $this->load->view('templates/header', $title);\r\n $this->load->view('dewanPimpinan/temp_StafBPendidikanDP/sidebar');\r\n $this->load->view('templates/navbar', $data);\r\n $this->load->view('dewanPimpinan/box_bpendidikan/form_add_infoK', $data);\r\n $this->load->view('templates/footer');\r\n }", "title": "" }, { "docid": "994efd680e8f5eb9aaa6a3c1e0417bf4", "score": "0.6560668", "text": "public function riwayatpendafakte(){\n $data=array(\n \"title\"=>'Riwayat Pendaftaran Akte',\n \"aktif\"=>\"riwayatakte\",\n \"bread\"=>'Riwayat Pedaftaran Akte',\n \"bclass\"=>'',\n \"pem\"=>$this->PendafAkteM->get_pendaftakte()->result(),\n $username=$this->session->userdata('user'),\n $peran=$this->session->userdata('peran'), \n );\n $this->session->set_userdata('asal', 'riwayat');\n $data['body']= $this->load->view('riwayat_pendafakte', $data, true);\n if ($peran=='2') {\n $data['aktif']=\"riwayatakte\";\n $this->load->view('template_akte', $data);\n }else if($peran=='4') {\n $data['aktif']=\"riwakte\";\n $data['bclass']=\" \";\n $this->load->view('template_admin', $data);\n }\n }", "title": "" }, { "docid": "f5f053aacdbbcfff4eb08a08c1168082", "score": "0.6556448", "text": "function fomulir_pengadaan_barang()\r\n {\r\n \t if($this->auth->is_logged_in() == false) {\r\n \tredirect(site_url().'/welcome/login');\r\n \t}else{\r\n $data['page_title']= 'TRANSAKSI FOMULIR PENGADAAN BARANG';\r\n $this->template->set('title', 'TRANSAKSI FOMULIR PENGADAAN BARANG'); \r\n $this->template->load('index','transaksi/tr_isian_barang',$data) ; \r\n } \r\n }", "title": "" }, { "docid": "685fcd32c6ff1befdd39392e98c5f82c", "score": "0.65529144", "text": "private function _laporan()\r\n {\r\n return array\r\n (\r\n array\r\n (\r\n //'user_group'\t\t\t\t\t\t=> array(1),\r\n 'title'\t\t\t\t\t\t\t\t=> 'Rekening',\r\n 'description'\t\t\t\t\t\t=> 'Laporan Pembukuan',\r\n 'icon'\t\t\t\t\t\t\t\t=> 'mdi-chart-arc',\r\n 'color'\t\t\t\t\t\t\t\t=> 'bg-primary',\r\n 'placement'\t\t\t\t\t\t\t=> 'left',\r\n 'controller'\t\t\t\t\t\t=> 'rekening',\r\n 'parameter'\t\t\t\t\t\t\t=> array\r\n (\r\n 'rekening'\t\t\t\t\t => $this->_level_rekening(),\r\n )\r\n ),\r\n array\r\n (\r\n //'user_group'\t\t\t\t\t\t=> array(1),\r\n 'title'\t\t\t\t\t\t\t\t=> 'Jurnal',\r\n 'description'\t\t\t\t\t\t=> 'Laporan Pembukuan',\r\n 'icon'\t\t\t\t\t\t\t\t=> 'mdi-chart-bell-curve',\r\n 'color'\t\t\t\t\t\t\t\t=> 'bg-teal',\r\n 'placement'\t\t\t\t\t\t\t=> 'left',\r\n 'controller'\t\t\t\t\t\t=> 'jurnal',\r\n 'parameter'\t\t\t\t\t\t\t=> array\r\n (\r\n 'tanggal_periode'\t\t\t\t=> $this->_tanggal_periode(),\r\n 'unit_sub_unit'\t\t\t\t\t=> $this->_unit_sub_unit(),\r\n 'jurnal'\t\t\t\t\t => $this->_jurnal('Jenis Jurnal'),\r\n )\r\n ),\r\n array\r\n (\r\n //'user_group'\t\t\t\t\t\t=> array(1),\r\n 'title'\t\t\t\t\t\t\t\t=> 'Buku Besar',\r\n 'description'\t\t\t\t\t\t=> 'Laporan Pembukuan',\r\n 'icon'\t\t\t\t\t\t\t\t=> 'mdi-chart-areaspline',\r\n 'color'\t\t\t\t\t\t\t\t=> 'bg-danger',\r\n 'placement'\t\t\t\t\t\t\t=> 'left',\r\n 'controller'\t\t\t\t\t\t=> 'buku_besar',\r\n 'parameter'\t\t\t\t\t\t\t=> array\r\n (\r\n 'unit_sub_unit'\t\t\t\t\t=> $this->_unit_sub_unit(),\r\n 'jenis_rekening'\t\t\t\t=> $this->_level_rekening('Buku Besar'),\r\n 'rekening'\t\t\t\t\t => $this->_rekening(),\r\n )\r\n ),\r\n array\r\n (\r\n //'user_group'\t\t\t\t\t\t=> array(1),\r\n 'title'\t\t\t\t\t\t\t\t=> 'Buku Besar Pembantu',\r\n 'description'\t\t\t\t\t\t=> 'Laporan Pembukuan',\r\n 'icon'\t\t\t\t\t\t\t\t=> 'mdi-chart-bar',\r\n 'color'\t\t\t\t\t\t\t\t=> 'bg-maroon',\r\n 'placement'\t\t\t\t\t\t\t=> 'left',\r\n 'controller'\t\t\t\t\t\t=> 'buku_besar_pembantu',\r\n 'parameter'\t\t\t\t\t\t\t=> array\r\n (\r\n 'unit_sub_unit'\t\t\t\t\t=> $this->_unit_sub_unit(),\r\n 'jenis_rekening'\t\t\t\t=> $this->_level_rekening('Buku Besar Pembantu'),\r\n 'rekening'\t\t\t\t\t => $this->_rekening('4', '5'),\r\n )\r\n ),\r\n array\r\n (\r\n //'user_group'\t\t\t\t\t\t=> array(1),\r\n 'title'\t\t\t\t\t\t\t\t=> 'Buku Besar Pembantu (per No. Bukti)',\r\n 'description'\t\t\t\t\t\t=> 'Laporan Pembukuan',\r\n 'icon'\t\t\t\t\t\t\t\t=> 'mdi-comment-account-outline',\r\n 'color'\t\t\t\t\t\t\t\t=> 'bg-success',\r\n 'placement'\t\t\t\t\t\t\t=> 'left',\r\n 'controller'\t\t\t\t\t\t=> 'buku_besar_pembantu_bukti',\r\n 'parameter'\t\t\t\t\t\t\t=> array\r\n (\r\n 'unit_sub_unit'\t\t\t\t\t=> $this->_unit_sub_unit(),\r\n 'jenis_rekening'\t\t\t\t=> $this->_level_rekening('Buku Besar Pembantu'),\r\n 'rekening'\t\t\t\t\t => $this->_rekening('4', '5'),\r\n )\r\n ),\r\n array\r\n (\r\n //'user_group'\t\t\t\t\t\t=> array(1),\r\n 'title'\t\t\t\t\t\t\t\t=> 'Neraca',\r\n 'description'\t\t\t\t\t\t=> 'Laporan Pembukuan',\r\n 'icon'\t\t\t\t\t\t\t\t=> 'mdi-chart-bar-stacked',\r\n 'color'\t\t\t\t\t\t\t\t=> 'bg-info',\r\n 'placement'\t\t\t\t\t\t\t=> 'left',\r\n 'controller'\t\t\t\t\t\t=> 'neraca',\r\n 'parameter'\t\t\t\t\t\t\t=> array\r\n (\r\n 'unit_sub_unit'\t\t\t\t\t=> $this->_unit_sub_unit(),\r\n 'jenis_laporan'\t\t\t\t\t=> $this->_jenis_laporan(),\r\n )\r\n ),\r\n array\r\n (\r\n //'user_group'\t\t\t\t\t\t=> array(1),\r\n 'title'\t\t\t\t\t\t\t\t=> 'Laporan Realisasi Anggaran',\r\n 'description'\t\t\t\t\t\t=> 'Laporan Pembukuan',\r\n 'icon'\t\t\t\t\t\t\t\t=> 'mdi-comment-check-outline',\r\n 'color'\t\t\t\t\t\t\t\t=> 'bg-primary',\r\n 'placement'\t\t\t\t\t\t\t=> 'left',\r\n 'controller'\t\t\t\t\t\t=> 'realisasi_anggaran',\r\n 'parameter'\t\t\t\t\t\t\t=> array\r\n (\r\n 'unit_sub_unit'\t\t\t\t\t=> $this->_unit_sub_unit(),\r\n 'jenis_laporan'\t\t\t\t\t=> $this->_jenis_laporan('realisasi'),\r\n 'rekening'\t\t\t\t\t => $this->_level_rekening(),\r\n )\r\n ),\r\n array\r\n (\r\n //'user_group'\t\t\t\t\t\t=> array(1),\r\n 'title'\t\t\t\t\t\t\t\t=> 'Memo Pembukuan',\r\n 'description'\t\t\t\t\t\t=> 'Laporan Memo Pembukuan',\r\n 'icon'\t\t\t\t\t\t\t\t=> 'mdi-chart-pie',\r\n 'color'\t\t\t\t\t\t\t\t=> 'bg-teal',\r\n 'placement'\t\t\t\t\t\t\t=> 'left',\r\n 'controller'\t\t\t\t\t\t=> 'memo_pembukuan',\r\n 'parameter'\t\t\t\t\t\t\t=> array\r\n (\r\n 'jurnal'\t\t\t\t\t => $this->_jurnal('No Bukti'),\r\n )\r\n ),\r\n array\r\n (\r\n //'user_group'\t\t\t\t\t\t=> array(1),\r\n 'title'\t\t\t\t\t\t\t\t=> 'Memo Jural',\r\n 'description'\t\t\t\t\t\t=> 'Laporan Memo Jural',\r\n 'icon'\t\t\t\t\t\t\t\t=> 'mdi-soy-sauce',\r\n 'color'\t\t\t\t\t\t\t\t=> 'bg-danger',\r\n 'placement'\t\t\t\t\t\t\t=> 'left',\r\n 'controller'\t\t\t\t\t\t=> 'memo_jural',\r\n 'parameter'\t\t\t\t\t\t\t=> array\r\n (\r\n //'unit_sub_unit'\t\t\t\t\t=> $this->_unit_sub_unit(),\r\n )\r\n ),\r\n array\r\n (\r\n //'user_group'\t\t\t\t\t\t=> array(1),\r\n 'title'\t\t\t\t\t\t\t\t=> 'Register SPJ - SP2D',\r\n 'description'\t\t\t\t\t\t=> 'Laporan Register SPJ - SP2D',\r\n 'icon'\t\t\t\t\t\t\t\t=> 'mdi-paper-cut-vertical',\r\n 'color'\t\t\t\t\t\t\t\t=> 'bg-primary',\r\n 'placement'\t\t\t\t\t\t\t=> 'right',\r\n 'controller'\t\t\t\t\t\t=> 'register_spj_sp2d',\r\n 'parameter'\t\t\t\t\t\t\t=> array\r\n (\r\n //'unit_sub_unit'\t\t\t\t\t=> $this->_unit_sub_unit(),\r\n )\r\n ),\r\n array\r\n (\r\n //'user_group'\t\t\t\t\t\t=> array(1),\r\n 'title'\t\t\t\t\t\t\t\t=> 'Register SPP - SP2D (UP, TU, LS)',\r\n 'description'\t\t\t\t\t\t=> 'Laporan Register SPP - SP2D (UP, TU, LS)',\r\n 'icon'\t\t\t\t\t\t\t\t=> 'mdi-mushroom-outline',\r\n 'color'\t\t\t\t\t\t\t\t=> 'bg-teal',\r\n 'placement'\t\t\t\t\t\t\t=> 'right',\r\n 'controller'\t\t\t\t\t\t=> 'register_spp_sp2d',\r\n 'parameter'\t\t\t\t\t\t\t=> array\r\n (\r\n //'unit_sub_unit'\t\t\t\t\t=> $this->_unit_sub_unit(),\r\n )\r\n ),\r\n array\r\n (\r\n //'user_group'\t\t\t\t\t\t=> array(1),\r\n 'title'\t\t\t\t\t\t\t\t=> 'Pengesahan SPJ',\r\n 'description'\t\t\t\t\t\t=> 'Laporan Pengesahan SPJ',\r\n 'icon'\t\t\t\t\t\t\t\t=> 'mdi-star-half',\r\n 'color'\t\t\t\t\t\t\t\t=> 'bg-danger',\r\n 'placement'\t\t\t\t\t\t\t=> 'right',\r\n 'controller'\t\t\t\t\t\t=> 'pengesahan_spj',\r\n 'parameter'\t\t\t\t\t\t\t=> array\r\n (\r\n //'unit_sub_unit'\t\t\t\t\t=> $this->_unit_sub_unit(),\r\n )\r\n ),\r\n array\r\n (\r\n //'user_group'\t\t\t\t\t\t=> array(1),\r\n 'title'\t\t\t\t\t\t\t\t=> 'Laporan Pengesahan SPJ',\r\n 'description'\t\t\t\t\t\t=> 'Laporan Pengesahan SPJ',\r\n 'icon'\t\t\t\t\t\t\t\t=> 'mdi-gas-cylinder',\r\n 'color'\t\t\t\t\t\t\t\t=> 'bg-maroon',\r\n 'placement'\t\t\t\t\t\t\t=> 'right',\r\n 'controller'\t\t\t\t\t\t=> 'laporan_pengesahan_spj',\r\n 'parameter'\t\t\t\t\t\t\t=> array\r\n (\r\n //'unit_sub_unit'\t\t\t\t\t=> $this->_unit_sub_unit(),\r\n )\r\n ),\r\n array\r\n (\r\n //'user_group'\t\t\t\t\t\t=> array(1),\r\n 'title'\t\t\t\t\t\t\t\t=> 'Pengawasan Anggaran Definitid Per Kegiatan',\r\n 'description'\t\t\t\t\t\t=> 'Laporan Pengawasan Anggaran Definitid Per Kegiatan',\r\n 'icon'\t\t\t\t\t\t\t\t=> 'mdi-cash-register',\r\n 'color'\t\t\t\t\t\t\t\t=> 'bg-success',\r\n 'placement'\t\t\t\t\t\t\t=> 'right',\r\n 'controller'\t\t\t\t\t\t=> 'pengawasan_anggaran',\r\n 'parameter'\t\t\t\t\t\t\t=> array\r\n (\r\n //'unit_sub_unit'\t\t\t\t\t=> $this->_unit_sub_unit(),\r\n )\r\n ),\r\n array\r\n (\r\n //'user_group'\t\t\t\t\t\t=> array(1),\r\n 'title'\t\t\t\t\t\t\t\t=> 'Register Kontrak / SPK',\r\n 'description'\t\t\t\t\t\t=> 'Laporan Register Kontrak / SPK',\r\n 'icon'\t\t\t\t\t\t\t\t=> 'mdi-chart-donut',\r\n 'color'\t\t\t\t\t\t\t\t=> 'bg-info',\r\n 'placement'\t\t\t\t\t\t\t=> 'right',\r\n 'controller'\t\t\t\t\t\t=> 'register_kontrak',\r\n 'parameter'\t\t\t\t\t\t\t=> array\r\n (\r\n //'unit_sub_unit'\t\t\t\t\t=> $this->_unit_sub_unit(),\r\n )\r\n ),\r\n array\r\n (\r\n //'user_group'\t\t\t\t\t\t=> array(1),\r\n 'title'\t\t\t\t\t\t\t\t=> 'Daftar Realisasi Pembayaran Kontrak',\r\n 'description'\t\t\t\t\t\t=> 'Laporan Daftar Realisasi Pembayaran Kontrak',\r\n 'icon'\t\t\t\t\t\t\t\t=> 'mdi-chart-bubble',\r\n 'color'\t\t\t\t\t\t\t\t=> 'bg-primary',\r\n 'placement'\t\t\t\t\t\t\t=> 'right',\r\n 'controller'\t\t\t\t\t\t=> 'daftar_realisasi',\r\n 'parameter'\t\t\t\t\t\t\t=> array\r\n (\r\n //'unit_sub_unit'\t\t\t\t\t=> $this->_unit_sub_unit(),\r\n )\r\n ),\r\n array\r\n (\r\n //'user_group'\t\t\t\t\t\t=> array(1),\r\n 'title'\t\t\t\t\t\t\t\t=> 'Realisasi Pembayaran Per Nomor Kontrak',\r\n 'description'\t\t\t\t\t\t=> 'Laporan Realisasi Pembayaran Per Nomor Kontrak',\r\n 'icon'\t\t\t\t\t\t\t\t=> 'mdi-book',\r\n 'color'\t\t\t\t\t\t\t\t=> 'bg-teal',\r\n 'placement'\t\t\t\t\t\t\t=> 'right',\r\n 'controller'\t\t\t\t\t\t=> 'realisasi_pembayaran',\r\n 'parameter'\t\t\t\t\t\t\t=> array\r\n (\r\n //'unit_sub_unit'\t\t\t\t\t=> $this->_unit_sub_unit(),\r\n )\r\n ),\r\n array\r\n (\r\n //'user_group'\t\t\t\t\t\t=> array(1),\r\n 'title'\t\t\t\t\t\t\t\t=> 'Register SP3B',\r\n 'description'\t\t\t\t\t\t=> 'Laporan Register SP3B',\r\n 'icon'\t\t\t\t\t\t\t\t=> 'mdi-book-multiple',\r\n 'color'\t\t\t\t\t\t\t\t=> 'bg-danger',\r\n 'placement'\t\t\t\t\t\t\t=> 'right',\r\n 'controller'\t\t\t\t\t\t=> 'register_sp3b',\r\n 'parameter'\t\t\t\t\t\t\t=> array\r\n (\r\n //'unit_sub_unit'\t\t\t\t\t=> $this->_unit_sub_unit(),\r\n )\r\n ),\r\n );\r\n }", "title": "" }, { "docid": "8c6fe7e2868d9920a48798529ba730a6", "score": "0.654967", "text": "public function hasil(){\n\t\t$r = $this->input->post('r');\n\t\t$hitung = $this->input->post('hitung');\n\t\t$hasil = 0;\n\t\t//mengecek proses perhitungan yang diminta\n\t\tif($hitung==\"luas\")\n\t\t{\n\t\t\t$hasil = 3.14*$r*$r;\n\t\t}\n\t\telseif($hitung==\"keliling\"){\n\t\t\t$hasil=($r*2)*3.14;\n\t\t}\n\t\t//membungkus semua data perhitungan untuk ditampilkan di view data['sisi'] = $sisi;\n\t\t$data['r']=$r;\n\t\t$data['hitung']=$hitung;\n\t\t$data['hasil']=$hasil;\n\t\t//menampilkan hasil $this->load->view('hasil', $data)\n\t\t$this->load->view('hasil_lingkaran', $data);\n\t}", "title": "" }, { "docid": "4b350ad3a3a0142b4dd1c3640d240840", "score": "0.65485543", "text": "function index(){\n\t\t$this->siak_view->config = \"Siak Widyatama - Absensi Mahasiswa\";\n\t\n\t\t$this->siak_view->judul = \"Absensi Mahasiswa\";\n\t\t\n\t\t$this->siak_breadcrumbs->add(array('title'=>'Pembelajaran','href'=>'#'));\n\t\t$this->siak_breadcrumbs->add(array('title'=>'Persiapan Kuliah','href'=>'#'));\n\t\t$this->siak_breadcrumbs->add(array('title'=>'Absensi Mahasiswa','href'=>''. URL . 'siak_absensi_mahasiswa'));\n\t\t$this->siak_view->set_breadcrumbs($this->siak_breadcrumbs->output());\n\t\n\t\t$nim = $_SESSION['username'];\n\t\t$mhs = $this->siak_model->siak_query(\"select\",\"select nim,cohort,nama_depan,nama_belakang,substring(prodi,15) as prodi,prodi_id,foto from view_mahasiswa where nim = '$nim'\");\n\t\tforeach($mhs as $row => $rec): $prodi_new = $rec['prodi_id'];$cohort = $rec['cohort']; endforeach;\n\t\t\n\t\t\tif($mhs!=null){\n\t\t\t\t$where = array('prodi_id' => $prodi_new);\n\t\t\t\t$this->siak_view->cohort=$cohort;\n\t\t\t\t$this->siak_view->mahasiswa=$mhs;\n\t\t\t\t$this->siak_view->tahun = $this->siak_model->siak_data_list(\"tahun_akademik\", \"*\");\n\t\t\t\t$this->siak_view->matakuliah = $this->siak_model->siak_edit($where, \"matakuliah\", \"*\");\n\t\t\t\t$this->siak_view->siak_render('siak_absensi_mahasiswa/absen_mhs', false);\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$where = array('status' => 1);\n\t\t\t\t$this->siak_view->kurikulum = $this->siak_model->siak_edit($where, \"kurikulum\", \"*\");\n\t\t\t\t$this->siak_view->prodi = $this->siak_model->siak_data_list(\"prodi\", \"*\");\n\t\t\t\t$this->siak_view->mahasiswa = $this->siak_model->siak_query(\"select\", \"SELECT b.prodi, COUNT(a.nim) as jml_mhs, b.prodi_id FROM mahasiswa a, prodi b WHERE a.prodi_id = b.prodi_id AND a.status = 1 AND a.kurikulum_id != 0 GROUP BY a.prodi_id, b.prodi_id;\");\n\t\t\t\t$this->siak_view->siak_render('siak_absensi_mahasiswa/index', false);\n\t\t\t}\n\t}", "title": "" }, { "docid": "5cf1520712c0977f33e2b48f20e7dacf", "score": "0.65418476", "text": "function jadwal_hari_ini_internal(){\n $data['agenda'] = $this->pegawai_model->tampilAgendaHariIniInternal();\n $this->load->view('PenerimaSurat/jadwal_hari_ini', $data);\n }", "title": "" }, { "docid": "471d7328b7b705359966a37647a8e83f", "score": "0.6541762", "text": "public function ubahProsesKP($id_surat)\n\t{\n\t\t$data \t\t\t= $this->tampilsurat_model->detailKP($id_surat);\n\n\t\t$SelectSurat \t= $this->tampilsurat_model->SelectSurat($id_surat);\n\t\t$nomorsuratkp \t= $this->nomorsurat_model->NomorSuratKP($SelectSurat->prodi);\n\n\t\t$ceknomorsurat \t= $this->nomorsurat_model->CheckNoSrtExist($nomorsuratkp);\n\n\t\t$isi= html_entity_decode(\n\t\t\t\t\"<p>Halo \".$data['nama_mahasiswa'].\" </p>,\n\n\t\tBerdasarkan pengajuan surat Anda, kami TU \".$this->session->userdata('fakultas').\" sedang memproses pembuatan dan pengesahan Surat Kerja Praktek yang Anda ajukan kepada Koodinator Kerja Praktek Jurusan \".$SelectSurat->prodi.\". Anda akan mendapatkan pemberitahuan melalui surel dan notifikasi di situs E-Surat kembali saat Surat Kerja Praktek Anda selesai dan di sahkan oleh Koordinator Kerja Praktek\n\t\tAnda dapat mengecek status permohonan pembuatan Surat Kerja Praktek Anda melalui login di situs E-Surat: www.esurat.mercubuana.ac.id\n\t\t<br><br>\n\t\tTerima kasih.\n\t\t<br><br>\n\t\tSalam,\n\t\t<br><br>\n\t\t\".$this->session->userdata('nama_lengkap').\" - TU \".$this->session->userdata('fakultas')\n\t\t\t\t\t) ;\n\n\t\t\t$config = Array( \n\t\t\t\t'protocol' => 'smtp', \n\t\t\t\t'smtp_host' => 'https://www.mohagustiar.info/', \n\t\t\t\t'smtp_port' => 465, \n\t\t\t\t'smtp_user' => 'contactme@mohagustiar.info', \n\t\t\t\t'smtp_pass' => 'project2m123!@#', \n\t\t\t\t'smtp_keepalive'=>'TRUE',\n\t\t\t\t'mailtype' => 'html', \n\t\t\t\t'charset' => 'iso-8859-1' \n\t );\n\n\t $this->load->library('email', $config); \n\t $this->email->set_newline(\"\\r\\n\"); \n\t\t $this->email->from('esurat@mercubuana.ac.id','FASILKOM UMB');\n\t\t\t$this->email->to($data['email']); \n\t\t\t\t\n\t\t\t$this->email->subject(\"[ESURAT - NOREPLY] Pengajuan Surat - \".$data['nim'].\" - \".$data['nama_mahasiswa'].\" - Diproses\");\n\t\t\t$this->email->message($isi);\n\t\t\t$this->email->set_mailtype(\"html\");\n\t\t\t$this->email->send();\n\t\t\t$ubahStatusToProses\t= $this->statussurat_model->SuratKpToProses($id_surat,$nomorsuratkp);\n\n\t\t\t$this->session->set_flashdata('info','true');\n\t\t\tredirect('admin/waitingkp');\t\n\n\t}", "title": "" }, { "docid": "7e01c4a3cdb82df9f736e0fc8ddab752", "score": "0.65367323", "text": "public function percobaan(){\r\n $data['karyawan'] = $this->Md_percobaan->tampil();\r\n $data['judul'] = \"Data Karyawan Percobaan\";\r\n \r\n $this->load->view('admin/data_percobaan', $data);\r\n }", "title": "" }, { "docid": "6fcc489bf08979636d637b932e38df89", "score": "0.6533597", "text": "public function inputpendaftaran(){\n $data=array(\n \"bclass\"=>'',\n \"title\"=>'Pendaftaran Akte',\n \"aktif\"=>\"aktif\",\n \"bclass\"=>'',\n \"nik\"=>'',\n \"nama_lengkap\"=>'',\n \"jenis_kelamin\"=>'',\n \"jenis_akte\"=>'',\n \"tempat_lahir\"=>'',\n \"tanggal_lahir\"=>'',\n \"alamat\"=>'',\n \"rt\"=>'',\n \"rw\"=>'',\n \"id_kecamatan\"=>'',\n \"nama_kecamatan\"=>'',\n \"nama_desakelurahan\"=>'',\n \"des\"=>$this->PendafAkteM->getdes(), //menampilkan data desa\n \"kec\"=>$this->PendafAkteM->getkec(), //menampilkan data kecamatan\n \"id_desakelurahan\"=>'',\n \"tgl_jadi\"=>'',\n \"no_registrasi\"=>'',\n $username=$this->session->userdata('user'),\n $password=$this->session->userdata('pass'),\n $peran=$this->session->userdata('peran'),\n \"petugasUP\"=>$this->PendafAkteM->get_data_petugas($username, $peran), //menampilkan nama petugas yang login pada sistem berdasarkan username dan peran\n \"dok\"=>$this->PendafAkteM->getdok()->result(),//menampilkan syarat pendaftaran\n );\n $data['body']= $this->load->view('petugas_akte.php', $data, true);\n //untuk mengetahui petugas yang memiliki hak akses pendaftaran akte\n if ($peran=='2') {\n $data['aktif']=\"akte\";\n $this->load->view('template_akte', $data);\n }else if($peran=='4') {\n $data['aktif']=\"dtakte\";\n $data['bclass']=\" \";\n $this->load->view('template_admin', $data);\n }\n }", "title": "" }, { "docid": "6df1aca68823331e6fb9e27bb61419da", "score": "0.6528984", "text": "function lihatNilaiSiswa($id_jadwal, $id_mapel){\n \n //$nilai = \"SELECT * FROM tbl_nilai,tbl_komponen_nilai WHERE nisn = '$nisn' AND tbl_nilai.id_mapel = '$id_mapel' AND tbl_nilai.id_komponen=tbl_komponen_nilai.id_komponen \";\n $nisn = $_SESSION['username'];\n $nilai = \"SELECT * FROM tbl_komponen_nilai tkn, tbl_nilai tn WHERE nisn = '$nisn' AND tn.id_mapel = '$id_mapel' AND tkn.id_komponen=tn.id_komponen ORDER BY tn.id_komponen ASC\";\n $mapel = \"SELECT nama_mapel FROM tbl_mapel WHERE id_mapel = '$id_mapel'\";\n $deskripsi = \"SELECT deskripsi_pengetahuan,deskripsi_spiritual,deskripsi_keterampilan,deskripsi_sosial FROM tbl_deskripsi_nilai tdn WHERE tdn.nisn = '$nisn' AND tdn.id_mapel = '$id_mapel'\";\n \n //$result = $query->row();\n $data['nilai'] = $this->db->query($nilai)->result();\n $data['deskripsi'] = $this->db->query($deskripsi)->result();\n $data['mapel'] = $this->db->query($mapel)->result();\n \n\n $this->template->load('template','nilai/siswa_see', $data);\n }", "title": "" }, { "docid": "a5a63bb5a6cfe2cfabac4833786ec42d", "score": "0.6526877", "text": "function pojurnal_view($suppl,$kredit,$idtrbgt,$ppn,$pph,$percen_pph,$ap_coa,$ap_name,$flag,$aloc,$parent_proj){\n\t\t#die($kredit);\n\t\t//die($suppl.\",\".$kredit.\",\".$idtrbgt.\",\".$ppn.\",\".$pph);\n\t\t\t$data['suppl'] = str_replace(\"++--++\",\" \",$suppl);\n\t\t\t$data['kredit'] = $kredit;\n\t\t\t$data['idtrbgt'] = $idtrbgt;\n\t\t\t$data['ap_name'] = $this->unslug($ap_name);\n\t\t\t$data['ap_coa'] = $ap_coa;\n\t\t\tif($aloc!=0){\n\t\t\t$data['aloc'] = $aloc;\n\t\t\t$head = substr($aloc,0,3);\n\t\t\t$data['all_proj'] = $this->db->query(\"select a.kd_project,a.kd_project as id_subproject,a.nm_project,a.alokasi_persen,c.acc_no,c.acc_name\n\t\t\t\t\t\t\t\t\t\t\t\t from project a \n\t\t\t\t\t\t\t\t\t\t\t\t join db_coa c on a.acc_div_ar = c.acc_no\n\t\t\t\t\t\t\t\t\t\t\t\t where (a.kd_project like '$parent_proj%') and a.kd_project!=$aloc and a.judul = 'N' and a.alokasi_persen!=0\")->result();\n\t\t\t//var_dump($data['all_proj']);exit;\n\t\t\t}\n\t\t\t\n#https://localhost/fabsu/ap/apinvoice/pojurnal_view/ACADEMIA++--++EDUCATION++--++&++--++TRAINING/JAMES++--++G.T.H./20,000,000/33875/18,181,818/7989-+-+-18,181,818/3/2.01.02.01.02/AP-Trade-Consultant/ope/0/0\n\n\t\t\tif($ppn==0){\n\t\t\t\t$data['ppn'] = 0;\n\t\t\t}else{\n\t\t\t\t$data['ppn'] = replace_numeric($data['kredit'])-replace_numeric($ppn);\n\t\t\t}\n\t\t\t\n\t\t\tif($pph==0){\n\t\t\t\t$data['pph'] = 0;\n\t\t\t\t$data['percen_pph'] = 0;\n\t\t\t}else{\n\t\t\t\t$e = explode(\"-+-+-\",$pph);\n\t\t\t\t$data['pph'] = $this->db->query(\"select acc_no,acc_name from db_coa where id_coa = \".$e[0].\"\")->result();\n\t\t\t\t$data['pphv'] = $e[1];\n\t\t\t\t$data['percen_pph'] = $percen_pph;\n\t\t\t}\n\t\t\t$session_id = $this->UserLogin->isLogin();\n\t\t\t$data['pt']\t= $session_id['id_pt'];\n\t\t\t$tanggal=getdate();\n\t\t\t$data['ye'] = $tanggal['year'];\n\t\t\t$data['flag'] = $flag;\n\t\t\t$this->load->view('ap/appojurnal_view',$data);\n\t\t}", "title": "" }, { "docid": "f33fcee1a3d325f896756a34e3044994", "score": "0.6523117", "text": "public function absen_ujian(){\n\t\t$this->siak_view->config = \"Siak Widyatama - Absen Ujian\";\n\t\n\t\t$this->siak_view->judul = \"Absen Ujian\";\n\t\t\n\t\t$this->siak_breadcrumbs->add(array('title'=>'Pembelajaran','href'=>'#'));\n\t\t$this->siak_breadcrumbs->add(array('title'=>'Persiapan Kuliah','href'=>'#'));\n\t\t$this->siak_breadcrumbs->add(array('title'=>'Absen Ujian','href'=>''. URL . 'siak_absensi_mahasiswa/absen_ujian'));\n\t\t$this->siak_view->set_breadcrumbs($this->siak_breadcrumbs->output());\n\t\t\n\t\t$this->siak_view->data_prodi =$this->siak_model->siak_data_list('prodi','prodi_id,prodi');\n\t\t$this->siak_view->siak_render('siak_absensi_mahasiswa/form_absen_ujian', false);\n\t}", "title": "" }, { "docid": "55227ce1725de58e1d930828f5ca4b73", "score": "0.6521359", "text": "public function index()\n\t{\n\t\t$this->load->model('modellokasi');\n\t\n\t\t$data = array(\n\t\t\t'namars' => $this->session->userdata('namars'),\t\n\t\t\t'nama' => $this->session->userdata('nama'),\t\n\t\t\t'cabang' => $this->session->userdata('cabang'),\n\t\t\t'data_jenis_lokasi' => $this->modellokasi->v_lokasi(),\n\t\t\t'tp_produk'=> $this->modellokasi->gettipeproduk()->result_array(),\n\t\t\t'kode_rs'=> $this->modellokasi->getrs()->result_array(),\n\t\t 'kodeunik' => $this->modellokasi->buat_kode(),\n\t\t);\n\n\t$this->template->Display('master_lokasi/data_lokasi',$data);\n\t}", "title": "" }, { "docid": "db5e8deb1852ffbd741a7967b30531f2", "score": "0.65150595", "text": "function tampilkan_data()\n\t{\n\t\t$this->db->query('set search_path to bikesharing');\n\t\treturn $this->db->query('select m.no_kartu_anggota,p.nama as nama_anggota, m.datetime_pinjam, m.nomor_sepeda, m.id_stasiun, s.nama as nama_stasiun, m.datetime_kembali, m.biaya, m.denda from peminjaman m, stasiun s, anggota a, person p where m.id_stasiun=s.id_stasiun and m.no_kartu_anggota=a.no_kartu and a.ktp=p.ktp');\n\t}", "title": "" }, { "docid": "8b1c7ef5de7fec78e89da73aeefd2959", "score": "0.65071064", "text": "function pelanggan()\n {\n\n $data = array(\n 'title' => \"Data Pelanggan\",\n 'faicon' => \"fa-handshake-o\"\n );\n\n $data['data_pelanggan'] = $this->m_crud->tampil('tbl_pelanggan')->result();\n $data['content'] = 'pelanggan';\n $this->load->view('gaiabiai', $data);\n }", "title": "" }, { "docid": "2a4985000967d29b5dc6c2d0d35b06e8", "score": "0.65033853", "text": "function berinama($kucing){\n $this->nama_kucing=$kucing;\n }", "title": "" }, { "docid": "cdbfbcb7ccb677716805bf077bd4c616", "score": "0.65014553", "text": "public function t_kuota_mata_kuliah_pilihan(){\n\t\tif($this->input->post('src')){\n\t\t\t$this->session->set_userdata('src',$this->input->post('src'));\n\t\t\t$this->session->set_userdata('status',\"aktif\");\n\t\t}else{\n\t\t\t$this->session->set_userdata('status',\"tidak\");\n\t\t}\t\t\n\t\t$data['data'] = $this->m_jurusan->t_kuota_mata_kuliah_pilihan(); \n\t\t$data['kelas'] = $this->m_aka->kelas();\n\t\t$data['pagination'] = $this->pagination->create_links();\n\t\t$data['content'] = 'pg_jurusan/tambah_kuota_mata_kuliah_pilihan';\n\t\t$this->load->view('pg_jurusan/content', $data);\t\t\n\t}", "title": "" }, { "docid": "49b51f7ec1b1854cc4cca197661da57c", "score": "0.650069", "text": "function getDaftarLaporan(){\r\n\t\tif($this->session->userdata('logged_in')){\r\n\t\t\tif($this->session->userdata('id_role') != 3){\r\n\t\t\t\tredirect('dashboard');\r\n\t\t\t}\r\n\t\t\t$id_periode = $this->input->get('id_periode');\r\n\t\t\t$id_admin = $this->input->get('id_admin');\r\n\t\t\tif($id_periode != \"\" && $id_admin != \"\"){\r\n\t\t\t\t$data['title'] = 'Daftar Laporan Gaji/Absensi Admin | SI Akademik Lab. Komputasi TIF UNPAR';\r\n\t\t\t\t$this->load->model('Periode_gaji');\r\n\t\t\t\t$this->load->model('Laporan_gaji_admin');\r\n\t\t\t\t$this->load->model('Users');\r\n\t\t\t\t$this->load->model('Konfigurasi_gaji');\r\n\t\t\t\t$is_admin = $this->Users->checkUserRole($id_admin, 4);\r\n\t\t\t\tif(!$is_admin){\r\n\t\t\t\t\tredirect('laporan_gaji/report');\r\n\t\t\t\t}\r\n\t\t\t\t$data['detail_admin'] = $this->Users->getUserById($id_admin);\r\n\t\t\t\t$data['nama_periode'] = $this->Periode_gaji->getIndividualItem($id_periode, 'KETERANGAN');\r\n\t\t\t\t$data['daftar_gaji'] = $this->Laporan_gaji_admin->getDataLaporan($id_periode, $id_admin);\r\n\t\t\t\t$data['id_periode_aktif'] = $id_periode;\r\n\t\t\t\t$flag = true;\r\n\t\t\t\t$is_periode_aktif = $this->Periode_gaji->checkIDPeriodeAktif($id_periode);\r\n\t\t\t\tif(!$is_periode_aktif){\r\n\t\t\t\t\t$flag = false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$data['flag'] = $flag;\r\n\t\t\t\t$data['id_admin'] = $id_admin;\r\n\t\t\t\t$array_data_tarif_jam = $this->Laporan_gaji_admin->getTarifAndJam($id_periode, $id_admin);\r\n\t\t\t\t$data['tarif'] = $array_data_tarif_jam[0]['TARIF_AKTIF'];\r\n\t\t\t\t$data['maks_jam'] = $array_data_tarif_jam[0]['WAKTU_MAKS_AKTIF'];\r\n\t\t\t\t$this->load->view('template/Header', $data);\r\n\t\t\t\t$this->load->view('template/Sidebar', $data);\r\n\t\t\t\t$this->load->view('template/Topbar');\r\n\t\t\t\t$this->load->view('template/Notification');\r\n\t\t\t\t$this->load->view('pages_user/V_Daftar_Laporan_Gaji', $data);\r\n\t\t\t\t$this->load->view('template/Footer');\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tredirect('laporan_gaji/report');\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\tredirect('/');\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "674fb1688e622b5deed5f7c0a35c4dd1", "score": "0.64949435", "text": "public function isi_t_kuota_matkul_pilihan(){\n\t\t$kode = $this->uri->segment(3);\n\t\t$data['data']= $this->m_jurusan->isi_t_edit_kuota_matkul_pilihan();\t\t\n\t\t$data['kelas'] = $this->m_aka->kelas();\t\t\n\t\t$data['content'] = 'pg_jurusan/isi_kuota_mata_kuliah_pilihan';\n\t\t$this->load->view('pg_jurusan/content',$data);\t\t\n\t}", "title": "" }, { "docid": "48263ece0249f08a410b9abd97d33397", "score": "0.6493677", "text": "public function detailsyaratakte($id){\n $data=array(\n \"title\"=>'Detail Unggah Syarat Pendaftaran akte',\n \"aktif\"=>\"syratakte\",\n \"bclass\"=>'',\n \"datapendaftaran\"=>$this->PendafAkteM->get_pendaftaranakte($id)->result(),\n \"dok\"=>$this->PendafAkteM->get_syarat($id)->result(),\n \"bclass\"=>\" \",\n $username=$this->session->userdata('user'),\n $peran=$this->session->userdata('peran'),\n );\n $data['body']= $this->load->view('detail_akte', $data, true);\n if ($peran=='2') {\n $data['aktif']=\"syaratakte\";\n $this->load->view('template_akte', $data);\n }else if($peran=='4') {\n $data['aktif']=\"adsyaratakte\";\n $data['bclass']=\" \";\n $this->load->view('template_admin', $data);\n }\n }", "title": "" }, { "docid": "04974530acea83a6bfdbd39a65d796a6", "score": "0.649004", "text": "function ijinLambat()\n {\n $data = array(\n 'judul' => \"BiasHRIS | Ijin Terlambat\",\n 'row' => $this->M_Aproject->get_lambat() \n ) ; \n $this->template->load('template','personal/v_terlambat',$data);\n }", "title": "" }, { "docid": "ead41bc644f508ade8990615ce799030", "score": "0.648448", "text": "function pelajaran(){\n $variabel['data'] = $this->m_pelajaran->lihatdata();\n $this->layout->renderakdp('back-end/akademik/presensi_pelajaran_p/v_pelajaran',$variabel,'back-end/akademik/presensi_pelajaran_p/v_pelajaran_js');\n }", "title": "" }, { "docid": "8b800530d359eebe4de01ef348c86342", "score": "0.64826614", "text": "function isak()\n {\n $data = array(\n 'judul' => \"BiasHRIS | Ijin Sakit\",\n 'row'=> $this->M_Aproject->get_sakit() \n ) ; \n $this->template->load('template','personal/v_sakit',$data);\n }", "title": "" }, { "docid": "f1e3f1ff6d5950b7b23c4b2411b5f3df", "score": "0.64805084", "text": "public function kelola_pelanggan() {\n\t\t$this->AgenModel->delete_rfid();\n\n\t\t$this->data['namaProvinsi'] = $this->AgenModel->get_list_provinsi();\n $this->data['namaKota'] = [];\n $this->data['namaKecamatan'] = [];\n\t\t$this->data['namaKelurahan'] = [];\n\t\t$this->load->view('agen/v_masyarakat', $this->data);\n\t}", "title": "" }, { "docid": "2843ae6b856b893630b64d858eff045b", "score": "0.6473476", "text": "function showReturRusak($id_retur = null) {\n $sessionReturRusak = $this->db->get_where('temp_retur_rusak', array('id_user' => $this->id_user))->row();\n if (empty($sessionReturRusak)) {\n //jika kosong artinya ini adalah transaksi baru // user ini tidak memiliki tanggungan transaksi yang belum selesai\n echo $this->tr->showReturRusak($id_retur);\n } else {\n //jika sudah ada maka cek apakah di header transaksi h retur rusak id retur ini telah di selesaikan oleh user yang lain jika sudah maka temporari dihapus dan ditampilkan sesuai dengan id yang dipilih\n //jika tidak ada maka tampilkan data yang ada ditemporari terlebih dahulu\n $cekHReturRusak = $this->db->get_where('h_retur_rusak', array('idh_retur' => $sessionReturRusak->idh_retur))->row();\n if (empty($cekHReturRusak)) {\n //jika kosong maka tampilkan data dalam temporari/ artinya belum di selesaikan oleh user lain\n // echo 'ifpertama';\n\t\t\t\techo $this->tr->showTempReturRusak(@$sessionReturRusak->idh_retur, 'kedua');\n } else {\n //delete temporari dan tampilkan data sesuai dengan yang dipilih oleh user\n // echo 'ifkedua';\n\t\t\t\t$this->db->delete('temp_retur_rusak', array('idh_retur' => $sessionReturRusak->idh_retur, 'id_user' => $this->id_user));\n echo $this->tr->showTempReturRusak($id_retur, 'kedua'); //kedua karena yang pertama adalah berada di event showTempReturRusak\n }\n }\n }", "title": "" }, { "docid": "5459bc633a34088481ff326fa41d67c5", "score": "0.646693", "text": "function tampildata($view){\r\n include 'kripto.php';\r\n $kript = new Kriptografi();\r\n //melakukan filter terhadap data yang ditampilkan pada tabel\r\n if ($view == 'semua') {\r\n $query = mysqli_query($this->conn,\"SELECT * FROM penitipan\");\r\n } elseif ($view == 'belumdiambil') {\r\n $query = mysqli_query($this->conn,\"SELECT * FROM penitipan WHERE tglambil = '0-0`000`00``0-``'\");\r\n } else {\r\n $query = mysqli_query($this->conn,\"SELECT * FROM penitipan WHERE tglambil != '0-0`000`00``0-``'\");\r\n }\r\n $hasil = null;\r\n\r\n while($data = mysqli_fetch_array($query)){\r\n foreach ($data as $key => $value) {\r\n //melakukan dekripsi data\r\n if ($key != 'kodetitip' && $key != 'jlhbarang') {\r\n $kript->setWord($value, 'dekripsi');\r\n $data[$key] = $kript->getPlain();\r\n }\r\n }\r\n $hasil[] = $data;\r\n }\r\n return $hasil;\r\n \r\n }", "title": "" }, { "docid": "73b9d6216ec3a282722d98f8e7b4bdb9", "score": "0.6465334", "text": "public function koordinatjalan()\n {\n $data=array(\n 'title'=>'Admin Panel',\n 'judul'=>'Kordinat Jalan',\n 'active_Kordinat'=>'active',\n\t\t\t'itemkoordinatjalan'=>$this->model_koordinatjalan->getAll(),\n\t\t\t'itemdatajalan'=>$this->model_jalan->getAll(),\n );\n\t\t$data['admin'] = $this->db->get_where('admin', ['email' => $this->session->userdata('email')])->row_array();\n\n\t\t$this->load->view('element/admin_header', $data);\n\t\t$this->load->view('element/admin_sidebar', $data);\n\t\t$this->load->view('element/admin_topbar', $data);\n\t\t$this->load->view('admin/v_kordinatjalan', $data);\n\t\t$this->load->view('element/admin_footer');\n\t}", "title": "" }, { "docid": "e7e94ccc9055c2ca2df16d0d0261d014", "score": "0.6463176", "text": "function pengajuan_iri($no_ipd='',$keterangan) {\t\t\n\t\t$CI =& get_instance(); \n\t\t$CI->load->model('bpjs/Mbpjs','',TRUE);\t\t\t\n\t\t$bpjs_config = $CI->Mbpjs->get_data_bpjs();\n\t\t$login_data = $CI->load->get_var(\"user_info\");\t\t\n\t\t$ppk_pelayanan = $bpjs_config->rsid;\t\t\t\t\t\t\t\t\t\n\t\t$timestamp = time();\n\t\t$signature = hash_hmac('sha256', $bpjs_config->consid . '&' . $timestamp, $bpjs_config->secid, true);\n\t\t$encoded_signature = base64_encode($signature);\n\t\t$data_pelayanan = $CI->Mbpjs->show_pelayanan_iri($no_ipd);\t\t\t\t\t\t\t\t\n\n \tif ($data_pelayanan == '' || is_null($data_pelayanan)) {\t\t\t\n\t\t\t$result_error = array(\n\t \t\t'metaData' => array('code' => '404','message' => 'Data pelayanan tidak ditemukan.'),\n\t \t\t'response' => ['peserta' => null]\n\t \t);\n\t\t\treturn json_encode($result_error);\n\t\t}\t\t\n \t\n\t\t$data = array(\n\t\t \t'request'=>array(\n\t\t \t\t't_sep'=>array(\n\t\t \t\t\t'noKartu' => $data_pelayanan->no_kartu,\n\t\t \t\t\t'tglSep' => date('Y-m-d',strtotime($data_pelayanan->tgl_masuk)),\t\t \t\t\t\n\t\t \t\t\t'jnsPelayanan' => '1',\t\t \t\t\t\n \t'keterangan' => $keterangan, \t\n \t'user' => $login_data->username\t\t \t\t\t\t\t \t\t\t\n\t\t \t\t)\n\t\t \t)\n\t\t);\n\t\t\n\t\t$data_pengajuan = json_encode($data);\t\t\n\t\t$http_header = array(\n\t\t 'Accept: application/json',\n\t\t 'Content-type: application/x-www-form-urlencoded',\n\t\t 'X-cons-id: ' . $bpjs_config->consid,\n\t\t 'X-timestamp: ' . $timestamp,\n\t\t 'X-signature: ' . $encoded_signature\n\t\t);\n\t\t$timezone = date_default_timezone_get();\n\t\tdate_default_timezone_set($timezone);\n $ch = curl_init($bpjs_config->service_url . 'Sep/pengajuanSEP');\n curl_setopt($ch, CURLOPT_POST, true);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $data_pengajuan);\n curl_setopt($ch, CURLOPT_HTTPHEADER, $http_header);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $result = curl_exec($ch);\n curl_close($ch); \n\n if ($result == '' || is_null($result)) {\n\t\t\t$result_error = array(\n \t\t'metaData' => array('code' => '503','message' => 'Koneksi Gagal'),\n \t\t'response' => null\n\t \t);\n\t\t\treturn json_encode($result_error);\n\t\t} else {\t\t \t\n\t\t\treturn $result;\n\t\t}\n\t}", "title": "" }, { "docid": "305cb452ce4649097a4e43bbfbdea8db", "score": "0.6461816", "text": "function berinamapemilik($pemilik){\n $this->nama_pemilik=$pemilik;\n }", "title": "" }, { "docid": "78e11ce09237e55676ec701c5b6b2a99", "score": "0.6460282", "text": "function tampil_pemaparan(){\n \n $data['data_krenova']=$this->M_admin->tampil_data_pemaparan($data); \n $this->load->view('admin/data_pemaparan',$data);\n }", "title": "" }, { "docid": "823ff609a0dae551e19df7503f5da035", "score": "0.64598656", "text": "public function laporan_keuangan(){\n $data1['title'] = 'Manager';\n $data1['user'] = $this->db->get_where('t_user',['username'=>$this->session->userdata('username')])->row_array();\n $awal = $this->input->post('awal');\n $akhir = $this->input->post('akhir');\n $data['rekening'] = $this->db->get('t_rekening')->result_array();\n $data['laporan_keuangan'] = $this->KeuanganModel->laporan_keuangan()->result_array();\n $this->load->view('templates/header', $data1);\n $this->load->view('manager/laporan_keuangan',$data);\n $this->load->view('templates/footer');\n }", "title": "" }, { "docid": "03a831ce6033a43d5e5142b9ebec69b1", "score": "0.64567363", "text": "function tampil_pemenang(){\n \n $data['data_krenova']=$this->M_admin->tampil_data_pemenang($data); \n $this->load->view('admin/data_pemenang',$data);\n }", "title": "" }, { "docid": "5f48d5611fc9beee3803f9792885a8d6", "score": "0.64542276", "text": "public function index($id_jadwal_pendakian = NULL)\r\n\t{\r\n\t\t$id = $this->session->userdata('id_user');\r\n\r\n\t\t// id berdasarkan user yang login\r\n\t\t$data['grup_pendaki'] = $this->grup_pendaki->grup_by_id($id);\r\n\t\t$data['email'] = $this->grup_pendaki->email_by_id($id);\r\n\t\t$data['boking'] = $this->jadwal_pendakian->get_id_jadwal_pendakian($id_jadwal_pendakian);\r\n\t\t$data['total_pendaki'] = $this->boking->total_pendaki(6);\r\n\t\t$this->template->pendaki('boking','script', $data);\r\n\t}", "title": "" }, { "docid": "92e57f83dbb8d42fda22d7fe6f6af3bb", "score": "0.64450157", "text": "public function ubah()\n {\n $login = $this->session->userdata('login_karyawan');\n \n \t\tif($login != 'TRUE')\n {\n $this->session->sess_destroy();\n redirect(base_url('karyawan_login'));\n }\n /** Keamanan - Cek Session Login berakhir */\n \n $ktp = $this->session->userdata('ktp'); \n \n $id_tacit_knowledge = $this->uri->segment(3); \n \n /** Keamanan - Cek ada atau tidak ada nilai variabel ID Tacit Knowledge dimulai */\n if($id_tacit_knowledge == NULL)\n {\n redirect(base_url('capture/daftar'),'refresh');\n }\n /** Keamanan - Cek ada atau tidak ada nilai variabel ID Tacit Knowledge berakhir */\n \n /** Keamanan - Cek ada atau tidak ada Data Tacit Knowledge berdasarkan ID Tacit Knowledge dimulai */\n $cek_tacit = $this->Tacit_knowledge_model->profil_tacit_knowledge($id_tacit_knowledge)->num_rows(); \n if($cek_tacit == 0)\n {\n redirect(base_url('capture/daftar'),'refresh');\n }\n /** Keamanan - Cek ada atau tidak ada Data Tacit Knowledge berdasarkan ID Tacit Knowledge berakhir */ \n \n $data['id_tacit_knowledge'] = $id_tacit_knowledge;\n $data['judul_tacit_knowledge'] = $this->Tacit_knowledge_model->profil_tacit_knowledge($id_tacit_knowledge)->row()->judul;\n $data['profil_tacit_knowledge'] = $this->Tacit_knowledge_model->profil_tacit_knowledge($id_tacit_knowledge);\n $data['divisi'] = $this->Divisi_model->list_divisi(); \n $data['jabatan'] = $this->Jabatan_model->list_jabatan(); \n $data['content'] = 'karyawan/tacit_ubah'; \n \n $this->load->view('karyawan/template', $data); //Load View (Munculkan tampilan web)\n }", "title": "" }, { "docid": "91aa0e7a1d76c3ebca8c3c14b135d45b", "score": "0.6437393", "text": "function apakabar($nama, $kota){\n echo \"<h2>Apa kabar $nama dari $kota</h2>\";\n }", "title": "" }, { "docid": "54e0f483aa9d764675fa566390394a30", "score": "0.6433477", "text": "public function pemeriksaan_view($provinsi,$kabupaten,$tanggal_awal,$tanggal_akhir){\n\t\tif($provinsi!=\"\"){ $q_provinsi = \"and tabel_propinsi.no_kode_propinsi='$provinsi'\"; } else { $q_provinsi = \"\"; }\n\t\tif($kabupaten!=\"\"){ $q_kabupaten = \"and tabel_kabupaten_kota.id_urut_kabupaten in ($kabupaten)\"; } else { $q_kabupaten = \"\"; }\n\t\t\n\t\tif($tanggal_awal!='' and $tanggal_akhir!=''){\n\t\t\treturn $this->db->query(\"\n\t\t\tSELECT *\n\t\t\tFROM \n\t\t\t\ttabel_periksa_sarana_produksi, \n\t\t\t\ttabel_pen_pengajuan_spp,\n\t\t\t\ttabel_daftar_perusahaan,\n\t\t\t\ttabel_jenis_pangan,\n\t\t\t\ttabel_kemasan,\n\t\t\t\ttabel_kabupaten_kota,\n\t\t\t\ttabel_propinsi\n\t\t\tWHERE \n\t\t\t\ttabel_pen_pengajuan_spp.kode_r_perusahaan = tabel_daftar_perusahaan.kode_perusahaan and \n\t\t\t\ttabel_periksa_sarana_produksi.nomor_r_permohonan = tabel_pen_pengajuan_spp.nomor_permohonan and \n\t\t\t\ttabel_propinsi.no_kode_propinsi = tabel_kabupaten_kota.no_kode_propinsi $q_provinsi $q_kabupaten and \n\t\t\t\ttabel_daftar_perusahaan.id_r_urut_kabupaten=tabel_kabupaten_kota.id_urut_kabupaten and \n\t\t\t\ttabel_pen_pengajuan_spp.id_urut_jenis_pangan = tabel_jenis_pangan.id_urut_jenis_pangan AND\n\t\t\t\ttabel_pen_pengajuan_spp.kode_r_kemasan = tabel_kemasan.kode_kemasan AND\n\t\t\t\ttanggal_pemeriksaan>='\".$tanggal_awal.\"' and tanggal_pemeriksaan<='\".$tanggal_akhir.\"'\n\t\t\t\t$q_provinsi $q_kabupaten\n\t\t\tORDER BY id_urut_periksa_sarana_produksi desc\n\t\t\t\");\n\t\t} else {\n\t\t\treturn $this->db->query(\"\n\t\t\tSELECT *\n\t\t\tFROM \n\t\t\t\ttabel_periksa_sarana_produksi, \n\t\t\t\ttabel_pen_pengajuan_spp,\n\t\t\t\ttabel_daftar_perusahaan,\n\t\t\t\ttabel_jenis_pangan,\n\t\t\t\ttabel_kemasan,\n\t\t\t\ttabel_kabupaten_kota,\n\t\t\t\ttabel_propinsi\n\t\t\tWHERE \n\t\t\t\ttabel_pen_pengajuan_spp.kode_r_perusahaan = tabel_daftar_perusahaan.kode_perusahaan and \n\t\t\t\ttabel_periksa_sarana_produksi.nomor_r_permohonan = tabel_pen_pengajuan_spp.nomor_permohonan and \n\t\t\t\ttabel_periksa_sarana_produksi.status_delete = '0' and\n\t\t\t\ttabel_propinsi.no_kode_propinsi = tabel_kabupaten_kota.no_kode_propinsi $q_provinsi $q_kabupaten and \n\t\t\t\ttabel_daftar_perusahaan.id_r_urut_kabupaten=tabel_kabupaten_kota.id_urut_kabupaten and \n\t\t\t\ttabel_pen_pengajuan_spp.id_urut_jenis_pangan = tabel_jenis_pangan.id_urut_jenis_pangan AND\n\t\t\t\ttabel_pen_pengajuan_spp.kode_r_kemasan = tabel_kemasan.kode_kemasan\n\t\t\t\t$q_provinsi $q_kabupaten\n\t\t\tORDER BY id_urut_periksa_sarana_produksi desc\n\t\t\t\");\n\t\t}\n\t}", "title": "" }, { "docid": "134a0a6e3b9e71f7bfb444ee3c37aded", "score": "0.6428905", "text": "function cetaksertifikat()\n\t{\n\t\tif($this->input->post('op') == 'search'):\n\t\t\t$b_cet = 1;\n\t\t\t$nim = $this->input->post('nim');\n\t\t\t$get_jadwal = $this->lib_basic->get_jadwal('jad_diambil','semua','sr_en',$nim);\n\t\t\t$data_mhs = $this->lib_basic->get_data_reg($nim);\n\t\t\t\n\t\t\tforeach ($get_jadwal as $key => $value) {\n\t\t\t\tif ($value['NIL_ANGKA'] == '0'){\n\t\t\t\t\t$msg_cetak = '';\n\t\t\t\t\t$b_cet = 0;\n\t\t\t\t\t$msg_cetak .= \"- Nilai belum ada, silakan hubungi Petugas Input Nilai.<br>\";\n\t\t\t\t}\n\t\t\t\t//bisa dicetak\n\t\t\t\tif($b_cet){\n\t\t\t\t\t$dt_cet = $this->lib_basic->select('T_BANYCET','BC_KD ASC',array('PRE_USER' => $value['PRE_USER']));\n\t\t\t\t\tif($dt_cet){\n\t\t\t\t\t\t$msg_cetak = '';\n\t\t\t\t\t\t$hist_cetak = '';\n\t\t\t\t\t\tforeach ($dt_cet as $key_cet => $value_cet) {\n\t\t\t\t\t\t\t$hist_cetak .= '<li>Cetak ke-'.$value_cet['BC_KE'].' Tanggal: '.date('d/m/Y H:i:s',$value_cet['BC_TGL']).'</li>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$msg_cetak .= \"&nbsp&nbsp&nbsp Cetak ke- \";\n\t\t\t\t\t\t$max_cetak = max(array_values($dt_cet));\n\t\t\t\t\t\t$max_cetak_ke = $max_cetak['BC_KE'];\n\t\t\t\t\t\t$cetak_ke = (int)$max_cetak_ke + (int)1;\n\n\t\t\t\t\t\t$msg_cetak .= \"<select name='kerr' class=''>\";\n\t\t\t\t\t\t$msg_cetak .= \"<option value ='$cetak_ke'>$cetak_ke</option>\";\n\t\t\t\t\t\t$msg_cetak .= \"<option value ='$max_cetak_ke'>$max_cetak_ke</option>\";\n\t\t\t\t\t\t$msg_cetak .= \"</select>\";\n\t\t\t\t\t\t$msg_cetak .= \" Tanggal: \".date('d/m/Y').\", Keterangan: <input type='text' class=''>\";\n\t\t\t\t\t\t$msg_cetak .= \" <button style='margin-bottom:10px;' class='btn btn-small btn-inverse'><i class='icon-white icon-print'></i> Cetak Sertifikat</button>\";\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$cetak_ke = 1;\n\t\t\t\t\t\t$msg_cetak = '';\n\t\t\t\t\t\t$hist_cetak = '';\n\t\t\t\t\t\t$msg_cetak .= \"&nbsp&nbsp&nbsp Cetak ke \";\n\t\t\t\t\t\t$msg_cetak .= \"<select name='kerr' class=''>\";\n\t\t\t\t\t\t$msg_cetak .= \"<option value ='$cetak_ke'>$cetak_ke</option>\";\n\t\t\t\t\t\t$msg_cetak .= \"</select>\";\n\t\t\t\t\t\t$msg_cetak .= \" Tanggal: \".date('d/m/Y').\", Keterangan: <input type='text' class=''>\";\n\t\t\t\t\t\t$msg_cetak .= \" <button style='margin-bottom:10px;' class='btn btn-small btn-inverse'><i class='icon-white icon-print'></i> Cetak Sertifikat</button>\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$get_jadwal[$key]['hist_cetak'] = $hist_cetak;\n\t\t\t\t$get_jadwal[$key]['msg_cetak'] = $msg_cetak;\n\t\t\t}\n\t\t\tif($data_mhs){\n\t\t\t\t$m = array('get_jadwal' => $get_jadwal,'data_mhs' => $data_mhs[0],'kd_menu' => 'cetak');\n\t\t\t\t//print_r($m); die();\n\t\t\t\t$this->load->view('sertifikasi/operator/vw_tabel/tbl_jadwal_diambil_2',$m);\n\t\t\t}else echo \"<h2>Data tidak ditemukan.</h2>\";\n\t\telse:\n\t\t\t$m = array();\n\t\t\t$this->output69->output_display('sertifikasi/operator/view_cetaksertifikat',$m);\n\t\tendif;\n\t}", "title": "" }, { "docid": "70d3b9a38adbfc07729b18c7f9a8a863", "score": "0.6427225", "text": "function simpan_kategori_lowongan(){\n\t\tif ($this->session->userdata('LEVEL') == 'Administrator') { \n\t\t\t\n\t\t\t$id_kategori['id_kategori']= $this->input->post('id_kategori');\n\t\t\t$kategori['nama_kategori'] = $this->input->post('nama_kategori'); \n\t\n\t\t\t$this->db->update('tbl_master_kategori_lowongan', $kategori, $id_kategori);\n\t\t\t\n\t\t\theader('location:'.base_url().'pengaturan');\n\t\t}\n\t}", "title": "" }, { "docid": "3d1028c6296a05aa46355a31f63a22f7", "score": "0.6424212", "text": "function LaporanBulanan()\n {\n $AddtionalData = array();\n $BulanTahun = $_GET[\"BulanTahun\"];\n $RentangWaktu = $_GET[\"RentangWaktu\"];\n $TotalPerson = $_GET[\"TotalPerson\"];\n $TotalHargaGross = $_GET[\"TotalHargaGross\"];\n $TotalHargaNet = $_GET[\"TotalHargaNet\"];\n $TotalKendaraan =$_GET[\"TotalKendaraan\"];\n \n $AddtionalData[] = array(\"Jumlah Peserta : $TotalPerson\");\n $AddtionalData[] = array(\"Total Harga Gross : $TotalHargaGross\");\n $AddtionalData[] = array(\"Total Harga Net : $TotalHargaNet\");\n $AddtionalData[] = array(\"Total Kendaraan : $TotalKendaraan\");\n \n $Condition = ConditionRentangWaktu($RentangWaktu);\n $sql = \"SELECT DATE_FORMAT(a.TanggalReservasi, '%d-%l-%Y') AS `Tanggal Reservasi`, DATE_FORMAT(a.JamReservasi, '%h:%i') AS `Jam Reservasi`, c.Organizer, d.TipeCustomer AS `Tipe Customer`, \n\t\t\t\t\te.Kota,\n \ta.JumlahPeserta AS `Jumlah Peserta`, bb.JumlahItem AS `Jumlah Item`, bb.TotalHarga AS `Total Harga(gross)`,\n \ta.Discount, bb.TotalHarga-a.Discount AS `Total Harga(net)`,\n \ta.NoBill AS `No Bill`, b.Nama, b.NoHandphone AS `No Handphone`,\n \ta.JumlahKendaraan AS `Jumlah Kendaraan`, a.Notes\n \tFROM tb_reservasi a\n \tINNER JOIN \n \t\t(SELECT SUM(JumlahItem) AS 'JumlahItem', IdReservasi, SUM(Harga*JumlahItem) AS 'TotalHarga' \n \t\t\tFROM tb_detailreservasi GROUP BY IdReservasi) bb ON a.IdReservasi = bb.IdReservasi\n \tLEFT JOIN tb_person b ON a.IdPerson = b.IdPerson\n \tLEFT JOIN tb_organizer c ON b.IdOrganizer = c.IdOrganizer\n \tLEFT JOIN tb_tipecustomer d ON c.IdTipeCustomer = d.IdTipeCustomer\n \tLEFT JOIN tb_kota e ON c.IdKota = e.IdKota\n WHERE a.TanggalReservasi LIKE '$BulanTahun%' AND a.IdStatusReservasi = '4'\".$Condition.\"ORDER BY a.TanggalReservasi\";\n \n \n \n $data = ReadDataManyRow($sql);\n \n $DocumentTitle = \"Data Kunjungan Tamu Restaurant Soka Indah \".KonversiTanggal(\"M Y\", $BulanTahun);\n $FileName = 'Data Kunjungan Tamu '.$BulanTahun;\n \n GenerateExcel($data, $DocumentTitle, $FileName, $AddtionalData);\n }", "title": "" }, { "docid": "e938a010420cf7c351e2cc9a9a17bc18", "score": "0.6422312", "text": "function tambah_prekursor(){ \n $data['title'] = 'Tambah Surat';\n\t\t$data['kodeunik'] = $this->m_surat->getkodeunikpre(); \n\t\t$data['dataobat'] = $this->m_surat->get_obat_prekursor(); \n\t\t$data['datasupp'] = $this->m_surat->get_supp();\n\t\t$data['query'] = $this->m_barang->tampil_satuan();\n\t\t$data['querys'] = $this->m_barang->tampil_satuan_sedia();\n\n\t\t$where = array('kode_trx' => $this->m_surat->getkodeunikpre());\n\n $data['datas'] = $this->m_surat->get_bydataprekursor($where);\n\n $tanggal = date('Y-m-d');\n $Pecah = explode( \"-\", $tanggal );\n\n for ( $i = 0; $i < count( $Pecah ); $i++ ) {\n $Pecah[$i];\n $thn = $Pecah[0];\n $bln = $Pecah[1];\n $tgl = $Pecah[2];\n }\n\n $data['saran'] = $this->m_supplier->saran_supplier($bln,$thn);\n\n $this->template->load('static','pesanan/tambahsuratprekursor', $data);\n }", "title": "" }, { "docid": "850203578e47753290260944513ff6bc", "score": "0.64222187", "text": "public function Kuota_mata_kuliah_pilihan(){\n\t\tif($this->input->post('src')){\n\t\t\t$this->session->set_userdata('src',$this->input->post('src'));\n\t\t\t$this->session->set_userdata('status',\"aktif\");\n\t\t}else{\n\t\t\t$this->session->set_userdata('status',\"tidak\");\n\t\t}\n\t\t$data['data'] = $this->m_jurusan->kuota_mata_kuliah_pilihan(); \n\t\t$data['pagination'] = $this->pagination->create_links();\n\t\t$data['content'] = 'pg_jurusan/kuota_mata_kuliah_pilihan';\n\t\t$this->load->view('pg_jurusan/content', $data);\n\t}", "title": "" } ]
cad0cdd442b82cda81f3965493040e67
SELECT TABLE_NAME FROM INFORMATION_SCHEMA.tables WHERE TABLE_SCHEMA='pyinia';
[ { "docid": "d42590cf398d7f4df8c94fb39a374a9e", "score": "0.0", "text": "public function getTablesBD(){\n $bd=$this->db->database;\n $this->db->select('TABLE_NAME as tabla');\n $this->db->from('INFORMATION_SCHEMA.tables');\n $this->db->where([\"TABLE_SCHEMA\"=>$bd]);\n $this->db->order_by('TABLE_NAME', 'asc');\n $result = $this->db->get()->result_array();\n echo json_encode($result);\n }", "title": "" } ]
[ { "docid": "3742cde294ff23aedc55cbe0047e8011", "score": "0.7341959", "text": "function getTablename(){\n $ci = & get_instance();\n $ci->load->database();\n $query = $ci->db->query(\"SELECT table_name FROM information_schema.tables WHERE table_schema = 'anjwekhs_anjwebtech_pms'\");\n return $query->result_array();\n}", "title": "" }, { "docid": "7d07f6be09411bac188fdf7662829852", "score": "0.70430917", "text": "function getTables() {\n return mysql_query('SHOW TABLES');\n }", "title": "" }, { "docid": "8180457d306c84db1305008579a77065", "score": "0.7023", "text": "function Table_Names(){\n\t\t$database=DatabaseName();\n\t\t$tables = array();\n\t\t$list_tables_sql = \"SHOW TABLES FROM {$database};\";\n\t\t$result = mysql_query($list_tables_sql);\n\t\tif($result){\n\t\t\twhile($table = mysql_fetch_row($result))\n\t\t\t{\n\t\t\t\t$tables[] = $table[0];\n\t\t\t}\n\t\t}\n\t\treturn $tables;\n\t}", "title": "" }, { "docid": "b046b5bdb1d21bc9c94183602e6de6ae", "score": "0.70211977", "text": "public function getTables(){\n $pdo = $this->pdo;\n $statement = $pdo->prepare(\"SHOW TABLES FROM $this->name;\");\n $statement->execute();\n $tables = $statement->fetchAll($pdo::FETCH_NUM);\n foreach($tables as &$table)\n $table = $table[0];\n return $tables;\n }", "title": "" }, { "docid": "3cfd2ed0fbe49ba2faa8b2bb5db4f79f", "score": "0.699852", "text": "function get_chado_table_list() {\n $sql_table_list = \"SELECT table_name FROM information_schema.tables WHERE table_schema = 'chado' ORDER BY table_name;\";\n $result_table = db_query($sql_table_list);\n $input_table = $result_table->fetchAll();\n $table_list = [];\n foreach ($input_table as $value) {\n $table_list[] = $value->table_name;\n }\n return $table_list;\n}", "title": "" }, { "docid": "3b87d098c5dd203adc39a3c0ebdc826c", "score": "0.69690675", "text": "function tableNames() {\n\t\treturn \"SELECT name FROM sqlite_master WHERE type='table' AND name!='sqlite_sequence' ORDER BY name\";\n\t}", "title": "" }, { "docid": "4fb119f31b96c2ebb4eaccffa2b6f1fa", "score": "0.6940684", "text": "function getTableNames() {\n\n //Gets tablenames from the database\n Global $serverInfo;\n $conn = connect();\n $sql = \"SHOW TABLES FROM \" . $serverInfo[3];\n $result = $conn->query($sql);\n\n //Outputs data if information was found\n $tableArray = [];\n if ($result->num_rows > 0) {\n\n //Writes found data into an array\n $i = 0;\n while ($row = $result->fetch_assoc() ) {\n $tableArray[$i] = $row[\"Tables_in_\" . $serverInfo[3] ];\n $i++;\n }\n return $tableArray;\n }\n}", "title": "" }, { "docid": "12ed77c9a118a6cde43fa0064340ec92", "score": "0.6898562", "text": "private function getDBSchema(){\n\n return \\DB::query('\n SELECT table_name \n FROM information_schema.tables\n WHERE table_type=\"BASE TABLE\" AND table_schema=\"'.\\App::config('DB_DB').'\"\n ');\n\n }", "title": "" }, { "docid": "5c85e5aa04d4e5c58bdabe2d78fe01a9", "score": "0.6896455", "text": "public function getTables()\n {\n\treturn $this->query('select [name] from [tables]');\n }", "title": "" }, { "docid": "61fb1c7e74e5c758ab1971608ba3de6e", "score": "0.684844", "text": "public function getTables() {\n\t\treturn $this->adapter->getCol( \"SELECT name FROM sqlite_master\n\t\t\tWHERE type='table' AND name!='sqlite_sequence';\" );\n\t}", "title": "" }, { "docid": "edd7dbe9fd677b96f6931f5123d24c75", "score": "0.6846675", "text": "public function getAllTables()\n {\n return $this->fetchColumn(\"SHOW TABLES\");\n }", "title": "" }, { "docid": "43f50825dc15f60c0c06aff3d761e949", "score": "0.68219745", "text": "public function get_schema()\r\n\t{\r\n\t\t return $this->sql_select_exe('SELECT * FROM sys.Tables', NULL);\r\n\t}", "title": "" }, { "docid": "921a6c9dd69b674c1d677ef189349b99", "score": "0.68060637", "text": "function get_tables() {\r\n\t\t$tables = $this->query_array('SHOW TABLES');\r\n\t\t$table_names = array();\r\n\r\n\t\tforeach ($tables as $table) {\r\n\t\t\t$table_name = current($table);\r\n\r\n\t\t\t$table_names[$table_name] = $table_name;\r\n\r\n\t\t}\r\n\r\n\t\treturn $table_names;\r\n\r\n\t}", "title": "" }, { "docid": "047208d77b460eaba0688f39e5b9be52", "score": "0.6800072", "text": "public function getTableNames()\n {\n $query = \"\n SELECT DISTINCT\n TABLE_NAME\n FROM INFORMATION_SCHEMA.TABLES\n WHERE\n TABLE_TYPE='BASE TABLE' AND\n TABLE_SCHEMA = ?\n ORDER BY TABLE_NAME\n \";\n\n $query = \"\n select\n RDB$RELATION_NAME as TABLE_NAME\n from RDB$RELATIONS\n where\n ((RDB$RELATION_TYPE = 0) or\n (RDB$RELATION_TYPE is null)) and\n (RDB$SYSTEM_FLAG = 0)\n order by (RDB$RELATION_NAME)\n \";\n\n\n $statement = $this->pdo->prepare($query);\n $statement->execute(array($this->getSchema()));\n\n $tableNames = array();\n while ($tableName = $statement->fetchColumn(0)) {\n $tableNames[] = $tableName;\n }\n\n return $tableNames;\n }", "title": "" }, { "docid": "81fbdcbb148c38b31a1a94a431c3b154", "score": "0.6792864", "text": "function sql_list_tables() {\n\t$sql = sql_connect();\n\tif( !$sql ){\n\t\treturn false;\n\t}\n\t$query = 'SHOW TABLES';\n\tsql_dump($query);\n\t$query = $sql->query($query);\n\treturn $query->fetchAll(PDO::FETCH_COLUMN);\n}", "title": "" }, { "docid": "2fbf831eb5d2f315f48dbe958124e855", "score": "0.6792626", "text": "function raw_db_list_database_tables()\r\n{\r\n global $g_current_db;\r\n\r\n $tables = array();\r\n $sql = \"SELECT name FROM sqlite_master WHERE (type = 'table')\";\r\n $res = sqlite_query($g_current_db, $sql);\r\n if ($res) {\r\n while (sqlite_has_more($res)) {\r\n $tables[] = sqlite_fetch_single($res);\r\n }\r\n } else return false;\r\n return $tables;\r\n}", "title": "" }, { "docid": "b86a71c85060ece1c54f1449f593fd75", "score": "0.6777166", "text": "function dbTablesName() {\n $data = array();\n $tablesname = mysql_list_tables(DB_DATABASE);\n\n $i = 0;\n //var_dump($tablesname);\n while ($row = mysql_fetch_array($tablesname)) {\n if ($row[0] <> \"admin\" && $row[0] <> \"grid\")\n $data[$i] = $row[0];\n\n $i++;\n }\n\n return $data;\n }", "title": "" }, { "docid": "723382708cfab1bbfc09c5c336dac4de", "score": "0.6771053", "text": "function get_managerDB_base_tableNames(){\n global $msManager_link, $managerDBname;\n $tableNameArr = array();\n $sql = \"SHOW TABLES FROM $managerDBname\";\n $result = mysqli_query($msManager_link, $sql);\n if($result){\n while($row = mysqli_fetch_row($result)){\n if(!strstr($row[0], 'SearchResults') && !strstr($row[0], 'SearchTasks') && !strstr($row[0], 'Plate_Conf')){\n array_push($tableNameArr, $row[0]);\n } \n }\n mysqli_free_result($result);\n }\n if($tableNameArr){\n return $tableNameArr;\n }else{\n return 0;\n } \n}", "title": "" }, { "docid": "dda387640000a4621f052f41e98349e4", "score": "0.67408794", "text": "public function getTables() {\n $stmt = $this->pdo->query(\"SELECT table_name \n FROM information_schema.tables \n WHERE table_schema= 'public' \n AND table_type='BASE TABLE'\n ORDER BY table_name\");\n $tableList = [];\n while ($row = $stmt->fetch(\\PDO::FETCH_ASSOC)) {\n $tableList[] = $row['table_name'];\n }\n \n return $tableList;\n }", "title": "" }, { "docid": "65c49eaf823cef9a281f3da05e7d7f12", "score": "0.6732346", "text": "private static function getTable(): string\n {\n return DB_TABLES[static::class];\n }", "title": "" }, { "docid": "e1f3f9d39fc262faa68293d313f27003", "score": "0.6716304", "text": "private function getTableNames(){\n $exceptions = array_merge(\n self::EXCEPTION_TABLES,\n explode(\",\",str_replace(' ','',$this->params['exceptions']))\n );\n $exceptions = array_filter($exceptions);\n $this->tables = DB::table('information_schema.tables')->select([\n 'table_name'\n ])->where('table_schema','public')->whereNotIn('table_name',$exceptions)->get();\n }", "title": "" }, { "docid": "34b470ed632b124cdf34b38ed6332c95", "score": "0.6700189", "text": "public function list_tables(){\n\t\treturn $this->fetch_all(\"SHOW TABLES\");\n\t}", "title": "" }, { "docid": "bc6cdb4c227ed2bdfc3385b7787e9b76", "score": "0.66555214", "text": "public function getTableNames();", "title": "" }, { "docid": "5b1544cdaafc51a9b95ff5d0bde94742", "score": "0.664964", "text": "function table_list()\n{\n\t//TODO - a similar function is in db_verify.php. Should probably all be moved to mysql_class.php.\n\n\t$exclude = array();\n\t$exclude[] = \"core\";\n\t$exclude[] = \"rbinary\";\n\t$exclude[] = \"parser\";\n\t$exclude[] = \"tmp\";\n\t$exclude[] = \"online\";\n\t$exclude[] = \"upload\";\n\t$exclude[] = \"user_extended_country\";\n\t$exclude[] = \"plugin\";\n\n\t$coreTables = e107::getDb()->db_TableList('nolan');\n\n\t$tables = array_diff($coreTables,$exclude);\n\n\tforeach($tables as $e107tab)\n\t{\n\t\t$count = e107::getDb()->gen(\"SELECT * FROM #\".$e107tab);\n\n\t\tif($count)\n\t\t{\n\t\t\t$tabs[$e107tab] = $count;\n\t\t}\n\t}\n\n\treturn $tabs;\n}", "title": "" }, { "docid": "9cef0a53a887c3ac3705ef96cb349347", "score": "0.6635346", "text": "public function get_tables() {\r\n\t\t$tables = $this->query_select ( \"SHOW TABLES;\", \"num\" );\r\n\t\tif (! function_exists ( '__tmp_huy_db_tables' )) {\r\n\t\t\tfunction __tmp_huy_db_tables($val) {\r\n\t\t\t\treturn $val [0];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn array_map ( '__tmp_huy_db_tables', $tables );\r\n\t}", "title": "" }, { "docid": "a72741ccc0601029d7dde816a9588294", "score": "0.66314507", "text": "public function get_tables()\n\t{\n\t\treturn $this->driver_query('table_list');\n\t}", "title": "" }, { "docid": "b261b12e16d6e015e01d661ec7f99577", "score": "0.6613636", "text": "function get_all_tables_in_schema($schema) {\n\t\t$sql = \"\n\t\t\tSELECT\n\t\t\t\ttable_name\n\t\t\tFROM\n\t\t\t\tinformation_schema.tables\n\t\t\tWHERE\n\t\t\t\ttable_schema = '\" .$schema . \"'\n\t\t\t;\";\n\t\t$ret = $this->pgdatabase->execSQL($sql, 4, 0);\n\t\t$result = pg_fetch_all($ret[1]);\n\t\t//$result = (!empty($result)) ? array_column($result, 'table_name') : array();\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "08f16061dd9347d51ee84913c875d302", "score": "0.659857", "text": "public function admin_get_tables() {}", "title": "" }, { "docid": "08f16061dd9347d51ee84913c875d302", "score": "0.6597808", "text": "public function admin_get_tables() {}", "title": "" }, { "docid": "0f731bd9ae16407ddc79e517e706e333", "score": "0.6588007", "text": "public function table_name(){\n $q = \"SHOW FULL TABLES FROM \".DATABASE;\n $re = $this->Request_model->peticion($q);\n $tabla = array();\n for ($i=0; $i <count($re) ; $i++):\n $db = 'Tables_in_'.DATABASE;\n $value = $re[$i][$db];\n $tabla[] = $value;\n endfor; \n return $tabla;\n }", "title": "" }, { "docid": "901a672671a2a364815bfe0c2df954b0", "score": "0.6587716", "text": "public function getTables() {\n $stmt = $this->pdo->query(\"SELECT table_name \n FROM information_schema.tables \n WHERE table_schema= 'public' \n AND table_type='BASE TABLE'\n ORDER BY table_name\");\n $tableList = [];\n while ($row = $stmt->fetch(\\PDO::FETCH_ASSOC)) {\n $tableList[] = $row['table_name'];\n }\n\n return $tableList;\n }", "title": "" }, { "docid": "c0632f25f6ca508f5480aa61545c8022", "score": "0.6580501", "text": "public function qsGetDbTables()\n {\n $sql = 'show tables';\n $d = $this->qExecPluck($sql);\n\n return $d;\n }", "title": "" }, { "docid": "0fa2da06067a25f974295c910980e3c5", "score": "0.6569285", "text": "function m2p_get_tables($prefix='')\n{\n $tables = array();\n\n $query = '\nSHOW TABLES\n;';\n $result = pwg_query($query);\n\n while ($row = pwg_db_fetch_row($result))\n {\n if (preg_match('/^'.$prefix.'/', $row[0]))\n {\n $tables[] = $row[0];\n }\n }\n\n return $tables;\n}", "title": "" }, { "docid": "29d67c957f36287850d1dd835cd04d38", "score": "0.65655595", "text": "public static function tables()\n {\n $tables = false;\n //\n $Tables = Driver::read('SHOW TABLES', Driver::INDEX);\n // die(var_dump($Tables));\n //\n foreach ($Tables as $row) {\n $target_tables[] = $row[0];\n }\n //\n if ($tables !== false) {\n $target_tables = array_intersect($target_tables, $tables);\n }\n //\n return $target_tables;\n }", "title": "" }, { "docid": "1def98b2d4b99a4909d510dcf3ac6350", "score": "0.6563658", "text": "function diy_get_all_tables($connection = null) {\n\t\treturn collect(DB::connection($connection)->select('show tables'))->map(function ($val) {\n\t\t\tforeach ($val as $tbl) return $tbl;\n\t\t});\n\t}", "title": "" }, { "docid": "b5342fc792b52176810d665569cb14c1", "score": "0.6560542", "text": "function get_tables()\n{\n $tableList = array();\n $res = mysqli_query($this->conn,\"SHOW TABLES\");\n while($cRow = mysqli_fetch_array($res))\n {\n $tableList[] = $cRow[0];\n }\n return $tableList;\n}", "title": "" }, { "docid": "62cec592785128ecdc95aa3737dd855c", "score": "0.6558214", "text": "function get_tables($database_connection) {\r\n\r\n $tables = array();\r\n $result = mysqli_query($database_connection, \"SHOW TABLES\");\r\n\r\n $rows = array();\r\n while($row = mysqli_fetch_assoc($result)) {\r\n array_push($rows, $row);\r\n }\r\n\r\n $tables_in_database_name_array = array_keys($rows[0]); // This exists solely for the purpose of getting $tables_in_database_name\r\n $tables_in_database_name = $tables_in_database_name_array[0];\r\n\r\n for($i = 0; $i < count($rows); $i++) {\r\n array_push($tables, $rows[$i][$tables_in_database_name]);\r\n }\r\n\r\n return $tables;\r\n }", "title": "" }, { "docid": "323384564cc9345e8f07b684a7cde4b8", "score": "0.6538069", "text": "public function listTables() {\r\n\t\tswitch ($this->getDbtype()) {\r\n\t\t\tcase 'mysql':\r\n\t\t\t\t$sql = \"SHOW FULL TABLES WHERE TABLE_TYPE = 'BASE TABLE'\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'pgsql':\r\n\t\t\t\t$sql = \"SELECT CONCAT(table_schema,'.',table_name) AS name FROM information_schema.tables \r\n WHERE table_type = 'BASE TABLE' AND table_schema NOT IN ('pg_catalog','information_schema')\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'sqlite':\r\n\t\t\t\t$sql = 'SELECT name FROM sqlite_master WHERE type = \"table\" AND name != \"sqlite_sequence\"';\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'mssql':\r\n\t\t\t\t$sql = \"SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE'\";\r\n\t\t\tcase 'oracle':\r\n\t\t\t\t$sql = \"SELECT * FROM dba_tables\";\r\n\t\t\tdefault:\r\n\t\t\t\tthrow new Exception($this->getDbtype() . ' does not support listing table');\r\n\t\t}\r\n\t\t$result = $this->query($sql);\r\n\t\t$result->setFetchMode(PDO::FETCH_NUM);\r\n\t\t$meta = array();\r\n\t\tforeach ($result as $row) {\r\n\t\t\t$meta[] = $row[0];\r\n\t\t}\r\n\t\treturn $meta;\r\n\t}", "title": "" }, { "docid": "e4a25ee021534783e3ae6dcd8945c834", "score": "0.6518909", "text": "function table_exists($table){\n\t\t$table = strtolower($table);\n\t\t$num = $this->fetch_one(\"select count(*) from information_schema.tables where table_schema = 'public' and table_name='$table'\");\n\t\treturn $num[0];\n\t}", "title": "" }, { "docid": "c78989ed24fb90a67a51d66f96ad0d4e", "score": "0.6514683", "text": "function mysql_table_exists($tablename) {\n\t$tables = array();\n\t$tablename = escape_data($tablename);\n\t$query = \"SHOW TABLES FROM DB_NAME LIKE '$tablename'\";\n\t$result = mysqli_query($dbc, $query);\n\tif ($result){\n\t\twhile ($row = mysqli_fetch_array($result, MYSQLI_NUM)) {\n\t\t\t$tables = $row[0];\n\t\t}\n\t} else {\n\t\t$tables = NULL;\n\t}\n\n\treturn $tables;\n}", "title": "" }, { "docid": "5c91236cb5b881107b012e9affcaf8fb", "score": "0.6497353", "text": "public function getDatabaseTables()\n {\n\n $db_name = $this->db->database;\n\n $show_table_query = $this->db->query(\"SHOW TABLES from $db_name\");\n\n $table_result = $show_table_query->result_array();\n\n $table_list = [];\n\n foreach($table_result as $key => $val) {\n $table_list[] = $val['Tables_in_' . $db_name];\n }\n\n return $table_list;\n }", "title": "" }, { "docid": "175c1c07a783b711476e362e066fabfa", "score": "0.64894843", "text": "public function list_tables() {\n try {\n $sql = \"SHOW TABLES\";\n $result = $this->conn->query($sql);\n //return $result->fetchAll(PDO::FETCH_NUM);\n\n $tables = array();\n foreach($result as $row) {\n //echo $row[0].\"<br>\";\n array_push($tables, $row[0]);\n }\n return $tables;\n\n } catch (PDOException $e) {\n echo(\"DB ERROR: \".$e->getMessage());\n }\n }", "title": "" }, { "docid": "edc2b721bec87631bb9950a22515eefe", "score": "0.64862174", "text": "function get_table_list() {\n $sql_public_table_list = \"SELECT table_name FROM information_schema.tables WHERE (table_schema = 'public') ORDER BY table_name\";\n $sql_chado_table_list = \"SELECT table_name FROM information_schema.tables WHERE (table_schema = 'chado') ORDER BY table_name\";\n $public_table_results = db_query($sql_public_table_list)->fetchAll();\n $chado_table_results = db_query($sql_chado_table_list)->fetchAll();\n\n $public_tables = [];\n $chado_tables = [];\n foreach ($public_table_results as $value) {\n $public_tables[] = $value->table_name;\n }\n foreach ($chado_table_results as $value) {\n $chado_tables[] = 'chado.' . $value->table_name;\n }\n return array_merge($public_tables, $chado_tables);\n}", "title": "" }, { "docid": "7366ee45d5331b191836e0ba8d1c0dfb", "score": "0.64816755", "text": "public function getTableList()\n\t{\n\t\t$this->connect();\n\n\t\t$type = 'table';\n\n\t\t$query = $this->getQuery(true)\n\t\t\t->select('name')\n\t\t\t->from('sqlite_master')\n\t\t\t->where('type = :type')\n\t\t\t->bind(':type', $type)\n\t\t\t->order('name');\n\n\t\t$this->setQuery($query);\n\n\t\t$tables = $this->loadColumn();\n\n\t\treturn $tables;\n\t}", "title": "" }, { "docid": "5240ea86e1326b9a7897280613e1d5aa", "score": "0.6449089", "text": "protected function getDatabaseTables() {}", "title": "" }, { "docid": "8c86986ea06dc8fbbe468146816836e5", "score": "0.64349765", "text": "public function getTables(): array {\n global $wpdb;\n return $wpdb->get_results('SHOW TABLES', ARRAY_N);\n }", "title": "" }, { "docid": "175b4d27d7b106dc778086a341e5a838", "score": "0.64281476", "text": "public function tables($schema)\n\t{\n\t \t$sql=\"select tablename from pg_tables where tablename not like 'pg\\_%' \"\n\t\t\t.\"and tablename not in ('sql_features', 'sql_implementation_info', 'sql_languages', \"\n\t \t\t.\"'sql_packages', 'sql_sizing', 'sql_sizing_profiles') and schemaname='$schema';\";\n\t\n\t\treturn $this->execute($sql);\n\t}", "title": "" }, { "docid": "217e8ad174597b29075a78c18fdfd00f", "score": "0.64171857", "text": "public function getTable()\n\t{\n\t\treturn $this->connection->table(self::TABLE_NAME);\n\t}", "title": "" }, { "docid": "13dfd3da4f4689d6bf7b5ceac7d70ab2", "score": "0.64009833", "text": "function pdo_list_tables($dbname, $link=NULL) {\r\n $dbname = str_replace(\"`\", \"``\", $dbname);\r\n return pdo_query(\"SHOW TABLES FROM `$dbname`\", pdo_handle($link));\r\n }", "title": "" }, { "docid": "4d59d000602e11ad05c82b96dc342349", "score": "0.63895255", "text": "public function getTables()\n {\n $sqlStm = \"SELECT TABLE_NAME as tableName,\n CASE TABLE_TYPE WHEN 'VIEW' THEN 'true'\n ELSE 'false'\n END as isView\n FROM information_schema.tables\n WHERE TABLE_SCHEMA = ?\";\n \n $query = new DataQuery($sqlStm);\n $param = new DataParameter('schema', DataParameter::TYPE_VARCHAR , $this->schema);\n return $this->query($query, array($param));\n }", "title": "" }, { "docid": "dc9ebe135fab226ce2e2f7ac0fd56eee", "score": "0.638454", "text": "public function getTableList()\n\t{\n\t\t$db = new mysql_db();\n\n\t\t$result = $db->query(\"show tables\");\n\t\t\n\t\t$db->fetch_array($result);\n\t\t\n\t\treturn $arr;\n\t}", "title": "" }, { "docid": "dae8cb679a6ae4a3c54d065ab3dea964", "score": "0.6351056", "text": "private function getTables()\n {\n $this->emTypeVerify();\n $conn = $this->getDoctrine()->getManager($this->emType)->getConnection();\n $db = $conn->getDatabase();\n $tables = $conn->fetchAll(\"SHOW TABLES FROM $db\");\n return $tables;\n }", "title": "" }, { "docid": "cb9f84615a370da156d0370e6b750907", "score": "0.6336249", "text": "public function getTables()\n {\n return $this->callSql(\"\n SELECT\n *\n FROM\n SYSOBJECTS\n WHERE\n xtype = 'U';\n \");\n\n // Appears that DP has disabled the permissions required for the following query\n // prior to 2021-07-15\n // return $this->callSql(\"\n // SELECT\n // *\n // FROM\n // INFORMATION_SCHEMA.TABLES;\n // \");\n }", "title": "" }, { "docid": "22fc58835b7c0a91458cc02ee23e63b2", "score": "0.6333458", "text": "public function getTables()\n\t{\n $result = $this->fetchingData(array(\n 'query' => \"SHOW FULL TABLES\"\n ));\n\n return $result;\n\t}", "title": "" }, { "docid": "78621a58d3e441bb481b2064eb92649f", "score": "0.6328997", "text": "public function getTableList() {\n\t\t$db = new mysql_db();\n\n\t\t$result = $db -> query(\"show tables\");\n\n\t\t$db -> fetch_array($result);\n\t\t$db -> close_connection();\n\t\treturn $arr;\n\t}", "title": "" }, { "docid": "fb0d90f3207f9c09cd5173acd9bf7e2a", "score": "0.6315911", "text": "function get_tables_name(){\n $tables = null;\n $query = \"SHOW TABLES FROM cozagro_db\";\n $result = Database::getInstance()->getConnection()->query($query);\n if (!$result){\n $_SESSION['message'] = \"<br>Eroare la get_tables_name\".Database::getInstance()->getConnection()->error;\n $_SESSION['status'] = \"danger\";\n $_SESSION['icon'] = \"exclamation-sign\";\n echo status_baloon();\n die(\"mort!!\");\n }\n while ($row = $result->fetch_row()){\n $table = ucfirst(str_replace(\"_\", \" \", $row[0]));\n $tables[] = ['name' => $table, 'tab' => $row[0]];\n }\n $result ->free_result();\n return $tables;\n}", "title": "" }, { "docid": "9a5ac376b5ca71d08fa913fbb8063a2f", "score": "0.6310876", "text": "function GetSqlTable($tablename, $filter = \"\")\n{\n $loc = \"databaselib.php->GetSqlTable\";\n $sql = \"SELECT * FROM \" . $tablename;\n if(!empty($filter)) $sql .= ' ' . $filter;\n $result = SqlQuery($loc, $sql);\n $table = array();\n while($row = $result->fetch_assoc()) $table[] = $row;\n return $table;\n}", "title": "" }, { "docid": "c85bcacc5418a018327437dbdbcaa0e1", "score": "0.62757456", "text": "function listeTables() {\n $sql = \"SHOW TABLES\";\n\t $resultat = mysql_query($sql);\n if($resultat) {\n //$tables=mysql_fetch_array($resultat);\n while ($row = mysql_fetch_array($resultat, MYSQL_NUM)) {\n $tables[] = $row[0];\n }\n mysql_free_result($resultat);\n return $tables;\n } \n }", "title": "" }, { "docid": "5cba8f75cbdbda3695f7335b60e2792e", "score": "0.62650067", "text": "public function showTables()\n {\n switch($this->db_type){\n case 'mssql';\n case 'sqlsrv':\n $sql = 'SELECT * FROM sys.all_objects WHERE type = \\'U\\'';\n break;\n case 'pgsql':\n $sql = 'SELECT tablename FROM pg_tables WHERE tableowner = current_user';\n break;\n case 'sqlite':\n $sql = 'SELECT * FROM sqlite_master WHERE type=\\'table\\'';\n break;\n case 'oci':\n $sql = 'SELECT * FROM system.tab';\n break;\n case 'ibm':\n $schema = '';\n $sql = 'SELECT TABLE_NAME FROM qsys2.systables'.\n (($schema != '') ? ' WHERE TABLE_SCHEMA = \\''.$schema.'\\'' : '');\n break;\n case 'mysql':\n default:\n $sql = 'SHOW TABLES IN `'.$this->db_name.'`';\n break;\n }\n\n try{\n $sth = $this->query($sql);\n $result = $sth->fetchAll();\n }catch(PDOException $e){\n $this->error( $e->getMessage());\n $result = false;\n }\n return $result;\n }", "title": "" }, { "docid": "5b13e7e8d56905acf070a46c0b734625", "score": "0.6264449", "text": "public function listTables()\n {\n $schema = $this->fetchDatabase();\n\n $rows = $this->fetchAll(\"SELECT table_name, table_rows \n FROM information_schema.tables \n WHERE table_schema = '{$schema}' \n ORDER BY table_name\n \");\n\n $tables = [];\n foreach ($rows as $row) {\n $tables[$row['table_name']] = $row['table_rows'];\n }\n\n return $tables;\n }", "title": "" }, { "docid": "ee801120818d4261f6f836dc8e769084", "score": "0.6262518", "text": "protected function getTables() {\n \n $sm = $this->db->getSchemaManager();\n\n $tables = array(); \n \n foreach ($sm->listTables() as $table) {\n if ( strpos($table->getName(), $this->prefix) == 0 ) {\n foreach ($table->getColumns() as $column) {\n $tables[ $table->getName() ][ $column->getName() ] = $column->getType(); \n }\n // $output[] = \"Found table <tt>\" . $table->getName() . \"</tt>.\";\n }\n }\n \n return $tables;\n \n }", "title": "" }, { "docid": "6ee0a1b6a2e8f95d5de1af60d8d5e144", "score": "0.6235359", "text": "function getTable($primary, $table) {\n return mysql_query(sprintf('SELECT %s FROM %s', $primary, $table));\n }", "title": "" }, { "docid": "57ffd9d59b3d025f1340ce8997acf9ed", "score": "0.6235129", "text": "function tablesList ()\n {\n $sql = \"SELECT a.relname AS name\n FROM pg_class a, pg_user b\n WHERE ( relkind = 'r') and relname !~ '^pg_' AND relname !~ '^sql_'\n AND relname !~ '^xin[vx][0-9]+' AND b.usesysid = a.relowner\n AND NOT (EXISTS (SELECT viewname FROM pg_views WHERE viewname=a.relname));\";\n\n $result = $this->all($sql);\n\n if (!$result)\n {\n trigger_error(ERROR_NO_TABLE_LIST, E_USER_ERROR);\n exit;\n }\n else\n {\n $tables = array();\n foreach ($result as $item) $tables[] = $item['name'];\n return $tables;\n }\n }", "title": "" }, { "docid": "6f8684c659cf7824bc512dc37151957b", "score": "0.623357", "text": "function tableExist($connection,$database,$tableName) {\n\t\n\t$query = \"SELECT table_name\n\tFROM information_schema.tables\n\tWHERE table_schema = '$database'\n\tAND table_name = '$tableName'\";\n\n\t$result = consult($connection,$query);\n\t\n\treturn $result;\n}", "title": "" }, { "docid": "dc4fa41be9d4e7c4b06345e82a35aad1", "score": "0.62314624", "text": "function get_tables_from_db( ){\n\t\t\t$db_connect = mysql_connect($this->host,$this->username, $this->password);\n\t\t\t$tables = mysql_list_tables($this->db); \n\t\t\twhile($row = mysql_fetch_assoc($tables)){\n\t\t\t\tforeach($row as $k=>$v){\n\t\t \t\t\t$a_tables[]=$v;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $a_tables;\n\t\t}", "title": "" }, { "docid": "a19d22cbc21d7263c9a2271b73c4ee80", "score": "0.6224803", "text": "function type_of_table($db,$tb_pre,$tb_name){\n\tglobal $conn;\n\t$sql=\"select table_type from information_schema.tables where table_schema='$db' and table_name='$tb_name'\";\n\t$res=mysqli_query($conn,$sql);\n\tif($res) $rs=mysqli_fetch_array($res);\n\tif($rs['table_type']==\"VIEW\") return 'V';\n\telse {\t// table\n\t\tif(strtolower(substr($tb_name,strlen($tb_pre),6))==\"_code_\") return 'C'; // code table\n\t\telse return 'T'; // normal table\n\t}\n}", "title": "" }, { "docid": "9d9f26c9e3d9e5f8bd9c6eded09c3368", "score": "0.6224356", "text": "public function get_table_schema() {\n\t\tglobal $wpdb;\n\n\t\t$tables = array_keys( $this->get_all_tables() );\n\t\t$show = array();\n\n\t\tforeach ( $tables as $table ) {\n\t\t\t// These are known queries without user input\n\t\t\t// phpcs:ignore\n\t\t\t$row = $wpdb->get_row( 'SHOW CREATE TABLE ' . $table, ARRAY_N );\n\n\t\t\tif ( $row ) {\n\t\t\t\t$show = array_merge( $show, explode( \"\\n\", $row[1] ) );\n\t\t\t\t$show[] = '';\n\t\t\t} else {\n\t\t\t\t/* translators: 1: table name */\n\t\t\t\t$show[] = sprintf( __( 'Table \"%s\" is missing', 'redirection' ), $table );\n\t\t\t}\n\t\t}\n\n\t\treturn $show;\n\t}", "title": "" }, { "docid": "f486ebe0bb01310e9668969694cee13b", "score": "0.62239134", "text": "public function show_tables()\n\t{\n\t\t$results = $this->get_rows('SHOW TABLES');\n\t\tforeach ($results as $row)\n\t\t{\n\t\t\t$array[] = $row[0];\n\t\t}\n\n\t\treturn $array;\n\t}", "title": "" }, { "docid": "9a4cba001eaac4158c5b245a0a8d9587", "score": "0.62180245", "text": "public function list_tables(){\n\t\treturn $this->fetch_all(\"SELECT c.relname AS table FROM pg_class c, pg_user u \"\n .\"WHERE c.relowner = u.usesysid AND c.relkind = 'r' \"\n .\"AND NOT EXISTS (SELECT 1 FROM pg_views WHERE viewname = c.relname) \"\n .\"AND c.relname !~ '^(pg_|sql_)' UNION \"\n .\"SELECT c.relname AS table_name FROM pg_class c \"\n .\"WHERE c.relkind = 'r' \"\n .\"AND NOT EXISTS (SELECT 1 FROM pg_views WHERE viewname = c.relname) \"\n .\"AND NOT EXISTS (SELECT 1 FROM pg_user WHERE usesysid = c.relowner) \"\n .\"AND c.relname !~ '^pg_'\");\n\t}", "title": "" }, { "docid": "b62a715f8c0d66ddf56e990617944d68", "score": "0.6208663", "text": "public function showTables(){\n $resultQuery = $this->executeQuery(\"SHOW TABLES;\");\n echo \"Liste des tables : <br><br>\";\n while( $row = mysqli_fetch_row($resultQuery) ){\n echo \" - \".$row[0].\"<br>\";\n }\n echo \"<br>\";\n }", "title": "" }, { "docid": "6aa712a82caffa5a7e953de4d35243cf", "score": "0.620755", "text": "function get_mdb_table_names(){\n $prohitsManagerDB = new mysqlDB(MANAGER_DB);\n $mDBname = MANAGER_DB;\n $SQL = \"SHOW TABLES FROM $mDBname\";\n //echo $SQL;\n $result = mysqli_query($prohitsManagerDB->link, $SQL);\n if(!$result){\n echo \"DB Error, could not list tables\\n\";\n echo 'MySQL Error: ' . mysqli_error($prohitsManagerDB->link);\n exit;\n }\n $mTablesNameArr = array();\n while($row = mysqli_fetch_row($result)){\n $mTablesNameArr[strtoupper($row[0])] = $row[0];\n }\n return $mTablesNameArr;\n}", "title": "" }, { "docid": "d7a03da489088c733acc124a92591f11", "score": "0.6205083", "text": "public static function getTable();", "title": "" }, { "docid": "b47fdcba58d8426e0959aac50b487234", "score": "0.6203531", "text": "function get_db_tables(){\n\t\tglobal $GonxAdmin;\n\t\t\n\t\t$result = @$this->list_tables($this->dbName);\n\t\tif (!$result) {\n\t\t print \"Erreur : impossible de lister les tables\\n\";\n\t\t print 'Erreur '.$GonxAdmin[\"dbtype\"].' : ' . $this->error();\n\t\t exit;\n\t\t}\n\t while ($row = $this->fetch_row($result)) {\n\t\t\t$Tables[] = $row[0];\n\t }\n\t\treturn $Tables;\t\t\n\t}", "title": "" }, { "docid": "53c5efc977a37b767ed6f40d219921c6", "score": "0.6202621", "text": "public function getAllTables(): array\n {\n $names_Tables = [];\n $Schemas = $this->getALLschema();\n foreach ($Schemas as $schema) {\n $names_Tables[] = $schema->getNameTable();\n }\n return $names_Tables;\n }", "title": "" }, { "docid": "ba8377aab053ef39e67b93e97af6b4dc", "score": "0.619298", "text": "function find_all($table) {\n global $db;\n if(tableExists($table))\n {\n return find_by_sql(\"SELECT * FROM \".$db->escape($table));\n }\n}", "title": "" }, { "docid": "ba8377aab053ef39e67b93e97af6b4dc", "score": "0.619298", "text": "function find_all($table) {\n global $db;\n if(tableExists($table))\n {\n return find_by_sql(\"SELECT * FROM \".$db->escape($table));\n }\n}", "title": "" }, { "docid": "2c7d54f6e2fd820863c63f767d2ba124", "score": "0.619239", "text": "protected function getTableObjects()\n {\n\n $sm = $this->app['db']->getSchemaManager();\n\n $tables = array();\n\n foreach ($sm->listTables() as $table) {\n if (strpos($table->getName(), $this->prefix) == 0) {\n $tables[$table->getName()] = $table;\n }\n }\n\n return $tables;\n\n }", "title": "" }, { "docid": "966c420922cdd7aa605c74ee49975e3f", "score": "0.6188994", "text": "function get_table_name($table_name)\n{\n\tglobal $project_vars;\n\treturn $project_vars['mysql_table_prefix'] . $table_name;\n}", "title": "" }, { "docid": "f5289a1a7dccf79f3ddea26a0bdc0e8a", "score": "0.61741626", "text": "public static function getTableMap()\n\t{\n\t\treturn Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);\n\t}", "title": "" }, { "docid": "f5289a1a7dccf79f3ddea26a0bdc0e8a", "score": "0.61741626", "text": "public static function getTableMap()\n\t{\n\t\treturn Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);\n\t}", "title": "" }, { "docid": "f5289a1a7dccf79f3ddea26a0bdc0e8a", "score": "0.61741626", "text": "public static function getTableMap()\n\t{\n\t\treturn Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);\n\t}", "title": "" }, { "docid": "f5289a1a7dccf79f3ddea26a0bdc0e8a", "score": "0.61741626", "text": "public static function getTableMap()\n\t{\n\t\treturn Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);\n\t}", "title": "" }, { "docid": "f5289a1a7dccf79f3ddea26a0bdc0e8a", "score": "0.61741626", "text": "public static function getTableMap()\n\t{\n\t\treturn Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);\n\t}", "title": "" }, { "docid": "e188c783149eea4a14e677ad69d9f8ad", "score": "0.6173183", "text": "public function _get_table_names() {\n // Must be overridden.\n return array();\n }", "title": "" }, { "docid": "df96bae14bc8c3cda19ebbf9d3ab524e", "score": "0.616929", "text": "function load_tables() {\n return $this->_load_tables('/oblyon/sql/');\n }", "title": "" }, { "docid": "e9186a9a6fa8797bca5728a5b34bc4dc", "score": "0.6167239", "text": "public static function get_db_table_name(){\n global $TFUSE;\n return $TFUSE->ext->seek->get_db_table_name();\n }", "title": "" }, { "docid": "89fdc63d8991a4c4a34e9b7f82f9d0e2", "score": "0.61667556", "text": "public function tables(): array\n {\n return [\n 'query' => 'SELECT name FROM sqlite_master WHERE type = \"table\"',\n 'bindings' => []\n ];\n }", "title": "" }, { "docid": "dbac32dbf608c105aac382cf882dd993", "score": "0.6159661", "text": "function getTableName(): string;", "title": "" }, { "docid": "dcb03ff8e17bcafe6d24bf5374ec5507", "score": "0.61325437", "text": "public static function tableName(): string;", "title": "" }, { "docid": "8658d04c6dbf41726d828a6a98144678", "score": "0.6131627", "text": "function table_exists( $db, $the_table_name )\n{\n if (empty($the_table_name))\n return null;\n\n // NOTE: there must be a better & more robust \n // way to do this, but this works for now\n $table_check_result = $db->query( \"SHOW TABLES LIKE '$the_table_name'\" );\n if ($table_check_result)\n {\n $row = $table_check_result->fetch_row();\n $found_table_name = $row[0];\n if ( $found_table_name == $the_table_name )\n $exists = true;\n else\n $exists = false;\n $table_check_result->close();\n return $exists;\n }\n else\n {\n return null;\n }\n}", "title": "" }, { "docid": "7ed622bbecd63b0b2a8592ffd76b3ae4", "score": "0.6127796", "text": "public function table_name ()\n {\n return $this->app->table_names->entries;\n }", "title": "" }, { "docid": "03471219f9fac1cc6d968730a843e33c", "score": "0.6125262", "text": "public function getTable();", "title": "" }, { "docid": "4fe5d2650d5a4089031a845838c7bcec", "score": "0.609368", "text": "function sql_table($name) {\n global $MYSQL_PREFIX;\n\n if ($MYSQL_PREFIX) {\n return $MYSQL_PREFIX . 'nucleus_' . $name;\n } else {\n return 'nucleus_' . $name;\n }\n}", "title": "" }, { "docid": "7cd35353a7dd0369fb8677b086a42c8c", "score": "0.6093067", "text": "function sql_existTableName($tablename)\n {\n global $SQL_DBH;\n if (!$SQL_DBH) return FALSE;\n\n $drivername = $SQL_DBH->getAttribute(PDO::ATTR_DRIVER_NAME);\n $input_parameters = array(':name' => $tablename);\n if ($drivername == 'sqlite')\n {\n $sql = \"SELECT name FROM sqlite_master WHERE type='table' AND name = :name\";\n }\n else\n {\n // mysql\n $sql = 'SHOW TABLES LIKE :name ';\n }\n $res = array();\n $stmt = $SQL_DBH->prepare($sql);\n if ( $stmt && $stmt->execute($input_parameters) )\n $res = $stmt->fetch();\n if ($res && count($res)>0)\n return TRUE;\n return FALSE;\n }", "title": "" }, { "docid": "00b3de38685c8db2153bde46134adf3f", "score": "0.608911", "text": "function get_table_name () {\r\n\t\treturn $this->wpdb->prefix . $this->_table_name;\r\n\t}", "title": "" }, { "docid": "576177c3a07bb3116df18532583a02f5", "score": "0.6081119", "text": "public function findTableNames($schema='')\n\t{\n\t\t$sql=\"SELECT DISTINCT tbl_name FROM sqlite_master WHERE tbl_name<>'sqlite_sequence'\";\n\t\treturn $this->getDbConnection()->createCommand($sql)->queryColumn();\n\t}", "title": "" }, { "docid": "0fdc601e49871de6b5ec45d47fc02e0c", "score": "0.60785204", "text": "function get_table($table)\n {\n return $GLOBALS ['ZUIZZ']->config->db ['prefix'] . $this->config ['tables'] [$table];\n }", "title": "" }, { "docid": "63ceeb6d6b86c89d7c4fe4508a51730e", "score": "0.60751885", "text": "public static function getTableName()\n {\n return self::getDatabaseName() . '.' . self::NAME;\n }", "title": "" }, { "docid": "3e1d5416f1094920e8fd9c84dbb481c0", "score": "0.6074264", "text": "abstract protected function fetchTableNamesDb();", "title": "" }, { "docid": "c1d2484110eccc7be4c7b3458606df9e", "score": "0.60738397", "text": "function table_exists($table, $schema=''){\n\t\t$table = addslashes(strtolower($table));\n\t\tif(strpos($table, \".\")){\n\t\t\tlist($schema, $table) = explode(\".\", $table);\n\t\t}\n\t\tif($schema==''){\n\t\t\t$num = $this->fetch_one(\"SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'public' AND TABLE_NAME ='$table'\");\n\t\t} else {\n\t\t\t$schema = addslashes(strtolower($schema));\n\t\t\t$num = $this->fetch_one(\"SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME ='$table'\");\n\t\t}\n\t\treturn $num[0];\n\t}", "title": "" }, { "docid": "783152c8e233168f3341d33cb655b247", "score": "0.6072417", "text": "private function selectSchema(): array\n {\n return $this->db->getDoctrineSchemaManager()->listTables();\n }", "title": "" } ]
8ef242df6ad03ea33f54ee76ecc344c0
Bootstrap any application services.
[ { "docid": "106f9b660ee209e61b3863856f2081a4", "score": "0.0", "text": "public function boot()\n {\n //\n }", "title": "" } ]
[ { "docid": "b866e2b06f9c0f7b75f1b7e1dfd607d4", "score": "0.71317947", "text": "public function boot()\n {\n $this->loadServiceProviders();\n $this->loadAliases();\n }", "title": "" }, { "docid": "46a059ea2cb783aa9be7e465f0b6794f", "score": "0.70970017", "text": "public function boot(): void\n {\n $this->app->bind(AuthorizationServiceInterface::class, AuthorizationService::class);\n $this->app->bind(NotificationServiceInterface::class, NotificationService::class);\n }", "title": "" }, { "docid": "5d76afc2ee22659c2cbf0078019d466a", "score": "0.7081085", "text": "public function boot()\n {\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "de12e37257aa110ed7a6b9e51ff0ecc8", "score": "0.7050564", "text": "public function bootstrap()\n {\n if (!$this->app->hasBeenBootstrapped()) {\n $this->app->bootstrapWith($this->bootstrappers());\n }\n }", "title": "" }, { "docid": "5ec982c4c7d901af1b853a17bd36f6e4", "score": "0.7022387", "text": "public function boot()\n {\n /*$source = dirname(__DIR__).'/config/amazon-advertising-api.php';\n\n if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) {\n $this->publishes([$source => config_path('amazon-advertising-api.php')]);\n } elseif ($this->app instanceof LumenApplication) {\n $this->app->configure('amazon-advertising-api');\n }\n\n $this->mergeConfigFrom($source, 'amazon-advertising-api');*/\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "fc718915d3adf8038b295db09c2581e8", "score": "0.70146656", "text": "public function boot()\n {\n $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'novelties');\n $this->loadRoutesFrom(__DIR__.'/UI/API/V1/routes.php');\n $this->loadServiceProviders();\n\n // publishing is only necessary when using the CLI\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "e950b5914156db2d4753935ca2d2917b", "score": "0.7014229", "text": "public function boot ()\n {\n \n $this->app->bind ( \"tb-match\" , \"App\\\\Services\\\\MatchService\" );\n $this->app->bind ( \"tb-summoner\" , \"App\\\\Services\\\\SummonerService\" );\n\n }", "title": "" }, { "docid": "f8f1349c50bab0ecb6368b1a16d9cb1d", "score": "0.70138556", "text": "public function boot()\n {\n //Services\n $this->app->bind(LostfilmParsingServiceInterface::class, LostfilmParsingService::class);\n $this->app->bind(AlisaMainServiceInterface::class, AlisaMainService::class);\n\n //Repositories\n $this->app->bind(FavouritesRepositoryInterface::class, FavouritesRepository::class);\n $this->app->bind(SeriesRepositoryInterface::class, SeriesRepository::class);\n $this->app->bind(UserRepositoryInterface::class, UserRepository::class);\n $this->app->bind(UserSeriesRepositoryInterface::class, UserSeriesRepository::class);\n $this->app->bind(SeriesSelectionServiceInterface::class, SeriesSelectionService::class);\n }", "title": "" }, { "docid": "da785a59fd5315cd1dd0ca59536e70b6", "score": "0.69961923", "text": "public function boot()\n\t{\n\t\t$this->package('virtualvendors/altwallets', 'altwallets');\n\n\t\tinclude __DIR__.'/../../routes.php';\n\t\tinclude __DIR__.'/../../macros.php';\n\t\tinclude __DIR__.'/../../filters.php';\n\n\t\t$this->bootErrorHandlers();\n\t\t$this->bootCustomValidators();\n $this->bootArtisanCommands();\n\t}", "title": "" }, { "docid": "0579f818db6ca6d2026e2e079ce44279", "score": "0.69763714", "text": "public function boot(): void\n {\n // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'agweria');\n // $this->loadViewsFrom(__DIR__.'/../resources/views', 'agweria');\n $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n // $this->loadRoutesFrom(__DIR__.'/routes.php');\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "8ff3a37d8ea964a02d920c45f63bba1e", "score": "0.6955807", "text": "public function boot()\n {\n $this->setupConfig($this->app);\n }", "title": "" }, { "docid": "8ff3a37d8ea964a02d920c45f63bba1e", "score": "0.6955807", "text": "public function boot()\n {\n $this->setupConfig($this->app);\n }", "title": "" }, { "docid": "5943a2714bd1e52eb9f11703e88dc59f", "score": "0.6954467", "text": "public function boot()\n {\n $this->package('dingo/api', 'api', __DIR__);\n\n $this->bootContainerBindings();\n $this->bootResponseMacro();\n $this->bootResponseFormats();\n $this->bootResponseTransformer();\n $this->bootRouteAndAuthentication();\n }", "title": "" }, { "docid": "d8b0c539406d7cec0551cc598231ea7e", "score": "0.6950307", "text": "public function boot()\n {\n $this->app->register(AliveLaravelMessageServiceRouteServiceProvider::class);\n\n if ($this->app->runningInConsole()) {\n\n // register jobs\n $this->registerJobs();\n\n // register migrations\n $this->registerMigrations();\n\n // register all commands into 'Console' folder\n $this->registerCommands();\n }\n }", "title": "" }, { "docid": "69e3d56e575b69af5797d210836738e2", "score": "0.69489866", "text": "public function boot()\n {\n Validator::extend('base64max', 'App\\Validators\\Base64Validator@validateBase64Max', 'The :attribute must be less than 1 MB.');\n Validator::extend('base64mimes', 'App\\Validators\\Base64Validator@validateBase64Mimes', 'The :attribute must be a file of type: jpg,jpeg,png.');\n\n $this->app->bind(SesClient::class, function () {\n return new SesClient([\n 'credentials' => new Credentials(config('services.ses.key'), config('services.ses.secret')),\n 'region' => config('services.ses.region'),\n 'version' => 'latest',\n ]);\n });\n\n $this->app[Base::class] = function ($app) {\n return $app['app.base'];\n };\n\n $this->app->bind(Manager::class, function (Application $app) {\n $manager = new Manager();\n $manager->setSerializer($app->make(ApiSerializer::class));\n return $manager;\n });\n\n }", "title": "" }, { "docid": "0c33f8a8b28e6f5d26a0c9d722b83e8f", "score": "0.6947771", "text": "public function boot()\n {\n $this->app->bind(ParserServiceContract::class, ParserService::class);\n $this->app->bind(SocialServiceContract::class, SocialService::class);\n $this->app->bind(FileUploadContract::class, FileUploadService::class);\n }", "title": "" }, { "docid": "3d5940ff9bde9dccbc35351cd25f6624", "score": "0.6938801", "text": "public function boot(): void\n {\n // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'ahmadyousefdev');\n // $this->loadViewsFrom(__DIR__.'/../resources/views', 'ahmadyousefdev');\n // $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n // $this->loadRoutesFrom(__DIR__.'/routes.php');\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "9a0f382bb836059623b6854f8608a32b", "score": "0.6935517", "text": "public function boot() {\n\t\tProfiler::record('Boot service providers');\n\n\t\tforeach ($this->providers as $provider) {\n\t\t\t$start = microtime(true);\n\n\t\t\tif ($provider->isDeferred()) continue;\n\t\t\tif (in_array($provider, static::$booted)) continue;\n\n\t\t\t$provider->boot();\n\t\t\tstatic::$booted[] = $provider;\n\n\t\t\tProfiler::recordAsset('Service providers', get_class($provider), microtime(true) - $start);\n\t\t}\n\t}", "title": "" }, { "docid": "10c28422f79a06d6d54dfaf6aaab7277", "score": "0.6928449", "text": "public function boot()\n\t{\n\t\tif ($this->booted)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tarray_walk($this->serviceProviders, function($p)\n\t\t{\n\t\t\t$this->bootProvider($p);\n\t\t});\n\n\t\t$this->booted = true;\n\t}", "title": "" }, { "docid": "da09032cff5b9541e77de001ebe1566c", "score": "0.69076085", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->bindCommands();\n $this->registerCommands();\n $this->app->bind(InstallerContract::class, Installer::class);\n\n $this->publishes([\n __DIR__.'/../config/honeybadger.php' => base_path('config/honeybadger.php'),\n ], 'config');\n }\n\n $this->registerMacros();\n }", "title": "" }, { "docid": "bc4f810b689bab0158c3fa4e426db651", "score": "0.69002575", "text": "public function boot()\n {\n $this->app->booted(function () {\n $this->routes();\n });\n\n Nova::serving(function (ServingNova $event) {\n Nova::script('waiting-lists-manager', __DIR__.'/../dist/js/tool.js');\n Nova::style('waiting-lists-manager', __DIR__.'/../dist/css/tool.css');\n });\n }", "title": "" }, { "docid": "5f260cb5c2c6974f27597bfcc7987e6d", "score": "0.68825364", "text": "public function boot()\n {\n // Bootstrap handles\n }", "title": "" }, { "docid": "505ba06b92f8c92573a3c210f6f273a3", "score": "0.6875366", "text": "public function boot()\n\t{\n\t\t$this->package('lazychef/core');\n\t\t$this->setConnection();\n\t\t$this->bindRepositories();\n\t\t$this->bootCommands();\n\n\t\trequire __DIR__.'/../../themeHelpers.php';\n\t\trequire __DIR__.'/../../routes.php';\n\t\trequire __DIR__.'/../../filters.php';\n\t}", "title": "" }, { "docid": "61f518fe2c992cd5636f7df44b416fa7", "score": "0.68595356", "text": "public function boot()\n {\n $this->strapRoutes();\n $this->strapViews();\n $this->strapHelpers();\n $this->strapMigrations();\n $this->strapCommands();\n }", "title": "" }, { "docid": "d1914c4daaa666ebcaa47daf8e808339", "score": "0.6853612", "text": "public function boot()\n {\n $path = sprintf('%s/yootheme/framework', $this['path.vendor']);\n\n // register library\n $this['scripts']->register('angular', $path.'/assets/angular/angular.min.js');\n $this['scripts']->register('angular-resource', $path.'/assets/angular-resource/angular-resource.min.js', array('angular'));\n $this['scripts']->register('angular-touch', $path.'/assets/angular-touch/angular-touch.min.js', array('angular'));\n $this['scripts']->register('application', $path.'/plugins/angular/lib/application.min.js', array('angular', 'application-config', 'application-templates'));\n $this['scripts']->register('application-translator', $path.'/plugins/angular/lib/translator.min.js', array('application'));\n\n // register config\n $this['app']->on('view', function($event, $app) {\n foreach ($app['angular']->getConfig() as $name => $values) {\n $app['scripts']->register(\"application-{$name}\", sprintf('var %1$s = %1$s || {}; %1$s.%2$s = %3$s;', $app['angular']->get('name', $app['name']), $name, json_encode($values)), array(), 'string');\n }\n }, 10);\n }", "title": "" }, { "docid": "ff592a8cfff4c04bd1269ada0a661648", "score": "0.68383807", "text": "public function boot()\n {\n if ($this->app instanceof Application) {\n $this->app->configure('juice-backups');\n } else {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__ . '/../config/juice-backups.php' => config_path('juice-backups.php'),\n ], 'config');\n }\n }\n\n if ($this->app->runningInConsole()) {\n $this->commands([\n CleanupCommand::class,\n RunCommand::class,\n SetupCommand::class,\n ]);\n }\n }", "title": "" }, { "docid": "52fe02478421b6a3ebb0e70019b93655", "score": "0.6836081", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n Commands\\MakeCommand::class,\n Commands\\PublishCommand::class,\n ]);\n }\n $this->app->make(RepoManifest::class)->bind();\n\n }", "title": "" }, { "docid": "90319dd6bf5900b49a661622a6d88f4c", "score": "0.6833191", "text": "public function boot()\n {\n $this->bindRepositories();\n\n require_once app_path('helpers.php');\n }", "title": "" }, { "docid": "efa89365b1e1eabb8e9ee13ef6bdd98f", "score": "0.68279755", "text": "public function boot()\n {\n $this->app->bind('userService', 'App\\Services\\UserService');\n $this->app->bind('chatService', 'App\\Services\\ChatService');\n $this->app->bind('rabbitService', 'App\\Services\\RabbitService');\n }", "title": "" }, { "docid": "1ffbe07e59e133dfdad198292f447a83", "score": "0.68115973", "text": "public function boot()\n {\n // Bind each Composer to its Views\n\n // The MenubarComposer should be called whenever the 'menubar' View is invoked\n View::composer('menubar', MenubarComposer::class);\n }", "title": "" }, { "docid": "1de3fb56bbc121e0ec3bdbb58f365545", "score": "0.6804779", "text": "public function boot()\n {\n $this->containerList = require(__DIR__ . '/../../config/container.php');\n foreach ($this->containerList as $key => $value) {\n $this->app->singleton($key, function() use ($value) {\n return new $value();\n });\n\n $this->app->bind('force.' . $key, function() use ($value) {\n return new $value();\n });\n }\n }", "title": "" }, { "docid": "ac660b191d394e5c71bdec6803d27a4d", "score": "0.68011373", "text": "public function boot()\n {\n resolve(EngineManager::class)->extend('es', function($app) {\n return new EsEngine(ClientBuilder::create()\n ->setHosts(config('scout.es.hosts'))\n ->build(),\n config('scout.es.index')\n );\n });\n\n }", "title": "" }, { "docid": "4390019eb2b73b4d840aed91173331f4", "score": "0.67959666", "text": "public function boot()\n {\n $this->loadRoutesFrom(__DIR__ . '/../routes/web.php');\n $this->loadViewsFrom(__DIR__ . '/../resources/views', 'qa_app');\n $this->loadFactoriesFrom(__DIR__ . '/../database/factories');\n $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');\n $this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'qa_app');\n\n $this->loadPublishables()\n ->registerComponents()\n ->registerGates();\n }", "title": "" }, { "docid": "d4828eadf348fa0aeadca5d2438c4728", "score": "0.67881554", "text": "public function boot()\n {\n $this->app->bind(CalculationFacade::class, function () {\n return ServiceCalculateIncome::class;\n });\n }", "title": "" }, { "docid": "77ee804d1881a1425ddd3520312b396b", "score": "0.6787876", "text": "public function boot()\n {\n $this->publishFiles();\n $this->loadConfigs();\n $this->mergeConfigs();\n $this->setIsWebsocket();\n\n $config = $this->app->make('config');\n\n if ($config->get('swoole_http.websocket.enabled')) {\n $this->bootWebsocketRoutes();\n }\n\n if ($config->get('swoole_http.server.access_log')) {\n $this->pushAccessLogMiddleware();\n }\n }", "title": "" }, { "docid": "c64095c35f8dacfa241d736a8756b59e", "score": "0.6780276", "text": "public function boot()\n {\n // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'skyyouare');\n $this->loadViewsFrom(__DIR__.'/views', 'gii_views');\n // $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n $this->loadRoutesFrom(__DIR__.'/routes.php');\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "b103ce1c7bd28aff07b6d8eccf5d244e", "score": "0.678003", "text": "public function boot()\n {\n $this->package('dmraz/steno-api', null, __DIR__);\n\n if($this->app['config']->get('steno-api::mock_server.enabled'))\n {\n $server = new MockServer();\n $server->loadConfig();\n $server->start();\n }\n\n if($this->app['config']->get('steno-api::document_server.enabled'))\n {\n $server = new DocumentServer();\n $server->loadConfig();\n $server->start();\n }\n }", "title": "" }, { "docid": "bef77a4b45296c19c45577d6b3e3a6f7", "score": "0.67724615", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n GenerateRSAKeys::class,\n GenerateSharedSecret::class,\n ]);\n }\n\n if ($this->app instanceof LaravelApplication) {\n $this->publishes([\n __DIR__ . '/config/epicuros.php' => config_path('epicuros.php'),\n ]);\n } elseif ($this->app instanceof LumenApplication) {\n $this->app->configure('epicuros');\n }\n }", "title": "" }, { "docid": "994511e108966108f7af9724c58c26a1", "score": "0.67655945", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__ . '/../config/lara-sauce.php' => config_path('lara-sauce.php'),\n ]);\n\n $this->registerCommands();\n }\n\n $config = $this->app->make('config');\n\n $definitionLoader = null;\n if ($config->get('lara-sauce.autogenerate', true)) {\n $this->generateClasses();\n }\n }", "title": "" }, { "docid": "20c4be7fcc9a05492c304c28ddcd66e1", "score": "0.6761506", "text": "public function boot()\n {\n $this->app->singleton(ComposerBag::class);\n $this->app->singleton(Kinetic::class);\n $this->app->bind(ResponseFactory::class, Kinetic::class);\n\n if ($this->app->runningInConsole()) {\n $this->commands(KineticComposerCommand::class);\n }\n }", "title": "" }, { "docid": "60afcf55a5fd9ab49504d29d34e64ff0", "score": "0.67606276", "text": "public function boot()\n {\n $this->app->singleton(PostyClient::class, function () {\n $project = Project::findByPath(Path::current());\n if ($project) {\n return (new PostyClient([\n 'endpoint' => $project->endpoint,\n 'endpoint_prefix' => $project->endpoint_prefix,\n 'auth_token' => $project->auth_token,\n ]));\n }\n });\n }", "title": "" }, { "docid": "dfa8af8dffc222b7007297dc5f3d4a37", "score": "0.675822", "text": "public function boot()\n {\n $this->loadViewsFrom(__DIR__ . '/../resources/views', 'amazon-mws');\n\n $this->app->booted(function () {\n $this->routes();\n });\n\n $this->publishes([\n __DIR__ . '/../config/amazon.php' => config_path('amazon.php'),\n ], 'config');\n\n\n Nova::serving(function (ServingNova $event) {\n //\n });\n\n $this->loadMigrationsFrom(__DIR__ . '/../database/migrations/');\n\n Nova::resources([\n Amazon::class,\n Inventory::class,\n Listing::class,\n AmazonOrder::class,\n ShippingAddress::class,\n OrderItem::class,\n ]);\n\n Nova::provideToScript([\n 'locale' => config('app.locale'),\n ]);\n\n }", "title": "" }, { "docid": "a3b25766e8f87e11fabc4ee4d11accea", "score": "0.675013", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n // Registering package commands.\n $this->commands([\n Install::class\n ]);\n }\n }", "title": "" }, { "docid": "4a214ce5783d57f2ca21bf646bdb741f", "score": "0.67422456", "text": "public function boot()\n {\n // Load the install and the republish commands\n if ($this->app->runningInConsole()) {\n $this->commands([\n Republish::class,\n Install::class,\n ]);\n }\n\n // Load onixpro views\n $this->loadViewsFrom(__DIR__ . '/views', 'onixpro');\n\n // Load onixpro routes\n $this->loadRoutesFrom(__DIR__ . '/Routes/web.php');\n\n // Load Migrations\n $this->loadMigrationsFrom(__DIR__ . '/Database/Migrations');\n }", "title": "" }, { "docid": "87112a259e91ebabf27fd20f16c12283", "score": "0.67383814", "text": "public function boot()\n { \n if(! $this->app->runningInConsole()) { \n $this->app->afterResolving('module.repository', function($repository, $app) { \n $repository->all()->each(function($module) use ($app) {\n $name = $module->name();\n\n $app['view']->getFinder()->addNamespace(\n module_hint_key($name) , module_path($name)\n ); \n $app['translator']->getLoader()->addNamespace(\n module_hint_key($name) , module_path($name)\n );\n }); \n }); \n } \n\n \\Config::set('armin.layout.paths.module', __DIR__.'/resources/layouts');\n \n $this->loadViewsFrom(__DIR__.DS.'resources'.DS.'views', 'module'); \n $this->loadTranslationsFrom(__DIR__.DS.'resources'.DS.'lang', 'module'); \n $this->loadMigrationsFrom(__DIR__.DS.'database'.DS.'migrations');\n }", "title": "" }, { "docid": "44b6d399481468a53330e1bf9a7c91d4", "score": "0.67271423", "text": "public function boot()\n {\n app()->booted(function () {\n $this->booted();\n });\n }", "title": "" }, { "docid": "44b6d399481468a53330e1bf9a7c91d4", "score": "0.67271423", "text": "public function boot()\n {\n app()->booted(function () {\n $this->booted();\n });\n }", "title": "" }, { "docid": "44b6d399481468a53330e1bf9a7c91d4", "score": "0.67271423", "text": "public function boot()\n {\n app()->booted(function () {\n $this->booted();\n });\n }", "title": "" }, { "docid": "fd071be81cea1b9e0013535db096a584", "score": "0.6726764", "text": "public function boot(): void\n {\n $this->loadEnvironmentConnections();\n\n $this->registerLogging();\n $this->registerCommands();\n $this->registerConfiguration();\n $this->registerEventListeners();\n $this->registerLdapConnections();\n\n if ($this->app->runningUnitTests()) {\n $this->app->singleton(LdapDatabaseManager::class);\n }\n }", "title": "" }, { "docid": "93d472cec5bd522ef703af518ddd87ff", "score": "0.67246324", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n Console\\Commands\\DbBackup::class,\n Console\\Commands\\DbDrop::class,\n Console\\Commands\\DbInit::class,\n Console\\Commands\\DbReset::class,\n Console\\Commands\\DbRestore::class,\n Console\\Commands\\DbUser::class,\n ]);\n }\n }", "title": "" }, { "docid": "15e0f284b723385eba1f236b70f384d1", "score": "0.6723975", "text": "public function boot()\n {\n FactoryBuilder::mixin(new FactoryBuilderMacros);\n\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__.'/Stubs' => base_path('stubs'),\n ], 'stubs');\n }\n }", "title": "" }, { "docid": "a98025dc0a85c4eaa8199bd5cdd60d29", "score": "0.6718474", "text": "public function boot()\n {\n // Load module policies\n $this->loadPolicies();\n\n // Load module routes\n $this->loadRoutes();\n\n // Load module directives\n $this->loadDirectives();\n\n // Load module views\n $this->loadViewsFrom(__DIR__ . '/Views', $this->module);\n\n // Load module languages\n $this->loadTranslationsFrom(__DIR__ . '/Translations', $this->module);\n\n // Load module menu data\n View::composer('backend::partials.sidebar', 'Modules\\Backend\\Composers\\MenuComposer');\n\n // Register roles data service\n $this->app->singleton('roles', function ($app) {\n // Load all role from db\n $maps = [];\n $roles = Role::all();\n\n // Build role data\n foreach($roles as $item) {\n $perms = [];\n foreach($item->perms as $perm) {\n $perms[$perm] = 1;\n }\n $maps[$item->_id] = $perms;\n }\n\n return $maps;\n });\n }", "title": "" }, { "docid": "f0a7811a6e1e05672857fe8fe3e2e251", "score": "0.67151505", "text": "public function boot()\n\t{\n\n\t\t$this->publishAssets();\n\t\t$this->publishTranslations();\n\t\t$this->publishConfig();\n\t\t$this->loadCommands();\n\t\t$this->loadMorphMap();\n\t\t$this->loadViews();\n\t\t$this->extendBlade();\n\t\t$this->extendValidator();\n\t\t$this->registerEvents();\n\t\t$this->registerPolicies();\n\t\t$this->loadApiRoutes();\n\t\t$this->loadWebRoutes();\n\n\n\t}", "title": "" }, { "docid": "deb4ca30ae2a1e1619d74d19b03d27b0", "score": "0.6712252", "text": "public function boot()\n {\n $this->bootRoutes();\n $this->bootLang();\n $this->bootMigrations();\n $this->bootPublishing();\n $this->bootCommands();\n }", "title": "" }, { "docid": "0f56e199d90621b277e776c3eadf5b4a", "score": "0.67071146", "text": "public function boot()\n {\n Console::setup($this->container);\n }", "title": "" }, { "docid": "35ecdebd0b0c3174f2c6440ba4dd7ed8", "score": "0.67022634", "text": "public function boot()\n {\n try{\n $this->bootStore($this->app['App\\Store']);\n\n $this->bootTheme($this->app['App\\Theme'], $this->app['App\\Store']);\n\n } catch(QueryException $e){\n\n // missing core tables\n if(!\\App::runningInConsole()) throw new HttpException(500, \"Lavender not installed.\");\n } catch(\\Exception $e){\n\n // something went wrong\n if(!\\App::runningInConsole()) throw new HttpException(500, $e->getMessage());\n }\n }", "title": "" }, { "docid": "ae6486343286827d6416956bd254a70b", "score": "0.67001015", "text": "public function boot()\n\t{\n\t\t$this->package('kotfire/system-alerts', 'kotfire/system-alerts');\n\n\t\t$app = $this->app;\n\n $systemAlert = $app['system-alert'];\n $systemAlert->boot();\n\n\t\t$app['router']->after(function ($request, $response) use ($systemAlert) {\n $systemAlert->modifyResponse($request, $response);\n \t});\n\n $app['events']->listen('artisan.start', function($consoleApp) use ($systemAlert) {\n if( isset($_SERVER['argv'][1]) && $_SERVER['argv'][1] == 'down' ) {\n $systemAlert->removeMaintenanceAlerts();\n }\n });\n\t}", "title": "" }, { "docid": "d99a7538a10a4d9f2e3e0ca4f4d705a5", "score": "0.66992396", "text": "public function boot()\n {\n Schema::defaultStringLength(191);\n view()->composer(['posts.index', 'posts.show'], ActivityComposer::class);\n\n // Register the BlogPostObserver to be used when a Blogpost is created etc.\n BlogPost::observe(BlogPostObserver::class);\n Comment::observe(CommentObserver::class);\n\n // Register the Counter Service to the Service Container via the Service Provider\n $this->app->singleton(Counter::class, function ($app) {\n return new Counter(\n $app->make('Illuminate\\Contracts\\Cache\\Factory'),\n $app->make('Illuminate\\Contracts\\Session\\Session'),\n env('COUNTER_TIMEOUT')\n );\n });\n\n $this->app->bind(\n CounterContract::class,\n Counter::class\n );\n\n // To return a resourse without the 'data' key wrapping the json response\n // CommentResource::withoutWrapping();\n JsonResource::withoutWrapping();\n\n // The Services inside the Service Container might need primitive values\n // or Classes, which are also Services, or both. In this case since we \n // only need a primitive value instead of a singleton we can tell Laravel\n // that whenever it needs to inject a Class of a certain type it should pass\n // a specific value for a specific variable. Replaces the above singleton\n // $this->app->when(Counter::class)\n // ->needs('$timeout')\n // ->give(env('COUNTER_TIMEOUT'));\n }", "title": "" }, { "docid": "7d3543394d00e42d4a978501d17ad1c2", "score": "0.6698339", "text": "public function boot()\n {\n $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n\n $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'ru');\n\n $this->publishes([\n __DIR__ . '/../config/config.php' => config_path('onzame_helpers.php'),\n ], 'config');\n\n if ($this->app->runningInConsole()) {\n $this->commands([\n ClearLogCommand::class\n ]);\n }\n\n $this->app->bind(RequestBetweenServicesServiceContract::class, RequestBetweenServicesService::class);\n }", "title": "" }, { "docid": "d74eedbcfa7d5424c04cabdfc8b3ab54", "score": "0.66945016", "text": "public function boot()\n {\n $this->app->register(EventServiceProvider::class);\n\n $this->setIsInConsole($this->app->runningInConsole())\n ->setNamespace('plugins/request-log')\n ->loadRoutes()\n ->loadAndPublishViews()\n ->loadAndPublishTranslations()\n ->loadMigrations();\n\n $this->app->register(HookServiceProvider::class);\n }", "title": "" }, { "docid": "0429ef4916cb999c3b565ba9ba47b5c0", "score": "0.6692539", "text": "public function boot()\n {\n $this->bootProviders();\n }", "title": "" }, { "docid": "c7212b0ea698139a888f0471cc51adc3", "score": "0.6690939", "text": "public function boot() {\n }", "title": "" }, { "docid": "4fc42e54eda89cd9dbaa6ba5e5da9ff2", "score": "0.6690056", "text": "public function boot() {\n $dotenv = new Dotenv($this->app->path);\n $dotenv->load();\n\n $this->app->bind('env', $dotenv);\n }", "title": "" }, { "docid": "8ce3e0523249685508ce30c779261f3f", "score": "0.6689397", "text": "public function boot()\n {\n // use other loaded providers\n }", "title": "" }, { "docid": "1f2ff995be0b018274f695c8bef24120", "score": "0.66879815", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->registerPublishing();\n $this->loadMigrationsFrom(__DIR__ . '/../Migrations');\n }\n }", "title": "" }, { "docid": "bcceb824a54e57999803a629b5ffd865", "score": "0.6687831", "text": "public function boot()\n\t{\n\t\t$this->package('pulpitum/core');\n\t\tinclude __DIR__.'/../../filters.php';\n\t\tinclude __DIR__.'/../../routes.php';\n\t}", "title": "" }, { "docid": "cdbc13a77df93641bacf45f6ec049a4f", "score": "0.6672444", "text": "public function boot()\n {\n // Bind The Contract For Specefic Service File\n $this->app->bind('TechFrndz\\SoaExample\\Contracts\\ExampleContract', function ($app) {\n return new ExampleService(new ExampleRepository());\n });\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" } ]
a5688ec6ea4f34d45770be49f94bf4ef
Method to check if the table used in query exists
[ { "docid": "563d3eb0d1626dd4907da370ef82a396", "score": "0.7238084", "text": "public function tableExists($dbname, $table)\n {\n $tablesInDb = mysql_query('SHOW TABLES FROM '.$dbname.' LIKE \"'.$table.'\"');\n \n if (mysql_num_rows($tablesInDb)==1) {\n return true;\n } \n \n return false;\n }", "title": "" } ]
[ { "docid": "076bb50300c9c0f72a3707d7d64251f7", "score": "0.82883596", "text": "private function tableExists()\n {\n $dbh = $this->db();\n $table = $this->table();\n $driver = $dbh->getAttribute(PDO::ATTR_DRIVER_NAME);\n if ($driver === self::SQLITE_DRIVER_NAME) {\n $query = sprintf(\n 'SELECT `name` FROM `sqlite_master` WHERE `type` = \"table\" AND `name` = \"%s\";',\n $table\n );\n } else {\n $query = sprintf('SHOW TABLES LIKE \"%s\"', $table);\n }\n\n $this->logger->debug($query);\n $sth = $dbh->query($query);\n $exists = $sth->fetchColumn(0);\n\n return !!$exists;\n }", "title": "" }, { "docid": "5234619cb705d6101c152d025fc9aff7", "score": "0.8280552", "text": "public function check_table_exists()\n {\n $table_exists = $this->_query->getAssoc ( \"SHOW TABLES LIKE '\" . DB_SUFFIX . \"_\" . $this->_name . \"'\" );\n $this->_table_exists = ( !!$table_exists ? TRUE : FALSE );\n }", "title": "" }, { "docid": "0f2247f091220e6a577106dbaf70a458", "score": "0.82576513", "text": "private function check_table()\n {\n $res = $this->db->table_exists($this->table);\n if ($this->db->table_exists($this->table)) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "915fb35d2a5855a50656093067699e98", "score": "0.82459235", "text": "public function tableExists($table);", "title": "" }, { "docid": "ca45d162c588f3156b46d8a772e4ce73", "score": "0.8229961", "text": "abstract public function table_exists($table);", "title": "" }, { "docid": "823c6dc3a90e5d4543f5e865796662bc", "score": "0.8193695", "text": "public function sql_table_exists($table_name);", "title": "" }, { "docid": "c20f42c7784c69a1502a16245b3de0f2", "score": "0.8164622", "text": "public function table_exists($name) {\n\t\treturn $this->_connection->query(\"SELECT 1 FROM $name\") != null;\n\t}", "title": "" }, { "docid": "029de7bdeaa0a657de34b0f6fbd340e1", "score": "0.81520873", "text": "abstract public function tableExists($table);", "title": "" }, { "docid": "6a68f4a444cd00ff937f6d720fcd2a61", "score": "0.8142971", "text": "public function isTableExists()\n {\n $status = (bool) \\DB::select(\"SHOW TABLES LIKE '\" . $this->table . \"';\");\n if (!$status) {\n $this->songshenzong->stopCollect();\n }\n return $status;\n }", "title": "" }, { "docid": "86487dd7b4074c5d5e12f8bf3e2b7aab", "score": "0.8130655", "text": "function tableExists($table) {\n\t\tif(self::$dbSchema == null)\n\t\t\tself::initDBSchema();\n\t\t\n\t\t//echo $table; //DEBUG\n\t\treturn false !== self::$dbSchema->getTable($table->getName());\n\t}", "title": "" }, { "docid": "b2fd3c58a7db7241997c1c692096907a", "score": "0.8107772", "text": "public function tableExists()\n {\n return $this->db->table_exists($this->tableName);\n }", "title": "" }, { "docid": "7a8987d97c77c47f746628587d40c974", "score": "0.8062633", "text": "public function table_exists(){\n global $wpdb;\n $query = \"SHOW TABLES LIKE %s\";\n return (bool)$wpdb->get_row($wpdb->prepare($query, $this->ga_table));\n }", "title": "" }, { "docid": "b12e8559acce61dd7115434784040ebf", "score": "0.8044471", "text": "function table_exists($table_name = null)\n\t{\n\t\treturn $this->db->table_exists($table_name);\n\t}", "title": "" }, { "docid": "1b133badd334df0bb0e0d98aeb9bfea8", "score": "0.8039865", "text": "function table_exists($conn, $table)\n{\n $val = mysqli_query($conn, \"select 1 from '\" . $table . \"'\");\n \n if ($val !== false) {\n return true;\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "51dedf7b8e5ecb5b372e7276a8a28c9c", "score": "0.80084753", "text": "protected function doesTableExistsInDatabase() {\r\n\t\ttry {\r\n\t\t\t$className\t= get_class($this);\r\n\t\t\tif (array_key_exists($className, self::$doesTableExistsInDatabaseByTypes)\r\n\t\t\t\t&&\tis_bool(self::$doesTableExistsInDatabaseByTypes[$className])) {\r\n\t\t\t\treturn self::$doesTableExistsInDatabaseByTypes[$className];\r\n\t\t\t}\r\n\t\t\tif (strlen($this->getClassVar(\"dbName\", true)) > 0) {\r\n\t\t\t\t$schema\t= $this->getClassVar(\"dbName\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$dbSelector\t= new DbSelector();\r\n\t\t\t\t$schema\t= $dbSelector->getTaskSchema(self::$task);\r\n\t\t\t}\r\n\t\t\t$value\t= $this->getDb()->initiateQuery($this->getQueryBuilder()->getDoesTableExists($this->getClassVar(\"tableName\"), $schema))->getNumRows() > 0;\r\n\t\t\treturn self::$doesTableExistsInDatabaseByTypes[$className] = $value;\r\n\t\t}\r\n\t\tcatch (Exception $e) {\r\n\t\t\tthrow $e;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "057946ec8f9b767ce6b9bf984963c28b", "score": "0.79772836", "text": "function table_exists($table)\n\t{\n\t\t$table_id = $this->get_table_id($table);\n\t\t\n\t\treturn ($table_id) ? TRUE : FALSE;\n\t}", "title": "" }, { "docid": "5987797da86f466c725497e148e56c0b", "score": "0.79563546", "text": "public function table_exists($table_name)\n {\n }", "title": "" }, { "docid": "9552c9c71a340c77d1b0eb95c6baf27c", "score": "0.79253", "text": "function jcms_db_is_table_exists($table_name){\n\tif(!isset($GLOBALS['jcms_db']))\n\t\t\t_db_construct();\n\t\t\n\t$jcms_db = $GLOBALS['jcms_db'];\n\t$ret = $jcms_db->is_table_exists($table_name);\n\treturn $ret;\n}", "title": "" }, { "docid": "b24f911350f89e67577c95e83a07e8e4", "score": "0.7894638", "text": "function check_stats_table_exists() {\n $result = ExternalModules::query(\"SHOW TABLES LIKE '\" . TABLE_NAME . \"'\");\n\n if(!$result) {\n throw new Exception(\"cannot access database.\");\n }\n\n if($result->num_rows) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "533289d40c7492298945abb01f38ed02", "score": "0.7886808", "text": "function table_exists( $table ) {\n trigger_before( 'table_exists', $this, $this );\n return $this->has_table($table);\n }", "title": "" }, { "docid": "1ea4e5bdadc6efb953e6531d87f90f8c", "score": "0.78587276", "text": "function tableExists($table){\n global $db;\n $table_exit = $db->query('SHOW TABLES FROM '.DB_NAME.' LIKE \"'.$db->escape($table).'\"');\n if($table_exit) {\n if($db->num_rows($table_exit) > 0)\n return true;\n else\n return false;\n }\n }", "title": "" }, { "docid": "2549a55db05666ffff6b064218397a4f", "score": "0.78424203", "text": "function tableExists($table){\n global $db;\n $table_exit = $db->query('SHOW TABLES FROM '.DB_NAME.' LIKE \"'.$db->escape($table).'\"');\n if($table_exit) {\n if($db->num_rows($table_exit) > 0)\n return true;\n else\n return false;\n }\n}", "title": "" }, { "docid": "306ef25238a24bb4eb04e64ec3549d1c", "score": "0.7833905", "text": "function tableExists($table)\n{\n global $db;\n $table_exit = $db->query('SHOW TABLES FROM ' . DB_NAME . ' LIKE \"' . $db->escape($table) . '\"');\n if ($table_exit) {\n if ($db->num_rows($table_exit) > 0)\n return true;\n else\n return false;\n }\n}", "title": "" }, { "docid": "d78316ed8d55f8329a6d3ccc84b0b272", "score": "0.7815173", "text": "private function table_exists( $table_name ) {\n\t\treturn (bool) $this->db->get_row( $this->db->prepare( 'SHOW TABLES LIKE %s', $table_name ) );\n\t}", "title": "" }, { "docid": "88a4a387791640a1118388481d8bf065", "score": "0.7809892", "text": "private function check_table_exists ()\n {\n $table_exists_query = mysql_query ( \"SHOW TABLES LIKE '\" . $this->_db_name . \"_\" . $this->_tablename . \"'\" );\n $exists_count = mysql_num_rows ( $table_exists_query );\n\n $this->_table_exists = ( $exists_count > 0 ? TRUE : FALSE );\n }", "title": "" }, { "docid": "2ee567d9fc659a8b0c2f2f24950ba2ef", "score": "0.77995586", "text": "function table_exists($table_name)\n\t{\n\t\t$db = new db($this->module_arr['db']);\n\t\t$query_str = \"SHOW TABLES\";\n\t\t$db->set_query_str($query_str);\n\t\t$db->db_query();\n\t\t$results = $db->get_results();\n\t\tfor ( $i=0; $i<count($results); $i++ )\n\t\t{\n\t\t\t$tables[] = $results[$i]['Tables_in_'.DB_NAME];\n\t\t}\n\t\t\n\t\tif ( !in_array($table_name,$tables) ) \n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f97587c8174705de015b43b7330d47cd", "score": "0.77822274", "text": "function TableExists($name)\n\t{\n\t\treturn $this->Driver->tableExists($name);\n\t}", "title": "" }, { "docid": "21b5595b18c8222be7de92a9611fd684", "score": "0.7728794", "text": "public function hasTable()\n {\n return !empty($this->table);\n }", "title": "" }, { "docid": "1a21b9135ddf8eaf8b045b14efec4577", "score": "0.77281296", "text": "public function table_exists($table)\n\t{\n\t\ttry\n\t\t{\n\t\t\t$this->pdo->exec(\"SELECT * FROM `$table` LIMIT 1\");\n\t\t\treturn true;\n\t\t}\n\t\tcatch (\\Exception $e)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "39086194aac62bff172b1b641848f1cf", "score": "0.77234393", "text": "public function tableExists($table)\n {\n return $this->connection->Scheme()->TableExists($this->connection->prefixTable($table));\n }", "title": "" }, { "docid": "d1d92c9daaf01282f5507b40b19970cb", "score": "0.7722562", "text": "public function tableExists($table_name) {\n // Make sure we have the custom log table\n $q = db_query(\"SELECT 1 FROM \" . db_real_escape_string($table_name) . \" LIMIT 1\");\n return !($q === FALSE);\n }", "title": "" }, { "docid": "f80c872800ef5ababb1695987b55cf12", "score": "0.7722351", "text": "protected function _checkTableExists()\n\t{\n\t\tif (SENDSTUDIO_DATABASE_TYPE == 'mysql') {\n\t\t\t$query = \"SHOW TABLES LIKE '[|PREFIX|]user_activitylog'\";\n\t\t} else {\n\t\t\t$query = \"SELECT table_name FROM information_schema.tables WHERE table_name='[|PREFIX|]user_activitylog'\";\n\t\t}\n\n\t\t$result = $this->Db->Query($query);\n\t\tif (!$result) {\n\t\t\tlist($msg, $errno) = $this->Db->GetError();\n\t\t\ttrigger_error($msg, $errno);\n\t\t\treturn false;\n\t\t}\n\n\t\t$row = $this->Db->Fetch($result);\n\t\t$this->Db->FreeResult($result);\n\n\t\tif (empty($row)) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "0637099216c6b28f55099ec2628daa55", "score": "0.77045757", "text": "private function tableExists($table){\n$tablesInDb = @mysql_query('SHOW TABLES FROM '.$this->db_name.' LIKE \"'.$table.'\"');\nif($tablesInDb){\nif(mysql_num_rows($tablesInDb)==1){\nreturn true; // The table exists\n}else{\narray_push($this->result,$table.\" does not exist in this database\");\nreturn false; // The table does not exist\n}\n}\n}", "title": "" }, { "docid": "c4d3ca7209aa735299475b31d7992b4a", "score": "0.7696151", "text": "private function tableExists($table)\n { \n $tablesInDb = mysqli_query($this->con, 'SHOW TABLES FROM '.$this->db_name.' LIKE \"'.$table.'\"');\n // $tablesInDb = mysqli_fetch_array($tablesInDb, MYSQLI_ASSOC);\n if($tablesInDb)\n {\n if(mysqli_num_rows($tablesInDb)==1)\n {\n return true;\n }\n else\n {\n return false;\n }\n }\n }", "title": "" }, { "docid": "ca6dea577389441f957f81394cf19872", "score": "0.76922", "text": "function db_table_exists($table) {\n return db_num_rows(db_query(\"SHOW TABLES LIKE '{\" . db_escape_table($table) . \"}'\"));\n}", "title": "" }, { "docid": "b9027a0afd14d3c995cf1d40bb7ca9f0", "score": "0.7674926", "text": "function tableExists($pdo, $table) {\n try {\n $result = $pdo->query(\"SELECT 1 FROM $table LIMIT 1\");\n } catch (Exception $e) {\n return FALSE;\n }\n\n return $result !== FALSE;\n }", "title": "" }, { "docid": "e3daa09ecaf6490071cf94dfa1bb3118", "score": "0.7673553", "text": "protected function tableExists($table) {\n\t\treturn $this->getDB()->query(\"SELECT *\n\t\t\tFROM INFORMATION_SCHEMA.TABLES\n\t\t\tWHERE TABLE_SCHEMA = ''\n\t\t\tAND TABLE_NAME = '$table'\")->count() > 0;\n\t}", "title": "" }, { "docid": "0db3e72de8426b542645f84eb6975594", "score": "0.7672376", "text": "public function tableExists($table) {\n $condition = $this->buildTableNameCondition($table);\n $condition->compile($this->connection, $this);\n // Normally, we would heartily discourage the use of string\n // concatenation for conditionals like this however, we\n // couldn't use db_select() here because it would prefix\n // information_schema.tables and the query would fail.\n // Don't use {} around information_schema.tables table.\n return (bool) $this->connection->query(\"SELECT 1 FROM information_schema.tables WHERE \" . (string) $condition, $condition->arguments())->fetchField();\n }", "title": "" }, { "docid": "5ddaf02e70d0b585d2888a930e76b7a3", "score": "0.76452273", "text": "private function table_exists( $table_name ) {\n\t\tglobal $wpdb;\n\t\t$query = $wpdb->get_var( $wpdb->prepare( \"SHOW TABLES LIKE %s\", $this->account_table_name ) );\n\n\t\tif( ! $query == $table_name )\n\t\t\treturn false;\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "b179bff76264ac0c76724d654d036ca0", "score": "0.7641242", "text": "public function hasTable(string $name): bool;", "title": "" }, { "docid": "7d5f51f974c18bc4ce8042932170b474", "score": "0.7638226", "text": "public function tableExists(string $table) {\n $results = $this->query('',\"SHOW TABLES LIKE :table\",array(\":table\"=>$table));\n \n return count($results)>0;\n }", "title": "" }, { "docid": "3016eb39e987cff81b61431884b4cca1", "score": "0.7634394", "text": "public static function tableExists($table)\n\t{\n\t\t// Run it in try/catch in case PDO is in ERRMODE_EXCEPTION.\n\t\ttry {\n\t\t\t$result = EticSql::execute(\"SELECT 1 FROM \" . _DB_PREFIX_ . \"$table LIMIT 1\");\n\t\t} catch (Exception $e) {\n\t\t\t// We got an exception == table not found\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// Result is either boolean FALSE (no table found) or PDOStatement Object (table found)\n\t\treturn $result !== FALSE;\n\t}", "title": "" }, { "docid": "1b403c5e8f662bb23d160b6f630c8dcd", "score": "0.76316106", "text": "private function tableExists(string $table)\n {\n $table = $this->cxn->real_escape_string($table);\n $sql = \"SHOW TABLES LIKE '$table'\";\n $query = $this->cxn->query($sql);\n if ($query and $query->fetch_all(MYSQLI_BOTH)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "69d14bedd70b531da4fa716eb20f3bc9", "score": "0.76248854", "text": "public function check_if_table_exists($table_name) {\n\t$this->check_opened();\n\treturn SmartSQliteUtilDb::check_if_table_exists($this->db, (string)$table_name);\n}", "title": "" }, { "docid": "ca5f881170ddcdf54a08003574437178", "score": "0.7614575", "text": "protected static function table_exists( $name )\n {\n // same as parent method but with a different database and table name prefix\n $database = \\sabretooth\\session::self()->get_setting( 'survey_db', 'database' );\n $prefix = \\sabretooth\\session::self()->get_setting( 'survey_db', 'prefix' );\n $modifier = new modifier();\n $modifier->where( 'TABLE_SCHEMA', $database );\n $modifier->where( 'Table_Name', $prefix.$name );\n\n $count = self::get_one(\n sprintf( 'SELECT COUNT(*) FROM information_schema.TABLES %s',\n $modifier->get_sql() ) );\n\n return 0 < $count;\n }", "title": "" }, { "docid": "5e28a7d0c7fce3f0901b866c05905957", "score": "0.76084036", "text": "function tableExists($db, $tableName) {\n\t$que = \"SHOW TABLES LIKE '\" . $tableName . \"'\";\n\tif (!$result = $db->query($que)) {\n\t\techo json_encode(\"FAILED for $tableName to EXIST.\");\n\t\tdie(\"There was an error checking if $tableName exists\");\n\t}\n\treturn $result->num_rows > 0;\n}", "title": "" }, { "docid": "c3d63c06434dc350b6554c451ef2a0d6", "score": "0.7605773", "text": "function exists(): bool \n {\n return $this->client->query(\n \"SHOW TABLES LIKE '$this->name'\"\n )->rowCount() > 0;\n }", "title": "" }, { "docid": "431763fa66d8c8519162cf8b9e5b6fdc", "score": "0.7597152", "text": "function tableExists(){\n\t\t\t//establishing a connection to the database\n\t\t\t$connection = new mysqli($this->servername, $this->username, $this->password, $this->dbname);\n\t\t\t// Check connection\n\t\t\tif ($connection->connect_error) {\n \t\t\tdie(\"Connection failed: \" . $conn->connect_error);\n\t\t\t} \n\n\t\t\t$sql = \"SHOW TABLES LIKE '$this->tablename'\";\n\t\t\t$result = $connection->query($sql);\n\t\t\t//table exists\n\t\t\tif($result->num_rows > 0){\n\t\t\t\t//closes the connection to the database\n\t\t\t\t$connection->close();\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\t//table does not exist\n\t\t\telse{\n\t\t\t\t//closes the connection to the database\n\t\t\t\t$connection->close();\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "207dd510e869478ec515ad49e35ed7c7", "score": "0.75969726", "text": "public function hasTable( $table=\"\" );", "title": "" }, { "docid": "1a2b9c2f65f524698690fddbf2eb0376", "score": "0.75904274", "text": "public function hasTable($tableName);", "title": "" }, { "docid": "fe62f8adcb33c2d7b472bf0a12845d12", "score": "0.75614053", "text": "function table_exists($table_name) {\n\t$Table = mysql_query(\"show tables like '\".$table_name.\"'\");\n\n\tif (mysql_fetch_row($Table) === false) {\n\t\treturn(false);\n\t\texit;\n\t} else {\n\t\treturn(true);\n\t\texit;\n\t}\n}", "title": "" }, { "docid": "db9425176e50d5aeb6dc247eb574ed0b", "score": "0.75599277", "text": "function tablesExist()\n {\n global $wpdb;\n\n foreach($this->db as $table)\n {\n if(! $wpdb->query(\"SELECT * FROM {$table}\"))\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "7418b3ce2a10790d1e6faca12b1dcd0f", "score": "0.755828", "text": "function tablesExist()\n {\n global $wpdb;\n \n foreach($this->db as $table)\n {\n if(! $wpdb->query(\"SELECT * FROM {$table}\"))\n return false;\n }\n \n return true;\n }", "title": "" }, { "docid": "62e068314e4c76943828d7b7c9a8e68a", "score": "0.7556535", "text": "function check_table_exist($name) {\n global $db;\n $sql = 'SHOW TABLES;';\n $tables = get_array_from_sql($sql);\n foreach ($tables as $key => $value) {\n if ($value[0]==$name) return true;\n };\n return false;\n }", "title": "" }, { "docid": "5dce4cf25ed1a3a987b8a919289e6fb1", "score": "0.7551289", "text": "function tep_db_table_exists($table, $link = 'db_link') {\n //alex 2010-9-17 modified \n $db = DB_DATABASE;\n if(DB_BAK_USED == 1){\n $db = DB_DATABASE2;\n }\n $result = tep_db_query(\"show table status from `\" . $db . \"`\");\n //alex 2010-9-17 modified \n while ($list_tables = tep_db_fetch_array($result)) {\n if ($list_tables['Name'] == $table) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "bd2f079f721a13993f22a25235e2aba5", "score": "0.75465703", "text": "public function compile_table_exists()\n\t{\n\t\treturn \"SELECT * FROM sqlite_master WHERE type = 'table' AND name = :table\";\n\t}", "title": "" }, { "docid": "8795ef15b2a92a5ab684b2c7b200f9e3", "score": "0.75348204", "text": "function rs_doesTableExist( $inTableName ) {\n // check if our table exists\n $tableExists = 0;\n \n $query = \"SHOW TABLES\";\n $result = rs_queryDatabase( $query );\n\n $numRows = mysqli_num_rows( $result );\n\n\n for( $i=0; $i<$numRows && ! $tableExists; $i++ ) {\n\n $tableName = rs_mysqli_result( $result, $i, 0 );\n \n if( $tableName == $inTableName ) {\n $tableExists = 1;\n }\n }\n return $tableExists;\n }", "title": "" }, { "docid": "74c2e7c6a2598313898ed4bd574dcb52", "score": "0.7528304", "text": "public function tableExists( $table )\n\t{\n\t\treturn $this->repository->tableExists( $table );\n\t}", "title": "" }, { "docid": "e5eb80af4b3c91f19662563cbbff7b70", "score": "0.7518008", "text": "public function hasTableName(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "de9f47d1de76a09117f1702a3ed9a76d", "score": "0.751073", "text": "public function check_table_exists( $table_name = null ) {\r\n\t\tglobal $wpdb;\r\n\r\n\t\tif ( empty( $table_name ) ) {\r\n\t\t\t$message = __( 'Table name is empty.', $this->d2t );\r\n\t\t\tthrow new Exception( $message );\r\n\t\t}\r\n\r\n\t\t$valid_table_name = $this->is_lower_case_table_names ? strtolower( $table_name ) : $table_name;\r\n\t\t$result = $wpdb->get_var( $wpdb->prepare( \"SHOW TABLES LIKE %s\", $valid_table_name ) );\r\n\r\n\t\treturn $valid_table_name === $result;\r\n\t}", "title": "" }, { "docid": "af0eceb7407b34971c7240daad12469c", "score": "0.7507636", "text": "function tableExists($tablename) {\n global $database;\n $table_exists = \"SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = '$tablename'\"; //Create SQL query\n $result = $database->query($table_exists)->num_rows; //Query the DB and store the return\n return $result > 0; //If there is more than one row, the table exists.\n}", "title": "" }, { "docid": "c05b4b53b8b1c7f140edc3fea56ccbcd", "score": "0.74995464", "text": "public function testDBTableExists() {\n $this->assertTrue($this->connection->schema()->tableExists('test'), 'Returns true for existent table.');\n $this->assertFalse($this->connection->schema()->tableExists('no_such_table'), 'Returns false for nonexistent table.');\n }", "title": "" }, { "docid": "2dd572b10d0cd351571691677dee8bd9", "score": "0.7497542", "text": "private function isTableExists()\n {\n /* @var Mage_Core_Model_Resource $resource */\n $resource = Mage::getSingleton('core/resource');\n $connection = $resource->getConnection('core_read');\n if ($connection) {\n return $connection->isTableExists($resource->getTableName('wallee_payment/payment_method_configuration'));\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "91875a44b6c13028bdb977f800c58774", "score": "0.74811536", "text": "protected function tableExists($tableName) {\n\t\t\t$results =$this->queryList(\"SHOW TABLES LIKE '$tableName'\",null);\n\n\t\t\treturn $this->AsObj($results) ? true : false;\n\t\t \n\t\t}", "title": "" }, { "docid": "a3fd279b5600ff078a91112a9664bcac", "score": "0.7468923", "text": "function table_exists($table_name){\r\n\t\t$db_result = $this->query(\"SELECT COUNT(*) as COUNT FROM information_schema.tables WHERE table_schema = '\".$this->DB_NAME.\"' AND table_name = '\".$table_name.\"'\", false, true);\r\n\t\treturn $db_result[0][\"COUNT\"];\r\n\t}", "title": "" }, { "docid": "aadf9293ccf83cc97756e7d1c09b9c0d", "score": "0.74558", "text": "function TableExists($tableName, $connection, $dbName) {\n $tb = mysqli_real_escape_string($connection, $tableName);\n $db = mysqli_real_escape_string($connection, $dbName);\n\n $checktable = mysqli_query($connection,\n \"SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_NAME = '$tb' AND TABLE_SCHEMA = '$db'\");\n\n if(mysqli_num_rows($checktable) > 0) return true;\n\n return false;\n}", "title": "" }, { "docid": "3f770c9c404dc8fee4862f52440423df", "score": "0.74449927", "text": "function ls_doesTableExist( $inTableName ) {\n // check if our table exists\n $tableExists = 0;\n \n $query = \"SHOW TABLES\";\n $result = ls_queryDatabase( $query );\n\n $numRows = mysqli_num_rows( $result );\n\n\n for( $i=0; $i<$numRows && ! $tableExists; $i++ ) {\n\n $tableName = ls_mysqli_result( $result, $i, 0 );\n \n if( $tableName == $inTableName ) {\n $tableExists = 1;\n }\n }\n return $tableExists;\n }", "title": "" }, { "docid": "79b8aec6170aff852ddae418d8c7214e", "score": "0.7420836", "text": "public static function isTableExists($table) {\n\n // Try a select statement against the table\n // Run it in try/catch in case PDO is in ERRMODE_EXCEPTION.\n try {\n $result = self::$pdo->query(\"SELECT 1 FROM $table LIMIT 1\");\n } catch (Exception $e) {\n // We got an exception == table not found\n return FALSE;\n }\n\n // Result is either boolean FALSE (no table found) or PDOStatement Object (table found)\n return $result !== FALSE;\n }", "title": "" }, { "docid": "508bd166af95fff086746797698a1c99", "score": "0.74043643", "text": "function tableExists($database,$table)\n\t{\n $db=$this->getDatabase();\n\t\t$db->setQuery('SHOW TABLES FROM `'.$database.'`');\n\t\t$db->query(); \n\t\tforeach ($db->loadObjectList() as $k=>$v) foreach ($v as $v2) $arr[$k]=$v2;\n if (is_array($arr) AND in_array($table,$arr)) return true;\n\t\telse return false;\n\t}", "title": "" }, { "docid": "e210138cb9ba4fd0f04adbde95964a60", "score": "0.73992443", "text": "private function tableExists($table) {\n $tablesInDb = mysql_query('SHOW TABLES FROM ' . $this->db_name . ' LIKE \"' . $table . '\"') or die(mysql_error());\n if ($tablesInDb) {\n if (mysql_num_rows($tablesInDb) == 1) {\n return true;\n } else {\n return false;\n }\n }\n }", "title": "" }, { "docid": "594acb501ff204c72b0595b3bc48ec92", "score": "0.73857856", "text": "function TableExists($tableName, $connection, $dbName) {\n $t = mysqli_real_escape_string($connection, $tableName);\n $d = mysqli_real_escape_string($connection, $dbName);\n\n $checktable = mysqli_query($connection,\n \"SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_NAME = '$t' AND TABLE_SCHEMA = '$d'\");\n\n if(mysqli_num_rows($checktable) > 0) return true;\n\n return false;\n}", "title": "" }, { "docid": "24244df8cad09e528c2eb3c1b4cd50b3", "score": "0.73789483", "text": "public function lotto_table_exists($lotto_tbl)\n\t{\n\t return $this->db->table_exists($lotto_tbl);\n\t}", "title": "" }, { "docid": "6c2c47972a98ffff6f4fab34dd24c2c7", "score": "0.73758525", "text": "public function check_table() {\n\t\t$_table = ARequest::get('table');\n\t\tif(empty($_table)) {\n\t\t\t$this->ajax_return(array('data' => 0));\n\t\t}\n\t\t$tables = M()->query(\"SHOW TABLES FROM `\" . C('DB.NAME') . \"`\");\n\t\tforeach($tables as $table) {\n\t\t\tif(C('DB.PREFIX') . $_table . C('DB.SUFFIX') == $table['Tables_in_' . C('DB.NAME')]) {\n\t\t\t\t$this->ajax_return(array('data' => 0));\n\t\t\t}\n\t\t}\n\t\t$this->ajax_return(array('data' => 1));\n\t}", "title": "" }, { "docid": "c98a33024367d643a0ac83690ff349ab", "score": "0.7374324", "text": "protected function doesSchemaVersionTableExist()\n\t{\n\t\t$select = $this->getPreparedSqlSelectStatementForCurrentVersion();\n\t\ttry {\n\t\t\tif ($select->execute() === false){\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t}\t\t\t\n\t\t} catch (\\Exception $e) {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "66947ea582b1fe01e3343ba24686662c", "score": "0.7367066", "text": "public function tableExists($table)\n {\n try {\n $query = $this->app['db']->query(\"SHOW TABLES LIKE '$table'\");\n return (false !== ($row = $query->fetch())) ? true : false;\n } catch (\\Doctrine\\DBAL\\DBALException $e) {\n throw new \\Exception($e);\n }\n }", "title": "" }, { "docid": "f2a8252022a1fa355ff2d7f36c60a79b", "score": "0.73568964", "text": "function TableExists($tableName, $connection, $dbName) {\n $t = mysqli_real_escape_string($connection, $tableName);\n $d = mysqli_real_escape_string($connection, $dbName);\n\n $checktable = mysqli_query($connection,\n \"SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_NAME = '$t' AND TABLE_SCHEMA = '$d'\");\n\n if(mysqli_num_rows($checktable) > 0) return true;\n\n return false;\n}", "title": "" }, { "docid": "a02f044ea4b165c0446069f962d80379", "score": "0.7354741", "text": "public static function table_exists( $table ) {\n global $wpdb;\n return $wpdb->get_var(\"SHOW TABLES LIKE '$table'\") == $table;\n }", "title": "" }, { "docid": "9f9a9a6f7c0e9c4d36151fe2dea3f961", "score": "0.73529947", "text": "public static function _exists($table)\n {\n $start_time = microtime(true);\n $result = $table->exists();\n static::sqlDebug() && static::recordRunSql(microtime(true) - $start_time, $table->toSql(), $table->getBindings(), __METHOD__);\n return $result;\n }", "title": "" }, { "docid": "4f4d5ce375b133a23016321ac71dda29", "score": "0.73513865", "text": "public function table_exists($name)\n {\n \t$result = $this->query(\"SHOW TABLES LIKE '\".$name.\"'\");\n \t\n \treturn $result->num_rows;\n }", "title": "" }, { "docid": "0286352c0a525e073381398fa9532331", "score": "0.7347433", "text": "protected function checkTableExist($table)\n {\n $queryBuilder = $this->databaseConnection->createQueryBuilder();\n $queryBuilder->select('*');\n $queryBuilder->from($table, 't');\n\n try {\n $this->databaseConnection->query($queryBuilder);\n } catch (DBALException $e) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "cf56f4d7bf2f94ba5afd6d33d092d561", "score": "0.7331282", "text": "function table_exists_in_db ($table_name){\n global $connection;\n\n $query = \"SHOW TABLES\";\n $table_list = mysqli_query($connection, $query);\n while ($table_in_db = mysqli_fetch_row($table_list)) {\n if ($table_name==$table_in_db[0]) {\n return true;\n }\n }\n return false;\n}", "title": "" }, { "docid": "4d1f65103272f109d75268c00ae8abb9", "score": "0.73272", "text": "public function hasTable(): bool\n {\n return $this->tableTitle && $this->tableKey;\n }", "title": "" }, { "docid": "c197658280883556d11fa9c170a9b261", "score": "0.7316952", "text": "function is_table_empty($baseTableName){\n global $prohitsManagerDB, $mTablesNameArr;\n $baseTableName = strtoupper($baseTableName);\n $isEmpty = 1;\n if(isset($mTablesNameArr[$baseTableName])){\n $tableName = $mTablesNameArr[$baseTableName];\n $mDBname = MANAGER_DB; \n $SQL = \"SELECT * FROM `$tableName` LIMIT 1\";\n $baseTableArr = $prohitsManagerDB->fetch($SQL);\n \n if($baseTableArr){\n $isEmpty = 0;\n }\n } \n return $isEmpty;\n}", "title": "" }, { "docid": "c51a1a20fccacdc0b3aac155c9abcb71", "score": "0.72999024", "text": "public function hasTable($table) {\n\t\t$SQL_table = Convert::raw2sql($table);\n\t\treturn (bool)($this->query(\"SHOW TABLES LIKE '$SQL_table'\")->value());\n\t}", "title": "" }, { "docid": "75e187eb09c73555416ac68da3ddc9a7", "score": "0.72911274", "text": "protected function tablesExist()\n {\n return ($this->getDatabaseVersion() !== false);\n }", "title": "" }, { "docid": "e01806593105b3e5cdafbee9f9972e6e", "score": "0.7280998", "text": "public function checkDB(): bool\n {\n return $this->db()->ifTableExists($this->tablename);\n }", "title": "" }, { "docid": "60b01dd200710feeb7f36c29800a3b34", "score": "0.7270341", "text": "public function tableExists(string $table): bool\n {\n $q = 'SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA=? AND TABLE_NAME=?';\n $st = $this->db->prepare($q);\n $st->execute(array($this->db_name, $table));\n if ($st->rowCount() === 0)\n return false;\n else\n return true;\n }", "title": "" }, { "docid": "2c9b47230a23389ab9fb92a5e092e73d", "score": "0.72601235", "text": "public function has_table($table)\n\t{\n\t\t$sql = $this->_grammar->compile_table_exists();\n\n\t\t$params = [\n\t\t\t':table' => $table,\n\t\t\t':db' => $this->_get_db_name(),\n\t\t];\n\n\t\t$query = DB::query(Database::SELECT, $sql);\n\t\t$query->parameters($params);\n\n\t\treturn count($query->execute($this->_db)) > 0;\n\t}", "title": "" }, { "docid": "9a618e33ed939d2b3f55e1a7607f9f12", "score": "0.7251701", "text": "Protected function table_exits($table_name){\n if(empty($table_name)) return false;\n\n /** Check if this function is safe to execute */\n if(!$this->initialized) return false;\n\n /** Check if table exists */\n if(file_exists($this->db_dir.\"/$table_name.jdb\")) return true;\n else return false;\n }", "title": "" }, { "docid": "3864a682943ee6a6248092724acced7d", "score": "0.7239538", "text": "public function hasTable($table)\n {\n return $this->adapter->hasTable($table);\n }", "title": "" }, { "docid": "1040b4d4a13b8ba3c8cd35c0779b506c", "score": "0.7232616", "text": "public function checkMigrationTableExistence(): bool;", "title": "" }, { "docid": "dfb3172862255f66015c1e20d21eb884", "score": "0.7228693", "text": "public function has_table($table_name) {\n $tables = $this->get_tables();\n return (!empty($tables[$table_name]));\n }", "title": "" }, { "docid": "3c916333814ba31f4cf1a654411ae716", "score": "0.7226935", "text": "public static function check_if_table_exists($db, $table_name) {\n\t//--\n\tself::check_connection($db);\n\t//--\n\t$tquery = 'SELECT `name` FROM `sqlite_master` WHERE `type`=\\'table\\' AND `name`=\\''.self::escape_str($db, $table_name).'\\'';\n\t$test = self::read_data($db, $tquery);\n\t//--\n\t$sqlite_error = '';\n\t//if(!$test) {\n\tif((Smart::array_size($test) <= 0) OR (((string)$test[0]) !== ((string)$table_name))) {\n\t\t//--\n\t\t$sqlite_error = 'SQLite3-ERR:: '.@$db->lastErrorMsg();\n\t\t//--\n\t} //end if else\n\t//--\n\tif(strlen($sqlite_error) > 0) { // if test failed means table is not available\n\t\t$out = 0;\n\t} else {\n\t\t$out = 1;\n\t} //end if\n\t//--\n\treturn $out;\n\t//--\n}", "title": "" }, { "docid": "368218b5db6b20139fcf3e0c2e92d3c5", "score": "0.7214995", "text": "public function tableExists(string $table_name)\r\n {\r\n if (isset($this->data[$table_name])) {\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "ccaf4d497eef1ea0eadc74ed5d1d3fb3", "score": "0.7211282", "text": "public function tableExists(string $table_name): bool\n {\n return isset($this->data[$table_name]);\n }", "title": "" }, { "docid": "ccaf4d497eef1ea0eadc74ed5d1d3fb3", "score": "0.7211282", "text": "public function tableExists(string $table_name): bool\n {\n return isset($this->data[$table_name]);\n }", "title": "" }, { "docid": "b030a66546439fd656954370e1aa413c", "score": "0.72106993", "text": "protected function dataTablesExist(): bool {\n\t\tglobal $wpdb;\n\n\t\t// to confirm that our tables exist, we'll try to select one\n\t\t// of them. since they're created together, if one exists,\n\t\t// the other must as well.\n\n\t\t$sql = \"SHOW TABLES LIKE '%s'\";\n\t\t$table = $this->tmfChallenge->getTickerTable();\n\t\t$statement = $wpdb->prepare($sql, $table);\n\t\treturn $wpdb->get_var($statement) === $table;\n\t}", "title": "" }, { "docid": "1939cb6989048f19588ac7f43fae671e", "score": "0.7207793", "text": "function check_table($pdoObject, $tableName) {\n $selectStatement = \"SELECT 1 from $tableName LIMIT 1\";\n try {\n $result = $pdoObject->query($selectStatement);\n } catch (PDOException $e) {\n return FALSE;\n }\n\n return $result !== FALSE;\n }", "title": "" }, { "docid": "4930aff24dff7edbc8606907be320182", "score": "0.72027814", "text": "public function testIfTableIsPresent()\n {\n $this->createDefaultObject();\n $this->seeInDatabase($this::$TABLE_NAME, [\n 'name' => $this::$NAME1\n ]);\n }", "title": "" }, { "docid": "cfa2620a34289eff56c25c97440133aa", "score": "0.7198097", "text": "abstract public function TableExists( $sTableName );", "title": "" } ]
915eb9a29e79f3097bb6939c28061223
Apply criteria in query repository
[ { "docid": "412a2431f2f613c2f412eda73fe1afe4", "score": "0.0", "text": "public function apply($model, RepositoryInterface $repository)\n {\n return $model->where(function (Builder $q) {\n $search = '%' . $this->search . '%';\n return $q->where('navigate_link', 'like', $search)\n ->orWhere('title', 'like', $search);\n });\n }", "title": "" } ]
[ { "docid": "4eb3072caea0afbb80a4ac1cf7da9a49", "score": "0.76002085", "text": "public function applyCriteria();", "title": "" }, { "docid": "fec8cf1800ee7ee76f7ce6cdd8c3185d", "score": "0.7192747", "text": "public function applyCriteria(): self;", "title": "" }, { "docid": "d854a39be9fd995aec870798b36d7d1a", "score": "0.6929891", "text": "public function apply($model, RepositoryInterface $repository) //hàm apply kế thừa từ interface CriteriaInterface\n {\n $query = $model->newQuery(); //khởi tạo câu query\n\n if(!empty($this->params['id'])) { //nếu tồn tại params['id'] ở controller\n $query->where('id',$this->params['id']); // câu query= select from where id=params['id']\n }\n if(!empty($this->params['ids'])) { //nếu tồn tại params['id'] ở controller\n $query->whereIn('id',$this->params['ids']); // câu query= select from where id=params['id']\n }\n if(!empty($this->params['exclude_id'])) { //nếu tồn tại params['id'] ở controller\n $query->where('id', '<>', $this->params['exclude_id']); // câu query= select from where id=params['id']\n }\n if(!empty($this->params['full_name'])) {// nếu tồn tại params['full_name'] ở controller\n $pattern = '%'.$this->params['full_name'].'%'; //gán $pattern='%$this->params['full_name']%'\n $query->where('full_name', 'like', $pattern);//câu query= select from where full_name like '%params['full_name']%'\n }\n if(!empty($this->params['course_name'])) {// nếu tồn tại params['full_name'] ở controller\n $query->where('course_name', $this->params['course_name']);//câu query= select from where full_name like '%params['full_name']%'\n }\n if(!empty($this->params['identification_num'])) {//nếu tồn tại params['identification_num'] ở controller\n $query->where('identification_num',$this->params['identification_num']);//câu query= select from where identification_num=params['identification_num']\n }\n if(!empty($this->params['identification_nums'])) {//nếu tồn tại params['identification_nums'] ở controller\n $query->whereIn('identification_num',$this->params['identification_nums']);//câu query= select from where identification_num in params['identification_nums']\n }\n return $query; //trả về câu query\n }", "title": "" }, { "docid": "f379741a96a22a690bcf1b401b08e7ff", "score": "0.67140234", "text": "public function applyCriteria($criteria);", "title": "" }, { "docid": "accce41f2b419783a516ad548755ca43", "score": "0.6676966", "text": "public function withCriteria(...$criteria);", "title": "" }, { "docid": "0bae4ab5dac7ba3fe80dd1e55f468b7a", "score": "0.66636723", "text": "abstract protected function getCriteria();", "title": "" }, { "docid": "6c8c09cf1afbd6e794d98c8c462e1fd2", "score": "0.66345084", "text": "public function query(Criteria $criteria);", "title": "" }, { "docid": "774837e07472dd04cf2bb3e2d1407c4d", "score": "0.64441484", "text": "public function criteria(Criteria $criteria);", "title": "" }, { "docid": "0f70cf1fc95b7f830479732860ee1a83", "score": "0.6417341", "text": "public function findBy( Criteria $criteria );", "title": "" }, { "docid": "0d30399913c3d18ed8e78a828efc45c0", "score": "0.6313172", "text": "public function applyRestrictions()\n {\n if ($this->currentExpr === null) {\n $this->currentExpr = array_pop($this->exprStack);\n }\n $this->qb->andWhere($this->currentExpr);\n $this->resetState();\n }", "title": "" }, { "docid": "1469caa083471dbf3d5de7d257223599", "score": "0.6246386", "text": "public function getCriteria();", "title": "" }, { "docid": "7926319abc3818e4d66f743a967b375c", "score": "0.6221064", "text": "public function handle()\n {\n $this->userRepository->pushCriteria(UserCriteria::class);\n dd($this->userRepository->all());\n\n\n////全データを取得\n//$this->userRepository->all();\n//\n////idで検索\n//$this->userRepository->find($id);\n//\n///**\n// * リレーション先のモデルを指定して取得\n// * Userモデルにpost()でリレーションが定義されている前提\n// */\n//$this->userRepository->with(['post'])->find($id);\n//\n////フィールド名を指定してデータを取得\n//$this->userRepository->findByField('name', 'root');\n//\n////複数条件を指定してデータを取得\n//$this->userRepository->findWhere([\n// //Default Condition =\n// 'name' => 'root',\n// //Custom Condition\n// ['created_at', '>', '2016-01-01 00:00:00']\n//]);\n//\n////1つのフィールドに対し、複数の値から検索\n//$this->userRepository->findWhereIn('id', [1, 2, 3, 4]);\n//\n//// 上記の逆も用意されている\n//$this->userRepository->findWhereNotIn('id', [6, 7, 8, 9]);\n//\n///**\n// * 条件をクロージャでも渡せる\n// *\n// * 各メソッドにて$this->applyScope()が呼ばれていて\n// * そこで指定した条件は追加される\n// */\n//$this->userRepository->scopeQuery(function($query){\n// return $query->orderBy('updated_at', 'asc');\n//})->all();\n//\n///**\n// * 一件取得\n// * ただ、これは引数に条件は渡せないので、scopeQueryや\n// * 後述のCriteriaを使う前提での実装\n// */\n//$this->userRepository->first($columns);\n//\n///**\n// * create, update, deleteも実装されている(ラッパーみたいな感じ)\n// */\n//$this->userRepository->create(Input::all());\n//$this->userRepository->update(Input::all(), $id);\n//$this->userRepository->delete($id);\n }", "title": "" }, { "docid": "034e763e1ad16d8284a2f3d193d3635f", "score": "0.61603713", "text": "abstract function createCriteriaFromParams($query, $controller);", "title": "" }, { "docid": "549fadada7436d4f54140fbaeb6c210b", "score": "0.59577876", "text": "public function query() {\n $this->query->addWhere($this->options['group'], \"$this->realField\", $this->value, $this->operator);\n }", "title": "" }, { "docid": "0ad83ab64e835ffcc72908ce570def94", "score": "0.5845103", "text": "public function findBy(array $criteria)\n {\n }", "title": "" }, { "docid": "b3c16f0b5030731f2314f96ebbe63983", "score": "0.5791782", "text": "public function query() {\n $this->field_alias = $this->real_field;\n $this->query->add_where('', $this->definition['trovequery']['arg'], $this->definition['trovequery']['value']);\n }", "title": "" }, { "docid": "6b1fd72397e6c502660b7d673986a975", "score": "0.5760283", "text": "public function setRepository(Repository $repository): ParameterQuery;", "title": "" }, { "docid": "175c556c9221980505cd401fbd358495", "score": "0.57426023", "text": "public function findBy(array $criteria);", "title": "" }, { "docid": "4f13a2665fc11e3a3813b91491a52a33", "score": "0.57225883", "text": "public function buildCriteria()\n {\n $criteria = new Criteria(PenggunaPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(PenggunaPeer::PENGGUNA_ID)) $criteria->add(PenggunaPeer::PENGGUNA_ID, $this->pengguna_id);\n if ($this->isColumnModified(PenggunaPeer::SEKOLAH_ID)) $criteria->add(PenggunaPeer::SEKOLAH_ID, $this->sekolah_id);\n if ($this->isColumnModified(PenggunaPeer::LEMBAGA_ID)) $criteria->add(PenggunaPeer::LEMBAGA_ID, $this->lembaga_id);\n if ($this->isColumnModified(PenggunaPeer::YAYASAN_ID)) $criteria->add(PenggunaPeer::YAYASAN_ID, $this->yayasan_id);\n if ($this->isColumnModified(PenggunaPeer::LA_ID)) $criteria->add(PenggunaPeer::LA_ID, $this->la_id);\n if ($this->isColumnModified(PenggunaPeer::DUDI_ID)) $criteria->add(PenggunaPeer::DUDI_ID, $this->dudi_id);\n if ($this->isColumnModified(PenggunaPeer::KODE_LEMB_SERT)) $criteria->add(PenggunaPeer::KODE_LEMB_SERT, $this->kode_lemb_sert);\n if ($this->isColumnModified(PenggunaPeer::PESERTA_DIDIK_ID)) $criteria->add(PenggunaPeer::PESERTA_DIDIK_ID, $this->peserta_didik_id);\n if ($this->isColumnModified(PenggunaPeer::USERNAME)) $criteria->add(PenggunaPeer::USERNAME, $this->username);\n if ($this->isColumnModified(PenggunaPeer::A_BOT)) $criteria->add(PenggunaPeer::A_BOT, $this->a_bot);\n if ($this->isColumnModified(PenggunaPeer::NAMA)) $criteria->add(PenggunaPeer::NAMA, $this->nama);\n if ($this->isColumnModified(PenggunaPeer::TEMPAT_LAHIR)) $criteria->add(PenggunaPeer::TEMPAT_LAHIR, $this->tempat_lahir);\n if ($this->isColumnModified(PenggunaPeer::TGL_LAHIR)) $criteria->add(PenggunaPeer::TGL_LAHIR, $this->tgl_lahir);\n if ($this->isColumnModified(PenggunaPeer::JENIS_KELAMIN)) $criteria->add(PenggunaPeer::JENIS_KELAMIN, $this->jenis_kelamin);\n if ($this->isColumnModified(PenggunaPeer::NIP_NIM)) $criteria->add(PenggunaPeer::NIP_NIM, $this->nip_nim);\n if ($this->isColumnModified(PenggunaPeer::JABATAN_LEMBAGA)) $criteria->add(PenggunaPeer::JABATAN_LEMBAGA, $this->jabatan_lembaga);\n if ($this->isColumnModified(PenggunaPeer::ALAMAT)) $criteria->add(PenggunaPeer::ALAMAT, $this->alamat);\n if ($this->isColumnModified(PenggunaPeer::KODE_WILAYAH)) $criteria->add(PenggunaPeer::KODE_WILAYAH, $this->kode_wilayah);\n if ($this->isColumnModified(PenggunaPeer::NO_TELEPON)) $criteria->add(PenggunaPeer::NO_TELEPON, $this->no_telepon);\n if ($this->isColumnModified(PenggunaPeer::NO_HP)) $criteria->add(PenggunaPeer::NO_HP, $this->no_hp);\n if ($this->isColumnModified(PenggunaPeer::APPROVAL_PENGGUNA)) $criteria->add(PenggunaPeer::APPROVAL_PENGGUNA, $this->approval_pengguna);\n if ($this->isColumnModified(PenggunaPeer::AKTIF)) $criteria->add(PenggunaPeer::AKTIF, $this->aktif);\n if ($this->isColumnModified(PenggunaPeer::PASSWORD)) $criteria->add(PenggunaPeer::PASSWORD, $this->password);\n if ($this->isColumnModified(PenggunaPeer::PASSWORD_LAMA)) $criteria->add(PenggunaPeer::PASSWORD_LAMA, $this->password_lama);\n if ($this->isColumnModified(PenggunaPeer::TGL_GANTI_PWD)) $criteria->add(PenggunaPeer::TGL_GANTI_PWD, $this->tgl_ganti_pwd);\n if ($this->isColumnModified(PenggunaPeer::ID_SDM_PENGGUNA)) $criteria->add(PenggunaPeer::ID_SDM_PENGGUNA, $this->id_sdm_pengguna);\n if ($this->isColumnModified(PenggunaPeer::ID_PD_PENGGUNA)) $criteria->add(PenggunaPeer::ID_PD_PENGGUNA, $this->id_pd_pengguna);\n if ($this->isColumnModified(PenggunaPeer::TOKEN_REG)) $criteria->add(PenggunaPeer::TOKEN_REG, $this->token_reg);\n if ($this->isColumnModified(PenggunaPeer::JABATAN)) $criteria->add(PenggunaPeer::JABATAN, $this->jabatan);\n if ($this->isColumnModified(PenggunaPeer::PTK_ID)) $criteria->add(PenggunaPeer::PTK_ID, $this->ptk_id);\n if ($this->isColumnModified(PenggunaPeer::CREATE_DATE)) $criteria->add(PenggunaPeer::CREATE_DATE, $this->create_date);\n if ($this->isColumnModified(PenggunaPeer::LAST_UPDATE)) $criteria->add(PenggunaPeer::LAST_UPDATE, $this->last_update);\n if ($this->isColumnModified(PenggunaPeer::SOFT_DELETE)) $criteria->add(PenggunaPeer::SOFT_DELETE, $this->soft_delete);\n if ($this->isColumnModified(PenggunaPeer::LAST_SYNC)) $criteria->add(PenggunaPeer::LAST_SYNC, $this->last_sync);\n if ($this->isColumnModified(PenggunaPeer::UPDATER_ID)) $criteria->add(PenggunaPeer::UPDATER_ID, $this->updater_id);\n\n return $criteria;\n }", "title": "" }, { "docid": "5b31fb6aa18e7d47325cc9959c725daf", "score": "0.5705002", "text": "public function beforeFetch(ModelCriteria $query);", "title": "" }, { "docid": "156dfec82eb99147fe32fb9928b996a6", "score": "0.56727344", "text": "public function findOneBy( Criteria $criteria );", "title": "" }, { "docid": "8e168dd4e9b70a9e88cdf443d175f2c9", "score": "0.5670338", "text": "function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null);", "title": "" }, { "docid": "451f3927cfb677b2db2732741f95ac04", "score": "0.5630455", "text": "public function search($criteria)\n {\n }", "title": "" }, { "docid": "27b33c795d6274a25865ccf941d87815", "score": "0.56219614", "text": "abstract public function match(QueryBuilder $qb);", "title": "" }, { "docid": "f3af445f5c51994075c719b3f9c950bf", "score": "0.5606407", "text": "public function setCriteria(CriteriaContract $criteria): static;", "title": "" }, { "docid": "9cc12fcd3e06cd9a583a517ed1587456", "score": "0.5565098", "text": "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->pendaftaran_id)){\n\t\t\t$criteria->addCondition('pendaftaran_id = '.$this->pendaftaran_id);\n\t\t}\n\t\tif(!empty($this->pasienpulang_id)){\n\t\t\t$criteria->addCondition('pasienpulang_id = '.$this->pasienpulang_id);\n\t\t}\n\t\tif(!empty($this->pasienbatalperiksa_id)){\n\t\t\t$criteria->addCondition('pasienbatalperiksa_id = '.$this->pasienbatalperiksa_id);\n\t\t}\n\t\tif(!empty($this->penanggungjawab_id)){\n\t\t\t$criteria->addCondition('penanggungjawab_id = '.$this->penanggungjawab_id);\n\t\t}\n\t\tif(!empty($this->penjamin_id)){\n\t\t\t$criteria->addCondition('penjamin_id = '.$this->penjamin_id);\n\t\t}\n\t\tif(!empty($this->shift_id)){\n\t\t\t$criteria->addCondition('shift_id = '.$this->shift_id);\n\t\t}\n\t\tif(!empty($this->pasien_id)){\n\t\t\t$criteria->addCondition('pasien_id = '.$this->pasien_id);\n\t\t}\n\t\tif(!empty($this->persalinan_id)){\n\t\t\t$criteria->addCondition('persalinan_id = '.$this->persalinan_id);\n\t\t}\n\t\tif(!empty($this->pegawai_id)){\n\t\t\t$criteria->addCondition('pegawai_id = '.$this->pegawai_id);\n\t\t}\n\t\tif(!empty($this->instalasi_id)){\n\t\t\t$criteria->addCondition('instalasi_id = '.$this->instalasi_id);\n\t\t}\n\t\tif(!empty($this->caramasuk_id)){\n\t\t\t$criteria->addCondition('caramasuk_id = '.$this->caramasuk_id);\n\t\t}\n\t\tif(!empty($this->pengirimanrm_id)){\n\t\t\t$criteria->addCondition('pengirimanrm_id = '.$this->pengirimanrm_id);\n\t\t}\n\t\tif(!empty($this->peminjamanrm_id)){\n\t\t\t$criteria->addCondition('peminjamanrm_id = '.$this->peminjamanrm_id);\n\t\t}\n\t\tif(!empty($this->jeniskasuspenyakit_id)){\n\t\t\t$criteria->addCondition('jeniskasuspenyakit_id = '.$this->jeniskasuspenyakit_id);\n\t\t}\n\t\tif(!empty($this->pembayaranpelayanan_id)){\n\t\t\t$criteria->addCondition('pembayaranpelayanan_id = '.$this->pembayaranpelayanan_id);\n\t\t}\n\t\tif(!empty($this->kelaspelayanan_id)){\n\t\t\t$criteria->addCondition('kelaspelayanan_id = '.$this->kelaspelayanan_id);\n\t\t}\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->pasienadmisi_id)){\n\t\t\t$criteria->addCondition('pasienadmisi_id = '.$this->pasienadmisi_id);\n\t\t}\n\t\tif(!empty($this->kelompokumur_id)){\n\t\t\t$criteria->addCondition('kelompokumur_id = '.$this->kelompokumur_id);\n\t\t}\n\t\tif(!empty($this->golonganumur_id)){\n\t\t\t$criteria->addCondition('golonganumur_id = '.$this->golonganumur_id);\n\t\t}\n\t\tif(!empty($this->rujukan_id)){\n\t\t\t$criteria->addCondition('rujukan_id = '.$this->rujukan_id);\n\t\t}\n\t\tif(!empty($this->antrian_id)){\n\t\t\t$criteria->addCondition('antrian_id = '.$this->antrian_id);\n\t\t}\n\t\tif(!empty($this->karcis_id)){\n\t\t\t$criteria->addCondition('karcis_id = '.$this->karcis_id);\n\t\t}\n\t\tif(!empty($this->ruangan_id)){\n\t\t\t$criteria->addCondition('ruangan_id = '.$this->ruangan_id);\n\t\t}\n\t\t$criteria->compare('LOWER(no_pendaftaran)',strtolower($this->no_pendaftaran),true);\n\t\t$criteria->compare('LOWER(tgl_pendaftaran)',strtolower($this->tgl_pendaftaran),true);\n\t\t$criteria->compare('LOWER(no_urutantri)',strtolower($this->no_urutantri),true);\n\t\t$criteria->compare('LOWER(transportasi)',strtolower($this->transportasi),true);\n\t\t$criteria->compare('LOWER(keadaanmasuk)',strtolower($this->keadaanmasuk),true);\n\t\t$criteria->compare('LOWER(statusperiksa)',strtolower($this->statusperiksa),true);\n\t\t$criteria->compare('LOWER(statuspasien)',strtolower($this->statuspasien),true);\n\t\t$criteria->compare('LOWER(kunjungan)',strtolower($this->kunjungan),true);\n\t\t$criteria->compare('alihstatus',$this->alihstatus);\n\t\t$criteria->compare('byphone',$this->byphone);\n\t\t$criteria->compare('kunjunganrumah',$this->kunjunganrumah);\n\t\t$criteria->compare('LOWER(statusmasuk)',strtolower($this->statusmasuk),true);\n\t\t$criteria->compare('LOWER(umur)',strtolower($this->umur),true);\n\t\t$criteria->compare('LOWER(tglselesaiperiksa)',strtolower($this->tglselesaiperiksa),true);\n\t\t$criteria->compare('LOWER(keterangan_reg)',strtolower($this->keterangan_reg),true);\n\t\t$criteria->compare('LOWER(create_time)',strtolower($this->create_time),true);\n\t\t$criteria->compare('LOWER(update_time)',strtolower($this->update_time),true);\n\t\t$criteria->compare('LOWER(create_loginpemakai_id)',strtolower($this->create_loginpemakai_id),true);\n\t\t$criteria->compare('LOWER(update_loginpemakai_id)',strtolower($this->update_loginpemakai_id),true);\n\t\t$criteria->compare('LOWER(create_ruangan)',strtolower($this->create_ruangan),true);\n\t\t$criteria->compare('nopendaftaran_aktif',$this->nopendaftaran_aktif);\n\t\t$criteria->compare('LOWER(status_konfirmasi)',strtolower($this->status_konfirmasi),true);\n\t\t$criteria->compare('LOWER(tgl_konfirmasi)',strtolower($this->tgl_konfirmasi),true);\n\t\t$criteria->compare('LOWER(tglrenkontrol)',strtolower($this->tglrenkontrol),true);\n\t\t$criteria->compare('statusfarmasi',$this->statusfarmasi);\n\t\t$criteria->compare('panggilantrian',$this->panggilantrian);\n\t\tif(!empty($this->asuransipasien_id)){\n\t\t\t$criteria->addCondition('asuransipasien_id = '.$this->asuransipasien_id);\n\t\t}\n\t\t$criteria->compare('LOWER(tglakandilayani)',strtolower($this->tglakandilayani),true);\n\n\t\treturn $criteria;\n\t}", "title": "" }, { "docid": "9226cb2deb8df8221886adfdaf9a0b6f", "score": "0.5556724", "text": "public function findPostBy(Criteria $criteria);", "title": "" }, { "docid": "01236101e9544edb6eb6eb22b7923b5d", "score": "0.5550285", "text": "private function _runCriteria()\n\t{\n\t\tif((craft()->neo->isPreviewMode() || $this->isUsingMemoized()) && !empty($this->_allElements))\n\t\t{\n\t\t\t$elements = $this->_allElements;\n\n\t\t\tforeach($this->filterOrder as $filter)\n\t\t\t{\n\t\t\t\tif(isset($this->_currentFilters[$filter]))\n\t\t\t\t{\n\t\t\t\t\t$value = $this->_currentFilters[$filter];\n\t\t\t\t\t$method = '__' . $filter;\n\n\t\t\t\t\t$elements = $this->$method($elements, $value);\n\t\t\t\t}\n\n\t\t\t\tif(empty($elements))\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->setMatchedElements($elements);\n\t\t}\n\t}", "title": "" }, { "docid": "9aee36ee2effc4c628fe4321b9c4df31", "score": "0.5520779", "text": "public function apply( $model, RepositoryInterface $repository ) {\n\t\tif ( $this->request->has('institute_id') ) {\n\t\t\t$instituteId = (int) GeneralHelpers::decode(GeneralHelpers::clearParam($this->request->input('institute_id'),\n\t\t\t\tPARAM_RAW_TRIMMED));\n\t\t\t$model->where(TABLE_USERS . '.user_id', '=', $instituteId);\n\t\t}\n\n\t\tif ( $this->request->has('user_login') ) {\n\t\t\t$userLogin = GeneralHelpers::clearParam($this->request->input('user_login'), PARAM_RAW_TRIMMED);\n\t\t\t$model->where(TABLE_USERS . '.user_login', '=', $userLogin);\n\t\t}\n\n\t\tif ( $this->request->has('plan_status') ) {\n\t\t\t$planStatus = GeneralHelpers::clearParam($this->request->input('plan_status'), PARAM_RAW_TRIMMED);\n\n\t\t\tswitch ( $planStatus ) {\n\t\t\t\tcase 1:\n\t\t\t\t\t$model->where(TABLE_USERS . '.user_plan_expired', '=', 1)\n\t\t\t\t\t ->where(TABLE_USERS . '.user_plan_verified', '=', 0)\n\t\t\t\t\t ->where(TABLE_USERS . '.user_plan_cancelled', '=', 0);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\t$model->where(TABLE_USERS . '.user_plan_expired', '=', 0)\n\t\t\t\t\t ->where(TABLE_USERS . '.user_plan_verified', '=', 1);\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\t$model->where(TABLE_USERS . '.user_plan_expired', '=', 1)\n\t\t\t\t\t ->where(TABLE_USERS . '.user_plan_verified', '=', 0)\n\t\t\t\t\t ->where(TABLE_USERS . '.user_plan_cancelled', '=', 1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\t$model->where(TABLE_USERS . '.user_plan_expired', '=', 1)\n\t\t\t\t\t ->where(TABLE_USERS . '.user_plan_verified', '=', 1);\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}\n\n\t\t$dateFilter = TABLE_USERS . '.user_id IN \n\t\t\t\t\t\t\t(SELECT sub_hist_user_id\n\t\t\t\t\t\t\t\tFROM ' . TABLE_USER_ACC_HISTORY . ' as uah\n\t\t\t\t\t\t\t\tWHERE LOWER(uah.sub_hist_action) IN (\\'planactive\\', \\'trialplanactive\\') \n\t\t\t\t\t\t\t\t\tAND DATE(FROM_UNIXTIME(uah.sub_hist_dt)) BETWEEN ? AND ?)';\n\n\t\t// Apply filter if from and to both date are present\n\t\tif ( $this->request->has('date_from') && $this->request->has('date_to') ) {\n\t\t\t$fromDate = GeneralHelpers::saveFormattedDate(GeneralHelpers::clearParam($this->request->input('date_from'),\n\t\t\t\tPARAM_RAW_TRIMMED));\n\t\t\t$toDate = GeneralHelpers::saveFormattedDate(GeneralHelpers::clearParam($this->request->input('date_to'),\n\t\t\t\tPARAM_RAW_TRIMMED));\n\t\t\t$model->whereRaw($dateFilter, [$fromDate, $toDate]);\n\t\t} // Apply filter if from date is present\n\t\telseif ( $this->request->has('date_from') ) {\n\t\t\t$fromDate = GeneralHelpers::saveFormattedDate(GeneralHelpers::clearParam($this->request->input('date_from'),\n\t\t\t\tPARAM_RAW_TRIMMED));\n\t\t\t$toDate = (string) Helper::getDate(trans('shared::config.mysql_date_format'));\n\t\t\t$model->whereRaw($dateFilter, [$fromDate, $toDate]);\n\t\t} // Apply filter if to date is present\n\t\telseif ( $this->request->has('date_to') ) {\n\t\t\t$toDate = GeneralHelpers::saveFormattedDate(GeneralHelpers::clearParam($this->request->input('date_to'),\n\t\t\t\tPARAM_RAW_TRIMMED));\n\t\t\t$model->whereRaw($dateFilter, ['0000-00-00', $toDate]);\n\t\t}\n\n\t\tif ( $this->request->has('ref_by') ) {\n\t\t\t$refBy = GeneralHelpers::clearParam($this->request->input('ref_by'), PARAM_RAW_TRIMMED);\n\t\t\t$model->whereIn(TABLE_USERS . '.user_id', function ( $query ) use ( $refBy ) {\n\t\t\t\t/** @var Builder $query */\n\t\t\t\t$query->select('converted_inst_id')\n\t\t\t\t ->from(TABLE_BACKOFFICE_INST_INQUIRY)\n\t\t\t\t ->where('acq_member_id', '=', GeneralHelpers::decode($refBy));\n\t\t\t});\n\t\t}\n\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "f450181869aa4e1f1fcca02a80ef0819", "score": "0.5520545", "text": "public function getCriteria(): CriteriaContract;", "title": "" }, { "docid": "fe6b27bbe7630d9b995eb4ff97d0045f", "score": "0.5504805", "text": "public function buildCriteria()\n {\n $criteria = new Criteria(SekolahLongitudinalPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(SekolahLongitudinalPeer::SEKOLAH_ID)) $criteria->add(SekolahLongitudinalPeer::SEKOLAH_ID, $this->sekolah_id);\n if ($this->isColumnModified(SekolahLongitudinalPeer::SEMESTER_ID)) $criteria->add(SekolahLongitudinalPeer::SEMESTER_ID, $this->semester_id);\n if ($this->isColumnModified(SekolahLongitudinalPeer::WAKTU_PENYELENGGARAAN_ID)) $criteria->add(SekolahLongitudinalPeer::WAKTU_PENYELENGGARAAN_ID, $this->waktu_penyelenggaraan_id);\n if ($this->isColumnModified(SekolahLongitudinalPeer::KONTINUITAS_LISTRIK)) $criteria->add(SekolahLongitudinalPeer::KONTINUITAS_LISTRIK, $this->kontinuitas_listrik);\n if ($this->isColumnModified(SekolahLongitudinalPeer::JARAK_LISTRIK)) $criteria->add(SekolahLongitudinalPeer::JARAK_LISTRIK, $this->jarak_listrik);\n if ($this->isColumnModified(SekolahLongitudinalPeer::WILAYAH_TERPENCIL)) $criteria->add(SekolahLongitudinalPeer::WILAYAH_TERPENCIL, $this->wilayah_terpencil);\n if ($this->isColumnModified(SekolahLongitudinalPeer::WILAYAH_PERBATASAN)) $criteria->add(SekolahLongitudinalPeer::WILAYAH_PERBATASAN, $this->wilayah_perbatasan);\n if ($this->isColumnModified(SekolahLongitudinalPeer::WILAYAH_TRANSMIGRASI)) $criteria->add(SekolahLongitudinalPeer::WILAYAH_TRANSMIGRASI, $this->wilayah_transmigrasi);\n if ($this->isColumnModified(SekolahLongitudinalPeer::WILAYAH_ADAT_TERPENCIL)) $criteria->add(SekolahLongitudinalPeer::WILAYAH_ADAT_TERPENCIL, $this->wilayah_adat_terpencil);\n if ($this->isColumnModified(SekolahLongitudinalPeer::WILAYAH_BENCANA_ALAM)) $criteria->add(SekolahLongitudinalPeer::WILAYAH_BENCANA_ALAM, $this->wilayah_bencana_alam);\n if ($this->isColumnModified(SekolahLongitudinalPeer::WILAYAH_BENCANA_SOSIAL)) $criteria->add(SekolahLongitudinalPeer::WILAYAH_BENCANA_SOSIAL, $this->wilayah_bencana_sosial);\n if ($this->isColumnModified(SekolahLongitudinalPeer::PARTISIPASI_BOS)) $criteria->add(SekolahLongitudinalPeer::PARTISIPASI_BOS, $this->partisipasi_bos);\n if ($this->isColumnModified(SekolahLongitudinalPeer::SERTIFIKASI_ISO_ID)) $criteria->add(SekolahLongitudinalPeer::SERTIFIKASI_ISO_ID, $this->sertifikasi_iso_id);\n if ($this->isColumnModified(SekolahLongitudinalPeer::SUMBER_LISTRIK_ID)) $criteria->add(SekolahLongitudinalPeer::SUMBER_LISTRIK_ID, $this->sumber_listrik_id);\n if ($this->isColumnModified(SekolahLongitudinalPeer::DAYA_LISTRIK)) $criteria->add(SekolahLongitudinalPeer::DAYA_LISTRIK, $this->daya_listrik);\n if ($this->isColumnModified(SekolahLongitudinalPeer::AKSES_INTERNET_ID)) $criteria->add(SekolahLongitudinalPeer::AKSES_INTERNET_ID, $this->akses_internet_id);\n if ($this->isColumnModified(SekolahLongitudinalPeer::AKSES_INTERNET_2_ID)) $criteria->add(SekolahLongitudinalPeer::AKSES_INTERNET_2_ID, $this->akses_internet_2_id);\n if ($this->isColumnModified(SekolahLongitudinalPeer::BLOB_ID)) $criteria->add(SekolahLongitudinalPeer::BLOB_ID, $this->blob_id);\n if ($this->isColumnModified(SekolahLongitudinalPeer::CREATE_DATE)) $criteria->add(SekolahLongitudinalPeer::CREATE_DATE, $this->create_date);\n if ($this->isColumnModified(SekolahLongitudinalPeer::LAST_UPDATE)) $criteria->add(SekolahLongitudinalPeer::LAST_UPDATE, $this->last_update);\n if ($this->isColumnModified(SekolahLongitudinalPeer::SOFT_DELETE)) $criteria->add(SekolahLongitudinalPeer::SOFT_DELETE, $this->soft_delete);\n if ($this->isColumnModified(SekolahLongitudinalPeer::LAST_SYNC)) $criteria->add(SekolahLongitudinalPeer::LAST_SYNC, $this->last_sync);\n if ($this->isColumnModified(SekolahLongitudinalPeer::UPDATER_ID)) $criteria->add(SekolahLongitudinalPeer::UPDATER_ID, $this->updater_id);\n\n return $criteria;\n }", "title": "" }, { "docid": "57b58495ae689ec9492de045df21e997", "score": "0.5502077", "text": "public function buildCriteria()\r\n {\r\n if (! $this->criteria)\r\n {\r\n $this->clearCriteria();\r\n }\r\n \r\n // Group by db_fieldname\r\n $grouped = array();\r\n \r\n foreach($this->filter as $key => $field)\r\n {\r\n if (! $field['addToCriteria'])\r\n {\r\n continue;\r\n }\r\n\r\n if ($field['value'] == 'ISNULL')\r\n {\r\n $this->criteria->add($field['dbFieldname'], null, Criteria::ISNULL);\r\n }\r\n else if ($field['value'] != '')\r\n {\r\n $value = $this->prepareValue($field);\r\n \r\n if ($field['type'] & self::TYPE_NULL)\r\n {\r\n $field['comparison'] = $value ? Criteria::ISNOTNULL : Criteria::ISNULL;\r\n $value = null;\r\n }\r\n \r\n $this->criteria->addAnd($field['dbFieldname'], $value, $field['comparison']);\r\n }\r\n }\r\n \r\n // Ordering\r\n // nakijken of orderBy van de pager niet in de criteria overschreven werd\r\n // indien dit wel gebeurde, moet de orderBy van de pager genegeerd worden \r\n $critOrderByColumns = $this->criteria->getOrderByColumns();\r\n\t\tif (($this->orderBy != \"\") && (! in_array($this->orderBy . ' ' . Criteria::DESC, $critOrderByColumns)) && (! in_array($this->orderBy . ' ' . Criteria::ASC, $critOrderByColumns)))\r\n {\r\n\t\t $this->orderAsc ?\r\n $this->criteria->addAscendingOrderByColumn($this->orderBy)\r\n : $this->criteria->addDescendingOrderByColumn($this->orderBy);\r\n }\r\n\r\n $this->criteriaDirty = false;\r\n }", "title": "" }, { "docid": "49b78cee9e31f17e15df60b6d1b8ead1", "score": "0.5495554", "text": "function GetAllRecordsWithCriteria($criteria) \n {\n $query = \"SELECT * FROM $this->tableName WHERE $criteria\";\n parent::SetQuery($query);\n parent::DoQuery();\n }", "title": "" }, { "docid": "5bf62705a5d7948d44f5ae0608f03971", "score": "0.54928774", "text": "public function buildQuery();", "title": "" }, { "docid": "c2bc8183e8962ccd4cdb1d7734e0e37f", "score": "0.5476913", "text": "public function buildCriteria()\n {\n $criteria = new Criteria(EmpresasPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(EmpresasPeer::EMPRESA_ID)) $criteria->add(EmpresasPeer::EMPRESA_ID, $this->empresa_id);\n if ($this->isColumnModified(EmpresasPeer::EMPRESA_NOMBRE)) $criteria->add(EmpresasPeer::EMPRESA_NOMBRE, $this->empresa_nombre);\n if ($this->isColumnModified(EmpresasPeer::EMPRESA_LOGO_URL)) $criteria->add(EmpresasPeer::EMPRESA_LOGO_URL, $this->empresa_logo_url);\n if ($this->isColumnModified(EmpresasPeer::EMPRESAS_RAZON_SOCIAL)) $criteria->add(EmpresasPeer::EMPRESAS_RAZON_SOCIAL, $this->empresas_razon_social);\n if ($this->isColumnModified(EmpresasPeer::EMPRESA_RFC)) $criteria->add(EmpresasPeer::EMPRESA_RFC, $this->empresa_rfc);\n if ($this->isColumnModified(EmpresasPeer::EMPRESA_DIRECCION_FISCAL)) $criteria->add(EmpresasPeer::EMPRESA_DIRECCION_FISCAL, $this->empresa_direccion_fiscal);\n if ($this->isColumnModified(EmpresasPeer::EMPRESA_ESTATUS)) $criteria->add(EmpresasPeer::EMPRESA_ESTATUS, $this->empresa_estatus);\n if ($this->isColumnModified(EmpresasPeer::EMPRESA_FECHA_ALTA)) $criteria->add(EmpresasPeer::EMPRESA_FECHA_ALTA, $this->empresa_fecha_alta);\n if ($this->isColumnModified(EmpresasPeer::EMPRESA_USUARIO_ALTA)) $criteria->add(EmpresasPeer::EMPRESA_USUARIO_ALTA, $this->empresa_usuario_alta);\n if ($this->isColumnModified(EmpresasPeer::EMPRESA_FECHA_ACTUALIZA)) $criteria->add(EmpresasPeer::EMPRESA_FECHA_ACTUALIZA, $this->empresa_fecha_actualiza);\n if ($this->isColumnModified(EmpresasPeer::EMPRESA_USUARIO_MODIFICA)) $criteria->add(EmpresasPeer::EMPRESA_USUARIO_MODIFICA, $this->empresa_usuario_modifica);\n\n return $criteria;\n }", "title": "" }, { "docid": "fbec3d7b5d4f6609e78cc26bd28a0061", "score": "0.5468124", "text": "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->treadmill_id)){\n\t\t\t$criteria->addCondition('treadmill_id = '.$this->treadmill_id);\n\t\t}\n\t\tif(!empty($this->pasien_id)){\n\t\t\t$criteria->addCondition('pasien_id = '.$this->pasien_id);\n\t\t}\n\t\tif(!empty($this->ruangan_id)){\n\t\t\t$criteria->addCondition('ruangan_id = '.$this->ruangan_id);\n\t\t}\n\t\tif(!empty($this->pendaftaran_id)){\n\t\t\t$criteria->addCondition('pendaftaran_id = '.$this->pendaftaran_id);\n\t\t}\n\t\tif(!empty($this->pegawai_id)){\n\t\t\t$criteria->addCondition('pegawai_id = '.$this->pegawai_id);\n\t\t}\n\t\t$criteria->compare('LOWER(tgltreadmill)',strtolower($this->tgltreadmill),true);\n\t\t$criteria->compare('LOWER(resttime_menit)',strtolower($this->resttime_menit),true);\n\t\t$criteria->compare('LOWER(worktime_menit)',strtolower($this->worktime_menit),true);\n\t\t$criteria->compare('LOWER(recoverytime_menit)',strtolower($this->recoverytime_menit),true);\n\t\t$criteria->compare('LOWER(totaltime_menit)',strtolower($this->totaltime_menit),true);\n\t\t$criteria->compare('LOWER(interpretation_tradmill)',strtolower($this->interpretation_tradmill),true);\n\t\t$criteria->compare('LOWER(hasiltreadmill)',strtolower($this->hasiltreadmill),true);\n\t\t$criteria->compare('LOWER(namapemeriksa_treadmill)',strtolower($this->namapemeriksa_treadmill),true);\n\t\t$criteria->compare('LOWER(tingkatkebugaran)',strtolower($this->tingkatkebugaran),true);\n\t\t$criteria->compare('LOWER(create_time)',strtolower($this->create_time),true);\n\t\t$criteria->compare('LOWER(update_time)',strtolower($this->update_time),true);\n\t\tif(!empty($this->create_loginpemakai_id)){\n\t\t\t$criteria->addCondition('create_loginpemakai_id = '.$this->create_loginpemakai_id);\n\t\t}\n\t\tif(!empty($this->update_loginpemakai_id)){\n\t\t\t$criteria->addCondition('update_loginpemakai_id = '.$this->update_loginpemakai_id);\n\t\t}\n\t\tif(!empty($this->create_ruangan)){\n\t\t\t$criteria->addCondition('create_ruangan = '.$this->create_ruangan);\n\t\t}\n\n\t\treturn $criteria;\n\t}", "title": "" }, { "docid": "b9c21847ad19ec19da0252908bde04b4", "score": "0.54588795", "text": "public function Search($criteria);", "title": "" }, { "docid": "223fc87b0dae462d49cfed062ff3161a", "score": "0.5448362", "text": "abstract function buildQuery();", "title": "" }, { "docid": "163c51dafa5f36465aa9b50439720af6", "score": "0.5434351", "text": "public function apply($model, RepositoryInterface $repository)\n {\n\n $palavra = ($this->search['operador'] == 'like') ? '%' . $this->search['palavra'] . '%' : $this->search['palavra'];\n $operador = ($this->search['operador'] == 'like') ? $this->search['operador'] = 'like' : $this->search['operador'];\n\n\n if($this->search['por']) {\n $m = $model->where($this->search['por'], $operador, $palavra);\n }\n\n return $m;\n }", "title": "" }, { "docid": "12cf72e4d308cd431f64ab5baa80094b", "score": "0.54338753", "text": "public function buildCriteria()\n {\n $criteria = new Criteria(NivjerPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(NivjerPeer::ID)) $criteria->add(NivjerPeer::ID, $this->id);\n if ($this->isColumnModified(NivjerPeer::IDUSUARIO)) $criteria->add(NivjerPeer::IDUSUARIO, $this->idusuario);\n if ($this->isColumnModified(NivjerPeer::AGROMANDOSU)) $criteria->add(NivjerPeer::AGROMANDOSU, $this->agromandosu);\n if ($this->isColumnModified(NivjerPeer::AGROMANDOIN)) $criteria->add(NivjerPeer::AGROMANDOIN, $this->agromandoin);\n if ($this->isColumnModified(NivjerPeer::AGROSUPERVISOR)) $criteria->add(NivjerPeer::AGROSUPERVISOR, $this->agrosupervisor);\n if ($this->isColumnModified(NivjerPeer::AGROTECNICO)) $criteria->add(NivjerPeer::AGROTECNICO, $this->agrotecnico);\n if ($this->isColumnModified(NivjerPeer::AGROOTRO)) $criteria->add(NivjerPeer::AGROOTRO, $this->agrootro);\n if ($this->isColumnModified(NivjerPeer::IGEMANDOSU)) $criteria->add(NivjerPeer::IGEMANDOSU, $this->igemandosu);\n if ($this->isColumnModified(NivjerPeer::IGEMANDOIN)) $criteria->add(NivjerPeer::IGEMANDOIN, $this->igemandoin);\n if ($this->isColumnModified(NivjerPeer::IGESUPERVISOR)) $criteria->add(NivjerPeer::IGESUPERVISOR, $this->igesupervisor);\n if ($this->isColumnModified(NivjerPeer::IGETECNICO)) $criteria->add(NivjerPeer::IGETECNICO, $this->igetecnico);\n if ($this->isColumnModified(NivjerPeer::IGEOTRO)) $criteria->add(NivjerPeer::IGEOTRO, $this->igeotro);\n if ($this->isColumnModified(NivjerPeer::BIOMANDOSU)) $criteria->add(NivjerPeer::BIOMANDOSU, $this->biomandosu);\n if ($this->isColumnModified(NivjerPeer::BIOMANDOIN)) $criteria->add(NivjerPeer::BIOMANDOIN, $this->biomandoin);\n if ($this->isColumnModified(NivjerPeer::BIOSUPERVISOR)) $criteria->add(NivjerPeer::BIOSUPERVISOR, $this->biosupervisor);\n if ($this->isColumnModified(NivjerPeer::BIOTECNICO)) $criteria->add(NivjerPeer::BIOTECNICO, $this->biotecnico);\n if ($this->isColumnModified(NivjerPeer::BIOOTRO)) $criteria->add(NivjerPeer::BIOOTRO, $this->biootro);\n if ($this->isColumnModified(NivjerPeer::ADMINMANDOSU)) $criteria->add(NivjerPeer::ADMINMANDOSU, $this->adminmandosu);\n if ($this->isColumnModified(NivjerPeer::ADMINMANDOIN)) $criteria->add(NivjerPeer::ADMINMANDOIN, $this->adminmandoin);\n if ($this->isColumnModified(NivjerPeer::ADMINSUPERVISOR)) $criteria->add(NivjerPeer::ADMINSUPERVISOR, $this->adminsupervisor);\n if ($this->isColumnModified(NivjerPeer::ADMINTECNICO)) $criteria->add(NivjerPeer::ADMINTECNICO, $this->admintecnico);\n if ($this->isColumnModified(NivjerPeer::ADMINOTRO)) $criteria->add(NivjerPeer::ADMINOTRO, $this->adminotro);\n if ($this->isColumnModified(NivjerPeer::INFOMANDOSU)) $criteria->add(NivjerPeer::INFOMANDOSU, $this->infomandosu);\n if ($this->isColumnModified(NivjerPeer::INFOMANDOIN)) $criteria->add(NivjerPeer::INFOMANDOIN, $this->infomandoin);\n if ($this->isColumnModified(NivjerPeer::INFOSUPERVISOR)) $criteria->add(NivjerPeer::INFOSUPERVISOR, $this->infosupervisor);\n if ($this->isColumnModified(NivjerPeer::INFOTECNICO)) $criteria->add(NivjerPeer::INFOTECNICO, $this->infotecnico);\n if ($this->isColumnModified(NivjerPeer::INFOOTRO)) $criteria->add(NivjerPeer::INFOOTRO, $this->infootro);\n\n return $criteria;\n }", "title": "" }, { "docid": "ec832dd73ee09e308509b44574a13490", "score": "0.5392816", "text": "protected function functionCriteria() {\n // should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n $criteria->addBetweenCondition('DATE(tglubahdokter)', $this->tgl_awal, $this->tgl_akhir);\n\t\tif(!empty($this->ubahdokter_id)){\n\t\t\t$criteria->addCondition('ubahdokter_id = '.$this->ubahdokter_id);\n\t\t}\n\t\tif(!empty($this->pendaftaran_id)){\n\t\t\t$criteria->addCondition('pendaftaran_id = '.$this->pendaftaran_id);\n\t\t}\n\t\t$criteria->compare('LOWER(tgl_pendaftaran)',strtolower($this->tgl_pendaftaran),true);\n\t\t$criteria->compare('LOWER(no_pendaftaran)',strtolower($this->no_pendaftaran),true);\n\t\tif(!empty($this->pasien_id)){\n\t\t\t$criteria->addCondition('pasien_id = '.$this->pasien_id);\n\t\t}\n\t\t$criteria->compare('LOWER(no_rekam_medik)',strtolower($this->no_rekam_medik),true);\n\t\tif(!empty($this->pegawai_id)){\n\t\t\t$criteria->addCondition('pegawai_id = '.$this->pegawai_id);\n\t\t}\n\t\t$criteria->compare('LOWER(nobadge)',strtolower($this->nobadge),true);\n\t\t$criteria->compare('LOWER(jenisidentitas)',strtolower($this->jenisidentitas),true);\n\t\t$criteria->compare('LOWER(no_identitas_pasien)',strtolower($this->no_identitas_pasien),true);\n\t\t$criteria->compare('LOWER(namadepan)',strtolower($this->namadepan),true);\n\t\t$criteria->compare('LOWER(nama_pasien)',strtolower($this->nama_pasien),true);\n\t\t$criteria->compare('LOWER(jeniskelamin)',strtolower($this->jeniskelamin),true);\n\t\t$criteria->compare('LOWER(tempat_lahir)',strtolower($this->tempat_lahir),true);\n\t\t$criteria->compare('LOWER(alamat_pasien)',strtolower($this->alamat_pasien),true);\n\t\tif(!empty($this->dokterlama_id)){\n\t\t\t$criteria->addCondition('dokterlama_id = '.$this->dokterlama_id);\n\t\t}\n\t\t$criteria->compare('LOWER(dokterlama_nobadge)',strtolower($this->dokterlama_nobadge),true);\n\t\t$criteria->compare('LOWER(dokterlama_jenisidentitas)',strtolower($this->dokterlama_jenisidentitas),true);\n\t\t$criteria->compare('LOWER(dokterlama_noidentitas)',strtolower($this->dokterlama_noidentitas),true);\n\t\t$criteria->compare('LOWER(dokterlama_gelardepan)',strtolower($this->dokterlama_gelardepan),true);\n\t\t$criteria->compare('LOWER(dokterlama_nama)',strtolower($this->dokterlama_nama),true);\n\t\t$criteria->compare('LOWER(dokterlama_gelarbelakang)',strtolower($this->dokterlama_gelarbelakang),true);\n\t\tif(!empty($this->dokterbaru_id)){\n\t\t\t$criteria->addCondition('dokterbaru_id = '.$this->dokterbaru_id);\n\t\t}\n\t\t$criteria->compare('LOWER(dokterbaru_nobadge)',strtolower($this->dokterbaru_nobadge),true);\n\t\t$criteria->compare('LOWER(dokterbaru_jenisidentitas)',strtolower($this->dokterbaru_jenisidentitas),true);\n\t\t$criteria->compare('LOWER(dokterbaru_noidentitas)',strtolower($this->dokterbaru_noidentitas),true);\n\t\t$criteria->compare('LOWER(dokterbaru_gelardepan)',strtolower($this->dokterbaru_gelardepan),true);\n\t\t$criteria->compare('LOWER(dokterbaru_nama)',strtolower($this->dokterbaru_nama),true);\n\t\t$criteria->compare('LOWER(dokterbaru_gelarbelakang)',strtolower($this->dokterbaru_gelarbelakang),true);\n\t\t$criteria->compare('LOWER(alasanperubahandokter)',strtolower($this->alasanperubahandokter),true);\n\t\t$criteria->compare('LOWER(keterangan)',strtolower($this->keterangan),true);\n\t\t$criteria->compare('LOWER(create_time)',strtolower($this->create_time),true);\n\t\t$criteria->compare('LOWER(update_time)',strtolower($this->update_time),true);\n\t\tif(!empty($this->create_loginpemakai_id)){\n\t\t\t$criteria->addCondition('create_loginpemakai_id = '.$this->create_loginpemakai_id);\n\t\t}\n\t\tif(!empty($this->update_loginpemakai_id)){\n\t\t\t$criteria->addCondition('update_loginpemakai_id = '.$this->update_loginpemakai_id);\n\t\t}\n\t\tif(!empty($this->create_ruangan)){\n\t\t\t$criteria->addCondition('create_ruangan = '.$this->create_ruangan);\n\t\t}\n\n\t\treturn $criteria;\n }", "title": "" }, { "docid": "84abafaa5b0e82708df94e45aef84986", "score": "0.53781855", "text": "public function search()\n {\n // should not be searched.\n\n $criteria = new CDbCriteria;\n $criteria->compare('id', $this->id);\n\n// $employee = Employee::model()->findByPk(Yii::app()->user->id);\n// $branchIds = $employee->mergeBranch;\n\n// ICE 根据逻辑 这个组织架构用原来的,因为要搜索本地的branch_id。\n// 解决了 employee表没有就报错的问题。\n $branchIds = Employee::ICEGetOldMergeBranch();\n\n $shop_ids = array();\n foreach ($branchIds as $branchId) {\n $data = Branch::model()->findByPk($branchId)->getBranchAllIds('Shop');\n $shop_ids = array_unique(array_merge($shop_ids, $data));\n }\n // $shop_ids = Branch::model()->findByPk($employee->branch_id)->getBranchAllIds('Shop');\n $criteria->addInCondition(\"`t`.object_id\", $shop_ids);\n $criteria->compare('model', $this->objectModel, true); //设置条件为商家\n if ($this->_objectName != '') {\n $criteria->with[] = $this->objectModel;\n $criteria->compare($this->objectModel . '.name', $this->objectName, true);\n }\n $criteria->with[] = 'customer';\n $criteria->compare(\"`customer`.mobile\", $this->mobile, true);\n $criteria->compare(\"`customer`.username\", $this->username, true);\n if ($this->customerName != '') {\n\n $criteria->compare('customer.name', $this->customerName, true);\n }\n if ($this->start_time != \"\") {\n $criteria->addCondition('`t`.create_time>=' . strtotime($this->start_time));\n }\n if ($this->end_time != \"\") {\n $criteria->addCondition('`t`.create_time<=' . strtotime($this->end_time . \" 23:59:59\"));\n }\n $criteria->compare('`t`.content', $this->content, true);\n $criteria->compare('`t`.reply', $this->reply, true);\n $criteria->compare('`t`.create_time', $this->create_time);\n $criteria->compare('`t`.create_ip', $this->create_ip, true);\n $criteria->compare('`t`.update_time', $this->update_time);\n $criteria->compare('`t`.update_ip', $this->update_ip, true);\n $criteria->compare('`t`.audit', $this->audit, true);\n $criteria->compare('`t`.score', $this->score, true);\n\n return new ActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "4905bf2b5cefe47c5789c19ada2b9a1c", "score": "0.53779435", "text": "public function findOneBy(array $criteria);", "title": "" }, { "docid": "4905bf2b5cefe47c5789c19ada2b9a1c", "score": "0.53779435", "text": "public function findOneBy(array $criteria);", "title": "" }, { "docid": "57f0eeb57b892ccee461c01b352518e4", "score": "0.53747874", "text": "public function all($criteria)\n {\n }", "title": "" }, { "docid": "56e6ac608b540848ee23959fc960bf8f", "score": "0.5371342", "text": "abstract protected function repository();", "title": "" }, { "docid": "0628d4145b53cef85fcfe77c01e62630", "score": "0.5369657", "text": "protected function applyCriteria()\n {\n foreach ($this->criteria as $criteria) {\n $this->model = $criteria->apply($this->model, $this);\n }\n\n return $this;\n }", "title": "" }, { "docid": "8f7ce36c29c585969599d796e116d0be", "score": "0.536747", "text": "public function findBy(array $criteria, $options = array());", "title": "" }, { "docid": "649eaba759d4a8d84f9d9cc3fd5eb383", "score": "0.53588545", "text": "public function addSearchCriterias( &$params, &$conditions){\n\n\t\t//$conditions[\"adminBlocked\"] = array('$ne'=>'B');\n\n\t\t//get incoming params\n\t\tif(isset($params[\"_id\"])){\n\n\t\t\t$conditions[\"_id\"] = $params[\"_id\"];\n\t\t}\n\n\t\tif(isset($params[\"nodeType\"])){\n\n\t\t\t$conditions[\"nodeType\"] = $params[\"nodeType\"];\n\t\t}\n\n\n\t\tif(isset($params[\"admin\"])){\n\n\t\t\t$conditions[\"admin\"] = $params[\"admin\"];\n\t\t}\n\n\n\t\tif(isset($params[\"contextId\"])){\n\n\t\t\t$conditions[\"contextId\"] = $params[\"contextId\"];\n\t\t}\n\n\t\tif(isset($params[\"context\"])){\n\n\t\t\t$conditions[\"context\"] = $params[\"context\"];\n\t\t}\n\n\n\n\t\t$contextRef = $params['contextRef'];\n\n\t\tif($contextRef){\n\n\t\t\tif($contextRef['nodeType']&&$contextRef['nodeId'])\n\t\t\t$contextGraphObject = GraphObject::findByReference($contextRef);\n\t\t}\n\n\n\t\tif(!$contextGraphObject){\n\t\t\t//$conditions['context'] = 'global';\n\t\t\t//$conditions['context'] = 'global';\n\t\t}else{\n\t\t\t$conditions['context'] = $contextGraphObject->getNodeType();\n\t\t\t$conditions['contextId'] = $contextGraphObject->identity();\n\t\t}\n\n\n\t\t// profile search\n\t\tif(isset($params[\"WorkExperience\"]) && is_array($params[\"WorkExperience\"])){\n\n\t\t\tif($params[\"WorkExperience\"][\"companyName\"]){\n\t\t\t\t$conditions[\"workExperiences.companyName\"] = $params[\"WorkExperience\"][\"companyName\"];\n\t\t\t}\n\n\t\t\tif($params[\"WorkExperience\"][\"jobTitle\"]){\n\t\t\t\t$conditions[\"workExperiences.jobTitle\"] = $params[\"WorkExperience\"][\"jobTitle\"];\n\t\t\t}\n\n\t\t}\n\n\t\tif(isset($params[\"Education\"]) && is_array($params[\"Education\"])){\n\n\t\t\tif($params[\"Education\"][\"instituteName\"]){\n\t\t\t\t$conditions[\"workExperiences.instituteName\"] = $params[\"WorkExperience\"][\"instituteName\"];\n\t\t\t}\n\n\t\t\tif($params[\"WorkExperience\"][\"degree\"]){\n\t\t\t\t$conditions[\"workExperiences.degree\"] = $params[\"WorkExperience\"][\"degree\"];\n\t\t\t}\n\n\t\t}\n\n\n\t\t$this->addSearchCriteriaRegExFull($params,'term', $conditions, 'name');\n\t\t$this->addSearchCriteriaRegExFull($params,'name', $conditions);\n\t\t$this->addSearchCriteria($params,'gender', $conditions);\n\t\t$this->addSearchCriteria($params,'firstname', $conditions);\n\t\t$this->addSearchCriteria($params,'lastname', $conditions);\n\t\t$this->addSearchCriteria($params,'email', $conditions);\n\t\t$this->addSearchCriteria($params,'phone', $conditions);\n\t\t$this->addTagSearchCriteria($params,'profession', $conditions);\n\t\t$this->addTagSearchCriteria($params,'education', $conditions);\n\t\t$this->addTagSearchCriteria($params,'work', $conditions);\n\t\t$this->addInterestsSearchCriteria($params,'interest', $conditions);\n\t\t$this->addTagSearchCriteria($params,'profession', $conditions);\n\t\t$this->addKeywordsSearchCriteria($params, &$conditions);\n\t\t$this->getIntRangeSearchCriteria($params['fields']['age'],$conditions, 'age');\n\t\t$this->getIntRangeSearchCriteria($params['fields']['price'],$conditions, 'price');\n\t\t$this->getDateRangeSearchCriteria($params,$conditions);\n\t\t$this->getPriceRangeSearchCriteria($params,$conditions);\n\t\t//$this->getLocationSearchCriteria($appContext,$conditions);\n\t\t//$this->addSearchCriteria($appContext,'country', $conditions,'locations.current.country');\n\n\t\tif(isset($params['locations']['current'])){\n\t\t\t$location = $params['locations']['current'];\n\t\t\t$this->addSearchCriteria($location,'country', $conditions,'locations.current.country');\n\t\t\t$this->addSearchCriteria($location,'region', $conditions,'locations.current.region');\n\t\t\t$this->addSearchCriteria($location,'city', $conditions,'locations.current.city');\n\n\t\t}\n\t\t$this->addSearchCriteria($params,'country', $conditions,'locations.current.country');\n\t\t$this->addSearchCriteria($params,'region', $conditions,'locations.current.region');\n\t\t$this->addSearchCriteria($params,'city', $conditions,'locations.current.city');\n\n\t\t\t\n\t\t$this->addInSearchCriteria($params,'categories', $conditions,'categories');\n\t}", "title": "" }, { "docid": "9cbd4b0b89278e38fc188bbcf021499a", "score": "0.5352929", "text": "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->penyimpanansterildet_id)){\n\t\t\t$criteria->addCondition('penyimpanansterildet_id = '.$this->penyimpanansterildet_id);\n\t\t}\n\t\tif(!empty($this->rakpenyimpanan_id)){\n\t\t\t$criteria->addCondition('rakpenyimpanan_id = '.$this->rakpenyimpanan_id);\n\t\t}\n\t\tif(!empty($this->penyimpanansteril_id)){\n\t\t\t$criteria->addCondition('penyimpanansteril_id = '.$this->penyimpanansteril_id);\n\t\t}\n\t\tif(!empty($this->lokasipenyimpanan_id)){\n\t\t\t$criteria->addCondition('lokasipenyimpanan_id = '.$this->lokasipenyimpanan_id);\n\t\t}\n\t\tif(!empty($this->sterilisasi_id)){\n\t\t\t$criteria->addCondition('sterilisasi_id = '.$this->sterilisasi_id);\n\t\t}\n\t\tif(!empty($this->barang_id)){\n\t\t\t$criteria->addCondition('barang_id = '.$this->barang_id);\n\t\t}\n\t\t$criteria->compare('LOWER(penyimpanansterildet_ket)',strtolower($this->penyimpanansterildet_ket),true);\n\t\tif(!empty($this->penyimpanansterildet_jml)){\n\t\t\t$criteria->addCondition('penyimpanansterildet_jml = '.$this->penyimpanansterildet_jml);\n\t\t}\n\n\t\treturn $criteria;\n\t}", "title": "" }, { "docid": "add925ab85f131e1961f7a6edd40d741", "score": "0.53457075", "text": "abstract protected function query();", "title": "" }, { "docid": "cc0dffe7acc3c57c4ce97cb535114d70", "score": "0.5344417", "text": "public function getCriteria()\r\n {\r\n if (! $this->criteria)\r\n {\r\n $this->clearCriteria();\r\n }\r\n \r\n return parent::getCriteria();\r\n }", "title": "" }, { "docid": "f13ceb59d156bd241673eb33c133cdca", "score": "0.53421885", "text": "public function search(Entity $entity, CriteriaCollection $criteria = null);", "title": "" }, { "docid": "6018101be48cc1cf540b51013364e9bb", "score": "0.53418994", "text": "public function getCriteria()\n {\n return $this->criteria;\n }", "title": "" }, { "docid": "11fac3a84c30134a8298afe89407d9b4", "score": "0.5334448", "text": "public function buildCriteria()\n {\n $criteria = new Criteria(IncomePeer::DATABASE_NAME);\n\n if ($this->isColumnModified(IncomePeer::ID)) $criteria->add(IncomePeer::ID, $this->id);\n if ($this->isColumnModified(IncomePeer::NAME)) $criteria->add(IncomePeer::NAME, $this->name);\n if ($this->isColumnModified(IncomePeer::SHORTNAME)) $criteria->add(IncomePeer::SHORTNAME, $this->shortname);\n if ($this->isColumnModified(IncomePeer::VALUE)) $criteria->add(IncomePeer::VALUE, $this->value);\n if ($this->isColumnModified(IncomePeer::COMMENT)) $criteria->add(IncomePeer::COMMENT, $this->comment);\n if ($this->isColumnModified(IncomePeer::SHOW)) $criteria->add(IncomePeer::SHOW, $this->show);\n if ($this->isColumnModified(IncomePeer::PROJECT_ID)) $criteria->add(IncomePeer::PROJECT_ID, $this->project_id);\n if ($this->isColumnModified(IncomePeer::FILE_ID)) $criteria->add(IncomePeer::FILE_ID, $this->file_id);\n if ($this->isColumnModified(IncomePeer::BANK_ACC_ID)) $criteria->add(IncomePeer::BANK_ACC_ID, $this->bank_acc_id);\n if ($this->isColumnModified(IncomePeer::INCOME_ACC_ID)) $criteria->add(IncomePeer::INCOME_ACC_ID, $this->income_acc_id);\n if ($this->isColumnModified(IncomePeer::SORTABLE_RANK)) $criteria->add(IncomePeer::SORTABLE_RANK, $this->sortable_rank);\n\n return $criteria;\n }", "title": "" }, { "docid": "4f1df9440728b7fd9211cdab8df10d63", "score": "0.533263", "text": "public function queryItems($repository, $user, $entity, $additional_expr=null, $additional_param=null){\n\n if($user instanceof \\AppBundle\\Entity\\User){\n $user = $user->getId();\n }else{\n $user = 0; // No users have id=0, so either another condition will match and show the record, or that record will not be shown, effectively not doing this check.\n }\n\n $qb = $repository->createQueryBuilder('i');\n\n // If we are getting a list of albums, inherit permissions that are for the collection that owns each album.\n if($entity==='album'){ // pi = permission_inherited, ei = entity inherited\n $qb->leftJoin('AppBundle\\Entity\\Permission', 'pi', 'WITH', 'pi.collection = i.collection AND pi.grantee = :user'); // The current user is the grantee ... **\n $qb->leftJoin('AppBundle\\Entity\\Collection', 'ei', 'WITH', 'ei.id = i.collection'); // Join with information about the owning collection \n $inherited = true;\n }else{\n $inherited = false;\n }\n\n\n\t\t$qb\n ->leftJoin('AppBundle\\Entity\\Permission', 'p', 'WITH', 'p.'.$entity.' = i.id AND p.grantee = :user') // The current user is the grantee ... *\n ->where($qb->expr()->andX(\n $additional_expr ? $this->build_expr($qb, $additional_expr) : null,\n $qb->expr()->orX(\n $qb->expr()->andX( // Direct access\n $qb->expr()->gte('p.level', 1) // * ... and they have been given view access or higher\n ),\n ($inherited\n ? $qb->expr()->andX( // Inherited access\n $qb->expr()->gte('pi.level', 1), // ** ... and they have been given view access or higher ... **\n $qb->expr()->orX( \n $qb->expr()->neq('p.level', 0), // ** ... as long as access has not been explicitly denied directly on the item\n $qb->expr()->isNull('p.level')\n )\n )\n : null\n ),\n $qb->expr()->eq('i.public', '1'), // Or item is public\n ($inherited \n ? $qb->expr()->eq('ei.public', '1') // Or item's owning entity is public\n : null\n ),\n $qb->expr()->eq('i.owner', $user) // Or current user owns the item\n )\n ))\n ->setParameter('user', $user)\n\n ->orderBy('i.createDate','DESC')\n ;\n\n if(is_array($additional_param)){\n\t foreach($additional_param as $key=>$value){\n\t \t$qb->setParameter($key, $value);\n\t }\n\t\t}\n\n return $qb;\n\n\t}", "title": "" }, { "docid": "b5c15e220b2159a45444ca397da8297a", "score": "0.5329738", "text": "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->ubahdokter_id)){\n\t\t\t$criteria->addCondition('ubahdokter_id = '.$this->ubahdokter_id);\n\t\t}\n\t\tif(!empty($this->dokterlama_id)){\n\t\t\t$criteria->addCondition('dokterlama_id = '.$this->dokterlama_id);\n\t\t}\n\t\tif(!empty($this->dokterbaru_id)){\n\t\t\t$criteria->addCondition('dokterbaru_id = '.$this->dokterbaru_id);\n\t\t}\n\t\t$criteria->compare('LOWER(tglubahdokter)',strtolower($this->tglubahdokter),true);\n\t\t$criteria->compare('LOWER(alasanperubahandokter)',strtolower($this->alasanperubahandokter),true);\n\t\t$criteria->compare('LOWER(keterangan)',strtolower($this->keterangan),true);\n\t\t$criteria->compare('LOWER(create_time)',strtolower($this->create_time),true);\n\t\t$criteria->compare('LOWER(update_time)',strtolower($this->update_time),true);\n\t\tif(!empty($this->create_loginpemakai_id)){\n\t\t\t$criteria->addCondition('create_loginpemakai_id = '.$this->create_loginpemakai_id);\n\t\t}\n\t\tif(!empty($this->update_loginpemakai_id)){\n\t\t\t$criteria->addCondition('update_loginpemakai_id = '.$this->update_loginpemakai_id);\n\t\t}\n\t\tif(!empty($this->create_ruangan)){\n\t\t\t$criteria->addCondition('create_ruangan = '.$this->create_ruangan);\n\t\t}\n\t\tif(!empty($this->pendaftaran_id)){\n\t\t\t$criteria->addCondition('pendaftaran_id = '.$this->pendaftaran_id);\n\t\t}\n\n\t\treturn $criteria;\n\t}", "title": "" }, { "docid": "76d122e2de0ae598f5b08241c2a0cba2", "score": "0.53247285", "text": "public function findCartBy(array $criteria);", "title": "" }, { "docid": "213dd2e45fdaa4d2b746e44cdb4251d7", "score": "0.5317329", "text": "public function apply($model, RepositoryInterface $repository)\n {\n\n // TODO: Tratar SQL Injection\n\n $data = $this->request->all();\n\n if (isset($data['cep']) && !empty($data['cep'])) {\n $model = $model->where('cep', 'like', '%' . $data['cep'] . '%');\n }\n\n if (isset($data['logradouro']) && !empty($data['logradouro'])) {\n $model = $model->where('logradouro', 'like', '%' . $data['logradouro'] . '%');\n }\n\n if (isset($data['bairro']) && !empty($data['bairro'])) {\n $model = $model->where('bairro', 'like', '%' . $data['bairro'] . '%');\n }\n\n if (isset($data['localidade']) && !empty($data['localidade'])) {\n $model = $model->where('localidade', 'like', '%' . $data['localidade'] . '%');\n }\n\n if (isset($data['uf']) && !empty($data['uf'])) {\n $model = $model->where('uf', 'like', '%' . $data['uf'] . '%');\n }\n\n if (isset($data['descricao']) && !empty($data['descricao'])) {\n $model = $model->where('descricao', 'like', '%' . $data['descricao'] . '%');\n }\n\n if (isset($data['endereco']) && !empty($data['endereco'])) {\n $geocode = new Geocode(env('GOOGLE_MAPS_KEY'));\n $location = $geocode->get($data['endereco']);\n $data['latitude'] = $location->getLatitude();\n $data['longitude'] = $location->getLongitude();\n }\n\n if (\n isset($data['latitude']) && !empty($data['latitude'])\n &&\n isset($data['longitude']) && !empty($data['longitude'])\n &&\n isset($data['distancia']) && !empty($data['distancia'])\n ) {\n\n // TODO: Tratar SQL Injection\n $latitude = $data['latitude'];\n $longitude = $data['longitude'];\n $distancia = $data['distancia'];\n\n \\DB::statement('DROP TABLE IF EXISTS tmp_imoveis_distancia');\n \\DB::statement('\n\n CREATE TEMPORARY TABLE tmp_imoveis_distancia AS (\n SELECT id,\n (6371 * acos(\n cos( radians(' . $latitude . ') )\n * \n cos( radians( latitude ) )\n * \n cos( radians( longitude ) - radians(' . $longitude . ') )\n + \n sin( radians(' . $latitude . ') )\n * \n sin( radians( latitude ) ) \n )\n ) AS distancia\n FROM imoveis\n );\n ');\n\n $model = $model->whereRaw('\n imoveis.id IN (\n SELECT id \n FROM tmp_imoveis_distancia\n WHERE distancia < ' . $distancia . '\n )\n ');\n }\n\n $model = $model->selectRaw('imoveis.*')->with(['status', 'user'])->join('imoveis_status', 'imoveis_status.id', '=', 'imoveis.imoveis_status_id')->where(['imoveis_status.ativo' => true]);\n\n return $model;\n }", "title": "" }, { "docid": "01ab971fc1d8f1b2ac451d085f8fca6e", "score": "0.53136647", "text": "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->returpembelian_id)){\n\t\t\t$criteria->addCondition('returpembelian_id = '.$this->returpembelian_id);\n\t\t}\n\t\t$criteria->compare('LOWER(tglretur)',strtolower($this->tglretur),true);\n\t\t$criteria->compare('LOWER(noretur)',strtolower($this->noretur),true);\n\t\t$criteria->compare('LOWER(alasanretur)',strtolower($this->alasanretur),true);\n\t\t$criteria->compare('LOWER(keteranganretur)',strtolower($this->keteranganretur),true);\n\t\t$criteria->compare('totalretur',$this->totalretur);\n\t\tif(!empty($this->instalasi_id)){\n\t\t\t$criteria->addCondition('instalasi_id = '.$this->instalasi_id);\n\t\t}\n\t\t$criteria->compare('LOWER(instalasi_nama)',strtolower($this->instalasi_nama),true);\n\t\tif(!empty($this->ruangan_id)){\n\t\t\t$criteria->addCondition('ruangan_id = '.$this->ruangan_id);\n\t\t}\n\t\t$criteria->compare('LOWER(ruangan_nama)',strtolower($this->ruangan_nama),true);\n\t\tif(!empty($this->penerimaanbarang_id)){\n\t\t\t$criteria->addCondition('penerimaanbarang_id = '.$this->penerimaanbarang_id);\n\t\t}\n\t\t$criteria->compare('LOWER(tglterima)',strtolower($this->tglterima),true);\n\t\t$criteria->compare('LOWER(noterima)',strtolower($this->noterima),true);\n\t\t$criteria->compare('LOWER(tglterimafaktur)',strtolower($this->tglterimafaktur),true);\n\t\t$criteria->compare('LOWER(tglsuratjalan)',strtolower($this->tglsuratjalan),true);\n\t\t$criteria->compare('LOWER(nosuratjalan)',strtolower($this->nosuratjalan),true);\n\t\tif(!empty($this->fakturpembelian_id)){\n\t\t\t$criteria->addCondition('fakturpembelian_id = '.$this->fakturpembelian_id);\n\t\t}\n\t\t$criteria->compare('LOWER(tglfaktur)',strtolower($this->tglfaktur),true);\n\t\t$criteria->compare('LOWER(nofaktur)',strtolower($this->nofaktur),true);\n\t\t$criteria->compare('LOWER(tgljatuhtempo)',strtolower($this->tgljatuhtempo),true);\n\t\t$criteria->compare('LOWER(keteranganfaktur)',strtolower($this->keteranganfaktur),true);\n\t\tif(!empty($this->supplier_id)){\n\t\t\t$criteria->addCondition('supplier_id = '.$this->supplier_id);\n\t\t}\n\t\t$criteria->compare('LOWER(supplier_kode)',strtolower($this->supplier_kode),true);\n\t\t$criteria->compare('LOWER(supplier_nama)',strtolower($this->supplier_nama),true);\n\t\t$criteria->compare('LOWER(supplier_namalain)',strtolower($this->supplier_namalain),true);\n\t\t$criteria->compare('LOWER(supplier_alamat)',strtolower($this->supplier_alamat),true);\n\t\t$criteria->compare('LOWER(supplier_propinsi)',strtolower($this->supplier_propinsi),true);\n\t\t$criteria->compare('LOWER(supplier_kabupaten)',strtolower($this->supplier_kabupaten),true);\n\t\t$criteria->compare('LOWER(supplier_telp)',strtolower($this->supplier_telp),true);\n\t\t$criteria->compare('LOWER(supplier_fax)',strtolower($this->supplier_fax),true);\n\t\t$criteria->compare('LOWER(supplier_kodepos)',strtolower($this->supplier_kodepos),true);\n\t\t$criteria->compare('LOWER(supplier_npwp)',strtolower($this->supplier_npwp),true);\n\t\t$criteria->compare('LOWER(supplier_norekening)',strtolower($this->supplier_norekening),true);\n\t\t$criteria->compare('LOWER(supplier_namabank)',strtolower($this->supplier_namabank),true);\n\t\t$criteria->compare('LOWER(supplier_rekatasnama)',strtolower($this->supplier_rekatasnama),true);\n\t\t$criteria->compare('LOWER(supplier_matauang)',strtolower($this->supplier_matauang),true);\n\t\t$criteria->compare('LOWER(supplier_website)',strtolower($this->supplier_website),true);\n\t\t$criteria->compare('LOWER(supplier_email)',strtolower($this->supplier_email),true);\n\t\t$criteria->compare('LOWER(supplier_logo)',strtolower($this->supplier_logo),true);\n\t\t$criteria->compare('LOWER(supplier_cp)',strtolower($this->supplier_cp),true);\n\t\t$criteria->compare('LOWER(supplier_cp_hp)',strtolower($this->supplier_cp_hp),true);\n\t\t$criteria->compare('LOWER(supplier_cp_email)',strtolower($this->supplier_cp_email),true);\n\t\t$criteria->compare('LOWER(supplier_cp2)',strtolower($this->supplier_cp2),true);\n\t\t$criteria->compare('LOWER(supplier_cp2_hp)',strtolower($this->supplier_cp2_hp),true);\n\t\t$criteria->compare('LOWER(supplier_cp2_email)',strtolower($this->supplier_cp2_email),true);\n\t\t$criteria->compare('LOWER(supplier_jenis)',strtolower($this->supplier_jenis),true);\n\t\tif(!empty($this->supplier_termin)){\n\t\t\t$criteria->addCondition('supplier_termin = '.$this->supplier_termin);\n\t\t}\n\t\t$criteria->compare('LOWER(longitude)',strtolower($this->longitude),true);\n\t\t$criteria->compare('LOWER(latitude)',strtolower($this->latitude),true);\n\t\t$criteria->compare('LOWER(create_time)',strtolower($this->create_time),true);\n\t\t$criteria->compare('LOWER(update_time)',strtolower($this->update_time),true);\n\t\t$criteria->compare('LOWER(create_loginpemakai_id)',strtolower($this->create_loginpemakai_id),true);\n\t\t$criteria->compare('LOWER(update_loginpemakai_id)',strtolower($this->update_loginpemakai_id),true);\n\t\t$criteria->compare('LOWER(create_ruangan)',strtolower($this->create_ruangan),true);\n\n\t\treturn $criteria;\n\t}", "title": "" }, { "docid": "dc050829b1a2f9580242258bcac7eda8", "score": "0.5309965", "text": "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(isset($this->searchText) && !empty($this->searchText))\n\t\t{\n\t\t\t$this->id = $this->searchText;\n\t\t\t$this->supplierId = $this->searchText;\n\t\t\t$this->enableEPayment = $this->searchText;\n\t\t\t$this->ePaymentTel = $this->searchText;\n\t\t\t$this->ePaymentMerchantId = $this->searchText;\n\t\t\t$this->ePaymentOrgId = $this->searchText;\n\t\t\t$this->ePaymentUrl = $this->searchText;\n\t\t\t$this->ePaymentAccessKey = $this->searchText;\n\t\t\t$this->ePaymentProfileId = $this->searchText;\n\t\t\t$this->ePaymentSecretKey = $this->searchText;\n\t\t\t$this->type = $this->searchText;\n\t\t\t$this->status = $this->searchText;\n\t\t\t$this->createDateTime = $this->searchText;\n\t\t\t$this->updateDateTime = $this->searchText;\n\t\t}\n\n\t\t$criteria->compare('id',$this->id,true, 'OR');\n\t\t$criteria->compare('supplierId',$this->supplierId,true, 'OR');\n\t\t$criteria->compare('enableEPayment',$this->enableEPayment);\n\t\t$criteria->compare('ePaymentTel',$this->ePaymentTel,true, 'OR');\n\t\t$criteria->compare('ePaymentMerchantId',$this->ePaymentMerchantId,true, 'OR');\n\t\t$criteria->compare('ePaymentOrgId',$this->ePaymentOrgId,true, 'OR');\n\t\t$criteria->compare('ePaymentUrl',$this->ePaymentUrl,true, 'OR');\n\t\t$criteria->compare('ePaymentAccessKey',$this->ePaymentAccessKey,true, 'OR');\n\t\t$criteria->compare('ePaymentProfileId',$this->ePaymentProfileId,true, 'OR');\n\t\t$criteria->compare('ePaymentSecretKey',$this->ePaymentSecretKey,true, 'OR');\n\t\t$criteria->compare('type',$this->type);\n\t\t$criteria->compare('status',$this->status);\n\t\t$criteria->compare('createDateTime',$this->createDateTime,true, 'OR');\n\t\t$criteria->compare('updateDateTime',$this->updateDateTime,true, 'OR');\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "9e0576be720a6b8c973607c6f8c45c37", "score": "0.53090197", "text": "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->rencanadiklat_id)){\n\t\t\t$criteria->addCondition('rencanadiklat_id = '.$this->rencanadiklat_id);\n\t\t}\n\t\tif(!empty($this->pegawai_id)){\n\t\t\t$criteria->addCondition('pegawai_id = '.$this->pegawai_id);\n\t\t}\n\t\tif(!empty($this->jenisdiklat_id)){\n\t\t\t$criteria->addCondition('jenisdiklat_id = '.$this->jenisdiklat_id);\n\t\t}\n\t\t$criteria->compare('LOWER(norencanadiklat)',strtolower($this->norencanadiklat),true);\n\t\t$criteria->compare('LOWER(tglrencanadiklat)',strtolower($this->tglrencanadiklat),true);\n\t\t$criteria->compare('LOWER(rencanadiklat_periode)',strtolower($this->rencanadiklat_periode),true);\n\t\t$criteria->compare('LOWER(rencanadiklat_sampaidgn)',strtolower($this->rencanadiklat_sampaidgn),true);\n\t\tif(!empty($this->lamadiklat)){\n\t\t\t$criteria->addCondition('lamadiklat = '.$this->lamadiklat);\n\t\t}\n\t\t$criteria->compare('LOWER(satuan_lama)',strtolower($this->satuan_lama),true);\n\t\t$criteria->compare('LOWER(tempat_diklat)',strtolower($this->tempat_diklat),true);\n\t\t$criteria->compare('LOWER(alamat_diklat)',strtolower($this->alamat_diklat),true);\n\t\tif(!empty($this->pemberitugas_id)){\n\t\t\t$criteria->addCondition('pemberitugas_id = '.$this->pemberitugas_id);\n\t\t}\n\t\tif(!empty($this->mengetahui_id)){\n\t\t\t$criteria->addCondition('mengetahui_id = '.$this->mengetahui_id);\n\t\t}\n\t\tif(!empty($this->menyetujui_id)){\n\t\t\t$criteria->addCondition('menyetujui_id = '.$this->menyetujui_id);\n\t\t}\n\t\t$criteria->compare('LOWER(tglmengetahui)',strtolower($this->tglmengetahui),true);\n\t\t$criteria->compare('LOWER(tglmenyetujui)',strtolower($this->tglmenyetujui),true);\n\t\t$criteria->compare('LOWER(create_time)',strtolower($this->create_time),true);\n\t\t$criteria->compare('LOWER(update_time)',strtolower($this->update_time),true);\n\t\tif(!empty($this->create_loginpemakai_id)){\n\t\t\t$criteria->addCondition('create_loginpemakai_id = '.$this->create_loginpemakai_id);\n\t\t}\n\t\tif(!empty($this->update_loginpemakai_id)){\n\t\t\t$criteria->addCondition('update_loginpemakai_id = '.$this->update_loginpemakai_id);\n\t\t}\n\t\tif(!empty($this->create_ruangan)){\n\t\t\t$criteria->addCondition('create_ruangan = '.$this->create_ruangan);\n\t\t}\n\t\t$criteria->compare('LOWER(namadiklat)',strtolower($this->namadiklat),true);\n\t\t$criteria->compare('LOWER(keterangan_diklat)',strtolower($this->keterangan_diklat),true);\n\n\t\treturn $criteria;\n\t}", "title": "" }, { "docid": "da85613f89bcf11db244d6b8b71d986c", "score": "0.5298951", "text": "function findBy(array $params);", "title": "" }, { "docid": "6cdde8d9369bbb7418515e09576b3e96", "score": "0.52882946", "text": "public function setWhere(QueryBuilder $qb)\n {\n // Global filtering\n $globalSearch = $this->requestParams->getGlobalSearch();\n $searchables = $this->requestParams->getIsSearchables();\n if ($globalSearch != '') {\n $orExpr = $qb->expr()->orX();\n foreach($this->parameters as $i => $name) \n {\n if (isset($searchables[$name]) && $searchables[$name] ) {\n $qbParam = \"search_global_{$this->associations[$i]['entityName']}_{$this->associations[$i]['fieldName']}\";\n $orExpr->add($qb->expr()->like(\n $this->associations[$i]['fullName'],\n \":$qbParam\"\n ));\n $qb->setParameter($qbParam, \"%\" . $globalSearch . \"%\");\n }\n }\n $qb->where($orExpr);\n }\n \n // Individual column filtering\n $searches = $this->requestParams->getSearches();\n if ($searches && join(\"\", $searches)!='')\n {\n \t$rangeSeparator = $this->requestParams->getRangeSeparator();\n \t$andExpr = $qb->expr()->andX();\n foreach($this->parameters as $i => $name) {\n if (isset($searchables[$name]) && $searchables[$name] && $searches[$name] != '' && (!$rangeSeparator || $searches[$name]!=$rangeSeparator)) {\n $qbParam = \"search_single_{$this->associations[$i]['entityName']}_{$this->associations[$i]['fieldName']}\";\n \n // range filtering field\n if ($rangeSeparator && strpos( $searches[$name],$rangeSeparator)!==false)\n { \n\t\t\t\t\t\t$values= split($rangeSeparator, $searches[$name]);\n\t\t\t\t\t\tif ($values[0] != \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$andExpr->add($qb->expr()->gte(\n\t\t\t\t\t\t\t\t\t$this->associations[$i]['fullName'],\n\t\t\t\t\t\t\t\t\t\":$qbParam\"\n\t\t\t\t\t\t\t));\n\t\t\t\t\t\t\t$qb->setParameter($qbParam, $values[0]);\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($values[1] != \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$andExpr->add($qb->expr()->lte(\n\t\t\t\t\t\t\t\t\t$this->associations[$i]['fullName'],\n\t\t\t\t\t\t\t\t\t\":\".$qbParam.\"1\"\n\t\t\t\t\t\t\t));\n\t\t\t\t\t\t\t$qb->setParameter($qbParam.\"1\", $values[1]);\n\t\t\t\t\t\t}\t\t\t\t\t\t\n }\n // simple filtering field\n else\n {\n \t$andExpr->add($qb->expr()->like(\n \t\t\t$this->associations[$i]['fullName'],\n \t\t\t\":$qbParam\"\n \t));\n \t$qb->setParameter($qbParam, \"%\" . $searches[$name] . \"%\"); \t\n }\n }\n }\n if ($andExpr->count() > 0) {\n $qb->andWhere($andExpr);\n }\n }\n \n if (!empty($this->callbacks['WhereBuilder'])) {\n foreach ($this->callbacks['WhereBuilder'] as $callback) {\n $callback($qb);\n }\n }\n }", "title": "" }, { "docid": "41f8073ae8ce0f86405c63cf96adadb0", "score": "0.52862865", "text": "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('t.codproduto',$this->codproduto,false);\n\t\t$criteria->compare('t.codproduto',Yii::app()->format->numeroLimpo($this->codproduto),false);\n\n\t\tif (!empty($this->barras))\n\t\t{\n\t\t\t$criteria->addCondition(\"t.codproduto in (select pb2.codproduto from tblprodutobarra pb2 where barras ilike :barras)\");\n\t\t\t$criteria->params[':barras'] = '%' . str_replace(' ', '%', trim($this->barras)) . '%';\n\t\t}\n\n\t\tif (!empty($this->produto))\n\t\t{\n\t\t\t$criteria->addCondition(\"t.produto ilike :produto\");\n\t\t\t$criteria->params[':produto'] = '%' . str_replace(' ', '%', trim($this->produto)) . '%';\n\t\t}\n\n\t\tif (!empty($this->referencia))\n\t\t{\n\t\t\t$criteria->addCondition(\"t.referencia ilike :referencia OR t.codproduto in (select pb2.codproduto from tblprodutobarra pb2 where referencia ilike :referencia)\");\n\t\t\t$criteria->params[':referencia'] = '%' . str_replace(' ', '%', trim($this->referencia)) . '%';\n\t\t}\n\n\t\tif (!empty($this->codmarca))\n\t\t{\n\t\t\t$criteria->addCondition(\"t.codmarca = :codmarca OR t.codproduto in (select pb2.codproduto from tblprodutobarra pb2 where codmarca = :codmarca)\");\n\t\t\t$criteria->params[':codmarca'] = $this->codmarca;\n\t\t}\n\n\t\tif (!empty($this->codncm))\n\t\t{\n\t\t\t$criteria->addCondition(\"t.codncm = :codncm\");\n\t\t\t$criteria->params[':codncm'] = $this->codncm;\n\t\t}\n\n\t\tswitch ($this->inativo)\n\t\t{\n\t\t\tcase 9:\n\t\t\t\tcontinue;\n\t\t\tcase 1:\n\t\t\t\t$criteria->addCondition(\"t.inativo is not null\");\n\t\t\t\tcontinue;\n\t\t\tdefault:\n\t\t\t\t$criteria->addCondition(\"t.inativo is null\");\n\t\t\t\tcontinue;\n\t\t}\n\n\t\tswitch ($this->site) // '1'=>'No Site', '2'=>'Fora do Site'),\n\t\t{\n\t\t\tcase 1:\n\t\t\t\t$criteria->addCondition(\"t.site = true\");\n\t\t\t\tcontinue;\n\t\t\tcase 2:\n\t\t\t\t$criteria->addCondition(\"t.site = false\");\n\t\t\t\tcontinue;\n\t\t}\n\n\t\t$criteria->compare('t.codtributacao', $this->codtributacao, false);\n\n\t\tif (!empty($this->preco_de))\n\t\t{\n\t\t\t$criteria->addCondition(\"t.preco >= :preco_de\");\n\t\t\t$criteria->params[':preco_de'] = Yii::app()->format->unformatNumber($this->preco_de);\n\t\t}\n\n\t\tif (!empty($this->preco_ate))\n\t\t{\n\t\t\t$criteria->addCondition(\"t.preco <= :preco_ate\");\n\t\t\t$criteria->params[':preco_ate'] = Yii::app()->format->unformatNumber($this->preco_ate);\n\t\t}\n\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[':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[':criacao_ate'] = $criacao_ate->format('Y-m-d').' 23:59:59.9';\n\t\t}\n\t\tif ($alteracao_de = DateTime::createFromFormat(\"d/m/y\",$this->alteracao_de))\n\t\t{\n\t\t\t$criteria->addCondition('t.alteracao >= :alteracao_de');\n\t\t\t$criteria->params[':alteracao_de'] = $alteracao_de->format('Y-m-d').' 00:00:00.0';\n\t\t}\n\t\tif ($alteracao_ate = DateTime::createFromFormat(\"d/m/y\",$this->alteracao_ate))\n\t\t{\n\t\t\t$criteria->addCondition('t.alteracao <= :alteracao_ate');\n\t\t\t$criteria->params[':alteracao_ate'] = $alteracao_ate->format('Y-m-d').' 23:59:59.9';\n\t\t}\n\t\t/*\n\t\t$criteria->compare('referencia',$this->referencia,true);\n\t\t$criteria->compare('codunidademedida',$this->codunidademedida,true);\n\t\t$criteria->compare('codsubgrupoproduto',$this->codsubgrupoproduto,true);\n\t\t$criteria->compare('codmarca',$this->codmarca,true);\n\t\t$criteria->compare('preco',$this->preco,true);\n\t\t$criteria->compare('importado',$this->importado);\n\t\t$criteria->compare('inativo',$this->inativo,true);\n\t\t$criteria->compare('codtipoproduto',$this->codtipoproduto,true);\n\t\t$criteria->compare('site',$this->site);\n\t\t$criteria->compare('descricaosite',$this->descricaosite,true);\n\t\t *\n\t\t */\n\n\n\t\t$criteria->order = 't.produto ASC, t.preco ASC, t.codproduto ASC';\n\t\t$criteria->with = array(\n\t\t\t'ProdutoBarras',\n\t\t\t'UnidadeMedida',\n\t\t\t'Marca',\n\t\t\t'Tributacao',\n\t\t\t'SubGrupoProduto' => array(\n\t\t\t\t'with' => 'GrupoProduto'\n\t\t\t),\n\t\t);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "3fc6bb31ccbd59e4fc62fdbbc9306b9d", "score": "0.52782154", "text": "public function search() {\n $criteria = new CDbCriteria;\n $criteria->with = array('user');\n $criteria->compare('id', $this->id, true);\n $criteria->compare('user_id', $this->user_id);\n $criteria->compare('status', $this->status);\n $criteria->compare('status_tmp', $this->status_tmp);\n $criteria->compare('status_approve', $this->status_approve);\n $criteria->compare('status_listing', $this->status_listing);\n $criteria->compare('property_name_or_address', $this->property_name_or_address, true);\n $criteria->compare('postal_code', $this->postal_code, true);\n $criteria->compare('hdb_town_estate', $this->hdb_town_estate, true);\n $criteria->compare('unit_from', $this->unit_from);\n $criteria->compare('unit_to', $this->unit_to);\n $criteria->compare('price', $this->price, true);\n $criteria->compare('office_bkank_valuation', $this->office_bkank_valuation, true);\n $criteria->compare('of_bedroom', $this->of_bedroom, true);\n $criteria->compare('floor_area', $this->floor_area, true);\n $criteria->compare('listing_description', $this->listing_description, true);\n $criteria->compare('furnished', $this->furnished);\n $criteria->compare('floor', $this->floor);\n $criteria->compare('lease_term', $this->lease_term);\n $criteria->compare('of_bathrooms', $this->of_bathrooms, true);\n $criteria->compare('active_listing_options', $this->active_listing_options, true);\n $criteria->compare('remark', $this->remark, true);\n $criteria->compare('created_date', $this->created_date, true);\n $criteria->compare('listing_type', $this->listing_type);\n $criteria->compare('listing_type_transaction', $this->listing_type_transaction);\n \n // Jul 23, 2014 - ANH DUNG FIX FOR NEW SEARCH PROPERTY TYPE\n if(isset($_GET['choosetype']) && array_key_exists($_GET['choosetype'], ProPropertyType::$ARR_TYPE_SEARCH)){\n if($_GET['choosetype'] != ProPropertyType::SEARCH_ALL){\n $criteria->compare('property_type_2', $_GET['choosetype']);\n }\n if(isset($_GET['property_type_code']) && is_array($_GET['property_type_code'])){\n $criteria->addInCondition('property_type_1', $_GET['property_type_code']);\n }\n }\n // Jul 23, 2014 - ANH DUNG FIX FOR NEW SEARCH PROPERTY TYPE \n \n $date_listed = MyFormat::dateConverDmyToYmdForSeach($this->date_listed);\n if(!empty($this->date_listed)){\n $criteria->compare('date_listed', $date_listed, true);\n }\n //add 17-08-2015 - HTram: to search by Agent Name\n if(!empty($this->agent_name)){\n// $criteria->addCondition('user.first_name like \"%'.$this->agent_name.'%\" OR user.last_name like \"%'.$this->agent_name.'%\"');\n $criteria->compare('user.full_name_for_search', $this->agent_name, true);\n }\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'sort' => array(\n 'defaultOrder' => array(\n 'date_listed' => 'DESC'\n ),\n ), \n 'pagination' => array(\n 'pageSize' => 20,\n ),\n ));\n }", "title": "" }, { "docid": "d3928131a117ad13bdfb834f70c37fa2", "score": "0.5275856", "text": "public function getCriteriaCollection(): CriteriaCollection;", "title": "" }, { "docid": "b83b958d36de42177fac9e003a8299ab", "score": "0.5271677", "text": "public function buildCriteria()\n {\n $criteria = new Criteria(MstWilayahPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(MstWilayahPeer::KODE_WILAYAH)) $criteria->add(MstWilayahPeer::KODE_WILAYAH, $this->kode_wilayah);\n if ($this->isColumnModified(MstWilayahPeer::NAMA)) $criteria->add(MstWilayahPeer::NAMA, $this->nama);\n if ($this->isColumnModified(MstWilayahPeer::ID_LEVEL_WILAYAH)) $criteria->add(MstWilayahPeer::ID_LEVEL_WILAYAH, $this->id_level_wilayah);\n if ($this->isColumnModified(MstWilayahPeer::MST_KODE_WILAYAH)) $criteria->add(MstWilayahPeer::MST_KODE_WILAYAH, $this->mst_kode_wilayah);\n if ($this->isColumnModified(MstWilayahPeer::NEGARA_ID)) $criteria->add(MstWilayahPeer::NEGARA_ID, $this->negara_id);\n if ($this->isColumnModified(MstWilayahPeer::ASAL_WILAYAH)) $criteria->add(MstWilayahPeer::ASAL_WILAYAH, $this->asal_wilayah);\n if ($this->isColumnModified(MstWilayahPeer::KODE_BPS)) $criteria->add(MstWilayahPeer::KODE_BPS, $this->kode_bps);\n if ($this->isColumnModified(MstWilayahPeer::KODE_DAGRI)) $criteria->add(MstWilayahPeer::KODE_DAGRI, $this->kode_dagri);\n if ($this->isColumnModified(MstWilayahPeer::KODE_KEU)) $criteria->add(MstWilayahPeer::KODE_KEU, $this->kode_keu);\n if ($this->isColumnModified(MstWilayahPeer::ID_PROV)) $criteria->add(MstWilayahPeer::ID_PROV, $this->id_prov);\n if ($this->isColumnModified(MstWilayahPeer::ID_KABKOTA)) $criteria->add(MstWilayahPeer::ID_KABKOTA, $this->id_kabkota);\n if ($this->isColumnModified(MstWilayahPeer::ID_KEC)) $criteria->add(MstWilayahPeer::ID_KEC, $this->id_kec);\n if ($this->isColumnModified(MstWilayahPeer::A_DESA)) $criteria->add(MstWilayahPeer::A_DESA, $this->a_desa);\n if ($this->isColumnModified(MstWilayahPeer::A_KELURAHAN)) $criteria->add(MstWilayahPeer::A_KELURAHAN, $this->a_kelurahan);\n if ($this->isColumnModified(MstWilayahPeer::A_35)) $criteria->add(MstWilayahPeer::A_35, $this->a_35);\n if ($this->isColumnModified(MstWilayahPeer::A_URBAN)) $criteria->add(MstWilayahPeer::A_URBAN, $this->a_urban);\n if ($this->isColumnModified(MstWilayahPeer::KATEGORI_DESA_ID)) $criteria->add(MstWilayahPeer::KATEGORI_DESA_ID, $this->kategori_desa_id);\n if ($this->isColumnModified(MstWilayahPeer::CREATE_DATE)) $criteria->add(MstWilayahPeer::CREATE_DATE, $this->create_date);\n if ($this->isColumnModified(MstWilayahPeer::LAST_UPDATE)) $criteria->add(MstWilayahPeer::LAST_UPDATE, $this->last_update);\n if ($this->isColumnModified(MstWilayahPeer::EXPIRED_DATE)) $criteria->add(MstWilayahPeer::EXPIRED_DATE, $this->expired_date);\n if ($this->isColumnModified(MstWilayahPeer::LAST_SYNC)) $criteria->add(MstWilayahPeer::LAST_SYNC, $this->last_sync);\n\n return $criteria;\n }", "title": "" }, { "docid": "433d5d025a197dd9ea56dcafde7d00b8", "score": "0.5268683", "text": "public function buildCriteria()\n {\n $criteria = new Criteria(PengawasTerdaftarPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(PengawasTerdaftarPeer::PENGAWAS_TERDAFTAR_ID)) $criteria->add(PengawasTerdaftarPeer::PENGAWAS_TERDAFTAR_ID, $this->pengawas_terdaftar_id);\n if ($this->isColumnModified(PengawasTerdaftarPeer::LEMBAGA_ID)) $criteria->add(PengawasTerdaftarPeer::LEMBAGA_ID, $this->lembaga_id);\n if ($this->isColumnModified(PengawasTerdaftarPeer::PTK_ID)) $criteria->add(PengawasTerdaftarPeer::PTK_ID, $this->ptk_id);\n if ($this->isColumnModified(PengawasTerdaftarPeer::TAHUN_AJARAN_ID)) $criteria->add(PengawasTerdaftarPeer::TAHUN_AJARAN_ID, $this->tahun_ajaran_id);\n if ($this->isColumnModified(PengawasTerdaftarPeer::NOMOR_SURAT_TUGAS)) $criteria->add(PengawasTerdaftarPeer::NOMOR_SURAT_TUGAS, $this->nomor_surat_tugas);\n if ($this->isColumnModified(PengawasTerdaftarPeer::TANGGAL_SURAT_TUGAS)) $criteria->add(PengawasTerdaftarPeer::TANGGAL_SURAT_TUGAS, $this->tanggal_surat_tugas);\n if ($this->isColumnModified(PengawasTerdaftarPeer::TMT_TUGAS)) $criteria->add(PengawasTerdaftarPeer::TMT_TUGAS, $this->tmt_tugas);\n if ($this->isColumnModified(PengawasTerdaftarPeer::MATA_PELAJARAN_ID)) $criteria->add(PengawasTerdaftarPeer::MATA_PELAJARAN_ID, $this->mata_pelajaran_id);\n if ($this->isColumnModified(PengawasTerdaftarPeer::BIDANG_STUDI_ID)) $criteria->add(PengawasTerdaftarPeer::BIDANG_STUDI_ID, $this->bidang_studi_id);\n if ($this->isColumnModified(PengawasTerdaftarPeer::JENJANG_KEPENGAWASAN_ID)) $criteria->add(PengawasTerdaftarPeer::JENJANG_KEPENGAWASAN_ID, $this->jenjang_kepengawasan_id);\n if ($this->isColumnModified(PengawasTerdaftarPeer::AKTIF_BULAN_01)) $criteria->add(PengawasTerdaftarPeer::AKTIF_BULAN_01, $this->aktif_bulan_01);\n if ($this->isColumnModified(PengawasTerdaftarPeer::AKTIF_BULAN_02)) $criteria->add(PengawasTerdaftarPeer::AKTIF_BULAN_02, $this->aktif_bulan_02);\n if ($this->isColumnModified(PengawasTerdaftarPeer::AKTIF_BULAN_03)) $criteria->add(PengawasTerdaftarPeer::AKTIF_BULAN_03, $this->aktif_bulan_03);\n if ($this->isColumnModified(PengawasTerdaftarPeer::AKTIF_BULAN_04)) $criteria->add(PengawasTerdaftarPeer::AKTIF_BULAN_04, $this->aktif_bulan_04);\n if ($this->isColumnModified(PengawasTerdaftarPeer::AKTIF_BULAN_05)) $criteria->add(PengawasTerdaftarPeer::AKTIF_BULAN_05, $this->aktif_bulan_05);\n if ($this->isColumnModified(PengawasTerdaftarPeer::AKTIF_BULAN_06)) $criteria->add(PengawasTerdaftarPeer::AKTIF_BULAN_06, $this->aktif_bulan_06);\n if ($this->isColumnModified(PengawasTerdaftarPeer::AKTIF_BULAN_07)) $criteria->add(PengawasTerdaftarPeer::AKTIF_BULAN_07, $this->aktif_bulan_07);\n if ($this->isColumnModified(PengawasTerdaftarPeer::AKTIF_BULAN_08)) $criteria->add(PengawasTerdaftarPeer::AKTIF_BULAN_08, $this->aktif_bulan_08);\n if ($this->isColumnModified(PengawasTerdaftarPeer::AKTIF_BULAN_09)) $criteria->add(PengawasTerdaftarPeer::AKTIF_BULAN_09, $this->aktif_bulan_09);\n if ($this->isColumnModified(PengawasTerdaftarPeer::AKTIF_BULAN_10)) $criteria->add(PengawasTerdaftarPeer::AKTIF_BULAN_10, $this->aktif_bulan_10);\n if ($this->isColumnModified(PengawasTerdaftarPeer::AKTIF_BULAN_11)) $criteria->add(PengawasTerdaftarPeer::AKTIF_BULAN_11, $this->aktif_bulan_11);\n if ($this->isColumnModified(PengawasTerdaftarPeer::AKTIF_BULAN_12)) $criteria->add(PengawasTerdaftarPeer::AKTIF_BULAN_12, $this->aktif_bulan_12);\n if ($this->isColumnModified(PengawasTerdaftarPeer::JENIS_KELUAR_ID)) $criteria->add(PengawasTerdaftarPeer::JENIS_KELUAR_ID, $this->jenis_keluar_id);\n if ($this->isColumnModified(PengawasTerdaftarPeer::TGL_PENGAWAS_KELUAR)) $criteria->add(PengawasTerdaftarPeer::TGL_PENGAWAS_KELUAR, $this->tgl_pengawas_keluar);\n if ($this->isColumnModified(PengawasTerdaftarPeer::CREATE_DATE)) $criteria->add(PengawasTerdaftarPeer::CREATE_DATE, $this->create_date);\n if ($this->isColumnModified(PengawasTerdaftarPeer::LAST_UPDATE)) $criteria->add(PengawasTerdaftarPeer::LAST_UPDATE, $this->last_update);\n if ($this->isColumnModified(PengawasTerdaftarPeer::SOFT_DELETE)) $criteria->add(PengawasTerdaftarPeer::SOFT_DELETE, $this->soft_delete);\n if ($this->isColumnModified(PengawasTerdaftarPeer::LAST_SYNC)) $criteria->add(PengawasTerdaftarPeer::LAST_SYNC, $this->last_sync);\n if ($this->isColumnModified(PengawasTerdaftarPeer::UPDATER_ID)) $criteria->add(PengawasTerdaftarPeer::UPDATER_ID, $this->updater_id);\n\n return $criteria;\n }", "title": "" }, { "docid": "1c3ebc130870a74782d3039eea566b1b", "score": "0.5263472", "text": "function query() {\n $this->ensure_my_table();\n\n if (!empty($this->argument)) {\n // Add filter for the argument value\n $this->query->add_where('user_involved', \"$this->table_alias.sender\", $this->argument);\n $this->query->add_where('user_involved', \"$this->table_alias.recipient\", $this->argument);\n $this->query->set_where_group('OR', 'user_involved');\n }\n }", "title": "" }, { "docid": "d2a90be978af6adbf2ff3f09057c59c4", "score": "0.525732", "text": "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->barang_id)){\n\t\t\t$criteria->addCondition('barang_id = '.$this->barang_id);\n\t\t}\n\t\t$criteria->compare('LOWER(barang_type)',strtolower($this->barang_type),true);\n\t\t$criteria->compare('LOWER(barang_kode)',strtolower($this->barang_kode),true);\n\t\t$criteria->compare('LOWER(barang_nama)',strtolower($this->barang_nama),true);\n\t\t$criteria->compare('LOWER(barang_namalainnya)',strtolower($this->barang_namalainnya),true);\n\t\t$criteria->compare('LOWER(barang_merk)',strtolower($this->barang_merk),true);\n\t\t$criteria->compare('LOWER(barang_noseri)',strtolower($this->barang_noseri),true);\n\t\t$criteria->compare('LOWER(barang_ukuran)',strtolower($this->barang_ukuran),true);\n\t\t$criteria->compare('LOWER(barang_bahan)',strtolower($this->barang_bahan),true);\n\t\t$criteria->compare('LOWER(barang_thnbeli)',strtolower($this->barang_thnbeli),true);\n\t\t$criteria->compare('LOWER(barang_warna)',strtolower($this->barang_warna),true);\n\t\t$criteria->compare('barang_statusregister',$this->barang_statusregister);\n\t\tif(!empty($this->barang_ekonomis_thn)){\n\t\t\t$criteria->addCondition('barang_ekonomis_thn = '.$this->barang_ekonomis_thn);\n\t\t}\n\t\t$criteria->compare('LOWER(barang_satuan)',strtolower($this->barang_satuan),true);\n\t\tif(!empty($this->barang_jmldlmkemasan)){\n\t\t\t$criteria->addCondition('barang_jmldlmkemasan = '.$this->barang_jmldlmkemasan);\n\t\t}\n\t\t$criteria->compare('LOWER(barang_image)',strtolower($this->barang_image),true);\n\t\t$criteria->compare('barang_harga',$this->barang_harga);\n\t\tif(!empty($this->bidang_id)){\n\t\t\t$criteria->addCondition('bidang_id = '.$this->bidang_id);\n\t\t}\n\t\t$criteria->compare('LOWER(bidang_kode)',strtolower($this->bidang_kode),true);\n\t\t$criteria->compare('LOWER(bidang_nama)',strtolower($this->bidang_nama),true);\n\t\tif(!empty($this->ruangan_id)){\n\t\t\t$criteria->addCondition('ruangan_id = '.$this->ruangan_id);\n\t\t}\n\t\t$criteria->compare('LOWER(ruangan_nama)',strtolower($this->ruangan_nama),true);\n\t\t$criteria->compare('LOWER(ruangan_lokasi)',strtolower($this->ruangan_lokasi),true);\n\t\tif(!empty($this->instalasi_id)){\n\t\t\t$criteria->addCondition('instalasi_id = '.$this->instalasi_id);\n\t\t}\n\t\t$criteria->compare('LOWER(instalasi_nama)',strtolower($this->instalasi_nama),true);\n\t\t$criteria->compare('inventarisasi_hargabeli_avg',$this->inventarisasi_hargabeli_avg);\n\t\t$criteria->compare('inventarisasi_stok',$this->inventarisasi_stok);\n\n\t\treturn $criteria;\n\t}", "title": "" }, { "docid": "26d47763c9dc012444667b19b106175c", "score": "0.52573144", "text": "public function search()\n\t{\n\t\t$criteria = new CDbCriteria;\n\n if ($this->customer_id) {\n if (is_string($this->customer_id)) {\n $criteria->with['customer'] = array(\n 'together' => true,\n 'joinType' => 'INNER JOIN',\n 'condition'=> '(CONCAT(customer.first_name, \" \", customer.last_name) LIKE :c01 OR customer.email LIKE :c01)',\n 'params' => array(':c01' => '%'. $this->customer_id .'%')\n );\n } else {\n $criteria->compare('t.customer_id', (int)$this->customer_id);\n }\n }\n \n if ($this->plan_id) {\n if (is_string($this->plan_id)) {\n $criteria->with['plan'] = array(\n 'together' => true,\n 'joinType' => 'INNER JOIN',\n 'condition'=> 'plan.name LIKE :p01',\n 'params' => array(':p01' => '%'. $this->plan_id .'%')\n );\n } else {\n $criteria->compare('t.plan_id', (int)$this->plan_id);\n }\n }\n \n if ($this->promo_code_id) {\n if (is_string($this->promo_code_id)) {\n $criteria->with['promoCode'] = array(\n 'together' => true,\n 'joinType' => 'INNER JOIN',\n 'condition'=> 'promoCode.code LIKE :pc01',\n 'params' => array(':pc01' => '%'. $this->promo_code_id .'%')\n );\n } else {\n $criteria->compare('t.promo_code_id', (int)$this->promo_code_id);\n }\n }\n \n if ($this->currency_id) {\n if (is_string($this->currency_id)) {\n $criteria->with['currency'] = array(\n 'together' => true,\n 'joinType' => 'INNER JOIN',\n 'condition'=> 'currency.code LIKE :cr01',\n 'params' => array(':cr01' => '%'. $this->currency_id .'%')\n );\n } else {\n $criteria->compare('t.currency_id', (int)$this->currency_id);\n }\n }\n \n if ($this->tax_id) {\n if (is_string($this->tax_id)) {\n $criteria->with['tax'] = array(\n 'together' => true,\n 'joinType' => 'INNER JOIN',\n 'condition'=> 'currency.code LIKE :t01',\n 'params' => array(':t01' => '%'. $this->tax_id .'%')\n );\n } else {\n $criteria->compare('t.tax_id', (int)$this->tax_id);\n }\n }\n \n $criteria->compare('t.order_uid', $this->order_uid, true);\n\t\t$criteria->compare('t.subtotal', $this->subtotal, true);\n $criteria->compare('t.tax_value', $this->tax_value, true);\n $criteria->compare('t.tax_percent', $this->tax_percent, true);\n\t\t$criteria->compare('t.discount', $this->discount, true);\n\t\t$criteria->compare('t.total', $this->total, true);\n\t\t$criteria->compare('t.status', $this->status);\n \n $criteria->order = 't.order_id DESC';\n \n\t\treturn new CActiveDataProvider(get_class($this), array(\n 'criteria' => $criteria,\n 'pagination' => array(\n 'pageSize' => $this->paginationOptions->getPageSize(),\n 'pageVar' => 'page',\n ),\n 'sort'=>array(\n 'defaultOrder' => array(\n 't.order_id' => CSort::SORT_DESC,\n ),\n ),\n ));\n\t}", "title": "" }, { "docid": "c7ab93e0a47a9fbe076dbb6d07f2be42", "score": "0.52552575", "text": "public function apply(Query $builder);", "title": "" }, { "docid": "9834b1b23f72d9450606c3e175e5ccb5", "score": "0.52428114", "text": "function query() {\n $this->ensure_my_table();\n $value = $this->parse_age_between();\n $this->query->add_where($this->options['group'], \"$this->table_alias.$this->real_field\", $value, $this->operator);\n }", "title": "" }, { "docid": "12d29d306300384006214077eb8167c7", "score": "0.52427506", "text": "public function Query()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$criteria = new ProductoCriteria();\n\t\t\t\n\t\t\t// TODO: this will limit results based on all properties included in the filter list \n\t\t\t$filter = RequestUtil::Get('filter');\n\t\t\tif ($filter) $criteria->AddFilter(\n\t\t\t\tnew CriteriaFilter('Id,CodProveedor,Descripcion,UnidadMedida,Uxb,Rubro'\n\t\t\t\t, '%'.$filter.'%')\n\t\t\t);\n\n\t\t\t// TODO: this is generic query filtering based only on criteria properties\r\n\t\t\tforeach (array_keys($_REQUEST) as $prop)\r\n\t\t\t{\r\n\t\t\t\t$prop_normal = ucfirst($prop);\r\n\t\t\t\t$prop_equals = $prop_normal.'_Equals';\r\n\r\n\t\t\t\tif (property_exists($criteria, $prop_normal))\r\n\t\t\t\t{\r\n\t\t\t\t\t$criteria->$prop_normal = RequestUtil::Get($prop);\r\n\t\t\t\t}\r\n\t\t\t\telseif (property_exists($criteria, $prop_equals))\r\n\t\t\t\t{\r\n\t\t\t\t\t// this is a convenience so that the _Equals suffix is not needed\r\n\t\t\t\t\t$criteria->$prop_equals = RequestUtil::Get($prop);\r\n\t\t\t\t}\r\n\t\t\t}\n\n\t\t\t$output = new stdClass();\n\n\t\t\t// if a sort order was specified then specify in the criteria\n \t\t\t$output->orderBy = RequestUtil::Get('orderBy');\n \t\t\t$output->orderDesc = RequestUtil::Get('orderDesc') != '';\n \t\t\tif ($output->orderBy) $criteria->SetOrder($output->orderBy, $output->orderDesc);\n\n\t\t\t$page = RequestUtil::Get('page');\n\n\t\t\tif ($page != '')\n\t\t\t{\n\t\t\t\t// if page is specified, use this instead (at the expense of one extra count query)\n\t\t\t\t$pagesize = $this->GetDefaultPageSize();\n\n\t\t\t\t$productos = $this->Phreezer->Query('Producto',$criteria)->GetDataPage($page, $pagesize);\r\n\t\t\t\t$output->rows = $productos->ToObjectArray(true,$this->SimpleObjectParams());\r\n\t\t\t\t$output->totalResults = $productos->TotalResults;\r\n\t\t\t\t$output->totalPages = $productos->TotalPages;\r\n\t\t\t\t$output->pageSize = $productos->PageSize;\n\t\t\t\t$output->currentPage = $productos->CurrentPage;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// return all results\n\t\t\t\t$productos = $this->Phreezer->Query('Producto',$criteria);\n\t\t\t\t$output->rows = $productos->ToObjectArray(true, $this->SimpleObjectParams());\n\t\t\t\t$output->totalResults = count($output->rows);\n\t\t\t\t$output->totalPages = 1;\n\t\t\t\t$output->pageSize = $output->totalResults;\n\t\t\t\t$output->currentPage = 1;\n\t\t\t}\n\n\n\t\t\t$this->RenderJSON($output, $this->JSONPCallback());\n\t\t}\n\t\tcatch (Exception $ex)\n\t\t{\n\t\t\t$this->RenderExceptionJSON($ex);\n\t\t}\n\t}", "title": "" }, { "docid": "274f96c95aaf1b92c697f093afb81e51", "score": "0.5239728", "text": "public static abstract function findBy($where);", "title": "" }, { "docid": "e295cb7560c3cbfe64130cf8510619d0", "score": "0.5233542", "text": "public abstract function repository();", "title": "" }, { "docid": "735833b5d7dc3c6fc6ad6774ea401c1e", "score": "0.5230904", "text": "public function buildCriteria()\n {\n $criteria = new Criteria(CreditNoteTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(CreditNoteTableMap::ID)) $criteria->add(CreditNoteTableMap::ID, $this->id);\n if ($this->isColumnModified(CreditNoteTableMap::REF)) $criteria->add(CreditNoteTableMap::REF, $this->ref);\n if ($this->isColumnModified(CreditNoteTableMap::INVOICE_REF)) $criteria->add(CreditNoteTableMap::INVOICE_REF, $this->invoice_ref);\n if ($this->isColumnModified(CreditNoteTableMap::INVOICE_ADDRESS_ID)) $criteria->add(CreditNoteTableMap::INVOICE_ADDRESS_ID, $this->invoice_address_id);\n if ($this->isColumnModified(CreditNoteTableMap::INVOICE_DATE)) $criteria->add(CreditNoteTableMap::INVOICE_DATE, $this->invoice_date);\n if ($this->isColumnModified(CreditNoteTableMap::ORDER_ID)) $criteria->add(CreditNoteTableMap::ORDER_ID, $this->order_id);\n if ($this->isColumnModified(CreditNoteTableMap::CUSTOMER_ID)) $criteria->add(CreditNoteTableMap::CUSTOMER_ID, $this->customer_id);\n if ($this->isColumnModified(CreditNoteTableMap::PARENT_ID)) $criteria->add(CreditNoteTableMap::PARENT_ID, $this->parent_id);\n if ($this->isColumnModified(CreditNoteTableMap::TYPE_ID)) $criteria->add(CreditNoteTableMap::TYPE_ID, $this->type_id);\n if ($this->isColumnModified(CreditNoteTableMap::STATUS_ID)) $criteria->add(CreditNoteTableMap::STATUS_ID, $this->status_id);\n if ($this->isColumnModified(CreditNoteTableMap::CURRENCY_ID)) $criteria->add(CreditNoteTableMap::CURRENCY_ID, $this->currency_id);\n if ($this->isColumnModified(CreditNoteTableMap::CURRENCY_RATE)) $criteria->add(CreditNoteTableMap::CURRENCY_RATE, $this->currency_rate);\n if ($this->isColumnModified(CreditNoteTableMap::TOTAL_PRICE)) $criteria->add(CreditNoteTableMap::TOTAL_PRICE, $this->total_price);\n if ($this->isColumnModified(CreditNoteTableMap::TOTAL_PRICE_WITH_TAX)) $criteria->add(CreditNoteTableMap::TOTAL_PRICE_WITH_TAX, $this->total_price_with_tax);\n if ($this->isColumnModified(CreditNoteTableMap::DISCOUNT_WITHOUT_TAX)) $criteria->add(CreditNoteTableMap::DISCOUNT_WITHOUT_TAX, $this->discount_without_tax);\n if ($this->isColumnModified(CreditNoteTableMap::DISCOUNT_WITH_TAX)) $criteria->add(CreditNoteTableMap::DISCOUNT_WITH_TAX, $this->discount_with_tax);\n if ($this->isColumnModified(CreditNoteTableMap::ALLOW_PARTIAL_USE)) $criteria->add(CreditNoteTableMap::ALLOW_PARTIAL_USE, $this->allow_partial_use);\n if ($this->isColumnModified(CreditNoteTableMap::CREATED_AT)) $criteria->add(CreditNoteTableMap::CREATED_AT, $this->created_at);\n if ($this->isColumnModified(CreditNoteTableMap::UPDATED_AT)) $criteria->add(CreditNoteTableMap::UPDATED_AT, $this->updated_at);\n\n return $criteria;\n }", "title": "" }, { "docid": "f51993f79dacd6029e9036f30df90231", "score": "0.5229385", "text": "public function buildCriteria()\n {\n $criteria = new Criteria(MedicoPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(MedicoPeer::IDMEDICO)) $criteria->add(MedicoPeer::IDMEDICO, $this->idmedico);\n if ($this->isColumnModified(MedicoPeer::IDESPECIALIDAD)) $criteria->add(MedicoPeer::IDESPECIALIDAD, $this->idespecialidad);\n if ($this->isColumnModified(MedicoPeer::MEDICO_NOMBRE)) $criteria->add(MedicoPeer::MEDICO_NOMBRE, $this->medico_nombre);\n if ($this->isColumnModified(MedicoPeer::MEDICO_APELLIDOPATERNO)) $criteria->add(MedicoPeer::MEDICO_APELLIDOPATERNO, $this->medico_apellidopaterno);\n if ($this->isColumnModified(MedicoPeer::MEDICO_APELLIDOMATERNO)) $criteria->add(MedicoPeer::MEDICO_APELLIDOMATERNO, $this->medico_apellidomaterno);\n if ($this->isColumnModified(MedicoPeer::MEDICO_CALLE)) $criteria->add(MedicoPeer::MEDICO_CALLE, $this->medico_calle);\n if ($this->isColumnModified(MedicoPeer::MEDICO_NOEXTERIOR)) $criteria->add(MedicoPeer::MEDICO_NOEXTERIOR, $this->medico_noexterior);\n if ($this->isColumnModified(MedicoPeer::MEDICO_NOINTERIOR)) $criteria->add(MedicoPeer::MEDICO_NOINTERIOR, $this->medico_nointerior);\n if ($this->isColumnModified(MedicoPeer::MEDICO_COLONIA)) $criteria->add(MedicoPeer::MEDICO_COLONIA, $this->medico_colonia);\n if ($this->isColumnModified(MedicoPeer::MEDICO_CODIGOPOSTAL)) $criteria->add(MedicoPeer::MEDICO_CODIGOPOSTAL, $this->medico_codigopostal);\n if ($this->isColumnModified(MedicoPeer::MEDICO_CIUDAD)) $criteria->add(MedicoPeer::MEDICO_CIUDAD, $this->medico_ciudad);\n if ($this->isColumnModified(MedicoPeer::MEDICO_ESTADO)) $criteria->add(MedicoPeer::MEDICO_ESTADO, $this->medico_estado);\n if ($this->isColumnModified(MedicoPeer::MEDICO_PAIS)) $criteria->add(MedicoPeer::MEDICO_PAIS, $this->medico_pais);\n if ($this->isColumnModified(MedicoPeer::MEDICO_TELEFONO)) $criteria->add(MedicoPeer::MEDICO_TELEFONO, $this->medico_telefono);\n if ($this->isColumnModified(MedicoPeer::MEDICO_TELEFONOCELULAR)) $criteria->add(MedicoPeer::MEDICO_TELEFONOCELULAR, $this->medico_telefonocelular);\n if ($this->isColumnModified(MedicoPeer::MEDICO_CLAVE)) $criteria->add(MedicoPeer::MEDICO_CLAVE, $this->medico_clave);\n if ($this->isColumnModified(MedicoPeer::MEDICO_DGP)) $criteria->add(MedicoPeer::MEDICO_DGP, $this->medico_dgp);\n if ($this->isColumnModified(MedicoPeer::MEDICO_SSA)) $criteria->add(MedicoPeer::MEDICO_SSA, $this->medico_ssa);\n if ($this->isColumnModified(MedicoPeer::MEDICO_AE)) $criteria->add(MedicoPeer::MEDICO_AE, $this->medico_ae);\n if ($this->isColumnModified(MedicoPeer::MEDICO_FOTOGRAFIA)) $criteria->add(MedicoPeer::MEDICO_FOTOGRAFIA, $this->medico_fotografia);\n if ($this->isColumnModified(MedicoPeer::MEDICO_PERFILCOMPLETO)) $criteria->add(MedicoPeer::MEDICO_PERFILCOMPLETO, $this->medico_perfilcompleto);\n\n return $criteria;\n }", "title": "" }, { "docid": "508f4758a49e23116e17cc228711b40a", "score": "0.5221742", "text": "public function makeQuery();", "title": "" }, { "docid": "4529630e7d0b376142561aec861a8d30", "score": "0.52206224", "text": "function defineCriterias($criterio,$PreparedStatement){\n\t\t\tif(isset ($criterio[\"parametro_id\"]) && trim($criterio[\"parametro_id\"]) != \"0\"){\n\t\t\t\t$PreparedStatement .=\" AND parametro_id = \".Connection::inject($criterio[\"parametro_id\"]);\n\t\t\t}\n\t\t\tif(isset ($criterio[\"entidad\"]) && trim($criterio[\"entidad\"]) != \"0\"){\n\t\t\t\t$PreparedStatement .=\" AND entidad LIKE '%\".Connection::inject($criterio[\"entidad\"]).\"%'\";\n\t\t\t}\n\t\t\tif(isset ($criterio[\"codigo\"]) && trim($criterio[\"codigo\"]) != \"0\"){\n\t\t\t\t$PreparedStatement .=\" AND codigo = \".Connection::inject($criterio[\"codigo\"]);\n\t\t\t}\n\t\t\tif(isset ($criterio[\"valor\"]) && trim($criterio[\"valor\"]) != \"0\"){\n\t\t\t\t$PreparedStatement .=\" AND valor LIKE '%\".Connection::inject($criterio[\"valor\"]).\"%'\";\n\t\t\t}\n\t\t\tif(isset ($criterio[\"descripcion\"]) && trim($criterio[\"descripcion\"]) != \"0\"){\n\t\t\t\t$PreparedStatement .=\" AND descripcion = \".Connection::inject($criterio[\"descripcion\"]);\n\t\t\t}\n\t\t\treturn $PreparedStatement;\n\t\t}", "title": "" }, { "docid": "9ed51115a6803c74616f4b98b22b748f", "score": "0.52191615", "text": "public function search()\n {\n // should not be searched.\n $criteria = new CDbCriteria;\n $criteria->with[] = 'goods_s';\n $criteria->compare('goods_s.object_id', $this->object_id);\n// $employee = Employee::model()->findByPk(Yii::app()->user->id);\n// $branchIds = $employee->mergeBranch;\n// ICE 组织架构用表里面的\n $branch = EmployeeBranchRelation::model()->findAllByAttributes(array('employee_id'=>YII::app()->user->id));\n $branchIds = Employee::ICEGetOldMergeBranch();\n\n /*if(!empty($employee->branch_id)){\n $shop_ids = Branch::model()->findByPk($employee->branch_id)->getBranchAllIds('Shop');\n $criteria->addInCondition('`goods_s`.shop_id', $shop_ids);\n }*/\n// if (!empty($employee->branch)) {\n// ICE 组织架构用表里面的 \n if (!empty($branch)) {\n $shop_ids = array();\n foreach ($branchIds as $branchId) {\n $data = Branch::model()->findByPk($branchId)->getBranchAllIds('Shop');\n $shop_ids = array_unique(array_merge($shop_ids, $data));\n }\n $criteria->addInCondition('`goods_s`.shop_id', $shop_ids);\n }\n\n $criteria->compare('id', $this->id);\n $criteria->compare('model', $this->objectModel, true); //设置条件为商家\n if ($this->_objectName != '') {\n $criteria->with[] = $this->objectModel;\n $criteria->compare($this->objectModel . '.name', $this->objectName, true);\n }\n $criteria->with[] = 'customer';\n $criteria->compare(\"`customer`.username\", $this->username, true);\n $criteria->compare(\"`customer`.mobile\", $this->mobile, true);\n\n if ($this->customerName != '') {\n $criteria->compare('customer.name', $this->customerName, true);\n }\n if ($this->start_time != \"\") {\n $criteria->addCondition('`t`.create_time>=' . strtotime($this->start_time));\n }\n if ($this->end_time != \"\") {\n $criteria->addCondition('`t`.create_time<=' . strtotime($this->end_time . \" 23:59:59\"));\n }\n $criteria->compare('`t`.content', $this->content, true);\n $criteria->compare('`t`.reply', $this->reply, true);\n $criteria->compare('`t`.create_time', $this->create_time);\n $criteria->compare('`t`.create_ip', $this->create_ip, true);\n $criteria->compare('`t`.update_time', $this->update_time);\n $criteria->compare('`t`.update_ip', $this->update_ip, true);\n $criteria->compare('`t`.audit', $this->audit, true);\n $criteria->compare('`t`.score', $this->score, true);\n\n return new ActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "ccb8917f71908df73641375afee33419", "score": "0.5216738", "text": "public function find($query);", "title": "" }, { "docid": "ccb8917f71908df73641375afee33419", "score": "0.5216738", "text": "public function find($query);", "title": "" }, { "docid": "691bb9d3cd5cd2d9c664d24d5830004d", "score": "0.5211375", "text": "public function setCriteria($criteria)\n {\n $this->criteria = $criteria;\n }", "title": "" }, { "docid": "5b09c764d7ca868366d022fb573f9e9a", "score": "0.5209288", "text": "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->profilrs_id)){\n\t\t\t$criteria->addCondition('profilrs_id = '.$this->profilrs_id);\n\t\t}\n\t\t$criteria->compare('LOWER(propinsi)',strtolower($this->propinsi),true);\n\t\t$criteria->compare('LOWER(kabupaten)',strtolower($this->kabupaten),true);\n\t\t$criteria->compare('LOWER(koders)',strtolower($this->koders),true);\n\t\t$criteria->compare('LOWER(namars)',strtolower($this->namars),true);\n\t\t$criteria->compare('LOWER(tgl_laporan)',strtolower($this->tgl_laporan),true);\n\t\t$criteria->compare('LOWER(dtd_kode)',strtolower($this->dtd_kode),true);\n\t\t$criteria->compare('LOWER(dtd_noterperinci)',strtolower($this->dtd_noterperinci),true);\n\t\t$criteria->compare('LOWER(golongansebabpenyakit)',strtolower($this->golongansebabpenyakit),true);\n\t\t$criteria->compare('LOWER(var_0hr_6hr_l)',strtolower($this->var_0hr_6hr_l),true);\n\t\t$criteria->compare('LOWER(var_0hr_6hr_p)',strtolower($this->var_0hr_6hr_p),true);\n\t\t$criteria->compare('LOWER(var_6hr_28hr_l)',strtolower($this->var_6hr_28hr_l),true);\n\t\t$criteria->compare('LOWER(var_6hr_28hr_p)',strtolower($this->var_6hr_28hr_p),true);\n\t\t$criteria->compare('LOWER(var_28hr_1th_l)',strtolower($this->var_28hr_1th_l),true);\n\t\t$criteria->compare('LOWER(var_28hr_1th_p)',strtolower($this->var_28hr_1th_p),true);\n\t\t$criteria->compare('LOWER(var_1th_4th_l)',strtolower($this->var_1th_4th_l),true);\n\t\t$criteria->compare('LOWER(var_1th_4th_p)',strtolower($this->var_1th_4th_p),true);\n\t\t$criteria->compare('LOWER(var_4th_14th_l)',strtolower($this->var_4th_14th_l),true);\n\t\t$criteria->compare('LOWER(var_4th_14th_p)',strtolower($this->var_4th_14th_p),true);\n\t\t$criteria->compare('LOWER(var_14th_24th_l)',strtolower($this->var_14th_24th_l),true);\n\t\t$criteria->compare('LOWER(var_14th_24th_p)',strtolower($this->var_14th_24th_p),true);\n\t\t$criteria->compare('LOWER(var_24th_44th_l)',strtolower($this->var_24th_44th_l),true);\n\t\t$criteria->compare('LOWER(var_24th_44th_p)',strtolower($this->var_24th_44th_p),true);\n\t\t$criteria->compare('LOWER(var_44th_64th_l)',strtolower($this->var_44th_64th_l),true);\n\t\t$criteria->compare('LOWER(var_44th_64th_p)',strtolower($this->var_44th_64th_p),true);\n\t\t$criteria->compare('LOWER(var_64th_keatas_l)',strtolower($this->var_64th_keatas_l),true);\n\t\t$criteria->compare('LOWER(var_64th_keatas_p)',strtolower($this->var_64th_keatas_p),true);\n\t\t$criteria->compare('LOWER(kasusbaru_lakilaki)',strtolower($this->kasusbaru_lakilaki),true);\n\t\t$criteria->compare('LOWER(kasusbaru_perempuan)',strtolower($this->kasusbaru_perempuan),true);\n\t\t$criteria->compare('LOWER(jumlahkasusbaru)',strtolower($this->jumlahkasusbaru),true);\n\t\t$criteria->compare('LOWER(jumlahkunjungan)',strtolower($this->jumlahkunjungan),true);\n\n\t\treturn $criteria;\n\t}", "title": "" }, { "docid": "c1dbeacedcd299f0eb612119ddc1c4fa", "score": "0.5209085", "text": "protected function addConditions()\n\t{\n\t\t//if(count($this->conditions))\n\t\t//\t$this->dataProvider->query->where = [];\n\n\t\tforeach($this->conditions as $type=>$condition)\n\t\t{\n\t\t\t$where = ($this->exclusiveSearch) ? 'andWhere' : $type.'Where';\n\t\t\tarray_unshift($condition, $type);\n\t\t\t$this->dataProvider->query->$where($condition);\n\t\t}\n\t}", "title": "" }, { "docid": "a695f5e84fb5f5a272560be80834036b", "score": "0.5207726", "text": "public function buildCriteria()\n {\n $criteria = new Criteria(PrincipalPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(PrincipalPeer::ID)) $criteria->add(PrincipalPeer::ID, $this->id);\n if ($this->isColumnModified(PrincipalPeer::USER_ID)) $criteria->add(PrincipalPeer::USER_ID, $this->user_id);\n if ($this->isColumnModified(PrincipalPeer::NAME)) $criteria->add(PrincipalPeer::NAME, $this->name);\n if ($this->isColumnModified(PrincipalPeer::NAME_SLUG)) $criteria->add(PrincipalPeer::NAME_SLUG, $this->name_slug);\n if ($this->isColumnModified(PrincipalPeer::GOVERMENT_LICENSE)) $criteria->add(PrincipalPeer::GOVERMENT_LICENSE, $this->goverment_license);\n if ($this->isColumnModified(PrincipalPeer::JOIN_AT)) $criteria->add(PrincipalPeer::JOIN_AT, $this->join_at);\n if ($this->isColumnModified(PrincipalPeer::ADDRESS1)) $criteria->add(PrincipalPeer::ADDRESS1, $this->address1);\n if ($this->isColumnModified(PrincipalPeer::ADDRESS2)) $criteria->add(PrincipalPeer::ADDRESS2, $this->address2);\n if ($this->isColumnModified(PrincipalPeer::CITY)) $criteria->add(PrincipalPeer::CITY, $this->city);\n if ($this->isColumnModified(PrincipalPeer::ZIPCODE)) $criteria->add(PrincipalPeer::ZIPCODE, $this->zipcode);\n if ($this->isColumnModified(PrincipalPeer::COUNTRY_ID)) $criteria->add(PrincipalPeer::COUNTRY_ID, $this->country_id);\n if ($this->isColumnModified(PrincipalPeer::STATE_ID)) $criteria->add(PrincipalPeer::STATE_ID, $this->state_id);\n if ($this->isColumnModified(PrincipalPeer::PHONE)) $criteria->add(PrincipalPeer::PHONE, $this->phone);\n if ($this->isColumnModified(PrincipalPeer::FAX)) $criteria->add(PrincipalPeer::FAX, $this->fax);\n if ($this->isColumnModified(PrincipalPeer::MOBILE)) $criteria->add(PrincipalPeer::MOBILE, $this->mobile);\n if ($this->isColumnModified(PrincipalPeer::EMAIL)) $criteria->add(PrincipalPeer::EMAIL, $this->email);\n if ($this->isColumnModified(PrincipalPeer::WEBSITE)) $criteria->add(PrincipalPeer::WEBSITE, $this->website);\n if ($this->isColumnModified(PrincipalPeer::LOGO)) $criteria->add(PrincipalPeer::LOGO, $this->logo);\n if ($this->isColumnModified(PrincipalPeer::STATUS)) $criteria->add(PrincipalPeer::STATUS, $this->status);\n if ($this->isColumnModified(PrincipalPeer::IS_PRINCIPAL)) $criteria->add(PrincipalPeer::IS_PRINCIPAL, $this->is_principal);\n if ($this->isColumnModified(PrincipalPeer::CONFIRMATION)) $criteria->add(PrincipalPeer::CONFIRMATION, $this->confirmation);\n if ($this->isColumnModified(PrincipalPeer::SORTABLE_RANK)) $criteria->add(PrincipalPeer::SORTABLE_RANK, $this->sortable_rank);\n if ($this->isColumnModified(PrincipalPeer::CREATED_AT)) $criteria->add(PrincipalPeer::CREATED_AT, $this->created_at);\n if ($this->isColumnModified(PrincipalPeer::UPDATED_AT)) $criteria->add(PrincipalPeer::UPDATED_AT, $this->updated_at);\n\n return $criteria;\n }", "title": "" }, { "docid": "55f9e00292e1169814b27771b05a366a", "score": "0.5206012", "text": "abstract protected function getEntityRepository();", "title": "" }, { "docid": "ccdf148ba9094ba19c4fb32a5c8994aa", "score": "0.5204278", "text": "public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null);", "title": "" }, { "docid": "ccdf148ba9094ba19c4fb32a5c8994aa", "score": "0.5204278", "text": "public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null);", "title": "" }, { "docid": "da2320e30276b4eb252f0bf74898557d", "score": "0.5202806", "text": "public function getPhql()\n {\n if (is_object($this->_dependencyInjector) === false) {\n $this->_dependencyInjector = DI::getDefault();\n }\n\n $dependencyInjector = $this->_dependencyInjector;\n $models = $this->_models;\n $conditions = $this->_conditions;\n $columns = $this->_columns;\n $joins = $this->_joins;\n $group = $this->_group;\n $having = $this->_having;\n $order = $this->_order;\n $limit = $this->_limit;\n\n if (is_array($models) === true && count($models) == 0) {\n throw new Exception('At least one model is required to build the query');\n } elseif (isset($models) === false) {\n throw new Exception('At least one model is required to build the query');\n }\n\n if (is_numeric($conditions) === true) {\n //If the conditions is a single numeric field. We internally create a condition\n //using the related primary key\n if (is_array($models) === true) {\n if (1 < count($models)) {\n throw new Exception('Cannot build the query. Invalid condition');\n }\n $model = $models[0];\n } else {\n $model = $models;\n }\n\n //Get the models metadata service to obtain the column names, column map and\n //primary key\n $noPrimary = true;\n $modelInstance = new $model($dependencyInjector);\n $metaData = $dependencyInjector->getShared('modelsMetadata');\n $primaryKeys = $metaData->getPrimaryKeyAttributes($modelInstance);\n\n if (empty($primaryKeys) == false && isset($primaryKeys[0]) === true) {\n $firstPrimaryKey = $primaryKeys[0];\n\n //The PHQL contains the renamed columns if available\n if (isset($GLOBALS['_PHALCON_ORM_COLUMN_RENAMING']) === true &&\n $GLOBALS['_PHALCON_ORM_COLUMN_RENAMING'] === true) {\n $columnMap = $metaData->getColumnMap($modelInstance);\n } else {\n $columnMap = null;\n }\n\n if (is_array($columnMap) === true) {\n if (isset($columnMap[$firstPrimaryKey]) === true) {\n $attributeField = $columnMap[$firstPrimaryKey];\n } else {\n throw new Exception(\"Column '\".$firstPrimaryKey.'\" isn\\'t part of the column map');\n }\n } else {\n $attributeField = $firstPrimaryKey;\n }\n\n $conditions = '['.$model.'].['.$attributeField.'] = '.$conditions;\n $noPrimary = false;\n }\n\n //A primary key is mandatory in these cases\n if ($noPrimary === true) {\n throw new Exception('Source related to this model does not have a primary key defined');\n }\n }\n\n $phql = 'SELECT ';\n if (is_null($columns) === false) {\n //Generate PHQL for columns\n if (is_array($columns) === true) {\n $selectedColumns = array();\n foreach ($columns as $columnAlias => $column) {\n if (is_int($columnAlias) === true) {\n $selectedColumns[] = $column;\n } else {\n $selectedColumns[] = $column.' AS '.$columnAlias;\n }\n }\n\n $phql .= implode(', ', $selectedColumns);\n } else {\n $phql .= $columns;\n }\n } else {\n //Automatically generate an array of models\n if (is_array($models) === true) {\n $selectedColumns = array();\n foreach ($models as $modelColumnAlias => $model) {\n if (is_int($modelColumnAlias) === true) {\n $selectedColumns[] = '['.$model.'].*';\n } else {\n $selectedColumns[] = '['.$modelColumnAlias.'].*';\n }\n }\n\n $phql .= implode(', ', $selectedColumns);\n } else {\n $phql .= '['.$models.'].*';\n }\n }\n\n //Join multiple models or use a single one if it is a string\n if (is_array($models) === true) {\n $selectedModels = array();\n foreach ($models as $modelAlias => $model) {\n if (is_string($modelAlias) === true) {\n $selectedModels[] = '['.$model.'] AS ['.$modelAlias.']';\n } else {\n $selectedModels[] = '['.$model.']';\n }\n }\n\n $phql .= ' FROM '.implode(', ', $selectedModels);\n } else {\n $phql .= ' FROM ['.$models.']';\n }\n\n //Check if joins were passed to the builders\n if (is_array($joins) === true) {\n foreach ($joins as $join) {\n //Joined table\n $joinModel = $join[0];\n\n //Join conditions\n $joinConditions = $join[1];\n\n //Join alias\n $joinAlias = $join[2];\n\n //Join Type\n $joinType = $join[3];\n\n //Create the join according to the type\n if (isset($joinType)) {\n $phql .= ' '.$joinType.' JOIN ['.$joinModel.']';\n } else {\n $phql .= ' JOIN ['.$joinModel.']';\n }\n\n //Alias comes first\n if (isset($joinAlias) === true) {\n $phql .= ' AS ['.$joinAlias.']';\n }\n\n //Conditions then\n if (isset($joinConditions) === true) {\n $phql .= ' ON '.$joinConditions;\n }\n }\n }\n\n //Only append conditions if it's a string\n if (is_string($conditions) === true &&\n empty($conditions) === false) {\n $phql .= ' WHERE '.$conditions;\n }\n\n //Process group parameters\n if (is_null($group) === false) {\n if (is_array($group) === true) {\n $groupItems = array();\n foreach ($group as $groupItem) {\n if (is_numeric($groupItem) === true) {\n $groupItems[] = $groupItem;\n } else {\n if (strpos($groupItem, '.') !== false) {\n $groupItems[] = $groupItem;\n } else {\n $groupItems[] = '['.$groupItem.']';\n }\n }\n }\n\n $phql .= ' GROUP BY '.implode(', ', $groupItems);\n } else {\n if (is_null($group) === true) {\n $phql .= ' GROUP BY '.$group;\n } else {\n if (strpos($group, '.') !== false) {\n $phql .= ' GROUP BY '.$group;\n } else {\n $phql .= ' GROUP BY ['.$group.']';\n }\n }\n }\n\n //Process having parameters\n if (is_null($having) === false && empty($having) === false) {\n $phql .= ' HAVING '.$having;\n }\n }\n\n //Process order clause\n if (is_null($order) === false) {\n if (is_array($order) === true) {\n $orderItems = array();\n foreach ($order as $orderItem) {\n if (is_null($orderItem) === true) {\n $orderItems[] = $orderItem;\n } else {\n if (strpos($orderItem, '.') !== false) {\n $orderItems[] = $orderItem;\n } else {\n $orderItems[] = '['.$orderItem.']';\n }\n }\n }\n\n $phql .= ' ORDER BY '.implode(', ', $orderItems);\n } else {\n $phql .= ' ORDER BY '.$order;\n }\n }\n\n //Process limit parameters\n if (is_null($limit) === false) {\n if (is_array($limit) === true) {\n $number = $limit['number'];\n if (isset($limit['offset']) === true) {\n $offset = $limit['offset'];\n if (is_null($offset) === true) {\n $phql .= ' LIMIT '.$number.' OFFSET '.$offset;\n } else {\n $phql .= ' LIMIT '.$number.' OFFSET 0';\n }\n } else {\n $phql .= ' LIMIT '.$number;\n }\n } else {\n if (is_null($limit) === true) {\n $phql .= 'LIMIT '.$limit;\n\n $offset = $this->_offset;\n if (is_null($offset) === false) {\n if (is_null($offset) === true) {\n $phql .= ' OFFSET '.$offset;\n } else {\n $phql .= ' OFFSET 0';\n }\n }\n }\n }\n }\n\n return $phql;\n }", "title": "" }, { "docid": "c6f8f639115b4b6994a0d4f1dc9344e0", "score": "0.5202143", "text": "function getFilterCriteria() {\n\t\t\t\n\t\t\t$sql = \"SELECT * FROM \". $this->tablePrefix . \"document\";\n\t\t\t$where = '';\n\n/*\t\t\t\n\t\t\tif (!empty($this->description)) {\n\t\t\t\t$criteria->add(DocumentPeer::DESCRIPTION,\"%\" . $this->description . \"%\",Criteria::LIKE);\n\t\t\t}\n\t\t\t\n\t\t\tif (!empty($this->startDate) && !empty($this->endDate)) {\n\t\t\t\t$criterion = $criteria->getNewCriterion(DocumentPeer::DOCUMENT_DATE, $this->startDate, Criteria::GREATER_EQUAL);\n\t\t\t\t$criterion->addAnd($criteria->getNewCriterion(DocumentPeer::DOCUMENT_DATE, $this->endDate, Criteria::LESS_EQUAL));\n\t\t\t\t\n\t\t\t\t$criteria->add($criterion);\n\t\t\t}\n\t\t\telse {\n\t\t\t\n\t\t\t\tif (!empty($this->startDate))\n\t\t\t\t\t$criteria->add(DocumentPeer::DOCUMENT_DATE,$this->startDate,Criteria::GREATER_EQUAL);\n\t\t\t\t\n\t\t\t\tif (!empty($this->endDate))\n\t\t\t\t\t$criteria->add(DocumentPeer::DOCUMENT_DATE,$this->endDate,Criteria::LESS_EQUAL);\n\n\t\t\t}\n*/\t\t\t\n\t\t\tif (!empty($this->categoryId)) {\n\t\t\t\t\n\t\t\t\tif ($where == '')\n\t\t\t\t\t$where = ' WHERE ';\n\t\t\t\telse\n\t\t\t\t\t$where .= ' AND ';\n\t\t\t\t\t\t\t\t\n\t\t\t\t$where .= \"categoryId = '$this->categoryId'\";\n\t\t\t\t\n\t\t\t}\n/*\t\t\t\n\t\t\tif (!empty($this->module)) {\n\t\t\t\t$module = $this->module;\n\t\t\t\techo $module;\n\t\t\t\t$criteria->addJoin(DocumentPeer::CATEGORYID,CategoryPeer::ID,Criteria::LEFT_JOIN);\n\t\t\t\t$criteria->add(CategoryPeer::MODULE,$module->getName());\n\t\t\t}\n\t\t\t\n\t\t\tif (!empty($this->title)) {\n\t\t\t\t$criteria->add(DocumentPeer::TITLE,\"%\" . $this->title . \"%\",Criteria::LIKE);\n\t\t\t}\n\t\t\t\n\t\t\tif (!empty($this->filename)) {\n\t\t\t\t$criteria->add(DocumentPeer::REALFILENAME,\"%\" . $this->filename . \"%\",Criteria::LIKE);\n\t\t\t}\t\t\t\n*/\n\t\t\tif ($where != '');\n\t\t\t\t$sql .= $where;\n\t\t\treturn $sql;\n\n\t\t}", "title": "" }, { "docid": "e5ac8525a13be18fbc3c5ab3d00dec9f", "score": "0.5201203", "text": "abstract protected function baseQuery();", "title": "" }, { "docid": "6dfaf71065601f46df235ff8ddcd8b3c", "score": "0.51982784", "text": "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\t$criteria->compare('sep_id',$this->sep_id);\n\t\t$criteria->compare('LOWER(tglsep)',strtolower($this->tglsep),true);\n\t\t$criteria->compare('LOWER(nosep)',strtolower($this->nosep),true);\n\t\t$criteria->compare('LOWER(nokartuasuransi)',strtolower($this->nokartuasuransi),true);\n\t\t$criteria->compare('LOWER(tglrujukan)',strtolower($this->tglrujukan),true);\n\t\t$criteria->compare('LOWER(norujukan)',strtolower($this->norujukan),true);\n\t\t$criteria->compare('LOWER(ppkrujukan)',strtolower($this->ppkrujukan),true);\n\t\t$criteria->compare('LOWER(ppkpelayanan)',strtolower($this->ppkpelayanan),true);\n\t\t$criteria->compare('jnspelayanan',$this->jnspelayanan);\n\t\t$criteria->compare('LOWER(catatansep)',strtolower($this->catatansep),true);\n\t\t$criteria->compare('LOWER(diagnosaawal)',strtolower($this->diagnosaawal),true);\n\t\t$criteria->compare('LOWER(politujuan)',strtolower($this->politujuan),true);\n\t\t$criteria->compare('klsrawat',$this->klsrawat);\n\t\t$criteria->compare('LOWER(tglpulang)',strtolower($this->tglpulang),true);\n\t\t$criteria->compare('LOWER(create_time)',strtolower($this->create_time),true);\n\t\t$criteria->compare('LOWER(update_time)',strtolower($this->update_time),true);\n\t\t$criteria->compare('create_loginpemakai_id',$this->create_loginpemakai_id);\n\t\t$criteria->compare('upate_loginpemakai_id',$this->upate_loginpemakai_id);\n\t\t$criteria->compare('create_ruangan',$this->create_ruangan);\n\n\t\treturn $criteria;\n\t}", "title": "" }, { "docid": "2d912e83c86a2eaff2c9a77167d7fea2", "score": "0.5193083", "text": "abstract protected function getCriteriaMap();", "title": "" }, { "docid": "afe4c6f0b8cdf1dfc2037b414e0c7a4f", "score": "0.5192967", "text": "public function invoiceprsearch()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('sp_id',$this->sp_id);\n\t\t// ---------------------more then two searching wd merging--------------------------------------------\n\n\t\t$criteria2 = new CDbCriteria;\n\t\t\n\t\t$criteria2->with = array( 'p' );\n\t\t$criteria2->compare( 'p.p_name', $this->p_id, true, 'OR' );\n\t\t\n\t\t$criteria3 = new CDbCriteria;\n\t\t\n\t\t$criteria3->with = array( 'login' );\n\t\t$criteria3->compare( 'login.u_fname', $this->login_id, true, 'OR' );\n\t\t\n\t\t$criteria4 = new CDbCriteria;\n\t\t\n\t\t$criteria4->with = array( 'cu' );\n\t\t$criteria4->compare( 'cu.cu_name', $this->cu_id, true, 'OR' );\n\t\t\n\t\t$criteria5 = new CDbCriteria;\n\t\t\n\t\t$criteria5->with = array( 'st' );\n\t\t$criteria5->compare( 'st.st_name', $this->st_id, true, 'OR' );\n\t\t\n\t\t$criteria6 = new CDbCriteria;\n\t\t\n\t\t$criteria6->with = array( 'purt' );\n\t\t$criteria6->compare( 'purt.purt_name', $this->purt_id, true, 'OR' );\n\t\t\n\t\t$criteria5->mergeWith($criteria6);\n\t\t$criteria4->mergeWith($criteria5);\n\t\t$criteria3->mergeWith($criteria4);\n\t\t$criteria2->mergeWith($criteria3);\n\t\t$criteria->mergeWith($criteria2);\n\t\t\n\t\t//$criteria->compare('p_id',$this->p_id);\n\t\t//$criteria->compare('login_id',$this->login_id);\n\t\t//$criteria->compare('cu_id',$this->cu_id);\n\t\t//$criteria->compare('st_id',$this->st_id);\n\t\t//$criteria->compare('purt_id',$this->purt_id);\n\t\t$criteria->compare('sp_date',$this->sp_date,true);\n\t\t\n\t\t//$criteria = new CDbCriteria;\n\t\t\n\t\t$criteria->compare('sp_unit',$this->sp_unit);\n\t\t$criteria->condition='sp_unit>0';\n\t\t\n\t\t\n\t\t\n\t\t$criteria->compare('sp_quantity',$this->sp_quantity);\n\t\t$criteria->compare('sp_discount',$this->sp_discount);\n\n\t\t//return new CActiveDataProvider($this, array(\n\t\t\t//'criteria'=>$criteria,)\n\t\t//for reverse sort\n\t\t return new CActiveDataProvider(get_class($this), array(\n 'criteria' => $criteria,\n 'sort' => array(\n 'defaultOrder' => 'sp_id DESC', // this is it.\n ),\n 'pagination' => array(\n 'pageSize' => 30,\n )\n\n\n\t\t));\n\t}", "title": "" }, { "docid": "deb79ab27d6617f9fbd2edc9fbeb5ba3", "score": "0.5190581", "text": "public function criteriaSearch()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n $criteria->addBetweenCondition('date(tglpenjualan)',$this->tgl_awal,$this->tgl_akhir);\n\n if(is_array($this->jenispenjualan)){\n $jenispenjualans[] = null;\n foreach ($this->jenispenjualan AS $i=>$jenis){\n $jenispenjualans[$i] = strtolower($jenis);\n }\n $criteria->addInCondition('LOWER(jenispenjualan)',$jenispenjualans);\n }\n if(is_array($this->jenisobatalkes_id)){\n $criteria->addInCondition('jenisobatalkes_id',$this->jenisobatalkes_id);\n }\n\t\treturn $criteria;\n\t}", "title": "" }, { "docid": "b7bac13f6fba99c7217762527d869752", "score": "0.51854694", "text": "abstract public function query($query);", "title": "" }, { "docid": "b7bac13f6fba99c7217762527d869752", "score": "0.51854694", "text": "abstract public function query($query);", "title": "" }, { "docid": "8abcb4187c649032484e75029bcb2d08", "score": "0.51837116", "text": "public function createQuery()\n {\n }", "title": "" } ]
0303df9a75d2416c21ebceb679055e54
/ Protected Resolve internally linked modules. Example of `styl` build referencing `css` build. css: produce: css require: [ ... ] process: [ ... ] build: [ ... ] styl: produce: ... require: [ ... ] process: [ ... ] build: &css.build
[ { "docid": "1ec4c829c718d80cc4972b354a130ddc", "score": "0.5157298", "text": "protected static function resolve_links(array $modules)\n {\n foreach ($modules as $pid => &$module)\n {\n foreach (['require', 'process', 'build'] as $item)\n {\n if (!isset($module[$item]))\n {\n $module[$item] = '';\n continue;\n }\n\n while (is_string($module[$item]) && substr($module[$item], 0, 1) === '$')\n {\n list($id, $key) = explode('.', substr($module[$item], 1));\n\n if (!isset($modules[$id]) || !isset($modules[$id][$key]))\n throw new exception\\assets(\n \"Invalid reference `{$id}.{$key}`, not found. \".\n \"For: `{$pid}.{$item}`\", 10\n );\n\n $module[$item] = $modules[$id][$key];\n }\n }\n }\n\n return $modules;\n }", "title": "" } ]
[ { "docid": "95d177ec8188e0121fdb9cef8f529359", "score": "0.53501296", "text": "function build() {}", "title": "" }, { "docid": "d99100973f56f057fc2c357a4fc5f221", "score": "0.5230292", "text": "public function buildModuleDependencies(array $modules);", "title": "" }, { "docid": "423e8029928fe5fccd2c71438fd3ed15", "score": "0.5212615", "text": "function optimizescripts_compile($oldHandles){\r\n\tglobal $wp_scripts, $optimizescripts_pending_rebuild;\r\n\t$settings = get_option('optimizescripts_settings');\r\n\tstatic $count = 0;\r\n\ttry {\r\n\t\t$dirname = basename(trim($settings['dirname'], '/'));\r\n\t\t$baseDir = trailingslashit(WP_CONTENT_DIR) . $dirname;\r\n\t\t$baseUrl = trailingslashit(WP_CONTENT_URL) . $dirname;\r\n\t\t\r\n\t\t//List of domains whose scripts will be attempted to be concatenated. Passed\r\n\t\t// into 'optimizescripts_concatenable' filter as follows:\r\n\t\t// in_array($scripthost, $concatenable_domains)\r\n\t\t// The default domains are this server to improve performance? @todo\r\n\t\t$concatenable_domains = apply_filters('optimizescripts_concatenable_domains', array(\r\n\t\t\t$_SERVER['HTTP_HOST'],\r\n\t\t\tparse_url(get_option('siteurl'), PHP_URL_HOST)\r\n\t\t));\r\n\t\t\r\n\t\t//Iterate over all of the registered handles, collecting the URLs of each,\r\n\t\t// and then invoke Google's Closure Compiler\r\n\t\t//$pendingHandles = array();\r\n\t\t//$pendingSrcs = array();\r\n\t\t$pendingScripts = array(); //key=handle, value=src\r\n\t\t\r\n\t\t$pendingDependencies = array();\r\n\t\t$pendingMaxLastModified = 0;\r\n\t\t$pendingMustRebuild = false;\r\n\t\t\r\n\t\t$oldHandles = array_values($oldHandles);\r\n\t\t$handleCount = count($oldHandles);\r\n\t\t$newHandles = array();\r\n\t\tfor($i = 0; $i < $handleCount; $i++){\r\n\t\t\t$handle = $oldHandles[$i];\r\n\t\t\t$isFirst = ($i == 0);\r\n\t\t\t$isLast = ($i == $handleCount-1);\r\n\t\t\t//@todo $this->registered[$handle]->extra['l10n']\r\n\t\t\t$isLastOfGroup = ($isLast || $wp_scripts->registered[$handle]->extra != $wp_scripts->registered[$oldHandles[$i+1]]->extra);\r\n\t\t\t\r\n\t\t\t$src = apply_filters('script_loader_src', $wp_scripts->registered[$handle]->src, $handle); //@todo Or just optimizescripts_set_src_query_params ?\r\n\t\t\t$parsedSrc = optimizescripts_parse_url($src);\r\n\t\t\t\r\n\t\t\t$isCacheEmpty = empty($settings['cache'][$handle]);\r\n\t\t\t$isConcatenable = (\r\n\t\t\t\t//We must not allow scripts without far-future expires to be concatenated\r\n\t\t\t\t// because then they will need to be fetched each time the page is\r\n\t\t\t\t// loaded. (An expires of zero means it had no expires provided.)\r\n\t\t\t\t($isCacheEmpty || !empty($settings['cache'][$handle]['expires']))\r\n\t\t\t\t&&\r\n\t\t\t\t//Furthermore, only allow scripts that are on the approved\r\n\t\t\t\t// list of domains to be concatenable, or if a filter explicitly\r\n\t\t\t\t// permits it.\r\n\t\t\t\t(apply_filters('optimizescripts_concatenable',\r\n\t\t\t\t\tin_array($parsedSrc['host'], $concatenable_domains),\r\n\t\t\t\t\t$src,\r\n\t\t\t\t\t$parsedSrc))\r\n\t\t\t\t&&\r\n\t\t\t\t//Make sure we don't accidentally do anything recursively here\r\n\t\t\t\t(strpos($handle, OPTIMIZESCRIPTS_TEXT_DOMAIN) !== 0)\r\n\t\t\t\t&&\r\n\t\t\t\t//Make sure the cache will allow concatenation\r\n\t\t\t\t($isCacheEmpty || empty($settings['cache'][$handle]['disabled']))\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\t//Add the script's src to the list of srcs pending for concatenation/compilation\r\n\t\t\tif($isConcatenable){\r\n\t\t\t\t//If the URL associated with this handle has changed, we must do a rebuild\r\n\t\t\t\t// if if it hasn't been cached yet\r\n\t\t\t\tif(empty($settings['cache'][$handle]) || $settings['cache'][$handle]['src'] != $src){\r\n\t\t\t\t\toptimizescripts_debug_log(\"$handle src changed or new\", $src);\r\n\t\t\t\t\t$pendingMustRebuild = true;\r\n\t\t\t\t}\r\n\t\t\t\t//Get the Last-Modified time to compare with the mtime of\r\n\t\t\t\t// the already-concatenated script: only do this if cached\r\n\t\t\t\t// script is not stale (expired). Otherwise, rebuild must happen.\r\n\t\t\t\telse if($settings['cache'][$handle]['expires'] > time())\r\n\t\t\t\t{\r\n\t\t\t\t\t$pendingMaxLastModified = max($pendingMaxLastModified, $settings['cache'][$handle]['mtime']);\r\n\t\t\t\t}\r\n\t\t\t\t//Since script has expired, we must now rebuild the concatenated\r\n\t\t\t\t// script. We'll fetch the script and store it in the cache. If\r\n\t\t\t\t// a resource doesn't have an expires header set and one is not\r\n\t\t\t\t// provided by a filter, then this parent if($isConcatenable)\r\n\t\t\t\t// conditional is never reached (see above where\r\n\t\t\t\t// $isConcatenable is set). The expires is set when the\r\n\t\t\t\t// resource is requested along with the other pending requests.\r\n\t\t\t\telse {\r\n\t\t\t\t\toptimizescripts_debug_log(\"pendingMustRebuild = true\");\r\n\t\t\t\t\t$pendingMustRebuild = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Add this script's information to the list of scripts to concatenate\r\n\t\t\t\t//$pendingHandles[] = $handle;\r\n\t\t\t\t//$pendingSrcs[] = $src;\r\n\t\t\t\t$pendingScripts[$handle] = $src;\r\n\t\t\t\tforeach($wp_scripts->registered[$handle]->deps as $dep){\r\n\t\t\t\t\t$pendingDependencies[] = $dep;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//If this conditional is true, then we either must register the new\r\n\t\t\t// concatenated script. If it doesn't yet exist or if it's stale,\r\n\t\t\t// then we must rebuild it as well.\r\n\t\t\t// NOTE: It would make sense to do the script rebuilding in a cron\r\n\t\t\t// job, but this would break with WP Super Cache for example,\r\n\t\t\t// since the original scripts would be output the first time\r\n\t\t\t// and then subsequent requests would include the newly\r\n\t\t\t// concatenated script.\r\n\t\t\tif((!$isConcatenable || $isLastOfGroup) && !empty($pendingScripts)){\r\n\t\t\t\t\r\n\t\t\t\t//Generate filename for script containing concatenated scripts\r\n\t\t\t\t//Note: We can't just use this basename straight out since it\r\n\t\t\t\t// may be too long. So we need to generate an MD5 hash.\r\n\t\t\t\t$pendingHandles = array_keys($pendingScripts);\r\n\t\t\t\t$pendingSrcs = array_values($pendingScripts);\r\n\t\t\t\t\r\n\t\t\t\t$signature = join(\r\n\t\t\t\t\tapply_filters('optimizescripts_handle_separator', ';'),\r\n\t\t\t\t\t$pendingHandles\r\n\t\t\t\t);\r\n\t\t\t\t$keygen = apply_filters('optimizescripts_hash_function', 'md5', $pendingScripts);\r\n\t\t\t\t$handleshash = $keygen ? $keygen($signature) : $signature;\r\n\t\t\t\t$filename = $handleshash . '.js';\r\n\t\t\t\t//@todo We could use $handleshash as the handle for the script\r\n\t\t\t\t\r\n\t\t\t\t$isDisabled = (isset($settings['optimized'][$handleshash]) &&\r\n\t\t\t\t\t(\r\n\t\t\t\t\t\t!empty($settings['optimized'][$handleshash]['disabled_until']) &&\r\n\t\t\t\t\t\t$settings['optimized'][$handleshash]['disabled_until'] < time()\r\n\t\t\t\t\t) || (\r\n\t\t\t\t\t\t!empty($settings['optimized'][$handleshash]['disabled'])\r\n\t\t\t\t\t)\r\n\t\t\t\t);\r\n\t\t\t\t\r\n\t\t\t\tif(!$isDisabled) {\r\n\t\t\t\t\t//We rebuild the concatenated script if the file doesn't\r\n\t\t\t\t\t// currently exist or if one of the $pendingScripts has a mtime\r\n\t\t\t\t\t// greater than filemtime($filename)\r\n\t\t\t\t\t$pendingMustRebuild = $pendingMustRebuild\r\n\t\t\t\t\t\t|| !file_exists(\"$baseDir/$filename\")\r\n\t\t\t\t\t\t|| $pendingMaxLastModified > filemtime(\"$baseDir/$filename\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t$isRebuildWithCron = $settings['use_cron'] && !(defined('WP_DEBUG') && WP_DEBUG);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Invoke Google's Closure Compiler to concatenate the scripts\r\n\t\t\t\t\t// This is done in an immediate cron job. Until it finishes\r\n\t\t\t\t\t// additional cron jobs will be blocked, and once it finishes\r\n\t\t\t\t\t// then subsequent requests will have $pendingMustRebuild == false\r\n\t\t\t\t\t// and will be able to use the newly written script.\r\n\t\t\t\t\tif($pendingMustRebuild){\r\n\t\t\t\t\t\t//if(isset($settings['optimized'][$handleshash]))\r\n\t\t\t\t\t\t//\t$settings['optimized'][$handleshash]['status'] = 'pending';\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif($isRebuildWithCron){\r\n\t\t\t\t\t\t\t//Add the pending scripts for the shutdown function to\r\n\t\t\t\t\t\t\t// pass to a new scheduled cron job\r\n\t\t\t\t\t\t\t$optimizescripts_pending_rebuild[$handleshash] = $pendingScripts;\r\n\t\t\t\t\t\t\tadd_action('wp_footer', 'optimizescripts_schedule_rebuild_cron'); //@todo Is this best action?\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//Since we have to rebuild and the cron is doing this, now\r\n\t\t\t\t\t\t\t// just push all of the pendingHandles onto newHandles.\r\n\t\t\t\t\t\t\t// Otherwise (the following conditional)\r\n\t\t\t\t\t\t\t$isDisabled = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t//Rebuild everything immediately\r\n\t\t\t\t\t\t\t//Suppress warnings because: plugin.php: if ( is_array($arg) && 1 == count($arg) && is_object($arg[0]) )\r\n\t\t\t\t\t\t\tdo_action_ref_array('optimizescripts_rebuild_scripts', array(\r\n\t\t\t\t\t\t\t\tarray($handleshash => $pendingScripts),\r\n\t\t\t\t\t\t\t\t\"http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]\"\r\n\t\t\t\t\t\t\t));\r\n\t\t\t\t\t\t\t$settings = get_option('optimizescripts_settings');\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//Check to see if the action failed to rebuild and\r\n\t\t\t\t\t\t\t// disabled this concatenated script\r\n\t\t\t\t\t\t\t$settings = get_option('optimizescripts_settings');\r\n\t\t\t\t\t\t\t$isDisabled = (isset($settings['optimized'][$handleshash]) &&\r\n\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t!empty($settings['optimized'][$handleshash]['disabled_until']) &&\r\n\t\t\t\t\t\t\t\t\t$settings['optimized'][$handleshash]['disabled_until'] < time()\r\n\t\t\t\t\t\t\t\t) || (\r\n\t\t\t\t\t\t\t\t\t!empty($settings['optimized'][$handleshash]['disabled'])\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Either no rebuild was necessary or they were rebuilt immediately\r\n\t\t\t\t\t// so we can enqueue the new script\r\n\t\t\t\t\tif(!$isDisabled && (!$pendingMustRebuild || !$isRebuildWithCron)){\r\n\t\t\t\t\t\t$count++;\r\n\t\t\t\t\t\t$newHandle = \"optimizescripts$count\";\r\n\t\t\t\t\t\t$group = isset($wp_scripts->registered[$handle]->extra['group']) ?\r\n\t\t\t\t\t\t\t$wp_scripts->registered[$handle]->extra['group'] : false;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//if(!$pendingMustRebuild)\r\n\t\t\t\t\t\t//\toptimizescripts_debug_log(\"No rebuild needed!\");\r\n\t\t\t\t\t\twp_register_script(\r\n\t\t\t\t\t\t\t$newHandle,\r\n\t\t\t\t\t\t\t\"$baseUrl/$filename\",\r\n\t\t\t\t\t\t\t$pendingDependencies,\r\n\t\t\t\t\t\t\tfilemtime(\"$baseDir/$filename\"), //@todo This should simply be the max time we've already determined? \r\n\t\t\t\t\t\t\t$group //aka in_footer\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Set the group (for some reason this isn't being done by the 5th param to wp_register_script())\r\n\t\t\t\t\t\t$wp_scripts->set_group(\r\n\t\t\t\t\t\t\t$newHandle,\r\n\t\t\t\t\t\t\tfalse, //recursive\r\n\t\t\t\t\t\t\tisset($wp_scripts->registered[$handle]->extra['group']) ?\r\n\t\t\t\t\t\t\t\t$wp_scripts->registered[$handle]->extra['group'] :\r\n\t\t\t\t\t\t\t\tfalse\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\t$newHandles[] = $newHandle; //in Cron, this would be disabled\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//The list of scripts concatenated are located in a comment in the concatenated script\r\n\t\t\t\t\t\t//print \"<!--\\n$baseUrl/$filename\\n = \" . join(\"\\n + \", $pendingSrcs) . \"\\n-->\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//If this concatenated script has been disabled, then don't do\r\n\t\t\t\t// any concatenation: push on the pending handles as if nothing\r\n\t\t\t\t// has happened.\r\n\t\t\t\tif($isDisabled){\r\n\t\t\t\t\tforeach($pendingHandles as $pendingHandle)\r\n\t\t\t\t\t\t$newHandles[] = $pendingHandle;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Reset\r\n\t\t\t\t//$pendingHandles = array();\r\n\t\t\t\t//$pendingSrcs = array();\r\n\t\t\t\t$pendingScripts = array();\r\n\t\t\t\t$pendingDependencies = array();\r\n\t\t\t\t$pendingMaxLastModified = 0;\r\n\t\t\t\t$pendingMustRebuild = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//As the reverse of if(!$isConcatenable), simply pass through the handle\r\n\t\t\t// after any pendingSrcs have potentially been concatenated/compiled\r\n\t\t\tif(!$isConcatenable) //|| $pendingMustRebuild\r\n\t\t\t\t$newHandles[] = $handle;\r\n\t\t}\r\n\t\t\r\n\t\t//file_put_contents(ABSPATH . '/~optimizescripts.txt', print_r($settings, true)); //@todo\r\n\t\treturn $newHandles;\r\n\t}\r\n\tcatch(Exception $err){\r\n\t\t//@todo Is it bad to print from this action?\r\n\t\t#print \"\\n<!--\\n\";\r\n\t\t#print preg_replace('/--+/', '-', $err->getMessage());\r\n\t\t#print \"-->\\n\";\r\n\t\t$settings['disabled'] = true;\r\n\t\t$settings['disabled_reason'] = $err->getMessage();\r\n\t\tupdate_option('optimizescripts_settings', $settings);\r\n\t}\r\n\treturn $oldHandles;\r\n}", "title": "" }, { "docid": "71d04152175fe86f068288a3f02b8345", "score": "0.50791293", "text": "function __compile($context, $source, $name) {\n $sourceStr = __toString($source);\n \n /* Compiler initialisieren */\n static $compiler;\n if ($compiler == null) {\n include_once(\"compiler.php\");\n $compiler = new Compiler();\n }\n \n /* Modul Kompilieren */\n $code = $compiler->compile($sourceStr);\n\n if (isset($code['Module'])) {\n\n /* Libarymodule bearbeiten */\n \t$dir = BIN_DIR . preg_replace(\"/\\W/\", \"_\", $code['Module']);\n \t$name = $dir . \".php\";\n if (is_dir($dir)) {\n foreach (__ls_r($dir . \"/\") as $file) {\n \tif (is_dir($file)) {\n \t\trmdir($file);\n \t} else {\n \t unlink($file);\n \t}\n }\n }\n \n /* Ordner neu anlegen */\n mkdir($dir);\n chmod($dir, 0777);\n\n /* Funktionen niederschreiben */ \n foreach ($code['Functions'] as $fnName => $body) {\n $fp = fopen($dir . \"/\" . $fnName . \".php\", 'w');\n fwrite($fp, $body);\n fclose($fp);\n chmod($dir . \"/\" . $fnName . \".php\", 0777);\n }\n\n /* Name von Mainmodulen anpassen */\n } else {\n $name = BIN_DIR . preg_replace(\"/\\W/\", \"_\", substr($name, strrpos($name, \"/\") + 1)) . \".php\";\n }\n\n /* Hauptteil niederschreiben */\n if (($fp = @fopen($name, 'w')) == false) {\n PEAR::raiseError(\"Die Datei '\" . $name . \"' kann nicht geöffnet werden!\");\n }\n fwrite($fp, $code['Main']);\n fclose($fp);\n chmod($name, 0777);\n \n /* Leere Sequenz zurückgeben */\n return array();\n}", "title": "" }, { "docid": "07c9daaea0290c5abf535c45a5aabb17", "score": "0.5054401", "text": "function dispatch($source, $debug = false) {\n\n $start = microtime(true);\n $result = \"\";\n $buffer = null;\n\n ob_start();\n\n switch (gettype($source)) {\n\n case \"object\":\n\n /*\n If we have an object and it's a \"Closure\" call it.\n */\n\n if (get_class($source) === \"Closure\") {\n $result = $source();\n }\n\n break;\n\n case \"string\":\n\n /*\n If we got a string use call_user_func() on it.\n */\n\n if (function_exists($source)) {\n\n $result = call_user_func($source);\n\n } else {\n\n $result = $source;\n\n /*\n Clear the start time too as we don't need it.\n */\n\n $start = 0;\n }\n\n break;\n\n case \"array\":\n\n /*\n If we got an array then use \"php-require\".\n */\n\n global $require; // NOTE: this is the top level $require() var.\n\n if (isset($source[0]) && gettype($source[0]) === \"array\") {\n\n /*\n If we got an array of array's try again.\n */\n\n foreach ($source as $module) {\n $result .= dispatch($module, $debug);\n }\n\n /*\n Clear the start time too as we don't need it.\n */\n\n $start = 0;\n\n } else {\n\n /*\n Here we assume we got a module/action pair.\n */\n\n if (isset($source[\"module\"]) && isset($source[\"action\"])) {\n\n $action = $source[\"action\"];\n\n try {\n\n $module = $require($source[\"module\"]);\n\n /*\n Check that we can call a function so the page doesn't bomb with error.\n */\n\n if (isset($module[$source[\"action\"]]) && get_class($module[$source[\"action\"]]) == \"Closure\") {\n\n $params = array();\n\n if (isset($source[\"params\"])) {\n $params = $source[\"params\"];\n }\n\n $result = $module[$source[\"action\"]]($params);\n }\n\n } catch (Exception $e) {\n\n $result = \"Error loading module.\";\n\n error_log(\"php-composite: Error loading module : \" . $source[\"module\"]);\n\n }\n }\n }\n\n break;\n\n default:\n\n $result = $source;\n\n /*\n Clear the start time too as we don't need it.\n */\n\n $start = 0;\n }\n\n $buffer = ob_get_contents();\n ob_end_clean();\n $end = microtime(true);\n\n if ($debug && $start) {\n $result .= \"<span class=\\\"module-time\\\">\" . ($end - $start) . \"</span>\";\n }\n\n /*\n If $buffer has a value then we think there was an error so return the error.\n */\n\n if ($buffer) {\n return $buffer;\n }\n\n return $result;\n}", "title": "" }, { "docid": "2c8f4c10940676bf2b9fb0f9bfa70dea", "score": "0.50298303", "text": "function LinkUiAssets(){\n\n #=YARN BUNDLE=>\n # --target=app\n #\n // $PATH = get_template_directory_uri() . \"/dist\";\n // wp_enqueue_script( 'UiBundle', \"$PATH/js/app.bundle.js\", [], false, true );\n // wp_enqueue_script( 'UiVendor', \"$PATH/js/chunk-vendors.js\", [], false, true );\n // $CSS = get_template_directory().\"/dist/css/app.*.css\";\n // $CSS = glob($CSS)[0];\n // $CSS = pathinfo($CSS)['filename'];\n // wp_enqueue_style( 'UiStyles', \"$PATH/css/$CSS.css\" );\n \n #=YARN BUILD=>\n # --target=lib\n # \n $PATH = get_template_directory_uri() . \"/dist/BGLJ\";\n wp_enqueue_style( 'UiStyles', \"$PATH.css\" );\n wp_enqueue_script( 'UiScript', \"$PATH.umd.min.js\", [], false, true );\n \n wp_localize_script('UiScript','WP_API_Settings',[\n 'endpoint' => esc_url_raw(rest_url()),\n 'nonce' => wp_create_nonce('wp_rest')\n ]);\n }", "title": "" }, { "docid": "bb2964a980e4b3645b1384e12cc03d51", "score": "0.5028955", "text": "function build() {\n $checker = new ChangeChecker($this->target);\n $sources = expand_globs($this->globSources);\n $dependencies = $this->meta->getDependencies();\n\n if (!$checker->areChanged($sources) && !$checker->areChanged($dependencies))\n return; // nothing to build\n\n // TODO usecase: scss depends on picture, picture gets removed => error should be triggered\n\n $this->doBuild($sources);\n }", "title": "" }, { "docid": "d96a06960d6c2e96f72b5e68737869b2", "score": "0.50197166", "text": "abstract public function compileFrom();", "title": "" }, { "docid": "6a1c6f4106b45edbe6a61e171c3ba66c", "score": "0.50113046", "text": "private function doBuild($sources) {\n // collect scss string\n // file-aware function (includes, asset urls) must be prepared here\n $scssString = '';\n $importPaths = []; // this is for @import directives\n foreach ($sources as $source) {\n $sourceDir = dirname($source);\n $sourceContents = file_get_contents($source);\n\n // convert asset-urls to relative to current file\n // TODO this is dummy solution\n $sourceContents = strtr($sourceContents, [\"asset-url('\" => \"asset-url('$sourceDir/\"]);\n\n $scssString .= $sourceContents;\n\n // TODO instead of import paths, use similar approach as with\n // assets and use then all imports as dependencies to allow auto\n // recompilation even for imported files\n $importPaths[$sourceDir] = true;\n }\n\n // configure compiler, bind custom functions (macros)\n $dependencies = [];\n $scss = new ScssCompiler;\n $scss->setImportPaths(array_keys($importPaths));\n $scss->registerFunction('asset-url', function($args)use(&$dependencies) { // this is for static assets\n $arg = $args[0][2][0];\n $dependencies[] = $arg;\n return 'url(\\'' . $this->refreshDependency($arg) . '\\')';\n });\n\n // run compiler\n $cssString = $scss->compile($scssString); // TODO compilation density and sourcemaps\n $this->meta->setDependencies($dependencies);\n @unlink($this->target);\n file_put_contents($this->target, $cssString); // TODO Exception\n }", "title": "" }, { "docid": "df94c4c629808654a27f499d00dee2d8", "score": "0.49895868", "text": "public function postProcessing() {\t\r\n\t\t$this->optimizeDependencies(array('reset/reset.css', 'fonts/fonts.css', 'grids/grids.css'), 'reset-fonts-grids/reset-fonts-grids.css');\r\n\t\t$this->optimizeDependencies(array('dom/dom.js', 'event/event.js', 'yahoo/yahoo.js'), 'yahoo-dom-event/yahoo-dom-event.js');\r\n\t\t$this->optimizeDependencies(array('dom/dom.js', 'event/event.js', 'yuiloader/yuiloader.js'), 'yuiloader-dom-event/yuiloader-dom-event.js');\t\t\r\n\t\t$this->includeDependencies();\r\n\t\t$this->renderJavaSnippets();\r\n\t}", "title": "" }, { "docid": "3382724b333716e814aebe3bf91e8855", "score": "0.49480632", "text": "function exponent_core_resolveDependencies($ext_name,$ext_type,$path=null) {\n\tif ($path == null) {\n\t\t$path = BASE;\n\t}\n\t$depfile = '';\n\tswitch ($ext_type) {\n\t\tcase CORE_EXT_SUBSYSTEM:\n\t\t\t$depfile = $path.'subsystems/'.$ext_name.'.deps.php';\n\t\t\tbreak;\n\t\tcase CORE_EXT_THEME:\n\t\t\t$depfile = $path.'themes/'.$ext_name.'/deps.php';\n\t\t\tbreak;\n\t\tcase CORE_EXT_MODULE:\n\t\t\t$depfile = $path.'modules/'.$ext_name.'/deps.php';\n\t\t\tbreak;\n\t\tcase CORE_EXT_SYSTEM:\n\t\t\t$depfile = $path.'deps.php';\n\t\t\tbreak;\n\t}\n\t\n\t$deps = array();\n\tif (is_readable($depfile)) {\n\t\t$deps = include($depfile);\n\t\tforeach ($deps as $info) {\n\t\t\t$deps = array_merge($deps,exponent_core_resolveDependencies($info['name'],$info['type']));\n\t\t}\n\t}\n\t\n\treturn $deps;\n}", "title": "" }, { "docid": "5c76f70a1e4b15eaa3662349fbb86a8f", "score": "0.4921615", "text": "function _css_compile($active_theme,$theme,$c,$fullpath,$minify=true)\n{\n\tglobal $KEEP_MARKERS,$SHOW_EDIT_LINKS;\n\t$keep_markers=$KEEP_MARKERS;\n\t$show_edit_links=$SHOW_EDIT_LINKS;\n\t$KEEP_MARKERS=false;\n\t$SHOW_EDIT_LINKS=false;\n\tif (($theme!='default') && (!is_file($fullpath))) $theme='default';\n\tif ($GLOBALS['RECORD_TEMPLATES_USED'])\n\t{\n\t\tglobal $RECORDED_TEMPLATES_USED;\n\t\t$RECORDED_TEMPLATES_USED[]=$c.'.css';\n\t}\n\trequire_code('tempcode_compiler');\n\tglobal $ATTACHED_MESSAGES_RAW;\n\t$num_msgs_before=count($ATTACHED_MESSAGES_RAW);\n\t$css=_do_template($theme,(strpos($fullpath,'/css_custom/')!==false)?'/css_custom/':'/css/',$c,$c,user_lang(),'.css',$active_theme);\n\t$out=$css->evaluate();\n\t$num_msgs_after=count($ATTACHED_MESSAGES_RAW);\n\tglobal $CSS_COMPILE_ACTIVE_THEME;\n\t$CSS_COMPILE_ACTIVE_THEME=$active_theme;\n\t$out=preg_replace_callback('#\\@ocp\\_include\\(\\'?(\\w+)/(\\w+)/(\\w+)\\'?\\);#','_css_ocp_include',$out);\n\t$out=preg_replace('#/\\*\\s*\\*/#','',$out); // strip empty comments (would have encapsulated Tempcode comments)\n\tif (get_custom_file_base()!=get_file_base())\n\t{\n\t\t$out=preg_replace('#'.preg_quote(str_replace('#','\\#',get_base_url(true).'/themes/')).'#','../../../../../../themes/',$out); // make URLs relative. For SSL and myocp\n\t\t$out=preg_replace('#'.preg_quote(str_replace('#','\\#',get_base_url(false).'/themes/')).'#','../../../../../../themes/',$out); // make URLs relative. For SSL and myocp\n\t\t$out=preg_replace('#'.preg_quote(str_replace('#','\\#',get_custom_base_url(true).'/themes/')).'#','../../../../themes/',$out); // make URLs relative. For SSL and myocp\n\t\t$out=preg_replace('#'.preg_quote(str_replace('#','\\#',get_custom_base_url(false).'/themes/')).'#','../../../../themes/',$out); // make URLs relative. For SSL and myocp\n\t} else\n\t{\n\t\t$out=preg_replace('#'.preg_quote(str_replace('#','\\#',get_base_url(true))).'#','../../../..',$out); // make URLs relative. For SSL and myocp\n\t\t$out=preg_replace('#'.preg_quote(str_replace('#','\\#',get_base_url(false))).'#','../../../..',$out); // make URLs relative. For SSL and myocp\n\t}\n\t$cdn=get_value('cdn');\n\tif (!is_null($cdn))\n\t{\n\t\t$cdn_parts=explode(',',$cdn);\n\t\tforeach ($cdn_parts as $cdn_part)\n\t\t{\n\t\t\t$out=preg_replace('#'.preg_quote(str_replace('#','\\#',preg_replace('#://'.str_replace('#','\\#',preg_quote(get_domain())).'([/:])#','://'.$cdn_part.'${1}',get_base_url(true)))).'#','../../../..',$out); // make URLs relative. For SSL and myocp\n\t\t\t$out=preg_replace('#'.preg_quote(str_replace('#','\\#',preg_replace('#://'.str_replace('#','\\#',preg_quote(get_domain())).'([/:])#','://'.$cdn_part.'${1}',get_base_url(false)))).'#','../../../..',$out); // make URLs relative. For SSL and myocp\n\t\t}\n\t}\n\tif ($minify)\n\t\t$out=css_minify($out);\n\t$KEEP_MARKERS=$keep_markers;\n\t$SHOW_EDIT_LINKS=$show_edit_links;\n\tif ($c!='no_cache')\n\t{\n\t\tif ($out!='')\n\t\t{\n\t\t\t$out='/* DO NOT EDIT. THIS IS A CACHE FILE AND WILL GET OVERWRITTEN RANDOMLY.'.chr(10).'INSTEAD EDIT THE CSS FROM WITHIN THE ADMIN ZONE, OR BY MANUALLY EDITING A CSS_CUSTOM OVERRIDE. */'.chr(10).chr(10).$out;\n\t\t}\n\t}\n\tif ($num_msgs_after>$num_msgs_before) // Was an error (e.g. missing theme image), so don't cache so that the error will be visible on refresh and hence debugged\n\t{\n\t\treturn array(false,$out);\n\t}\n\treturn array(true,$out);\n}", "title": "" }, { "docid": "eeee73207505537973341af748b097c1", "score": "0.48978254", "text": "function compile(){}", "title": "" }, { "docid": "83d5f643985d6382decd03a1a3f5671f", "score": "0.48796228", "text": "function outputCSSIncludes() // includes on CSS links.\n {\n \n \n $mods = $this->modulesList();\n $is_bootstrap = in_array('BAdmin', $mods);\n\n $this->callModules('applyCSSIncludes', $this);\n foreach($this->css_includes as $module => $ar) {\n \n if ($ar) {\n $this->assetArrayToHtml( $ar , 'css');\n }\n }\n \n // old style... - probably remove this...\n $this->callModules('outputCSSIncludes', $this);\n \n foreach($mods as $mod) {\n // add the css file..\n if ($is_bootstrap && !file_exists($this->rootDir.\"/Pman/$mod/is_bootstrap\")) {\n echo '<!-- missing '. $this->rootDir.\"/Pman/$mod/is_bootstrap - skipping -->\";\n continue;\n }\n $this->outputCSSDir(\"Pman/$mod\",\"*.css\");\n \n $this->outputSCSS($mod);\n \n \n }\n return ''; // needs to return something as we output it..\n \n }", "title": "" }, { "docid": "b7caacbed0534fc081444cce31db2bae", "score": "0.48600957", "text": "public static function formatting_process()\n\t{\t\n\t\t# The absolute url to the directory of the current CSS file\n\t\t$dirPath = SCAFFOLD_DOCROOT . Scaffold::url_path(Scaffold::$css->path);\n $dir = rtrim(SCAFFOLD_URLPATH, '\\\\/') .'/'. str_replace(rtrim(SCAFFOLD_DOCROOT, '\\\\/').DIRECTORY_SEPARATOR, '', Scaffold::$css->path);\n //$dir = str_replace('\\\\', '/', SCAFFOLD_URLPATH . str_replace(SCAFFOLD_DOCROOT, '', Scaffold::$css->path));\n \n\t\t# @imports - Thanks to the guys from Minify for the regex :)\n\t\tif(\n\t\t\tpreg_match_all(\n\t\t\t '/\n\t\t\t @import\\\\s+\n\t\t\t (?:url\\\\(\\\\s*)? # maybe url(\n\t\t\t [\\'\"]? # maybe quote\n\t\t\t (.*?) # 1 = URI\n\t\t\t [\\'\"]? # maybe end quote\n\t\t\t (?:\\\\s*\\\\))? # maybe )\n\t\t\t ([a-zA-Z,\\\\s]*)? # 2 = media list\n\t\t\t ; # end token\n\t\t\t /x'\n\t\t\t ,Scaffold::$css->string # Webligo - PHP5.1 compat\n\t\t\t ,$found\n\t\t\t)\n\t\t)\n\t\t{\n\t\t\tforeach($found[1] as $key => $value)\n\t\t\t{\t\t\t\n\t\t\t\t# Should we skip it\n\t\t\t\tif(self::skip($value))\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\t$media = ($found[2][$key] == \"\") ? '' : ' ' . preg_replace('/\\s+/', '', $found[2][$key]);\n\t\t\t\t\n\t\t\t\t# Absolute path\t\t\t\t\n\t\t\t\t$absolute = self::up_directory($dir, substr_count($url, '..'.DIRECTORY_SEPARATOR, 0)) . str_replace('..'.DIRECTORY_SEPARATOR,'',$url);\n\t\t\t\t$absolute = str_replace('\\\\', '/', $absolute);\n \n\t\t\t\t# Rewrite it\n # Webligo - PHP5.1 compat\n\t\t\t\tScaffold::$css->string = str_replace($found[0][$key], '@import \\''.$absolute.'\\'' . $media . ';', Scaffold::$css->string);\n\t\t\t}\n\t\t}\n\t\t\n\t\t# Convert all url()'s to absolute paths if required\n\t\tif( preg_match_all('/url\\\\(\\\\s*([^\\\\)\\\\s]+)\\\\s*\\\\)/', Scaffold::$css->__toString(), $found) ) # Webligo - PHP5.1 compat\n\t\t{\n\t\t\tforeach($found[1] as $key => $value)\n\t\t\t{\n // START - Webligo Developments\n $original = $found[0][$key];\n\t\t\t\t$url = Scaffold_Utils::unquote($value);\n\t\n\t\t\t\t# Absolute Path\n\t\t\t\tif(self::skip($url))\n\t\t\t\t\tcontinue;\n \n # home path\n if( $url[0] == '~' && $url[1] == '/' ) {\n $absolute = str_replace('\\\\', '/', rtrim(SCAFFOLD_URLPATH, '/\\\\') . '/' . ltrim($url, '~/'));\n $absolutePath = rtrim(SCAFFOLD_DOCROOT, '/\\\\') . DIRECTORY_SEPARATOR . ltrim($url, '~/');\n }\n # relative path\n else {\n $absolute = str_replace('\\\\', '/', self::up_directory($dir, substr_count($url, '..'.DIRECTORY_SEPARATOR, 0)) . str_replace('..'.DIRECTORY_SEPARATOR,'',$url));\n $absolutePath = self::up_directory($dirPath, substr_count($url, '..'.DIRECTORY_SEPARATOR, 0)) . str_replace('..'.DIRECTORY_SEPARATOR,'',$url);\n }\n\n # If the file doesn't exist\n if(!Scaffold::find_file($absolutePath))\n Scaffold::log(\"Missing image - {$absolute} / {$absolutePath}\", 1);\n \n\t\t\t\t# Rewrite it\n\t\t\t\tScaffold::$css->string = str_replace($original, 'url('.$absolute.')', Scaffold::$css->string); # Webligo - PHP5.1 compat\n // END - Webligo Developments\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a42c7c1a66f2a80975030eed52a9b836", "score": "0.48445466", "text": "protected function compile()\n {\n // TODO: cache compiled system based on configuration checking\n $this->getSystem()->compile();\n\n $this->makeBooted();\n }", "title": "" }, { "docid": "f5bf9b98e8049775980170b150e21634", "score": "0.47803956", "text": "public function renderProcess($processClassPath);", "title": "" }, { "docid": "1836363a6885e0d16835948d7f988539", "score": "0.47681877", "text": "protected function generateModule() \n\t{\n\t\t$this->updateModules();\n\t\t$this->generateDirectories();\n\t\t$this->generateFiles();\n\t\t$this->updateWebpackMix();\n\t}", "title": "" }, { "docid": "597e2968e2ca323588ebb75f8044f67c", "score": "0.47562245", "text": "public function build()\n {\n $packages = [];\n\n if ($this->files->exists($path = $this->vendorPath.'/composer/installed.json')) {\n $installed = json_decode($this->files->get($path), true);\n if (isset($installed['packages'])) {\n $packages = $installed['packages'];\n }\n else {\n $packages = $installed;\n }\n }\n\n $ignoreAll = in_array('*', $ignore = $this->packagesToIgnore());\n\n $royalcms_packages = $this->findRoyalcmsPackages($packages);\n $laravel_packages = $this->findLaravelPackages($packages);\n\n $packages = array_merge($royalcms_packages, $laravel_packages);\n\n $this->write(collect($packages)->each(function ($configuration) use (&$ignore) {\n $ignore = array_merge($ignore, $configuration['dont-discover'] ?? []);\n })->reject(function ($configuration, $package) use ($ignore, $ignoreAll) {\n return $ignoreAll || in_array($package, $ignore);\n })->filter()->all());\n }", "title": "" }, { "docid": "1bf775c76a4ed03936c0dd1ff44bff19", "score": "0.47410327", "text": "public function build()\n {\n $coreServices = app()->make(CoreServices::class);\n $packages = $coreServices->listPackages();\n foreach($packages as $module){\n $sidebarExtender = 'Packages\\\\'. $module. '\\\\Sources\\\\Sidebar\\\\SidebarExtender';\n if(class_exists($sidebarExtender)){\n $extender = new $sidebarExtender();\n $this->menu->add($extender->extendWith($this->menu));\n }\n }\n }", "title": "" }, { "docid": "f421aacb3ff1fe100544d5e501b21c37", "score": "0.47371176", "text": "private function ensureDependencies() {\n\t\tif ($this->logger === null) {\n\t\t\t$this->logger = new NullLogger;\n\t\t}\n\n\t\tif ($this->dispatcherCompiler === null) {\n\t\t\t$this->dispatcherCompiler = new DispatcherCompiler();\n\t\t}\n\n\n\t\tif ($this->resourcesCompiler === null) {\n\t\t\t$this->resourcesCompiler = new ResourcesCompiler();\n\t\t}\n\n\t\tif ($this->htmlCompiler === null) {\n\t\t\t$this->htmlCompiler = new HtmlCompiler(\n\t\t\t\t$this->diCompiler,\n\t\t\t\t$this->resourcesCompiler,\n\t\t\t\t$this->serverCompiler,\n\t\t\t\t$this->annotationFactory\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "90ece869ec0d444f4ee65ca97c37774e", "score": "0.46960917", "text": "public function compile(){ }", "title": "" }, { "docid": "3a022cb2cee7033b7865ac6f4a6023e7", "score": "0.46775267", "text": "protected function compile() {}", "title": "" }, { "docid": "9c844ed48b38e2f99df6efcb6982d344", "score": "0.4669009", "text": "public static function getAliases()\n{\n return ['resolve'=>'Theme'];\n}", "title": "" }, { "docid": "f75fd6d30b1e144adce0b3edf4c981de", "score": "0.46531442", "text": "abstract function compile();", "title": "" }, { "docid": "f8a7657388c7dfd859a82e2720bd1cf6", "score": "0.4651931", "text": "public static function compiles()\n {\n $basePath = royalcms('path.base');\n $dir = static::guessPackageClassPath('royalcms/redis');\n\n return [\n $basePath . \"/vendor/predis/predis/src/Command/CommandInterface.php\",\n $basePath . \"/vendor/predis/predis/src/Command/Command.php\",\n $basePath . \"/vendor/predis/predis/src/Command/StringGet.php\",\n $basePath . \"/vendor/predis/predis/src/Command/RawCommand.php\",\n $basePath . \"/vendor/predis/predis/src/Configuration/ProfileOption.php\",\n $basePath . \"/vendor/predis/predis/src/Response/Status.php\",\n\n $basePath . \"/vendor/predis/predis/src/Profile/ProfileInterface.php\",\n $basePath . \"/vendor/predis/predis/src/Profile/RedisProfile.php\",\n $basePath . \"/vendor/predis/predis/src/Profile/RedisVersion300.php\",\n $basePath . \"/vendor/predis/predis/src/Profile/Factory.php\",\n\n $basePath . \"/vendor/predis/predis/src/Connection/FactoryInterface.php\",\n $basePath . \"/vendor/predis/predis/src/Connection/Factory.php\",\n $basePath . \"/vendor/predis/predis/src/Connection/ParametersInterface.php\",\n $basePath . \"/vendor/predis/predis/src/Connection/NodeConnectionInterface.php\",\n $basePath . \"/vendor/predis/predis/src/Connection/ConnectionInterface.php\",\n $basePath . \"/vendor/predis/predis/src/Connection/AbstractConnection.php\",\n $basePath . \"/vendor/predis/predis/src/Connection/Parameters.php\",\n $basePath . \"/vendor/predis/predis/src/Connection/StreamConnection.php\",\n\n $basePath . \"/vendor/predis/predis/src/Response/ResponseInterface.php\",\n $basePath . \"/vendor/predis/predis/src/Configuration/OptionsInterface.php\",\n $basePath . \"/vendor/predis/predis/src/Configuration/OptionInterface.php\",\n $basePath . \"/vendor/predis/predis/src/ClientInterface.php\",\n\n $basePath . \"/vendor/predis/predis/src/Client.php\",\n $basePath . \"/vendor/predis/predis/src/Configuration/ConnectionFactoryOption.php\",\n $basePath . \"/vendor/predis/predis/src/Configuration/Options.php\",\n\n $dir . '/Connections/Connection.php',\n $dir . '/Connections/PredisConnection.php',\n $dir . '/Connectors/PredisConnector.php',\n $dir . '/Contracts/Factory.php',\n $dir . '/RedisManager.php',\n\n ];\n }", "title": "" }, { "docid": "c23bb1070a102a4cca99f847dc789a5d", "score": "0.46481106", "text": "static private function render_scripts_and_styles() {\n\t\tglobal $wp_scripts;\n\t\tglobal $wp_styles;\n\n\t\t$partial_refresh_data \t= self::get_partial_refresh_data();\n\t\t$modules\t\t\t\t= array();\n\t\t$scripts_styles\t\t\t= '';\n\n\t\t// Enqueue module font styles.\n\t\tif ( ! $partial_refresh_data['is_partial_refresh'] ) {\n\t\t\t$modules = FLBuilderModel::get_all_modules();\n\t\t} elseif ( 'module' !== $partial_refresh_data['node']->type ) {\n\t\t\t$nodes = FLBuilderModel::get_nested_nodes( $partial_refresh_data['node'] );\n\t\t\tforeach ( $nodes as $node ) {\n\t\t\t\tif ( 'module' === $node->type && isset( FLBuilderModel::$modules[ $node->settings->type ] ) ) {\n\t\t\t\t\t$node->form = FLBuilderModel::$modules[ $node->settings->type ]->form;\n\t\t\t\t\t$modules[] = $node;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$modules = array( $partial_refresh_data['node'] );\n\t\t}\n\n\t\tforeach ( $modules as $module ) {\n\t\t\tFLBuilderFonts::add_fonts_for_module( $module );\n\t\t}\n\n\t\tFLBuilderFonts::enqueue_styles();\n\n\t\t// Start the output buffer.\n\t\tob_start();\n\n\t\t// Print scripts and styles.\n\t\tif ( isset( $wp_scripts ) ) {\n\t\t\t$wp_scripts->done[] = 'jquery';\n\t\t\twp_print_scripts( $wp_scripts->queue );\n\t\t}\n\t\tif ( isset( $wp_styles ) ) {\n\t\t\twp_print_styles( $wp_styles->queue );\n\t\t}\n\n\t\t// Return the scripts and styles markup.\n\t\treturn ob_get_clean();\n\t}", "title": "" }, { "docid": "8004e6b26097a5af90453ed9e0dc3913", "score": "0.4644596", "text": "public function compile();", "title": "" }, { "docid": "8004e6b26097a5af90453ed9e0dc3913", "score": "0.4644596", "text": "public function compile();", "title": "" }, { "docid": "8004e6b26097a5af90453ed9e0dc3913", "score": "0.4644596", "text": "public function compile();", "title": "" }, { "docid": "4073e9a530e1afa94f7741f64a8ebd59", "score": "0.4605199", "text": "function drush_registry_rebuild() {\n define('MAINTENANCE_MODE', 'update');\n ini_set('memory_limit', -1);\n if (!drush_bootstrap_to_phase(DRUSH_BOOTSTRAP_DRUPAL_DATABASE)) {\n return drush_set_error('DRUPAL_SITE_NOT_FOUND',\n dt('You need to specify an alias or run this command within a drupal site.'));\n }\n $include_dir = DRUPAL_ROOT . '/includes';\n $module_dir = DRUPAL_ROOT . '/modules';\n // Use core directory if it exists.\n if (file_exists(DRUPAL_ROOT . '/core/includes/bootstrap.inc')) {\n $include_dir = DRUPAL_ROOT . '/core/includes';\n $module_dir = DRUPAL_ROOT . '/core/modules';\n }\n\n $includes = array(\n $include_dir . '/bootstrap.inc',\n $include_dir . '/common.inc',\n $include_dir . '/database.inc',\n $include_dir . '/schema.inc',\n $include_dir . '/actions.inc',\n $include_dir . '/entity.inc',\n $module_dir . '/system/system.module',\n $include_dir . '/database/database.inc',\n $include_dir . '/database/query.inc',\n $include_dir . '/database/select.inc',\n $include_dir . '/registry.inc',\n $include_dir . '/module.inc',\n $include_dir . '/menu.inc',\n $include_dir . '/file.inc',\n $include_dir . '/theme.inc',\n );\n\n if (drush_drupal_major_version() == 7) {\n $cache_lock_path_absolute = variable_get('lock_inc');\n if (!empty($cache_lock_path_absolute)) {\n $cache_lock_path_relative = DRUPAL_ROOT . '/' . variable_get('lock_inc');\n // Ensure that the configured lock.inc really exists at that location and\n // is accessible. Otherwise we use the core lock.inc as fallback.\n if (is_readable($cache_lock_path_relative) && is_file($cache_lock_path_relative)) {\n $includes[] = $cache_lock_path_relative;\n drush_log(dt(\"We will use relative variant of lock.inc: @lock\", array('@lock' => $cache_lock_path_relative)));\n }\n elseif (is_readable($cache_lock_path_absolute) && is_file($cache_lock_path_absolute)) {\n $includes[] = $cache_lock_path_absolute;\n drush_log(dt(\"We will use absolute variant of lock.inc: @lock\", array('@lock' => $cache_lock_path_absolute)));\n }\n else {\n drush_log(dt('We will use core implementation of lock.inc as fallback.'));\n $includes[] = DRUPAL_ROOT . '/includes/lock.inc';\n }\n }\n else {\n $includes[] = DRUPAL_ROOT . '/includes/lock.inc';\n }\n }\n elseif (drush_drupal_major_version() > 7) {\n // TODO\n // http://api.drupal.org/api/drupal/namespace/Drupal!Core!Lock/8\n $includes[] = $module_dir . '/entity/entity.module';\n $includes[] = $module_dir . '/entity/entity.controller.inc';\n }\n // In Drupal 6 the configured lock.inc is already loaded during\n // DRUSH_BOOTSTRAP_DRUPAL_DATABASE\n\n foreach ($includes as $include) {\n if (file_exists($include)) {\n require_once($include);\n }\n }\n\n // We may need to clear also Drush 5+ internal cache first.\n drush_log(dt(\"This DRUSH_MAJOR_VERSION is: @ver\", array('@ver' => DRUSH_MAJOR_VERSION)));\n if (DRUSH_MAJOR_VERSION > 4) {\n drush_cache_clear_drush();\n drush_log(dt('Internal Drush cache cleared with drush_cache_clear_drush (1).'));\n }\n\n // This section is not functionally important. It's just using the\n // registry_get_parsed_files() so that it can report the change. Drupal 7 only.\n if (drush_drupal_major_version() == 7) {\n $connection_info = Database::getConnectionInfo();\n $driver = $connection_info['default']['driver'];\n require_once $include_dir . '/database/' . $driver . '/query.inc';\n $parsed_before = registry_get_parsed_files();\n }\n\n // Separate bootstrap cache exists only in Drupal 7 or newer.\n // They are cleared later again via drupal_flush_all_caches().\n if (drush_drupal_major_version() == 7) {\n cache_clear_all('lookup_cache', 'cache_bootstrap');\n cache_clear_all('variables', 'cache_bootstrap');\n cache_clear_all('module_implements', 'cache_bootstrap');\n drush_log(dt('Bootstrap caches have been cleared in DRUSH_BOOTSTRAP_DRUPAL_DATABASE.'));\n }\n elseif (drush_drupal_major_version() >= 8) {\n cache('bootstrap')->deleteAll();\n drush_log(dt('Bootstrap caches have been cleared in DRUSH_BOOTSTRAP_DRUPAL_DATABASE.'));\n }\n\n // We later run system_rebuild_module_data() and registry_update() on Drupal 7 via\n // D7-only registry_rebuild() wrapper, which is run inside drupal_flush_all_caches().\n // It is an equivalent of module_rebuild_cache() in D5-D6 and is normally run via\n // our universal wrapper registry_rebuild_cc_all() -- see further below.\n // However, we are still on the DRUPAL_BOOTSTRAP_SESSION level here,\n // and we want to make the initial rebuild as atomic as possible, so we can't\n // run everything from registry_rebuild_cc_all() yet, so we run an absolute\n // minimum we can at this stage, core specific.\n drush_log(dt('We are on the DRUSH_BOOTSTRAP_DRUPAL_DATABASE level still.'));\n if (drush_drupal_major_version() == 7) {\n registry_rebuild(); // D7 only\n drush_log(dt('The registry has been rebuilt via registry_rebuild (A).'), 'success');\n }\n elseif (drush_drupal_major_version() > 7) {\n system_rebuild_module_data(); // D8+\n drush_log(dt('The registry has been rebuilt via system_rebuild_module_data (A).'), 'success');\n }\n else { // D5-D6\n module_list(TRUE, FALSE);\n module_rebuild_cache();\n drush_log(dt('The registry has been rebuilt via module_rebuild_cache (A).'), 'success');\n }\n\n // We may need to clear also Drush 5+ internal cache at this point again.\n if (DRUSH_MAJOR_VERSION > 4) {\n drush_cache_clear_drush();\n drush_log(dt('Internal Drush cache cleared with drush_cache_clear_drush (2).'));\n }\n\n drush_log(dt('Bootstrapping to DRUPAL_BOOTSTRAP_FULL.'));\n drush_bootstrap_to_phase(DRUSH_BOOTSTRAP_DRUPAL_FULL);\n // We can run our wrapper now, since we are in a full bootstrap already.\n // Note that the wrapper normally honors the --no-cache-clear option if used.\n drush_registry_rebuild_cc_all();\n drush_log(dt('The registry has been rebuilt via drush_registry_rebuild_cc_all (B).'), 'success');\n\n if (drush_get_option('fire-bazooka') && drush_drupal_major_version() == 7) {\n $force_all_cache_clear = TRUE;\n if (drush_get_option('no-cache-clear')) {\n // Force all caches clear before rebuilding tables from scratch,\n // but only if --no-cache-clear is used, since otherwise\n // it already has been done above.\n drush_registry_rebuild_cc_all();\n drush_log(dt('Forced pre-fire-bazooka extra all caches clear.'));\n }\n db_truncate('registry')->execute();\n db_truncate('registry_file')->execute();\n drush_log(dt('The registry_file and registry tables truncated with --fire-bazooka.'));\n // We have to force API-based rebuild integrated with cache clears\n // directly after truncating registry tables.\n drush_registry_rebuild_cc_all();\n drush_log(dt('The registry has been rebuilt via drush_registry_rebuild_cc_all (C).'), 'success');\n }\n\n // Extra cleanup available for D7 only.\n if (drush_drupal_major_version() == 7) {\n $parsed_after = registry_get_parsed_files();\n // Remove files which don't exist anymore.\n $filenames = array();\n foreach ($parsed_after as $filename => $file) {\n if (!file_exists($filename)) {\n $filenames[] = $filename;\n }\n }\n if (!empty($filenames)) {\n db_delete('registry_file')->condition('filename', $filenames)->execute();\n db_delete('registry')->condition('filename', $filenames)->execute();\n $dt_args = array(\n '@files' => implode(', ', $filenames),\n );\n $singular = 'Manually deleted 1 stale file from the registry.';\n $plural = 'Manually deleted @count stale files from the registry.';\n drush_log(format_plural(count($filenames), $singular, $plural), 'success');\n $singular = \"A file has been declared in a module's .info, but could not be found. This is probably indicative of a bug. The missing file is @files.\";\n $plural = \"@count files were declared in a module's .info, but could not be found. This is probably indicative of a bug. The missing files are @files.\";\n drush_log(format_plural(count($filenames), $singular, $plural, $dt_args), 'warning');\n }\n $parsed_after = registry_get_parsed_files();\n $message = 'There were @parsed_before files in the registry before and @parsed_after files now.';\n $dt_args = array(\n '@parsed_before' => count($parsed_before),\n '@parsed_after' => count($parsed_after),\n );\n drush_log(dt($message, $dt_args));\n drush_registry_rebuild_cc_all();\n }\n\n // Everything done.\n drush_log(dt('All registry rebuilds have been completed.'), 'success');\n}", "title": "" }, { "docid": "c13976ca6be07be9e6855d4b699437ad", "score": "0.46049455", "text": "public function dependencies()\n\t\t{\t\t\t\t\n\t\t\trequire_once( NYPIZZA_MODULES . \"/{$this->folder}/inc/shortcode.php\" );\t\t\t\t\t\n\t\t}", "title": "" }, { "docid": "88fe6f3ea1a5c7bcddfce5afad46c609", "score": "0.45793316", "text": "function docrobot_docrobot_assemble_documentation($type) {\n $items = array();\n\n switch ($type) {\n\n // Add information about enabled modules\n case 'module':\n foreach (module_rebuild_cache() as $module) {\n\n // Only enter enabled modules\n if ($module->status == 1) {\n\n // Create a fieldset for the module's project (if appropriate)\n if (!isset($items[$module->info['project']]['#name'])) {\n if (!isset($module->info['project'])) {\n $module->info['project'] = 'NO DECLARED PROJECT';\n }\n $items[$module->info['project']] = array(\n '#type' => 'fieldset',\n '#tree' => TRUE,\n '#name' => $module->info['project'],\n '#title' => $module->info['project'],\n '#collapsible' => TRUE,\n );\n }\n\n // Add the module itself\n $items[$module->info['project']][$module->name] = array(\n '#type' => 'markup',\n '#name' => $module->name,\n '#title' => $module->info['name'],\n '#prefix' => '<div class=\"docrobot-module\">',\n '#value' => $module->info['name'] . ' (' . $module->name . '): ' . $module->info['description'],\n '#suffix' => '</div>',\n );\n\n // Look for any patches inside the module folder\n $patches = array();\n foreach (scandir(drupal_get_path('module', $module->name)) as $file) {\n if (preg_match('/patch/', $file)) {\n $patches[] = $file;\n }\n }\n if (count($patches)) {\n $items[$module->info['project']][$module->name]['patches'] = array(\n '#type' => 'fieldset',\n '#name' => $module->name . '-patches',\n '#title' => t('Detected patches'),\n '#description' => t('Possible patches found in the module\\'s directory.'),\n '#tree' => TRUE,\n '#collapsible' => TRUE,\n );\n $i = 0;\n foreach ($patches as $patch) {\n $i++;\n $items[$module->info['project']][$module->name]['patches'][] = array(\n '#type' => 'markup',\n '#name' => $module->name . '-patch-' . $i,\n '#title' => $patch,\n '#prefix' => '<div class=\"docrobot-module\">',\n '#value' =>\n t('%patch: Google !search-link for this patch', array(\n '!search-link' => l('drupal.org', 'http://www.google.com/search?q='\n . urlencode($patch . ' link:drupal.org')),\n '%patch' => $patch)),\n '#suffix' => '</div>',\n );\n }\n\n }\n }\n }\n\n // Return all module items for documentation\n return $items;\n\n // Build a list of all user roles\n case 'role' :\n foreach(user_roles() as $role) {\n $items[$role] = array(\n '#name' => $role,\n '#title' => $role,\n '#prefix' => '<div class=\"docrobot-role\">',\n '#value' => $role,\n '#suffix' => '</div>',\n );\n }\n return $items;\n // The switch statement ends here\n }\n}", "title": "" }, { "docid": "9e9f9154774e38934889bc55f0a674ac", "score": "0.45754573", "text": "public function buildModules(XMIReader $reader);", "title": "" }, { "docid": "5803e2901fd57c9c3c610f03a6397d8d", "score": "0.45724958", "text": "public function build($basepath = null, $installDefPrefix = null, $relationships = null)\n {\n $modulesToBuild = array();\n if (!isset($this->relationships[$this->newRelationshipName])) {\n $GLOBALS['log']->fatal(\"Could not find a relationship by the name of {$this->newRelationshipName}, you will have to quick repair and rebuild to get the new relationship added.\");\n } else {\n $newRel = $this->relationships[$this->newRelationshipName];\n $newRelDef = $newRel->getDefinition();\n $modulesToBuild[$newRelDef['rhs_module']] = true;\n $modulesToBuild[$newRelDef['lhs_module']] = true;\n }\n\n $basepath = \"custom/Extension/modules\" ;\n\n $this->activitiesToAdd = false ;\n\n // and mark all as built so that the next time we come through we'll know and won't build again\n foreach ( $this->relationships as $name => $relationship )\n {\n if ($relationship->readonly() ) {\n continue;\n }\n\n $definition = $relationship->getDefinition () ;\n // activities will always appear on the rhs only - lhs will be always be this module in MB\n if (strtolower ( $definition [ 'rhs_module' ] ) == 'activities')\n {\n $this->activitiesToAdd = true ;\n $relationshipName = $definition [ 'relationship_name' ] ;\n foreach ( self::$activities as $activitiesSubModuleLower => $activitiesSubModuleName )\n {\n $definition [ 'rhs_module' ] = $activitiesSubModuleName ;\n $definition [ 'for_activities' ] = true ;\n $definition [ 'relationship_name' ] = $relationshipName . '_' . $activitiesSubModuleLower ;\n $this->relationships [ $definition [ 'relationship_name' ] ] = RelationshipFactory::newRelationship ( $definition ) ;\n }\n unset ( $this->relationships [ $name ] ) ;\n }\n }\n\n $GLOBALS [ 'log' ]->info ( get_class ( $this ) . \"->build(): installing relationships\" ) ;\n\n $MBModStrings = $GLOBALS [ 'mod_strings' ] ;\n $adminModStrings = return_module_language ( '', 'Administration' ) ; // required by ModuleInstaller\n\n foreach ( $this->relationships as $name => $relationship )\n {\n if ($relationship->readonly() ) {\n continue;\n }\n\n $relationship->setFromStudio();\n \t$GLOBALS [ 'mod_strings' ] = $MBModStrings ;\n $installDefs = parent::build ( $basepath, \"<basepath>\", array ($name => $relationship ) ) ;\n\n // and mark as built so that the next time we come through we'll know and won't build again\n $relationship->setReadonly () ;\n $this->relationships [ $name ] = $relationship ;\n\n // now install the relationship - ModuleInstaller normally only does this as part of a package load where it installs the relationships defined in the manifest. However, we don't have a manifest or a package, so...\n\n // If we were to chose to just use the Extension mechanism, without using the ModuleInstaller install_...() methods, we must :\n // 1) place the information for each side of the relationship in the appropriate Ext directory for the module, which means specific $this->save...() methods for DeployedRelationships, and\n // 2) we must also manually add the relationship into the custom/application/Ext/TableDictionary/tabledictionary.ext.php file as install_relationship doesn't handle that (install_relationships which requires the manifest however does)\n // Relationships must be in tabledictionary.ext.php for the Admin command Rebuild Relationships to reliably work:\n // Rebuild Relationships looks for relationships in the modules vardefs.php, in custom/modules/<modulename>/Ext/vardefs/vardefs.ext.php, and in modules/TableDictionary.php and custom/application/Ext/TableDictionary/tabledictionary.ext.php\n // if the relationship is not defined in one of those four places it could be deleted during a rebuilt, or during a module installation (when RebuildRelationships.php deletes all entries in the Relationships table)\n // So instead of doing this, we use common save...() methods between DeployedRelationships and UndeployedRelationships that will produce installDefs,\n // and rather than building a full manifest file to carry them, we manually add these installDefs to the ModuleInstaller, and then\n // individually call the appropriate ModuleInstaller->install_...() methods to take our relationship out of our staging area and expand it out to the individual module Ext areas\n\n $GLOBALS [ 'mod_strings' ] = $adminModStrings ;\n SugarAutoLoader::requireWithCustom('ModuleInstall/ModuleInstaller.php');\n $moduleInstallerClass = SugarAutoLoader::customClass('ModuleInstaller');\n $mi = new $moduleInstallerClass();\n\n $mi->id_name = 'custom' . $name ; // provide the moduleinstaller with a unique name for this relationship - normally this value is set to the package key...\n $mi->installdefs = $installDefs ;\n $mi->base_dir = $basepath ;\n $mi->silent = true ;\n\n\n VardefManager::clearVardef () ;\n\n $mi->install_relationships () ;\n $mi->install_languages () ;\n $mi->install_vardefs () ;\n $mi->install_layoutdefs () ;\n $mi->install_extensions();\n $mi->install_client_files();\n\n }\n\n $GLOBALS [ 'mod_strings' ] = $MBModStrings ; // finally, restore the ModuleBuilder mod_strings\n\n // Anything that runs in-process needs to reload their vardefs\n $GLOBALS['reload_vardefs'] = true;\n\n // save out the updated definitions so that we keep track of the change in built status\n // sending false so we don't rebuild relationshsips for a third time.\n $this->save(false);\n\n // now clear all caches so that our changes are visible\n $rac = new RepairAndClear ( ) ;\n $rac->module_list = $modulesToBuild;\n $rac->clearJsFiles();\n $rac->clearVardefs();\n $rac->clearJsLangFiles();\n $rac->clearLanguageCache();\n $rac->rebuildExtensions(array_keys($modulesToBuild));\n\n foreach (array_keys($modulesToBuild) as $module) {\n unset($GLOBALS['dictionary'][BeanFactory::getObjectName($module)]);\n }\n MetaDataManager::refreshLanguagesCache(array($GLOBALS['current_language']));\n MetaDataManager::refreshSectionCache(array(MetaDataManager::MM_RELATIONSHIPS));\n MetaDataManager::refreshModulesCache(array_keys($modulesToBuild));\n\n $GLOBALS [ 'log' ]->info ( get_class ( $this ) . \"->build(): finished relationship installation\" ) ;\n\n }", "title": "" }, { "docid": "e0e8471eabaceee14ecc73e0325775f9", "score": "0.45579442", "text": "abstract public function compile();", "title": "" }, { "docid": "bc87423d734ff6d7c78e3c89c1881ee3", "score": "0.45486182", "text": "function super_awesome_theme_devhub_resolve_internal_link( $link ) {\n\t$post_types = array();\n\t$slug = '';\n\t$url = '';\n\n\tif ( false !== strpos( $link, '::$' ) ) {\n\t\t// Link to class variable: {@see WP_Rewrite::$index}.\n\t\treturn $link;\n\t} elseif ( false !== strpos( $link, '::' ) ) {\n\t\t// Link to class method: {@see WP_Query::query()}.\n\t\t$post_types = array( 'wp-parser-method' );\n\t\t$slug = str_replace( array( '::', '()' ), array( '/', '' ), $link );\n\t} elseif ( 1 === preg_match( '/^(?:\\'|(?:&#8216;))([\\$\\w-&;]+)(?:\\'|(?:&#8217;))$/', $link, $hook ) ) {\n\t\t// Link to hook: {@see 'pre_get_search_form'}.\n\t\t$post_types = array( 'wp-parser-hook' );\n\t\tif ( ! empty( $hook[1] ) ) {\n\t\t\t$slug = sanitize_title_with_dashes( html_entity_decode( $hook[1] ) );\n\t\t}\n\t} elseif ( 1 === preg_match( '/^_?[A-Z][a-zA-Z0-9]+_\\w+/', $link ) ) {\n\t\t// Link to class, trait or interface: {@see WP_Query}.\n\t\t$post_types = array( 'wp-parser-class', 'wp-parser-trait', 'wp-parser-interface' );\n\t\t$slug = sanitize_key( $link );\n\t} else {\n\t\t// Link to function: {@see esc_attr()}.\n\t\t$post_types = array( 'wp-parser-function' );\n\t\t$slug = sanitize_title_with_dashes( html_entity_decode( $link ) );\n\t}\n\n\tif ( ! empty( $post_types ) && ! empty( $slug ) ) {\n\t\t/**\n\t\t * Filters whether to perform possibly heavy lookups for content to ensure internal links are resolved correctly.\n\t\t *\n\t\t * @since 1.0.0\n\t\t *\n\t\t * @param bool $strict_resolve Whether to do lookups to resolve internal links strictly. Default true.\n\t\t */\n\t\tif ( apply_filters( 'super_awesome_theme_devhub_do_resolve_internal_links_strict', true ) ) {\n\t\t\t$url = super_awesome_theme_devhub_detect_internal_link_content( $slug, $post_types );\n\t\t} else {\n\t\t\tif ( count( $post_types ) === 1 && in_array( $post_types[0], array( 'wp-parser-function', 'wp-parser-hook' ), true ) ) {\n\t\t\t\t$url = get_post_type_archive_link( $post_types[0] ) . $slug . '/';\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( ! empty( $url ) ) {\n\t\t$link = '<a href=\"' . esc_url( $url ) . '\">' . esc_html( $link ) . '</a>';\n\t}\n\n\treturn $link;\n}", "title": "" }, { "docid": "7bdc1f096feb01633c16aa8b48ec40c3", "score": "0.45406199", "text": "public function build(){\n $fp = config('directories.base').'/routes.php';\n\n require_once($fp);\n }", "title": "" }, { "docid": "747fe42629e0396a751c7ed5b41394ff", "score": "0.4535538", "text": "protected static function rebuildDependencyTree() {\n foreach (static::$classNames as $class => $classDetails) {\n if (!empty($classDetails['extends'])) {\n static::$classNames[ltrim($classDetails['extends'], '\\\\')]['extenders'][] = $class;\n }\n if (!empty($classDetails['implements'])) {\n foreach ($classDetails['implements'] as $implement) {\n static::$classNames[ltrim($implement, '\\\\')]['implementers'][] = $class;\n }\n }\n }\n foreach (static::$classNames as $class => &$classDetails) {\n if (!empty($classDetails['extenders'])) {\n $classDetails['extenders'] = array_unique($classDetails['extenders']);\n }\n if (!empty($classDetails['implementers'])) {\n $classDetails['implementers'] = array_unique($classDetails['implementers']);\n }\n }\n }", "title": "" }, { "docid": "6c28aea2858def7245402d5ae9f0c9d2", "score": "0.4507744", "text": "public function compile()\n\t{\n\t\t$this->processLess();\n\t}", "title": "" }, { "docid": "926e5644268d8990789edda39bab6924", "score": "0.45007208", "text": "public function compile_dynamic_css() {\n\t\t\tglobal $reduxPortoSettings;\n\t\t\t$reduxFramework = $reduxPortoSettings->ReduxFramework;\n\n\t\t\t$upload_dir = wp_upload_dir();\n\t\t\t$style_path = $upload_dir['basedir'] . '/porto_styles';\n\t\t\t// Compile dynamic styles\n\t\t\t$rtl_arr = array( '', '_rtl' );\n\t\t\t$GLOBALS['porto_save_settings_is_rtl'] = false;\n\t\t\ttry {\n\t\t\t\tif ( ! file_exists( $style_path ) ) {\n\t\t\t\t\twp_mkdir_p( $style_path );\n\t\t\t\t}\n\t\t\t\t$result = true;\n\n\t\t\t\tforeach ( $rtl_arr as $rtl_arr_value ) {\n\t\t\t\t\tob_start();\n\t\t\t\t\tinclude PORTO_DIR . '/style.php';\n\t\t\t\t\t$css = ob_get_clean();\n\n\t\t\t\t\t$filename = $style_path . '/dynamic_style' . $rtl_arr_value . '.css';\n\t\t\t\t\tporto_check_file_write_permission( $filename );\n\t\t\t\t\t$result = $reduxFramework->filesystem->execute( 'put_contents', $filename, array( 'content' => $this->minify_css( $css ) ) );\n\t\t\t\t\tif ( $result ) {\n\t\t\t\t\t\t$result = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$result = false;\n\t\t\t\t\t}\n\t\t\t\t\t$GLOBALS['porto_save_settings_is_rtl'] = true;\n\t\t\t\t}\n\n\t\t\t\t// compile gutenberg editor style\n\t\t\t\tob_start();\n\t\t\t\tinclude PORTO_DIR . '/style-editor.php';\n\t\t\t\t$css = ob_get_clean();\n\t\t\t\t$filename = $style_path . '/style-editor.css';\n\t\t\t\tporto_check_file_write_permission( $filename );\n\t\t\t\t$result1 = $reduxFramework->filesystem->execute( 'put_contents', $filename, array( 'content' => $this->minify_css( $css ) ) );\n\t\t\t\tif ( $result1 && $result ) {\n\t\t\t\t\t$result = true;\n\t\t\t\t} else {\n\t\t\t\t\t$result = false;\n\t\t\t\t}\n\n\t\t\t\tupdate_option( 'porto_dynamic_style', $result );\n\t\t\t} catch ( Exception $e ) {\n\t\t\t\tupdate_option( 'porto_dynamic_style', false );\n\t\t\t\t// try to recompile dynamic style in every 4 days if compilation is failed\n\t\t\t\tset_transient( 'porto_dynamic_style_time', time(), DAY_IN_SECONDS * 4 );\n\t\t\t}\n\t\t\tunset( $GLOBALS['porto_save_settings_is_rtl'] );\n\t\t}", "title": "" }, { "docid": "d136854a998f31be8a6316f73687d157", "score": "0.44931364", "text": "function phorum_mod_compress_minify_css_register($data)\n{\n // or if the module version is changed.\n $data['register'][] = array(\n 'module' => 'compress_minify',\n 'where' => 'after',\n 'source' => 'function(compress_minify_empty)',\n 'cache_key' => filemtime(__FILE__)\n );\n return $data;\n}", "title": "" }, { "docid": "ec3cc89b42353f879a6ce96487bd5629", "score": "0.44768393", "text": "public static function compiles()\n {\n $dir = static::guessPackageClassPath('royalcms/upload');\n\n return [\n $dir . \"/Uploader/Uploader.php\",\n $dir . \"/Uploader/NewUploader.php\",\n $dir . \"/Process/UploadProcess.php\",\n $dir . \"/Process/NewUploadProcess.php\",\n $dir . \"/Uploader/CustomUploader.php\",\n $dir . \"/Uploader/ImageUploader.php\",\n $dir . \"/Uploader/NewImageUploader.php\",\n $dir . \"/Uploader/TempImageUploader.php\",\n $dir . \"/UploaderAbstract.php\",\n $dir . \"/UploadProcessAbstract.php\",\n $dir . \"/UploadResult.php\",\n $dir . \"/UploadManager.php\",\n $dir . \"/Facades/Upload.php\",\n $dir . \"/UploadServiceProvider.php\",\n ];\n }", "title": "" }, { "docid": "d8b35470136017f9a205863cbbd09139", "score": "0.44704968", "text": "function css_getmoduleinfo(): array\n{\n return [\n 'name' => 'CSS',\n 'author' => 'Stephen Kise',\n 'version' => '1.0.0',\n 'category' => 'Administrative',\n 'description' => 'Adds a module hook to implement CSS seemlessly.'\n ];\n}", "title": "" }, { "docid": "f391376eeaf880ead29056a9cd952b4c", "score": "0.44678998", "text": "public function build ()\n {\n foreach ($this->definitions as $definition) {\n $config = require($definition);\n foreach ($config as $id => $resolver) {\n if (!is_callable($resolver)) { \n $this->setConfig($id, $resolver);\n } else {\n $this->set($id, $resolver);\n }\n }\n }\n\n return $this;\n }", "title": "" }, { "docid": "0e04360c673a795bdb669bf0a38712ac", "score": "0.44227123", "text": "public function build() {\n\t\t$this->out('Building less files');\n\t\t$this->hr();\n\t\t\n\t\tif (empty($this->args)) {\n\t\t\t$files = $this->_collectFiles($this->lessphp->getSettings('sourcePath'));\n\t\t} else {\n\t\t\t$files = $this->args;\n\t\t}\n\t\tforeach ($files as $file) {\n\t\t\t$result = $this->lessphp->compileFile($file, null, array(\n\t\t\t\t'save' => true,\n\t\t\t\t'alwaysCompile' => !empty($this->params['force'])\n\t\t\t));\n\t\t\t\n\t\t\t$success = ($result !== false);\n\t\t\t$status = ($success) ? '<success>Success</success>' : '<error>Error</error>';\n\t\t\t$this->out('Compiling file \"' . $file . '\" [' . $status . ']');\n\t\t}\n\t}", "title": "" }, { "docid": "c0df5bf9dca8887163a0f18cc013f217", "score": "0.4421131", "text": "function load_css() {\n $sql_link = 'SELECT * FROM `' . TABLE_PREFIX . 'links`;';\n $result_link = mysqli_query(connect_db(),$sql_link);\n $links = array();\n while($row_link = mysqli_fetch_assoc($result_link)) {\n $links[] = array('link_rel' => $row_link['link_rel'], 'link_type' => $row_link['link_type'], 'link_href' => $row_link['link_href']);\n }\n \t\t$ret_link = '<style scoped>';\n foreach($links as $link) {\n\n $ret_link .= '@import \"' . ABS_PATH . $link['link_href'] . '\";';\n }\n $ret_link .= '</style>';\n return $ret_link;\n \n\t\t}", "title": "" }, { "docid": "59718bbee238b0169030f208cccf75bd", "score": "0.44180155", "text": "private function load_dependencies()\n {\n require_once plugin_dir_path(__FILE__) . 'class-csl-admin.php';\n require_once plugin_dir_path(__FILE__) . 'class-csl-post-template.php';\n }", "title": "" }, { "docid": "0a697101535646d724572a12226f141c", "score": "0.44146925", "text": "private function _build()\n {\n chdir(PATH_CURRENT);\n\n $_output_path = $this->_output_path;\n\n if (! is_dir($_output_path)) {\n if ($this->_silent === false)\n echo \"Creating output directory $_output_path\\n\";\n mkdir($_output_path, 0775);\n } else {\n if ($this->_silent === false)\n echo \"Output directory $_output_path exists\\n\";\n }\n\n $_css_path = __buildpath(Array($_output_path, \"css\"));\n \n if (! is_dir($_css_path)) {\n if ($this->_silent === false)\n echo \"Creating CSS directory $_css_path\\n\";\n mkdir($_css_path, 0775);\n } else {\n if ($this->_silent === false)\n echo \"CSS directory $_css_path exists\\n\";\n }\n\n $_css_path = __buildpath(Array($_output_path, \"css\", \"main.css\"));\n\n if ($this->_silent === false) echo \"Creating CSS file $_css_path\\n\";\n file_put_contents($_css_path, $this->_css_template);\n\n if ($this->_silent === false) echo \"\\n\";\n\n // First compile the _document's\n //\n if ($this->_multi_page)\n $this->_buildMultiPage();\n else\n $this->_buildSinglePage();\n\n // Now create the HTML from the _document's\n //\n return $this->_createDocuments();\n }", "title": "" }, { "docid": "a5200ab9c682d1b8d5165aeec6d78bb9", "score": "0.4403955", "text": "function drush_check_module_dependencies($modules, $module_info) {\n $status = array();\n foreach ($modules as $key => $module) {\n $dependencies = array_reverse($module_info[$module]->requires);\n $unmet_dependencies = array_diff(array_keys($dependencies), array_keys($module_info));\n if (!empty($unmet_dependencies)) {\n $status[$key]['error'] = array(\n 'code' => 'DRUSH_PM_ENABLE_DEPENDENCY_NOT_FOUND',\n 'message' => dt('Module !module cannot be enabled because it depends on the following modules which could not be found: !unmet_dependencies', array('!module' => $module, '!unmet_dependencies' => implode(',', $unmet_dependencies)))\n );\n }\n else {\n // check for version incompatibility\n foreach ($dependencies as $dependency_name => $v) {\n $current_version = $module_info[$dependency_name]->info['version'];\n $current_version = str_replace(drush_get_drupal_core_compatibility() . '-', '', $current_version);\n $incompatibility = drupal_check_incompatibility($v, $current_version);\n if (isset($incompatibility)) {\n $status[$key]['error'] = array(\n 'code' => 'DRUSH_PM_ENABLE_DEPENDENCY_VERSION_MISMATCH',\n 'message' => dt('Module !module cannot be enabled because it depends on !dependency !required_version but !current_version is available', array('!module' => $module, '!dependency' => $dependency_name, '!required_version' => $incompatibility, '!current_version' => $current_version))\n );\n }\n }\n }\n $status[$key]['unmet-dependencies'] = $unmet_dependencies;\n $status[$key]['dependencies'] = $dependencies;\n }\n\n return $status;\n}", "title": "" }, { "docid": "8e610200476bdcb4361bcc71c8a4e515", "score": "0.44030327", "text": "protected function includeDependencies() {\t\t\t\r\n\t\tforeach($this->dependencies as $dependency) {\r\n\t\t\t$componentPath = substr($dependency, 0, strrpos($dependency, '/')+1);\r\n\r\n\t\t\tswitch (substr($dependency, strrpos($dependency, '.')+1)) {\r\n\t\t\t\tcase 'css':\r\n\t\t\t\t\t$this->response->addStyleSheet($this->YUIpath . $dependency);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'js':\r\n\t\t\t\t\t// building a new filepath considering the current YUI suffix\r\n\t\t\t\t\tif ($dependency == 'yahoo-dom-event/yahoo-dom-event.js') {\r\n\t\t\t\t\t $filepath = sprintf('%s%s%s.js', $this->YUIpath, $componentPath, basename($dependency, '.js'));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t $filepath = sprintf('%s%s%s-%s.js', $this->YUIpath, $componentPath, basename($dependency, '.js'), $this->YUIsuffix);\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->response->addHeaderScript($filepath);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tthrow new tx_auxo_aui_exception('unknown type of include file' . $dependency );\r\n\t\t\t}\r\n\t\t}\t\t\t\t\t\r\n\t}", "title": "" }, { "docid": "ed0c34d5385fb27869ef6aa19f54613a", "score": "0.44000214", "text": "abstract function build();", "title": "" }, { "docid": "a45d843a94765f95665cf2e7699b015d", "score": "0.4395893", "text": "private function load_dependencies()\n\t{\n\n\t\t/**\n\t\t * Magicform Helper\n\t\t */\n\t\trequire_once plugin_dir_path(dirname(__FILE__)) . 'includes/helper-magicform.php';\n\t\t\n\t\t/**\n\t\t * Email Class\n\t\t */\n\t\trequire_once plugin_dir_path(dirname(__FILE__)) . 'includes/class-magicform-email.php';\n\n\t\t/**\n\t\t * Validation Class\n\t\t */\n\t\trequire_once plugin_dir_path(dirname(__FILE__)) . 'includes/class-magicform-validation.php';\n\t\t/**\n\t\t * Array Helper Class\n\t\t */\n\t\trequire_once plugin_dir_path(dirname(__FILE__)) . 'includes/class-magicform-arrayhelper.php';\n\n\t\t/**\n\t\t * The class responsible for orchestrating the actions and filters of the\n\t\t * core plugin.\n\t\t */\n\t\trequire_once plugin_dir_path(dirname(__FILE__)) . 'includes/class-magicform-loader.php';\n\n\t\t/**\n\t\t * The class responsible for defining internationalization functionality\n\t\t * of the plugin.\n\t\t */\n\t\trequire_once plugin_dir_path(dirname(__FILE__)) . 'includes/class-magicform-i18n.php';\n\n\t\t/**\n\t\t * The class responsible for defining all actions that occur in the admin area.\n\t\t */\n\t\trequire_once plugin_dir_path(dirname(__FILE__)) . 'admin/class-magicform-admin.php';\n\n\t\t/**\n\t\t * Dashboard Module\n\t\t */\n\t\trequire_once plugin_dir_path(dirname(__FILE__)) . 'admin/class-magicform-dashboard.php';\n\n\t\t/**\n\t\t * Forms Module\n\t\t */\n\t\trequire_once plugin_dir_path(dirname(__FILE__)) . 'admin/class-magicform-forms.php';\n\n\t\t/**\n\t\t * Submission Module\n\t\t */\n\t\trequire_once plugin_dir_path(dirname(__FILE__)) . 'admin/class-magicform-submissions.php';\n\n\t\t/**\n\t\t * Settings Module\n\t\t */\n\t\trequire_once plugin_dir_path(dirname(__FILE__)) . 'admin/class-magicform-settings.php';\n\n\t\t/**\n\t\t * Templates Module\n\t\t */\n\t\trequire_once plugin_dir_path(dirname(__FILE__)) . 'admin/class-magicform-templates.php';\n\n\t\t/**\n\t\t * ImportExport Module\n\t\t */\n\t\trequire_once plugin_dir_path(dirname(__FILE__)) . 'admin/class-magicform-importexport.php';\n\t\t\n\t\t/**\n\t\t * Notifications Module\n\t\t */\n\t\trequire_once plugin_dir_path(dirname(__FILE__)) . 'admin/class-magicform-notifications.php';\n\n\t\t/**\n\t\t * The class responsible for defining all actions that occur in the public-facing\n\t\t * side of the site.\n\t\t */\n\t\trequire_once plugin_dir_path(dirname(__FILE__)) . 'public/class-magicform-public.php';\n\t\t/**\n\t\t * Form Viewer Class\n\t\t */\n\t\trequire_once plugin_dir_path(dirname(__FILE__)) . 'public/class-magicform-viewer.php';\n\n\t\t$this->loader = new MagicForm_Loader();\n\t}", "title": "" }, { "docid": "53892158fe449368e1fc15391bd08bd1", "score": "0.4394628", "text": "abstract protected function build(): void;", "title": "" }, { "docid": "b96621e574eb22dfec6e214bb4b25213", "score": "0.43927824", "text": "public function compilecached($type, $include = true) {\r\t\t\t// initialize result\r\t\t\t$result = \"\";\r\t\t\t// sanity check\r\t\t\tif(isset($this->resources[$type])) {\r\t\t\t\t// merge files\r\t\t\t\t$buffer = Array(\"\", \"\"); \r\t\t\t\t// sort\r\t\t\t\t$res = $this->__sortresources($this->resources[$type]);\r\t\t\t\t// buld content\r\t\t\t\tforeach($res as $fn=>$params) {\r\t\t\t\t\t// get buffer\r\t\t\t\t\t$cnt = trim(@$params[\"content\"]);\r\t\t\t\t\t// assign\r\t\t\t\t\tif($this->static&&$this->staticdynamic&&!isset($params[\"filename\"])) {\r\t\t\t\t\t\t$buffer[1] .= $cnt;\r\t\t\t\t\t} else {\r\t\t\t\t\t\t$buffer[0] .= $cnt;\r\t\t\t\t\t}\r\t\t\t\t}\r\t\t\t\t// prepare buffer\r\t\t\t\tforeach($buffer as $index=>$buffercnt) {\r\t\t\t\t\tif($this->framework) {\r\t\t\t\t\t\t// find translators\r\t\t\t\t\t\tpreg_match_all(sprintf(\"/%s%s(.*?)%s/\", TEMPLATE_FIELD_BEGIN, TEMPLATE_FIELD_TRANSLATE, TEMPLATE_FIELD_END), $buffercnt, $matches, PREG_PATTERN_ORDER);\r\t\t\t\t\t\t// return result\r\t\t\t\t\t\tforeach($matches[1] as $s) {\r\t\t\t\t\t\t\t// replace translation\r\t\t\t\t\t\t\t$buffercnt = str_replace(sprintf(\"%s%s%s%s\", TEMPLATE_FIELD_BEGIN, TEMPLATE_FIELD_TRANSLATE, $s, TEMPLATE_FIELD_END), $this->framework->translate->_($s), $buffercnt);\r\t\t\t\t\t\t}\r\t\t\t\t\t\t// set localized\r\t\t\t\t\t\t$buffercnt = str_replace(sprintf(\"%s%slocalized%s\", TEMPLATE_FIELD_BEGIN, TEMPLATE_FIELD_ACTION, TEMPLATE_FIELD_END), LOCALIZED_PATH.$this->framework->localized, $buffercnt);\r\t\t\t\t\t\t$buffercnt = str_replace(sprintf(\"%s%slanguage%s\", TEMPLATE_FIELD_BEGIN, TEMPLATE_FIELD_ACTION, TEMPLATE_FIELD_END), $this->framework->localized, $buffercnt);\r\t\t\t\t\t\t// set resource variables\r\t\t\t\t\t\tforeach(Array(\"BASEPATH\"=>BASEPATH) as $key=>$value) {\r\t\t\t\t\t\t\t$buffercnt = str_replace(sprintf(\"%s%s%s\", TEMPLATE_FIELD_BEGIN, $key, TEMPLATE_FIELD_END), $value, $buffercnt);\r\t\t\t\t\t\t}\r\t\t\t\t\t}\r\t\t\t\t\t//optimize buffer\r\t\t\t\t\t$buffercnt = $this->__optimize($buffercnt, $type);\r\t\t\t\t\t// assign\r\t\t\t\t\t$buffer[$index] = $buffercnt;\r\t\t\t\t}\r\t\t\t\t// register in cache\r\t\t\t\tif($this->static) {\r\t\t\t\t\t$usebuffer = strlen($buffer[0])!=0;\r\t\t\t\t\t$usedynamicbuffer = strlen($buffer[1])!=0;\r\t\t\t\t\t// store static part\r\t\t\t\t\tif($usebuffer) {\r\t\t\t\t\t\t$cacheid = $this->cache->store($this->static[$type], serialize(Array(\"buffer\"=>$buffer[0], \"type\"=>$type)), CACHE_RESOURCES, defined(\"CACHE_TIMEOUT_RESOURCES\")?CACHE_TIMEOUT_RESOURCES:CACHE_TIMEOUT);\r\t\t\t\t\t\t$filename = sprintf(\"/%s/%s/%s\", REQUEST_RESOURCES, REQUEST_CACHE, $this->static[$type]);\t\r\t\t\t\t\t}\r\t\t\t\t\t// store dynamic part\r\t\t\t\t\tif($usedynamicbuffer) {\r\t\t\t\t\t\t$dynamicid = $this->cache->writequery($type, serialize(Array(\"buffer\"=>$buffer[1], \"type\"=>$type)), CACHE_RESOURCES, defined(\"CACHE_TIMEOUT_RESOURCES\")?CACHE_TIMEOUT_RESOURCES:CACHE_TIMEOUT);\r\t\t\t\t\t\t$dynamicfilename = sprintf(\"/%s/%s/%s\", REQUEST_RESOURCES, REQUEST_CACHE, $dynamicid);\t\r\t\t\t\t\t}\r\t\t\t\t} else {\r\t\t\t\t\t$usebuffer = strlen($buffer[0])!=0;\r\t\t\t\t\tif($usebuffer) {\r\t\t\t\t\t\tif($this->dynamic) {\r\t\t\t\t\t\t\t$cacheid = $this->cache->write(serialize(Array(\"dynamic\"=>$this->dynamic, \"buffer\"=>$buffer[0], \"type\"=>$type)), CACHE_RESOURCES, defined(\"CACHE_TIMEOUT_RESOURCES\")?CACHE_TIMEOUT_RESOURCES:CACHE_TIMEOUT); \r\t\t\t\t\t\t} else {\r\t\t\t\t\t\t\t$cacheid = $this->cache->writequery($type, serialize(Array(\"buffer\"=>$buffer[0], \"type\"=>$type)), CACHE_RESOURCES, defined(\"CACHE_TIMEOUT_RESOURCES\")?CACHE_TIMEOUT_RESOURCES:CACHE_TIMEOUT);\r\t\t\t\t\t\t}\r\t\t\t\t\t\t// create filenames\r\t\t\t\t\t\t$filename = sprintf(\"/%s/%s/%s\", REQUEST_RESOURCES, $this->dynamic?REQUEST_CACHEDYNAMIC:REQUEST_CACHE, $cacheid);\t\r\t\t\t\t\t}\r\t\t\t\t}\r\t\t\t\t// format output html\r\t\t\t\tswitch($type) {\r\t\t\t\t\t// css\r\t\t\t\t\tcase RESOURCES_CSS: \r\t\t\t\t\t\tif($usebuffer) {\r\t\t\t\t\t\t\t$result = Tag(\"link\", Array(\"rel\"=>\"stylesheet\", \"type\"=>\"text/css\", \"href\"=>$filename), false, true).\"\\n\";\r\t\t\t\t\t\t}\r\t\t\t\t\t\tif(isset($usedynamicbuffer)&&$usedynamicbuffer&&$this->static&&isset($dynamicfilename)) {\r\t\t\t\t\t\t\t$result .= Tag(\"link\", Array(\"rel\"=>\"stylesheet\", \"type\"=>\"text/css\", \"href\"=>$dynamicfilename), false, true).\"\\n\";\r\t\t\t\t\t\t}\r\t\t\t\t\t\tbreak;\r\t\t\t\t\t// js\r\t\t\t\t\tcase RESOURCES_JS: \r\t\t\t\t\t\t// loading method\r\t\t\t\t\t\t$lm = Array();\r\t\t\t\t\t\tif(defined(\"JAVASCRIPT_LOADMETHOD\")) {\r\t\t\t\t\t\t\t$lm = Array(\r\t\t\t\t\t\t\t\tJAVASCRIPT_LOADMETHOD => TAG_NOVALUE\r\t\t\t\t\t\t\t);\r\t\t\t\t\t\t}\t\t\t\t\t\t\r\t\t\t\t\t\t// process\r\t\t\t\t\t\tif($usebuffer) {\r\t\t\t\t\t\t\t$result = Tag(\"script\", array_merge($lm, Array(\"type\"=>\"text/javascript\", \"src\"=>$filename))).\"\\n\"; \r\t\t\t\t\t\t} \r\t\t\t\t\t\tif(isset($usedynamicbuffer)&&$usedynamicbuffer&&$this->static&&isset($dynamicfilename)) {\r\t\t\t\t\t\t\t\t$result .= Tag(\"script\", array_merge($lm, Array(\"type\"=>\"text/javascript\", \"src\"=>$dynamicfilename))).\"\\n\"; \r\t\t\t\t\t\t}\r\t\t\t\t\t\tbreak;\r\t\t\t\t}\r\t\t\t}\r\t\t\t// return result\r\t\t\treturn $result;\r\t\t}", "title": "" }, { "docid": "bb341102d957e71c0dd807c0d06668ed", "score": "0.43923658", "text": "protected static function pre_compile() {\n\t}", "title": "" }, { "docid": "2a1ad6c17df5a8f4e826f78208279aef", "score": "0.43918398", "text": "static function resolve_map(array &$map, $root)\n {\n if (!isset($map['includes']))\n {\n throw new exception\\assets(\n \"Missing `includes` section in `map` array.\", 10\n );\n }\n\n foreach ($map['includes'] as $dir => &$opt)\n {\n $path = fs::ds($root, $dir);\n\n // No such path, nothing to do\n if (!dir::exists($path))\n {\n $opt['ignore'] = true;\n continue;\n }\n\n // Set defaults\n $opt['id'] = $dir;\n $opt['resolved'] = [];\n $opt['use-modules'] = [];\n if (!isset($opt['publish'])) { $opt['publish'] = true; }\n if (!isset($opt['process'])) { $opt['process'] = true; }\n if (!isset($opt['ignore'])) { $opt['ignore'] = false; }\n if (!isset($opt['merge'])) { $opt['merge'] = false; }\n\n // No files to process\n if (!isset($opt['files'])) { $opt['files'] = [ '*.*' ]; }\n if (is_string($opt['files'])) { $opt['files'] = [ $opt['files'] ]; }\n\n // Process & publish explicity turned off, ignore directory\n if ((!$opt['process'] && !$opt['publish']) || $opt['ignore']) { continue; }\n\n // Modules\n $modules = isset($map['modules']) ? $map['modules'] : [];\n if (isset($opt['modules']))\n {\n $modules = array_merge($modules, $opt['modules']);\n }\n\n foreach ($opt['files'] as $file)\n {\n // Do flags\n if (strpos($file, ' !') !== false)\n {\n $flags = explode(' !', $file);\n $file = trim( array_shift($flags) );\n }\n else\n {\n $flags = [];\n }\n\n if (strpos($file, '*') !== false)\n {\n $rsearch = file::find($path, $file);\n }\n else\n {\n $rsearch[$file] = fs::ds($root, $dir, $file);\n }\n\n // Get modules & resolve file\n foreach ($rsearch as $sfile => $_)\n {\n if (substr($sfile, 0, 5) === 'dist~')\n {\n continue;\n }\n\n if (isset($opt['resolved'][ fs::ds($dir, $sfile) ]))\n {\n continue;\n }\n\n list($kfile, $cfile, $module) =\n static::resolve_file_module($sfile, $modules);\n\n if ($module && !in_array($module, $opt['use-modules']))\n {\n $opt['use-modules'][] = $module;\n }\n\n $opt['resolved'][ fs::ds($dir, $sfile) ] = [\n 'id' => $dir,\n 'module' => $module ? $modules[$module] : [],\n 'flags' => $flags,\n // File in source directory\n 'compressed' => fs::ds($dir, $cfile),\n 'source' => fs::ds($dir, $sfile),\n 'resolved' => fs::ds($dir, $kfile),\n // File in dist~ directory\n 'compressed_dist' => fs::ds($dir, 'dist~', $cfile),\n 'source_dist' => fs::ds($dir, 'dist~', $sfile),\n 'resolved_dist' => fs::ds($dir, 'dist~', $kfile),\n ];\n }\n }\n }\n }", "title": "" }, { "docid": "ea4b589943e40b0a697196a4c45df825", "score": "0.43906677", "text": "public static function update()\n {\n $sourcePath = self::getSourcePath();\n $targetPath = self::getTargetPath();\n\n // skip rendering CSS files, if no stylesheets exist or phpsass is not installed (optional dependency)\n if (!is_dir($sourcePath)) {\n // nothing to do\n return;\n }\n\n if (!is_dir($targetPath)) {\n FileUtil::makedir($targetPath);\n }\n\n // check if source has changed\n $updated = Cache::fetch('style.update');\n if ($updated !== false && $updated > filemtime($sourcePath)) {\n\n // check all files in the source folder for modifications\n if (Config::getDetail('stylesheet', 'check_file_level', self::$defaultConfig)) {\n $needUpdate = false;\n\n $dir = new \\DirectoryIterator($sourcePath);\n foreach ($dir as $file) {\n /** @var \\DirectoryIterator $file */\n\n $filename = $file->getFilename();\n\n // ignore dirs\n if ($file->isDot() || $file->isDir() || strpos($filename, '.#') === 0) {\n continue;\n }\n\n if ($updated < filemtime($sourcePath.$filename)) {\n $needUpdate = true;\n break;\n }\n } // foreach dir\n\n if (!$needUpdate) {\n return;\n }\n } else {\n return;\n }\n }\n\n $dir = new \\DirectoryIterator($sourcePath);\n\n // get instance of SASS parser (if available)\n $parser = self::getParser();\n\n // remember last update (begin with this file as dependency)\n $lastDependencyUpdate = filemtime(__FILE__);\n\n // list of files to generate\n $scssFiles = [];\n\n // first step: generate list of files and get last updated dependency file\n foreach ($dir as $file) {\n /** @var \\DirectoryIterator $file */\n\n $filename = $file->getFilename();\n\n // ignore dirs\n if ($file->isDot() || $file->isDir() || strpos($filename, '.#') === 0) {\n continue;\n }\n\n // files beginning with underscore are sub blocks, don't add them to the file list\n if (strpos($filename, '_') === 0) {\n $lastDependencyUpdate = max($lastDependencyUpdate, filemtime($sourcePath.$filename));\n } else {\n $scssFiles[] = $filename;\n }\n } // foreach dir\n\n foreach ($scssFiles as $filename) {\n\n // does target exist? does it have an older timestamp?\n $savefile = $targetPath.str_replace('.scss', '.css', $filename);\n if (file_exists($savefile)) {\n $modified = filemtime($savefile);\n if (filemtime($sourcePath.$filename) <= $modified && $lastDependencyUpdate <= $modified) {\n continue;\n }\n }\n\n // save and set file permissions\n try {\n if ($parser) {\n file_put_contents($savefile, $parser->toCss(file_get_contents($sourcePath.$filename), false));\n } else {\n copy($sourcePath.$filename, $savefile);\n }\n\n chmod($savefile, Config::getDetail('stylesheet', 'file_perms', self::$defaultConfig));\n } catch (\\Exception $exception) {\n Logger::getInstance()->exception($exception);\n }\n } // foreach scssFiles\n\n Cache::store('style.update', time());\n\n }", "title": "" }, { "docid": "e394e8fc14fb7a53370e38d1abfe6403", "score": "0.43839145", "text": "public function assetCompile()\n {\n $this->taskWatch()\n ->monitor('public/theme/materialize/_scss', function () {\n $collection = $this->collectionBuilder();\n $collection->addTaskList(\n [\n $this->taskScss([\n 'public/theme/materialize/_scss/materialize.scss' => 'public/theme/materialize/css/materialize.css'\n ])->importDir('public/theme/materialize/_scss'),\n $this->taskMinify('public/theme/materialize/css/materialize.css')\n ->to('public/theme/materialize/css/materialize.min.css')\n ]\n )->run();\n })\n ->monitor('public/theme/materialize/_js', function () {\n $this->taskConcat(['public/theme/materialize/_js/*.js'])->to('public/theme/materialize/js/app.js')->run();\n $this->taskMinify('public/theme/materialize/js/app.js')->to('public/theme/materialize/js/app.min.js')->run();\n })\n ->run();\n }", "title": "" }, { "docid": "c6ecdec84dfb7f36cdda8a1f8111d7af", "score": "0.43735555", "text": "function system_renderCSSs($cssArray, $skipOptimzation = false)\n{\n if ($skipOptimzation) {\n $counter = 0;\n foreach ($cssArray['name'] as $file) {\n ?>\n <link type=\"text/css\" href=\"<?= DEFAULT_URL ?><?= $file ?>\" rel=\"stylesheet\" /><?\n }\n } else {\n\n $relativePath = DEFAULT_URL.'/custom/domain_'.SELECTED_DOMAIN_ID.'/tmp';\n $physicalPath = EDIRECTORY_ROOT.'/custom/domain_'.SELECTED_DOMAIN_ID.'/tmp';\n\n if (!is_dir($physicalPath)) {\n mkdir($physicalPath);\n }\n\n // check if file exists\n $fileNameId = 0;\n if ($cssArray['id']) {\n foreach ($cssArray['id'] as $id) {\n $fileNameId += (int)$id;\n }\n }\n\n $currentFileName = system_returnPageByURL();\n $currentFileName = str_replace('/', '', $currentFileName);\n $currentFileName = str_replace('.', '', $currentFileName);\n $fileNameId = $currentFileName.'_'.$fileNameId;\n\n $fileNametoInclude = $relativePath.'/min_'.$fileNameId.'.css';\n $fileNameId = $physicalPath.'/min_'.$fileNameId.'.css';\n\n if (file_exists($fileNameId) && (int)filesize($fileNameId) > 0) {\n // just add as normal css\n } else {\n // build the file\n include_once(CLASSES_DIR.'/class_miniJS.php');\n\n //remove any other minified\n $deleteFiles = glob($physicalPath.\"/min_$currentFileName*.css\");\n if (is_array($deleteFiles) && $deleteFiles[0]) {\n foreach ($deleteFiles as $deleteFilename) {\n @unlink($deleteFilename);\n }\n }\n\n $handle = fopen($fileNameId, 'w+');\n if ($cssArray['name']) {\n foreach ($cssArray['name'] as $cssFile) {\n fwrite($handle, JSMin::minify(file_get_contents(EDIRECTORY_ROOT.$cssFile)));\n }\n }\n\n fclose($handle);\n }\n ?>\n <link type=\"text/css\" href=\"<?= $fileNametoInclude ?>\" rel=\"stylesheet\"/>\n <?\n }\n}", "title": "" }, { "docid": "9e3d50e560658b9b10160e586d2760bb", "score": "0.4373245", "text": "function hookPublicHead($args)\n {\n // get resources from a submodule\n queue_css_url(WEB_PLUGIN . '/Bookmeka/libraries/Teinte/tei2html.css');\n queue_js_url(WEB_PLUGIN . '/Bookmeka/libraries/Teinte/Tree.js');\n // path in plugin default structure\n queue_css_file('bookmeka');\n queue_js_file('bookmeka');\n }", "title": "" }, { "docid": "065f408286819638eac686656766fe9c", "score": "0.4358391", "text": "protected function lookForCompiled()\n {\n // TODO: load system from cache\n }", "title": "" }, { "docid": "1ae50c0732384c879d0203eea0d7e86c", "score": "0.43576708", "text": "private static function _stylesheets_combine(&$html) {\n\t\t//remove all stylesheets from the public page:\n\t\tif (self::$_remove_javascripts && !self::$_servercache_disable) {\n\n\t\t\t$css_construct = \"\";\n\n\t\t\t$sanitizer_css = WPTHEMEFOLDER . \"/wordpress-sanitizer.css\";\n\t\t\tif (file_exists($sanitizer_css)) {\n\t\t\t\t$css_construct .= file_get_contents($sanitizer_css) . \"\\r\\n\";\n\t\t\t}\n\n\t\t\t$css_already_combined = false;\n\n\t\t\t$success = preg_match_all('#<link[^>]*?href\\s*=\\s*[\\'\"]([^\\'\"]+?\\.css)#i', $html, $out);\n\n\t\t\t$target = $html_target = \"\";\n\t\t\t$external_sources = Array();\n\n\t\t\tif ($success) {\n\t\t\t\t$external_sources = $out[1];\n\n\t\t\t\t$all_targets = join(\"\", $external_sources);\n\t\t\t\t$code = md5($all_targets);\n\t\t\t\t$html_target = \"/css/{$code}.css\";\n\t\t\t\t$target = $_SERVER['DOCUMENT_ROOT'] . \"/css/{$code}.css\";\n\n\t\t\t\t//het cachefile niet opnieuw opslaan als functions.php en de post niet nieuwer zijn dan dat cachefile:\n\t\t\t\t//don't store the server cache file again if functions.php and the post are older than this same cache file:\n\t\t\t\tif (file_exists($target)) {\n\n\t\t\t\t\t$filemtime = filemtime(__FILE__);\n\t\t\t\t\tself::_post_time_get();\n\n\t\t\t\t\t$resource_time = filemtime($target);\n\n\t\t\t\t\tif ($resource_time > $filemtime && $resource_time > self::$_post_time) {\n\t\t\t\t\t\t$css_already_combined = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!$css_already_combined && $external_sources) {\n\n\t\t\t\tif ($external_sources) {\n\t\t\t\t\tforeach ($external_sources as $src) {\n\t\t\t\t\t\tif (preg_match('#(?:ie\\d+\\.css$)#', $src)) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//verwijder eventuele versienummers:\n\t\t\t\t\t\t//remove version numbers (in querystrings) if present:\n\t\t\t\t\t\t$file_src = preg_replace('#[?].+$#', \"\", self::$_wordpress_rootfolder . $src, 1);\n\n\t\t\t\t\t\tif (file_exists($file_src)) {\n\t\t\t\t\t\t\t$css_construct .= file_get_contents($file_src) . \"\\r\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//verwijder alle links naar externe stylesheets:\n\t\t\t\t//remove all links to external stylesheets:\n\t\t\t\tself::_stylesheets_delete_from_page($html, \"external\");\n\n\n\t\t\t\t//lees alle embedded CSS in:\n\t\t\t\t//collect all embedded CSS:\n\t\t\t\t$success = preg_match_all('#<style[^>]*>(.*?)</script>#si', $html, $out);\n\n\t\t\t\tif ($success) {\n\t\t\t\t\tforeach ($out[1] as $css) {\n\n\t\t\t\t\t\tif (!$css || !preg_match('#(?:' . self::$_protected_resources . ')#', $css)) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$css_construct .= $css . \"\\r\\n\";\n\t\t\t\t\t}\n\n\t\t\t\t\t//verwijder alle embedded stylesheets uit de pagina:\n\t\t\t\t\t//remove all embeddes stylesheets from the page:\n\t\t\t\t\tself::_stylesheets_delete_from_page($html, \"embedded\");\n\t\t\t\t}\n\n\t\t\t\t//cache het verzamelde javascript (mits dat er is):\n\t\t\t\tif ($css_construct) {\n\n\t\t\t\t\t//correcties van de CSS:\n\t\t\t\t\t//correct the CSS:\n\t\t\t\t\t$css_construct = preg_replace('#([\\'\"])webfonts#', \"\\\\1/t/\" . self::$_theme_name . \"/webfonts\", $css_construct);\n\n\t\t\t\t\tself::_urls_shorten($css_construct);\n\n\t\t\t\t\tfile_put_contents($target, $css_construct);\n\t\t\t\t\tif (!locaal) {\n\t\t\t\t\t\tchmod($target, 0666);\n\t\t\t\t\t}\n\n\t\t\t\t\t//sla ook een gzipped versie op:\n\t\t\t\t\t//also store a gzipped version of the server cache file:\n\t\t\t\t\t$gzipped = gzencode($css_construct);\n\t\t\t\t\tfile_put_contents($target . \".gzip\", $gzipped);\n\t\t\t\t\tif (!locaal) {\n\t\t\t\t\t\tchmod($target . \".gzip\", 0666);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (($css_already_combined || $css_construct) && $html_target) {\n\t\t\t\tself::_stylesheets_delete_from_page($html, \"embedded\");\n\t\t\t\tself::_stylesheets_delete_from_page($html, \"external\");\n\n\t\t\t\t//link naar het verzamelde javascript:\n\t\t\t\t//inject a link to the collected javascript:\n\t\t\t\t$html = str_replace(\"</head>\", \"<link rel='stylesheet' href='\" . \"{$html_target}'>\\r\\n</head>\", $html);\n\t\t\t}\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "6177e884702629633acc37b6998e66cf", "score": "0.43529132", "text": "function isBuilt();", "title": "" }, { "docid": "6977a116b4e7e8a2257d0a0f8e862d35", "score": "0.43486872", "text": "public static function build () {\n self::log(sprintf('Identified %s target assets', count(self::$manifest)));\n\n foreach (self::$manifest as $target_asset => $source_asset_collection) {\n \n if (self::$conditional_build) {\n if (!self::conditional_test($target_asset)) {\n self::log(sprintf('Skipping %s (no matches)', $target_asset));\n continue;\n } else {\n self::log(sprintf('Conditional match: %s', $target_asset));\n }\n }\n\n self::log(sprintf('Building %s...', $target_asset));\n self::log(\"Step 1: Minify...\");\n\n foreach ($source_asset_collection as $source_asset) {\n self::log(sprintf(' |`-%s', $source_asset['file']));\n if (isset($source_asset['minify']) &&\n strtolower($source_asset['minify']) === 'no') {\n self::log(' | `-Skipping minification');\n } else {\n $temp_files[] = self::minify($source_asset['file']);\n }\n }\n\n self::log('Step 2: Concatenate...');\n\n self::concat($temp_files, $target_asset);\n\n self::log('Build successful' . \"\\n\");\n }\n }", "title": "" }, { "docid": "35cd66f1ab05b58cdd58d8864857183c", "score": "0.43451944", "text": "function compile_style()\n\t{\n\t\t$compiled\t= $content;\n\t\t$content\t= preg_replace(\"/\\\"/\", \"\\\\\\\"\", $content);\n\t\tswitch ($lang) {\n\t\t\tcase \"lessc\":\n\t\t\tcase \"less\":\n\t\t\t\tif (empty(`which lessc`))\n\t\t\t\t{\n\t\t\t\t\terror_log(\"lessc module not found (run `npm i -g lessc` to install)\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t$compiled = `echo \"$content\" | lessc - --compress`;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"stylus\":\n\t\t\t\tif (empty(`which stylus`))\n\t\t\t\t{\n\t\t\t\t\terror_log(\"stylus module not found (run `npm i -g stylus` to install)\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t$compiled = `echo \"$content\" | stylus --compress`;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tdefault:\n\t\t\t\t/* Nothing to compile */\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// Return result\n\t\treturn $compiled;\n\t}", "title": "" }, { "docid": "7fd21bc03a5577c8c651f5d7920238fa", "score": "0.43443984", "text": "private function loadDependencies_fn() \r\n\t\t{\r\n\t\t\t//------------------------------------------------------\r\n\t\t\t$fileRequired = RGS_Company::$gLibsDir . trailingslashit( 'fpdf' ) . 'fpdf.php';\r\n\t\t\tif( file_exists( $fileRequired ) ):\r\n\t\t\t\trequire_once( $fileRequired );\r\n\t\t\tendif;\r\n\t\t\t//------------------------------------------------------\r\n\t\t\t$dirPlugins = RGS_Company::$gLibsDir . trailingslashit( 'fpdf' ) . trailingslashit( 'plugins' );\r\n\t\t\t$fileRequired = $dirPlugins . 'loadPlugins.php';\r\n\t\t\tif( file_exists( $fileRequired ) ):\r\n\t\t\t\trequire_once( $fileRequired );\r\n\t\t\tendif;\r\n\t\t\t//------------------------------------------------------\r\n\t\t}", "title": "" }, { "docid": "5e6bf21f51bf117b92484238c21c8cda", "score": "0.43418312", "text": "protected function _addDependencies() {\n $files = array($this->file, // ... source\n DOKU_INC.'inc/parser/parser.php', // ... parser\n DOKU_INC.'inc/parser/handler.php', // ... handler\n );\n $files = array_merge($files, getConfigFiles('main')); // ... wiki settings\n\n $this->depends['files'] = !empty($this->depends['files']) ? array_merge($files, $this->depends['files']) : $files;\n parent::_addDependencies();\n }", "title": "" }, { "docid": "3aef13ed04c12c75a827d40b9b62dff4", "score": "0.43384087", "text": "public function build()\n\t{\t\t\n\t\t$this->find_all_files($this->config['dir']['page']); // get all page files under _pages/\n\t}", "title": "" }, { "docid": "6e0686037931fa80a40c8bf59db8cf90", "score": "0.4332464", "text": "function link_tag($href = '', string $rel = 'stylesheet', string $type = 'text/css', string $title = '', string $media = '', bool $indexPage = false, string $hreflang = '', $updateOnFileMod = false): string\n{\n $link = '<link ';\n\n // extract fields if needed\n if (is_array($href))\n {\n $rel = $href['rel'] ?? $rel;\n $type = $href['type'] ?? $type;\n $title = $href['title'] ?? $title;\n $media = $href['media'] ?? $media;\n $hreflang = $href['hreflang'] ?? '';\n $indexPage = $href['indexPage'] ?? $indexPage;\n $href = $href['href'] ?? '';\n }\n\n if (! preg_match('#^([a-z]+:)?//#i', $href))\n {\n if ($indexPage === true)\n {\n $link .= 'href=\"' . site_url($href) . '\" ';\n }\n else\n {\n \n if ($updateOnFileMod)\n {\n $path = ROOTPATH . '/public/' . $href;\n $filemtime = filemtime($path);\n $link .= 'href=\"' . slash_item('baseURL') . $href . '?v'. $filemtime . '\" ';\n } \n else\n {\n $link .= 'href=\"' . slash_item('baseURL') . $href . '\" ';\n }\n }\n }\n else\n {\n $link .= 'href=\"' . $href . '\" ';\n }\n\n if ($hreflang !== '')\n {\n $link .= 'hreflang=\"' . $hreflang . '\" ';\n }\n\n $link .= 'rel=\"' . $rel . '\" ';\n\n if (! in_array($rel, ['alternate', 'canonical'], true))\n {\n $link .= 'type=\"' . $type . '\" ';\n }\n\n if ($media !== '')\n {\n $link .= 'media=\"' . $media . '\" ';\n }\n\n if ($title !== '')\n {\n $link .= 'title=\"' . $title . '\" ';\n }\n\n return $link . '/>';\n}", "title": "" }, { "docid": "14261d41796c8871a161f4c97a8131cc", "score": "0.4330301", "text": "function get_dependency_lookup($file)\r\n{\r\n static $cache = array();\r\n if (isset($cache[$file])) return $cache[$file];\r\n if (!file_exists($file)) {\r\n echo \"File doesn't exist: $file\\n\";\r\n return array();\r\n }\r\n $fh = fopen($file, 'r');\r\n $deps = array();\r\n while (!feof($fh)) {\r\n $line = fgets($fh);\r\n if (strncmp('class', $line, 5) === 0) {\r\n // The implementation here is fragile and will break if we attempt\r\n // to use interfaces. Beware!\r\n $arr = explode(' extends ', trim($line, ' {'.\"\\n\\r\"), 2);\r\n if (count($arr) < 2) break;\r\n $parent = $arr[1];\r\n $dep_file = HTMLPurifier_Bootstrap::getPath($parent);\r\n if (!$dep_file) break;\r\n $deps[$dep_file] = true;\r\n break;\r\n }\r\n }\r\n fclose($fh);\r\n foreach (array_keys($deps) as $file) {\r\n // Extra dependencies must come *before* base dependencies\r\n $deps = get_dependency_lookup($file) + $deps;\r\n }\r\n $cache[$file] = $deps;\r\n return $deps;\r\n}", "title": "" }, { "docid": "7e05a8fe4226d34b52c79e45a84a3fc1", "score": "0.43272194", "text": "function smartly_build_css($smartly_tiles = null, $delimiters = null, $base_css = null, $skin_css = null, $user_css = null, $settings = array()) {\n\n $smartly_data = $GLOBALS['smartly_data'];\n $mods_repo = $GLOBALS['mods_repo'];\n $mods_enabled = $GLOBALS['mods_enabled'];\n $inputJSON = $GLOBALS['inputJSON'];\n $fontsize_calc = strval($settings['fontSize'] * 1.5) . \"px\";\n $fontsize_calc_lg = strval($settings['fontSize'] * 1.75) . \"px\";\n $lb = \"\\r\\n\\r\\n\"; // line break for future use\n\n foreach ($smartly_data['dashboard']['mods'] as $mod => $mod_data) {\n if (!(is_null($mod_data['value'])) && $mods_repo['dashboard'][$mod]) {\n\n switch ($mods_repo['dashboard'][$mod]['type']) {\n case 'select':\n\n $token_replacements = array(\n '[value]' => $mod_data['value'],\n '[grid_gap]' => $inputJSON['gridGap'],\n '[grid_gap_header]' => $inputJSON['gridGap'] + 60\n );\n\n $css = $mods_repo['dashboard'][$mod]['value'][$mod_data['value']]['css'] ? $mods_repo['dashboard'][$mod]['value'][$mod_data['value']]['css'] : $mods_repo['dashboard'][$mod]['value']['default']['css'];\n\n break;\n\n case 'checkbox':\n\n $token_replacements = array(\n '[grid_gap]' => $inputJSON['gridGap'],\n '[grid_gap_header]' => $inputJSON['gridGap'] + 60\n );\n\n //print_r($mod);\n //print_r($mod_data['value']);\n if ($mod_data['value'] > 0) {\n $css = $mods_repo['dashboard'][$mod]['default']['css'];\n }\n break;\n\n default:\n\n $token_replacements = array(\n '[value]' => $mod_data['value'],\n '[grid_gap]' => $inputJSON['gridGap'],\n '[grid_gap_header]' => $inputJSON['gridGap'] + 60\n ); \n\n $css = $mods_repo['dashboard'][$mod]['css'][$mod_data['value']] ? $mods_repo['dashboard'][$mod]['css'][$mod_data['value']] : $mods_repo['dashboard'][$mod]['css']['default'];\n\n }\n\n // check if the mod has tiletype specific css and if not, use default css. do token replacements as needed.\n $smartly_css['mods'][$mod][] = str_replace(array_keys($token_replacements), $token_replacements, $css);\n\n } \n }\n\n foreach ($smartly_tiles as $smart_id => $smart_data) {\n\n foreach ($mods_enabled['tiletype'] as $mod => $tiletype) {\n if (in_array($smart_data['template'], $tiletype) && $smart_data['mods'][$mod]['value'] && $smart_data['mods'][$mod]['value'] !== 'unchecked' && $smart_data['mods'][$mod]['value'] !== 'default') {\n\n\n switch ($mods_repo['tiletype'][$mod]['type']) {\n\n case 'select':\n\n $token_replacements = array(\n '[tile_id]' => $smart_id,\n '[value]' => $smart_data['mods'][$mod]['value'],\n '[fontsize_calc]' => strval($settings['fontSize'] * 1.5) . \"px\",\n '[fontsize_calc_lg]' => strval($settings['fontSize'] * 1.75) . \"px\",\n '[padding_calc]' => strval($settings['fontSize'] / 14) . \"em\",\n '[padding_adjust]' => strval(9 - $smart_data['mods'][$mod]['value'])\n );\n\n if ($mods_repo['tiletype'][$mod]['css']['value']['default']) { // value based lookup\n $css = $mods_repo['tiletype'][$mod]['css']['value'][$smart_data['template']][$smart_data['mods'][$mod]['value']] ? $mods_repo['tiletype'][$mod]['css']['value'][$smart_data['template']][$smart_data['mods'][$mod]['value']] : $mods_repo['tiletype'][$mod]['css']['value']['default'][$smart_data['mods'][$mod]['value']];\n } else { // template based lookup\n $css = $mods_repo['tiletype'][$mod]['css'][$smart_data['template']] ? $mods_repo['tiletype'][$mod]['css'][$smart_data['template']] : $mods_repo['tiletype'][$mod]['css']['default'];\n }\n\n // check if the mod has tiletype specific css and if not, use default css. do token replacements as needed.\n $smartly_css['mods'][$mod][] = str_replace(array_keys($token_replacements), $token_replacements, $css);\n\n break;\n\n default:\n\n $token_replacements = array(\n '[tile_id]' => $smart_id,\n '[value]' => $smart_data['mods'][$mod]['value'],\n '[fontsize_calc]' => strval($settings['fontSize'] * 1.5) . \"px\",\n '[fontsize_calc_lg]' => strval($settings['fontSize'] * 1.75) . \"px\",\n '[padding_calc]' => strval($settings['fontSize'] / 14) . \"em\",\n '[padding_adjust]' => strval(9 - $smart_data['mods'][$mod]['value'])\n );\n\n $css = $mods_repo['tiletype'][$mod]['css'][$smart_data['template']] ? $mods_repo['tiletype'][$mod]['css'][$smart_data['template']] : $mods_repo['tiletype'][$mod]['css']['default'];\n\n // check if the mod has tiletype specific css and if not, use default css. do token replacements as needed.\n $smartly_css['mods'][$mod][] = str_replace(array_keys($token_replacements), $token_replacements, $css);\n\n }\n\n // iterate through modifiers that have values and add their css\n foreach ($smart_data['mods'][$mod]['modifier'] as $mod_modifier => $modifier_data) {\n if ($smart_data['mods'][$mod]['modifier'][$mod_modifier]['value'] && $smart_data['mods'][$mod]['modifier'][$mod_modifier]['value'] !== 'unchecked' && $smart_data['mods'][$mod]['modifier'][$mod_modifier]['value'] !== 'default') {\n\n $token_replacements = array(\n '[tile_id]' => $smart_id,\n '[value]' => $smart_data['mods'][$mod]['modifier'][$mod_modifier]['value'],\n '[fontsize_calc]' => strval($settings['fontSize'] * 1.5) . \"px\",\n '[fontsize_calc_lg]' => strval($settings['fontSize'] * 1.75) . \"px\",\n '[padding_calc]' => strval($settings['fontSize'] / 14) . \"em\"\n );\n\n $css = $mods_repo['tiletype'][$mod]['modifier'][$mod_modifier]['css'][$smart_data['template']] ? $mods_repo['tiletype'][$mod]['modifier'][$mod_modifier]['css'][$smart_data['template']] : $mods_repo['tiletype'][$mod]['modifier'][$mod_modifier]['css']['default'];\n\n $smartly_css['mods'][$mod . \"__\" . $mod_modifier][] = str_replace(array_keys($token_replacements), $token_replacements, $css);\n\n }\n }\n }\n }\n\n // @TODO: All of this shit needs to be a re-usable function, dear god.\n\n // if attribute tile, it could potentially be a 3rd party tile\n if ($smart_data['template'] == 'attribute') {\n if ($smart_data['templateExtra']) {\n\n if (array_key_exists($smart_data['templateExtra'],$mods_repo['contrib'])) {\n // we have an explicit match of contrib CSS\n\n $mod = $smart_data['templateExtra'];\n $mod_value = $smart_data['contrib'][$mod]['value'];\n\n $token_replacements = array(\n '[tile_id]' => $smart_id,\n '[value]' => $mod_value,\n '[fontsize_calc]' => strval($settings['fontSize'] * 1.5) . \"px\",\n '[fontsize_calc_lg]' => strval($settings['fontSize'] * 1.75) . \"px\",\n '[padding_calc]' => strval($settings['fontSize'] / 14) . \"em\"\n );\n\n // assume base mod for contrib is an 'enable/disable' checkbox\n if ($mod_value == '1' && $mods_repo['contrib'][$mod]['type'] == 'checkbox') {\n $css = $mods_repo['contrib'][$mod]['css'][$mod_value] ? $mods_repo['contrib'][$mod]['css'][$mod_value] : $mods_repo['contrib'][$mod]['css']['default'];\n\n // only add css if base modifier checkbox is checked (contrib mod on/off)\n $smartly_css['contrib'][$mod][] = str_replace(array_keys($token_replacements), $token_replacements, $css);\n\n // iterate through modifiers that have values and add their css\n // only if base mod is enabled or populated\n foreach ($smart_data['contrib'][$mod]['modifier'] as $mod_modifier => $modifier_data) {\n if ($smart_data['contrib'][$mod]['modifier'][$mod_modifier]['value']) {\n\n $mod_modifier_value = $smart_data['contrib'][$mod]['modifier'][$mod_modifier]['value'];\n $mod_modifier_type = $mods_repo['contrib'][$mod]['modifier'][$mod_modifier]['type'];\n\n $token_replacements = array(\n '[tile_id]' => $smart_id,\n '[value]' => $mod_modifier_value,\n '[fontsize_calc]' => strval($settings['fontSize'] * 1.5) . \"px\",\n '[fontsize_calc_lg]' => strval($settings['fontSize'] * 1.75) . \"px\",\n '[padding_calc]' => strval($settings['fontSize'] / 14) . \"em\"\n );\n\n switch ($mod_modifier_type) {\n case 'checkbox':\n //print_r($mod_modifier_value);\n if ($mod_modifier_value > 0) {\n $css = $mods_repo['contrib'][$mod]['modifier'][$mod_modifier]['css'];\n }\n break;\n\n case 'select':\n $css = $mods_repo['contrib'][$mod]['modifier'][$mod_modifier]['css'][$mod_modifier_value] ? $mods_repo['contrib'][$mod]['modifier'][$mod_modifier]['css'][$mod_modifier_value] : $mods_repo['contrib'][$mod]['modifier'][$mod_modifier]['css']['default'];\n\n break;\n\n default:\n $css = $mods_repo['contrib'][$mod]['modifier'][$mod_modifier]['css'][$mod_modifier_value] ? $mods_repo['contrib'][$mod]['modifier'][$mod_modifier]['css'][$mod_modifier_value] : $mods_repo['contrib'][$mod]['modifier'][$mod_modifier]['css']['default'];\n\n break;\n }\n\n $smartly_css['mods'][$mod . \"__\" . $mod_modifier][] = str_replace(array_keys($token_replacements), $token_replacements, $css);\n\n }\n }\n }\n\n } elseif (strpos($smart_data['templateExtra'], '-') === TRUE) {\n\n // check for fuzzy 3rd party patch\n $sub_match_array = explode(\"-\", $smart_data['templateExtra']);\n $sub_match = $sub_match_array[0];\n\n $mod_value = $smart_data['contrib'][$sub_match]['value'];\n\n // may have has explicit match 3rd party patch\n if (array_key_exists($sub_match, $mods_repo['contrib'])) {\n\n $token_replacements = array(\n '[tile_id]' => $smart_id,\n '[value]' => $mod_value,\n '[fontsize_calc]' => strval($settings['fontSize'] * 1.5) . \"px\",\n '[fontsize_calc_lg]' => strval($settings['fontSize'] * 1.75) . \"px\",\n '[padding_calc]' => strval($settings['fontSize'] / 14) . \"em\"\n );\n\n $css = $mods_repo['contrib'][$sub_match]['css'][$smart_data['contrib'][$sub_match]['value']] ? $mods_repo['contrib'][$sub_match]['css'][$smart_data['contrib'][$sub_match]['value']] : $mods_repo['contrib'][$sub_match]['css']['default'];\n\n $smartly_css['contrib'][$sub_match][] = str_replace(array_keys($token_replacements), $token_replacements, $css);\n $smartly_css['contrib'][$smart_data['templateExtra']][] = str_replace(array_keys($token_replacements), $token_replacements, $css);\n\n // iterate through modifiers that have values and add their css\n if ($mod_value == '1' && $mods_repo['contrib'][$sub_match]['type'] == 'checkbox') {\n // only add modifier values if base modifier checkbox is checked (contrib mod on/off)\n foreach ($smart_data['contrib'][$sub_match]['modifier'] as $mod_modifier => $modifier_data) {\n if ($smart_data['contrib'][$sub_match]['modifier'][$mod_modifier]['value']) {\n\n $mod_modifier_value = $smart_data['contrib'][$sub_match]['modifier'][$mod_modifier]['value'];\n $mod_modifier_type = $mods_repo['contrib'][$sub_match]['modifier'][$mod_modifier]['type'];\n\n $token_replacements = array(\n '[tile_id]' => $smart_id,\n '[value]' => $mod_modifier_value,\n '[fontsize_calc]' => strval($settings['fontSize'] * 1.5) . \"px\",\n '[fontsize_calc_lg]' => strval($settings['fontSize'] * 1.75) . \"px\",\n '[padding_calc]' => strval($settings['fontSize'] / 14) . \"em\"\n );\n\n switch ($mod_modifier_type) {\n case 'checkbox':\n //print_r($mod_modifier_value);\n if ($mod_modifier_value > 0) {\n $css = $mods_repo['contrib'][$sub_match]['modifier'][$mod_modifier]['css'];\n }\n break;\n\n case 'select':\n $css = $mods_repo['contrib'][$sub_match]['modifier'][$mod_modifier]['css'][$mod_modifier_value] ? $mods_repo['contrib'][$sub_match]['modifier'][$mod_modifier]['css'][$mod_modifier_value] : $mods_repo['contrib'][$sub_match]['modifier'][$mod_modifier]['css']['default'];\n\n break;\n\n default:\n $css = $mods_repo['contrib'][$sub_match]['modifier'][$mod_modifier]['css'][$mod_modifier_value] ? $mods_repo['contrib'][$sub_match]['modifier'][$mod_modifier]['css'][$mod_modifier_value] : $mods_repo['contrib'][$sub_match]['modifier'][$mod_modifier]['css']['default'];\n\n break;\n }\n\n $smartly_css['contrib'][$sub_match . \"__\" . $mod_modifier][] = str_replace(array_keys($token_replacements), $token_replacements, $css);\n\n }\n }\n }\n }\n }\n }\n }\n\n // check if tile has icon functionality (by checking if it has states)\n if ($smart_data['states']) {\n\n foreach ($smart_data['states'] as $state_name => $state_data) { //$state_code) {\n $icon_code = $state_data['code'];\n $icon_class = str_replace(\"_\", \".\", $state_data['class']);\n $icon_class_stock = $state_data['class'];\n $state_name = str_replace(\"_\", \".\", $state_name);\n\n $token_replacements = array(\n '[tile_id]' => $smart_id,\n '[value]' => $icon_code,\n '[fontsize_calc]' => strval($settings['fontSize'] * 1.5) . \"px\",\n '[fontsize_calc_lg]' => strval($settings['fontSize'] * 1.75) . \"px\",\n '[state]' => $state_name !== 'default' ? \".\" . $state_name : '',\n '[class_stock]' => $icon_class_stock,\n '[class]' => $icon_class\n );\n\n // icon is selected\n\n if (strlen($state_data['code']) > 0) {\n\n // if specific css exists for this tiletype, use it, otherwise use the default css.\n $processed_css = $mods_repo['tiletype']['icon']['css'][$smart_data['template']] ? $mods_repo['tiletype']['icon']['css'][$smart_data['template']] : $mods_repo['tiletype']['icon']['css']['default'];\n\n // look for and replace 'fixup' tokens with their specific fixup css\n preg_match_all('/\\[fixup-(.*)\\]/', $processed_css, $fixup_matches, PREG_SET_ORDER);\n\n // add to the token replacement array\n foreach ($fixup_matches as $index => $match) {\n $token_replacements[$match[0]] = $mods_repo['tiletype'][$match[1]]['css']['fixup']['icon'];\n }\n\n // check if the mod has tiletype specific css and if not, use default css. do token replacements as needed.\n $smartly_css['mods']['icon'][] = str_replace(array_keys($token_replacements), $token_replacements, $processed_css);\n }\n }\n }\n }\n\n\n if ($smartly_data['dashboard']['mods']['cal_devices'] || $settings['dashboard']['mods']['cal_devices_2col']) {\n\n $cal_devices_json = file_get_contents($settings['calibration']['source']); //json_dev\n $cal_devices_json = json_decode($cal_devices_json, true);\n\n if ($smartly_data['dashboard']['mods']['cal_devices']) {\n\n foreach ($smartly_data['dashboard']['mods']['cal_devices'] as $index => $device) {\n\n $key = array_search($device, array_column($cal_devices_json, 'value'));\n $height = $cal_devices_json[$key]['height'];\n $width = $cal_devices_json[$key]['width'];\n\n $bestmatch_p = smartly_calibrate(.8, $width, $settings['calibration']['colwidth'], $settings['calibration']['gridgap'], $settings['calibration']['colcount']);\n\n $smartly_css['calibration'][] = \"@media screen and (orientation: portrait) and (max-width:\" . ($width + 1) . \"px) and (min-width:\" . ($width - 1) . \"px){.dashboard{zoom:\" . $bestmatch_p['zoom'] . \"; -moz-transform:scale(\" . $bestmatch_p['zoom'] . \");}}\" . $lb;\n\n $bestmatch_h = smartly_calibrate(.8, $height, $settings['calibration']['colwidth'], $settings['calibration']['gridgap'], $settings['calibration']['colcount']);\n\n $smartly_css['calibration'][] = \"@media screen and (orientation: landscape) and (max-width:\" . ($height + 1) . \"px) and (min-width:\" . ($height - 1) . \"px){.dashboard{zoom:\" . $bestmatch_h['zoom'] . \"; -moz-transform:scale(\" . $bestmatch_h['zoom'] . \");}}\" . $lb;\n\n }\n }\n\n if ($smartly_data['dashboard']['mods']['cal_devices_2col']) {\n\n foreach ($smartly_data['dashboard']['mods']['cal_devices_2col'] as $index => $device) {\n\n $key = array_search($device, array_column($cal_devices_json, 'value'));\n $width = $cal_devices_json[$key]['width'];\n\n $bestmatch = smartly_calibrate(.8, $width, $settings['calibration']['colwidth'], $settings['calibration']['gridgap'], $settings['calibration']['colcount']);\n\n $smartly_css['calibration'][] = \"@media screen and (orientation: portrait) and (max-width:\" . ($width + 1) . \"px) and (min-width:\" . ($width - 1) . \"px){.dashboard{zoom:1; -moz-transform:scale(1);} .dashboard .wrapper { grid-template-columns: repeat(\" . $settings['calibration']['colcount'] . \", calc(50% - \" . ($settings['calibration']['gridgap'] - 1) . \"px))!important;}}\" . $lb;\n\n }\n }\n\n } \n\n // combine and optimize CSS\n\n $optimize = new \\CssOptimizer\\Css\\Optimizer;\n\n // iterate through individual mods css, optimize \n foreach (array_reverse($smartly_css['mods']) as $mod_name => $mod_css) {\n foreach ($mod_css as $css) {\n $smartly_mods_css[] = $css;\n }\n }\n\n // iterate through individual mods css, optimize \n foreach ($smartly_css['contrib'] as $mod_name => $mod_css) {\n foreach ($mod_css as $css) {\n $smartly_mods_css[] = $css;\n }\n }\n\n\n $optimized_css['mods'] = $optimize->optimizeCss(implode($lb, $smartly_mods_css));\n $optimized_css['calibration'] = $optimize->optimizeCss(implode($lb, $smartly_css['calibration']));\n\n $smartly_css_flat = [\n $delimiters['base'],\n trim($base_css),\n $delimiters['skin'],\n trim($skin_css),\n $delimiters['auto'],\n $optimized_css['mods'],\n $optimized_css['calibration'],\n $delimiters['user'],\n $user_css\n ];\n\n $smartly_css_flat = implode($lb, array_filter($smartly_css_flat));\n\n return $smartly_css_flat;\n\n}", "title": "" }, { "docid": "35177179f45869792df9fb47ba1ba930", "score": "0.43269715", "text": "protected function compile()\n {\n if (!strlen($this->linkTitle))\n {\n $this->linkTitle = $this->objFile->basename;\n }\n\n $strHref = \\Environment::get('request');\n\n // Remove an existing file parameter (see #5683)\n if (preg_match('/(&(amp;)?|\\?)file=/', $strHref))\n {\n $strHref = preg_replace('/(&(amp;)?|\\?)file=[^&]+/', '', $strHref);\n }\n\n $strHref .= (($GLOBALS['TL_CONFIG']['disableAlias'] || strpos($strHref, '?') !== false) ? '&amp;' : '?') . 'file=' . $this->urlEncode($this->singlePathSRC);\n\n $this->Template->link = $this->linkTitle;\n $this->Template->title = specialchars($this->linkTitle);\n $this->Template->href = $strHref;\n $this->Template->filesize = $this->getReadableSize($this->objFile->filesize, 1);\n $this->Template->icon = TL_ASSETS_URL . 'assets/contao/images/' . $this->objFile->icon;\n $this->Template->mime = $this->objFile->mime;\n $this->Template->extension = $this->objFile->extension;\n $this->Template->path = $this->objFile->dirname;\n }", "title": "" }, { "docid": "2dab8c4da3666ef4dfdadd9506ce9656", "score": "0.43269706", "text": "public function createcss(){\n /**\n * create the css links\n */\n $links = '';\n $files = $this->_registry->getCssFiles();\n $print_css_files = $this->_registry->getPrintCssFiles();\n\t\t$path = System_Registry_Configuration::get(System_Registry_Configuration::environment(), 'css', 'path');\n \n /**\n * Add all the CSS Files in the stack\n */\n foreach($files as $def){\n $links .= \"<link rel=\\\"stylesheet\\\" href=\\\"\". $path . $def['file'] .\"\\\" type=\\\"text/css\\\" media=\\\"\". $def['media'] .\"\\\" />\\n\";\n }\n \n /**\n * Add all the Print Css files if there are any. \n */\n foreach($print_css_files as $print_file){\n $links .= \"<link rel=\\\"stylesheet\\\" href=\\\"\". $path . $print_file .\"\\\" type=\\\"text/css\\\" media=\\\"print\\\" />\\n\";\n } \n \n /**\n * links the css fix files for lovely IE!!\n */\n $links .= '\n <!--[if IE 7]>\n <link rel=\"stylesheet\" href=\"/assets/css/ie7fix.css\" media=\"screen,projection\" type=\"text/css\" />\n <link rel=\"stylesheet\" href=\"/assets/css/ie7fixprint.css\" media=\"print\" type=\"text/css\" />\n <![endif]-->\n <!--[if IE 8]>\n <link rel=\"stylesheet\" href=\"/assets/css/ie8fix.css\" media=\"screen,projection\" type=\"text/css\" />\n <![endif]-->\n ';\n \n /**\n * create inline css\n */\n $css = $this->_registry->getInlinecss();\n $style = '';\n \n if(count($css)){\n $inline = '';\n $count = count($css);\n $media = '';\n \n for($x = 0; $x < $count; $x++){\n $style .= $this->getInlineCssBlock($css[$x]['css'], $css[$x]['media']); \n }\n }\n \n /**\n * return the complete css code\n */\n return $links . $style;\n }", "title": "" }, { "docid": "534f220d0ab16c8c968fc4693e830e15", "score": "0.43267283", "text": "function cstm_cds_css_main_file($cstm_cds_admin, $mixin_output = false) {\n\tglobal\n\t\t$cstm_cds_tablet_l,\n\t\t$cstm_cds_tablet_p,\n\t\t$cstm_cds_phone_l,\n\t\t$cstm_cds_phone_p;\n\n$cstm_cds_result_level = $cstm_cds_admin ? \"Admin\" : \"Public\";\n\n\nif ( $mixin_output ) {\n\n\t$desktop = '@import \"'.($cstm_cds_admin ? \"admin_\" : \"\").'desktop.scss\";';\n\t$tablet_l = '@import \"'.($cstm_cds_admin ? \"admin_\" : \"\").'tablet-l.scss\";';\n\t$tablet_p = '@import \"'.($cstm_cds_admin ? \"admin_\" : \"\").'tablet-p.scss\";';\n\t$mobile_l = '@import \"'.($cstm_cds_admin ? \"admin_\" : \"\").'mobile-l.scss\";';\n\t$mobile_p = '@import \"'.($cstm_cds_admin ? \"admin_\" : \"\").'mobile-p.scss\";';\n\t$retina = '@import \"'.($cstm_cds_admin ? \"admin_\" : \"\").'retina.scss\";';\n\n} else {\n\n\t$desktop = file_exists(CSTM_CDS_DIR.( $cstm_cds_admin ? \"admin_\" : \"\" ).\"desktop.css\" ) ? @file_get_contents( CSTM_CDS_DIR.( $cstm_cds_admin ? \"admin_\" : \"\" ).\"desktop.css\" ) : \"\";\n\t$tablet_l = file_exists(CSTM_CDS_DIR.( $cstm_cds_admin ? \"admin_\" : \"\" ).\"tablet-l.css\") ? @file_get_contents( CSTM_CDS_DIR.( $cstm_cds_admin ? \"admin_\" : \"\" ).\"tablet-l.css\" ) : \"\";\n\t$tablet_p = file_exists(CSTM_CDS_DIR.( $cstm_cds_admin ? \"admin_\" : \"\" ).\"tablet-p.css\") ? @file_get_contents( CSTM_CDS_DIR.( $cstm_cds_admin ? \"admin_\" : \"\" ).\"tablet-p.css\" ) : \"\";\n\t$mobile_l = file_exists(CSTM_CDS_DIR.( $cstm_cds_admin ? \"admin_\" : \"\" ).\"mobile-l.css\") ? @file_get_contents( CSTM_CDS_DIR.( $cstm_cds_admin ? \"admin_\" : \"\" ).\"mobile-l.css\" ) : \"\";\n\t$mobile_p = file_exists(CSTM_CDS_DIR.( $cstm_cds_admin ? \"admin_\" : \"\" ).\"mobile-p.css\") ? @file_get_contents( CSTM_CDS_DIR.( $cstm_cds_admin ? \"admin_\" : \"\" ).\"mobile-p.css\" ) : \"\";\n\t$retina = file_exists(CSTM_CDS_DIR.( $cstm_cds_admin ? \"admin_\" : \"\" ).\"retina.css\" ) ? @file_get_contents( CSTM_CDS_DIR.( $cstm_cds_admin ? \"admin_\" : \"\" ).\"retina.css\" ) : \"\";\n\n}\n\n\nreturn\n($mixin_output ? '@import \"'.($cstm_cds_admin ? \"admin_\" : \"\").'mixins.scss\";' : '').\n'/* =========================\n\t'.strtoupper($cstm_cds_result_level).' DESKTOP CSS\n========================= */\n\n'.$desktop.'\n\n/* =========================\n\t'.strtoupper($cstm_cds_result_level).' DESKTOP CSS END\n========================= */\n/* =========================\n\t'.strtoupper($cstm_cds_result_level).' RESPONSIVE CSS\n========================= */\n\n/* TABLET LANDSCAPE */\n@media (max-width: '.$cstm_cds_tablet_l.'px) {\n\n'.$tablet_l.'\n\n}\n\n/* TABLET PORTRAIT */\n@media (max-width: '.$cstm_cds_tablet_p.'px) {\n\n'.$tablet_p.'\n\n}\n\n/* MOBILE LANDSCAPE */\n@media (max-width: '.$cstm_cds_phone_l.'px) {\n\n'.$mobile_l.'\n\n}\n\n/* MOBILE PORTRAIT */\n@media (max-width: '.$cstm_cds_phone_p.'px) {\n\n'.$mobile_p.'\n\n}\n\n/* RETINA FIXES */\n@media only screen and (-webkit-min-device-pixel-ratio: 1.5),\n \t only screen and (-o-min-device-pixel-ratio: 3/2),\n \t only screen and (min--moz-device-pixel-ratio: 1.5),\n only screen and (min-device-pixel-ratio: 1.5) {\n\n'.$retina.'\n\n}\n/* =========================\n\t'.strtoupper($cstm_cds_result_level).' RESPONSIVE CSS END\n========================= */';\n\n}", "title": "" }, { "docid": "d38fef76b358c5375bea6a431cde8419", "score": "0.43249804", "text": "function drupal_install_modules($module_list = array()) {\n $files = module_rebuild_cache();\n $module_list = array_flip(array_values($module_list));\n do {\n $moved = FALSE;\n foreach ($module_list as $module => $weight) {\n $file = $files[$module];\n if (isset($file->info['dependencies']) && is_array($file->info['dependencies'])) {\n foreach ($file->info['dependencies'] as $dependency) {\n if (isset($module_list[$dependency]) && $module_list[$module] < $module_list[$dependency] +1) {\n $module_list[$module] = $module_list[$dependency] +1;\n $moved = TRUE;\n }\n }\n }\n }\n } while ($moved);\n asort($module_list);\n $module_list = array_keys($module_list);\n array_filter($module_list, '_drupal_install_module');\n module_enable($module_list);\n}", "title": "" }, { "docid": "b5398bccc254a425e2aa2475aefd0bd6", "score": "0.4315257", "text": "function createModuleRegistry() {\n\t$registry = ['blueprints' => [], 'templates' => [], 'pageModels' => []];\n\t\n\t// Add modules in site/modules\n\t$modulesFolder = kirby()->root('site') . \"/modules\";\n\tforeach (Dir::dirs($modulesFolder) as $folder) {\n\t\t$blueprint = $modulesFolder . \"/\". $folder . \"/\" . $folder . \".yml\";\n\t\t$template = $modulesFolder . \"/\". $folder . \"/\" . $folder . \".php\";\n\t\tif(F::exists($blueprint)) {\n\t\t\t$blueprintArray = Yaml::read($blueprint);\n\t\t\tif(!array_key_exists('status', $blueprintArray)) {\n\t\t\t\t$blueprintArray['status'] = [\n\t\t\t\t\t'draft' => true,\n\t\t\t\t\t'listed' => true,\n\t\t\t\t];\n\t\t\t}\n\t\t\t$registry['blueprints']['pages/module.'. $folder] = $blueprintArray;\n\t\t\t$registry['templates']['module.'. $folder] = $template;\n\t\t\t$registry['pageModels']['module.'. $folder] = option('medienbaecker.modules.model', 'ModulePage');\n\t\t}\n\t}\n\t\n\t// Add legacy modules to registry\n\t$moduleBlueprints = array_filter(kirby()->blueprints(), function($blueprint) {\n\t\treturn Str::startsWith($blueprint, 'module.');\n\t});\n\tif(!empty($moduleBlueprints)) {\n\t\t$blueprintsFolder = kirby()->root('blueprints');\n\t\t$snippetsFolder = kirby()->root('snippets');\n\t\tforeach($moduleBlueprints as $moduleBlueprint) {\n\t\t\t$blueprint = $blueprintsFolder . \"/pages/\" . $moduleBlueprint . \".yml\";\n\t\t\t$template = $snippetsFolder . \"/modules/\" . $moduleBlueprint . \".php\";\n\t\t\tif(F::exists($blueprint)) {\n\t\t\t\t$blueprintArray = Yaml::read($blueprint);\n\t\t\t\tif(!array_key_exists('status', $blueprintArray)) {\n\t\t\t\t\t$blueprintArray['status'] = [\n\t\t\t\t\t\t'draft' => true,\n\t\t\t\t\t\t'listed' => true,\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\t\tif(!array_key_exists('pages/'. $moduleBlueprint, $registry['blueprints'])) {\n\t\t\t\t\t$registry['blueprints']['pages/'. $moduleBlueprint] = $blueprintArray;\t\n\t\t\t\t}\n\t\t\t\tif(!array_key_exists($moduleBlueprint, $registry['templates'])) {\n\t\t\t\t\t$registry['templates'][$moduleBlueprint] = $template;\n\t\t\t\t}\n\t\t\t\tif(!array_key_exists($moduleBlueprint, $registry['pageModels'])) {\n\t\t\t\t\t$registry['pageModels'][$moduleBlueprint] = option('medienbaecker.modules.model', 'ModulePage');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\n\t// Add modules container blueprint with redirect field\n\t$registry['blueprints']['pages/modules'] = [\n\t\t'title' => 'Modules',\n\t\t'options' => [\n\t\t\t'changeSlug' => false,\n\t\t\t'changeStatus' => false,\n\t\t\t'changeTemplate' => false\n\t\t],\n\t\t'fields' => [\n\t\t\t'modules_redirect' => true\n\t\t]\n\t];\n\t\n\t// Add modules container model\n\t$registry['pageModels']['modules'] = 'ModulesPage';\n\t\n\t\n\treturn $registry;\n}", "title": "" }, { "docid": "8991fcae5d4e59e2b04f546f7550e705", "score": "0.43150628", "text": "function compile() {\n $this->say('Compiling (optimized).');\n $this->compile_(TRUE);\n }", "title": "" }, { "docid": "510a757421590c0553e9206f31025aa9", "score": "0.430927", "text": "protected function compile()\n {\n }", "title": "" }, { "docid": "5349aa8c5fa2e47b96ea5c7f5a27201b", "score": "0.43057042", "text": "function BuildFramework() {\n //$loader->add_subclass( 'BuildFramework' );\n }", "title": "" }, { "docid": "4f2a4dff2ea429f9eca0245bdcdaba36", "score": "0.43013418", "text": "function bastard_css_alter(&$css) {\n /* Remove some default Drupal css */\n $exclude = array(\n 'modules/aggregator/aggregator.css' => FALSE,\n 'modules/block/block.css' => FALSE,\n 'modules/book/book.css' => FALSE,\n 'modules/comment/comment.css' => FALSE,\n 'modules/dblog/dblog.css' => FALSE,\n 'modules/field/theme/field.css' => FALSE,\n 'modules/file/file.css' => FALSE,\n 'modules/filter/filter.css' => FALSE,\n 'modules/forum/forum.css' => FALSE,\n 'modules/help/help.css' => FALSE,\n 'modules/menu/menu.css' => FALSE,\n 'modules/node/node.css' => FALSE,\n 'modules/openid/openid.css' => FALSE,\n 'modules/poll/poll.css' => FALSE,\n 'modules/profile/profile.css' => FALSE,\n 'modules/search/search.css' => FALSE,\n 'modules/statistics/statistics.css' => FALSE,\n 'modules/syslog/syslog.css' => FALSE,\n 'modules/system/admin.css' => FALSE,\n 'modules/system/maintenance.css' => FALSE,\n 'modules/system/system.css' => FALSE,\n 'modules/system/system.admin.css' => FALSE,\n 'modules/system/system.maintenance.css' => FALSE,\n 'modules/system/system.messages.css' => FALSE,\n 'modules/system/system.theme.css' => FALSE,\n 'modules/system/system.menus.css' => FALSE,\n 'modules/taxonomy/taxonomy.css' => FALSE,\n 'modules/tracker/tracker.css' => FALSE,\n 'modules/update/update.css' => FALSE,\n 'modules/user/user.css' => FALSE,\n // Flexslider below\n //'sites/all/libraries/flexslider/flexslider.css' => FALSE,\n drupal_get_path('module', 'views') . '/css/views.css' => FALSE,\n );\n\n $css = array_diff_key($css, $exclude);\n\n /* Get rid of some default panel css */\n foreach ($css as $path => $meta) {\n if (strpos($path, 'threecol_33_34_33_stacked') !== FALSE || strpos($path, 'threecol_25_50_25_stacked') !== FALSE) {\n unset($css[$path]);\n }\n }\n}", "title": "" }, { "docid": "3d8859dfe5418c8723325230dd54490c", "score": "0.4299594", "text": "function generate_system_theme_css($css_properties)\r\n{\r\n $output = '';\r\n \r\n // Build a css include statement to retrieve all google fonts necessary for this theme like:\r\n // @import url(https://fonts.googleapis.com/css?family=Tangerine|Droid+Sans);\r\n\r\n // first, find all the google font families in the theme\r\n $google_font_families = get_google_font_families($css_properties);\r\n \r\n // then, build the @import url statement\r\n $google_fonts_url = '';\r\n $google_font_found = FALSE;\r\n $google_length = 0;\r\n $chars = array (\"'\",\"-\");\r\n\r\n foreach ($google_font_families as $key => $value) {\r\n $google_font_found = TRUE;\r\n $google_font = mb_substr($value,0,mb_strpos($value,'-',2)+2); // get the first google font family in the font stack ('-Tangerine-' or '-Droid Sans-')\r\n $google_font = str_replace($chars,'',$google_font); // remove the single quotes and dashes\r\n $google_font = str_replace(' ','+',$google_font); // replace any spaces with + sign (Tangerine and Droid+Sans)\r\n \r\n // build @import url statement with all google font families found\r\n // if this is the first font family found, create the @import statement\r\n if ($google_fonts_url == '') {\r\n // We can't use the // trick for the scheme for automatic scheme detection\r\n // because IE 7 & 8 has a bug where it will download the resource twice for link and import features.\r\n // This is probaably fixed in IE 9. We are going to always use https for now until IE 7 & 8\r\n // are no longer being used.\r\n $google_fonts_url = '@import url(https://fonts.googleapis.com/css?family=' . $google_font;\r\n\r\n } else { // append the font family to the @import statement\r\n $google_fonts_url .= '|' . $google_font;\r\n }\r\n }\r\n \r\n // lastly, if an @import url statement was created, then add it\r\n if ($google_font_found == TRUE) {\r\n $google_fonts_url .= ');';\r\n // Browser rules dictate that the @import statement MUST be the first thing in the css file or it won't work.\r\n $output .= $google_fonts_url . ' /* browsers require @import before any other css */' . \"\\r\\n\";\r\n }\r\n\r\n // organize the areas in the array so that the css file is written in the correct order\r\n $css_properties = \r\n array(\r\n 'site_wide' => $css_properties['site_wide'],\r\n 'body' => $css_properties['body'],\r\n 'site_border' => $css_properties['site_border'],\r\n 'email_border' => $css_properties['email_border'],\r\n 'mobile_border' => $css_properties['mobile_border'],\r\n 'site_top' => $css_properties['site_top'],\r\n 'site_header' => $css_properties['site_header'],\r\n 'area_border' => $css_properties['area_border'],\r\n 'area_header' => $css_properties['area_header'],\r\n 'page_wrapper' => $css_properties['page_wrapper'],\r\n 'page_border' => $css_properties['page_border'],\r\n 'page_header' => $css_properties['page_header'],\r\n 'page_content' => $css_properties['page_content'],\r\n 'page_content_left' => $css_properties['page_content_left'],\r\n 'page_content_right' => $css_properties['page_content_right'],\r\n 'sidebar' => $css_properties['sidebar'],\r\n 'page_footer' => $css_properties['page_footer'],\r\n 'area_footer' => $css_properties['area_footer'],\r\n 'site_footer_border' => $css_properties['site_footer_border'],\r\n 'site_footer' => $css_properties['site_footer'],\r\n 'ad_region' => $css_properties['ad_region'],\r\n 'menu_region' => $css_properties['menu_region']\r\n );\r\n\r\n $site_wide_properties = array();\r\n \r\n // loop through the areas to put the site wide properties into it's own array and then remove it from the css properties\r\n foreach($css_properties as $area => $objects) {\r\n if ($area == 'site_wide') {\r\n $site_wide_properties = $objects;\r\n unset($css_properties[$area]);\r\n break;\r\n }\r\n }\r\n \r\n // output pre styling\r\n $output .= $site_wide_properties['base_object']['base_module']['pre_styling'];\r\n \r\n // add a the body css rules to the output\r\n $output .= 'body' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" . \r\n 'padding: 0.01em;' . \"\\r\\n\" . \r\n 'margin: 0em 0em 0em 0em;' . \"\\r\\n\";\r\n 'font-size: 100%;' . \"\\r\\n\"; //don't inherit OS browser style defaults\r\n \r\n $global_font_family = 'sans-serif'; // set default if none\r\n \r\n // if there is a font family property, then add it and set the global font family to be used later\r\n if ($site_wide_properties['base_object']['text']['font_family'] != '') {\r\n // check for google font (and remove leading font used only to identify a google font)\r\n $allfonts = $site_wide_properties['base_object']['text']['font_family'];\r\n if (mb_substr($allfonts, 0, 2) == '\\'-') {\r\n // strip off leading font\r\n $global_font_family = mb_substr($allfonts,mb_strpos($allfonts,',',2)+1);\r\n } else {\r\n // don't strip off any fonts\r\n $global_font_family = $allfonts;\r\n }\r\n $output .= 'font-family: ' . $global_font_family . ';' . \"\\r\\n\";\r\n \r\n // else set a default font of arial and set the global font family to be used later\r\n } else {\r\n $output .= 'font-family: sans-serif;' . \"\\r\\n\";\r\n }\r\n \r\n // if there is a font color property, then add it\r\n if ($site_wide_properties['base_object']['text']['font_color'] != '') {\r\n $output .= 'color: #' . $site_wide_properties['base_object']['text']['font_color'] . ';' . \"\\r\\n\";\r\n \r\n // else set a default font color of blank\r\n } else {\r\n $output .= 'color: #000000;' . \"\\r\\n\";\r\n $site_wide_properties['base_object']['text']['font_color'] = '000000';\r\n }\r\n\r\n $font_color = $site_wide_properties['base_object']['text']['font_color'];\r\n \r\n // if there is a font size property, then add it\r\n if ($site_wide_properties['base_object']['text']['font_size'] != '') {\r\n $output .= 'font-size: ' . $site_wide_properties['base_object']['text']['font_size'] . ';' . \"\\r\\n\";\r\n '}' . \"\\r\\n\";\r\n // else set a default font size of .75em which is about 12px\r\n } else {\r\n $output .= 'font-size: .75em;' . \"\\r\\n\";\r\n '}' . \"\\r\\n\";\r\n $site_wide_properties['base_object']['text']['font_size'] = '.75em';\r\n }\r\n \r\n // if there is a font style property, then add it\r\n if ($site_wide_properties['base_object']['text']['font_style'] != '') {\r\n $output .= 'font-style: ' . $site_wide_properties['base_object']['text']['font_style'] . ';' . \"\\r\\n\";\r\n }\r\n \r\n // if there is a font weight property, then add it\r\n if ($site_wide_properties['base_object']['text']['font_weight'] != '') {\r\n $output .= 'font-weight: ' . $site_wide_properties['base_object']['text']['font_weight'] . ';' . \"\\r\\n\";\r\n }\r\n \r\n // if there is a line height property, then add it\r\n if ($site_wide_properties['base_object']['text']['line_height'] != '') {\r\n $output .= 'line-height: ' . $site_wide_properties['base_object']['text']['line_height'] . ';' . \"\\r\\n\";\r\n \r\n // else set a default font size of 1.25em\r\n } else {\r\n $output .= 'line-height: 1.25em;' . \"\\r\\n\";\r\n }\r\n \r\n // if there is a background property in the body area of the css properties array, then output it\r\n if ($css_properties['body']['base_object']['base_module']['background_type'] != '') {\r\n $output .= output_css_properties($css_properties['body']['base_object']['base_module']);\r\n \r\n // else default the background to white\r\n } else {\r\n $output .= 'background: #FFFFFF;' . \"\\r\\n\";\r\n }\r\n \r\n // remove the body properties from the array, this is so that we do not to loop through it again later\r\n unset($css_properties['body']);\r\n \r\n // close the body tag\r\n $output .= '}' . \"\\r\\n\";\r\n \r\n // if there is no font size property, then set inputs so they don't inherit OS browser style defaults\r\n if ($site_wide_properties['base_object']['text']['font_size'] == '') {\r\n $output .= '.software_input_radio, .software_input_checkbox' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" . \r\n 'height: 0.75em;' . \"\\r\\n\" . \r\n 'width: 0.75em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\";\r\n }\r\n \r\n // if there is general header properties in the site wide properties, then output them\r\n if (empty($site_wide_properties['base_object']['headings_general']) == FALSE) {\r\n $output .= \r\n 'h1, h2, h3, h4, h5, h6' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\";\r\n \r\n // build and output the properties\r\n $output .= output_css_properties($site_wide_properties['base_object']['headings_general']);\r\n \r\n $output .= '}' . \"\\r\\n\";\r\n }\r\n \r\n // loop through each site wide heading and output it\r\n for ($i = 1; $i <= 6; $i++) {\r\n // if there is heading 1 properties in the site wide properties, then output them\r\n if (empty($site_wide_properties['base_object']['heading_' . $i]) == FALSE) {\r\n $output .= \r\n 'h' . $i . \"\\r\\n\" .\r\n '{' . \"\\r\\n\";\r\n \r\n // build and output the properties\r\n $output .= output_css_properties($site_wide_properties['base_object']['heading_' . $i]);\r\n \r\n $output .= '}' . \"\\r\\n\";\r\n }\r\n }\r\n \r\n // if there are link properties in the site wide properties, then output them\r\n if (empty($site_wide_properties['base_object']['links']) == FALSE) {\r\n $output .= \r\n 'a:link, a:active, a:visited' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\";\r\n \r\n // build and output the properties\r\n $output .= output_css_properties($site_wide_properties['base_object']['links']);\r\n \r\n $output .= '}' . \"\\r\\n\";\r\n }\r\n \r\n // if there are link hover properties in the site wide properties, then output them\r\n if (empty($site_wide_properties['base_object']['links_hover']) == FALSE) {\r\n $output .= \r\n 'a:hover, a:focus' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\";\r\n \r\n // build and output the properties\r\n $output .= output_css_properties($site_wide_properties['base_object']['links_hover']);\r\n \r\n $output .= '}' . \"\\r\\n\";\r\n }\r\n \r\n // if there is paragraph properties in the site wide properties, then output them\r\n if (empty($site_wide_properties['base_object']['paragraph']) == FALSE) {\r\n $output .= \r\n 'p' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\";\r\n \r\n // build and output the properties\r\n $output .= output_css_properties($site_wide_properties['base_object']['paragraph']);\r\n \r\n $output .= '}' . \"\\r\\n\";\r\n }\r\n \r\n $output_input_properties = '';\r\n \r\n // if there are input properties, then output them\r\n if (empty($site_wide_properties['base_object']['input']) == FALSE) {\r\n $output_input_properties = output_css_properties($site_wide_properties['base_object']['input']);\r\n }\r\n\r\n // output input styling\r\n $output .=\r\n 'input, select' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'font-family: ' . $global_font_family . ';' . \"\\r\\n\" . // add body font in case form field font != text font in theme designer\r\n '}' . \"\\r\\n\" .\r\n 'input, select,' . \"\\r\\n\" .\r\n '.software_input_text,' . \"\\r\\n\" .\r\n '.software_input_password,' . \"\\r\\n\" . \r\n '.software_select,' . \"\\r\\n\" . \r\n '.software_textarea' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin: 0em;' . \"\\r\\n\" . \r\n 'vertical-align: middle;' . \"\\r\\n\" .\r\n 'font-size: 100%;' . \"\\r\\n\" . //don't inherit OS browser style defaults\r\n $output_input_properties .\r\n '}' . \"\\r\\n\" .\r\n 'input[type=submit]' . \"\\r\\n\" . // override for chrome and safari defaults for input buttons (necessary if hover properties are used in Theme Designer)\r\n //'select.software_select' . \"\\r\\n\" . // don't override pick lists in v8.6 since chrome and safari lose pick list drop down button\r\n '{' . \"\\r\\n\" .\r\n '-webkit-appearance: none;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.software_comments .software_textarea' . \"\\r\\n\" . // extend software_textarea when inside software_comments to be about 100% of width\r\n '{' . \"\\r\\n\" .\r\n 'width: 98%;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\";\r\n\r\n // get the input field colors to share with pick list options\r\n $input_field_color = $site_wide_properties['base_object']['input']['font_color'];\r\n $input_field_background_color = $site_wide_properties['base_object']['input']['background_color'];\r\n $input_field_padding_left = $site_wide_properties['base_object']['input']['padding_left'];\r\n $input_field_padding_right = $site_wide_properties['base_object']['input']['padding_right'];\r\n if ($input_field_color == '') {\r\n $input_field_color = \"000000\";\r\n }\r\n if ($input_field_background_color == '') {\r\n $input_field_background_color = \"FFFFFF\";\r\n }\r\n if ($input_field_padding_left == '') {\r\n $input_field_padding_left = \"0\";\r\n }\r\n if ($input_field_padding_right == '') {\r\n $input_field_padding_right = \"0\";\r\n }\r\n // set picklist dropdown styling but then override/remove others that don't work well in pick lists\r\n $output .= 'select.software_select option' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'color: #' . $input_field_color . ' !important;' . \"\\r\\n\" .\r\n 'background: #' . $input_field_background_color . ' !important;' . \"\\r\\n\" .\r\n 'border: none !important;' . \"\\r\\n\" .\r\n 'margin: 0 !important;' . \"\\r\\n\" .\r\n 'padding: 0 ' . $input_field_padding_right . ' 0 ' . $input_field_padding_left . ' !important;' . \"\\r\\n\" .\r\n '-moz-border-radius: 0 !important;' . \"\\r\\n\" .\r\n '-webkit-border-radius: 0 !important;' . \"\\r\\n\" .\r\n 'border-radius: 0 !important;' . \"\\r\\n\" .\r\n '-moz-box-shadow: 0 !important;' . \"\\r\\n\" .\r\n '-webkit-box-shadow: 0 !important;' . \"\\r\\n\" .\r\n 'box-shadow: 0 !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\";\r\n //set radio button and checkbox to grow in size based on base font (override OS browser style defaults. 1em works for both percent and fixed base font-size.)\r\n $output .= '.software_input_radio, .software_input_checkbox' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" . \r\n 'height: 1em;' . \"\\r\\n\" . \r\n 'width: 1em;' . \"\\r\\n\" .\r\n 'line-height: 1em;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\";\r\n \r\n $primary_color = '';\r\n $primary_color_tint = '';\r\n \r\n // if there is a primary color, then set that to the border color\r\n if ($site_wide_properties['base_object']['base_module']['primary_color'] != '') {\r\n $primary_color = $site_wide_properties['base_object']['base_module']['primary_color'];\r\n \r\n // else set the primary color to black\r\n } else {\r\n $primary_color = '000000';\r\n }\r\n\r\n $primary_color_tint = color_tint($primary_color, 50);\r\n\r\n // set primary button colors for classes\r\n if ($site_wide_properties['base_object']['primary_buttons']['background_color'] != '') {\r\n $primary_button_background = $site_wide_properties['base_object']['primary_buttons']['background_color'];\r\n } else {\r\n $primary_button_background = $primary_color;\r\n }\r\n if ($site_wide_properties['base_object']['primary_buttons']['font_color'] != '') {\r\n $primary_button_color = $site_wide_properties['base_object']['primary_buttons']['font_color'];\r\n } else {\r\n $primary_button_color = $primary_color;\r\n }\r\n \r\n $secondary_color = '';\r\n \r\n // if there is a secondary color, then set that to the border color\r\n if ($site_wide_properties['base_object']['base_module']['secondary_color'] != '') {\r\n $secondary_color = $site_wide_properties['base_object']['base_module']['secondary_color'];\r\n \r\n // else set the secondary color to white\r\n } else {\r\n $secondary_color = 'FFFFFF';\r\n }\r\n\r\n // set secondary button colors for classes\r\n if ($site_wide_properties['base_object']['secondary_buttons']['background_color'] != '') {\r\n $secondary_button_background = $site_wide_properties['base_object']['secondary_buttons']['background_color'];\r\n } else {\r\n $secondary_button_background = $secondary_color;\r\n }\r\n if ($site_wide_properties['base_object']['secondary_buttons']['font_color'] != '') {\r\n $secondary_button_color = $site_wide_properties['base_object']['secondary_buttons']['font_color'];\r\n } else {\r\n $secondary_button_color = $secondary_color;\r\n }\r\n \r\n // output global styles\r\n $output .=\r\n 'b' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'padding: 0;' . \"\\r\\n\" . \r\n 'margin: 0;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n 'blockquote' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'font-style: italic;' . \"\\r\\n\" . \r\n 'font-size: 110%;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n 'blockquote p' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'padding: .5em .75em;' . \"\\r\\n\" . \r\n 'margin: 0em;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n 'blockquote,ul,ol' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin-top: 0em;' . \"\\r\\n\" . \r\n 'margin-bottom: 1em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n 'hr' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'background: #' . $primary_color . ';' . \"\\r\\n\" . \r\n 'color: #' . $primary_color . ';' . \"\\r\\n\" . \r\n 'border: 1px;' . \"\\r\\n\" . \r\n 'height: 1px;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n 'img, a img' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'border: none;' . \"\\r\\n\" . \r\n 'text-decoration: none;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n 'pre' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'font-size: larger;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n 'ol' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'list-style-type: decimal;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n 'ul' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'list-style-type: disc;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\";\r\n \r\n // loop through the css properties to combine the layout, background borders and spacing, and the text modules\r\n foreach($css_properties as $area => $objects) {\r\n if (is_array($objects) == TRUE) {\r\n foreach($objects as $object => $modules) {\r\n // loop through each module to combine the general modules\r\n foreach($modules as $module => $properties) {\r\n $combined_modules = array();\r\n \r\n // if this is one of the general modules, then add it to the combined modules array and remove it from the css properties so that it is not addes twice\r\n if (\r\n ($module == 'layout')\r\n || ($module == 'background_borders_and_spacing')\r\n || ($module == 'text')\r\n ) {\r\n // if this module has properties, then merge it to the combined modules array and remove it from the css properties array\r\n if ((is_array($css_properties[$area][$object]['layout']) == TRUE) && (empty($css_properties[$area][$object]['layout']) == FALSE)) {\r\n $combined_modules = array_merge($combined_modules, $css_properties[$area][$object]['layout']);\r\n unset($css_properties[$area][$object]['layout']);\r\n }\r\n \r\n // if this module has properties, then merge it to the combined modules array and remove it from the css properties array\r\n if ((is_array($css_properties[$area][$object]['background_borders_and_spacing']) == TRUE) && (empty($css_properties[$area][$object]['background_borders_and_spacing']) == FALSE)) {\r\n $combined_modules = array_merge($combined_modules, $css_properties[$area][$object]['background_borders_and_spacing']);\r\n unset($css_properties[$area][$object]['background_borders_and_spacing']);\r\n }\r\n \r\n // if this module has properties, then merge it to the combined modules array and remove it from the css properties array\r\n if ((is_array($css_properties[$area][$object]['text']) == TRUE) && (empty($css_properties[$area][$object]['text']) == FALSE)) {\r\n $combined_modules = array_merge($combined_modules, $css_properties[$area][$object]['text']);\r\n unset($css_properties[$area][$object]['text']);\r\n }\r\n \r\n // if there are combined modules, then add them to the base module\r\n if (isset($combined_modules) == TRUE) {\r\n $css_properties[$area][$object]['base_module'] = $combined_modules;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n \r\n // loop through each level of the array to build the rest of the css output\r\n foreach($css_properties as $area => $objects) {\r\n if (($area != 'ad_region') && ($area != 'menu_region')) {\r\n /* build the area selector */\r\n $area_selector = '';\r\n \r\n // add the area to the are selector\r\n $area_selector .= '#' . $area;\r\n \r\n // if the object is an array, then loop through the objects in order to continue preparing the selector and outputting the css properties\r\n if (is_array($objects) == TRUE) {\r\n foreach($objects as $object => $modules) {\r\n $object_selector = '';\r\n \r\n // if this is not the base object, then add the object to the object selector\r\n if ($object != 'base_object') {\r\n $object_selector .= ' .' . $object;\r\n }\r\n \r\n // loop through each module to output it's properties\r\n foreach($modules as $module => $properties) {\r\n // prepare and set the module selector\r\n $selector = prepare_module_selector($module, $area_selector . $object_selector);\r\n \r\n // add the selector to the output and open a code block for the css properties\r\n $output .= $selector . \"\\r\\n\" . '{' . \"\\r\\n\";\r\n \r\n // call the function responsible for preparing and outputting the properties from the database\r\n $output .= output_css_properties($properties);\r\n \r\n // close the code block\r\n $output .= '}' . \"\\r\\n\";\r\n }\r\n }\r\n }\r\n }\r\n }\r\n \r\n // if there is ad region properties, then output them\r\n if (isset($css_properties['ad_region']) == TRUE) {\r\n foreach($css_properties['ad_region'] as $object => $modules) {\r\n // get the properties for just the ad region base module and save them in an array\r\n $ad_region_properties = $css_properties['ad_region'][$object]['base_module'];\r\n \r\n // if there is a width property, then set it and remove it from the array\r\n if ($ad_region_properties['width'] != '') {\r\n $output_ad_region_width = $ad_region_properties['width'];\r\n $output_ad_width = $ad_region_properties['width'];\r\n \r\n unset($ad_region_properties['width']);\r\n \r\n // else set the defaults\r\n } else {\r\n $output_ad_region_width = 200 . 'px';\r\n $output_ad_width = 199 . 'px';\r\n }\r\n \r\n // if there is a height property, then set it and remove it from the array\r\n if ($ad_region_properties['height'] != '') {\r\n $output_ad_region_height = $ad_region_properties['height'];\r\n \r\n unset($ad_region_properties['height']);\r\n \r\n // else set the defaults\r\n } else {\r\n $output_ad_region_height = 200 . 'px';\r\n }\r\n \r\n // get the rest of the ad region properties\r\n $output_region_ad_properties = output_css_properties($ad_region_properties);\r\n \r\n // get the menu properties properties and put them into an array\r\n $menu_properties = $css_properties['ad_region'][$object]['menu'];\r\n \r\n $output_menu_position = '';\r\n \r\n // if there is a position value, then prepare the left and right values based on what position was selected\r\n if ($menu_properties['position'] != '') {\r\n switch($menu_properties['position']) {\r\n case 'top_left':\r\n $top = '0em';\r\n \r\n // if there is padding for the ad, then use the padding for the position of the menu\r\n if ($ad_region_properties['padding_top'] != '') {\r\n $top = $ad_region_properties['padding_top'];\r\n }\r\n \r\n $left = '0em';\r\n \r\n // if there is padding for the ad, then use the padding for the position of the menu\r\n if ($ad_region_properties['padding_left'] != '') {\r\n $left = $ad_region_properties['padding_left'];\r\n }\r\n \r\n $output_menu_position = \r\n 'top: ' . $top . ';' . \"\\r\\n\" . \r\n 'left: ' . $left . ';' . \"\\r\\n\";\r\n break;\r\n \r\n case 'top_right':\r\n $top = '0em';\r\n \r\n // if there is padding for the ad, then use the padding for the position of the menu\r\n if ($ad_region_properties['padding_top'] != '') {\r\n $top = $ad_region_properties['padding_top'];\r\n }\r\n \r\n $right = '0em';\r\n \r\n // if there is padding for the ad, then use the padding for the position of the menu\r\n if ($ad_region_properties['padding_right'] != '') {\r\n $right = $ad_region_properties['padding_right'];\r\n }\r\n \r\n $output_menu_position = \r\n 'top: ' . $top . ';' . \"\\r\\n\" . \r\n 'right: ' . $right . ';' . \"\\r\\n\";\r\n break;\r\n \r\n case 'bottom_right':\r\n $bottom = '0em';\r\n \r\n // if there is padding for the ad, then use the padding for the position of the menu\r\n if ($ad_region_properties['padding_bottom'] != '') {\r\n $bottom = $ad_region_properties['padding_bottom'];\r\n }\r\n \r\n $right = '0em';\r\n \r\n // if there is padding for the ad, then use the padding for the position of the menu\r\n if ($ad_region_properties['padding_right'] != '') {\r\n $right = $ad_region_properties['padding_right'];\r\n }\r\n \r\n $output_menu_position = \r\n 'bottom: ' . $bottom . ';' . \"\\r\\n\" . \r\n 'right: ' . $right . ';' . \"\\r\\n\";\r\n break;\r\n \r\n case 'bottom_left':\r\n $bottom = '0em';\r\n \r\n // if there is padding for the ad, then use the padding for the position of the menu\r\n if ($ad_region_properties['padding_bottom'] != '') {\r\n $bottom = $ad_region_properties['padding_bottom'];\r\n }\r\n \r\n $left = '0em';\r\n \r\n // if there is padding for the ad, then use the padding for the position of the menu\r\n if ($ad_region_properties['padding_left'] != '') {\r\n $left = $ad_region_properties['padding_left'];\r\n }\r\n \r\n $output_menu_position = \r\n 'bottom: ' . $bottom . ';' . \"\\r\\n\" . \r\n 'left: ' . $left . ';' . \"\\r\\n\";\r\n break;\r\n }\r\n \r\n // remove the position from the menu properties array so that it isn't outputted again below\r\n unset($menu_properties['position']);\r\n }\r\n \r\n // get the rest of the menu properties for output\r\n $output_menu_properties = output_css_properties($menu_properties);\r\n \r\n // get the menu item properties properties and put them into an array\r\n $menu_item_properties = $css_properties['ad_region'][$object]['menu_item'];\r\n \r\n $output_menu_item_list_properties = '';\r\n \r\n // if there is a margin property in for the menu item, then add the margin properties to the menu item list element, and remove them from the ad region menu properties array\r\n if (\r\n ($menu_item_properties['margin_top'] != '')\r\n || ($menu_item_properties['margin_right'] != '')\r\n || ($menu_item_properties['margin_bottom'] != '')\r\n || ($menu_item_properties['margin_left'] != '')\r\n ) {\r\n // prepare the properties for output\r\n $output_menu_item_list_properties = output_css_properties(array('margin_top' => $menu_item_properties['margin_top'], 'margin_right' => $menu_item_properties['margin_right'], 'margin_bottom' => $menu_item_properties['margin_bottom'], 'margin_left' => $menu_item_properties['margin_left']));\r\n \r\n // remove the margins from the array\r\n unset($menu_item_properties['margin_top']);\r\n unset($menu_item_properties['margin_right']);\r\n unset($menu_item_properties['margin_bottom']);\r\n unset($menu_item_properties['margin_left']);\r\n \r\n // else default the margin to 0em\r\n } else {\r\n $output_menu_item_list_properties = 'margin: 0em;';\r\n }\r\n \r\n // if there is properties, then output them\r\n if (isset($menu_item_properties) == TRUE) {\r\n $output_menu_item_link_properties = output_css_properties($menu_item_properties);\r\n }\r\n \r\n // if there is properties, then output them\r\n if (isset($css_properties['ad_region'][$object]['menu_item_hover']) == TRUE) {\r\n $output_menu_item_link_hover_properties = output_css_properties($css_properties['ad_region'][$object]['menu_item_hover']);\r\n }\r\n\r\n // Get the previous & next button properties and put them into an array.\r\n $previous_and_next_buttons_properties = $css_properties['ad_region'][$object]['previous_and_next_buttons'];\r\n\r\n $output_previous_and_next_buttons_general = '';\r\n $output_previous_and_next_buttons_horizontal_offset = '';\r\n\r\n // If previous & next buttons are enabled, then show the buttons and set their position.\r\n if ($previous_and_next_buttons_properties['previous_and_next_buttons_toggle'] == 1) {\r\n // If the vertical offset is not blank, then set it.\r\n if ($previous_and_next_buttons_properties['previous_and_next_buttons_vertical_offset'] != '') {\r\n $output_previous_and_next_buttons_general =\r\n '#software_ad_region_' . $object . '.software_ad_region_dynamic .previous,' . \"\\n\" .\r\n '#software_ad_region_' . $object . '.software_ad_region_dynamic .next' . \"\\n\" .\r\n '{' . \"\\n\" .\r\n 'top: ' . $previous_and_next_buttons_properties['previous_and_next_buttons_vertical_offset'] . 'px;' . \"\\n\" .\r\n '}' . \"\\n\";\r\n }\r\n\r\n // If the horizontal offset is not blank, then set it.\r\n if ($previous_and_next_buttons_properties['previous_and_next_buttons_horizontal_offset'] != '') {\r\n $output_previous_and_next_buttons_horizontal_offset =\r\n '#software_ad_region_' . $object . '.software_ad_region_dynamic .previous' . \"\\n\" .\r\n '{' . \"\\n\" .\r\n 'left: ' . $previous_and_next_buttons_properties['previous_and_next_buttons_horizontal_offset'] . 'px;' . \"\\n\" .\r\n '}' . \"\\n\" .\r\n '#software_ad_region_' . $object . '.software_ad_region_dynamic .next' . \"\\n\" .\r\n '{' . \"\\n\" .\r\n 'right: ' . $previous_and_next_buttons_properties['previous_and_next_buttons_horizontal_offset'] . 'px;' . \"\\n\" .\r\n '}' . \"\\n\";\r\n }\r\n\r\n // Otherwise the previous & next buttons are disabled, so hide the buttons.\r\n } else {\r\n $output_previous_and_next_buttons_general =\r\n '#software_ad_region_' . $object . '.software_ad_region_dynamic .previous,' . \"\\n\" .\r\n '#software_ad_region_' . $object . '.software_ad_region_dynamic .next' . \"\\n\" .\r\n '{' . \"\\n\" .\r\n 'display: none;' . \"\\n\" .\r\n '}' . \"\\n\";\r\n }\r\n \r\n // output code for the ad region\r\n $output .= \r\n '#software_ad_region_' . $object . '.software_ad_region_dynamic' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'position: relative;' . \"\\r\\n\" . \r\n 'width: ' . $output_ad_region_width . ';' . \"\\r\\n\" .\r\n 'height: ' . $output_ad_region_height . ';' . \"\\r\\n\" .\r\n $output_region_ad_properties . \r\n '}' . \"\\r\\n\" .\r\n '#software_ad_region_' . $object . '.software_ad_region_dynamic .items_container' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'overflow: auto;' . \"\\r\\n\" . \r\n 'overflow-x: hidden;' . \"\\r\\n\" . \r\n 'position: relative;' . \"\\r\\n\" . \r\n 'clear: left;' . \"\\r\\n\" . \r\n 'width: ' . $output_ad_region_width . ';' . \"\\r\\n\" .\r\n 'height: ' . $output_ad_region_height . ';' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '#software_ad_region_' . $object . '.software_ad_region_dynamic .item' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'width: ' . $output_ad_width . ';' . \"\\r\\n\" .\r\n 'height: ' . $output_ad_region_height . ';' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '#software_ad_region_' . $object . '.software_ad_region_dynamic ul.menu' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'list-style: none;' . \"\\r\\n\" . \r\n 'position: absolute;' . \"\\r\\n\" . \r\n 'z-index: 1;' . \"\\r\\n\" . \r\n 'margin: 0em;' . \"\\r\\n\" . \r\n 'padding: 0em;' . \"\\r\\n\" . \r\n $output_menu_position . \r\n $output_menu_properties . \r\n '}' . \"\\r\\n\" .\r\n '#software_ad_region_' . $object . '.software_ad_region_dynamic ul.menu li' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'list-style: none;' . \"\\r\\n\" . \r\n 'display: inline;' . \"\\r\\n\" . \r\n $output_menu_item_list_properties . \r\n '}' . \"\\r\\n\" .\r\n '#software_ad_region_' . $object . '.software_ad_region_dynamic ul.menu li a' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n $output_menu_item_link_properties . \r\n '}' . \"\\r\\n\" .\r\n '#software_ad_region_' . $object . '.software_ad_region_dynamic ul.menu li a:hover, ' . '#software_ad_region_' . $object . ' .software_ad_region_dynamic ul.menu li a:focus' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n $output_menu_item_link_hover_properties . \r\n '}' . \"\\r\\n\" . \r\n '#software_ad_region_' . $object . '.software_ad_region_dynamic ul.menu li a.current' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n $output_menu_item_link_hover_properties . \r\n '}' . \"\\r\\n\" .\r\n $output_previous_and_next_buttons_general .\r\n $output_previous_and_next_buttons_horizontal_offset;\r\n \r\n // loop through the rest of the modules so that we can output their properties\r\n foreach($modules as $module => $properties) {\r\n if (\r\n ($module != 'base_module')\r\n && ($module != 'menu')\r\n && ($module != 'menu_item')\r\n && ($module != 'menu_item_hover')\r\n && ($module != 'previous_and_next_buttons')\r\n ) {\r\n // prepare and set the module selector\r\n $selector = prepare_module_selector($module, '#software_ad_region_' . $object . '.software_ad_region_dynamic .item');\r\n \r\n // add the selector to the output and open a code block for the css properties\r\n $output .= $selector . \"\\r\\n\" . '{' . \"\\r\\n\";\r\n \r\n // call the function responsible for preparing and outputting the properties from the database\r\n $output .= output_css_properties($properties);\r\n \r\n // close the code block\r\n $output .= '}' . \"\\r\\n\";\r\n }\r\n }\r\n }\r\n }\r\n \r\n // if there is menu region properties, then output them\r\n if (isset($css_properties['menu_region']) == TRUE) {\r\n foreach($css_properties['menu_region'] as $object => $modules) {\r\n // get the properties for just the menu region base module and save them in an array\r\n $menu_region_properties = $css_properties['menu_region'][$object]['base_module'];\r\n\r\n $menu_wrap = '';\r\n \r\n // if the menu width is set, then override the menu's container width, and then remove it from the array\r\n if ($menu_region_properties['width'] != '') {\r\n $menu_wrap .=\r\n '.menu_' . $object . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'width: ' . $menu_region_properties['width'] . ' !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\";\r\n unset($menu_region_properties['width']);\r\n }\r\n \r\n $menu_item_float_property = '';\r\n $menu_display_property = '';\r\n \r\n // if the menu orientation is horizonatal, then set the menu properties for a horizontal menu, and remove the value and remove it from the array\r\n if ($menu_region_properties['menu_orientation'] == 'horizontal') {\r\n $menu_item_float_property = 'float: none;' . \"\\r\\n\";\r\n //$menu_item_float_property = 'float: left;' . \"\\r\\n\";\r\n $menu_display_property = 'display: inline-block;' . \"\\r\\n\" . \r\n // include hacks for IE7 since it doesn't support display block correctly\r\n '*display: inline;' . \"\\r\\n\" .\r\n '*float: left;' . \"\\r\\n\";\r\n unset($menu_region_properties['menu_orientation']);\r\n \r\n // else if the menu orientation is vertical, then set the menu properties for a vertical menu, and then remove it from the array\r\n } elseif ($menu_region_properties['menu_orientation'] == 'vertical') {\r\n $menu_item_float_property = 'float: none;' . \"\\r\\n\";\r\n unset($menu_region_properties['menu_orientation']);\r\n }\r\n\r\n // setup menu positioning within it's container\r\n $menu_items_position = '';\r\n\r\n // default menu items to the left to be backward compatible with v7.\r\n if ($menu_region_properties['position'] == '') {\r\n $menu_items_position = 'left';\r\n } else {\r\n $menu_items_position = $menu_region_properties['position'];\r\n }\r\n unset($menu_region_properties['position']);\r\n\r\n // get the css properties for the menu region\r\n $output_menu_region_properties = output_css_properties($menu_region_properties);\r\n \r\n $margin_properties = '';\r\n\r\n // need to reset these arrays each time through this loop or menu regions falsely \"inherit\" properties from other menu regions.\r\n // added in v8.7\r\n $menu_item_properties = '';\r\n $menu_item_hover_properties = '';\r\n $sub_menu_properties = '';\r\n $sub_menu_item_properties = '';\r\n $sub_menu_item_hover_properties = '';\r\n\r\n \r\n // if there is a margin on the menu item, then add it to the margin properties and remove it\r\n if (isset($css_properties['menu_region'][$object]['menu_item']['margin_left']) == TRUE) {\r\n $margin_properties .= 'margin-left: ' . $css_properties['menu_region'][$object]['menu_item']['margin_left'] . ';' . \"\\r\\n\";\r\n unset($css_properties['menu_region'][$object]['menu_item']['margin_left']);\r\n }\r\n \r\n if (isset($css_properties['menu_region'][$object]['menu_item']['margin_right']) == TRUE) {\r\n $margin_properties .= 'margin-right: ' . $css_properties['menu_region'][$object]['menu_item']['margin_right'] . ';' . \"\\r\\n\";\r\n unset($css_properties['menu_region'][$object]['menu_item']['margin_right']);\r\n }\r\n \r\n if (isset($css_properties['menu_region'][$object]['menu_item']['margin_top']) == TRUE) {\r\n $margin_properties .= 'margin-top: ' . $css_properties['menu_region'][$object]['menu_item']['margin_top'] . ';' . \"\\r\\n\";\r\n unset($css_properties['menu_region'][$object]['menu_item']['margin_top']);\r\n }\r\n \r\n if (isset($css_properties['menu_region'][$object]['menu_item']['margin_bottom']) == TRUE) {\r\n $margin_properties .= 'margin-bottom: ' . $css_properties['menu_region'][$object]['menu_item']['margin_bottom'] . ';' . \"\\r\\n\";\r\n unset($css_properties['menu_region'][$object]['menu_item']['margin_bottom']);\r\n }\r\n \r\n // if the margin properties are blank, then set them to 0\r\n if ($margin_properties == '') {\r\n $margin_properties = 'margin: 0em;' . \"\\r\\n\";\r\n }\r\n \r\n // if there is menu item properties, then get the css properties for the menu item\r\n if (isset($css_properties['menu_region'][$object]['menu_item']) == TRUE) {\r\n $menu_item_properties = output_css_properties($css_properties['menu_region'][$object]['menu_item']);\r\n unset($css_properties['menu_region'][$object]['menu_item']); // v8.7 unset values (remove) from array\r\n }\r\n \r\n // if there is menu item hover effect properties, then get the css properties for the menu item hover effect\r\n if (isset($css_properties['menu_region'][$object]['menu_item_hover']) == TRUE) {\r\n $menu_item_hover_properties = output_css_properties($css_properties['menu_region'][$object]['menu_item_hover']);\r\n unset($css_properties['menu_region'][$object]['menu_item_hover']); // v8.7 unset values (remove) from array\r\n }\r\n\r\n // if there are properties for this module then output them\r\n if (isset($css_properties['menu_region'][$object]['submenu_background_borders_and_spacing']) == TRUE) {\r\n $sub_menu_properties = output_css_properties($css_properties['menu_region'][$object]['submenu_background_borders_and_spacing']);\r\n unset($css_properties['menu_region'][$object]['submenu_background_borders_and_spacing']); // v8.7 unset values (remove) from array\r\n }\r\n \r\n // if there are properties for this module then output them\r\n if (isset($css_properties['menu_region'][$object]['submenu_menu_item']) == TRUE) {\r\n $sub_menu_item_properties = output_css_properties($css_properties['menu_region'][$object]['submenu_menu_item']);\r\n unset($css_properties['menu_region'][$object]['submenu_menu_item']); // v8.7 unset values (remove) from array\r\n }\r\n \r\n // if there are properties for this module then output them\r\n if (isset($css_properties['menu_region'][$object]['submenu_menu_item_hover']) == TRUE) {\r\n $sub_menu_item_hover_properties = output_css_properties($css_properties['menu_region'][$object]['submenu_menu_item_hover']);\r\n unset($css_properties['menu_region'][$object]['submenu_menu_item_hover']); // v8.7 unset values (remove) from array\r\n }\r\n \r\n // get the effect type from the database\r\n $query = \"SELECT effect FROM menus WHERE name = '\" . escape($object) . \"'\";\r\n $result = mysqli_query(db::$con, $query) or output_error('Query failed.');\r\n $row = mysqli_fetch_assoc($result);\r\n $menu_effect_type = $row['effect'];\r\n \r\n $submenu_effect_specific_properties = '';\r\n $submenu_item_effect_specific_properties = '';\r\n \r\n // If the menu effect type is pop up, then output the properties needed for a pop-up menu.\r\n // We are no longer outputting z-index here because the JavaScript takes care of this now and places\r\n // the z-index on the parent li instead for IE 7 compatibility.\r\n if ($menu_effect_type == 'Pop-up') {\r\n $submenu_effect_specific_properties = \r\n 'position: absolute;' . \"\\r\\n\" . \r\n 'display: none;' . \"\\r\\n\" . \r\n 'top: 50px;' . \"\\r\\n\" . \r\n 'left: 0;' . \"\\r\\n\";\r\n \r\n // else if the menu effect type is accordion, then output the properties needed for an accordion menu\r\n } elseif ($menu_effect_type == 'Accordion') {\r\n $submenu_effect_specific_properties = \r\n 'position: static;' . \"\\r\\n\" . \r\n 'display: none;' . \"\\r\\n\" . \r\n 'top: 0;' . \"\\r\\n\" . \r\n 'left: 0;' . \"\\r\\n\";\r\n \r\n $submenu_item_effect_specific_properties = \r\n 'margin-left: 1em;' . \"\\r\\n\";\r\n }\r\n\r\n // output code for the menu region\r\n $output .=\r\n $menu_wrap .\r\n '.menu_' . $object . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'margin: 0 auto;' . \"\\r\\n\" .\r\n $output_menu_region_properties .\r\n '}' . \"\\r\\n\" . \r\n '#software_menu_' . $object . '.software_menu,' . \"\\r\\n\" . \r\n '#software_menu_' . $object . '.software_menu ul' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'padding: 0;' . \"\\r\\n\" . \r\n 'margin: 0;' . \"\\r\\n\" . \r\n 'list-style-type: none;' . \"\\r\\n\" . \r\n 'text-align: ' . $menu_items_position . ';' . \"\\r\\n\" .\r\n // Add IE hack because it only supports left position\r\n '*text-align: left;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n '#software_menu_' . $object . '.software_menu li' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'position: relative;' . \"\\r\\n\" . \r\n // the following padding remains fixed because there is no setting in Theme Designer as of v8.0\r\n // which means the size of top level menu items will be forced to the same size as submenu items (not ideal for designs)\r\n // set in advanced styling for default 8.0 theme\r\n 'padding: 0;' . \"\\r\\n\" . \r\n $menu_item_float_property . \r\n $margin_properties .\r\n 'text-align: left;' . \"\\r\\n\" . \r\n $menu_display_property . \r\n '}' . \"\\r\\n\" .\r\n '#software_menu_' . $object . '.software_menu li a' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'display: block;' . \"\\r\\n\" . \r\n 'outline: none;' . \"\\r\\n\" . \r\n $menu_item_properties .\r\n '}' . \"\\r\\n\" . \r\n '#software_menu_' . $object . '.software_menu a.on,' . \"\\r\\n\" .\r\n '#software_menu_' . $object . '.software_menu a.current,' . \"\\r\\n\" .\r\n '#software_menu_' . $object . '.software_menu a:hover,' . \"\\r\\n\" .\r\n '#software_menu_' . $object . '.software_menu a:focus' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n $menu_item_hover_properties .\r\n '}' . \"\\r\\n\" .\r\n '#software_menu_' . $object . '.software_menu li ul' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'width: auto;' . \"\\r\\n\" . \r\n $submenu_effect_specific_properties .\r\n $sub_menu_properties .\r\n '}' . \"\\r\\n\" . \r\n '#software_menu_' . $object . '.software_menu li li' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'padding: 0em;' . \"\\r\\n\" . \r\n 'margin: 0;' . \"\\r\\n\" . \r\n 'width: auto;' . \"\\r\\n\" . \r\n $submenu_item_effect_specific_properties .\r\n '}' . \"\\r\\n\" . \r\n '#software_menu_' . $object . '.software_menu li li a' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'outline: none;' . \"\\r\\n\" . \r\n $sub_menu_item_properties .\r\n '}' . \"\\r\\n\" . \r\n '#software_menu_' . $object . '.software_menu li li a.on,' . \"\\r\\n\" .\r\n '#software_menu_' . $object . '.software_menu li li a.current,' . \"\\r\\n\" .\r\n '#software_menu_' . $object . '.software_menu li li a:hover,' . \"\\r\\n\" .\r\n '#software_menu_' . $object . '.software_menu li li a:focus' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n $sub_menu_item_hover_properties .\r\n '}' . \"\\r\\n\";\r\n }\r\n }\r\n \r\n // output the custom format selectors (in the order they will be displayed in editor's Custom Format pick list).\r\n $output .= \r\n '/* <custom_formats> */' . \"\\r\\n\" .\r\n '.background-primary{}' . \"\\r\\n\" . \r\n '.background-secondary{}' . \"\\r\\n\" . \r\n '.color-primary{}' . \"\\r\\n\" . \r\n '.color-secondary{}' . \"\\r\\n\" .\r\n '.heading-primary{}' . \"\\r\\n\" .\r\n '.heading-secondary{}' . \"\\r\\n\" .\r\n '.image-primary{}' . \"\\r\\n\" .\r\n '.image-secondary{}' . \"\\r\\n\" .\r\n '.image-left-primary{}' . \"\\r\\n\" .\r\n '.image-left-secondary{}' . \"\\r\\n\" .\r\n '.image-right-primary{}' . \"\\r\\n\" .\r\n '.image-right-secondary{}' . \"\\r\\n\" .\r\n '.image-desktop-hide{}' . \"\\r\\n\" .\r\n '.image-mobile-hide{}' . \"\\r\\n\" .\r\n '.link-button-primary-large{}' . \"\\r\\n\" .\r\n '.link-button-primary-small{}' . \"\\r\\n\" .\r\n '.link-button-secondary-large{}' . \"\\r\\n\" .\r\n '.link-button-secondary-small{}' . \"\\r\\n\" .\r\n '.link-menu-item{}' . \"\\r\\n\" .\r\n '.link-content-more{}' . \"\\r\\n\" .\r\n '.link-desktop-hide{}' . \"\\r\\n\" .\r\n '.link-mobile-hide{}' . \"\\r\\n\" .\r\n '.list-accordion{}' . \"\\r\\n\" .\r\n '.list-accordion-expanded{}' . \"\\r\\n\" .\r\n '.list-tabs{}' . \"\\r\\n\" .\r\n '.paragraph-box-primary{}' . \"\\r\\n\" .\r\n '.paragraph-box-secondary{}' . \"\\r\\n\" .\r\n '.paragraph-box-example{}' . \"\\r\\n\" .\r\n '.paragraph-box-notice{}' . \"\\r\\n\" .\r\n '.paragraph-box-warning{}' . \"\\r\\n\" .\r\n '.paragraph-no-margin{}' . \"\\r\\n\" .\r\n '.paragraph-no-margin-top{}' . \"\\r\\n\" .\r\n '.paragraph-no-margin-bottom{}' . \"\\r\\n\" .\r\n '.paragraph-indent{}' . \"\\r\\n\" .\r\n '.paragraph-desktop-hide{}' . \"\\r\\n\" .\r\n '.paragraph-mobile-hide{}' . \"\\r\\n\" .\r\n '.table-primary{}' . \"\\r\\n\" .\r\n '.table-secondary{}' . \"\\r\\n\" .\r\n '.table-left{}' . \"\\r\\n\" .\r\n '.table-right{}' . \"\\r\\n\" . \r\n '.table-center{}' . \"\\r\\n\" .\r\n '.table-desktop-hide{}' . \"\\r\\n\" .\r\n '.table-mobile-hide{}' . \"\\r\\n\" .\r\n '.table-row-header{}' . \"\\r\\n\" .\r\n '.table-row-body{}' . \"\\r\\n\" .\r\n '.table-row-footer{}' . \"\\r\\n\" .\r\n '.table-cell-header{}' . \"\\r\\n\" .\r\n '.table-cell-data{}' . \"\\r\\n\" .\r\n '.table-cell-mobile-fill{}' . \"\\r\\n\" .\r\n '.table-cell-mobile-wrap{}' . \"\\r\\n\" .\r\n '.table-cell-mobile-hide{}' . \"\\r\\n\" .\r\n '.table-cell-desktop-hide{}' . \"\\r\\n\" .\r\n '.text-box-primary{}' . \"\\r\\n\" .\r\n '.text-box-secondary{}' . \"\\r\\n\" .\r\n '.text-box-example{}' . \"\\r\\n\" .\r\n '.text-box-notice{}' . \"\\r\\n\" .\r\n '.text-box-warning{}' . \"\\r\\n\" .\r\n '.text-desktop-hide{}' . \"\\r\\n\" .\r\n '.text-mobile-hide{}' . \"\\r\\n\" .\r\n '.text-highlighter{}' . \"\\r\\n\" .\r\n '.text-fine-print{}' . \"\\r\\n\" .\r\n '.text-annotate{}' . \"\\r\\n\" .\r\n '.text-quote{}' . \"\\r\\n\" .\r\n '.video-primary{}' . \"\\r\\n\" .\r\n '.video-secondary{}' . \"\\r\\n\" .\r\n '.video-left-primary{}' . \"\\r\\n\" .\r\n '.video-left-secondary{}' . \"\\r\\n\" .\r\n '.video-right-primary{}' . \"\\r\\n\" .\r\n '.video-right-secondary{}' . \"\\r\\n\" .\r\n '.video-desktop-hide{}' . \"\\r\\n\" .\r\n '.video-mobile-hide{}' . \"\\r\\n\" .\r\n '/* </custom_formats> */' . \"\\r\\n\";\r\n \r\n // output the video objects (center) primary properties\r\n $output .= \r\n '.video-primary object,' . \"\\r\\n\" .\r\n '.video-primary iframe,' . \"\\r\\n\" .\r\n '.video-primary video' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'display: block;' . \"\\r\\n\" . // for objects not floated\r\n '}' . \"\\r\\n\" .\r\n 'img.image-primary' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'margin-right: auto;' . \"\\r\\n\" .\r\n 'margin-left: auto;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\";\r\n \r\n // output the image/video objects left primary properties\r\n $output .= \r\n 'img.image-left-primary,' . \"\\r\\n\" . \r\n '.video-left-primary object,' . \"\\r\\n\" .\r\n '.video-left-primary iframe,' . \"\\r\\n\" .\r\n '.video-left-primary video' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'float: left;' . \"\\r\\n\" . \r\n 'margin-left: 0em;' . \"\\r\\n\" .\r\n 'margin-top: 0em;' . \"\\r\\n\" .\r\n 'margin-right: 1em;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\";\r\n \r\n // output the image/objects right primary properties\r\n $output .= \r\n 'img.image-right-primary,' . \"\\r\\n\" . \r\n '.video-right-primary object,' . \"\\r\\n\" .\r\n '.video-right-primary iframe,' . \"\\r\\n\" .\r\n '.video-right-primary video' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'float: right;' . \"\\r\\n\" . \r\n 'margin-right: 0em;' . \"\\r\\n\" .\r\n 'margin-top: 0em;' . \"\\r\\n\" .\r\n 'margin-left: 1em;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\";\r\n \r\n // get the properties for the image primary custom formats\r\n $output_image_primary_properties = output_css_properties($site_wide_properties['base_object']['image_primary']);\r\n \r\n // output the image/video objects primary properties\r\n $output .= \r\n 'img.image-primary,' . \"\\r\\n\" .\r\n 'img.image-left-primary,' . \"\\r\\n\" .\r\n 'img.image-right-primary,' . \"\\r\\n\" .\r\n '.video-primary object,' . \"\\r\\n\" .\r\n '.video-primary iframe,' . \"\\r\\n\" .\r\n '.video-primary video,' . \"\\r\\n\" .\r\n '.video-left-primary object,' . \"\\r\\n\" .\r\n '.video-left-primary iframe,' . \"\\r\\n\" .\r\n '.video-left-primary video,' . \"\\r\\n\" .\r\n '.video-right-primary object,' . \"\\r\\n\" .\r\n '.video-right-primary iframe,' . \"\\r\\n\" .\r\n '.video-right-primary video' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n $output_image_primary_properties . \r\n '}' . \"\\r\\n\";\r\n \r\n // output the image/video objects (center) secondary properties\r\n $output .= \r\n '.video-secondary object,' . \"\\r\\n\" .\r\n '.video-secondary iframe,' . \"\\r\\n\" .\r\n '.video-secondary video' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'display: block;' . \"\\r\\n\" . // for objects not floated\r\n '}' . \"\\r\\n\" .\r\n 'img.image-secondary' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'margin-right: auto;' . \"\\r\\n\" .\r\n 'margin-left: auto;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\";\r\n \r\n // output the image/video objects left secondary properties\r\n $output .= \r\n 'img.image-left-secondary,' . \"\\r\\n\" .\r\n '.video-left-secondary object,' . \"\\r\\n\" .\r\n '.video-left-secondary iframe,' . \"\\r\\n\" .\r\n '.video-left-secondary video' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'float: left;' . \"\\r\\n\" . \r\n 'margin-top: 0em;' . \"\\r\\n\" .\r\n 'margin-left: 0em;' . \"\\r\\n\" .\r\n 'margin-right: 1em;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\";\r\n \r\n // output the image/video objects right secondary properties\r\n $output .= \r\n 'img.image-right-secondary,' . \"\\r\\n\" .\r\n '.video-right-secondary object,' . \"\\r\\n\" .\r\n '.video-right-secondary iframe,' . \"\\r\\n\" .\r\n '.video-right-secondary video' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'float: right;' . \"\\r\\n\" . \r\n 'margin-top: 0em;' . \"\\r\\n\" .\r\n 'margin-right: 0em;' . \"\\r\\n\" .\r\n 'margin-left: 1em;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\";\r\n \r\n // get the properties for the image secondary custom formats\r\n $output_image_secondary_properties = output_css_properties($site_wide_properties['base_object']['image_secondary']);\r\n \r\n // output the image/video objects secondary properties\r\n $output .= \r\n 'img.image-secondary,' . \"\\r\\n\" .\r\n 'img.image-left-secondary,' . \"\\r\\n\" .\r\n 'img.image-right-secondary,' . \"\\r\\n\" .\r\n '.video-secondary object,' . \"\\r\\n\" .\r\n '.video-secondary iframe,' . \"\\r\\n\" .\r\n '.video-secondary video,' . \"\\r\\n\" .\r\n '.video-left-secondary object,' . \"\\r\\n\" .\r\n '.video-left-secondary iframe,' . \"\\r\\n\" .\r\n '.video-left-secondary video,' . \"\\r\\n\" .\r\n '.video-right-secondary object,' . \"\\r\\n\" .\r\n '.video-right-secondary iframe,' . \"\\r\\n\" .\r\n '.video-right-secondary video' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n $output_image_secondary_properties . \r\n '}' . \"\\r\\n\";\r\n \r\n // output the primary button properties\r\n $output .= \r\n '.software_input_submit,' . \"\\r\\n\" . \r\n 'a.link-button-primary-large,' . \"\\r\\n\" . \r\n 'a.link-button-primary-large:link,' . \"\\r\\n\" . \r\n 'a.link-button-primary-large:visited,' . \"\\r\\n\" . \r\n 'a.link-button-primary-large:active, ' . \"\\r\\n\" . \r\n 'a.link-button-primary-small,' . \"\\r\\n\" . \r\n 'a.link-button-primary-small:link,' . \"\\r\\n\" . \r\n 'a.link-button-primary-small:visited,' . \"\\r\\n\" . \r\n 'a.link-button-primary-small:active,' . \"\\r\\n\" . \r\n '.software_input_submit_primary,' . \"\\r\\n\" . \r\n 'a.software_input_submit_primary:link,' . \"\\r\\n\" . \r\n 'a.software_input_submit_primary:visited,' . \"\\r\\n\" . \r\n 'a.software_input_submit_primary:active,' . \"\\r\\n\" . \r\n '.software_input_submit_small_primary,' . \"\\r\\n\" . \r\n 'a.software_input_submit_small_primary:link,' . \"\\r\\n\" . \r\n 'a.software_input_submit_small_primary:visited,' . \"\\r\\n\" . \r\n 'a.software_input_submit_small_primary:active,' . \"\\r\\n\" . \r\n '.software_button_primary,' . \"\\r\\n\" . \r\n 'a.software_button_primary:link,' . \"\\r\\n\" . \r\n 'a.software_button_primary:visited,' . \"\\r\\n\" . \r\n 'a.software_button_primary:active,' . \"\\r\\n\" . \r\n '.software_button_small_primary,' . \"\\r\\n\" . \r\n 'a.software_button_small_primary:link,' . \"\\r\\n\" . \r\n 'a.software_button_small_primary:visited,' . \"\\r\\n\" . \r\n 'a.software_button_small_primary:active,' . \"\\r\\n\" . \r\n '.more_detail a' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'padding: .5em .75em !important;' . \"\\r\\n\" . //new modern button default styling for v8.5\r\n 'text-decoration: none !important;' . \"\\r\\n\" . //new modern button default styling for v8.5\r\n 'display: inline-block;' . \"\\r\\n\" .\r\n 'line-height: normal !important;' . \"\\r\\n\" .\r\n 'cursor: pointer !important;' . \"\\r\\n\" .\r\n 'text-align: center !important;' . \"\\r\\n\" . //needed to center button text on mobile browsers\r\n 'vertical-align: middle !important;' . \"\\r\\n\" . //needed to center button text on mobile browsers\r\n 'border: 1px solid #' . $primary_color . ' !important;' . \"\\r\\n\" . //new modern button default styling for v8.5\r\n\r\n output_css_properties($site_wide_properties['base_object']['primary_buttons'], 'primary_buttons');\r\n \r\n // if there was no background set then output default gradient background based on the primary color\r\n if ($site_wide_properties['base_object']['primary_buttons']['background_type'] == '') {\r\n $tint_color = color_tint($primary_color, 30);\r\n $IE_tint_color = color_tint($primary_color, 80);\r\n\r\n // If rounded corners are enabled, then disable filter gradient for IE 8+,\r\n // because IE 9 shows the gradient outside of the curved corners.\r\n // Technically, we really only want to disable the gradient for IE 9,\r\n // because the gradient works fine in IE 8 (because it does not support rounded corners),\r\n // however we don't have a way of targeting just IE 9 so we have to disable it for IE 8 also.\r\n // We will still output the old \"filter\" property further below so that the gradient still works in IE 7.\r\n // IE 7 does not process -ms-filter properties, so this will not disable the filter gradient for it.\r\n // We have also added a -ms-linear-gradient property further below which should allow IE 10 in the future\r\n // to support both rounded corners and gradients.\r\n if ($site_wide_properties['base_object']['primary_buttons']['rounded_corners_toggle'] == 1) {\r\n $ie_8_and_9_gradient = '-ms-filter: \"none\" !important;' . \"\\r\\n\";\r\n\r\n // else rounded corners are disabled, so we can enable filter gradient for IE 8+\r\n } else {\r\n $ie_8_and_9_gradient = '-ms-filter: \"progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=\\'#' . $IE_tint_color . '\\', endColorstr=\\'#' . $primary_color . '\\')\" !important;' . \"\\r\\n\";\r\n }\r\n\r\n // output a gradient background for each browser\r\n $output .=\r\n 'background-color: #' . $primary_color . ' !important;' . \"\\r\\n\" .\r\n 'background: linear-gradient(bottom,#' . $primary_color .' 50%,#' . $tint_color . ' 100%) !important;' . \"\\r\\n\" .\r\n 'background: -o-linear-gradient(bottom,#' . $primary_color . ' 50%,#' . $tint_color . ' 100%) !important;' . \"\\r\\n\" .\r\n 'background: -moz-linear-gradient(bottom,#' . $primary_color . ' 50%,#' . $tint_color . ' 100%) !important;' . \"\\r\\n\" .\r\n 'background: -webkit-linear-gradient(bottom,#' . $primary_color . ' 50%,#' . $tint_color . ' 100%) !important;' . \"\\r\\n\" . \r\n 'background: -ms-linear-gradient(bottom,#' . $primary_color . ' 50%,#' . $tint_color . ' 100%) !important;' . \"\\r\\n\" . // IE 10\r\n 'background: -webkit-gradient(linear,left bottom,left top,color-stop(0.50,#' . $primary_color . '),color-stop(1.0,#' . $tint_color . ')) !important;' . \"\\r\\n\" .\r\n 'filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=\\'#' . $IE_tint_color . '\\', endColorstr=\\'#' . $primary_color . '\\') !important;' . \"\\r\\n\" . // IE6 & IE7 \r\n $ie_8_and_9_gradient;\r\n }\r\n $output .= '}' . \"\\r\\n\";\r\n \r\n // set the font size for the small buttons\r\n $output .= \r\n 'a.link-button-primary-small,' . \"\\r\\n\" . \r\n 'a.link-button-primary-small:link,' . \"\\r\\n\" . \r\n 'a.link-button-primary-small:visited,' . \"\\r\\n\" . \r\n 'a.link-button-primary-small:active,' . \"\\r\\n\" . \r\n '.software_input_submit_small_primary,' . \"\\r\\n\" . \r\n 'a.software_input_submit_small_primary:link,' . \"\\r\\n\" . \r\n 'a.software_input_submit_small_primary:visited,' . \"\\r\\n\" . \r\n 'a.software_input_submit_small_primary:active,' . \"\\r\\n\" . \r\n '.software_button_small_primary,' . \"\\r\\n\" . \r\n 'a.software_button_small_primary:link,' . \"\\r\\n\" . \r\n 'a.software_button_small_primary:visited,' . \"\\r\\n\" . \r\n 'a.software_button_small_primary:active' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'font-size: 75% !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\";\r\n \r\n // get any primary button hover properties\r\n $output_button_primary_hover_properties = output_css_properties($site_wide_properties['base_object']['primary_buttons_hover'], 'primary_buttons_hover');\r\n \r\n // output the primary button hover properties\r\n $output .=\r\n '.software_input_submit:hover,' . \"\\r\\n\" . \r\n '.software_input_submit:focus,' . \"\\r\\n\" . \r\n 'a.link-button-primary-large:hover,' . \"\\r\\n\" . \r\n 'a.link-button-primary-large:focus,' . \"\\r\\n\" . \r\n 'a.link-button-primary-small:hover,' . \"\\r\\n\" . \r\n 'a.link-button-primary-small:focus,' . \"\\r\\n\" . \r\n '.software_input_submit_primary:hover,' . \"\\r\\n\" . \r\n '.software_input_submit_primary:focus,' . \"\\r\\n\" . \r\n 'a.software_input_submit_primary:hover,' . \"\\r\\n\" . \r\n 'a.software_input_submit_primary:focus,' . \"\\r\\n\" . \r\n '.software_input_submit_small_primary:hover,' . \"\\r\\n\" . \r\n '.software_input_submit_small_primary:focus,' . \"\\r\\n\" . \r\n '.software_button_primary:hover,' . \"\\r\\n\" . \r\n '.software_button_primary:focus,' . \"\\r\\n\" . \r\n 'a.software_button_primary:hover,' . \"\\r\\n\" . \r\n 'a.software_button_primary:focus,' . \"\\r\\n\" . \r\n '.software_button_small_primary:focus,' . \"\\r\\n\" . \r\n '.software_button_small_primary:focus,' . \"\\r\\n\" . \r\n 'a.software_button_small_primary:hover,' . \"\\r\\n\" . \r\n 'a.software_button_small_primary:focus,' . \"\\r\\n\" . \r\n '.more_detail a:hover,' . \"\\r\\n\" . \r\n '.more_detail a:focus' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n $output_button_primary_hover_properties;\r\n\r\n // if there was no background set then output default gradient background based on the primary color\r\n if ($site_wide_properties['base_object']['primary_buttons_hover']['background_type'] == '') {\r\n $tint_color = color_tint($primary_color, 90);\r\n $hover_tint_color = color_tint($tint_color, 30);\r\n $hover_IE_tint_color = color_tint($tint_color, 80);\r\n\r\n if ($site_wide_properties['base_object']['primary_buttons_hover']['rounded_corners_toggle'] == 1) {\r\n $ie_8_and_9_gradient = '-ms-filter: \"none\" !important;' . \"\\r\\n\";\r\n\r\n // else rounded corners are disabled, so we can enable filter gradient for IE 8+\r\n } else {\r\n $ie_8_and_9_gradient = '-ms-filter: \"progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=\\'#' . $hover_IE_tint_color . '\\', endColorstr=\\'#' . $tint_color . '\\')\" !important;' . \"\\r\\n\";\r\n }\r\n\r\n // output a gradient background for each browser\r\n $output .=\r\n 'background-color: #' . $tint_color . ' !important;' . \"\\r\\n\" .\r\n 'background: linear-gradient(bottom,#' . $tint_color .' 50%,#' . $hover_tint_color . ' 100%) !important;' . \"\\r\\n\" .\r\n 'background: -o-linear-gradient(bottom,#' . $tint_color . ' 50%,#' . $hover_tint_color . ' 100%) !important;' . \"\\r\\n\" .\r\n 'background: -moz-linear-gradient(bottom,#' . $tint_color . ' 50%,#' . $hover_tint_color . ' 100%) !important;' . \"\\r\\n\" .\r\n 'background: -webkit-linear-gradient(bottom,#' . $tint_color . ' 50%,#' . $hover_tint_color . ' 100%) !important;' . \"\\r\\n\" . \r\n 'background: -ms-linear-gradient(bottom,#' . $tint_color . ' 50%,#' . $hover_tint_color . ' 100%) !important;' . \"\\r\\n\" . // IE 10\r\n 'background: -webkit-gradient(linear,left bottom,left top,color-stop(0.50,#' . $tint_color . '),color-stop(1.0,#' . $hover_tint_color . ')) !important;' . \"\\r\\n\" .\r\n 'filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=\\'#' . $hover_IE_tint_color . '\\', endColorstr=\\'#' . $tint_color . '\\') !important;' . \"\\r\\n\" . // IE6 & IE7 \r\n $ie_8_and_9_gradient;\r\n }\r\n $output .= '}' . \"\\r\\n\";\r\n \r\n // output the secondary button properties\r\n $output .= \r\n 'a.link-button-secondary-large,' . \"\\r\\n\" . \r\n 'a.link-button-secondary-large:link,' . \"\\r\\n\" . \r\n 'a.link-button-secondary-large:visited,' . \"\\r\\n\" . \r\n 'a.link-button-secondary-large:active, ' . \"\\r\\n\" . \r\n 'a.link-button-secondary-small,' . \"\\r\\n\" . \r\n 'a.link-button-secondary-small:link,' . \"\\r\\n\" . \r\n 'a.link-button-secondary-small:visited,' . \"\\r\\n\" . \r\n 'a.link-button-secondary-small:active,' . \"\\r\\n\" . \r\n '.software_input_submit_secondary,' . \"\\r\\n\" . \r\n 'a.software_input_submit_secondary:link,' . \"\\r\\n\" . \r\n 'a.software_input_submit_secondary:visited,' . \"\\r\\n\" . \r\n 'a.software_input_submit_secondary:active,' . \"\\r\\n\" . \r\n '.software_input_submit_small_secondary,' . \"\\r\\n\" . \r\n 'a.software_input_submit_small_secondary:link,' . \"\\r\\n\" . \r\n 'a.software_input_submit_small_secondary:visited,' . \"\\r\\n\" . \r\n 'a.software_input_submit_small_secondary:active,' . \"\\r\\n\" . \r\n '.software_button_secondary,' . \"\\r\\n\" . \r\n 'a.software_button_secondary:link,' . \"\\r\\n\" . \r\n 'a.software_button_secondary:visited,' . \"\\r\\n\" . \r\n 'a.software_button_secondary:active,' . \"\\r\\n\" . \r\n '.software_button_small_secondary,' . \"\\r\\n\" . \r\n 'a.software_button_small_secondary:link,' . \"\\r\\n\" . \r\n 'a.software_button_small_secondary:visited,' . \"\\r\\n\" . \r\n 'a.software_button_small_secondary:active,' . \"\\r\\n\" . \r\n '.software_button_tiny_secondary,' . \"\\r\\n\" . \r\n 'a.software_button_tiny_secondary:link,' . \"\\r\\n\" . \r\n 'a.software_button_tiny_secondary:visited,' . \"\\r\\n\" . \r\n 'a.software_button_tiny_secondary:active,' . \"\\r\\n\" . \r\n '.software_input_submit_tiny_secondary,' . \"\\r\\n\" .\r\n 'a.software_input_submit_tiny_secondary:link,' . \"\\r\\n\" .\r\n 'a.software_input_submit_tiny_secondary:visited,' . \"\\r\\n\" .\r\n 'a.software_input_submit_tiny_secondary:active,' . \"\\r\\n\" .\r\n '.software_menu_sequence a' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'padding: .5em .75em !important;' . \"\\r\\n\" . //new modern button default styling for v8.5\r\n 'text-decoration: none !important;' . \"\\r\\n\" . //new modern button default styling for v8.5\r\n 'display: inline-block;' . \"\\r\\n\" .\r\n 'line-height: normal !important;' . \"\\r\\n\" .\r\n 'cursor: pointer !important;' . \"\\r\\n\" .\r\n 'text-align: center !important;' . \"\\r\\n\" . //needed to center button text on mobile browsers\r\n 'vertical-align: middle !important;' . \"\\r\\n\" . //needed to center button text on mobile browsers\r\n 'border: 1px solid #' . $secondary_color . ' !important;' . \"\\r\\n\" . //new modern button default styling for v8.5\r\n\r\n output_css_properties($site_wide_properties['base_object']['secondary_buttons'], 'secondary_buttons');\r\n \r\n // if there was no background set then output default gradient background based on the secondary color\r\n if ($site_wide_properties['base_object']['secondary_buttons']['background_type'] == '') { \r\n $tint_color = color_tint($secondary_color, 30);\r\n $IE_tint_color = color_tint($secondary_color, 80);\r\n\r\n // If rounded corners are enabled, then disable filter gradient for IE 8+,\r\n // because IE 9 shows the gradient outside of the curved corners.\r\n // Technically, we really only want to disable the gradient for IE 9,\r\n // because the gradient works fine in IE 8 (because it does not support rounded corners),\r\n // however we don't have a way of targeting just IE 9 so we have to disable it for IE 8 also.\r\n // We will still output the old \"filter\" property further below so that the gradient still works in IE 7.\r\n // IE 7 does not process -ms-filter properties, so this will not disable the filter gradient for it.\r\n // We have also added a -ms-linear-gradient property further below which should allow IE 10 in the future\r\n // to support both rounded corners and gradients.\r\n if ($site_wide_properties['base_object']['secondary_buttons']['rounded_corners_toggle'] == 1) {\r\n $ie_8_and_9_gradient = '-ms-filter: \"none\" !important;' . \"\\r\\n\";\r\n\r\n // else rounded corners are disabled, so we can enable filter gradient for IE 8+\r\n } else {\r\n $ie_8_and_9_gradient = '-ms-filter: \"progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=\\'#' . $IE_tint_color . '\\', endColorstr=\\'#' . $secondary_color . '\\')\" !important;' . \"\\r\\n\";\r\n }\r\n\r\n // output a gradient background for each browser\r\n $output .=\r\n 'background-color: #' . $secondary_color . ' !important;' . \"\\r\\n\" .\r\n 'background: linear-gradient(bottom,#' . $secondary_color .' 50%,#' . $tint_color . ' 100%) !important;' . \"\\r\\n\" .\r\n 'background: -o-linear-gradient(bottom,#' . $secondary_color . ' 50%,#' . $tint_color . ' 100%) !important;' . \"\\r\\n\" .\r\n 'background: -moz-linear-gradient(bottom,#' . $secondary_color . ' 50%,#' . $tint_color . ' 100%) !important;' . \"\\r\\n\" .\r\n 'background: -webkit-linear-gradient(bottom,#' . $secondary_color . ' 50%,#' . $tint_color . ' 100%) !important;' . \"\\r\\n\" . \r\n 'background: -ms-linear-gradient(bottom,#' . $secondary_color . ' 50%,#' . $tint_color . ' 100%) !important;' . \"\\r\\n\" . // IE 10\r\n 'background: -webkit-gradient(linear,left bottom,left top,color-stop(0.50,#' . $secondary_color . '),color-stop(1.0,#' . $tint_color . ')) !important;' . \"\\r\\n\" .\r\n 'filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=\\'#' . $IE_tint_color . '\\', endColorstr=\\'#' . $secondary_color . '\\') !important;' . \"\\r\\n\" . // IE6 & IE7 \r\n $ie_8_and_9_gradient;\r\n }\r\n $output .= '}' . \"\\r\\n\";\r\n \r\n // output the button secondary properties\r\n $output .= \r\n 'a.link-button-secondary-small,' . \"\\r\\n\" . \r\n 'a.link-button-secondary-small:link,' . \"\\r\\n\" . \r\n 'a.link-button-secondary-small:visited,' . \"\\r\\n\" . \r\n 'a.link-button-secondary-small:active,' . \"\\r\\n\" . \r\n '.software_input_submit_small_secondary,' . \"\\r\\n\" . \r\n 'a.software_input_submit_small_secondary:link,' . \"\\r\\n\" . \r\n 'a.software_input_submit_small_secondary:visited,' . \"\\r\\n\" . \r\n 'a.software_input_submit_small_secondary:active,' . \"\\r\\n\" . \r\n '.software_button_small_secondary,' . \"\\r\\n\" . \r\n 'a.software_button_small_secondary:link,' . \"\\r\\n\" . \r\n 'a.software_button_small_secondary:visited,' . \"\\r\\n\" . \r\n 'a.software_button_small_secondary:active' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'font-size: 75% !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\";\r\n \r\n // output tiny secondary button properties\r\n $output .= \r\n '.software_button_tiny_secondary,' . \"\\r\\n\" . \r\n 'a.software_button_tiny_secondary:link,' . \"\\r\\n\" . \r\n 'a.software_button_tiny_secondary:visited,' . \"\\r\\n\" . \r\n 'a.software_button_tiny_secondary:active,' . \"\\r\\n\" .\r\n '.software_input_submit_tiny_secondary,' . \"\\r\\n\" . \r\n 'a.software_input_submit_tiny_secondary:link,' . \"\\r\\n\" . \r\n 'a.software_input_submit_tiny_secondary:visited,' . \"\\r\\n\" . \r\n 'a.software_input_submit_tiny_secondary:active' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'font-size: 75% !important;' . \"\\r\\n\" .\r\n 'font-weight: normal !important;' . \"\\r\\n\" .\r\n 'padding: 2px 6px !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\";\r\n\r\n // get any secondary button hover properties\r\n $output_button_secondary_hover_properties = output_css_properties($site_wide_properties['base_object']['secondary_buttons_hover'], 'secondary_buttons_hover');\r\n \r\n // output the hover secondary properties\r\n $output .= \r\n 'a.link-button-secondary-large:hover,' . \"\\r\\n\" . \r\n 'a.link-button-secondary-large:focus,' . \"\\r\\n\" . \r\n 'a.link-button-secondary-small:hover,' . \"\\r\\n\" . \r\n 'a.link-button-secondary-small:focus,' . \"\\r\\n\" . \r\n '.software_input_submit_secondary:hover,' . \"\\r\\n\" . \r\n '.software_input_submit_secondary:focus,' . \"\\r\\n\" . \r\n 'a.software_input_submit_secondary:hover,' . \"\\r\\n\" . \r\n 'a.software_input_submit_secondary:focus,' . \"\\r\\n\" . \r\n '.software_input_submit_small_secondary:hover,' . \"\\r\\n\" . \r\n '.software_input_submit_small_secondary:focus,' . \"\\r\\n\" . \r\n '.software_button_secondary:hover,' . \"\\r\\n\" . \r\n '.software_button_secondary:focus,' . \"\\r\\n\" . \r\n 'a.software_button_secondary:hover,' . \"\\r\\n\" . \r\n 'a.software_button_secondary:focus,' . \"\\r\\n\" . \r\n '.software_button_small_secondary:focus,' . \"\\r\\n\" . \r\n '.software_button_small_secondary:focus,' . \"\\r\\n\" . \r\n 'a.software_button_small_secondary:hover,' . \"\\r\\n\" . \r\n 'a.software_button_small_secondary:focus,' . \"\\r\\n\" . \r\n 'a.software_button_tiny_secondary:hover,' . \"\\r\\n\" . \r\n 'a.software_button_tiny_secondary:focus,' . \"\\r\\n\" .\r\n 'a.software_input_submit_tiny_secondary:hover,' . \"\\r\\n\" . \r\n 'a.software_input_submit_tiny_secondary:focus' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n $output_button_secondary_hover_properties;\r\n\r\n // if there was no background set then output default gradient background based on the secondary color\r\n if ($site_wide_properties['base_object']['secondary_buttons_hover']['background_type'] == '') {\r\n $tint_color = color_tint($secondary_color, 90);\r\n $hover_tint_color = color_tint($tint_color, 30);\r\n $hover_IE_tint_color = color_tint($tint_color, 80);\r\n\r\n if ($site_wide_properties['base_object']['secondary_buttons_hover']['rounded_corners_toggle'] == 1) {\r\n $ie_8_and_9_gradient = '-ms-filter: \"none\" !important;' . \"\\r\\n\";\r\n\r\n // else rounded corners are disabled, so we can enable filter gradient for IE 8+\r\n } else {\r\n $ie_8_and_9_gradient = '-ms-filter: \"progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=\\'#' . $hover_IE_tint_color . '\\', endColorstr=\\'#' . $tint_color . '\\')\" !important;' . \"\\r\\n\";\r\n }\r\n\r\n // output a gradient background for each browser\r\n $output .=\r\n 'background-color: #' . $tint_color . ' !important;' . \"\\r\\n\" .\r\n 'background: linear-gradient(bottom,#' . $tint_color .' 50%,#' . $hover_tint_color . ' 100%) !important;' . \"\\r\\n\" .\r\n 'background: -o-linear-gradient(bottom,#' . $tint_color . ' 50%,#' . $hover_tint_color . ' 100%) !important;' . \"\\r\\n\" .\r\n 'background: -moz-linear-gradient(bottom,#' . $tint_color . ' 50%,#' . $hover_tint_color . ' 100%) !important;' . \"\\r\\n\" .\r\n 'background: -webkit-linear-gradient(bottom,#' . $tint_color . ' 50%,#' . $hover_tint_color . ' 100%) !important;' . \"\\r\\n\" . \r\n 'background: -ms-linear-gradient(bottom,#' . $tint_color . ' 50%,#' . $hover_tint_color . ' 100%) !important;' . \"\\r\\n\" . // IE 10\r\n 'background: -webkit-gradient(linear,left bottom,left top,color-stop(0.50,#' . $tint_color . '),color-stop(1.0,#' . $hover_tint_color . ')) !important;' . \"\\r\\n\" .\r\n 'filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=\\'#' . $hover_IE_tint_color . '\\', endColorstr=\\'#' . $tint_color . '\\') !important;' . \"\\r\\n\" . // IE6 & IE7 \r\n $ie_8_and_9_gradient;\r\n }\r\n $output .= '}' . \"\\r\\n\";\r\n \r\n // output custom formats that do not have user options\r\n $output .=\r\n 'h1.heading-primary, h2.heading-primary, h3.heading-primary, h4.heading-primary, h5.heading-primary, h6.heading-primary ' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'border-bottom: 1px solid;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n 'h1.heading-secondary, h2.heading-secondary, h3.heading-secondary, h4.heading-secondary, h5.heading-secondary, h6.heading-secondary ' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'border-bottom: 1px dotted;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n 'td.text-annotate, p.text-annotate, span.text-annotate' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'font-size: 8pt;' . \"\\r\\n\" . \r\n 'text-decoration: none;' . \"\\r\\n\" .\r\n 'padding: 2px 5px;' . \"\\r\\n\" . \r\n 'border: 1px solid;' . \"\\r\\n\" . \r\n 'line-height: 1.4em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n 'td.text-fine-print, p.text-fine-print, span.text-fine-print' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'font-size: 75%;' . \"\\r\\n\" . \r\n 'text-decoration: none;' . \"\\r\\n\" . \r\n 'line-height: 1.5em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n 'td.text-box-primary, p.text-box-primary, span.text-box-primary, p.paragraph-box-primary' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin: .5em 0em;' . \"\\r\\n\" . \r\n 'padding: .5em;' . \"\\r\\n\" . \r\n 'border: 1px solid #' . $primary_color . ' !important;' . \"\\r\\n\" . \r\n 'line-height: 1.5em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n 'td.text-box-secondary, p.text-box-secondary, span.text-box-secondary, p.paragraph-box-secondary' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin: .5em 0em;' . \"\\r\\n\" . \r\n 'padding: .5em;' . \"\\r\\n\" . \r\n 'border: 1px solid #' . $secondary_color . ' !important;' . \"\\r\\n\" . \r\n 'line-height: 1.5em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n 'td.text-box-warning, p.text-box-warning, span.text-box-warning, p.paragraph-box-warning' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'color: red;' . \"\\r\\n\" . \r\n 'line-height: 1.4em;' . \"\\r\\n\" . \r\n 'text-decoration: none;' . \"\\r\\n\" . \r\n 'padding: 10px;' . \"\\r\\n\" . \r\n 'border: 1px solid red !important;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n 'td.paragraph-no-margin, p.paragraph-no-margin, span.paragraph-no-margin, p.paragraph-no-margin' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin-top: 0px;' . \"\\r\\n\" . \r\n 'margin-bottom: 0px;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n 'td.paragraph-no-margin-top, p.paragraph-no-margin-top, span.paragraph-no-margin-top, p.paragraph-no-margin-top' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin-top: 0px;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n 'td.paragraph-no-margin-bottom, p.paragraph-no-margin-bottom, span.paragraph-no-margin-bottom, p.paragraph-no-margin-bottom' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin-bottom: 0px;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.text-box-notice, p.text-box-notice, span.text-box-notice, p.paragraph-box-notice' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'line-height: 1.4em;' . \"\\r\\n\" . \r\n 'text-decoration: none;' . \"\\r\\n\" . \r\n 'padding: 10px;' . \"\\r\\n\" . \r\n 'border: 1px solid;' . \"\\r\\n\" . \r\n 'margin: .5em 0em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n 'td.text-box-example, p.text-box-example, span.text-box-example, p.paragraph-box-example' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'font-family: courier;' . \"\\r\\n\" . \r\n 'line-height: 1.4em;' . \"\\r\\n\" . \r\n 'word-spacing: normal;' . \"\\r\\n\" . \r\n 'text-decoration: none;' . \"\\r\\n\" . \r\n 'border-top: 1px dashed #' . $primary_color . ' !important;' . \"\\r\\n\" . \r\n 'border-bottom: 1px dashed #' . $primary_color . ' !important;' . \"\\r\\n\" . \r\n 'margin: 10px 0px;' . \"\\r\\n\" . \r\n 'padding: .5em;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n 'td.text-highlighter, p.text-highlighter, span.text-highlighter' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'color: #000000 !important;' . \"\\r\\n\" . \r\n 'background-color: yellow !important;' . \"\\r\\n\" . \r\n 'text-decoration: none;' . \"\\r\\n\" . \r\n 'padding: 2px;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n 'td.text-highlighter a, p.text-highlighter a, span.text-highlighter a' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'color: #000000 !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n 'td.text-quote, p.text-quote, span.text-quote' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'font-size: 150%;' . \"\\r\\n\" .\r\n 'line-height: 150%;' . \"\\r\\n\" . \r\n 'font-style: oblique;' . \"\\r\\n\" . \r\n 'margin: 0px;' . \"\\r\\n\" . \r\n 'padding: 0px;' . \"\\r\\n\" . \r\n 'border: none;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n 'td.paragraph-indent, p.paragraph-indent' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'text-indent: 5%;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n 'li.link-menu-item, p.link-menu-item, a.link-menu-item' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'display: block;' . \"\\r\\n\" . \r\n 'padding: 0.5em 1em;' . \"\\r\\n\" . \r\n 'margin: 0em 0em .5em 0em;' . \"\\r\\n\" . \r\n 'font-size: 100%;' . \"\\r\\n\" . \r\n 'font-weight: normal;' . \"\\r\\n\" . \r\n 'font-style: normal;' . \"\\r\\n\" .\r\n 'text-decoration: none;' . \"\\r\\n\" .\r\n 'color: #' . $primary_color . ' !important;' . \"\\r\\n\" .\r\n 'background: #' . $secondary_color . ' !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n 'a.link-menu-item:hover, a.link-menu-item:focus' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'color: #' . $secondary_color . ' !important;' . \"\\r\\n\" . \r\n 'background: #' . $primary_color . ' !important;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n 'a.link-content-more,' . \"\\r\\n\" .\r\n 'a.link-content-more:link,' . \"\\r\\n\" .\r\n 'a.link-content-more:active,' . \"\\r\\n\" .\r\n 'a.link-content-more:visited' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'font-size: 75%;' . \"\\r\\n\" .\r\n 'border: 1px solid #' . $primary_color . ' !important;' . \"\\r\\n\" .\r\n 'text-decoration: none;' . \"\\r\\n\" .\r\n 'padding: .5em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n 'a.link-content-more:hover, a.link-content-more:focus' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'color: #'. $primary_color . ' !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n 'table.table-primary' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'border: 5px solid #' . $primary_color . ' !important;' . \"\\r\\n\" .\r\n 'border-width: 5px;' . \"\\r\\n\" .\r\n 'vertical-align: top;' . \"\\r\\n\" .\r\n 'border-collapse: separate;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n 'table.table-primary th' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'border-bottom: 5px solid #' . $primary_color . ' !important;' . \"\\r\\n\" .\r\n 'border-width: 5px;' . \"\\r\\n\" .\r\n 'vertical-align: top;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n 'table.table-secondary ' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'border: 1px solid #' . $secondary_color . ' !important;' . \"\\r\\n\" .\r\n 'border-width: 1px;' . \"\\r\\n\" .\r\n 'vertical-align: top;' . \"\\r\\n\" .\r\n 'border-collapse: separate;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n 'table.table-secondary th' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'border-bottom: 1px solid #' . $secondary_color . ' !important;' . \"\\r\\n\" .\r\n 'border-width: 1px;' . \"\\r\\n\" .\r\n 'vertical-align: top;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n 'table.table-left' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'float: left;' . \"\\r\\n\" .\r\n 'width: auto !important;' . \"\\r\\n\" .\r\n 'margin-right: 1em !important;' . \"\\r\\n\" .\r\n 'margin-bottom: .2em !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n 'table.table-right' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'float: right;' . \"\\r\\n\" .\r\n 'width: auto !important;' . \"\\r\\n\" .\r\n 'margin-left: 1em !important;' . \"\\r\\n\" .\r\n 'margin-bottom: .2em !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n 'table.table-center' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'width: auto !important;' . \"\\r\\n\" .\r\n 'margin-right: auto !important;' . \"\\r\\n\" .\r\n 'margin-left: auto !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n 'thead.table-row-header' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'background: #' . $primary_color . ' !important;' . \"\\r\\n\" .\r\n 'color: #' . $secondary_color . ' !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n 'tbody.table-row-body' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n // intentionally left blank\r\n '}' . \"\\r\\n\" .\r\n 'tfoot.table-row-footer' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'background: #' . $primary_color . ' !important;' . \"\\r\\n\" .\r\n 'color: #' . $secondary_color . ' !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n 'th.table-cell-header' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'background: #' . $primary_color . ' !important;' . \"\\r\\n\" .\r\n 'color: #' . $secondary_color . ' !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n 'td.table-cell-data' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n // intentionally left blank\r\n '}' . \"\\r\\n\" .\r\n '.one_column_mobile td.table-cell-mobile-fill' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'float: left !important;' . \"\\r\\n\" .\r\n 'width: 100% !important;' . \"\\r\\n\" .\r\n 'white-space: normal !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.one_column_mobile td.table-cell-mobile-wrap' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'float: left !important;' . \"\\r\\n\" .\r\n 'width: auto !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n // add mobile hide for only mobile page styles\r\n '.one_column_mobile table.table-mobile-hide,' . \"\\r\\n\" .\r\n '.one_column_mobile td.table-cell-mobile-hide,' . \"\\r\\n\" .\r\n '.one_column_mobile p.paragraph-mobile-hide,' . \"\\r\\n\" .\r\n '.one_column_mobile img.image-mobile-hide,' . \"\\r\\n\" .\r\n '.one_column_mobile .video-mobile-hide,' . \"\\r\\n\" .\r\n '.one_column_mobile a.link-mobile-hide,' . \"\\r\\n\" .\r\n '.one_column_mobile div.mobile-hide,' . \"\\r\\n\" .\r\n '.one_column_mobile span.text-mobile-hide' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'display: none;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n // add desktop hide for all but mobile pages styles\r\n '.one_column table.table-desktop-hide,' . \"\\r\\n\" .\r\n '.one_column td.table-cell-desktop-hide,' . \"\\r\\n\" .\r\n '.one_column p.paragraph-desktop-hide,' . \"\\r\\n\" .\r\n '.one_column img.image-desktop-hide,' . \"\\r\\n\" .\r\n '.one_column .video-desktop-hide,' . \"\\r\\n\" .\r\n '.one_column a.link-desktop-hide,' . \"\\r\\n\" .\r\n '.one_column div.desktop-hide,' . \"\\r\\n\" .\r\n '.one_column span.text-desktop-hide,' . \"\\r\\n\" .\r\n '.one_column_email table.table-desktop-hide,' . \"\\r\\n\" .\r\n '.one_column_email td.table-cell-desktop-hide,' . \"\\r\\n\" .\r\n '.one_column_email p.paragraph-desktop-hide,' . \"\\r\\n\" .\r\n '.one_column_email img.image-desktop-hide,' . \"\\r\\n\" .\r\n '.one_column_email .video-desktop-hide,' . \"\\r\\n\" .\r\n '.one_column_email a.link-desktop-hide,' . \"\\r\\n\" .\r\n '.one_column_email div.desktop-hide,' . \"\\r\\n\" .\r\n '.one_column_email span.text-desktop-hide,' . \"\\r\\n\" .\r\n '.two_column_sidebar_left table.table-desktop-hide,' . \"\\r\\n\" .\r\n '.two_column_sidebar_left td.table-cell-desktop-hide,' . \"\\r\\n\" .\r\n '.two_column_sidebar_left p.paragraph-desktop-hide,' . \"\\r\\n\" .\r\n '.two_column_sidebar_left img.image-desktop-hide,' . \"\\r\\n\" .\r\n '.two_column_sidebar_left .video-desktop-hide,' . \"\\r\\n\" .\r\n '.two_column_sidebar_left a.link-desktop-hide,' . \"\\r\\n\" .\r\n '.two_column_sidebar_left div.desktop-hide,' . \"\\r\\n\" .\r\n '.two_column_sidebar_left span.text-desktop-hide,' . \"\\r\\n\" .\r\n '.two_column_sidebar_right table.table-desktop-hide,' . \"\\r\\n\" .\r\n '.two_column_sidebar_right td.table-cell-desktop-hide,' . \"\\r\\n\" .\r\n '.two_column_sidebar_right p.paragraph-desktop-hide,' . \"\\r\\n\" .\r\n '.two_column_sidebar_right img.image-desktop-hide,' . \"\\r\\n\" .\r\n '.two_column_sidebar_right .video-desktop-hide,' . \"\\r\\n\" .\r\n '.two_column_sidebar_right a.link-desktop-hide,' . \"\\r\\n\" .\r\n '.two_column_sidebar_right div.desktop-hide,' . \"\\r\\n\" .\r\n '.two_column_sidebar_right span.text-desktop-hide,' . \"\\r\\n\" .\r\n '.three_column_sidebar_left table.table-desktop-hide,' . \"\\r\\n\" .\r\n '.three_column_sidebar_left td.table-cell-desktop-hide,' . \"\\r\\n\" .\r\n '.three_column_sidebar_left p.paragraph-desktop-hide,' . \"\\r\\n\" .\r\n '.three_column_sidebar_left img.image-desktop-hide,' . \"\\r\\n\" .\r\n '.three_column_sidebar_left .video-desktop-hide,' . \"\\r\\n\" .\r\n '.three_column_sidebar_left a.link-desktop-hide,' . \"\\r\\n\" .\r\n '.three_column_sidebar_left div.desktop-hide,' . \"\\r\\n\" .\r\n '.three_column_sidebar_left span.text-desktop-hide' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'display: none;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n // override all hides when user is in edit mode\r\n '.edit_mode table.table-mobile-hide,' . \"\\r\\n\" .\r\n '.edit_mode td.table-cell-mobile-hide,' . \"\\r\\n\" .\r\n '.edit_mode p.paragraph-mobile-hide,' . \"\\r\\n\" .\r\n '.edit_mode img.image-mobile-hide,' . \"\\r\\n\" .\r\n '.edit_mode .video-mobile-hide,' . \"\\r\\n\" .\r\n '.edit_mode a.link-mobile-hide,' . \"\\r\\n\" .\r\n '.edit_mode div.mobile-hide,' . \"\\r\\n\" .\r\n '.edit_mode span.text-mobile-hide,' . \"\\r\\n\" .\r\n '.edit_mode table.table-desktop-hide,' . \"\\r\\n\" .\r\n '.edit_mode td.table-cell-desktop-hide,' . \"\\r\\n\" .\r\n '.edit_mode p.paragraph-desktop-hide,' . \"\\r\\n\" .\r\n '.edit_mode img.image-desktop-hide,' . \"\\r\\n\" .\r\n '.edit_mode .video-desktop-hide,' . \"\\r\\n\" .\r\n '.edit_mode a.link-desktop-hide,' . \"\\r\\n\" .\r\n '.edit_mode div.desktop-hide,' . \"\\r\\n\" .\r\n '.edit_mode span.text-desktop-hide' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'display: block !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.background-primary' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'background-color: #' . $primary_color . ' !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.background-secondary' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'background-color: #' . $secondary_color . ' !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.color-primary' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'color: #' . $primary_color . ' !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.color-secondary' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'color: #' . $secondary_color . ' !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n // output software classes\r\n '.software_highlight' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'font-weight: bold;' . \"\\r\\n\" .\r\n 'color: #' . $primary_color . ' !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n '.software_hr' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'border-top-width: 0px;' . \"\\r\\n\" . \r\n 'border-right-width: 0px;' . \"\\r\\n\" . \r\n 'border-bottom-width: 0px;' . \"\\r\\n\" . \r\n 'border-left-width: 0px;' . \"\\r\\n\" . \r\n 'color: #' . $site_wide_properties['base_object']['text']['font_color'] . ' !important;' . \"\\r\\n\" . \r\n 'height: 1px;' . \"\\r\\n\" . \r\n 'background-color: #' . $site_wide_properties['base_object']['text']['font_color'] . ' !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.software_input_radio,' . \"\\r\\n\" . \r\n '.software_input_checkbox' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'border-top-width: 0px;' . \"\\r\\n\" . \r\n 'border-right-width: 0px;' . \"\\r\\n\" . \r\n 'border-bottom-width: 0px;' . \"\\r\\n\" . \r\n 'border-left-width: 0px;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n 'input.software_input_submit_small_secondary' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'display: inline-block;' . \"\\r\\n\" . \r\n 'line-height: normal;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n '.software_legend' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'color: #' . $primary_color . ' !important;' . \"\\r\\n\" . \r\n 'font-weight: bold;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n '.software_fieldset' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'border: 1px solid #' . $primary_color . ' !important;' . \"\\r\\n\" .\r\n 'margin: 0 0 1em 0;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n '.software_office_use_only' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'font-weight: bold;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n '.software_monthly_calendar' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'width: 100%;' . \"\\r\\n\" . \r\n 'border-collapse: collapse;' . \"\\r\\n\" . \r\n 'border: 1px solid #' . $primary_color . ' !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.software_calendar form input,' . \"\\r\\n\" . \r\n '.software_calendar form .software_select,' . \"\\r\\n\" .\r\n '.software_calendar form .software_input_submit_small_secondary' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" . \r\n 'vertical-align: middle !important;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_monthly_calendar a:link,' . \"\\r\\n\" . \r\n '.software_monthly_calendar a:visited' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'text-decoration: none;' . \"\\r\\n\" . \r\n 'border: none;' . \"\\r\\n\" . \r\n 'line-height: 1.2em;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n '.software_monthly_calendar td, .software_monthly_calendar th' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'line-height: 1em;' . \"\\r\\n\" .\r\n 'padding: 1em;' . \"\\r\\n\" . \r\n 'vertical-align: top;' . \"\\r\\n\" .\r\n 'border: 1px solid #' . $primary_color . ' !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n '.software_monthly_calendar th' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'background: #' . $primary_color . ' !important;' . \"\\r\\n\" .\r\n 'color: #' . $primary_button_color . ' !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n '.software_monthly_calendar td.inactive' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'background-image: url({path}{software_directory}/images/translucent_20.png);' . \"\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.software_pagination' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin-top: 1em;' . \"\\r\\n\" .\r\n 'margin-bottom: 1em;' . \"\\r\\n\" .\r\n 'text-decoration: none;' . \"\\r\\n\" .\r\n 'font-size: 80%;' . \"\\r\\n\" .\r\n 'font-weight: bold;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n '.software_pagination a,' . \"\\r\\n\" . \r\n '.software_pagination span' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'padding: 0.2em 0.4em !important;' . \"\\r\\n\" .\r\n 'margin-left: 0.1em;' . \"\\r\\n\" .\r\n 'margin-right: 0.1em;' . \"\\r\\n\" .\r\n 'text-decoration: none;' . \"\\r\\n\" .\r\n 'font-style: normal;' . \"\\r\\n\" .\r\n 'border: 1px solid;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n '.software_pagination a' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'color: #' . $primary_button_background . ' !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n '.software_pagination a:hover,' . \"\\r\\n\" .\r\n '.software_pagination a.previous:hover,' . \"\\r\\n\" . \r\n '.software_pagination a.next:hover' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'border: 1px solid #' . $primary_button_background . ' !important;' . \"\\r\\n\" .\r\n 'color: #' . $primary_button_color . ' !important;' . \"\\r\\n\" .\r\n 'background: #' . $primary_button_background . ' !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n '.software_pagination .current' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'border: 1px solid;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n '.software_pagination a.previous,' . \"\\r\\n\" . \r\n '.software_pagination a.next' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'border: 1px solid;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n '.software_pagination span.previous,' . \"\\r\\n\" . \r\n '.software_pagination span.next' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'display: none;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n '.software_catalog,' . \"\\r\\n\" . \r\n '.software_catalog .featured_and_new_item_table,' . \"\\r\\n\" . \r\n '.software_catalog .item_table' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'border-collapse: collapse;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_catalog .featured_and_new_item_table' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'width: 100%;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_catalog table td' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'vertical-align: top;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_catalog .heading' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin-bottom: .5em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_catalog .item_table' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'border-collapse: collapse;' . \"\\r\\n\" .\r\n 'width: 100%;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n '.software_catalog .item' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin: 0em 0em 2em 0em;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n '.software_catalog .item .short_description' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'text-align: center;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n '.software_catalog .featured_and_new_item_table' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'width: 100%;' . \"\\r\\n\" . \r\n 'margin: 0em 0em 0em 0em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_catalog .featured_and_new_item_table .top_item' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin-right: 10%;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.more_detail' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin: 1em 0em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_catalog .featured_and_new_item_table .top_item .more_detail a' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'font-weight: normal;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.software_catalog_search_results' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin-top: 1em;' . \"\\r\\n\" . \r\n 'margin-bottom: 1em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_catalog_search_results .item' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin-bottom: 1em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_catalog_search_results .item .image' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin-bottom: .25em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_catalog_search_results .item .short_description' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin-bottom: .25em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_catalog_detail .keywords,' . \"\\r\\n\" . \r\n '.software_catalog_detail .price' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'padding-bottom: 1em;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.software_tag_cloud' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'text-align: left;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.comments_heading' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'margin: 1em 0em .5em 0em;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.comments_heading .title' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'font-size: 120%;' . \"\\r\\n\" .\r\n 'font-weight: bold;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.comments_heading .links,' . \"\\r\\n\" .\r\n '.comments_heading .links a' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'font-size: 90%;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.add_comment_heading' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'font-weight: bold;' . \"\\r\\n\" . \r\n 'margin: 1em 0em .5em 0em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.comment' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin: 0em 0em 1em 0em;' . \"\\r\\n\" . \r\n 'padding: 1em;' . \"\\r\\n\" . \r\n 'border-top: 1px solid;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.comment .name' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'font-weight: bold;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.comment .date_and_time' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'font-size: 75%;' . \"\\r\\n\" .\r\n 'font-style: italic;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.comment .notice' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'color: red;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_cart_region' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'padding: 0em;' . \"\\r\\n\" . \r\n 'text-align: left;' . \"\\r\\n\" . \r\n 'display: inline;' . \"\\r\\n\" .\r\n 'text-decoration:none;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.software_cart_region .items' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'display: inline;' . \"\\r\\n\" . \r\n 'padding: 0em;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n '.software_icalendar_link' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin-top: 1em;' . \"\\r\\n\" . \r\n 'margin-bottom: 1em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_discounted_price' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'color: #FF0000;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" . \r\n '.software_login_region form' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin: 0em;' . \"\\r\\n\" . \r\n 'padding: 0em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_login_region .software_input_checkbox' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin: .25em .3em .65em 0em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_login_region input' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin: 0em .25em .5em 0em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_comments .watcher_container' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin-top: 1em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.watcher_container' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin: 2em 0em .5em 0em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.watcher_count' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'font-weight: bold;' . \"\\r\\n\" . \r\n 'margin: 0em 0em .5em 0em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.watcher_question' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin: 0em 0em .5em 0em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.software_photo_gallery_album .heading' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin-bottom: .5em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.software_photo_gallery_album table' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'border-collapse: collapse;' . \"\\r\\n\" . \r\n 'margin-bottom: 1em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.software_photo_gallery_album table td' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'width: 100px;' . \"\\r\\n\" . \r\n 'text-align: center;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.software_photo_gallery_album table td.album' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'padding: 1em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.software_photo_gallery_album table td.photo' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'padding: .5em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.software_photo_gallery_album .image' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'cursor: pointer;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.software_photo_gallery_album .album .image' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'display: block;' . \"\\r\\n\" . \r\n 'border: 1px solid #' . $primary_color . ' !important;' . \"\\r\\n\" . \r\n 'background: #' . $secondary_color . ' !important;' . \"\\r\\n\" . \r\n 'padding: 5px;' . \"\\r\\n\" . \r\n 'position: relative;' . \"\\r\\n\" . \r\n 'z-index: 3;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.software_photo_gallery_album .album .image_hover' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'background: #' . $primary_color . ' !important;' . \"\\r\\n\" . \r\n 'border: 1px solid #' . $secondary_color . ' !important;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.software_photo_gallery_album .album .thumbnail' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'margin-bottom: 1em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.software_photo_gallery_album .album_frame' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'position: absolute;' . \"\\r\\n\" . \r\n 'border: 1px solid #' . $primary_color . ' !important;' . \"\\r\\n\" . \r\n 'background: #' . $secondary_color . ' !important;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.software_photo_gallery_album #album_frame_1' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'top: 1px;' . \"\\r\\n\" . \r\n 'left: 1px;' . \"\\r\\n\" . \r\n 'z-index: 2;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.software_photo_gallery_album #album_frame_2' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'top: 4px;' . \"\\r\\n\" . \r\n 'left: 4px;' . \"\\r\\n\" . \r\n 'z-index: 1;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.software_photo_gallery_album .album .name' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'font-weight: bold;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.software_photo_gallery_album .photo .image' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'border: 1px solid #' . $secondary_color . ' !important;' . \"\\r\\n\" . \r\n 'padding: 5px;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.software_photo_gallery_album .photo .image_hover' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'border: 1px solid #' . $primary_color . ' !important;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.heading' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'font-weight: bold;' . \"\\r\\n\" .\r\n 'border-bottom: 1px solid #' . $primary_color_tint . ';' . \"\\r\\n\" .\r\n 'padding-bottom: .5em;' . \"\\r\\n\" .\r\n 'margin-bottom: .5em;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.data' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n // intentionally left blank\r\n '}' . \"\\r\\n\" .\r\n '.software_calendar .today' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'font-weight: bold;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.mceContentBody a,.mceContentBody a:hover,.mceContentBody a:focus' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'text-decoration: underline;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.mceContentBody hr' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'background: black !important;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.mceContentBody span.text-highlighter' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'color: black !important;' . \"\\r\\n\" .\r\n 'background-color: #dedede !important;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.mceContentBody .mceItemTable td'. \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'font-family: ' . $global_font_family . ';' . \"\\r\\n\" .\r\n 'font-size: ' . $site_wide_properties['base_object']['text']['font_size'] . ';' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.mceContentBody span.mceItemHiddenSpellWord'. \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'color: white !important;' . \"\\r\\n\" .\r\n 'background: red !important;' . \"\\r\\n\" .\r\n 'padding: 2px !important;' . \"\\r\\n\" .\r\n 'font-weight: bold !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.mceContentBody ul.list-accordion'. \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'list-style-type: disc !important;' . \"\\r\\n\" .\r\n 'padding: 0 0 0 40px !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.mceContentBody table'. \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'margin: 0px !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.software_ad_region_dynamic' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'position: relative;' . \"\\r\\n\" . \r\n 'width: 895px;' . \"\\r\\n\" .\r\n 'height: 200px;' . \"\\r\\n\" .\r\n 'margin: 0 auto;' . \"\\r\\n\" . // v8.5\r\n '}' . \"\\r\\n\" .\r\n '.software_ad_region_dynamic .items_container' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'overflow: auto;' . \"\\r\\n\" . \r\n 'overflow-x: hidden;' . \"\\r\\n\" . \r\n 'position: relative;' . \"\\r\\n\" . \r\n 'clear: left;' . \"\\r\\n\" . \r\n 'width: 895px;' . \"\\r\\n\" .\r\n 'height: 200px;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.software_ad_region_dynamic .item' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'width: 899px;' . \"\\r\\n\" . \r\n 'height: 200px;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n '.software_ad_region_dynamic ul.menu' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'list-style: none;' . \"\\r\\n\" . \r\n 'position: absolute;' . \"\\r\\n\" . \r\n 'z-index: 1;' . \"\\r\\n\" . \r\n 'margin: 0em;' . \"\\r\\n\" . \r\n 'padding: 0em;' . \"\\r\\n\" .\r\n 'bottom: 0em;' . \"\\r\\n\" .\r\n 'right: 0em;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.software_ad_region_dynamic ul.menu li' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'list-style: none;' . \"\\r\\n\" . \r\n 'display: inline;' . \"\\r\\n\" . \r\n 'margin-right: .5em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_ad_region_dynamic .previous,' . \"\\n\" .\r\n '.software_ad_region_dynamic .next' . \"\\n\" .\r\n '{' . \"\\n\" .\r\n 'background-position: center;' . \"\\n\" .\r\n 'background-repeat: no-repeat;' . \"\\n\" .\r\n 'cursor: pointer;' . \"\\n\" .\r\n 'height: 60px;' . \"\\n\" .\r\n 'position: absolute;' . \"\\n\" .\r\n 'top: 3.5em;' . \"\\n\" .\r\n 'width: 47px;' . \"\\n\" .\r\n 'z-index: 2;' . \"\\n\" .\r\n '}' . \"\\n\" .\r\n '.software_ad_region_dynamic .previous' . \"\\n\" .\r\n '{' . \"\\n\" .\r\n 'background-image: url({path}{software_directory}/images/previous.png);' . \"\\n\" .\r\n 'left: .5em;' . \"\\n\" .\r\n '}' . \"\\n\" .\r\n '.software_ad_region_dynamic .next' . \"\\n\" .\r\n '{' . \"\\n\" .\r\n 'background-image: url({path}{software_directory}/images/next.png);' . \"\\n\" .\r\n 'right: .5em;' . \"\\n\" .\r\n '}' . \"\\n\" .\r\n '.software_ad_region_dynamic .caption' . \"\\n\" .\r\n '{' . \"\\n\" .\r\n 'background-image: url({path}{software_directory}/images/translucent_black_60.png);' . \"\\n\" .\r\n 'bottom: 0;' . \"\\n\" .\r\n 'color: white;' . \"\\n\" .\r\n 'display: none;' . \"\\n\" .\r\n 'left: 0;' . \"\\n\" .\r\n 'position: absolute;' . \"\\n\" .\r\n '}' . \"\\n\" .\r\n '.software_ad_region_dynamic .caption a,' . \"\\n\" .\r\n '.software_ad_region_dynamic .caption h1,' . \"\\n\" .\r\n '.software_ad_region_dynamic .caption h2,' . \"\\n\" .\r\n '.software_ad_region_dynamic .caption h3,' . \"\\n\" .\r\n '.software_ad_region_dynamic .caption h4,' . \"\\n\" .\r\n '.software_ad_region_dynamic .caption h5,' . \"\\n\" .\r\n '.software_ad_region_dynamic .caption h6' . \"\\n\" .\r\n '{' . \"\\n\" .\r\n 'color: white;' . \"\\n\" .\r\n '}' . \"\\n\" .\r\n '.software_ad_region_dynamic .caption p' . \"\\n\" .\r\n '{' . \"\\n\" .\r\n 'margin: 0;' . \"\\n\" .\r\n '}' . \"\\n\" .\r\n '.software_ad_region_dynamic .caption_content' . \"\\n\" .\r\n '{' . \"\\n\" .\r\n 'padding: 1em 2em;' . \"\\n\" .\r\n '}' . \"\\n\" .\r\n '.one_column_mobile .software_ad_region_dynamic .caption_content' . \"\\n\" .\r\n '{' . \"\\n\" .\r\n 'padding: .5em;' . \"\\n\" .\r\n '}' . \"\\n\" .\r\n '.software_menu,' . \"\\r\\n\" . \r\n '.software_menu ul' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'padding: 0em;' . \"\\r\\n\" . \r\n 'margin: 0em;' . \"\\r\\n\" . \r\n 'list-style-type: none;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_menu li' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'position: relative;' . \"\\r\\n\" . \r\n 'padding: 0;' . \"\\r\\n\" . \r\n 'margin: 0em 1em 0em 0em;' . \"\\r\\n\" . \r\n 'float: left;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_menu li a' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'display: block;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_menu li ul' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'position: absolute;' . \"\\r\\n\" . \r\n 'display: none;' . \"\\r\\n\" . \r\n 'top: 50px;' . \"\\r\\n\" . \r\n 'left: 0;' . \"\\r\\n\" . \r\n 'width: auto;' . \"\\r\\n\" . \r\n 'padding: .5em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_menu li ul li' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'padding: 0em;' . \"\\r\\n\" . \r\n 'margin: 0;' . \"\\r\\n\" . \r\n 'width: auto;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_menu_sequence' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'padding: 0em;' . \"\\r\\n\" . \r\n 'margin: 0em 0em 1em 0em;' . \"\\r\\n\" . \r\n 'text-align: right;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_menu_sequence .previous,' . \"\\r\\n\" . \r\n '.software_menu_sequence .next' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'padding: .5em;' . \"\\r\\n\" . \r\n 'margin: 0em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_menu_sequence a.previous:hover,' . \"\\r\\n\" . \r\n '.software_menu_sequence a.previous:focus,' . \"\\r\\n\" . \r\n '.software_menu_sequence a.next:hover,' . \"\\r\\n\" . \r\n '.software_menu_sequence a.next:focus' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'text-decoration: none;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" . \r\n '.software_error,' . \"\\r\\n\" .\r\n '.software_notice' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' margin-bottom: 1.5em;' . \"\\r\\n\" .\r\n ' padding: 1em;' . \"\\r\\n\" .\r\n ' -moz-border-radius: 7px 7px 7px 7px;' . \"\\r\\n\" .\r\n ' -webkit-border-radius: 7px 7px 7px 7px;' . \"\\r\\n\" .\r\n ' border-radius: 7px 7px 7px 7px;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n \"\\r\\n\" .\r\n '.software_error' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' background-color: #fdd5ce;' . \"\\r\\n\" .\r\n ' border: 2px solid red;' . \"\\r\\n\" .\r\n ' color: red;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n \"\\r\\n\" .\r\n '.software_notice' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' background-color: #edfced;' . \"\\r\\n\" .\r\n ' border: 1px solid #428221;' . \"\\r\\n\" .\r\n ' color: #428221;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n \"\\r\\n\" .\r\n '.software_error .description,' . \"\\r\\n\" .\r\n '.software_notice .description' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' font-size: 110%;' . \"\\r\\n\" .\r\n ' font-weight: bold;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n \"\\r\\n\" .\r\n '.software_error .icon,' . \"\\r\\n\" .\r\n '.software_notice .icon' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' float: left;' . \"\\r\\n\" .\r\n ' margin-right: .75em;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n \"\\r\\n\" .\r\n '.software_error ul,' . \"\\r\\n\" .\r\n '.software_notice ul' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' margin-top: 1em !important;' . \"\\r\\n\" .\r\n ' margin-bottom: 0em !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.software_badge' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'padding: 0.1em 0.2em 0;' . \"\\r\\n\" .\r\n 'vertical-align: middle;' . \"\\r\\n\" .\r\n 'border: 1px solid;' . \"\\r\\n\" .\r\n 'font-size: 70%;' . \"\\r\\n\" .\r\n 'font-weight: bold;' . \"\\r\\n\" .\r\n 'font-style: normal;' . \"\\r\\n\" .\r\n '-moz-border-radius: 3px 3px 3px 3px;' . \"\\r\\n\" .\r\n '-webkit-border-radius: 3px 3px 3px 3px;' . \"\\r\\n\" .\r\n 'border-radius: 3px 3px 3px 3px;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n \"\\r\\n\" .\r\n // additional styling for mobile and v8.0\r\n '.software_mobile_switch' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' text-align: center;' . \"\\r\\n\" .\r\n ' padding: 1em;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n // v8.0 align radio buttons for desktop and mobile\r\n 'label' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' vertical-align: middle;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n // mobile image overrides\r\n '.one_column_mobile .image-right-primary,' . \"\\r\\n\" .\r\n '.one_column_mobile .image-left-primary,' . \"\\r\\n\" .\r\n '.one_column_mobile .image-right-secondary,' . \"\\r\\n\" .\r\n '.one_column_mobile .image-left-secondary' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' float: left;' . \"\\r\\n\" .\r\n ' margin-right: 1em;' . \"\\r\\n\" .\r\n ' margin-left: 0;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.one_column_mobile .video-primary object,' . \"\\r\\n\" .\r\n '.one_column_mobile .video-primary iframe,' . \"\\r\\n\" .\r\n '.one_column_mobile .video-primary video,' . \"\\r\\n\" .\r\n '.one_column_mobile .video-secondary object,' . \"\\r\\n\" .\r\n '.one_column_mobile .video-secondary iframe,' . \"\\r\\n\" .\r\n '.one_column_mobile .video-secondary video,' . \"\\r\\n\" .\r\n '.one_column_mobile .video-right-primary object,' . \"\\r\\n\" .\r\n '.one_column_mobile .video-right-primary iframe,' . \"\\r\\n\" .\r\n '.one_column_mobile .video-right-primary video,' . \"\\r\\n\" .\r\n '.one_column_mobile .video-left-primary object,' . \"\\r\\n\" .\r\n '.one_column_mobile .video-left-primary iframe,' . \"\\r\\n\" .\r\n '.one_column_mobile .video-left-primary video,' . \"\\r\\n\" .\r\n '.one_column_mobile .video-right-secondary object,' . \"\\r\\n\" .\r\n '.one_column_mobile .video-right-secondary iframe,' . \"\\r\\n\" .\r\n '.one_column_mobile .video-right-secondary video,' . \"\\r\\n\" .\r\n '.one_column_mobile .video-left-secondary object,' . \"\\r\\n\" .\r\n '.one_column_mobile .video-left-secondary iframe,' . \"\\r\\n\" .\r\n '.one_column_mobile .video-left-secondary video' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' float: left;' . \"\\r\\n\" .\r\n ' margin-right: 1em;' . \"\\r\\n\" .\r\n ' margin-left: 0;' . \"\\r\\n\" .\r\n ' border-width: 1px;' . \"\\r\\n\" .\r\n ' border-radius: 0;' . \"\\r\\n\" .\r\n ' -moz-border-radius: 0;' . \"\\r\\n\" .\r\n ' -webkit-border-radius: 0;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.one_column_mobile img,' . \"\\r\\n\" .\r\n '.one_column_mobile object,' . \"\\r\\n\" .\r\n '.one_column_mobile iframe,' . \"\\r\\n\" .\r\n '.one_column_mobile video' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' max-width: 100%;' . \"\\r\\n\" .\r\n ' width: auto\\9;' . \"\\r\\n\" . //ie8\r\n '}' . \"\\r\\n\" .\r\n '.one_column_mobile embed,' . \"\\r\\n\" .\r\n '.one_column_mobile object,' . \"\\r\\n\" .\r\n '.one_column_mobile iframe,' . \"\\r\\n\" .\r\n '.one_column_mobile video' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' width: 100%;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n // v8.0 this is required to wrap custom form labels and fields for mobile viewing\r\n '.one_column_mobile .software_input_text,' . \"\\r\\n\" .\r\n '.one_column_mobile .software_textarea,' . \"\\r\\n\" .\r\n '.one_column_mobile .software_input_password' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' width: 98%;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.one_column_mobile .mobile_width' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' width: 100% !important;' . \"\\r\\n\" .\r\n ' white-space: normal !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.one_column_mobile .mobile_fixed_width' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' width: 100px;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.one_column_mobile .mobile_left' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' float: left !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.one_column_mobile .mobile_right' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' float: right !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.one_column_mobile .mobile_hide' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' display: none;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.one_column_mobile .mobile_text_width' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' width: 50% !important' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.one_column_mobile .mobile_align_left' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' text-align: left !important;' . \"\\r\\n\" .\r\n ' white-space: normal !important;' . \"\\r\\n\" .\r\n ' margin-bottom: .5em !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.one_column_mobile .mobile_align_left input' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' margin-bottom: .5em !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.one_column_mobile .mobile_margin_top' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' margin-top: 1em !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n '.one_column_mobile .mobile_margin_bottom' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' margin-bottom: 1em !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n // my account page adjustments for mobile\r\n '.one_column_mobile .complete_orders .data,' . \"\\r\\n\" .\r\n '.one_column_mobile .incomplete_orders .data' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' padding-left: 0 !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n // credit card fields padding on mobile express order\r\n '.one_column_mobile #credit_debit_card_fields' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n ' padding-left: 0 !important;' . \"\\r\\n\" .\r\n '}' . \"\\r\\n\" .\r\n //checkbox and radio buttons larger for mobile\r\n '.one_column_mobile .software_input_radio,' . \"\\r\\n\" . \r\n '.one_column_mobile .software_input_checkbox' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'font-size: 150%;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n // force captcha input field smaller for ui clarity \r\n '.one_column_mobile .software_captcha_answer' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'width: 2em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n // force card verification number field smaller for ui clarity \r\n '.one_column_mobile card_verification_number input' . \"\\r\\n\" . \r\n '{' . \"\\r\\n\" .\r\n 'width: 5em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n // spacing for thumbnails in catalog/photo gallery pages \r\n '.one_column_mobile div.item.mobile_left,' . \"\\r\\n\" . \r\n '.one_column_mobile td.mobile_spacer' . \"\\r\\n\" .\r\n '{' . \"\\r\\n\" .\r\n 'margin-right: .5em;' . \"\\r\\n\" . \r\n '}' . \"\\r\\n\" .\r\n'\r\n/* Tabbed List CSS support\r\n Caution! Ensure accessibility in print and other media types. */\r\n@media projection, screen { /* Use class for showing/hiding tab content, so that visibility can be better controlled in different media types... */\r\n .ui-tabs-hide {\r\n display: none !important;\r\n }\r\n}\r\n/* Hide useless elements in print layouts... */\r\n@media print {\r\n .ui-tabs-nav {\r\n display: none;\r\n }\r\n}\r\n.ui-tabs-nav\r\n{\r\n list-style: none;\r\n margin-bottom: 0px;\r\n padding: 0;\r\n}\r\n.ui-tabs-nav:after \r\n{ /* clearing without presentational markup, IE gets extra treatment */\r\n display: block;\r\n clear: both;\r\n content: \" \";\r\n}\r\n.ui-tabs-nav li \r\n{\r\n float: left;\r\n}\r\n.ui-tabs-nav a,\r\n.ui-tabs-nav a span \r\n{\r\n float: left; /* fixes dir=ltr problem and other quirks IE */\r\n}\r\n.ui-tabs-nav a\r\n{\r\n background-position: 100% 0;\r\n text-decoration: none;\r\n white-space: nowrap; /* @ IE 6 */\r\n outline: 0; /* @ Firefox, prevent dotted border after click */\r\n position: relative;\r\n top: 0px;\r\n z-index: 2;\r\n padding-right: .5em;\r\n}\r\n.ui-tabs-nav .ui-tabs-selected a:link,\r\n.ui-tabs-nav .ui-tabs-selected a:visited,\r\n.ui-tabs-nav .ui-tabs-disabled a:link,\r\n.ui-tabs-nav .ui-tabs-disabled a:visited\r\n{ /* @ Opera, use pseudo classes otherwise it confuses cursor... */\r\n cursor: text;\r\n}\r\n.ui-tabs-nav a:hover,\r\n.ui-tabs-nav a:focus,\r\n.ui-tabs-nav a:active,\r\n.ui-tabs-nav .ui-tabs-unselect a:hover,\r\n.ui-tabs-nav .ui-tabs-unselect a:focus,\r\n.ui-tabs-nav .ui-tabs-unselect a:active\r\n{ /* @ Opera, we need to be explicit again here now... */\r\n cursor: pointer;\r\n}\r\n/* Additional IE specific bug fixes... */\r\n* html .ui-tabs-nav\r\n{ /* auto clear @ IE 6 & IE 7 Quirks Mode */\r\n display: inline-block;\r\n}\r\n*:first-child+html .ui-tabs-nav\r\n{ /* auto clear @ IE 7 Standards Mode - do not group selectors, otherwise IE 6 will ignore complete rule (because of the unknown + combinator)... */\r\n display: inline-block;\r\n}\r\n.ui-tabs-panel\r\n{\r\n padding: 1em;\r\n}\r\n.ui-tabs-nav a\r\n{\r\n background-image: url({path}{software_directory}/images/translucent_10.png);\r\n padding: .2em .5em;\r\n -moz-border-radius: 4px 4px 0px 0px;\r\n -webkit-border-radius: 4px 4px 0px 0px;\r\n border-radius: 4px 4px 0px 0px;\r\n border: none;\r\n}\r\n.ui-tabs-selected a,\r\n.ui-tabs-panel\r\n{\r\n background-image: url({path}{software_directory}/images/translucent_20.png);\r\n border: none;\r\n}\r\n.ui-tabs-selected a {\r\n -moz-border-radius: 4px 4px 0px 0px;\r\n -webkit-border-radius: 4px 4px 0px 0px;\r\n border-radius: 4px 4px 0px 0px;\r\n border: none;\r\n}\r\n.ui-tabs-panel\r\n{\r\n -moz-border-radius: 0px 4px 4px 4px;\r\n -webkit-border-radius: 0px 4px 4px 4px;\r\n border-radius: 0px 4px 4px 4px;\r\n}\r\nul.list-accordion a.item_heading\r\n{\r\n display: block;\r\n padding: 0.5em 1em;\r\n margin: 0em 0em .5em 0em;\r\n font-size: 100%;\r\n font-weight: normal;\r\n font-style: normal;\r\n text-decoration: none;\r\n background-image: url({path}{software_directory}/images/translucent_20.png);\r\n -moz-border-radius: 4px 4px 4px 4px;\r\n -webkit-border-radius: 4px 4px 4px 4px;\r\n border-radius: 4px 4px 4px 4px;\r\n border: none;\r\n}\r\nul.list-accordion a.item_heading:hover,\r\nul.list-accordion a.item_heading:focus,\r\nul.list-accordion a.item_heading:active\r\n{\r\n background-image: url({path}{software_directory}/images/translucent_20.png);\r\n outline: 0 none;\r\n border: none;\r\n}\r\nul.list-accordion\r\n{\r\n list-style-type: none;\r\n padding: 0;\r\n}\r\nul div.ui-accordion-content-active {\r\n padding: 0 1em;\r\n}\r\nul a.item_heading.ui-state-default:before {\r\n content: \\'\\\\25BA\\';\r\n margin-right: .5em;\r\n font-size: 80%;\r\n}\r\nul a.item_heading.ui-state-active:before {\r\n content: \\'\\\\25BC\\';\r\n margin-right: .5em;\r\n font-size: 80%;\r\n}\r\nol.list-accordion\r\n{\r\n background-image: url({path}{software_directory}/images/translucent_20.png);\r\n padding-top: 1em;\r\n padding-bottom: 1em;\r\n -moz-border-radius: 4px 4px 4px 4px;\r\n -webkit-border-radius: 4px 4px 4px 4px;\r\n border-radius: 4px 4px 4px 4px;\r\n}\r\nol div.ui-accordion-content-active {\r\n padding: 0 2em 0 0;\r\n}\r\nol.list-accordion a.item_heading\r\n{\r\n display: block;\r\n margin: 0em 0em .5em 0em;\r\n padding: .5em 0;\r\n font-size: 100%;\r\n font-weight: normal;\r\n font-style: normal;\r\n text-decoration: none;\r\n border: none;\r\n}\r\nol.list-accordion a.item_heading:hover,\r\nol.list-accordion a.item_heading:focus,\r\nol.list-accordion a.item_heading:active\r\n{\r\n outline: 0 none;\r\n border: none;\r\n}\r\n/* Dialog styling */\r\n\r\n.software iframe.ui-dialog-content {\r\n width: 100% !important; /* for jquery UI v1.8 */\r\n}\r\n\r\ndiv.software.ui-dialog {\r\n border-top: 2px solid #' . $primary_button_background . ';\r\n border-right: 5px solid #' . $primary_button_background . ';\r\n border-bottom: 5px solid #' . $primary_button_background . ';\r\n border-left: 5px solid #' . $primary_button_background . ';\r\n}\r\n\r\n.software .ui-dialog .ui-dialog-titlebar,\r\n.software.ui-dialog .ui-dialog-titlebar {\r\n line-height: 100%;\r\n font-size: 12px;\r\n font-weight: bold;\r\n padding-top: 5px;\r\n margin: 0px;\r\n height: 20px;\r\n background: #' . $primary_button_background . ';\r\n}\r\n\r\n.software .ui-draggable .ui-dialog-titlebar,\r\n.software.ui-draggable .ui-dialog-titlebar {\r\n cursor: move;\r\n}\r\n\r\n.software .ui-draggable-disabled .ui-dialog-titlebar,\r\n.software.ui-draggable-disabled .ui-dialog-titlebar {\r\n cursor: standard;\r\n}\r\n\r\n.software .ui-dialog .ui-dialog-titlebar-close,\r\n.software.ui-dialog .ui-dialog-titlebar-close {\r\n width: 16px;\r\n height: 16px;\r\n background: #000 url({path}{software_directory}/jquery/theme/images/dialog-titlebar-close.gif) no-repeat;\r\n position: absolute;\r\n right: 0px;\r\n top: 3px;\r\n cursor: standard;\r\n -moz-border-radius: 20px 20px 20px 20px;\r\n -webkit-border-radius: 20px 20px 20px 20px;\r\n border-radius: 20px 20px 20px 20px;\r\n padding: 0;\r\n}\r\n\r\n.software .ui-dialog .ui-dialog-titlebar-close span,\r\n.software.ui-dialog .ui-dialog-titlebar-close span {\r\n display: none;\r\n}\r\n\r\n.software .ui-dialog .ui-dialog-title,\r\n.software.ui-dialog .ui-dialog-title {\r\n color: #' . $primary_button_color . ';\r\n padding: 0;\r\n margin: 0;\r\n}\r\n\r\n.software .ui-dialog .ui-dialog-title .title_bar_table,\r\n.software.ui-dialog .ui-dialog-title .title_bar_table {\r\n border-collapse: collapse; \r\n width: 100%; \r\n margin: 0;\r\n padding: 0;\r\n}\r\n\r\n.software.ui-dialog .ui-dialog-content {\r\n margin: 0;\r\n background: #' . $primary_color . ';\r\n}\r\n\r\n.software .ui-dialog .ui-resizable-n,\r\n.software.ui-dialog .ui-resizable-n { \r\n cursor: n-resize; \r\n height: 0px;\r\n width: 100%; \r\n top: 0px;\r\n left: 0px;\r\n}\r\n\r\n.software .ui-dialog .ui-resizable-s,\r\n.software.ui-dialog .ui-resizable-s { \r\n cursor: s-resize; \r\n height: 5px; \r\n width: 100%; \r\n bottom: 0px; \r\n left: 0px;\r\n}\r\n\r\n.software .ui-dialog .ui-resizable-e,\r\n.software.ui-dialog .ui-resizable-e { \r\n cursor: e-resize; \r\n width: 5px;\r\n right: 0px;\r\n top: 22px;\r\n height: 100%;\r\n}\r\n\r\n.software .ui-dialog .ui-resizable-w,\r\n.software.ui-dialog .ui-resizable-w { \r\n cursor: w-resize; \r\n width: 5px;\r\n right: 0px;\r\n top: 22px;\r\n height: 100%;\r\n}\r\n\r\n.software .ui-dialog .ui-resizable-se,\r\n.software.ui-dialog .ui-resizable-se {\r\n cursor: se-resize;\r\n width: 5px;\r\n height: 5px;\r\n right: 0px;\r\n bottom: 0px;\r\n}\r\n\r\n.software .ui-dialog .ui-resizable-sw,\r\n.software.ui-dialog .ui-resizable-sw { \r\n cursor: sw-resize; \r\n width: 5px;\r\n height: 5px;\r\n left: 0px;\r\n bottom: 0px;\r\n}\r\n\r\n.software .ui-dialog .ui-resizable-nw,\r\n.software.ui-dialog .ui-resizable-nw { \r\n cursor: nw-resize; \r\n width: 5px;\r\n height: 5px;\r\n left: 0px;\r\n top: 0px;\r\n}\r\n\r\n.software .ui-dialog .ui-resizable-ne,\r\n.software.ui-dialog .ui-resizable-ne { \r\n cursor: ne-resize;\r\n width: 0px;\r\n height: 0px;\r\n right: 0px;\r\n top: 0px;\r\n}\r\n\r\n.ui-widget-overlay\r\n{\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n background: #000;\r\n filter:alpha(opacity=50);\r\n -moz-opacity:0.5;\r\n -khtml-opacity: 0.5;\r\n opacity: 0.5;\r\n}\r\n\r\n.software.ui-resizable { position: relative; }\r\n.software .ui-resizable-handle { position: absolute; display: none; font-size: 0.1px; }\r\n.software.ui-resizable .ui-resizable-handle { display: block; }\r\nbody .software.ui-resizable-disabled .ui-resizable-handle { display: none; } /* use body to make it more specific (css order) */\r\nbody .software.ui-resizable-autohide .ui-resizable-handle { display: none; } /* use body to make it more specific (css order) */\r\n.software .ui-resizable-n { cursor: n-resize; height: 6px; width: 100%; top: 0px; left: 0px; }\r\n.software .ui-resizable-s { cursor: s-resize; height: 6px; width: 100%; bottom: 0px; left: 0px; }\r\n.software .ui-resizable-e { cursor: e-resize; width: 6px; right: 0px; top: 0px; height: 100%; }\r\n.software .ui-resizable-w { cursor: w-resize; width: 6px; left: 0px; top: 0px; height: 100%; }\r\n.software .ui-resizable-se { cursor: se-resize; width: 9px; height: 9px; right: 0px; bottom: 0px;}\r\n.software .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: 0px; bottom: 0px; }\r\n.software .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: 0px; top: 0px; }\r\n.software .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: 0px; top: 0px; }\r\n\r\n.ui-datepicker {border: 1px solid #aaaaaa; background: #ffffff; color: #222222; width: 17em; padding: .2em .2em 0; display: none;}\r\n.ui-datepicker-header {border: 1px solid #aaaaaa; background: #cccccc; color: #222222; font-weight: bold;}\r\n.ui-datepicker .ui-state-default {border: 1px solid #d3d3d3; background: #e6e6e6; font-weight: normal; color: #555555;}\r\n.ui-datepicker .ui-state-hover {border: 1px solid #999999; background: #dadada; font-weight: normal; color: #212121;}\r\n.ui-datepicker .ui-state-active {border: 1px solid #aaaaaa; background: #ffffff; font-weight: normal; color: #212121;}\r\n.ui-datepicker .ui-state-highlight {border: 1px solid #fcefa1; background: #fbf9ee; color: #363636;}\r\n.ui-datepicker .ui-icon {display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat;}\r\n.ui-datepicker .ui-icon {width: 16px; height: 16px; background-image: url({path}{software_directory}/jquery/theme/images/ui-icons_222222_256x240.png);}\r\n.ui-datepicker .ui-icon-circle-triangle-w {background-position: -80px -192px;}\r\n.ui-datepicker .ui-icon-circle-triangle-e {background-position: -48px -192px;}\r\n.ui-datepicker-header { position:relative; padding:.2em 0; }\r\n.ui-datepicker-prev, .ui-datepicker-next {position:absolute; top: 2px; width: 1.8em; height: 1.8em;}\r\n.ui-datepicker-prev-hover, .ui-datepicker-next-hover {top: 1px;}\r\n.ui-datepicker-prev {left:2px;}\r\n.ui-datepicker-next {right:2px;}\r\n.ui-datepicker-prev-hover {left:1px;}\r\n.ui-datepicker-next-hover {right:1px;}\r\n.ui-datepicker-prev span, .ui-datepicker-next span {display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px;}\r\na.ui-datepicker-prev, a.ui-datepicker-next {transition: none !important}\r\n.ui-datepicker-title {margin: 0 2.3em; line-height: 1.8em; text-align: center;}\r\n.ui-datepicker-title select {font-size:1em; margin:1px 0;}\r\n.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em;}\r\n.ui-datepicker th {padding: .7em .3em; text-align: center; font-weight: bold; border: 0;}\r\n.ui-datepicker td {border: 0; padding: 1px;}\r\n.ui-datepicker td span, .ui-datepicker td a {display: block; padding: .2em; text-align: right; text-decoration: none;}\r\n.ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }\r\n.ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }\r\n.ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }\r\n.ui-slider {position: relative; text-align: left; border: 1px solid #aaaaaa;}\r\n.ui-slider-handle {position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default;}\r\n.ui-slider-range {position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0;}\r\n.ui-slider-horizontal {height: .8em;}\r\n.ui-slider-horizontal .ui-slider-handle {top: -.3em; margin-left: -.6em;}\r\n.ui-slider-horizontal .ui-slider-range {top: 0; height: 100%;}\r\n.ui-slider-horizontal .ui-slider-range-min {left: 0;}\r\n.ui-slider-horizontal .ui-slider-range-max {right: 0;}\r\na.ui-slider-handle {transition: none !important}\r\n.ui-timepicker-div .ui-widget-header {margin-bottom: 8px;}\r\n.ui-timepicker-div dl {text-align: left;}\r\n.ui-timepicker-div dl dt {height: 25px; margin-bottom: -25px;}\r\n.ui-timepicker-div dl dd {margin: 0 10px 10px 65px;}\r\n.ui-timepicker-div td {font-size: 90%;}\r\n.ui-tpicker-grid-label {background: none; border: none; margin: 0; padding: 0;}\r\n\r\n.software_form_list_view .browse_and_search_table\r\n{\r\n border-collapse: collapse;\r\n width: 100%;\r\n}\r\n\r\n.software_form_list_view .browse_and_search_table td\r\n{\r\n padding: 0;\r\n vertical-align: bottom;\r\n}\r\n\r\n.software_form_list_view .search_cell\r\n{\r\n text-align: right;\r\n}\r\n\r\n.software_form_list_view .browse,\r\n.software_form_list_view .search\r\n{\r\n display: inline-block;\r\n white-space: nowrap;\r\n}\r\n\r\n.software_form_list_view .browse_enabled .browse,\r\n.software_form_list_view .advanced_enabled .search\r\n{\r\n background-image: url({path}{software_directory}/images/translucent_20.png);\r\n border-radius: 4px 4px 4px 4px;\r\n -moz-border-radius: 4px 4px 4px 4px;\r\n -webkit-border-radius: 4px 4px 4px 4px;\r\n padding: .5em;\r\n}\r\n.software_form_list_view .browse_expanded .browse,\r\n.software_form_list_view .advanced_expanded .search\r\n{\r\n border-radius: 4px 4px 0px 0px;\r\n -moz-border-radius: 4px 4px 0px 0px;\r\n -webkit-border-radius: 4px 4px 0px 0px;\r\n}\r\n.software_form_list_view .advanced_expanded .browse,\r\n.software_form_list_view .browse_expanded .search\r\n{\r\n background: none !important;\r\n padding: .5em;\r\n}\r\n.software_form_list_view .browse_expanded .search \r\n{\r\n padding-right: 0\r\n}\r\n.software_form_list_view .browse_enabled .search \r\n{\r\n padding-bottom: .5em;\r\n}\r\n\r\n.browse select.software_select {\r\n vertical-align: middle;\r\n}\r\n.search a.advanced_toggle {\r\n vertical-align: inherit !important;\r\n}\r\n\r\n.software_form_list_view .browse_toggle,\r\n.software_form_list_view .advanced_toggle\r\n{\r\n ' . $output_input_properties . '\r\n text-align: center;\r\n text-decoration: none;\r\n outline: 0;\r\n color: inherit;\r\n}\r\n\r\n.software_form_list_view .simple,\r\n.search_results_search .simple,\r\n.catalog_search .simple\r\n{\r\n position: relative;\r\n}\r\n\r\n.software_form_list_view .query,\r\n.search_results_search .query,\r\n.catalog_search .query\r\n{\r\n padding-left: 1.75em !important;\r\n padding-right: .5em !important;\r\n vertical-align: inherit;\r\n}\r\n\r\n.software_form_list_view .simple .submit,\r\n.search_results_search .simple .submit,\r\n.catalog_search .simple .submit {\r\n background: url(\\'{path}{software_directory}/images/search.png\\') no-repeat scroll center center transparent;\r\n border: medium none;\r\n height: 100%;\r\n width: 2em;\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n display: block;\r\n -moz-box-shadow: none;\r\n -webkit-box-shadow: none;\r\n box-shadow: none;\r\n border-radius: 0 0 0 0;\r\n -moz-border-radius: 0 0 0 0;\r\n -webkit-border-radius: 0 0 0 0;\r\n}\r\n.software_form_list_view .simple .clear,\r\n.software_catalog .simple .clear {\r\n background: url(\\'{path}{software_directory}/images/clear.png\\') no-repeat scroll center center transparent;\r\n border: medium none;\r\n height: 100%;\r\n width: 2em;\r\n position: absolute;\r\n top: 0;\r\n right: .1em;\r\n display: block;\r\n -moz-box-shadow: none;\r\n -webkit-box-shadow: none;\r\n box-shadow: none;\r\n border-radius: 0 0 0 0;\r\n -moz-border-radius: 0 0 0 0;\r\n -webkit-border-radius: 0 0 0 0;\r\n}\r\n\r\n.software_form_list_view .simple .submit:hover,\r\n.search_results_search .simple .submit:hover,\r\n.catalog_search .simple .submit:hover,\r\n.software_form_list_view .simple .clear:hover,\r\n.software_catalog .simple .clear:hover\r\n{\r\n cursor: pointer;\r\n}\r\n\r\n.software_form_list_view .browse_filter_container,\r\n.software_form_list_view .advanced\r\n{\r\n background-image: url({path}{software_directory}/images/translucent_20.png);\r\n}\r\n\r\n.software_form_list_view .browse_filter_container\r\n{\r\n border-radius: 0px 4px 4px 4px;\r\n -moz-border-radius: 0px 4px 4px 4px;\r\n -webkit-border-radius: 0px 4px 4px 4px;\r\n padding: .75em;\r\n}\r\n\r\n.software_form_list_view .browse_filter_container table\r\n{\r\n border-collapse: collapse;\r\n width: 100%;\r\n}\r\n\r\n.software_form_list_view .browse_filter_container td\r\n{\r\n padding: .5em;\r\n vertical-align: top;\r\n}\r\n\r\n.one_column_mobile .software_form_list_view .browse_filter_container td\r\n{\r\n width: auto !important;\r\n}\r\n \r\n.software_form_list_view .browse_filter_container .current\r\n{\r\n font-weight: bold;\r\n}\r\n\r\n.software_form_list_view .advanced\r\n{\r\n border-radius: 4px 0px 4px 4px;\r\n -moz-border-radius: 4px 0px 4px 4px;\r\n -webkit-border-radius: 4px 0px 4px 4px;\r\n padding: 1em;\r\n}\r\n\r\n.folder_view_tree ul {\r\n list-style-type: none;\r\n padding-left: 0px;\r\n margin-bottom: 0.25em;\r\n}\r\n\r\n.folder_view_tree ul li ul {\r\n padding-left: 15px;\r\n}\r\n\r\n.folder_view_tree li.folder {\r\n font-weight: bold;\r\n}\r\n\r\n.folder_view_tree li.folder li.page {\r\n font-weight: normal;\r\n}\r\n\r\n.folder_view_tree li.folder li.file {\r\n font-weight: normal;\r\n}\r\n\r\n.search-title {\r\n font-size: 105%;\r\n}\r\n\r\n.search-link {\r\n font-size: 95%;\r\n font-style: italic;\r\n}\r\n' .\r\n $site_wide_properties['base_object']['base_module']['advanced_styling'];\r\n \r\n return $output;\r\n}", "title": "" }, { "docid": "c091d68c6a083e0b3803b56aa80e2d55", "score": "0.42984626", "text": "public function dependsOn();", "title": "" }, { "docid": "8a258a3f92f04e67f3282e03e45838ca", "score": "0.42971167", "text": "function css_compile($active_theme,$theme,$c,$fullpath,$css_cache_path,$minify=true)\n{\n\tlist($success_status,$out)=_css_compile($active_theme,$theme,$c,$fullpath,$minify);\n\t$css_file=@fopen($css_cache_path.'.tmp','wt');\n\tif ($css_file===false) intelligent_write_error($css_cache_path.'.tmp');\n\tif (fwrite($css_file,$out)<strlen($out)) warn_exit(do_lang_tempcode('COULD_NOT_SAVE_FILE'));\n\tfclose($css_file);\n\tfix_permissions($css_cache_path.'.tmp');\n\t@rename($css_cache_path.'.tmp',$css_cache_path);\n\tsync_file($css_cache_path);\n\tif (!$success_status)\n\t{\n\t\ttouch($css_cache_path,0); // Fudge it so it's going to auto expire. We do have to write the file as it's referenced, but we want it to expire instantly so that any errors will reshow.\n\t}\n}", "title": "" }, { "docid": "a1f0db5cf0eff1976f41ae33b0f5e945", "score": "0.42925504", "text": "public function build()\n\t{\n\t\t//include file\n\t\t$Str_Execute = '';\n\n\t\t//Put local vars into the local namespace.\n\t\tif ($Arr_Vars = $this->Arr_Vars)\n\t\t{\n\t\t\textract($Arr_Vars);\n\t\t}\n\n\t\t//Get execution result.\n\t\tob_start();\n\t\tinclude(path_request(MW_CONST_STR_DIR_INSTALL.'plugins/'.$this->Str_File.'.php'));\n\t\t$Str_Execute = ob_get_contents();\n\t\tob_end_clean();\n\t\t\n\t\t//**!*Need to remove the vars from the local namespace.\n\t\t//test the scoping on these vars, they might actually remain within this function's scope.\n\n\t\treturn $Str_Execute;\n\t}", "title": "" }, { "docid": "f0ad126775f265794613ca9806affa1d", "score": "0.42916998", "text": "static public function compile($format_style = \"scss_formatter\")\n {\n $scss_compiler = new scssc();\n // set the path where your _mixins are\n $scss_compiler->setImportPaths(Self::$scssFolder);\n // set css formatting (normal, nested or minimized), @see http://leafo.net/scssphp/docs/#output_formatting\n $scss_compiler->setFormatter($format_style);\n // get all .scss files from scss folder\n $filelist = glob(Self::$scssFolder . \"*.scss\");\n // step through all .scss files in that folder\n foreach ($filelist as $file_path) {\n // get path elements from that file\n $file_path_elements = pathinfo($file_path);\n // get file's name without extension\n $file_name = $file_path_elements['filename'];\n // get all lines in file\n $lines = Self::getFileLines($file_path);\n $lines = Self::processImports($lines,$file_path_elements);\n if (count($lines)) {\n // add the extra lines\n $lines = Self::extraLines($lines);\n // implode the array into one big string\n $string_sass = implode($lines);\n // compile this SASS code to CSS\n $string_css = $scss_compiler->compile($string_sass);\n $cssFile = Self::$cssFolder . $file_name . \".css\";\n // if file exists\n if (file_exists($cssFile)) {\n // attempt delete\n unlink($cssFile);\n }\n // write CSS into file with the same filename, but .css extension\n file_put_contents($cssFile, $string_css);\n }\n }\n\n }", "title": "" }, { "docid": "72a5f479dcd504463bbf8b448a5aa7c0", "score": "0.42895776", "text": "function versioned_stylesheet($relative_url, $add_attributes=\"\"){\n\techo '<link rel=\"stylesheet\" href=\"'.versioned_resource($relative_url).'\" '.$add_attributes.'>'.\"\\n\";\n}", "title": "" }, { "docid": "aa9be794f6df9b45198583f6c737c995", "score": "0.42874423", "text": "function depends() {\n\t\tif (func_num_args()) {\n\t\t\t$this->arg_list = func_get_args();\n\t\t\t$module_name = $this->arg_list[0];\n\t\t}\n\t\t$sql = \"select module_id \".\n\t\t\t \"from module_dependencies \".\n\t\t\t \"where req_module = '$module_name' order by req_module\";\n\t\tif ($result = mysql_query($sql)) {\n\t\t\tif (mysql_num_rows($result)) {\n\t\t\t\t$i=0;\n\t\t\t\twhile (list($name) = mysql_fetch_array($result)) {\n\t\t\t\t\t$i++;\n\t\t\t\t\t$ret_val .= \"$i. $name -> \".(class_exists($name)?\"<font color='#6666FF'><b>installed</b></font>\":\"<font color='red'><b>missing</b></font>\").\"<br>\";\n\t\t\t\t}\n\t\t\t\treturn $ret_val;\n\t\t\t} else {\n\t\t\t\treturn \"<font color='red'>none</font>\";\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "bf8b550673ee1589345c779c7f09231f", "score": "0.4284643", "text": "private function load_dependency() {\n require_once __DIR__ . '/includes/functions.php';\n\n $this->container['assets'] = new WP_Starter\\Classes\\Assets( $this->plugin_name );\n // $this->container['template'] = new WP_Starter\\Classes\\Template( $this->plugin_name );\n // $this->container['api'] = new WP_Starter\\Api( $this->plugin_name );\n\n if ( is_request( 'admin' ) ) {\n $this->container['admin'] = new WP_Starter\\Admin( $this->plugin_name, $this->assets );\n } elseif ( is_request( 'frontend' ) ) {\n $this->container['frontend'] = new WP_Starter\\Frontend( $this->plugin_name, $this->assets );\n }\n }", "title": "" }, { "docid": "1f7b8099c6801fc9391b089e43f89bf6", "score": "0.42843294", "text": "function productionRendering();", "title": "" }, { "docid": "d00023a5e013dd0c1b51a4ddaf263e8d", "score": "0.42837766", "text": "protected static function post_compile() {\n\t}", "title": "" }, { "docid": "53ebfc888a7581211ecb99686b8d127e", "score": "0.42798066", "text": "function fn_lcx_compile_app_css( $compile_data = array() ) \n{\n $_GLOBALS['lcx_compile_data'] = $compile_data;\n\n include LCX_PATH . '/core/admin/compile-scss.php'; \n}", "title": "" }, { "docid": "f1845a19253408fe336e96ab7c2f2e1c", "score": "0.42756432", "text": "private function loadModules() {\n $this->loadDefaultModule();\n foreach (glob(__DIR__ . '/modules/*.php') as $file) {\n $basename = basename($file, '.php');\n $basename = static::underscoresToDashes($basename);\n $feature = 'square-' . $basename;\n if ($this->isThemeFeature($feature)) {\n $this->loadModule($file, $basename);\n }\n }\n }", "title": "" }, { "docid": "0ecd4b898165d64d77d45e085b85cd7e", "score": "0.4271663", "text": "public function compile() {\n $config = Kohana::config('sitemenu.provider.docblock');\n // Attempt to get an index from cache\n // @todo: the actual caching!\n if ( ! ($controller_index = false)) {\n $controller_index = $this->_index_controllers();\n // Cache the index\n }\n \n // Get default tags\n $default_tags = Arr::get($config, 'default_tags',array());\n foreach ($controller_index as $action) {\n // Merge the default tags\n $tags = Arr::merge($default_tags, $action['sitemenu_tags']);\n\n // If there is an auth tag, check with the auth provider whether to include\n if (isset($tags['condition']) AND !$this->_check_action_auth($action)) {\n continue;\n }\n\n // Map the action to a navigation item\n $item = $this->_menu->get_item($tags[null], true);\n\n // Split the controller name to a directory and controller\n $controller = substr(strrchr($action['controller'], '_'),1);\n $directory = str_replace('_', DIRECTORY_SEPARATOR,\n substr($action['controller'],11,0-strlen($controller))); \n\n // Set the item route\n $item->route(Arr::get($tags,'route','default'), $directory,\n $controller, $action['action'], array());\n\n // @todo: attribute tags - parse_str(string, array)\n }\n return true;\n }", "title": "" }, { "docid": "8ee61477599b48c86f5667eac0b10184", "score": "0.42590123", "text": "function injectionParams()\n{\n $shares = [\n \\Auryn\\Injector::class,\n \\Slim\\Container::class,\n \\Slim\\App::class,\n \\PhpOpenDocs\\CSPViolation\\RedisCSPViolationStorage::class,\n \\PhpOpenDocs\\Service\\RequestNonce::class,\n \\OpenDocs\\SectionList::class,\n\n new \\Learning\\LearningSection(\n '/learning',\n 'Learning',\n 'So you want/have been forced to learn PHP?',\n new \\Learning\\LearningSectionInfo\n ),\n new \\NamingThings\\NamingThingsSection(\n '/naming',\n 'Naming',\n 'Naming things',\n new \\PhpOpenDocs\\NamingThingsSectionInfo\n ),\n\n new \\PhpOpenDocs\\SystemSection(\n '/system',\n 'System',\n 'Site system stuff...',\n new \\PhpOpenDocs\\SystemSectionInfo\n ),\n\n new \\PhpOpenDocs\\RfcCodexSection(\n '/rfc_codex',\n 'RFC Codex',\n \"Discussions ideas for how PHP can be improved, why some ideas haven't come to fruition yet.\",\n new \\RfcCodexOpenDocs\\RfcCodexSectionInfo()\n ),\n\n\n ];\n\n // Alias interfaces (or classes) to the actual types that should be used\n // where they are required.\n $aliases = [\n \\VarMap\\VarMap::class => \\VarMap\\Psr7VarMap::class,\n \\PhpOpenDocs\\Service\\TooMuchMemoryNotifier\\TooMuchMemoryNotifier::class =>\n \\PhpOpenDocs\\Service\\TooMuchMemoryNotifier\\NullTooMuchMemoryNotifier::class,\n \\PhpOpenDocs\\CSPViolation\\CSPViolationReporter::class =>\n \\PhpOpenDocs\\CSPViolation\\RedisCSPViolationStorage::class,\n \\PhpOpenDocs\\CSPViolation\\CSPViolationStorage::class =>\n \\PhpOpenDocs\\CSPViolation\\RedisCSPViolationStorage::class,\n \\OpenDocs\\MarkdownRenderer\\MarkdownRenderer::class =>\n \\OpenDocs\\MarkdownRenderer\\CommonMarkRenderer::class,\n \\OpenDocs\\UrlFetcher\\UrlFetcher::class =>\n \\OpenDocs\\UrlFetcher\\RedisCachedUrlFetcher::class,\n \\OpenDocs\\ExternalMarkdownRenderer\\ExternalMarkdownRenderer::class =>\n \\OpenDocs\\ExternalMarkdownRenderer\\StandardExternalMarkdownRenderer::class\n ];\n\n // Delegate the creation of types to callables.\n $delegates = [\n \\OpenDocs\\SectionList::class => 'createSectionList',\n \\PhpOpenDocs\\Service\\MemoryWarningCheck\\MemoryWarningCheck::class => 'createMemoryWarningCheck',\n \\SlimAuryn\\Routes::class => 'createRoutesForApp',\n \\SlimAuryn\\ExceptionMiddleware::class => 'createExceptionMiddlewareForApp',\n \\SlimAuryn\\SlimAurynInvokerFactory::class => 'createSlimAurynInvokerFactory',\n\n \\Slim\\Container::class => 'createSlimContainer',\n \\Slim\\App::class => 'createSlimAppForApp',\n \\PhpOpenDocs\\AppErrorHandler\\AppErrorHandler::class => 'createHtmlAppErrorHandler',\n \\PhpOpenDocs\\Data\\ApiDomain::class => 'createApiDomain',\n \\Redis::class => 'createRedis',\n ];\n\n // Define some params that can be injected purely by name.\n $params = [];\n\n $prepares = [\n ];\n\n $defines = [];\n\n $injectionParams = new InjectionParams(\n $shares,\n $aliases,\n $delegates,\n $params,\n $prepares,\n $defines\n );\n\n return $injectionParams;\n}", "title": "" }, { "docid": "fa78c7159491d1e967ef0ddfd3c47f9c", "score": "0.42497665", "text": "abstract protected function mergeDevRequires(RootPackageInterface $root, PluginState $state);", "title": "" }, { "docid": "f012948e8548c70e01ff61dd8fc05edf", "score": "0.4244541", "text": "public function css_assets() {\n global $theme_settings;\n\n foreach( $theme_settings['css_assets_to_remove'] as $handle) {\n wp_dequeue_style($handle);\n wp_deregister_style( $handle );\n }\n\n $path_builder = function($path, $add_start_direction, $size = false) {\n $full_path = str_replace(ABSPATH,\"/\", get_stylesheet_directory()) .\"/\" . $path;\n if($size) {\n $full_path .= \"-above-\" . $size;\n }\n return $full_path . ($add_start_direction? \".\" . $this->start_direction : \"\") . \".css\";\n };\n\n foreach( $theme_settings['css_assets'] as $handle => $css) {\n\n if(\n !isset($css['condition']) ||\n (is_callable($css['condition']) && $css['condition']()) ||\n (!is_callable($css['condition']) && $css['condition'])\n ) {\n\n $add_start_direction = !($this->start_direction == $this->default_css_start_direction || (isset($css['ignore_direction']) && $css['ignore_direction']));\n $path = $css['path'];\n if (!isset(parse_url($path)['host'])) {\n $path = $path_builder( $css['path'], $add_start_direction);\n }\n\n $deps = array_map(function($dep) { return $this->slug . '-' . $dep; }, $css['deps']);\n\n wp_enqueue_style( $this->slug . '-' . $handle, $path, $deps, $this->version );\n\n if(isset($css['sizes'])) {\n foreach ($css['sizes'] as $size) {\n $file_path = $path_builder( $css['path'], $add_start_direction, $size );\n\n if(file_exists(ABSPATH.$file_path)) {\n wp_enqueue_style( $this->slug . '-' . $handle . \"-above-\" . $size, $file_path, $deps, $this->version, \"(min-width: {$size}px)\" );\n } else {\n wp_add_inline_style($this->slug . '-' . $handle, \"/* import \".$this->slug . '-' . $handle . \"-above-\" . $size.\" - \".$file_path .\" - file not found */ \");\n }\n }\n }\n }\n\n }\n\n }", "title": "" }, { "docid": "77889a13e0bc94850b19aa063666948b", "score": "0.42440793", "text": "public function compileStyles()\n {\n $destination = Director::baseFolder().$this->StylesPath();\n\n if ($this->owner->Theme) {\n $themeDir = 'themes/'.$this->owner->Theme;\n } else {\n $themeDir = SSViewer::get_theme_folder();\n }\n $options = array();\n if (Director::isLive()) {\n $options['compress'] = true;\n }\n if (Director::isDev()) {\n $options['sourceMap'] = true;\n }\n $options['cache_dir'] = TEMP_FOLDER;\n $parser = new Less_Parser($options);\n try {\n $parser->parseFile(Director::baseFolder().'/'.$themeDir.'/css/all.less',\n '/'.$themeDir.'/css');\n $vars = array();\n\n foreach (self::$styles_variables as $var) {\n if ($this->owner->$var) {\n $less_var = strtolower(preg_replace('/([a-z])([A-Z])/',\n '$1-$2', $var));\n $vars[$less_var] = $this->owner->$var;\n }\n }\n if (!empty($vars)) {\n $parser->ModifyVars($vars);\n }\n $css = $parser->getCss();\n\n $baseDir = Director::baseFolder().'/assets/Theme';\n if (!is_dir($baseDir)) {\n mkdir($baseDir, 0777, true);\n }\n\n file_put_contents($destination, $css);\n } catch (Exception $ex) {\n SS_Log::log('Failed to create css files : '.$ex->getMessage(),\n SS_Log::DEBUG);\n }\n }", "title": "" }, { "docid": "8f7e8a13c5db1af4180455180f0f86f8", "score": "0.4242091", "text": "function generate_file() {\r\n\t\tif(!class_exists('\\Leafo\\ScssPhp\\Compiler')) return;\r\n\r\n\t\t$scss_dir = get_template_directory() . '/assets/scss/';\r\n\t\t$css_dir = get_template_directory() . '/assets/css/';\r\n\r\n\t\t//$this->scssc = new scssc();\r\n\t\t$this->scssc = new \\Leafo\\ScssPhp\\Compiler();\r\n\t\t$this->scssc->setImportPaths( $scss_dir );\r\n\r\n\t\t$_options = $scss_dir . 'variables.scss';\r\n\r\n\t\t$this->redux->filesystem->execute( 'put_contents', $_options, array(\r\n\t\t\t'content' => preg_replace( \"/(?<=[^\\r]|^)\\n/\", \"\\r\\n\", $this->options_output() )\r\n\t\t) );\r\n\t\t$css_file = $css_dir . 'theme.css';\r\n\r\n\t\t/**\r\n * build source map\r\n * this used for load scss file when dev_mode is on\r\n * @source: https://github.com/leafo/scssphp/wiki/Source-Maps\r\n */\r\n $this->scssc->setSourceMap(\\Leafo\\ScssPhp\\Compiler::SOURCE_MAP_FILE);\r\n if(is_child_theme()){\r\n $this->scssc->setSourceMapOptions(array(\r\n 'sourceMapWriteTo' => $child_css_file . \".map\",\r\n 'sourceMapURL' => \"child-theme.css.map\",\r\n 'sourceMapFilename' => $child_css_file,\r\n 'sourceMapBasepath' => $child_scss_dir,\r\n 'sourceRoot' => $child_scss_dir,\r\n ));\r\n } else {\r\n $this->scssc->setSourceMapOptions(array(\r\n 'sourceMapWriteTo' => $css_file . \".map\",\r\n 'sourceMapURL' => \"theme.css.map\",\r\n 'sourceMapFilename' => $css_file,\r\n 'sourceMapBasepath' => $scss_dir,\r\n 'sourceRoot' => $scss_dir,\r\n ));\r\n }\r\n // end build source map\r\n\r\n\t\t//$this->scssc->setFormatter( 'scss_formatter' );\r\n\t\t$this->scssc->setFormatter('Leafo\\ScssPhp\\Formatter\\Crunched');\r\n\r\n\t\t$this->redux->filesystem->execute( 'put_contents', $css_file, array(\r\n\t\t\t'content' => preg_replace( \"/(?<=[^\\r]|^)\\n/\", \"\\r\\n\", $this->scssc->compile( '@import \"theme.scss\"' ) )\r\n\t\t) );\r\n\t}", "title": "" }, { "docid": "61a60864fa485b6d3ffe4e3e608dc60a", "score": "0.42368543", "text": "function yFindModule($str_func)\n{\n return YModule::FindModule($str_func);\n}", "title": "" } ]
de7a09c9e41b3fe5f034eb41c4e8be55
insert data ke table
[ { "docid": "15e5a90ce67613e0a9cf61bd5ec9c2ec", "score": "0.0", "text": "public function storesebrectifier(Request $request)\n {\n DB::table('data_data2')->insert([\n 'wilayah' => $request->wilayah,\n 'lokasi' => $request->lokasi,\n 'tipe_perangkat' => $request->tipe_perangkat,\n 'merk' => $request->merk,\n 'tipe' => $request->tipe,\n 'serial_number' => $request->serial_number,\n 'kap_tps' => $request->kap_tps,\n 'kap_tpk' => $request->kap_tpk,\n 'satuan' => $request->satuan,\n 'jumlah' => $request->jumlah,\n 'fungsi' => $request->fungsi,\n 'status' => $request->status,\n 'tahun' => $request->tahun,\n 'barcode' => $request->barcode,\n 'keterangan' => $request->keterangan,\n 'beban' => $request->beban,\n 'jenis_perangkat' => $request->jenis_perangkat,\n 'ruangan' => $request->ruangan\n ]);\n // alihkan halaman ke halaman \n return redirect()->route('seb_rectifier')\n ->with('success', 'Data created successfully.');\n \n }", "title": "" } ]
[ { "docid": "58abb84f07e05a5d056b2f83a5931a0b", "score": "0.7707757", "text": "public function insert(Table $table, $data);", "title": "" }, { "docid": "ed00796b7f56529ab91259ccd081d08a", "score": "0.7674473", "text": "function input_datakomentar($data,$table){\n\t\t$this->db->insert($table,$data);\n\t}", "title": "" }, { "docid": "6ccafb36bffc7678552389887dfd1fd6", "score": "0.7631359", "text": "function table_insert($table_name, $data = array()) { $this->table_row_insert($table_name, $data); }", "title": "" }, { "docid": "46cb2a2a392eff9c9247c145ccdfb1ba", "score": "0.75476867", "text": "function submitTableData($table, $data) {\n $data['date_created'] = Date('Y-m-d G:i:s');\n $data['created_by'] = USER_ID;\n\t\t//die(print_r($table));\n $this->db->insert($table, $data);\n }", "title": "" }, { "docid": "d32e01aa968a87bd82872b0054c05c15", "score": "0.75384796", "text": "public function insert($table, $data)\n\t{\n\t}", "title": "" }, { "docid": "072a8665314362673cc2881fa7a677fc", "score": "0.7527065", "text": "public function insert($tableName, $data);", "title": "" }, { "docid": "842cf21eb10387278ca0b6478c45f2c7", "score": "0.74863064", "text": "function insert($tableName, array $data);", "title": "" }, { "docid": "bce66f403edabf886eef419c7fc1943f", "score": "0.7455606", "text": "function input_data($table, $data) {\r\n\t\t$this->db->insert($table, $data);\r\n\t}", "title": "" }, { "docid": "866de2c8a2811b6f30e98dd7907e5a47", "score": "0.74447787", "text": "public function insert($table, array $data);", "title": "" }, { "docid": "fae22510da811f0eb0016f572b115f9a", "score": "0.74277335", "text": "public function insert($data);", "title": "" }, { "docid": "fae22510da811f0eb0016f572b115f9a", "score": "0.74277335", "text": "public function insert($data);", "title": "" }, { "docid": "a2fc23a779dda4a3e1723f58cf89aff6", "score": "0.7382673", "text": "public function insert($data, $tableName){\n \n }", "title": "" }, { "docid": "2a85bdf526c9479ca0cc019cd9701fc3", "score": "0.73753154", "text": "function insert($table,$data)\n {\n\t\t$this->db->insert($table,$data);\n\t}", "title": "" }, { "docid": "cd8344acc0aa179216d7d8bacbfacec2", "score": "0.7374257", "text": "public function consultation($data,$table){\r\n\t\t$this->db->insert($table,$data);\r\n\t}", "title": "" }, { "docid": "3550a6432bb4e709d9254d6139059bb4", "score": "0.7357678", "text": "function save_data_topik($data,$table){\n $this->db->insert($table,$data);\n }", "title": "" }, { "docid": "02de6192237a48554bf20de720bb92e4", "score": "0.7356739", "text": "function insert_data($data, $table)\n\t{\n\t\t$this->db->insert($table, $data);\n\t}", "title": "" }, { "docid": "3c70f20485fb037f77cd741f40ee666d", "score": "0.7345155", "text": "function input_data($data,$table){\n\t\t$this->db->insert($table,$data); //insert menambahkan data ke dalam tabel\n\t}", "title": "" }, { "docid": "b9bff87028061d510e50e6d2138d32e2", "score": "0.73199505", "text": "public function insertrecords($table ,$data){\n $fields=\" \";\n $values=\" \";\n \n foreach($data as $f=>$v){\n $fields.= \"$f,\"; //id,name,title,\n $values.=(is_numeric($v) && (intval($v)==$v)) ? $v.\",\" : \" '$v' ,\";\n }\n $fields= substr( $fields,0,-1);\n $values=substr( $values,0,-1);\n $insert= \"INSERT INTO $table ({$fields}) VALUES ({$values})\";\n $this->executeQuery ( $insert );\n $this->flag=1;\n return true;\n \n }", "title": "" }, { "docid": "e6d9fea12eee562e51fc9b5b4eb75067", "score": "0.7317295", "text": "protected function insert_data(){\r\n $data = array(\r\n 'feladat_id' => new Zend_Db_Expr('UUID()'),\r\n 'server_time' => new Zend_Db_Expr('NOW()')\r\n );\r\n $this->_db->insert($this->_name, $data);\r\n\t\t}", "title": "" }, { "docid": "ba4cab3f77eb9dc0cb761f5a403ba870", "score": "0.73089385", "text": "public function insert($table, $data)\n {\n try\n {\n //Ordenar array por key\n ksort($data);\n //Asignar nombre de los campor de la tabla\n $fieldNames = implode('`, `', array_keys($data));\n //Obtener valores\n $fieldValues = ':'. implode(', :', array_keys($data));\n //String de la setencia (consulta)\n $strSql = $this->prepare(\"INSERT INTO $table (`$fieldNames`) VALUES($fieldValues)\");\n //Asignación de parametros a la sentencia (consulta)\n foreach($data as $key => $value)\n {\n $strSql->bindValue(\":$key\", $value);\n }\n //Ejecuta la sentencia SQL\n $strSql->execute();\n }\n catch(PDOException $e)\n {\n die($e->getMessage());\n }\n }", "title": "" }, { "docid": "db3943c7219b27dd16fc90b222016dfa", "score": "0.7302908", "text": "public function insertData()\n\t{\n\t\t$data = array(\n\t\t\t/* 'perfume_id' yang dikiri harus sama seperti di table\n\t\t\t'perfume_id' yang dikanan harus menurut name inputnya */\n\t\t\t'perfume_id' => $this->input->post('perfume_id'),\n\t\t\t'perfume_name' => $this->input->post('perfume_name'),\n\t\t\t'perfume_costperkilo' => $this->input->post('perfume_costperkilo')\n\t\t);\n\t\t/* eksekusi query insert into \"perfume\" diisi dengan variable $data\n\t\tface2face ae lek bingung :| */\n\t\t$this->curl->simple_post($this->API.'/perfume', $data, array(CURLOPT_BUFFERSIZE => 10));\n\t}", "title": "" }, { "docid": "331ce349b2a38194a95aa233faba0d7b", "score": "0.7274072", "text": "public function simpandata($data)\n\t{\n\t\t$this->db->insert($this->tabel, $data);\n\t}", "title": "" }, { "docid": "f8ae390f2053bb30f39655874d34123d", "score": "0.7267251", "text": "protected function fillTable()\n {\n foreach ($this->data as $id => $name) {\n $this->insert(['name' => $name]);\n }\n }", "title": "" }, { "docid": "bbcedcf8f1309c830efa5bae63fc37c7", "score": "0.7264262", "text": "function input_data($data, $table)\n {\n $this->db->insert($table, $data); //insert menambahkan data ke dalam tabel\n }", "title": "" }, { "docid": "ee8c5952ffeb7514aa9e8232399328a3", "score": "0.72579145", "text": "public function feedback_data($data,$table){\r\n\t\t$this->db->insert($table,$data);\r\n\t}", "title": "" }, { "docid": "d1d6ec64ac0cd460217ebbb9737b05ae", "score": "0.7248592", "text": "public function insert($table,$data)\n\t{\n\t\t//Define $fields array.\n\t\t$fields = array();\n\t\t//Loop through the data array.\n\t\tforeach($data as $key=>$value)\n\t\t{\n\t\t\t//Fill fields array with keys from $data.\n\t\t\t$fields[] = $key;\n\t\t}\n\t\t//Build SQL statement\n\t\t$sql = \"INSERT INTO \".$table.\" (\".implode($fields,\", \").\") VALUES (:\".implode($fields,\", :\").\");\";\n\t\t//Define $bind array.\n\t\t$bind = array();\n\t\t//Loop through fields and put them into the bind array.\n\t\tforeach($fields as $rs)\n\t\t{\n\t\t\t//Build bind array\n\t\t\t$bind[\":\".$rs] = $data[$rs];\n\t\t}\n\t\t//Run query.\n\t\t$this->run($sql,$bind);\n\t}", "title": "" }, { "docid": "b6df1157e2fbbd6ff1c010499d75d36e", "score": "0.72438335", "text": "function input_data2($data, $table)\n {\n $this->db->insert($table, $data);\n }", "title": "" }, { "docid": "26cea96e8e0c49d9462ac4cada80f047", "score": "0.7234687", "text": "public function insert($table_name, $data){ \t\t\t\t\t\t\t\t\r\n //QUERY BULDING DONE\r\n $fields = '`' . implode('`,`', array_keys($data)) . '`';\r\n $values = \":\".implode(\",:\",array_keys($data));\r\n $sql = \"INSERT INTO {$table_name} ($fields) VALUES($values)\";\r\n\r\n \r\n $row = $this->conn->prepare($sql);\r\n \r\n foreach($data as $Name => $Value){\r\n $row->bindValue(':'.$Name, $Value);\r\n }\r\n return $row->execute();\r\n \r\n }", "title": "" }, { "docid": "3620c744113458de9a32a0c64e06e1e4", "score": "0.72298795", "text": "function insert($table, $data)\n\t{\n\t\t$fields = '';\n\t\t$values = '';\n\t\tforeach ($data as $key => $value)\n\t\t{\n\t\t\tif ($fields != '') $fields .= ',';\n\t\t\t$fields .= '`'.$key.'`';\n\n\t\t\tif ($values != '') $values .= ',';\n\t\t\t$values .= SQL($value);\n\t\t}\n return $this->queryInsert('INSERT INTO `'.$table.'` ('.$fields.') VALUES ('.$values.')');\n\t}", "title": "" }, { "docid": "9aff3d9803bb8e630f482ff094b43ade", "score": "0.7201203", "text": "public function insert($tblEmpleado);", "title": "" }, { "docid": "e11a52d241878b233062d1ea16022a81", "score": "0.7163552", "text": "public function insertRecords($table,$data){\n //setub some variables for fields and values\n $fields=\"\";\n $values=\"\";\n //populate them\nforeach( $data as $f => $v) {\n $fields .=\"'$f',\";\n $values.=(is_numeric($v) && (intval($v)==$v))?\n $v.\",\":\"'v',\";\n}\n//remove our trailing\n$fields=substr($fields,0,-1);\n//remove our trailing\n$values=substr($values,0,-1);\n$insert=\"INSERT INTO $table ({$fields}) VALUES ({$values})\";\necho $insert;\n$this->executeQuery($insert);\nreturn true;\n }", "title": "" }, { "docid": "d21fb1bae62b9a5f50cbece3b6498f0d", "score": "0.7155564", "text": "function addTableRow($table,$data) {\n global $db;\n console_log(\"in addTableRow...\");\n console_log_json($data);\n $colNames = getColumnNames($table);\n if (empty($colNames)) { //tabelle existiert nicht\n console_log(\"Tabelle \".$table.\" existiert nicht!!!\");\n return;\n }\n $strcol = \"\";\n $strval = \"\";\n foreach($colNames as $col) {\n console_log(\"Prüfe Spalte: \".$col);\n if (array_key_exists($col,$data)) { //zu diesem key gibt es Daten\n $strcol=$strcol.$col.\",\";\n $strval=$strval.\"'\".$data[$col].\"',\";\n }\n }\n console_log(\"strval:\".$strval);\n if (strlen($strcol)>0) {\n $sql = \"INSERT INTO \".$table.\" (\".substr($strcol,0,-1).\") VALUES (\".substr($strval,0,-1).\");\";\n console_log(\"Zeile wird eingetragen: \".$sql);\n $ret = $db->exec($sql);\n if(!$ret) {\n echo $db->lastErrorMsg();\n } else {\n console_log(\"enable_options eingetragen\");\n }\n } \n console_log(\"... verlasse addTableRow\");\n }", "title": "" }, { "docid": "c8061856d3e24537bc3e234dbc7568c0", "score": "0.7138781", "text": "public function insertData($table, $tb_vals, $data)\n\t\t\t{\n\t\t\t\t \n\t\t\t\t $table_vals = implode(',',$tb_vals);\n\t\t\t\t $da = array_merge(array(),$data);\n\t\t\t $table = self::security($table);\n\t\t\t\ttry{\n\t\t\t\t$query = self::$db_connect->prepare(\"INSERT INTO \".$table.\"(\".$table_vals.\") VALUES(\".self::convertData\n ('?',\n $data).\")\");\n\t\t\t\t$query->execute($da); \n\t\t\t\t // print \"Data inserted successfully !\";\n\t\t\t\t}\n\t\t\t\tcatch(PDOException $e)\n\t\t\t\t{\n\t\t\t\t print $e->getMessage().' error occured !';\t\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "da4b003ab4ae26ff01b052d015ff2fed", "score": "0.71387416", "text": "function add($table,$data){\n // Kode ini digunakan untuk memasukan record baru kedalam sebuah tabel\n return $this->db->insert($table, $data); // Kode ini digunakan untuk mengembalikan hasil $res\n }", "title": "" }, { "docid": "9109ea629ca44e47870055a52542c849", "score": "0.7120817", "text": "public function insertTable($data) {\n global $db_obj;\n $id = $this->returnIfExist($data['ID']);\n $name = $this->returnIfExist($data['name']);\n $salary = $this->returnIfExist($data['salary']);\n $car = $this->returnIfExist(($data['car']));\n $hat = $this->returnIfExist($data['hatColor']);\n\n if (isset($id) && isset($name) && !isset($salary))\n $query = \"INSERT INTO simulation (id, name) VALUES ('$id' ,'$name')\";\n else if (isset($id) && isset($name) && isset($salary) && isset($hat) && !isset($car))\n $query = \"INSERT INTO simulation (id, name, salary, hat) VALUES ('$id', '$name', '$salary','$hat')\";\n else if (isset($id) && isset($name) && isset($salary) && isset($hat) && isset($car))\n $query = \"INSERT INTO simulation (id, name, salary, hat, car) VALUES ('$id', '$name', '$salary', '$hat','$car')\";\n\n if ($db_obj ->execute($query))\n echo 'inserted successfully';\n }", "title": "" }, { "docid": "fc1ba7836a16c52e7b97a0318aa5bc97", "score": "0.71138614", "text": "public function insert( $table, $data ) \n {\n foreach( $data as $field => $value ) \n {\n $fields[] = '`' . $field . '`';\n $values[] = \"'\" . $this->safe($value) . \"'\";\n }\n $field_list = join( ',', $fields );\n $value_list = join( ', ', $values );\n $query = \"INSERT INTO `\" . $table . \"` (\" . $field_list . \") VALUES (\" . $value_list . \")\";\n \n return $this->query( $query );\n }", "title": "" }, { "docid": "eeb26030cff654785f42496386be176f", "score": "0.7111073", "text": "function insert($table, array $data, $primary_key=null)\n {\n $table = $this->quote_table($table);\n $fields = array();\n $values = array();\n \n foreach($data as $field => $value)\n {\n $fields[] = $this->quote_column($field);\n $values[] = $this->quote_value($value);\n }\n $fields = implode(', ', $fields);\n $values = implode(', ', $values);\n \n return $this->execute(\"INSERT INTO $table ( $fields ) VALUES ( $values ) ;\");\n }", "title": "" }, { "docid": "f26a3649963b3a437fbbf47fbd201c12", "score": "0.71027744", "text": "function insert_data($table, $fileds, $values, $conn){\n\t\tinsert_data_with_defaults($table, $fields, $values, null, $conn);\n\t}", "title": "" }, { "docid": "e65e150b4f26df3586ce64c9b77d93b9", "score": "0.7085513", "text": "public function insert($data){\n \n if(empty($this->table)){\n Throw new exception(\"You must initialize with the table name first.\");\n }\n \n if(!is_assoc($data)){\n Throw new exception(\"Your insert array must be associative.\");\n }\n \n if($this->config->item('fluid_schema')){\n \n $ddl = false;\n $add=\"\";\n \n foreach($data as $col=>$fact){\n if(!self::col_exists($col)){\n if(is_reserved_word($col)){\n Throw new exception(\"Do not use MySQL or PHP reserve word as column name\");\n }\n \n if(strpos($col,'fk_')!==false){\n Throw new exception(\"Set FK relationships using the relation() function before insert().\");\n }\n \n $ddl[$col]=$fact;\n }\n }\n //ALTER TABLE `test` ADD `name` INT NOT NULL , ADD `fk` INT NOT NULL ;\n if($ddl){\n foreach($ddl as $col=>$fact){\n \n $add.=\" ADD \".$col.$this->datatype($fact);\n }\n \n $add = rtrim($add,\",\");\n \n $this->db->query(\"ALTER TABLE \".$this->table.$add);\n }\n \n }\n $this->db->insert($this->table,$data);\n $this->id($this->db->insert_id());\n return $this;\n }", "title": "" }, { "docid": "8d2fd8336e5eb7f296491e208959fe23", "score": "0.70795697", "text": "public function allInserts($tablename,$data){\n \t$this->db->insert($tablename,$data);\n }", "title": "" }, { "docid": "1a758bbcbc234e154ce61c02a6339f71", "score": "0.7042447", "text": "function save_data_modul($data,$table){\n $this->db->insert($table,$data);\n }", "title": "" }, { "docid": "7cb30f23de2032b8787d9b4f31ca727b", "score": "0.70362043", "text": "function insert($table, $data){\n\t\t if (!$this->db->insert($table, $data)) {\n\t\t \t$error = $this->db->error();\n\t\t }\n\t\t return $error;\n\t }", "title": "" }, { "docid": "a03f8dbb8573f99071f7a2cd635a6786", "score": "0.7017044", "text": "public function insert($data)\n\t{\n\t\t$this->db->insert('resep_det', $data);\n\t}", "title": "" }, { "docid": "339790e47243d2c65bcf6c483f9edfa4", "score": "0.7016806", "text": "public function insert()\n\t\t{\n \n\t\t}", "title": "" }, { "docid": "e0278a9b8b2d9702f22227b559e368f5", "score": "0.70119894", "text": "function insertTableData($table_name,$ins_data)\n\t{\n\t\tif($this->db->insert($table_name,$ins_data))\n\t\t return $this->db->insert_id();\n\t\telse\n\t\t return false;\n\t}", "title": "" }, { "docid": "ab6e0a5d0b6ed9540fcc2e33b468b3bd", "score": "0.7005228", "text": "function table_row_insert($table_name, $data = array())\n\t{\n\t\t// Multicall\n\t\tif ($this->multicall(__FUNCTION__, $table_name))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$this->get_table_name($table_name);\n\n\t\t$this->umil_start('TABLE_ROW_INSERT_DATA', $table_name);\n\n\t\tif (!$this->table_exists($table_name))\n\t\t{\n\t\t\treturn $this->umil_end('TABLE_NOT_EXIST', $table_name);\n\t\t}\n\n\t\t$this->db->sql_multi_insert($table_name, $data);\n\n\t\treturn $this->umil_end();\n\t}", "title": "" }, { "docid": "dc9bf57ab02b2d0914810f13cea73ef8", "score": "0.69856906", "text": "function insert($data) {\n $query = \"insert into $this->table set \";\n foreach ($data as $col => $value) {\n $query .= $col . \"= '\" . $value . \"', \";\n }\n $query[strlen($query) - 2] = \" \";\n $state = $this->dbconn->query($query);\n if (!$state) {\n return $this->dbconn->error;\n }\n\n return $this->dbconn->affected_rows;\n }", "title": "" }, { "docid": "01413e091c3033883590b254adaf6b69", "score": "0.69710904", "text": "public function insert($table, $data)\n {\n $fields = '';\n $values = '';\n \n foreach ($data as $row) {\n $fields = implode(',', array_keys($row)); \n $values .= \n '(' . $this->concatenateTokens(array_values($row), true) . '),';\n }\n\n $values = rtrim($values, ',');\n\n $this->execute(\"\n INSERT INTO $table ($fields) VALUES {$values};\n \");\n }", "title": "" }, { "docid": "7f4b438a56f9a60fb84ef3c22293b6c1", "score": "0.6969768", "text": "function simpan_lhkpn($table, $data){\n\t\t$this->db->insert($table, $data);\n\t}", "title": "" }, { "docid": "cdfa20d88dcca6868ee2d8f9ad24d7a0", "score": "0.6969273", "text": "public function insert($row);", "title": "" }, { "docid": "7a3999e8b525e0b4e8f9b9723659af26", "score": "0.6958179", "text": "public function insert($table = null,$data) \r\n\t{\r\n\t\t$query = \"INSERT INTO `\" . $table . \"` \";\r\n\t\t$v = '';\r\n\t\t$k = '';\r\n\t\t\r\n\t\tforeach ($data as $key => $val) {\r\n\t\t\t$val = $this->escape_string($val); // filter input value\r\n\t\t\t$k .= \"`$key`, \";\r\n\t\t\t$v .= \"'\" . $val . \"', \";\r\n\t\t}\r\n\t\t$query .= \"(\" . rtrim($k, ', ') . \") VALUES (\" . rtrim($v, ', ') . \");\";\r\n\t \t\r\n\t\t $result = $this->connection->query($query);\r\n\t\t\r\n\t\tif ($result == false) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\treturn $this->connection->insert_id;\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "bdea0527c891194663519480d69c0f14", "score": "0.693931", "text": "function insert_data($table_name, $data) {\n $this->db->insert($table_name, $data);\n return $this->db->insert_id();\n }", "title": "" }, { "docid": "52f6f939136b3639212158af4c360ec2", "score": "0.6938964", "text": "function Insert(){\n\t\t//if(!isset($this->ObjTable)) $this->ObjTable = $this->Plurals(strtolower($this->unCamelize(get_class($this))));\n\t\t$query = \"INSERT INTO `\".$this->_TableName().\"` \";\n\t\t$fields = \"\";\n\t\t$values = \"\";\n\t\t$this->created_at = time();\n\t\tforeach($this->_data as $field => $value){\n\t\t\tif(!is_array($value)):\n\t\t\t\t\t$fields .= \"`$field`,\";\n\t\t\t\t\t$values .= \"'$value',\";\n\t\t\tendif;\n\t\t}\n\n\t\t$fields = substr($fields, 0,-1);\n\t\t$values = substr($values, 0,-1);\n\t\t$query .= \"($fields) VALUES ($values)\";\n\t\t$this->driver->exec($query) or die(print_r($this->driver->errorInfo(), true));\n\t\treturn true;\n\t}", "title": "" }, { "docid": "dd461dbcabfd3b49e535472b9a8d223d", "score": "0.6922396", "text": "public function insert($table, $data){\n if(!empty($data) && is_array($data)){\n $columns = '';\n $values = '';\n $i = 0;\n if(!array_key_exists('created', $data)){\n $data['created'] = date(\"Y-m-d H:i:s\");\n }\n if(!array_key_exists('modified', $data)){\n $data['modified'] = date(\"Y-m-d H:i:s\");\n }\n foreach($data as $key=>$val){\n $pre = ($i > 0)?', ':'';\n $columns .= $pre.$key;\n $values .= $pre.\"'\".$val.\"'\";\n $i++;\n }\n $query = \"INSERT INTO \".$table.\" (\".$columns.\") VALUES (\".$values.\")\";\n $insert = $this->db->query($query);\n return $insert?$this->db->insert_id:false;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "5ac751e8c9242ec787e24a554ee50234", "score": "0.6921811", "text": "public function insert($table,$record);", "title": "" }, { "docid": "11103eba6f502f8680176420c78ecfc4", "score": "0.691895", "text": "public function insert($table, $data)\n\t{\n\t\ttry {\n\t\t\t// ordenar de forma alfabetica un array con la funcion ksort\n\t\t\tksort($data);\n\t\t\t// Elimina del array los indices de controller y metodo \n\t\t\tunset($data['controller'], $data['method']);\n\t\t\t/*\n\t\t\tDefinimos los nombres de los campos y valores correspodientes\n\t\t\t1. Con la funcion implode(a,b) volvemos string el array con cada valor del array(recibe dos parametos, a.la separacion que tiene cada valor y b.el array),\n\t\t\t\tcon la función array_keys() sacamos la claves del array para volverlas un string para la consulta\n\t\t\t2. Ejemplo: $array = [1,2,3,4];\n\t\t\t\t $fieldNames = implode('`, `', array_keys($array)); quedaria un string asi: \"`0`,`1`,`2`\" asi con cada una de las claves del array\n\t\t\t\t */\n\t\t\t$fieldNames = implode('`, `', array_keys($data));\n\t\t\t// de la misma for pero para indicar los valores los valores \n\t\t\t$fieldValues = ':' . implode(', :', array_keys($data));\n\t\t\t// preparamos la consulta, para evitar INJECCIONES SQL\n\t\t\t$strSql = $this->prepare(\"INSERT INTO $table (`$fieldNames`)VALUES ($fieldValues)\");\n\t\t\t// CARGA DE LOS DATOS\n\t\t\tforeach ($data as $key => $value) {\n\t\t\t\t// le asignamos a la sentencia los pares de clave valor correspondiente,\n\t\t\t\t// para la consulta\n\t\t\t\t$strSql->bindValue(\":$key\", $value);\n\t\t\t}\n\t\t\t// Ejecutamos la consulta\n\t\t\t$strSql->execute();\n\t\t\t// Control de excepciones\n\t\t} catch (PDOException $e) {\n\t\t\tdie($e->getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "311cf7948028f74acf8acf20486f4ffa", "score": "0.691792", "text": "public function insert($table, $data){\n\t\tif(empty($data) || empty($table)) {\n\t\t\tdie('[Customized Error in function:insert]' . 'Invalid Arguments :(');\n\t\t}\n\t\t$field = '';\n\t\t$value = '';\n\t\t\n\t\tforeach ($data as $k => $v){\n\t\t\t$field .= $k . ',';\n\t\t\t$value .= \"'$v'\" . ',';\n\t\t\t\n\t\t}\n\t\t\n\t\t$field = rtrim($field, ',');\n\t\t$value = rtrim($value, ',');\n\t\t\n\t\tself::$sql = \"INSERT INTO {$table}({$field}) VALUES ({$value})\";\n\t\t\n\t\tif(!($result = mysql_query(self::$sql, $this->_conn))){\n\t\t\tdie('[Mysql Error in function:insert]' . mysql_errno() . mysql_error());\n\t\t}\n\t\treturn mysql_insert_id();\n\t}", "title": "" }, { "docid": "8173b8b4285d82214c2f6ed5da317f08", "score": "0.6912151", "text": "function insert($table, $data)\n {\n\n if (!is_array($data))\n return false;\n\n //foreach ($data as $col => $value) \n //$data[$col] = $this->escape($value);\n\n $cols = array_keys($data);\n $vals = array_values($data);\n\n $this->query(\"INSERT INTO $table (\" . implode(\",\", $cols) . \") VALUES ('\" . implode(\"','\", $vals) . \"')\");\n return mysqli_insert_id($this->conn);\n }", "title": "" }, { "docid": "f76f5b73f1541dcec2e75c7e5198069d", "score": "0.69063956", "text": "public function save()\n\t{\n\t\tif ($this->isValid()) {\n\t\t\t$table = $this->table();\n\t\t\tforeach ($this->_data as $row) {\n\t\t\t\t$table->insert($row);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "cbae13202389c02169d56e0fba999ccb", "score": "0.69027126", "text": "public function insert($table, $data){\r\n $query = $this->db->insert($table, $data);\r\n if($query){\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n }", "title": "" }, { "docid": "9344b638837d14ae53eeb8a2b592dcd7", "score": "0.68930966", "text": "function save_data_user($data,$table){\n $this->db->insert($table,$data);\n }", "title": "" }, { "docid": "141f85bb8e897041b09837fdddc53d67", "score": "0.68880177", "text": "final function insert($table, $data){ \r\n $string = \"INSERT INTO \".$table.\" (\"; \r\n $string .= implode(\",\", array_keys($data)) . ') VALUES ('; \r\n $string .= \"'\" . implode(\"','\", array_values($data)) . \"')\"; \r\n if(mysqli_query($this->con, $string)) {return true;} \r\n else {echo mysqli_error($this->con);} \r\n }", "title": "" }, { "docid": "483d69e392a0d995da5bd779c98cb5fa", "score": "0.68865925", "text": "function add_data($data,$table_name) \n {\n $retId = $this->db->insert($table_name, $data);\n return $this->db->insert_id();\n }", "title": "" }, { "docid": "8f7132fd8bdb0d069d40912b4c3e24ca", "score": "0.6886138", "text": "public function insert($table, $data)\n {\n // enclose the column names in grave accents\n $cols = '`' . implode('`,`', array_keys($data)) . '`';\n $values = '';\n\n // question marks for escaping values later on\n $count = count($data);\n for($i = 0; $i < $count; $i++)\n {\n $values .= \"?, \";\n }\n \n // Remove the last comma\n $values = rtrim($values, ', ');\n\n // run the query\n $query = 'INSERT INTO ' . $table . '(' . $cols . ') VALUES (' . $values . ')';\n\n // Prepare the statment\n $this->query( $query, array_values($data) );\n \n return $this->num_rows; \n }", "title": "" }, { "docid": "1cd74b09cd9a24c276ecba5f26a25313", "score": "0.68749297", "text": "protected function insert($table, $data) {\n $i = 1;\n $parameters_formated = \"\";\n $parameters_name = \"\";\n foreach ($data as $name => $val) {\n $parameters_formated .= ($i == sizeof($data)) ? \":\" . $name : \":\" . $name . \",\";\n $parameters_name .= ($i == sizeof($data)) ? \"\\\"\" . $name . \"\\\"\" : \"\\\"\" . $name . \"\\\",\";\n $i ++;\n }\n $query_str = \"INSERT INTO \\\"\" . $table . \"\\\" (\" . $parameters_name . \") VALUES (\" . $parameters_formated . \")\";\n $query = $this->_database->prepare($query_str);\n $query->execute($data);\n return $query->rowCount();\n }", "title": "" }, { "docid": "ab2f90aac057a5aa80cead8c145a4754", "score": "0.6840895", "text": "function tambah_data($data)\n\t\t{\n\t\t\treturn $this->db->insert($this->nama_table,$data);\n\t\t}", "title": "" }, { "docid": "0afd0f85ef2d48aed994848e6064dc01", "score": "0.6839042", "text": "abstract public function insert_row($table, $values);", "title": "" }, { "docid": "545f02e3be058c249154f09d780b31ab", "score": "0.6832745", "text": "public function add($data,$tableName){\n $keys=array();\n $values=array(); \n \n foreach($data as $key => $value){ \n $val=\"'$value'\";\n array_push($keys,$key);\n array_push($values,$val);\n }\n \n $tblkeys = implode($keys , ','); // transform an array to string\n $datavalues = implode($values , ',') ;\n $stmt = $this->db->prepare(\"INSERT INTO $tableName ($tblkeys) VALUES($datavalues)\");\n \n return $stmt->execute();\n\n }", "title": "" }, { "docid": "29e482961bdb607153798093a11b4bac", "score": "0.68277776", "text": "public function insert($data) {\n\n }", "title": "" }, { "docid": "335a0d76590b94aff503a051b3f72011", "score": "0.68238354", "text": "public function insert($data){\n return $this->db->insert($this->table,$data);\n }", "title": "" }, { "docid": "25d8df969fe0300712b76ae2150eea83", "score": "0.6823598", "text": "public function insert($tableName,$data_arr){\r\n $column_arr = array();\r\n $value_arr = array();\r\n foreach ($data_arr as $column => $value) {\r\n $column_arr[] = $column;\r\n $value_arr[] = $value;\r\n }\r\n $column = implode(\",\", $column_arr);\r\n $value = implode(',', $value_arr);\r\n $sql = \"insert into \".$tableName.\"(\".$column.\") values (\".$value.\")\";\r\n return $this->mysql->execute_dml($sql);\r\n }", "title": "" }, { "docid": "a1728e344cf3f638b95c6f3afb4a59e3", "score": "0.6820754", "text": "private function tbl_insert($sql)\r\n\t{\r\n\t\tif ($this->debug==1)\r\n\t\t\techo \"dbapi: $sql\";\r\n\t\ttry \r\n\t\t{\r\n\t\t\t//echo $sql;\r\n\t\t\t$query = $this->db->prepare( $sql );\r\n\t\t\t$query->execute();\r\n\t\t}\r\n\t\tcatch(PDOException $ex) \r\n\t\t{\r\n\t\t\t$this->db_msg = \"An Error occured writing to database: \" .$ex->getMessage() ;\r\n\t\t}\t\r\n\t}", "title": "" }, { "docid": "8436bbb66090fac74a07288d7e3fbdc8", "score": "0.68124574", "text": "function insert_table_tempo($data)\n\t{\n\t\t$this->db->insert($this->mod_tempo, $data);\n\t\treturn $this->db->insert_id();\n\t}", "title": "" }, { "docid": "2c9404a8b89c3e35b3ee01221617d63b", "score": "0.6807678", "text": "public function insert(string $table, object $data) : string;", "title": "" }, { "docid": "66af3d4790a4d3d8acb4d957cd0e2433", "score": "0.6806043", "text": "public function input($data,$table)\n\t{\n\t\treturn $this->db->insert($data,$table);\n\t}", "title": "" }, { "docid": "76d722bd7393df9432f58a56bb7aa451", "score": "0.68052465", "text": "public function insertIjin($data) {\n $idijin=$data[\"idijin\"];\n $nomor= $data['nomor'];\n $tglijin= $data['tglijin'];\n $jumlahijin= $data['jumlahijin'];\n $status_idstatus=$data[\"status_idstatus\"];\n $nama= $data['atasnama'];\n $nip= $data['nip'];\n $jabatan= $data['jabatan'];\n $file= $data['srtrek'];\n $idmahasiswa=$data[\"kode\"];\n $query = \"Insert into ijin \n set nomor='$nomor',tglijin='$tglijin',status_idstatus=$status_idstatus,\"\n . \" nama='$nama',nip='$nip',jabatan='$jabatan',file='$file' \" ;\n //Execute query\n $result = $this->query($query);\n\n return $result;\n }", "title": "" }, { "docid": "9eaca4a21bb26374489b762f6d3eb371", "score": "0.6794853", "text": "protected function perform_insert() {}", "title": "" }, { "docid": "69fdac47ea696ca81b33592fc0d27f6a", "score": "0.679236", "text": "private function executeDataInsert()\n {\n// echo '<pre>';\n// print_r($this->temp_array);\n// echo '</pre>';\n if (!$this->data_handler) {\n $this->data_handler = $this->prepareDataInsert();\n }\n //echo 'handler: '.$this->data_handler.'<br>';\n $entity_id = end($this->entity_ids[$this->current_entity]);\n if ($this->temp_array['value']) {\n $value = $this->temp_array['value'];\n } else {\n $value = null;\n }\n\n //get entity_abbr\n $abbr = $this->getEntityAbbreviation($this->current_entity);\n\n $data = array(\n $abbr.'_'.str_replace('.','_',strtolower($this->temp_array['label'])),\n $value,\n strtoupper($this->temp_array['data_type']),\n '{'.$this->temp_array['lang'].'}',\n $this->current_entity,\n $entity_id,\n $this->parent_id\n );\n// echo '<pre>';\n// print_r($data);\n// echo '</pre>';\n $res = $this->db->execute($this->data_handler,$data);\n $this->handleDbError($res);\n //$res->free();\n }", "title": "" }, { "docid": "b7bfb17213ef12f6f4da800440d9db85", "score": "0.6791561", "text": "function inputdata($data)\n\t{\n\t\t$this->db->insert($this->table, $data);\n\t}", "title": "" }, { "docid": "b0c8e633014a420ee4cb6a56e61dfd50", "score": "0.6789263", "text": "public function insert($data, $table) {\n\t\t//$mysqli = new mysqli($this->db_host,$this->db_user,$this->db_pass, $this->db_name);\n\t\t$columns = \"\";\n\t\t$values = \"\";\n\t\t\n\t\tforeach ($data as $column => $value) {\n\t\t\t$columns .= ($columns == \"\") ? \"\" : \", \";\n\t\t\t$columns .= $column;\n\t\t\t$values .= ($values == \"\") ? \"\" : \", \";\n\t\t\t$values .= $value;\n\t\t}\n\t\t\n\t\t$sql = \"insert into $table ($columns) values ($values)\";\n\t\t\n\t\tmysqli_query($this->mysqli,$sql) or die(mysqli_error($this->mysqli));\n\t\t\n\t\t//return the ID of the item in the database.\n\t\treturn mysqli_insert_id($this->mysqli);\n\t\t\n\t}", "title": "" }, { "docid": "9be719ef83d8ba35dca6fa7800b72838", "score": "0.67885774", "text": "public function insertQuery(array $data)\n {\n $conn = $this->getConnection();\n $conn->insert(self::ASSIGN_TABLENAME, $data);\n }", "title": "" }, { "docid": "1c0b20ac7175bded85915b023e9c617f", "score": "0.6778298", "text": "public function insert($table, $data) \n\t{\n\n\t\t$conf = array();\n\t\t$mm_fields = array();\n\t\t$sql = '';\n\n\t\tif(!is_array($table)) { $conf = $this->MC->table_config($table); }\n\t\telse { $conf = $table; }\n\n\t\t$db_table = $conf['table']['name'];\n\t\t\t\t\n\t\t$sql_fields = $sql_values = array();\n\n\t\tif (\n\t\t\t(is_array($conf['table']['exclude_sys_fields'])) &&\n\t\t\t(in_array('pid', $conf['table']['exclude_sys_fields']))\n\t\t) {\n\t\t\t// TODO: find out what should be here and do it, strix 2012-02-21\n\t\t}\n\t\telse \n\t\t{\n\t\t\t$sql_fields[] = 'pid';\n\t\t\t$sql_values[] = $data['pid'];\n\t\t}\n\t\t\n\t\tforeach ($conf['fields'] as $field => $info) \n\t\t{\n\t\t\tif ($info['cnf']['db_ignore']) { continue; }\n\n\t\t\t//\t[en] default value from config, instead of data\n\t\t\t//\t[de] default-wert aus konfig, statt data\n\t\t\tif ($info['cnf']['default'] && !isset($data[$field])) \n\t\t\t{\n\t\t\t\t$data[$field] = $info['cnf']['default'];\n\t\t\t}\n\t\t\t\n\t\t\t//\t[en] Skip fields not present in $data array\n\t\t\t//\t[de] keine daten, kein insert\n\n\t\t\tif ((!array_key_exists($field, $data)) && (!isset($data[$field]))) { continue; }\n\t\t\t\n\t\t\t$sql_data = $data[$field];\n\t\t\t\n\t\t\t//\t[en] format fields according to type set in the table config\n\t\t\t//\t[de] je nach typ, passiert noch was\n\n\t\t\tswitch((string)$info['cnf']['type']) {\n\n\t\t\t\tcase 'select':\n\t\t\t\t\t// realtions-felder kommen nicht in dieses sql mit rein\n\t\t\t\t\tif (isset($info['cnf']['relation'])) {\n\t\t\t\t\t\t$mm_fields[] = $field;\n\t\t\t\t\t\tcontinue 2;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\t//..................................................................\n\n\t\t\t\tcase 'checkbox':\n\t\t\t\t\t// realtions-felder kommen nicht in dieses sql mit rein\n\t\t\t\t\tif (isset($info['cnf']['relation'])) {\n\t\t\t\t\t\t$mm_fields[] = $field;\n\t\t\t\t\t\tcontinue 2;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\t//..................................................................\n\n\t\t\t\tcase 'date':\n\t\t\t\t\t// datums-felder werden in timestamp gewandelt\n\t\t\t\t\t$sql_data = mktime(\n\t\t\t\t\t\t(int)$sql_data['hour'],\n\t\t\t\t\t\t(int)$sql_data['minute'],\n\t\t\t\t\t\t(int)$sql_data['second'], \n\t\t\t\t\t\t(int)$sql_data['month'],\n\t\t\t\t\t\t(int)$sql_data['day'],\n\t\t\t\t\t\t(int)$sql_data['year']\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\t\t//..................................................................\n\t\t\t}\n\t\t\t\n\t\t\t$sql_fields[] = $field;\n\t\t\t$sql_values[] = \"'\" . addslashes((string)$sql_data) . \"'\";\n\t\t}\n\t\t\n\t\t//-- auto fields / auto-felder\n\t\tif (is_array($conf['table']['sys_fields'])) {\n\t\t\tforeach($conf['table']['sys_fields'] as $name => $field) {\n\t\t\t\tswitch($name) {\n\t\t\t\t\tcase 'created':\n\t\t\t\t\t\t$sql_fields[] = $field;\n\t\t\t\t\t\t$sql_values[] = time();\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'changed':\n\t\t\t\t\t\t$sql_fields[] = $field;\n\t\t\t\t\t\t$sql_values[] = time();\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (isset($data['vid'])) {\n\t\t\t$sql_fields[] = 'vid';\n\t\t\t$sql_values[] = \"'\" . (string)$data['vid'] . \"'\";\n\t\t}\n\t\t\n\t\t$sql = ''\n\t\t . 'INSERT INTO ' . (string)$db_table . ' (' . implode(', ', $sql_fields).')'\n\t\t . ' VALUES (' . implode(', ', $sql_values).')';\n\n\t\t@$this->query($sql); \n\t\t$last_id = $this->insert_id();\n\t\t#echo $last_id;\n\n\t\t// We have mm relationships / haben wir mm beziehungen\n\t\tforeach($mm_fields as $field) {\n\t\t\t$sql_values = array();\n\t\t\tif (!is_array($data[$field])) { $data[$field] = explode(',', $data[$field]); }\n\t\t\t\n\t\t\tforeach($data[$field] as $fid) {\n\t\t\t\t$sql_values[] = '(' . $last_id . ', \\'' . addslashes((string)$fid) . '\\')';\n\t\t\t}\n\t\t\t\n\t\t\t$sql = ''\n\t\t\t . 'INSERT INTO ' . (string)$conf['fields'][$field]['cnf']['relation']['mm']\n\t\t\t . ' (local_id, foreign_id) '\n\t\t\t . ' VALUES ' . implode(', ', $sql_values);\n\n\t\t\t@$this->query($sql);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn $last_id;\n\t}", "title": "" }, { "docid": "42d0938e8a83337f8216566414375576", "score": "0.6769956", "text": "public function postInsertTable(Zend_Db_Table_Abstract $table, array $data)\n {}", "title": "" }, { "docid": "9f7f7df5150d18d6c5ad8df4ff251b92", "score": "0.67648864", "text": "function tambah_data ($data)\n\t{\n\t\treturn $this->db->insert($this->nama_table,$data);\n\t}", "title": "" }, { "docid": "e31154edaf6918e49284c3e58f882974", "score": "0.67615", "text": "public function insertRow($table, $data){\r\n\t \t$this->db->insert($table, $data);\r\n\t \treturn $this->db->insert_id();\r\n\t}", "title": "" }, { "docid": "9d58e338ebd622d35f09acbb12a5e000", "score": "0.67601746", "text": "public function insert($table, array $data) {\n $db = $this->dbConnection;\n\n $fields = join(\", \", array_keys($data));\n $values = join(\", \", array_values($data));\n $params = explode(\", \", $values);\n\n //var_dump($params);\n\n $count = count($data);\n\n //var_dump($count);\n\n //var_dump($fields);\n\n $sql = \"INSERT INTO \" . $table . \" (\" . $fields . \") VALUES (\";\n for ($i = 0; $i < $count; $i++) {\n $i === $count-1 ? $sql .= \"?\" : $sql .= \"?, \";\n }\n $sql .= \")\";\n\n //var_dump($sql);\n\n $query = $db->prepare($sql);\n $query->execute($params);\n }", "title": "" }, { "docid": "69f6c15b16c11637490572dc4bff59d6", "score": "0.6756967", "text": "public function insertData(){\n\t\t$this->query = \"INSERT INTO {$this->deliverydays} (\".implode(',',$this->columns).\") VALUES \";\n\n\t\tforeach ($this->datos as $value) {\n \t\t$dataToSave[] = !mysql_real_escape_string($value)? \"'\".$value.\"'\" : NULL;\t\n \t}\n \t$this->query .= \"(\".implode(\",\",$dataToSave).\")\"; \n \t\n\t\tif($this->writeDB->query($this->query))\n\t\t\tprint_r(\"Guardando la siguiente query: \".$this->query.\"\\n\");\n\t}", "title": "" }, { "docid": "e2346cf5ae594169b4bf6799115fb00e", "score": "0.6754651", "text": "public function insert() {\n\t\techo $this -> sql = \"INSERT INTO $this->table ($this->fields)\n\t\t\t\t\t VALUES($this->dados) \";\n\t\tif (mysql_query($this -> sql)) {\n\t\t\t$this -> status = \"Cadastrado deu certo\";\n\t\t}\n\t}", "title": "" }, { "docid": "c42d0d9ede8bf68fe5b5a767a5eadc9c", "score": "0.67468244", "text": "public function insert($table, $data) {\n if (!empty($data) && is_array($data)) {\n $columns = '';\n $values = '';\n $i = 0;\n if (!array_key_exists('created', $data)) {\n date_default_timezone_set('America/Sao_Paulo');\n $data['created'] = date(\"Y-m-d H:i:s\");\n }\n if (!array_key_exists('modified', $data)) {\n $data['modified'] = date(\"Y-m-d H:i:s\");\n }\n foreach ($data as $key => $val) {\n $pre = ($i > 0) ? ', ' : '';\n $columns .= $pre . $key;\n $values .= $pre . \"'\" . $val . \"'\";\n $i++;\n }\n $query = \"INSERT INTO \" . $table . \" (\" . $columns . \") VALUES (\" . $values . \")\";\n $insert = $this->db->query($query);\n return $insert ? $this->db->insert_id : false;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "a34818b6097e287f3ec81a6e951b9a48", "score": "0.6746415", "text": "public function Insert() {\n global $db;\n $stmt = $db->prepare(\"insert into tesztkerdesek (kerdestxt, kerdeshtml, kerdesbin, tipus, kategoria, nehezseg) values (?,?,?,?,?,?)\");\n $stmt->execute(array($this->kerdestxt,$this->kerdeshtml,$this->kerdesbin,$this->tipus,$this->kategoria,$this->nehezseg));\n }", "title": "" }, { "docid": "6a80966ac9efdc60be92934e09c9a95a", "score": "0.6733953", "text": "public function insert($data){\n $this->db->insert('tb_category_product', $data);\n }", "title": "" }, { "docid": "94d086c8697a766427ec2a4f04095f93", "score": "0.67302614", "text": "function insert_transaction_batch($data)\n {\n $this->db->insert_batch($this->tbl_transaction, $data);\n }", "title": "" }, { "docid": "bc998c52fd6b04655c1d22e702fd04b1", "score": "0.67246914", "text": "public function insertToDB()\n {\n $name = $this->personData['name'];\n $age = $this->personData['age'];\n $city = $this->personData['city'];\n $about = $this->personData['aboutYou'];\n $sql = '\n INSERT INTO `person` (name, age, city, aboutYou)\n VALUES (?, ?, ?, ?)\n ';\n $this->dbalConnection->executeQuery($sql, array($name, $age, $city, $about));\n }", "title": "" }, { "docid": "0b0171813c94963db1b529a157822258", "score": "0.67213523", "text": "public function tambah_rs($data){\n\t\t$this->db->insert('rumahsakit', $data);\n\t}", "title": "" }, { "docid": "5e53b739be52a6897b12c359ecbc4a2d", "score": "0.67208374", "text": "function insert()\r\n {\r\n\r\n\r\n \t$query=\"INSERT INTO task4table(name,ph_no,city,state)\r\n \t VALUES('$this->name','$this->ph_no','$this->city','$this->state')\";\r\n \t $run=mysqli_query($this->connection,$query);\r\n \t print_r($run);\r\n \t \r\n }", "title": "" }, { "docid": "227dda21e287dce2a7eff43efd97e710", "score": "0.672031", "text": "public function insert($data, $table)\n {\n $insert = $this->queryFactory->newInsert();\n\n $insert\n ->into($table)\n ->cols($data);\n $statement = $this->pdo->prepare($insert->getStatement());\n $isSuccessful = $statement->execute($insert->getBindValues());\n \n return $isSuccessful;\n }", "title": "" }, { "docid": "5c0cbfc358895ae0c1b79084757822e7", "score": "0.6714919", "text": "public function saveUOM($table,$data)\n {\n $this->db->insert($table, $data);\n\n }", "title": "" }, { "docid": "09de759da7cd65b5895e8711828e0b42", "score": "0.67113847", "text": "public function insertRowInTable($table, $insert_row);", "title": "" }, { "docid": "f3a9d0bd7a85059fd72a25e68c46eb4d", "score": "0.67075026", "text": "public function insert(Table $table, $row);", "title": "" }, { "docid": "6a62591fcc3ffba20d6299b624969d2e", "score": "0.6702488", "text": "public function tambah($data)\n\t{\n\t\t$this->db->insert_batch('mahasiswa', $data);\n\t}", "title": "" }, { "docid": "eb33c69e793155b9947f8c4933992a5a", "score": "0.66982573", "text": "public static function insert($table, $data) {\n ksort($data);\n \n $fieldNames = implode(\", \", array_keys($data));\n $fieldValues = ':' . implode(', :', array_keys($data));\n\n $sql = \"INSERT INTO $table ($fieldNames) VALUES ($fieldValues)\";\n $query = Database::getDB()->prepare($sql);\n\n foreach ($data as $key => $value) {\n $query->bindValue(\":$key\", $value);\n }\n\n return $query->execute();\n }", "title": "" } ]
afd715a0c58613c54a70dafe6aba82ad
Builds the final file.
[ { "docid": "ee453338d261ec44b4cd1f9f403229d0", "score": "0.5978185", "text": "protected function buildFullFileFromChunks()\n {\n // try to get local path\n $finalPath = $this->getChunkFullFilePath();\n\n // build the new UploadedFile\n $this->fullChunkFile = $this->createFullChunkFile($finalPath);\n }", "title": "" } ]
[ { "docid": "ec6309fc537f8aee367389dcaa8237a1", "score": "0.66151917", "text": "abstract public function build($data, $file);", "title": "" }, { "docid": "c6d656d2e2bc48d1ec39966c24f188a2", "score": "0.65991277", "text": "public function build()\n {\n if (!$this->module) {\n throw new \\Exception(\"Module not set for builder\");\n }\n foreach ($this->sourceConfig->getConfig('file') as $fileConfig){\n $fileConfig = $this->preProcessFileConfig($fileConfig);\n $scope = $fileConfig['scope'];\n $type = $fileConfig['type'];\n $generator = $this->getGenerator($scope.'.'.$type);\n $files = $generator\n ->setConfig($fileConfig)\n ->setModule($this->module)\n ->generate();\n foreach ($files as $name => $content) {\n $this->files[$name] = $content;\n }\n }\n $basePath = $this->module->getSettings()->getXmlRootPath().'/'.\n $this->module->getNamespace().'/'.\n $this->module->getModuleName().'/';\n $this->writer->setPath($basePath);\n foreach ($this->files as $name => $file) {\n $destinationFile = $name;\n $this->writer->write($destinationFile, $file);\n }\n //wrap it up\n $this->createArchive();\n //clean it up\n $this->cleanup();\n //write the list of files\n $this->writeLog();\n $this->writeUninstall();\n return $this;\n }", "title": "" }, { "docid": "256280aaf588838fbbec4d3aaaab630f", "score": "0.65104544", "text": "public function build()\n {\n $this->header->generate();\n $this->contents->generate();\n $this->footer->generate();\n }", "title": "" }, { "docid": "bd8c085cfd09f686768dc20d68de3787", "score": "0.637402", "text": "protected abstract function buildArchive();", "title": "" }, { "docid": "1e1e8d1949bd5e07fdda42ea5fb649d9", "score": "0.6188891", "text": "private function buildOutput()\n {\n $content = '';\n foreach ($this->consts as $key => $val) {\n $content .= $key . \"=\\\"\" . addslashes($val) . \"\\\"\\n\";\n }\n\n $this->outputContent = $content;\n }", "title": "" }, { "docid": "ce825f56661c49ec69690f2d8b08d0d9", "score": "0.603032", "text": "function buildCacheFile() {\n\tglobal $cache;\n\t$createdComment = sprintf ( CACHE_CREATED_COMMENT, date ( CACHE_DATE_FORMAT ) );\n\t$file = fopen ( CACHE_FILE_NAME, \"wb\" );\n\t// Writing file-header\n\t$success = fwrite ( $file, CACHE_PHP_OPEN_TAG . CACHE_NEW_LINE . CACHE_NEW_LINE );\n\tfwrite ( $file, CACHE_PHP_COMMENT_TAG . \" \" . CACHE_INIT_COMMENT . CACHE_NEW_LINE );\n\tfwrite ( $file, CACHE_PHP_COMMENT_TAG . \" \" . $createdComment . CACHE_NEW_LINE );\n\tfwrite ( $file, CACHE_NEW_LINE );\n\tfwrite ( $file, CACHE_TEMPLATE_START . CACHE_NEW_LINE );\n\n\t// Write $cache to the file\n\t$i = 0;\n\t$cacheSize = count ( $cache );\n\tif($cacheSize>0) // add by dennis 2008-02-04\n\t{\n\t\tforeach ( $cache as $classname => $filename ) {\n\t\t\tfwrite ( $file, \"\\t'\" . $classname . \"' => '\" . $filename . \"'\" );\n\t\t\t\t\n\t\t\tif ($i < $cacheSize - 1) {\n\t\t\t\tfwrite ( $file, ',' );\n\t\t\t}\n\t\t\tfwrite ( $file, CACHE_NEW_LINE );\n\t\t\t\t\n\t\t\t$i ++;\n\t\t}\n\t}\n\n\t// Writing file-footer\n\tfwrite ( $file, CACHE_TEMPLATE_END . CACHE_NEW_LINE . CACHE_NEW_LINE );\n\tfwrite ( $file, CACHE_PHP_CLOSE_TAG );\n\tfclose ( $file );\n}", "title": "" }, { "docid": "dd63e36bfb94437ab56050e3fb04b1a2", "score": "0.59579736", "text": "public function generate()\n {\n $content = file_get_contents($this->sourceFile);\n $content = str_replace('$(top_srcdir)/../', '$(top_srcdir)/../../', $content);\n file_put_contents($this->outputFile, $content);\n }", "title": "" }, { "docid": "b2fbae429c3f2dec36aecd84cc0d3a1d", "score": "0.59319866", "text": "public function generate()\n {\n $this->createDirectory();\n $this->formatFile();\n }", "title": "" }, { "docid": "d364828b5bd6978e48b361afd9c486da", "score": "0.58825886", "text": "function build() {\n \n }", "title": "" }, { "docid": "d6a18764527fa24331eda514bde0702f", "score": "0.57844424", "text": "public function build()\r\n {\r\n $this->dispatch($this->file , $this->controller , $this->method , $this->args);\r\n }", "title": "" }, { "docid": "204e3f921172efbdf967070f0d32f88f", "score": "0.57741964", "text": "protected function constructFilePath() {\r\n $file_path = $this->installation_path;\r\n \r\n if(!empty($this->module_name)) {\r\n $file_path .= \"/modules/{$this->module_name}/assets\";\r\n \r\n if(!empty($this->theme_name)) {\r\n $file_path .= \"/styles/{$this->theme_name}\";\r\n }\r\n }\r\n else {\r\n $file_path .= \"/public/assets\";\r\n }\r\n \r\n $file_path .= \"/{$this->assets_folder}/{$this->full_name}\";\r\n\r\n if(is_file($file_path)) {\r\n $this->full_path = $file_path;\r\n \r\n //Sent the file's size\r\n header(\"Content-Length: \" . filesize($file_path));\r\n }\r\n else {\r\n $this->initializeNotFound(true);\r\n }\r\n }", "title": "" }, { "docid": "784f576d3a876ded0862e8d85854ab39", "score": "0.5723901", "text": "function buildFile($outputDir, $fileName, $files, $prodVersion)\n{\n global $license;\n\n $contents = '';\n \n if ($prodVersion) {\n $contents .= _concatFiles($files);\n $contents = _minifyJS($contents);\n }\n else {\n foreach ($files as $file) {\n $contents .= \"\\n include(sidecarUrl + '\" . $file . \"');\";\n }\n // Adding JavaScript here!\n // Take care with your syntax.\n $contents = <<<JS\n$license\n(function() {\n var he = document.getElementsByTagName('head')[0];\n \n // We need a good URL to figure out where to get this stuff in the browser.\n var sidecarUrl = 'sidecar/';\n var indexOfSugarCrm = location.pathname.indexOf(\"/sugarcrm\");\n if ( indexOfSugarCrm > -1 ) {\n sidecarUrl = location.pathname.slice(0, indexOfSugarCrm) + \"/sugarcrm/\" + sidecarUrl;\n }\n \n function include(file) {\n // Use docment.write to make sure files are loaded and parsed\n // before any other scripts on the page. We're not worried about\n // performance for dev or for the config file.\n document.write('<scr' + 'ipt src=\"' + file + '\" type=\"text/javascript\"></scr' + 'ipt>');\n }\n \n $contents\n}());\n\nJS;\n }\n \n _writeFile($contents, $outputDir . \"/\" . $fileName);\n \n return $contents;\n}", "title": "" }, { "docid": "c2d2cb019f2f10649d8071999c262446", "score": "0.5667851", "text": "public function build() {\n }", "title": "" }, { "docid": "e7f966e96bac5ac92759496082c360ee", "score": "0.56351626", "text": "function compress() {\n\n // read the input\n foreach ($this->_files as $file) {\n $string = file_get_contents($file);\n if ($string === false)\n throw new \\Exception(\"Cannot read from uploaded file\");\n $this->_string.=$string;\n }\n\n // create single file from all input\n $input_hash = sha1($this->_string);\n \n $file = RC::getAlias($this->cachePath) . '/' . $input_hash . '.txt';\n $fh = fopen($file, 'w');\n if ($fh === false)\n throw new \\Exception(\"Can't create new file\");\n fwrite($fh, $this->_string);\n fclose($fh);\n\n // start with basic command\n $cmd = escapeshellarg($this->javaBin) . \" -Xmx128m -jar \" . escapeshellarg($this->getJarPath()) . ' ' . escapeshellarg($file) . \" --charset UTF-8\";\n \n // set the file type\n $cmd .= \" --type \" . (strtolower($this->type) == \"css\" ? \"css\" : \"js\");\n \n // and add options as needed\n if ($this->linebreak && intval($this->linebreak) > 0)\n $cmd .= ' --line-break ' . intval($this->linebreak);\n\n if ($this->verbose)\n $cmd .= \" -v\";\n\n if ($this->nomunge)\n $cmd .= ' --nomunge';\n\n if ($this->semi)\n $cmd .= ' --preserve-semi';\n\n if ($this->nooptimize)\n $cmd .= ' --disable-optimizations';\n\n // execute the command\n exec($cmd . ' 2>&1', $raw_output, $status);\n\n // add line breaks to show errors in an intelligible manner\n $flattened_output = implode(\"\\n\", $raw_output);\n \n if ($status === 1)\n throw new \\Exception('Failed to generate compressed file. Error: \"' . $flattened_output . '\"');\n\n // clean up (remove temp file)\n unlink($file);\n\n // return compressed output\n return $flattened_output;\n }", "title": "" }, { "docid": "ae8d05a328a9eea5aacd22714a63fea8", "score": "0.56024724", "text": "protected function _buildArchive()\n {\n $files = 0;\n $offset = 0;\n $central = '';\n\n if (!empty ($this->_options['sfx']))\n if ($fp = fopen($this->_options['sfx'], \"rb\")) {\n $temp = fread($fp, filesize($this->_options['sfx']));\n fclose($fp);\n $this->_addArchiveData($temp);\n $offset += strlen($temp);\n unset ($temp);\n } else {\n throw new BaseZF_Archive_Exception(sprintf('Could not open sfx module from %s.\"', $this->_options['sfx']));\n }\n\n $pwd = getcwd();\n\n foreach ($this->_files as $current) {\n\n if ($current['name'] == $this->_options['path']) {\n continue;\n }\n\n $timedate = explode(\" \", date(\"Y n j G i s\", $current['stat'][9]));\n $timedate = ($timedate[0] - 1980 << 25) | ($timedate[1] << 21) | ($timedate[2] << 16) |\n ($timedate[3] << 11) | ($timedate[4] << 5) | ($timedate[5]);\n\n $block = pack(\"VvvvV\", 0x04034b50, 0x000A, 0x0000, (isset($current['method']) || $this->_options['method'] == 0) ? 0x0000 : 0x0008, $timedate);\n\n // directory\n if ($current['type'] == 5) {\n\n $block .= pack(\"VVVvv\", 0x00000000, 0x00000000, 0x00000000, strlen($current['path']) + 1, 0x0000);\n $block .= $current['path'] . \"/\";\n $this->_addArchiveData($block);\n $central .= pack(\"VvvvvVVVVvvvvvVV\", 0x02014b50, 0x0014, $this->_options['method'] == 0 ? 0x0000 : 0x000A, 0x0000,\n (isset($current['method']) || $this->_options['method'] == 0) ? 0x0000 : 0x0008, $timedate,\n 0x00000000, 0x00000000, 0x00000000, strlen($current['path']) + 1, 0x0000, 0x0000, 0x0000, 0x0000, $current['type'] == 5 ? 0x00000010 : 0x00000000, $offset);\n $central .= $current['path'] . \"/\";\n $files++;\n $offset += (31 + strlen($current['path']));\n\n // empty stuff\n } else if ($current['stat'][7] == 0) {\n\n $block .= pack(\"VVVvv\", 0x00000000, 0x00000000, 0x00000000, strlen($current['path']), 0x0000);\n $block .= $current['path'];\n $this->_addArchiveData($block);\n $central .= pack(\"VvvvvVVVVvvvvvVV\", 0x02014b50, 0x0014, $this->_options['method'] == 0 ? 0x0000 : 0x000A, 0x0000,\n (isset($current['method']) || $this->_options['method'] == 0) ? 0x0000 : 0x0008, $timedate,\n 0x00000000, 0x00000000, 0x00000000, strlen($current['path']), 0x0000, 0x0000, 0x0000, 0x0000, $current['type'] == 5 ? 0x00000010 : 0x00000000, $offset);\n $central .= $current['path'];\n $files++;\n $offset += (30 + strlen($current['path']));\n\n // files\n } else {\n\n if (isset($current['data'])) {\n $temp = $current['data'];\n } else if ($fp = fopen($current['name'], 'rb')) {\n $temp = fread($fp, $current['stat'][7]);\n fclose($fp);\n } else {\n throw new BaseZF_Archive_Exception(sprintf('Could not open file %s for reading. It was not added.', $this->_options['path']));\n }\n\n $crc32 = crc32($temp);\n if (!isset($current['method']) && $this->_options['method'] == 1) {\n $temp = gzcompress($temp, $this->_options['level']);\n $size = strlen($temp) - 6;\n $temp = substr($temp, 2, $size);\n } else {\n $size = strlen($temp);\n }\n\n $block .= pack(\"VVVvv\", $crc32, $size, $current['stat'][7], strlen($current['path']), 0x0000);\n $block .= $current['path'];\n $this->_addArchiveData($block);\n $this->_addArchiveData($temp);\n unset ($temp);\n $central .= pack(\"VvvvvVVVVvvvvvVV\", 0x02014b50, 0x0014, $this->_options['method'] == 0 ? 0x0000 : 0x000A, 0x0000,\n (isset($current['method']) || $this->_options['method'] == 0) ? 0x0000 : 0x0008, $timedate,\n $crc32, $size, $current['stat'][7], strlen($current['path']), 0x0000, 0x0000, 0x0000, 0x0000, 0x00000000, $offset);\n $central .= $current['path'];\n $files++;\n $offset += (30 + strlen($current['path']) + $size);\n }\n }\n\n $this->_addArchiveData($central);\n $this->_addArchiveData(\n pack(\"VvvvvVVv\", 0x06054b50, 0x0000, 0x0000, $files, $files, strlen($central),\n $offset,\n !empty ($this->_options['comment']) ? strlen($this->_options['comment']) : 0x0000)\n );\n\n if (!empty ($this->_options['comment'])) {\n $this->_addArchiveData($this->_options['comment']);\n }\n\n chdir($pwd);\n\n return true;\n }", "title": "" }, { "docid": "811d25421041f479064de4514f2a5d07", "score": "0.5585405", "text": "abstract public function build();", "title": "" }, { "docid": "811d25421041f479064de4514f2a5d07", "score": "0.5585405", "text": "abstract public function build();", "title": "" }, { "docid": "49f44ce29693670e495cb9e538e939e3", "score": "0.5569933", "text": "public function buildPage()\n {\n $this->_page = str_replace(self::PAGE_NAME_TRIGGER, $this->_pageName, $this->_page);\n $this->_page = str_replace(self::CSS_TRIGGER, $this->_CSS, $this->_page);\n $this->_page = str_replace(self::JAVASCRIPT_TRIGGER, $this->_JavaScript, $this->_page);\n\n $tempFile = fopen('./static/temp.php', 'w+') or die('PHPGen: Unable to open temporary file!');\n fwrite($tempFile, $this->_page);\n fclose($tempFile);\n }", "title": "" }, { "docid": "f27ada1eee67c5255124487a20832962", "score": "0.5566326", "text": "public function build(){\r\n\t\t$template = Template::Singleton();\r\n\t\t\r\n\t\t$this->attach_head();\r\n\t\t$this->attach_settings();\r\n\t\t$this->attach_user();\r\n\t\t$this->attach_security();\r\n\t\t$this->attach_warnings(); //This should be the last but one\r\n\t\t$this->attach_debug(); //This should be the last one\r\n\t\t$this->build_xml();\r\n\t\t\r\n\t\treturn $this->dom->saveXML();\r\n\t}", "title": "" }, { "docid": "ed0c34d5385fb27869ef6aa19f54613a", "score": "0.55609035", "text": "abstract function build();", "title": "" }, { "docid": "fa10c3380c0e379ffb7ba89a3ed2ed35", "score": "0.55235326", "text": "public function execute() {\n if (!empty($this->args[0])) {\n $this->outputDir = $this->args[0];\n }\n\n if (!empty($this->params['no-optimize'])) {\n $this->optimizations = array();\n }\n if (!empty($this->params['no-compress'])) {\n foreach($this->optimizations as $ext => &$methods) {\n foreach($methods as $i => $method) {\n if (strpos($method, 'compress') === 0) {\n unset($methods[$i]);\n }\n }\n }\n }\n if (!empty($this->params['no-concat'])) {\n foreach($this->optimizations as $ext => &$methods) {\n foreach($methods as $i => $method) {\n if (strpos($method, 'concat') === 0) {\n unset($methods[$i]);\n }\n }\n }\n }\n\n touch(TMP . 'building');\n exec('rm -rf ' . escapeshellarg($this->outputDir));\n mkdir($this->outputDir . '/css', 0777, true);\n mkdir($this->outputDir . '/img', 0777, true);\n mkdir($this->outputDir . '/js', 0777, true);\n\n $root = Configure::read('PhaseWebroot');\n $offset = strlen($root) - 1;\n $folder = new Folder($root);\n $files = $folder->findRecursive();\n foreach($files as $file) {\n $url = substr($file, $offset);\n $this->processUrl($url);\n }\n\n $this->recurse();\n\n if ($this->fourOFours) {\n $this->err(\"<warning>404s!</warning>\");\n foreach($this->fourOFours as $url => $referers) {\n $this->out(\"\\t$url\");\n }\n }\n unlink(TMP . 'building');\n\t}", "title": "" }, { "docid": "e2436f4b17fc46edecaed4345ad8463f", "score": "0.55055827", "text": "public function build($rawPath);", "title": "" }, { "docid": "f72882badf696429b105386874630615", "score": "0.54503775", "text": "public function build()\n\t{\n\t\t$this->_prepare();\n\t\t$this->display();\n\t}", "title": "" }, { "docid": "ee7d2a3399a2b3ebb710dae1a4a32c84", "score": "0.5450005", "text": "public function buildAndOutStream()\n {\n return $this->getWriterDriver()->buildAndOutStream($this->buildDownloadFileName());\n }", "title": "" }, { "docid": "09298cb7bb7f304e4cd1c3a946d54bb5", "score": "0.54395986", "text": "protected function createVersionFile()\n {\n $this->newline('Creating version file...');\n\n $replace = [\n '@version' => $this->gitVersion,\n '@build' => $this->gitCommitHash,\n '@date' => Carbon::now()->format('Y-m-d H:i:s'),\n ];\n\n Storage::disk('js')->put('version.js',\n str_placeholder($replace, Storage::get('stubs/version.stub'))\n );\n }", "title": "" }, { "docid": "971f068cf6694f8c1e335047171f8396", "score": "0.5419101", "text": "public function build();", "title": "" }, { "docid": "971f068cf6694f8c1e335047171f8396", "score": "0.5419101", "text": "public function build();", "title": "" }, { "docid": "971f068cf6694f8c1e335047171f8396", "score": "0.5419101", "text": "public function build();", "title": "" }, { "docid": "971f068cf6694f8c1e335047171f8396", "score": "0.5419101", "text": "public function build();", "title": "" }, { "docid": "971f068cf6694f8c1e335047171f8396", "score": "0.5419101", "text": "public function build();", "title": "" }, { "docid": "971f068cf6694f8c1e335047171f8396", "score": "0.5419101", "text": "public function build();", "title": "" }, { "docid": "971f068cf6694f8c1e335047171f8396", "score": "0.5419101", "text": "public function build();", "title": "" }, { "docid": "971f068cf6694f8c1e335047171f8396", "score": "0.5419101", "text": "public function build();", "title": "" }, { "docid": "7c8abb6c6427fb1b90e24a16de8da6f5", "score": "0.53785944", "text": "function buildFinished(BuildEvent $event)\n\t\t{\n\t\t\t$this->buildTimer->stop();\n\t\t\t\n\t\t\t$elapsedTime = Phing::currentTimeMillis() - $this->buildTimerStart;\n\t\t\t\n\t\t\t$this->buildElement->setAttribute(XmlLogger::TIME_ATTR, DefaultLogger::_formatTime($elapsedTime));\n\t\t\t\n\t\t\tif ($event->getException() != null)\n\t\t\t{\n\t\t\t\t$this->buildElement->setAttribute(XmlLogger::ERROR_ATTR, $event->getException()->toString());\n\t\t\t\t\n\t\t\t\t$errText = $this->doc->createCDATASection($event->getException()->getTraceAsString());\n\t\t\t\t$stacktrace = $this->doc->createElement(XmlLogger::STACKTRACE_TAG);\n\t\t\t\t$stacktrace->appendChild($errText);\n\t\t\t\t$this->buildElement->appendChild($stacktrace);\n\t\t\t}\n\t\t\t\n\t\t\t$outFilename = $event->getProject()->getProperty(\"XmlLogger.file\");\n\t\t\t\n\t\t\tif ($outFilename == \"\")\n\t\t\t{\n\t\t\t\t$outFilename = \"log.xml\";\n\t\t\t}\n\t\t\t$writer = new FileWriter($outFilename);\n\t\t\t\n\t\t\t$writer->write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n\t\t\t$writer->write($this->doc->saveXML($this->buildElement));\n\t\t\t$writer->close();\n\t\t}", "title": "" }, { "docid": "0036e46176b67a5a248d85d4d3b18a2f", "score": "0.5375657", "text": "public function generateFile()\n {\n $this->applications = $this->config->get('system.translated_applications');\n $this->outPutService->printText(\"\\nGenerating language files\\n\");\n foreach ($this->applications as $application => $languages) {\n $this->outPutService->printText(\"[APPLICATION: \" . $application . \"]\\n\");\n foreach ($languages as $language) {\n $this->outPutService->printText(\"\\t[LANGUAGE: \" . $language . \"]\");\n try {\n $phpContent = $this->getLanguageFile($application, $language);\n // If we got correct data we store it.\n $destination = $this->getLanguageCachePath($application) . $language . '.php';\n\n $this->createDir($destination);\n \n $result = (bool) $this->fileCreator->writeIntoFile($destination, $phpContent);\n \n if ($result) {\n $this->outPutService->printText(\" OK\\n\");\n }\n } catch (LanguageException $e) {\n throw new GenerateFileException('Unable to generate language file!', $e->getCode(), $e);\n }\n }\n }\n }", "title": "" }, { "docid": "6445cbd0ae4a1f64bcbb8c94de151d54", "score": "0.5356802", "text": "public function build()\n {\n // $ echo \"phar.readonly=0\" >> /usr/local/etc/php/7.3/conf.d/enable-phar.ini\"\n $phar = new \\Phar($this->pathToPhar);\n $baseDirToRemoveFromFiles = __DIR__ . '/../';\n $phar->buildFromIterator($this->finder->getIterator(), $baseDirToRemoveFromFiles);\n // The parameter 'console' should be the related path inside the .phar file to the initScript\n $bootstrapScript = \\Phar::createDefaultStub(self::CONSOLE_FILE);\n $phar->setStub(\"#!/usr/bin/env php\\n\" . $bootstrapScript);\n }", "title": "" }, { "docid": "3636ecfa68c18181d06871372fdc0aca", "score": "0.5355457", "text": "public function build()\n\t{\n\t\tparent::build();\n\n\t\t//set the upload url depending on the type of config this is\n\t\t$url = $this->validator->getUrlInstance();\n\t\t$route = $this->config->getType() === 'settings' ? 'admin_settings_file_upload' : 'admin_file_upload';\n\n\t\t//set the upload url to the proper route\n\t\t$model = $this->config->getDataModel();\n\n\t\t$uploadUrl = $url->route(\n\t\t\t$route,\n\t\t\tarray(\n\t\t\t\t'model' => $this->config->getOption('name'),\n\t\t\t\t'field' => $this->suppliedOptions['field_name'],\n\t\t\t\t'id' => $model ? $model->{$model->getKeyName()} : null,\n\t\t\t)\n\t\t);\n\n $this->suppliedOptions['upload_url'] = preg_replace('$([^:])(//)$', '\\1/', $uploadUrl);\n\t}", "title": "" }, { "docid": "1fad1f1f25a4c56f75cb607b88025f77", "score": "0.5342108", "text": "function onAfterWrite() {\n\t\tparent::onAfterWrite();\n\n\t\t//generate the release zip file using a message queue\n\t\tif ($this->GitRepo && strlen($this->GitRepo) > 1) {\n\t\t\t$invo = new MethodInvocationMessage(\"CachedGitArchiver\", \"generateGitArchive\", $this->GitRepo); //build master HEAD\n\t\t\tMessageQueue::send(\"generateReleaseQueue\", $invo);\n\t\t}\n\t}", "title": "" }, { "docid": "3d9e628c5ddb4fb44e0580f9ae94f113", "score": "0.5331066", "text": "public function build(): void\n {\n $containerBuilder = new Compiler();\n\n $previousDefinition = null;\n for ($i = 1; $i <= 100; $i++) {\n $definition = new ObjectDefinition(\"DiContainerBenchmarks\\\\Fixture\\\\Class$i\", \"DiContainerBenchmarks\\\\Fixture\\\\Class$i\");\n if ($previousDefinition !== null) {\n $definition->addConstructorArgument($previousDefinition);\n }\n $previousDefinition = $definition;\n $containerBuilder->addDumpableDefinition($definition);\n }\n\n file_put_contents(\n PROJECT_ROOT . \"/src/Container/Yaco/Resource/CompiledSingletonContainer.php\",\n $containerBuilder->compile('DiContainerBenchmarks\\\\Container\\\\Yaco\\\\Resource\\\\CompiledSingletonContainer')\n );\n\n }", "title": "" }, { "docid": "3e70707d0628dcfb76e766674bba57de", "score": "0.5324397", "text": "public function buildFields()\n {\n $this->addField('code', 'Code du fichier', true);\n $this->addField('filename', 'Nom du fichier', true);\n }", "title": "" }, { "docid": "eff1e1e90a31f499884b397d8c0e612b", "score": "0.53012806", "text": "public function write_out() {\n $filename = $this->filename();\n $dir = dirname($filename);\n\n if (!file_exists($dir)) {\n mkdir($dir, 0777, true);\n }\n\n $file = fopen($this->filename(), 'w');\n fwrite($file, \"; note - autogenerated file\\n\");\n fwrite($file, 'define ');\n fwrite($file, $this->type);\n fwrite($file, \" {\\n\");\n\n // TODO - some column formatting would be nice :)\n foreach ($this->writable_attributes() as $key => $value) {\n fwrite($file, \"\\t\");\n fwrite($file, $key);\n fwrite($file, \"\\t\");\n fwrite($file, $value);\n fwrite($file, \"\\n\");\n }\n\n fwrite($file, \"}\\n\");\n fclose($file);\n }", "title": "" }, { "docid": "63f614fc99861682ec2d1ce8501e1354", "score": "0.5293353", "text": "private function _create()\n\t{\n\t\t$this->_xml->newXMLDocument();\n\t\t$this->_xml->addElement( 'xmlarchive', '', array( 'generator' => 'IPS_KERNEL', 'created' => time() ) );\n\t\t$this->_xml->addElement( 'fileset', 'xmlarchive' );\n\t\t\n\t\tforeach( $this->_fileArray as $f )\n\t\t{\n\t\t\t$f['content'] = chunk_split(base64_encode($f['content']));\n\t\t\t\n\t\t\t$this->_xml->addElementAsRecord( 'fileset', 'file', $f );\n\t\t}\n\t}", "title": "" }, { "docid": "323f73433cd7d02ac4465ea5a7fb4591", "score": "0.52933043", "text": "public function buildData()\n\t{\n\t}", "title": "" }, { "docid": "953ffd35d5c4db68bf2a4825ba97a084", "score": "0.5270184", "text": "public function build(): string\n {\n if (!$this->isBuildable()) {\n return '';\n }\n\n $this->ready();\n\n if (!$this->css->isEmpty()) {\n $this->set(['class' => $this->css->build()]);\n }\n\n if (!$this->style->isEmpty()) {\n $this->set(['style' => $this->style->build()]);\n }\n\n if ($this->linebreak) {\n $this->content->linebreak();\n }\n\n return sprintf(\n '<%s%s>%s%s%s%s',\n $this->fullTag(),\n $this->attribute->isEmpty() ? '' : ' ' . $this->attribute->build(),\n $this->linebreak && !$this->content->isEmpty() ? PHP_EOL : '',\n $this->content->build(),\n $this->linebreak && $this->closing ? PHP_EOL : '',\n $this->closing ? '</' . $this->fullTag() . '>' : ''\n );\n }", "title": "" }, { "docid": "2b5d9e0862c027df6da5a659dc317fdc", "score": "0.5250612", "text": "protected function writeFile(){\n\t\t\t$output = array();\n\t\t\t$output['filename'] = $this->typoscript['fileNameFormat'];\n\t\t\t$output['relative'] = $this->typoscript['renderedPdfStorageFolder'] . $output['filename'];\n\t\t\t$output['absolute'] = t3lib_div::getFileAbsFileName($output['relative']);\n\t\t\t$outputFilename = $output[$this->typoscript['returnFormat']];\n\n\t\t\tif(\n\t\t\tarray_key_exists('createFolders', $this->typoscript)\n\t\t\t&& $this->typoscript['createFolders']\n\t\t\t&& !file_exists(dirname($output['absolute']))\n\t\t\t){\n\t\t\t\tmkdir(dirname($output['absolute']),0777,true);\n\t\t\t}\n\t\t\t$this->pdfTemplate->writeAndClose($output['absolute']);\n\t\t\treturn $outputFilename;\n\n\t\t}", "title": "" }, { "docid": "21075b4afccd79b47ec14ea83b31910b", "score": "0.5245019", "text": "protected function buildSitemapFileFormat() {\n\t\t$fileParts = pathinfo($this->indexFilePath);\n\t\t$this->sitemapFileFormat = $fileParts['dirname'] . '/' . $fileParts['filename'] . '_sitemap_%05d_%05d.xml';\n\t}", "title": "" }, { "docid": "eb6f6cc2fb6448e737acdb7b6838a5d7", "score": "0.524392", "text": "public function build()\n {\n $config = $this->classMetadata->getExtension(Fluent::EXTENSION_NAME);\n\n $config['loggable'] = true;\n $config['versioned'] = array_unique(array_merge(\n isset($config['versioned']) ? $config['versioned'] : [],\n [\n $this->fieldName,\n ]\n ));\n\n $this->classMetadata->addExtension(Fluent::EXTENSION_NAME, $config);\n }", "title": "" }, { "docid": "64e8cd83c7173bbbe35736bae7c68d9b", "score": "0.52200925", "text": "public function build()\n {\n $this->createRequestUrl();\n $this->createHeaders();\n $this->createBody();\n $this->createResponse();\n $this->createReturns();\n\n return (string)$this->methodBody;\n }", "title": "" }, { "docid": "f12df22b00330e9bba8e97ec56eec397", "score": "0.52085364", "text": "abstract protected function buildBundles();", "title": "" }, { "docid": "ee1e2c05503faf07d0c38cf502340fff", "score": "0.52015156", "text": "public function buildFinished(BuildEvent $event)\n {\n $xslUri = $event->getProject()->getProperty(\"phing.XmlLogger.stylesheet.uri\");\n if ($xslUri === null) {\n $xslUri = \"\";\n }\n\n if ($xslUri !== '') {\n $xslt = $this->doc->createProcessingInstruction('xml-stylesheet', 'type=\"text/xsl\" href=\"' . $xslUri . '\"');\n $this->doc->appendChild($xslt);\n }\n\n $elapsedTime = Phing::currentTimeMillis() - $this->buildTimerStart;\n\n $this->buildElement->setAttribute(XmlLogger::TIME_ATTR, DefaultLogger::formatTime($elapsedTime));\n\n if ($event->getException() != null) {\n $this->buildElement->setAttribute(XmlLogger::ERROR_ATTR, $event->getException()->getMessage());\n $errText = $this->doc->createCDATASection($event->getException()->getTraceAsString());\n $stacktrace = $this->doc->createElement(XmlLogger::STACKTRACE_TAG);\n $stacktrace->appendChild($errText);\n $this->buildElement->appendChild($stacktrace);\n }\n\n $this->doc->appendChild($this->buildElement);\n\n $outFilename = $event->getProject()->getProperty(\"XmlLogger.file\");\n if ($outFilename == null) {\n $outFilename = \"log.xml\";\n }\n\n try {\n $stream = $this->out;\n if ($stream === null) {\n $stream = new FileOutputStream($outFilename);\n }\n\n // Yes, we could just stream->write() but this will eventually be the better\n // way to do this (when we need to worry about charset conversions.\n $writer = new OutputStreamWriter($stream);\n $writer->write($this->doc->saveXML());\n $writer->close();\n } catch (IOException $exc) {\n try {\n $stream->close(); // in case there is a stream open still ...\n } catch (Exception $x) {\n }\n throw new BuildException(\"Unable to write log file.\", $exc);\n }\n\n // cleanup:remove the buildElement\n $this->buildElement = null;\n\n array_pop($this->elementStack);\n array_pop($this->timesStack);\n }", "title": "" }, { "docid": "c8093554124a4740420e10f301fc2ab2", "score": "0.51996124", "text": "public function build() { return; }", "title": "" }, { "docid": "a9fc2dcb081622dff31efc05dfcdaa52", "score": "0.5193215", "text": "protected function process()\n {\n $js = '';\n foreach ($this->data as $namespace => $config) {\n foreach ($config['files'] as $file) {\n if (file_exists($config['dir'] . $file)) {\n $js .= file_get_contents($config['dir'] . $file) . \"\\n\\n\";\n } else {\n throw new Nette\\FileNotFoundException('File ' . $config['dir'] . $file . ' doesn\\'t exist');\n }\n }\n }\n file_put_contents($this->wwwDir . $this->tempDir . '/' . $this->getVersion() . '.js', $js);\n }", "title": "" }, { "docid": "c7356368213e553a720d4d1213fe1bd8", "score": "0.51858896", "text": "protected function tofile():string { return $this->root->save(FOLDER.$this->nameOfFile.\".xml\"); }", "title": "" }, { "docid": "251567f8c556dd60f212de5f0980b82a", "score": "0.51842684", "text": "public function generateFiles()\n {\n $bundles = $this->bundles;\n\n //parse the bundles\n foreach ($bundles as $bundleName) {\n $this->logger->info('Bundle analysed: '. $bundleName);\n\n //the path of the files\n $allMetadata = $this->doctrineHelper->getMetadata($bundleName);\n\n /** @var ClassMetadata $meta */\n foreach ($allMetadata as $meta) {\n $customRepositoryClassName = $meta->customRepositoryClassName;\n if ($meta->customRepositoryClassName === null) {\n $this->logger->info('SKIPPING entity: '. $meta->name);\n continue;\n }\n\n $this->logger->info('Entity: '. $meta->name);\n $renderedTemplate = $this->generateRepository($allMetadata, $bundleName, $meta);\n\n //store the generated content\n $reflector = new \\ReflectionClass($customRepositoryClassName);\n $originalRepostoryPath = $reflector->getFileName();\n $fullPath = str_replace('.php', 'Base.php', $originalRepostoryPath);\n\n $this->persister->persistClass($fullPath, $renderedTemplate);\n }\n }\n }", "title": "" }, { "docid": "f64a7c5f5bc00d59cd36b3520f4f839a", "score": "0.51791507", "text": "public function generate_download_file(){\n $name = $this->backup_data['name'];\n $dir = $this->backup_data['dir'];\n $sql_txt = $this->basic_sql_file_layout();\n $fullname = $dir . '/' . $name . '.sql.gz'; # full structures\n @ini_set('zlib.output_compression', 'Off');\n $gzipoutput = gzencode($sql_txt, 9);\n\n // various headers, those with # are mandatory\n header('Content-Type: application/x-download');\n header(\"Content-Description: File Transfer\");\n header('Content-Encoding: gzip'); #\n header('Content-Length: '.strlen( $gzipoutput ) );\n header('Content-Disposition: attachment; filename=\"'.$name.'.sql.gz'.'\"');\n header('Cache-Control: no-cache, no-store, max-age=0, must-revalidate');\n header('Connection: Keep-Alive');\n header(\"Content-Transfer-Encoding: binary\");\n header('Expires: 0');\n header('Pragma: no-cache');\n echo $gzipoutput;\n }", "title": "" }, { "docid": "97d5f3c622a2f86d3e317e388676772a", "score": "0.5173808", "text": "protected function writeExecutableFile()\n {\n // It causes stuff (ext/phar/tests/005.phpt) on windows.\n $contentsAsString = implode(\"\\n\", $this->sectionContents) . \"\\n\";\n file_put_contents($this->fileName, (binary) $contentsAsString);\n }", "title": "" }, { "docid": "dad23a60a6aed39298c30aa89abee13d", "score": "0.5162712", "text": "public function build(): void;", "title": "" }, { "docid": "c95feea11980d21725d7de767ab71c2b", "score": "0.51600903", "text": "protected function _mkfile() {\n\t\tif (empty ( $_GET ['current'] ) || false == ($dir = $this->_findDir ( trim ( $_GET ['current'] ) ))) {\n\t\t\treturn $this->_result ['error'] = 'Invalid parameters';\n\t\t}\n\t\t$this->_logContext ['file'] = $dir . DIRECTORY_SEPARATOR . $_GET ['name'];\n\t\tif (! $this->_isAllowed ( $dir, 'write' )) {\n\t\t\t$this->_result ['error'] = 'Access denied';\n\t\t} elseif (false == ($name = $this->_checkName ( $_GET ['name'] ))) {\n\t\t\t$this->_result ['error'] = 'Invalid name';\n\t\t} elseif (file_exists ( $dir . DIRECTORY_SEPARATOR . $name )) {\n\t\t\t$this->_result ['error'] = 'File or folder with the same name already exists';\n\t\t} else {\n\t\t\t$f = $dir . DIRECTORY_SEPARATOR . $name;\n\t\t\t$this->_logContext ['file'] = $f;\n\t\t\tif (false != ($fp = @fopen ( $f, 'wb' ))) {\n\t\t\t\tfwrite ( $fp, \"\" );\n\t\t\t\tfclose ( $fp );\n\t\t\t\t$this->_result ['select'] = array (\n\t\t\t\t\t\t$this->_hash ( $dir . DIRECTORY_SEPARATOR . $name ) \n\t\t\t\t);\n\t\t\t\t$this->_content ( $dir );\n\t\t\t} else {\n\t\t\t\t$this->_result ['error'] = 'Unable to create file';\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fed034ed7f7538fb5baf0348ec5b1db6", "score": "0.5158629", "text": "protected static function build() {\n // build database\n passthru('sake dev/build \"flush=all\"');\n self::$event->getIO()->write(\":: build database and flush cache\");\n }", "title": "" }, { "docid": "b06bef69a184f171df842be083e46153", "score": "0.51522756", "text": "public function build($inputDirPath, $outputFileName=null)\r\n {\r\n if(!$inputDirRealPath = realpath($inputDirPath)) {\r\n throw new \\Exception(\"Input directory not found: \".$inputDirPath.\"\\n\", 1);\r\n }\r\n\r\n $this->inputDirPath = $inputDirRealPath;\r\n\r\n if(\\is_null($outputFileName)) {\r\n $this->outputFileName = \\basename($this->inputDirPath).\".epub\";\r\n $this->outputDirPath = \\dirname($this->inputDirPath);\r\n } else {\r\n $this->outputFileName = \\basename($outputFileName);\r\n \r\n if(!$outputDirRealPath = \\realpath(dirname($outputFileName))) {\r\n throw new \\Exception(\"Output directory not found\".$outputDirRealPath.\"\\n\", 1);\r\n }\r\n $this->outputDirPath = $outputDirRealPath;\r\n }\r\n\r\n $metainfDirPath = $this->inputDirPath.DIRECTORY_SEPARATOR.\"META-INF\";\r\n $containerDocPath = $metainfDirPath.DIRECTORY_SEPARATOR.\"container.xml\";\r\n if(!\\file_exists($metainfDirPath)) {\r\n \\mkdir($metainfDirPath);\r\n $this->createContainerDocument($containerDocPath);\r\n } elseif(!file_exists($containerDocPath)) {\r\n $this->createContainerDocument($containerDocPath);\r\n }\r\n\r\n $outputFilePath = $this->outputDirPath.DIRECTORY_SEPARATOR.$this->outputFileName;\r\n\r\n $zip = new ZipArchive();\r\n\r\n \\file_put_contents($this->outputDirPath.DIRECTORY_SEPARATOR.$this->outputFileName, \\base64_decode($this->zipBase));\r\n\r\n $zip->open($outputFilePath);\r\n\r\n $iterator = new RecursiveIteratorIterator(\r\n new RecursiveDirectoryIterator($this->inputDirPath));\r\n foreach ($iterator as $item) {\r\n\r\n if(true === $item->isDir() || 1 == preg_match($this->ignoreReg, $item->getBasename())) {\r\n continue;\r\n }\r\n\r\n $name = $item->__toString();\r\n $localPath = \\str_replace($this->inputDirPath.DIRECTORY_SEPARATOR, '', $name);\r\n if (false === $zip->addFile($name, $localPath)) {\r\n throw new \\Exception('Cannot add file ' . $localPath . ' to zip archive');\r\n }\r\n } \r\n\r\n $zip->close();\r\n unset($zip);\r\n\r\n return $outputFilePath;\r\n }", "title": "" }, { "docid": "53b96088a409d389c74e335e9d0789f2", "score": "0.51443017", "text": "function writeFilesDynamically($userRecordHandle, $imageDir, $imageSmallFileName, $propertySmallName,\n $imageSplashFileName, $propertySplashName, $configFileName){\n global $log, $fmOrderDB, $root;\n\n $log->debug(\"--> Start Configuration write and get images from FileMaker\");\n $log->debug(\"Get Small image from FileMaker\");\n $logoSmallUrl = $userRecordHandle->getField('z_SYS_Client_Logo_Print_Small_cc');\n $fileTypeSmall = getFileMakerContainerFileExtension($logoSmallUrl);\n $log->debug(\"Small Logo URL: \" .$logoSmallUrl);\n $fullSmallImagePath = $imageDir .\"/\" .$imageSmallFileName .$fileTypeSmall;\n $fullSmallImageWritePath = $root .$imageDir .\"/\" .$imageSmallFileName .$fileTypeSmall;\n\n //Get the actual image object from the container and then save image to filesystem\n $smallImage = $fmOrderDB->getContainerData($logoSmallUrl);\n $log->debug(\"Have Small image file, type, and path: \" .$fullSmallImagePath);\n\n $log->debug(\"Get Splash image from FileMaker\");\n $logoSplashURL = $userRecordHandle->getField(\"z_SYS_Client_Logo_Splash_Screen_cc\");\n $fileTypeSplash = getFileMakerContainerFileExtension($logoSplashURL);\n $fullSplashImagePath = $imageDir .\"/\" .$imageSplashFileName .$fileTypeSplash;\n $fullSplashImageWritePath = $root .$imageDir .\"/\" .$imageSplashFileName .$fileTypeSplash;\n\n $splashImage = $fmOrderDB->getContainerData($logoSplashURL);\n $log->debug(\"Have Splash image file, type, and path: \" .$fullSplashImagePath);\n\n //If the image exists then write the image file to image directory then create app-config file\n //should this page fail then the user will see the alt text of logo image tag\n if((isset($smallImage) && !empty($smallImage)) && (isset($splashImage) && !empty($splashImage))){\n $log->debug(\"Got Small image from FileMaker now write the image: \" .$fullSmallImagePath .\" to disk\");\n $log->debug(\"Got Splash image from FileMaker now write the image: \" .$fullSplashImagePath .\" to disk\");\n\n $fp = fopen($fullSmallImageWritePath, \"w\") or $log->error(\"Unable to open Small file \" .$fullSmallImageWritePath);\n fwrite($fp, $smallImage);\n fclose($fp);\n\n $fp = fopen($fullSplashImageWritePath, \"w\") or $log->error(\"Unable to open Splash file \" .$fullSplashImageWritePath);\n fwrite($fp, $splashImage);\n fclose($fp);\n\n //Now create the app-config file\n $phpHeader = \"<?php\" .PHP_EOL;\n $phpFooter = \"?>\";\n $propertyOut = $propertySmallName .\" \\\"\" .$fullSmallImagePath .\"\\\"\" .\";\" .PHP_EOL;\n $propertySplashOut = $propertySplashName .\" \\\"\" .$fullSplashImagePath .\"\\\"\" .\";\" .PHP_EOL;\n\n $fp = fopen($root .$configFileName, \"w\") or $log->error(\"Unable to open file: \" .$root .$configFileName);\n fwrite($fp, $phpHeader);\n fwrite($fp, $propertyOut);\n fwrite($fp, $propertySplashOut);\n fwrite($fp, $phpFooter);\n fclose($fp);\n $log->debug(\"Finished writing both Small and Splash images and app-config files\");\n }else{\n $log->error(\"Image Small or Splash within FileMaker container was empty for user: \" .$userRecordHandle->getField('User_Name_ct'));\n }\n\n $log->debug(\"--> End Configuration file write amd image save method\");\n}", "title": "" }, { "docid": "4885aa4c29da35a426d06c56239aaa2d", "score": "0.5143827", "text": "public function build()\n {\n // Set the base url.\n $this->client->setBaseUrl('http://wordpress.org');\n\n if ($this['package'] == 'core')\n {\n // Core is a specific uri.\n $this->request = $this->client\n ->get('/download/release-archive/');\n }\n else\n {\n // Create the uri dynamically based on\n // parameters sent to command.\n $this->request = $this->client\n ->get(\n sprintf(\n '/extend/%s/%s/developers/',\n $this['package'],\n $this['slug']\n )\n );\n }\n\n // Reset base url in case the same client object\n // is used for future commands.\n $this->client->setBaseUrl('http://api.wordpress.org');\n }", "title": "" }, { "docid": "a2be83f06af0df396220a1f3fd2e6a2c", "score": "0.51220775", "text": "public function buildDeleteBullshit(): void {\n $filesToDelete = [];\n\n foreach(Finder::find(\n [\n '.DS_STORE',\n '.DS_Store',\n 'thumbs.db',\n '.thumbs',\n 'tmp',\n '*.pyc'\n ]\n )->from('.') as $name => $file) {\n $filesToDelete[] = $file->getRealPath();\n }\n\n foreach($filesToDelete as $file) {\n try {\n FileSystem::delete($file);\n }\n catch(IOException $e) {\n $this->writeln('Errror ' . $file);\n }\n }\n }", "title": "" }, { "docid": "e74b3b5cb2803ce86da1256f6d95a0b4", "score": "0.5109653", "text": "public function parseToFile()\n\t{\n\t\tSpoonFile::setContent($this->compileDirectory . '/' . $this->getCompileName($this->template), $this->getContent());\n\t}", "title": "" }, { "docid": "6f19348d9e7ad253312ca96ff605b34f", "score": "0.51089776", "text": "public function buildBody() {\r\n\t}", "title": "" }, { "docid": "9b6e509791750e4efdad365da118e9e8", "score": "0.5106922", "text": "private function newArchive()\n {\n $dir = FileSystemTool::mkTmpDir();\n\n\n// FileSystemTool::mkdir($dir);\n\n\n //--------------------------------------------\n // BASIC FILES\n //--------------------------------------------\n $boilerplateDir = __DIR__ . \"/../assets/light-app-boilerplate\";\n $otherFiles = [\n \"config/services/_zzz.byml\",\n \"universe/bigbang.php\",\n \"www/index.php\",\n \"www/.htaccess\",\n ];\n foreach ($otherFiles as $rpath) {\n $file = $boilerplateDir . \"/$rpath\";\n $dst = $dir . \"/$rpath\";\n FileSystemTool::copyFile($file, $dst);\n }\n\n\n //--------------------------------------------\n // PLANETS\n //--------------------------------------------\n $uniDir = $this->uniDir;\n $deps = $this->getBoilerplateDependencies();\n\n\n if ($deps) {\n\n $nbDeps = count($deps);\n\n $c = 1;\n foreach ($deps as $pDotName) {\n\n $pSlashName = PlanetTool::getPlanetSlashNameByDotName($pDotName);\n $planetDir = $uniDir . \"/\" . $pSlashName;\n $sizeHuman = ConvertTool::convertBytes(FileSystemTool::getDirectorySize($planetDir), 'h');\n\n\n $this->msg(\"Processing planet $pDotName ($c/$nbDeps) ($sizeHuman)\" . PHP_EOL);\n flush();\n\n\n if (true === is_dir($planetDir)) {\n PlanetTool::importPlanetByExternalDir($pDotName, $planetDir, $dir, [\n \"assets\" => true,\n ]);\n } else {\n throw new LingTalfiException(\"Planet dir not found: $planetDir.\");\n }\n $c++;\n }\n }\n\n\n //--------------------------------------------\n // CREATE ZIP ARCHIVE\n //--------------------------------------------\n\n $this->msg(\"Creating zip archive...\" . PHP_EOL);\n flush();\n\n\n $zipFile = $dir . \".zip\";\n ZipTool::zip($dir, $zipFile, [\n \"ignoreName\" => [\n \".git\",\n \".gitignore\",\n ]\n ]);\n FileSystemTool::remove($dir);\n\n\n $zipFileDst = $uniDir . \"/Ling/Light_AppBoilerplate/assets/light-app-boilerplate.zip\";\n $this->msg(\"moving zip file to $zipFileDst.\" . PHP_EOL);\n FileSystemTool::move($zipFile, $zipFileDst);\n\n }", "title": "" }, { "docid": "875442d9579f7bc6d2699cc70547e3aa", "score": "0.51034", "text": "public function rebuild_output_folders() {\n $this->log('== Rebuilding index.php and languages.md5 files ==');\n\n foreach ($this->get_versions() as $version) {\n $packinfofile = $this->vardirroot.'/'.$version->dir.'/packinfo.ser';\n if (!file_exists($packinfofile)) {\n $this->log('File packinfo.ser not found for '.$version->dir, amos_cli_logger::LEVEL_WARNING);\n continue;\n }\n $packinfo = unserialize(file_get_contents($packinfofile));\n ksort($packinfo);\n\n $this->rebuild_languages_md5($version, $packinfo);\n $this->rebuild_index_php($version, $packinfo);\n $this->rebuild_index_tablehtml($version, $packinfo);\n }\n }", "title": "" }, { "docid": "9fc6d1e44b1c120dcafac2404b751a7d", "score": "0.5102927", "text": "public function parseToFile()\n\t{\n\t\tSpoonFile::setContent($this->compileDirectory .'/'. $this->getCompileName($this->template), $this->getContent());\n\t}", "title": "" }, { "docid": "7dfb4432dbbd981af46630f3c08edbfd", "score": "0.51013565", "text": "function writeFile() {\n // debug. Uncomment to get a fresh file list\n // $this->freshclean();\n\n $data = serialize($this->fileindex);\n $fopen = fopen('scanner-logs/scannerfiles.txt', 'w+');\n fwrite($fopen, $data);\n fclose($fopen);\n }", "title": "" }, { "docid": "8144b1af4fe92a04e9d54d014a236160", "score": "0.5098439", "text": "public function run(){\n \n // map files and directories\n // _mapFilesAndDirectories()\n $this->_mapFilesAndDirectories();\n // rename directories\n // _renameDirectories\n $this->_renameDirectories();\n \n // rename folder names with version where new files will be created\n $this->_renameFilesFolderVersion();\n \n // create new directories\n // createNewDirectories\n $this->_createNewDirectories(); \n \n \n // minify files and write them to their new location\n $this->_minify();\n \n \n \n }", "title": "" }, { "docid": "350cfdf1b12e069ccfda4eb5dfdf7732", "score": "0.50974184", "text": "protected function buildContent() {\n\t\treturn '';\n\t}", "title": "" }, { "docid": "2161a788ba7a61b9e530ba797d3ba459", "score": "0.5096688", "text": "function writeFiles()\n{\n\n // read the storage\n $output = store(0, 0, array(), true);\n\n // iterate through the files and merge the information for the same strings\n foreach ($output as $file => $content) {\n // the original created separate .pot files for each source file\n // that containted over 11 strings, we've dropped this rule\n //if (count($content) <= 11 && $file != 'general') {\n if ($file != 'general') {\n @$output['general'][1] = array_unique(array_merge($output['general'][1], $content[1]));\n if (!isset($output['general'][0])) {\n $output['general'][0] = $content[0];\n }\n unset($content[0]);\n unset($content[1]);\n foreach ($content as $msgid) {\n $output['general'][] = $msgid;\n }\n unset($output[$file]);\n }\n }\n\n // create the POT file\n foreach ($output as $file => $content) {\n\n $tmp = preg_replace('<[/]?([a-z]*/)*>', '', $file);\n $tmp = preg_replace('/^\\.+/', '', $tmp);\n $file = str_replace('.', '-', $tmp) . '.pot';\n $filelist = $content[1];\n unset($content[1]);\n\n // source file and version information (from the Id tags)\n //if (count($filelist) > 1) {\n // $filelist = \"Generated from files:\\n# \" . join(\"\\n# \", $filelist);\n //} elseif (count($filelist) == 1) {\n // $filelist = \"Generated from file: \" . join(\"\", $filelist);\n //} else {\n // $filelist = \"No version information was available in the source files.\";\n //}\n\n // writing the final POT to the proper file(s) / STDOUT\n //$fp = fopen($file, 'w');\n fwrite(STDOUT, str_replace(\"--VERSIONS--\", $filelist, join(\"\", $content)));\n //fclose($fp);\n\n }\n\n}", "title": "" }, { "docid": "a11d18b292b1a03588543162fd4dfb99", "score": "0.5077315", "text": "protected function formatFile()\n {\n foreach ($this->cases as $key => $value) {\n $lines = file($this->file, FILE_IGNORE_NEW_LINES);\n $lines[2] = $this->namespace;\n $lines[8] = $this->getClassName($key, $lines[8]);\n $functions = implode(PHP_EOL, Arr::pluck($value['function'], 'code'));\n $content = array_merge(array_slice($lines, 0, 10) , [$functions] , array_slice($lines, 11));\n \n $this->writeToFile($key . 'Test', $content);\n }\n }", "title": "" }, { "docid": "4a8ac2c1ad4cb1e7a7002df4e6df957a", "score": "0.50725865", "text": "protected function buildAssets()\n {\n $this->io->section(\"Building assets for production\");\n\n $this->io->writeln(\"> <comment>npm run uf-bundle-build</comment>\");\n passthru(\"npm run uf-bundle-build --prefix \" . $this->buildPath);\n\n $this->io->writeln(\"> <comment>npm run uf-bundle</comment>\");\n passthru(\"npm run uf-bundle --prefix \" . $this->buildPath);\n\n $this->io->writeln(\"> <comment>npm run uf-bundle-clean</comment>\");\n passthru(\"npm run uf-bundle-clean --prefix \" . $this->buildPath);\n }", "title": "" }, { "docid": "684cad503607d057699089dcf30000b3", "score": "0.50693554", "text": "protected function _mkfile()\n\t{\n\t\tif (empty($_GET['current']) \n\t\t|| false == ($dir = $this->_findDir(trim($_GET['current'])))) {\n\t\t\treturn $this->_result['error'] = 'Invalid parameters';\n\t\t} \n\t\t$this->_logContext['file'] = $dir.DIRECTORY_SEPARATOR.$_GET['name'];\n\t\tif (!$this->_isAllowed($dir, 'write')) {\n\t\t\t$this->_result['error'] = 'Access denied';\n\t\t} elseif (false == ($name = $this->_checkName($_GET['name'])) ) {\n\t\t\t$this->_result['error'] = 'Invalid name';\n\t\t} elseif (file_exists($dir.DIRECTORY_SEPARATOR.$name)) {\n\t\t\t$this->_result['error'] = 'File or folder with the same name already exists';\n\t\t} else {\n\t\t\t$f = $dir.DIRECTORY_SEPARATOR.$name;\n\t\t\t$this->_logContext['file'] = $f;\n\t\t\tif (false != ($fp = @fopen($f, 'wb'))) {\n\t\t\t\tfwrite($fp, \"\");\n\t\t\t\tfclose($fp);\n\t\t\t\t$this->_result['select'] = array($this->_hash($dir.DIRECTORY_SEPARATOR.$name));\n\t\t\t\t$this->_content($dir);\n\t\t\t} else {\n\t\t\t\t$this->_result['error'] = 'Unable to create file';\n\t\t\t}\n\t\t} \n\t}", "title": "" }, { "docid": "fc54327f0f388a1680098137d3ca786e", "score": "0.50648177", "text": "public function build()\n {\n $this->bootBuildTime();\n\n foreach ($this->builder as $builder) {\n $builder->build($this->objects);\n }\n }", "title": "" }, { "docid": "8289c82508ab3538bad7c491a0a6fae1", "score": "0.50581056", "text": "public function build()\n {\n SchemaTasks::dropAndCreate($this->table)\n ->column('id', ['int', 'not null', 'auto_increment'])\n ->column('title', ['varchar(48)', 'not null'])\n ->column('alias', ['varchar(100)', 'not null', 'unique'])\n ->column('description', ['varchar(255)', 'not null'])\n ->column('accesslevels_id', ['int', 'not null'])\n ->column('permissions', ['text', 'null'])\n ->primary('id')\n ->build();\n }", "title": "" }, { "docid": "82224ebb15bd09554efddd327b13c95f", "score": "0.50535566", "text": "public function build()\n {\n // build each field in the form definition\n foreach ($this->config->getFields() as $name => $field) {\n if ($fieldObj = FieldFactory::make($name, $field, $this->getValue($name))) {\n $this->fields[] = $fieldObj;\n }\n }\n }", "title": "" }, { "docid": "c24b19f0c66ffbf2697a4925391270dc", "score": "0.505336", "text": "protected function buildFileName()\n {\n $version = $this->argument('version');\n if ($version === 'latest') {\n // TODO : find a way to retrieve the latest version number released (github tags ?)\n return 'latest.zip';\n } else {\n $version = \"modx-{$version}\";\n }\n if ($this->option('advanced')) {\n $version .= '-advanced';\n } elseif ($this->option('sdk')) {\n $version .= '-sdk';\n }\n\n return $version .'.zip';\n }", "title": "" }, { "docid": "cc283c575cbe9f9a5ff6a0fd6e47b05c", "score": "0.50486135", "text": "public function gifBuild() {\n\t\tif ($this->setup) {\n\t\t\t$gifFileName = $this->fileName('GB/');\t// Relative to PATH_site\n\t\t\tif (!file_exists($gifFileName))\t{\t\t// File exists\n\n\t\t\t\t\t// Create temporary directory if not done:\n\t\t\t\t$this->createTempSubDir('GB/');\n\n\t\t\t\t\t// Create file:\n\t\t\t\t$this->make($gifFileName);\n\t\t\t}\n\t\t\treturn $gifFileName;\n\t\t}\n\t}", "title": "" }, { "docid": "9665a8dd125731bf67f3ee217878a27f", "score": "0.5038137", "text": "public function createMainJsFile()\n {\n $from = [\n '[_PROJECT_NAME_]',\n '[_AUTHOR_]',\n '[_IMPORTS_]'\n ];\n\n $to = [\n $this->projectName,\n $this->author,\n $this->getMainImportsString()\n ];\n\n $destinationPath = $this->projectSourcePath . 'js/main.js';\n $template = file_get_contents(__DIR__ . '/templates/' . 'main.js');\n $code = str_replace($from, $to, $template);\n file_put_contents($destinationPath, $code);\n }", "title": "" }, { "docid": "b5eb44b18c9838f8a7d29f52c796a8ef", "score": "0.50332826", "text": "public function buildAction ()\r\n\t{\r\n\t\t// init phpdoc enviornment\r\n\t\t$phpdocBin = realpath(__COMM_LIB_DIR . '/Phpdoc/phpdoc');\r\n\t\tif (!$phpdocBin) die('Phpdoc exe file can not be found.');\r\n\t\t$phpdocBin = 'php ' . $phpdocBin;\r\n\t\t\r\n\t\t// building api document\r\n\t\techo \"\\n\\n>>> Start building api document ...\\n\\n\";\r\n\t\t$docThemeApi = 'HTML:frames:default.api';\r\n\t\t$docTitleApi = 'Demos Apis Documentation';\r\n\t\t$targetDirApi = __DOC_DIR . '/doc-api';\r\n\t\t$sourceDirApi = __LIB_PATH_SERVER;\r\n\t\t$command = \"$phpdocBin -o $docThemeApi -ti '$docTitleApi' -t $targetDirApi -d $sourceDirApi\";\r\n\t\techo $this->exec($command);\r\n\t\t\r\n\t\t// building lib document\r\n\t\techo \"\\n\\n>>> Start building lib document ...\\n\\n\";\r\n\t\t$docThemeLib = 'HTML:frames:default.lib';\r\n\t\t$docTitleLib = 'Demos Libs Documentation';\r\n\t\t$targetDirLib = __DOC_DIR . '/doc-lib';\r\n\t\t$sourceDirLib = __LIB_DIR;\r\n\t\t$command = \"$phpdocBin -o $docThemeLib -ti '$docTitleLib' -t $targetDirLib -i *Service.php -d $sourceDirLib\";\r\n\t\techo $this->exec($command);\r\n\t}", "title": "" }, { "docid": "d20ae056bce105340cebcf870562d979", "score": "0.50250417", "text": "protected function makeFilename() {\n return getcwd() . '/cscart_' . md5(time() . uniqid()) . '.zip';\n }", "title": "" }, { "docid": "61ed40ad51eb437203235b90aeb365f5", "score": "0.50241375", "text": "public function publicBuild()\n {\n $this->build();\n }", "title": "" }, { "docid": "5721264960c45471fbba66184f251322", "score": "0.50233626", "text": "public function createFile()\n\t{\n\t\t$request = Slim::getInstance()->request();\n\t\t$body = $request->post(\"content\");\n\n\t\t$tmpname = ilUtil::ilTempnam();\n\t\t$path = $this->getPath().'/'.basename($tmpname);\n\n\t\t$this->writeToFile($body, $path);\n\t\t$return = basename($tmpname);\n\n\t\t$GLOBALS['ilLog']->write(__METHOD__.' Writing to path '.$path);\n\n\t\tSlim::getInstance()->response()->header('Content-Type', 'application/json');\n\t\tSlim::getInstance()->response()->body($return);\n\t}", "title": "" }, { "docid": "773e5a61a59b93812d4584fbf020666d", "score": "0.5022391", "text": "function generateZipArchive() {\n\t\t$files = $this->dirToArray( self::$pluginDirectory );\n\t\t$this->buildFlatFile( $files );\n\n\t\t//check and create base directory if needed\n\t\t$upload_dir = wp_upload_dir();\n\t\t$base_dir = $upload_dir['basedir'] . '/bp-generator/';\n\t\t$base_url = $upload_dir['baseurl'] . '/bp-generator/';\n\t\t$time = time();\n\t\t$zipname = $base_dir . $_POST['plugin_file_slug'] . '-' . $time . '.zip';\n\t\t$zipurl = $base_url . $_POST['plugin_file_slug'] . '-' . $time . '.zip';\n\t\tif ( ! is_dir( $base_dir ) ) {\n\t\t\tmkdir( $base_dir, 0755 );\n\t\t}\n\n\t\t$search = [\n\t\t\t'a2 Plugin Blueprint',\n\t\t\t'a2PluginBlueprint',\n\t\t\t'a2-plugin-blueprint',\n\t\t\t'0.1.0',\n\t\t\t'https://github.com/asquaredstudio/a2PluginBlueprint',\n\t\t\t'WordPress plugin template',\n\t\t\t'(a)squaredstudio',\n\t\t\t'https://asquaredstudio.com'\n\t\t];\n\n\t\t$replace = [\n\t\t\t$_POST['plugin_label'],\n\t\t\t$_POST['plugin_namespace'],\n\t\t\t$_POST['plugin_file_slug'],\n\t\t\t$_POST['plugin_version'],\n\t\t\t$_POST['plugin_url'],\n\t\t\t$_POST['plugin_description'],\n\t\t\t$_POST['plugin_author'],\n\t\t\t$_POST['plugin_author_url'],\n\t\t];\n\n\t\t// Create a new zip archive\n\t\t$zip = new \\ZipArchive();\n\t\t$zip->open( $zipname, \\ZipArchive::CREATE );\n\n\n\t\t// Loop through all the results and create the new zip\n\t\tforeach ( $this->flatFileList as $node ) {\n\t\t\tswitch ( $node['type'] ) {\n\t\t\t\tcase 'directory':\n\t\t\t\t\t$dirname = str_replace( self::$pluginDirectory, '', $node['value'] );\n\t\t\t\t\t$zip->addEmptyDir( $dirname );\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'file':\n\t\t\t\t\t$contents = str_replace( $search, $replace, file_get_contents( $node['value'] ) );\n\t\t\t\t\t$file = str_replace( self::$pluginDirectory, '', $node['value'] );\n\t\t\t\t\t$file = str_replace( $search, $replace, $file );\n\t\t\t\t\t$zip->addFromString( $file, $contents );\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t$zip->close();\n\t\t$result['url'] = $zipurl;\n\t\t$result['type'] = 'success';\n\t\techo json_encode( $result );\n\t\tdie();\n\t}", "title": "" }, { "docid": "5e8d1d24dbe50ab1e5e593c80536eac2", "score": "0.5022096", "text": "public function build($package)\n {\n\n $this->Package = $package;\n\n DUP_Log::Info(\"\\n********************************************************************************\");\n DUP_Log::Info(\"MAKE INSTALLER:\");\n DUP_Log::Info(\"********************************************************************************\");\n DUP_Log::Info(\"Build Start\");\n\n $template_uniqid = uniqid('').'_'.time();\n $template_path = DUP_Util::safePath(DUPLICATOR_SSDIR_PATH_TMP.\"/installer.template_{$template_uniqid}.php\");\n $main_path = DUP_Util::safePath(DUPLICATOR_PLUGIN_PATH.'installer/build/main.installer.php');\n @chmod($template_path, 0777);\n @chmod($main_path, 0777);\n\n @touch($template_path);\n $main_data = file_get_contents(\"{$main_path}\");\n $template_result = file_put_contents($template_path, $main_data);\n if ($main_data === false || $template_result == false) {\n $err_info = \"These files may have permission issues. Please validate that PHP has read/write access.\\n\";\n $err_info .= \"Main Installer: '{$main_path}' \\nTemplate Installer: '$template_path'\";\n DUP_Log::Error(\"Install builder failed to generate files.\", \"{$err_info}\");\n }\n\n $embeded_files = array(\n \"assets/inc.libs.css.php\"\t\t\t\t=> \"@@INC.LIBS.CSS.PHP@@\",\n \"assets/inc.css.php\"\t\t\t\t\t=> \"@@INC.CSS.PHP@@\",\n \"assets/inc.libs.js.php\"\t\t\t\t=> \"@@INC.LIBS.JS.PHP@@\",\n \"assets/inc.js.php\"\t\t\t\t\t\t=> \"@@INC.JS.PHP@@\",\n \"classes/utilities/class.u.php\"\t\t\t=> \"@@CLASS.U.PHP@@\",\n \"classes/class.server.php\"\t\t\t\t=> \"@@CLASS.SERVER.PHP@@\",\n \"classes/class.db.php\"\t\t\t\t\t=> \"@@CLASS.DB.PHP@@\",\n \"classes/class.logging.php\"\t\t\t\t=> \"@@CLASS.LOGGING.PHP@@\",\n \"classes/class.engine.php\"\t\t\t\t=> \"@@CLASS.ENGINE.PHP@@\",\n\t\t\t\"classes/class.http.php\"\t\t\t\t=> \"@@CLASS.HTTP.PHP@@\",\n \"classes/config/class.conf.wp.php\"\t\t=> \"@@CLASS.CONF.WP.PHP@@\",\n \"classes/config/class.conf.srv.php\"\t\t=> \"@@CLASS.CONF.SRV.PHP@@\",\n\t\t\t\"classes/class.password.php\"\t\t\t=> \"@@CLASS.PASSWORD.PHP@@\",\n\t\t\t\"ctrls/ctrl.step1.php\"\t\t\t\t\t=> \"@@CTRL.STEP1.PHP@@\",\n \"ctrls/ctrl.step2.php\"\t\t\t\t\t=> \"@@CTRL.STEP2.PHP@@\",\n \"ctrls/ctrl.step3.php\"\t\t\t\t\t=> \"@@CTRL.STEP3.PHP@@\",\n\t\t\t\"view.init1.php\"\t\t\t\t\t\t=> \"@@VIEW.INIT1.PHP@@\",\n \"view.step1.php\"\t\t\t\t\t\t=> \"@@VIEW.STEP1.PHP@@\",\n \"view.step2.php\"\t\t\t\t\t\t=> \"@@VIEW.STEP2.PHP@@\",\n \"view.step3.php\"\t\t\t\t\t\t=> \"@@VIEW.STEP3.PHP@@\",\n \"view.step4.php\"\t\t\t\t\t\t=> \"@@VIEW.STEP4.PHP@@\",\n \"view.help.php\"\t\t\t\t\t\t\t=> \"@@VIEW.HELP.PHP@@\",);\n\n foreach ($embeded_files as $name => $token) {\n $file_path = DUPLICATOR_PLUGIN_PATH.\"installer/build/{$name}\";\n @chmod($file_path, 0777);\n\n $search_data = @file_get_contents($template_path);\n $insert_data = @file_get_contents($file_path);\n file_put_contents($template_path, str_replace(\"${token}\", \"{$insert_data}\", $search_data));\n if ($search_data === false || $insert_data == false) {\n DUP_Log::Error(\"Installer generation failed at {$token}.\");\n }\n @chmod($file_path, 0644);\n }\n\n @chmod($template_path, 0644);\n @chmod($main_path, 0644);\n\n DUP_Log::Info(\"Build Finished\");\n $this->createFromTemplate($template_path);\n $storePath = \"{$this->Package->StorePath}/{$this->File}\";\n $this->Size = @filesize($storePath);\n $this->addBackup();\n }", "title": "" }, { "docid": "26cca230eae5e6479c98acfbfcddac5b", "score": "0.50199664", "text": "function makeMainModelFile()\n {\n $modelFile = $this->getLocation().DIRECTORY_SEPARATOR.'Generated'.DIRECTORY_SEPARATOR.$this->_namespace.'.php';\n $modelData = $this->getParsedTplContents('model_class.tpl');\n\n if (!file_put_contents($modelFile, $modelData)) {\n die('Error: could not write model file '.$modelFile);\n }\n }", "title": "" }, { "docid": "f0f3bc76404fda4fe493d5f8243ef911", "score": "0.5018265", "text": "function AdminMapBuildBody()\n\t{\t$this->DirList();\n\t\t$this->SubDirList();\n\t}", "title": "" }, { "docid": "95a35e14449ac07449b8c7a495fcd36a", "score": "0.50089025", "text": "public function generate()\n {\n $this->createFolders();\n $this->copyFiles();\n $this->renderTemplates();\n }", "title": "" }, { "docid": "511269318f71282ebd625c9209334d28", "score": "0.5000382", "text": "public function build() {\n\t\t$this->validateRequirements();\n\t\t$this->sourceConverter = $this->sourceConverter ?: $this->getDefaultSourceConverter();\n\t\t$this->targetConverter = $this->targetConverter ?: $this->getDefaultTargetConverter();\n\n\t\t// Only wrap the source iterator in a changed files iterator if we are not forcing the transfers\n\t\tif ( ! $this->forcing ) {\n\t\t\t$this->sourceIterator->rewind();\n\t\t\t$this->sourceIterator = new S3_Uploads_ChangedFilesIterator(\n\t\t\t\tnew \\NoRewindIterator( $this->sourceIterator ),\n\t\t\t\t$this->getTargetIterator(),\n\t\t\t\t$this->sourceConverter,\n\t\t\t\t$this->targetConverter\n\t\t\t);\n\t\t\t$this->sourceIterator->dry_run = $this->dry_run;\n\t\t\t$this->sourceIterator->rewind();\n\t\t}\n\n\t\t$sync = $this->specificBuild();\n\n\t\tif ( $this->params ) {\n\t\t\t$this->addCustomParamListener( $sync );\n\t\t}\n\n\t\tif ( $this->debug ) {\n\t\t\t$this->addDebugListener( $sync, is_bool( $this->debug ) ? STDOUT : $this->debug );\n\t\t}\n\n\t\treturn $sync;\n\t}", "title": "" }, { "docid": "0407ed92977b66b072fe1b60fc0e3bf7", "score": "0.49938384", "text": "public function create_all() {\n if (!$this->split_createfile_) { //clean sigle file\n @unlink($this->outputpath_.'struct.h');\n @unlink($this->outputpath_.'struct.cc');\n }\n if ($this->tablename_) {\n $this->create_structfile(); //struct\n $this->create_db_datafile(); //data\n }\n else { //from db\n $tables = $this->get_tables();\n if (is_array($tables)) {\n foreach ($tables as $k => $table) {\n $this->create_structfile($table); //struct\n $this->create_db_datafile($table); //data\n }\n }\n }\n }", "title": "" }, { "docid": "be294066e4b4b0c4be082fbb79eba5d9", "score": "0.49864233", "text": "protected function build()\n {\n if (!empty($this->builder)) {\n $this->builder->build();\n }\n }", "title": "" }, { "docid": "960c97f6e27c96e7b46745a0dd6ba368", "score": "0.49795312", "text": "public function build( )\n {\n\n $id = $this->getId();\n $resizeable = $this->resizable\n ? ' resizable=\"resizable\" ' : '';\n $movable = $this->movable\n ? ' movable=\"movable\" ' : '';\n $planet = $this->planet\n ? ' planet=\"'.$this->planet.'\" ' : '';\n\n $editAble = $this->editAble\n ? '' : ' editable=\"false\" ';\n\n $title = $this->title\n ? '<title>'.$this->title.'</title>':'';\n $subtitle = $this->subtitle\n ? '<subtitle>'.$this->subtitle.'</subtitle>':'';\n $statusBar = $this->statusBar\n ? '<status>'.$this->statusBar.'</status>':'';\n\n $events = '';\n if( $this->events )\n {\n $events = '<events>';\n\n foreach( $this->events as $type => $subEvents )\n {\n foreach( $subEvents as $name => $code )\n {\n $events .= '<event type=\"'.$type.'\" name=\"'.$name.'\" ><![CDATA['.$code.']]></event>'.NL;\n }\n }\n\n $events .= '</events>';\n }\n\n $bookmark = $this->bookmark\n ? '<bookmark title=\"'.$this->bookmark['title'].'\" url=\"'.urlencode($this->bookmark['url']).'\" role=\"'.$this->bookmark['role'].'\" />'\n : '';\n\n\n\n $buttons = $this->buildButtons();\n $content = $this->includeTemplate( $this->template );\n\n $jsCode = '';\n if( $this->jsCode )\n {\n\n $this->assembledJsCode = '';\n\n foreach( $this->jsCode as $jsCode )\n {\n if( is_object($jsCode) )\n $this->assembledJsCode .= $jsCode->getJsCode();\n else\n $this->assembledJsCode .= $jsCode;\n }\n\n $jsCode = '<script><![CDATA['.NL.$this->assembledJsCode.']]></script>'.NL;\n }\n\n\n return <<<CODE\n\n <window $resizeable $movable id=\"{$id}\" {$planet} {$editAble} >\n <dimensions width=\"{$this->width}\" height=\"{$this->height}\" min-width=\"{$this->minWidth}\" min-height=\"{$this->minHeight}\" />\n {$title}\n {$subtitle}\n {$statusBar}\n {$buttons}\n {$bookmark}\n {$events}\n <content><![CDATA[{$content}]]></content>\n {$jsCode}\n </window>\n\nCODE;\n\n }", "title": "" }, { "docid": "e935817bde0f2f4dd5b1f233579b7d2f", "score": "0.49773604", "text": "public function create_db_datafile($tablename = null) {\n //now this version(1.0) this template code look is not intuition, \n //next version i need fix it(use eof template).\n $result = true;\n $headinfo = '';\n $sourceinfo = '';\n $headfile = '';\n $sourcefile = '';\n $classname = '';\n $tablename = $tablename ? $tablename : $this->tablename_;\n if (empty($tablename)) return false;\n $fields = $this->get_fields($tablename); //this records will be use in next\n $_fields = array();\n foreach ($fields as $k => $field) {\n array_push($_fields, $field['name']);\n }\n if (!is_array($_fields)) return false;\n if (!is_array($_fields) || count($_fields) < 0) return false;\n $classname = ucwords($tablename);\n if (!empty($this->tableprefix_))\n $real_tablename = str_replace($this->tableprefix_, '', $tablename);\n $headfile = $real_tablename.'.h'; //filename is the tablename, not upper words\n $sourcefile = $real_tablename.'.cc';\n @unlink($this->outputpath_.$headfile);\n @unlink($this->outputpath_.$sourcefile);\n $classname = str_replace('_', ' ', $real_tablename); //class real name\n $classname = str_replace(' ', '', ucwords($classname));\n $modlename = strtolower($classname);\n $datestr = strftime('%Y-%m-%d %H:%M:%S');\n $headnote =\n<<<EOF\n/**\n * PAP Engine ( https://github.com/viticm/pap )\n * \\$Id global_data.h\n * @link https://github.com/viticm/pap for the canonical source repository\n * @copyright Copyright (c) 2013-2013 viticm( viticm@126.com )\n * @license\n * @user viticm<viticm@126.com>(by tools auto code)\n * @date $datestr\n * @uses the server database $modlename data for database class\n */\nEOF;\n//eof string need like this, no indent\n $headinfo .= $headnote.LF;\n $headinfo .= '#ifndef PAP_SERVER_COMMON_DB_'\n .strtoupper($real_tablename).'_H_'.LF;\n $headinfo .= '#define PAP_SERVER_COMMON_DB_'\n .strtoupper($real_tablename).'_H_'.LF.LF;\n \n $headinfo .= '#include \"server/common/db/data/config.h\"'.LF;\n $headinfo .= '#include \"server/common/db/system.h\"'.LF.LF;\n \n //some define for code\n $public = LF.' public:'.LF;\n $private = LF.' public:'.LF;\n $protected = LF.' protected:'.LF;\n $fourspace = ' '; //use in source functions\n $threespace = ' '; //use in class \n $twospace = ' ';\n \n $functionenter = '__ENTER_FUNCTION'.LF;\n $functionleave = '__LEAVE_FUNCTION'.LF;\n \n $headinfo .= 'namespace pap_server_common_db {'.LF;\n $headinfo .= LF.'namespace data {'.LF;\n $headinfo .= LF.'class '.$classname.' {'.LF;\n \n $headinfo .= $public; //construct and desctruct\n $headinfo .= $threespace.$classname.'(ODBCInterface* odbc_interface);'.LF;\n $headinfo .= $threespace.'~'.$classname.'();'.LF;\n \n $headinfo .= $public; //variables and virtual functions\n $charactertable = dict\\db\\is_charactertable($tablename);\n if ($charactertable) {\n $headinfo .= $threespace.'uint32_t character_guid_;'.LF;\n $headinfo .= $threespace.'uint32_t dbversion_;'.LF;\n }\n $headinfo .= $threespace.'virtual bool load();'.LF;\n $headinfo .= $threespace.'virtual bool save(void* source);'.LF;\n $headinfo .= $threespace.'virtual bool _delete();'.LF;\n $headinfo .= $threespace.'virtual bool parse_result(void* result);'.LF;\n \n if ($charactertable) { //character table use functions\n $headinfo .= $public;\n $headinfo .= $threespace.'void set_characterguid(uint32_t id);'.LF;\n $headinfo .= $threespace.'uint32_t get_characterguid();'.LF;\n $headinfo .= $threespace.'void set_dbversion(uint32_t id);'.LF;\n $headinfo .= $threespace.'uint32_t get_dbversion();'.LF;\n }\n $headinfo .= LF.'}'.LF; //class end\n $headinfo .= LF.'}; //namespace data'.LF;\n $headinfo .= LF.'}; //namespace pap_server_common_db';\n \n $headinfo .= LF.'#endif //PAP_SERVER_COMMON_DB_'\n .strtoupper($classname).'_H_';\n \n $sourceinfo .= '#include \"server/common/db/data/'.$headfile.'\"'.LF;\n $sourceinfo .= LF.'namespace pap_server_common_db {'.LF;\n $sourceinfo .= LF.'namespace data {'.LF;\n $sourceinfo .= LF.$classname.'::'.$classname.\n '(ODBCInterface* odbc_interface) {'.LF; //construct\n $sourceinfo .= $twospace.$functionenter;\n $sourceinfo .= $fourspace.'db_type_ = kCharacterDatabase;'.LF;\n $sourceinfo .= $fourspace.'result_ = false;'.LF;\n $sourceinfo .= $fourspace.'result_count_ = 0;'.LF;\n if ($charactertable) {\n $sourceinfo .= $fourspace.'character_guid = 0;'.LF;\n $sourceinfo .= $fourspace.'db_version_ = 0;'.LF;\n }\n $sourceinfo .= $fourspace.'Assert(odbc_interface);'.LF;\n $sourceinfo .= $fourspace.'odbc_interface_ = odbc_interface;'.LF;\n $sourceinfo .= $twospace.$functionleave;\n $sourceinfo .= '}'.LF;\n \n $sourceinfo .= LF; //destruct\n $sourceinfo .= $classname.'::~'.$classname.'() {'.LF;\n $sourceinfo .= $twospace.'//do nothing'.LF;\n $sourceinfo .= '}'.LF;\n \n $sourceinfo .= LF; //load start\n $sourceinfo .= 'bool '.$classname.'::load() {'.LF;\n $sourceinfo .= $twospace.$functionenter;\n $sourceinfo .= $fourspace.'bool result = true;'.LF;\n $sourceinfo .= $fourspace.'db_query_t* query = get_internal_query();'.LF;\n $sourceinfo .= $fourspace.'if (!query) Assert(false);'.LF;\n $sourceinfo .= $fourspace.'query->clear();'.LF;\n \n //-- sql template\n $sql_template_headfile = 'sql_template.h';\n $sql_template_sourcefile = 'sql_template.cc';\n $sql_template_headinfo = '';\n $sql_template_sourceinfo = '';\n //load select, delete --, update --, save update, add instert\n $sql_template_headinfo .= '//-- table '.$tablename.LF;\n $sql_template_headinfo .= 'extern const char* kLoad'.$classname.';'.LF;\n $sql_template_headinfo .= 'extern const char* kDelete'.$classname.';'.LF;\n $sql_template_headinfo .= 'extern const char* kUpdate'.$classname.';'.LF;\n $sql_template_headinfo .= 'extern const char* kAdd'.$classname.';'.LF;\n $sql_template_headinfo .= 'extern const char* kSave'.$classname.';'.LF;\n $sql_template_headinfo .= '//table '.$tablename.' --'.LF;\n $sql_template_headinfo .= LF; //wrap\n \n $sql_template_sourceinfo .= '//-- table '.$tablename.LF;\n //在这里生成mysql的模板\n if ($charactertable) {\n $sourceinfo .= $fourspace\n .'if (INVALID_ID == character_guid_) return false;'.LF;\n $sql_template_sourceinfo .= 'const char* kLoad'.$classname.' = '.LF\n .$fourspace\n .'\"SELECT '.implode($_fields, ',').'FROM `'\n .$tablename.'` WHERE `character_guid` = %d'\n .' AND `dbversion` = %d\";'.LF;\n $sql_template_sourceinfo .= 'const char* kDelete'.$classname.' = '.LF\n .$fourspace\n .'\"DELETE FROM `'.$tablename.'`\";'\n .'WHERE `character_guid` = %d'\n .'AND `dbversion` = %d\";'.LF;\n }\n else {\n $sql_template_sourceinfo .= 'const char* kLoad'.$classname.' = '.LF\n .$fourspace\n .'\"SELECT * FROM `'.$tablename.'`\";'.LF;\n $sql_template_sourceinfo .= 'const char* kDelete'.$classname.' = '.LF\n .$fourspace\n .'\"\";'.LF;\n }\n\n $sql_template_sourceinfo .= 'const char* kUpdate'.$classname.' = '.LF\n .$fourspace\n .'\"\"'.LF;\n $insert_sql = $this->get_instertstr($tablename, $fields);\n $sql_template_sourceinfo .= 'const char* kAdd'.$classname.' = '.LF\n .$fourspace\n .'\"'.$insert_sql.'\";'.LF;\n $sql_template_sourceinfo .= 'const char* kSave'.$classname.' = \"\";'.LF;\n $sql_template_sourceinfo .= '//table '.$tablename.' --'.LF;\n file_put_contents($this->outputpath_.$sql_template_headfile, \n $sql_template_headinfo,\n FILE_APPEND);\n file_put_contents($this->outputpath_.$sql_template_sourcefile,\n $sql_template_sourceinfo,\n FILE_APPEND);\n //sql template --\n if ($charactertable) {\n $sourceinfo .= $fourspace.'query->parse(kLoad'.$classname\n .', character_guid_, dbversion_);'.LF;\n }\n else {\n $sourceinfo .= $fourspace.'query->parse(kLoad'.$classname.');'.LF;\n }\n $sourceinfo .= $fourspace.'result = System::load();'.LF;\n $sourceinfo .= $fourspace.'return result;'.LF;\n $sourceinfo .= $twospace.$functionleave;\n $sourceinfo .= '}'.LF; //load is end\n\n function format_enum($a) {\n $result = '';\n $result = str_replace('_', ' ', $a);\n $result = 'k'.str_replace(' ', '', ucwords($result));\n return $result;\n }; //function for get format enum name by field\n $enum_fields = $_fields; //next i will chage it\n $enum_fields = array_map('format_enum', $enum_fields);\n $enum_fields[0] = $enum_fields[0].' = 1'; //enum first item\n $enum_str = implode($enum_fields, ','.LF.$fourspace.$twospace).LF;\n $sourceinfo .= LF; //save\n $sourceinfo .= 'bool '.$classname.'::save(void* source) {'.LF;\n $sourceinfo .= $twospace.$functionenter;\n $sourceinfo .= $fourspace.'bool result = true;'.LF;\n $sourceinfo .= $fourspace.'Assert(source);'.LF;\n $sourceinfo .= $fourspace.'enum {'.LF; \n $sourceinfo .= $fourspace.$twospace.$enum_str;\n $sourceinfo .= $fourspace.'};'.LF;\n $sourceinfo .= $fourspace.'return result;'.LF;\n $sourceinfo .= $twospace.$functionleave;\n $sourceinfo .= $fourspace.'return false;'.LF;\n $sourceinfo .= '}'.LF; //save\n \n $sourceinfo .= LF; //_delete\n $sourceinfo .= 'bool '.$classname.'::_delete() {'.LF; \n $sourceinfo .= $twospace.$functionenter;\n $sourceinfo .= $fourspace.'bool result = true;'.LF;\n $sourceinfo .= $fourspace.'db_query_t* query = get_internal_query();'.LF;\n $sourceinfo .= $fourspace.'if (!query) Assert(false);'.LF;\n $sourceinfo .= $fourspace.'query->clear();'.LF;\n if ($charactertable){\n $sourceinfo .= $fourspace.'if (!character_guid_) return false;'.LF;\n $sourceinfo .= $fourspace.'query->parse(kDelete'.$tablename.', \"'\n .$tablename.'\", character_guid_, dbversion_);'.LF;\n }\n// $sourceinfo .= $fourspace.'result = System::_delete();'.LF;\n $sourceinfo .= $fourspace.'return result;'.LF;\n $sourceinfo .= $twospace.$functionleave;\n $sourceinfo .= '}'.LF; //_delete\n\n $sourceinfo .= LF; //parse_result\n $sourceinfo .= 'bool '.$classname.'::parse_result(void* source) {'.LF;\n $sourceinfo .= $twospace.$functionenter;\n $sourceinfo .= $fourspace.'bool result = true;'.LF;\n $sourceinfo .= $fourspace.'Assert(source);'.LF;\n $sourceinfo .= $fourspace.'enum {'.LF; \n $sourceinfo .= $fourspace.$twospace.$enum_str;\n $sourceinfo .= $fourspace.'};'.LF;\n $sourceinfo .= $fourspace.'return result;'.LF;\n $sourceinfo .= $twospace.$functionleave;\n $sourceinfo .= $fourspace.'return false;'.LF;\n $sourceinfo .= '}'.LF; //parse_result\n \n if ($charactertable) {\n $sourceinfo .= LF; //set_character_guid\n $sourceinfo .= 'void '.$classname.'::set_character_guid(uint32_t id) {'\n .LF;\n $sourceinfo .= $twospace.$functionenter;\n $sourceinfo .= $fourspace.'character_guid_ = id;'.LF;\n $sourceinfo .= $twospace.$functionleave;\n $sourceinfo .= '}'.LF; //set_character_guid\n \n $sourceinfo .= LF; //get_character_guid\n $sourceinfo .= 'uint32 '.$classname.'::get_character_guid() {'.LF;\n $sourceinfo .= $twospace.$functionenter;\n $sourceinfo .= $fourspace.'return character_guid_;'.LF;\n $sourceinfo .= $twospace.$functionleave;\n $sourceinfo .= $fourspace.'return 0;'.LF;\n $sourceinfo .= '}'.LF; //get_character_guid\n \n $sourceinfo .= LF; //set_dbversion\n $sourceinfo .= 'void '.$classname.'::set_dbversion(uint32_t id) {'.LF;\n $sourceinfo .= $twospace.$functionenter;\n $sourceinfo .= $fourspace.'dbversion_ = id;'.LF;\n $sourceinfo .= $twospace.$functionleave;\n $sourceinfo .= '}'.LF; //set_dbversion\n \n $sourceinfo .= LF; //get_dbversion\n $sourceinfo .= 'uint32 '.$classname.'::get_dbversion() {'.LF;\n $sourceinfo .= $twospace.$functionenter;\n $sourceinfo .= $fourspace.'return dbversion_;'.LF;\n $sourceinfo .= $twospace.$functionleave;\n $sourceinfo .= $fourspace.'return 0;'.LF;\n $sourceinfo .= '}'.LF; //get_dbversion\n }\n \n $sourceinfo .= LF.'} //namespace data'.LF;\n $sourceinfo .= LF.'} //namespace pap_server_common_db';\n file_put_contents($this->outputpath_.$headfile, $headinfo, FILE_APPEND);\n file_put_contents($this->outputpath_.$sourcefile, $sourceinfo, FILE_APPEND);\n return $result;\n }", "title": "" }, { "docid": "c3120a1cbcf248f5220b8ad47c10e7ef", "score": "0.4973789", "text": "private function convertInputFile(): string\n {\n // Split the content in an array on new line \"\\n\"\n $contentLines = explode(\"\\n\", $this->content);\n\n $class = [];\n $classNames = [];\n foreach ($contentLines as $line) {\n // We exclude blank line\n if ($line == '') {\n continue;\n }\n\n // We got a new class\n if (strpos($line, '{')) {\n // The class name is the line content without bracket\n $classNames[] = str_replace(' {', '', $line);\n continue;\n }\n\n // If end of class definition => remove last class name\n if (strpos($line, '}') !== false) {\n array_pop($classNames);\n continue;\n }\n\n $class[implode(' ', $classNames)][] = $line;\n }\n\n // We generate the new content with the array of class\n $newContent = '';\n foreach ($class as $key => $classItem) {\n $newContent .= \"\\n\" . $key . \" { \\n\" . implode(\"\\n\", $classItem) . \"\\n}\";\n }\n\n $pathInfo = pathinfo($this->filePath);\n $newFilePath = $pathInfo['dirname'] . '/' . $pathInfo['filename'] . '-compiled.css';\n File::put($newFilePath, $newContent);\n\n Log::info('New file generated : ' . $newFilePath);\n return $newFilePath;\n }", "title": "" }, { "docid": "f51db484607462e158614fb36a566a33", "score": "0.49528494", "text": "function create_file() {\n global $docs;\n @file_put_contents(\n MAIN_DIR.DIR.\"tools\".DIR.\"api_docs.txt\",\n $docs\n );\n echo fix($docs);\n }", "title": "" }, { "docid": "df8a6be9424c72fdba8c3d102ce86db6", "score": "0.4937844", "text": "function createDoneFile() {\n file_put_contents($this -> fileDone, \" \");\n }", "title": "" }, { "docid": "40945d15831f7dd94e02eced2acda7cd", "score": "0.49342537", "text": "public function build() {\n\n\t\t/* Names\n\t\t */\n\t\t$controllerName = $this->getControllerName();\n\t\t$methodName = $this->getControllerMethod();\n\n\t\t$viewName = $this->getViewName();\n\t\t$viewMethod = $this->getViewMethod();\n\n\t\t/* Create and execute controller and view methods\n\t\t */\n\t\t$controller = new $controllerName($this->getRouter()->getRequest());\n\n\t\tif (method_exists($controller, $methodName)) {\n\t\t\t$controller->setData($controller->$methodName());\n\t\t}\n\n\t\t/* Set up view\n\t\t */\n\t\t$view = new $viewName($controller->getData(), $this->getTemplate());\n\n\t\tif (method_exists($view, $viewMethod)) {\n\t\t\t$view->$viewMethod();\n\t\t}\n\n\t\t$this->setView($view);\n\t}", "title": "" }, { "docid": "a9c3bb974cd54fd5d96d755bab642e50", "score": "0.4930606", "text": "public function transformToFile() {}", "title": "" } ]
ae344c5c8c31beff5f2d16b4e031a9db
URL for display webpage
[ { "docid": "b0bc2dfea2d347e4801612d8ac4a4490", "score": "0.0", "text": "function getPageUrl(){\n\n\t\t$url = UserInfoUtil::getSitePublishURL();\n\t\t$pageUrl = $this->page->page->getUri();\n\n\t\t$url .= $pageUrl;\n\n\t\t//Add \"/\" to string end.\n\t\tif($this->page instanceof CMSBlogPage OR $this->page instanceof CMSMobilePage ){\n\t\t\t$arguments = implode(\"/\",$this->page->arguments);\n\t\t\tif(strlen($pageUrl) >0 && strlen($arguments) >0) $url .= \"/\" . $arguments;\n\t\t}\n\n\t\treturn $url;\n\t}", "title": "" } ]
[ { "docid": "85ec31c1cdb6fdf3e154abf0ceea63e1", "score": "0.7170705", "text": "function getDisplayUrl() {\n\t}", "title": "" }, { "docid": "31ac8df36b2f1f4a303894a02c9baf66", "score": "0.71007216", "text": "public function display() {\r\n\r\n if ($this->isurl()) {\r\n\r\n $m1 = $this->conf['t'];\r\n $m2 = $this->conf['c'];\r\n\r\n $u = $this->geturli();\r\n $t = $this->gettime();\r\n $c = self::codeinfo();\r\n\r\n echo '<h1>'.$u.'</h1>';\r\n echo '<h1>'.$m1.$t.'</h1>';\r\n echo '<h1>'.$m2.$c.'</h1>';\r\n\r\n }\r\n\r\n else {\r\n\r\n echo $this->conf['404'];\r\n\r\n }\r\n\r\n return;\r\n\r\n }", "title": "" }, { "docid": "39b38e151f5cc36867629a96a0121959", "score": "0.698614", "text": "abstract public function url();", "title": "" }, { "docid": "fe1a2e46b2722bfb13f2ae5be5c3916d", "score": "0.68775976", "text": "public function view_url() {\n global $CFG;\n return $CFG->wwwroot . '/mod/quiz/view.php?id=' . $this->cm->id;\n }", "title": "" }, { "docid": "9ef185d03fdbcc4a6e5bac9dbe3f58c9", "score": "0.6861939", "text": "public function url();", "title": "" }, { "docid": "d42506c9ac41817b6e93665fd33fc6a4", "score": "0.67576975", "text": "public function getURL();", "title": "" }, { "docid": "afa4b210c96d6335b00d8f322c4ed1fb", "score": "0.6713353", "text": "public static function url()\n {\n }", "title": "" }, { "docid": "6d84f7ce87bd8394afe8ef9e5f2deef8", "score": "0.6656273", "text": "public function url()\n\t{\n\t\treturn to( $this->full_url );\n\t}", "title": "" }, { "docid": "18f7578f4a2d077e891600172f93e59a", "score": "0.65787506", "text": "public function main() {\n\t\theader('Content-type: text/plain; charset=iso-8859-1');\n\t\tif ($this->pageId) {\n\t\t\t$this->createTSFE();\n\n\t\t\t$cObj = GeneralUtility::makeInstance('tslib_cObj');\n\n\t\t\t/* @var $cObj \\TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer */\n\t\t\t$typoLinkConfiguration = array(\n\t\t\t\t'parameter' => $this->pageId,\n\t\t\t\t'useCacheHash' => $this->parameters != '',\n\t\t\t);\n\t\t\tif ($this->parameters) {\n\t\t\t\t$typoLinkConfiguration['additionalParams'] = $this->parameters;\n\t\t\t}\n\t\t\t$url = $cObj->typoLink_URL($typoLinkConfiguration);\n\t\t\tif ($url == '') {\n\t\t\t\t$url = '/';\n\t\t\t}\n\t\t\t$parts = parse_url($url);\n\t\t\tif ($parts['host'] == '') {\n\t\t\t\t$url = GeneralUtility::locationHeaderUrl($url);\n\t\t\t}\n\t\t\techo $url;\n\t\t}\n\t}", "title": "" }, { "docid": "df835230078e67ccbcf21899e2010f6d", "score": "0.6549062", "text": "public function url()\n {\n return $this->make_url();\n }", "title": "" }, { "docid": "3102ba8a5a51aac3147775fd141ba339", "score": "0.6511287", "text": "public function GetUrl() {\n\t\t$fn = function_exists( 'network_admin_url' ) ? 'network_admin_url' : 'admin_url';\n\t\treturn $fn( 'admin.php?page=' . $this->GetSafeViewName() );\n\t}", "title": "" }, { "docid": "2d97b75fb4739b35813c5431ec5dd383", "score": "0.6507017", "text": "public function getUrl();", "title": "" }, { "docid": "2d97b75fb4739b35813c5431ec5dd383", "score": "0.6507017", "text": "public function getUrl();", "title": "" }, { "docid": "2d97b75fb4739b35813c5431ec5dd383", "score": "0.6507017", "text": "public function getUrl();", "title": "" }, { "docid": "2d97b75fb4739b35813c5431ec5dd383", "score": "0.6507017", "text": "public function getUrl();", "title": "" }, { "docid": "2d97b75fb4739b35813c5431ec5dd383", "score": "0.6507017", "text": "public function getUrl();", "title": "" }, { "docid": "2d97b75fb4739b35813c5431ec5dd383", "score": "0.6507017", "text": "public function getUrl();", "title": "" }, { "docid": "2d97b75fb4739b35813c5431ec5dd383", "score": "0.6507017", "text": "public function getUrl();", "title": "" }, { "docid": "8d1ef4bc4c6f18523cc1f67c471db0aa", "score": "0.6478313", "text": "function sb_display_url() {\n\tglobal $wpdb, $post, $sb_display_url;\n\tif ($sb_display_url == '') {\n\t\t$pageid = sb_get_page_id();\n\t\tif ($pageid == 0)\n\t\t\treturn '';\n\t\tif (defined('SB_AJAX') && SB_AJAX)\n\t\t\treturn site_url().'/?page_id='.$pageid; // Don't use permalinks in Ajax calls\n\t\telse {\n\t\t\t$sb_display_url = get_permalink($pageid);\n\t\t\tif ($sb_display_url == site_url() || $sb_display_url == '') // Hack to force true permalink even if page used for front page.\n\t\t\t\t$sb_display_url = site_url().'/?page_id='.$pageid;\n\t\t\t}\n\t}\n\treturn $sb_display_url;\n}", "title": "" }, { "docid": "46905c80f1db56c5a5430f809977ac0c", "score": "0.6467993", "text": "function main_url(){\n return \"http://\".$this->imdbsite.\"/title/tt\".$this->imdbid().\"/\";\n }", "title": "" }, { "docid": "48f3556ec1a43ec071a8fe9a0817dfdf", "score": "0.6456462", "text": "function cwFullViewURL($reqCode) {\n\tglobal $cwHttpHost;\n\treturn 'http://'. $cwHttpHost . cwViewURLPath($reqCode);\n}", "title": "" }, { "docid": "81bc50b7ef00568c1e52a60ca1e3cf8d", "score": "0.64527994", "text": "public function get_url() {\n $params = array(\n 's' => 'trk',\n 'action' => 'view',\n 'id' => $this->_instanceid\n );\n return new \\moodle_url('/local/elisprogram/index.php', $params);\n }", "title": "" }, { "docid": "7ade31a5b586ea2f29c61825ec764950", "score": "0.6440342", "text": "public function getUrl()\n {\n return 'index.php?p=single&id=' . $this->id;\n }", "title": "" }, { "docid": "a21f75f621622887ad316149017f6832", "score": "0.64327615", "text": "function url($path)\n\t{\n\t\t//$app = Application::getInstance();\n\t\treturn app()->url->link($path);\n\t}", "title": "" }, { "docid": "9da1382c0a92a58b00b778870695d01c", "score": "0.64256644", "text": "public function url()\n {\n return '/' . $this->frontName;\n }", "title": "" }, { "docid": "961a37bd117d5f4a21a4aae81111cd3e", "score": "0.64170253", "text": "public function displayPage(){\n $content_type = isset($this->_responseInfo['content_type'])?$this->_responseInfo['content_type']:'text/html';\n header('Content-type: ' .$content_type);\n if($this->_webpage) {\n echo $this->_webpage;\n } else {\n echo '';\n }\n }", "title": "" }, { "docid": "d40295ff4a6957d9cad0303670a723e3", "score": "0.63896424", "text": "public function getViewURL()\n {\n return 'http://' . $_SERVER['SERVER_NAME'] . '/me/' . $this->getPublicID();\n }", "title": "" }, { "docid": "10aa85d64737312e3dec06310c7a11d1", "score": "0.6382491", "text": "public function getViewUrl()\n\t{\n\t\treturn ($this->url != 'home') ? urldecode(Yii::app()->createUrl($this->url)).'.html' : Yii::app()->createUrl('site/index');\n\t}", "title": "" }, { "docid": "dc4f915fea9b0a106dd4c04405e257d0", "score": "0.63584673", "text": "protected abstract function getUrl();", "title": "" }, { "docid": "4eacf393175f40e5ce8c9b72d96ed6f4", "score": "0.6353018", "text": "function get_url(): string {\r\n return sprintf('%s/%s', $this->vol->get_url(), $this->get_num());\r\n }", "title": "" }, { "docid": "d0d102a20cd8de93c3ebf6387176ee38", "score": "0.63449925", "text": "public function getDistUrl();", "title": "" }, { "docid": "9a9eb6fd14a4ee9cfe08011f32f97842", "score": "0.6334188", "text": "public function getUrlPrint(){\n\t\treturn $this->createUrl('pemesananObatAlkesAM/print');\n\t}", "title": "" }, { "docid": "6832b44101ea00296bc50b690a3456b8", "score": "0.6332349", "text": "function cwViewURLPath($reqName) {\n\tglobal $cwSubDom, $wgScript, $ChosenLangList, $cwHttpHost;\n//flLog(\"cwViewURLPath($reqName), cwSubDom=$cwSubDom, wgScript=$wgScript\");\n\t$reqCode = titleToCode($reqName);\n\t\n\tif ($cwSubDom) {\n\t\t// cwSubDom set in LocalSettings if we have a proper cw. domain.\n\t\t$u = '/++'. $reqCode;\n\t}\n\telse {\n\t\n\t\t// next time they'll be in the correct domain with the right syntax\n\t\t$u = \"http://$cwHttpHost/++$reqCode\";\n\t\t\n\t\n\t\n\t\t// obsolet i think\n\t\t//$u = $wgScript .\"?title=View&ch=\". $reqCode;\n\t\t// if ($ChosenLangList)\n\t\t//\t$u .= '&langs='. $ChosenLangList;\n\t}\n\tif ($ChosenLangList)\n\t\t$u .= '/'. $ChosenLangList;\n\t//flLog(\"cwViewURLPath url=`$u`\");\n\treturn $u;\n}", "title": "" }, { "docid": "44f586fd307a675f2b551c6c13819dc5", "score": "0.6319419", "text": "function getDisplayUrl( $pContentId=NULL ) {\r\n\t\tglobal $gBitSystem;\r\n\t\tif( empty( $pContentId ) ) {\r\n\t\t\t$pContentId = $this->mContentId;\r\n\t\t}\r\n\r\n\t\treturn IRLIST_PKG_URL.'index.php?content_id='.$pContentId;\r\n\t}", "title": "" }, { "docid": "fd6c88807126a2c128a032e727a6da73", "score": "0.63012207", "text": "abstract public function urlTemplate();", "title": "" }, { "docid": "2b684a75cbbbd19736bbe2c7a43db2b1", "score": "0.62727773", "text": "public function url()\n {\n $base_url = $this->request->base_url();\n $sessionUuidName = $this->get_sessionUuidName();\n return \"{$base_url}/{$sessionUuidName}\";\n }", "title": "" }, { "docid": "846d6cc2f0bf3cef50ceb8472e038dce", "score": "0.62691534", "text": "abstract protected function getUrl();", "title": "" }, { "docid": "846d6cc2f0bf3cef50ceb8472e038dce", "score": "0.62691534", "text": "abstract protected function getUrl();", "title": "" }, { "docid": "8982385e0ca59d4549915e16f1713dd2", "score": "0.62685853", "text": "public function url() {\n\t\t$url = $this->do_filter( 'opengraph/url', esc_url( Paper::get()->get_canonical() ) );\n\t\t$this->tag( 'og:url', $url );\n\t}", "title": "" }, { "docid": "98f93e83bcec06f3bb37a518b5cf9797", "score": "0.62662077", "text": "public static function display()\n\t{\n\t\tswitch (\\Baskets\\Tools\\Tracker::$uri[2])\n\t\t{\n\t\t\tcase 'list':\n\t\t\t\tself::lister();\n\t\t\t\tbreak;\n\t\t\tcase 'add':\n\t\t\t\tself::add();\n\t\t\t\tbreak;\n\t\t\tcase 'part':\n\t\t\t\tself::part();\n\t\t\t\tbreak;\n\t\t\tcase 'old':\n\t\t\t\tself::old();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tFramework::$newurl = 'parts/list';\n\t\t\t\tself::lister();\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "da95b6915674d6a302058cfbc3d29d9c", "score": "0.62508136", "text": "function getUrl();", "title": "" }, { "docid": "da95b6915674d6a302058cfbc3d29d9c", "score": "0.62508136", "text": "function getUrl();", "title": "" }, { "docid": "7f5fd6b26eb7de8376536b3a4dfd9ae7", "score": "0.6248798", "text": "public static function url(){\n\t\trequire_once 'app/controller/A_controller.php';\n\t\trequire_once 'core/class/auth.class.php';\n\t\tinclude 'core/class/db.class.php';\n\t\t\n\t\tif (!empty($_GET['page']) && is_file('app/view/'.$_GET['page'].'.php'))\n\t\t{\n\t include 'app/view/includes/header.php';\n\t if (is_file('app/controller/'.$_GET['page'].'.php')) {\n\t \tinclude 'app/controller/'.$_GET['page'].'.php';\n\t }\n\t \tinclude 'app/view/'.$_GET['page'].'.php';\n\t\t\t}\n\t\t\telse{\n\t\t include 'app/view/includes/header.php';\n\t\t include 'app/view/index.php';\n\t\t\t}\n\t}", "title": "" }, { "docid": "609d7f016bd7f13562503e180eeebc70", "score": "0.6240651", "text": "public function get_url() {\n\t\treturn 'http://code.google.com/p/wordpress-custom-content-type-manager/wiki/Directory';\n\t}", "title": "" }, { "docid": "144deaafe6a467338bfe6c2a8fdfc853", "score": "0.62119675", "text": "function getURL() {\n\t return 'http://budts.be/weblog/';\n\t}", "title": "" }, { "docid": "aa7ef5544ef5893b54d464fc94ab6915", "score": "0.621005", "text": "public function instanceUrl();", "title": "" }, { "docid": "239ef50bd855d2e14275d369d47d6ad8", "score": "0.6207797", "text": "public function url() {\n $uri = $this->uri();\n return url($uri['path'], $uri);\n }", "title": "" }, { "docid": "aec04f925fd87bb09a877ae775e5562c", "score": "0.6180166", "text": "public function url($uri=\"\"){\n return site_url($this->uri($uri));\n }", "title": "" }, { "docid": "7dfa1eab095863e016e9b7d032a28c07", "score": "0.61685634", "text": "function getURLView(){return \"/su-kien/\".$this->getKey();}", "title": "" }, { "docid": "4b03be36815d4e5a13c70ecdf62740b1", "score": "0.61624753", "text": "public function url() {\n\t\tglobal $afurl;\n\t\treturn $afurl(['event', $this->event_name]);\n\t}", "title": "" }, { "docid": "246af71ff966bc80b095c1335be4659d", "score": "0.61518353", "text": "public function index()\n {\n $this->locate($this->createLink('issue', 'browse'));\n }", "title": "" }, { "docid": "5fc06b4806afaa032250aa19318721b3", "score": "0.61363137", "text": "public function getUrl()\n {\n return 'index.php?p=posts.show&id=' . $this->id;\n }", "title": "" }, { "docid": "fcf2ced22f46782c0d3475fa2688e251", "score": "0.6123838", "text": "public function getActionUrl();", "title": "" }, { "docid": "d73c76ecb5e63cb062e05f2afccdaf47", "score": "0.6120881", "text": "public function slides_url() {\n\t\techo esc_url( $this->slides_url );\n\t}", "title": "" }, { "docid": "b555eb641ac09d35949bad52bc2c3c0d", "score": "0.6119014", "text": "public function getUrlPu();", "title": "" }, { "docid": "23c1e1645ea65d620232ef5c68171ffc", "score": "0.6114299", "text": "public function viewLink()\n {\n return app('html')->link(\n implode(\n '/',\n array_filter(\n [\n 'admin',\n 'files',\n 'browser',\n $this->object->getDisk()->getSlug(),\n $this->object->path()\n ]\n )\n ),\n $this->object->getName()\n );\n }", "title": "" }, { "docid": "87c7d209aad2ea804eda09ede239d029", "score": "0.6108967", "text": "public function httpUrl() {\n\t\treturn str_replace($this->pagefile->url(), $this->url(), $this->pagefile->httpUrl());\n\t}", "title": "" }, { "docid": "981d972f7b2d1d5f4b7a5c306986e231", "score": "0.61061007", "text": "public function index()\r\n\t{\r\n\t\tshow_404();\r\n\t\t//echo $this->config->item('mpesa_url');\r\n\t}", "title": "" }, { "docid": "178b0c7e889ab2040b3427f0447b01cd", "score": "0.6086925", "text": "public function url()\n {\n return $this->getUrl();\n }", "title": "" }, { "docid": "a6468256137fcda14f74e461d48deae9", "score": "0.6086326", "text": "public function url()\n\t{\n\t\treturn Url::to($this->slug);\n\t}", "title": "" }, { "docid": "2a3d038af34fe09ae3f2dd43eec7cc90", "score": "0.60749644", "text": "function showReferralPage(){\n\t\t$this->getEngine()->assign('doReferralUri', $this->getController()->buildUriPath(accountController::ACTION_DO_REFERRAL));\n\t\t$this->render($this->getTpl('referral'));\n\t}", "title": "" }, { "docid": "52ae5b691892a023211757f0db265d62", "score": "0.6072406", "text": "public function getCustomizedUrl()\r\n\t{\r\n\t\treturn View::make('urshrt.example.customized-url');\r\n\t}", "title": "" }, { "docid": "1e067f1de8c18d68df681873ca5a4e20", "score": "0.60701764", "text": "public static function link($url){ \r\n return SITE_PATH.$url;\r\n }", "title": "" }, { "docid": "26cbcbac9a4d85c6e2780108b8725a13", "score": "0.6067422", "text": "private function _getUrl()\n {\n return 'http://www.bet365.com/home/mainpage.asp?rn=358572546';\n }", "title": "" }, { "docid": "f1669b33d1d3801c966f0adc134fcf09", "score": "0.6048968", "text": "function urlDisplay(string $url, bool $scheme = true, int $limit = null)\n {\n return Url::display($url, $scheme, $limit);\n }", "title": "" }, { "docid": "7f6d5f4bf6b2884abdf8ebf3f02b1c0d", "score": "0.60425", "text": "public function url(){\r\n \t\treturn $this->url;\r\n \t}", "title": "" }, { "docid": "3a562b187ae3b02b88e14d6a324b2240", "score": "0.60409206", "text": "public function getFoundUrl();", "title": "" }, { "docid": "6ce39229b3d8d08db8a8327c424bc738", "score": "0.60393614", "text": "function getURL () {\n\t\t$project = $this->getProjectCode();\n\t\t$url = $project->getMainEntryPointURL();\n\t\t$url .= \"?title=\";\n\t\tif ($this->namespace > 0) {\n\t\t\t$url .= $project->getNamespaceCanonicalName($this->namespace);\n\t\t\t$url .= ':';\n\t\t}\n\t\t$url .= $this->getNormalizedTitle();\n\n\t\treturn $url;\n\t}", "title": "" }, { "docid": "b67a8b3a81635de572cc7f22f1c3bfd5", "score": "0.60346496", "text": "public function getURL()\n {\n return Context::genModuleURL($this->module, $this->route, $this->mode);\n }", "title": "" }, { "docid": "a94c15b2ca370766c0203c18327b3315", "score": "0.6032172", "text": "public function getPublicUrl()\n {\n $fileNameAndPath = str_replace(PATH_site, '', $this->getFileWithAbsolutePath());\n return '/' . ltrim($fileNameAndPath, '/');\n }", "title": "" }, { "docid": "a6a4389d24e628688216f4f0ecfbcfca", "score": "0.60207725", "text": "abstract public function getURL(): string;", "title": "" }, { "docid": "ccdc6a0c10029210b24bf007608fadf7", "score": "0.60145414", "text": "function getURL() {\t\t\n\tglobal $ZP;\n\n\t$URL = NULL;\n\n\tfor($i = 0; $i <= segments() - 1; $i++) {\n\t\tif($i === (segments() - 1)) {\n\t\t\t$URL .= segment($i); \t\n\t\t} else {\n\t\t\t$URL .= segment($i) .\"/\";\n\t\t}\n\t}\n\t\n\t$URL = get(\"webBase\") .\"/$URL\";\n\t\n\treturn $URL;\n}", "title": "" }, { "docid": "f42d01822f555c354b61b44131e7fecc", "score": "0.60035706", "text": "public function getUrl(){\n $this->logImpression();\n\n return \"/mms/visit/\" . $this->id;\n }", "title": "" }, { "docid": "5305d7a22451ab2ff85cf2f0d5168fcc", "score": "0.60023874", "text": "public function getUrl(): string;", "title": "" }, { "docid": "a44ae567f11af1805ee106389441cb41", "score": "0.59980404", "text": "function make_url($riverName, $url) {\n if ($url != null) {\n return '<a target=\"blank\" href=\"' . $url . '\">' . $riverName . '</a><br>';\n } //else {die;}\n }", "title": "" }, { "docid": "597cbe556b895afb0a454c3a79d6ed58", "score": "0.5991784", "text": "public static function ruta(){\r\n\t\treturn \"http://localhost/www/hackathon/html/\";\r\n\t}", "title": "" }, { "docid": "a572cd976960d6af735fe0539010ac7a", "score": "0.59899354", "text": "public function downloadPermalink();", "title": "" }, { "docid": "e1695a7d1fc5f3c27c213c6ab9b08c65", "score": "0.597592", "text": "public function href() {\n $get = $this->buildUri();\n return 'index.php?'.$get;\n }", "title": "" }, { "docid": "554520638f582349cbabd7210fdd7353", "score": "0.5962308", "text": "function do_html_URL($url, $name) {\n?>\n <br><a href=\"<?php echo $url;?>\"><?php echo $name;?></a><br>\n<?php\n}", "title": "" }, { "docid": "3db3908784270ff320c3f591dc147e0a", "score": "0.59535325", "text": "public function show_page() {\n header(\"Location: https://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}?page=login\");\n exit();\n }", "title": "" }, { "docid": "ce868489bb3a6e0d01d366b73234ef78", "score": "0.595352", "text": "public function getDisplayAsLink();", "title": "" }, { "docid": "8f25547e75b4a671b09674358fcbecb6", "score": "0.59530914", "text": "function results_link($test_code, $token)\n {\n $config =& get_config();\n if (isset($config['ls_base_url'])) {\n $link = $config['ls_base_url'] . 'c/' . $test_code . '/' . $token . '/home';\n } else {\n $link = base_url() . 'c/' . $test_code . '/' . $token . '/home';\n }\n return anchor($link, $link, 'target=\"_blank\"');\n }", "title": "" }, { "docid": "2d456d3439971160185903e49dd3bf91", "score": "0.59501636", "text": "public function siteUrl($uri){\n\t \n\t $alamat = $this->folder.'index.php/'.$uri;\n\t return $alamat;\n }", "title": "" }, { "docid": "93ae12a135d2ea779aa3e0fc2d628682", "score": "0.5942654", "text": "public function getStartupPageUrl();", "title": "" }, { "docid": "cc18071664c99d8d49932d334e8bcd7e", "score": "0.59426045", "text": "public function index()\n {\n //\n return view('http://34.87.86.224:4004/read/n01/40/');\n }", "title": "" }, { "docid": "b96541509d61543818ed97395beb14c5", "score": "0.5942578", "text": "private function getUrl()\n {\n // Protocol\n $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? \"https://\" : \"http://\";\n // Get url, without / on the end\n self::$url_root = $protocol . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']);\n // Remove last / from url\n if (substr(self::$url_root, -1) == '/') {\n // Set new url\n self::$url_root = substr(self::$url_root, 0, -1);\n }\n // Set url with public, without / on the end\n self::$url_public = self::$url_root . '/public';\n }", "title": "" }, { "docid": "feb66fbb2646c2867a9c5c1f82730a1a", "score": "0.59420747", "text": "public function getURL()\n {\n return $this->page->getURL() . 'marks/' . $this->page_mark->id . '/';\n }", "title": "" }, { "docid": "d75580c7c41a1297e462e50b0820aa40", "score": "0.59410936", "text": "public function getUrl()\n {\n return '#';\n }", "title": "" }, { "docid": "d17287081a2d2adace2fb2c452681d9b", "score": "0.5940207", "text": "function site_url() {\n echo \"http://localhost/php-tutorial/\";\n}", "title": "" }, { "docid": "8aeb2f301455ccd85ea48c786327ff94", "score": "0.59357053", "text": "public function getURL() {\n return \"\";\n }", "title": "" }, { "docid": "61d13919dbdf3d922e5579d28853a63b", "score": "0.59347415", "text": "public static function url(){\n\t\t\treturn CFG::get('REL_K2F').'apps/'.get_class(self::instance()).'/';\n\t\t}", "title": "" }, { "docid": "6c49067320551530b7cb4dedd9307bec", "score": "0.59289175", "text": "function generateLink($controller, $action = NULL) {\n\t\tif($_SERVER[\"SERVER_PORT\"] != \"80\") {\n\t\t\t$pageURL = 'http://'.$_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER[\"REQUEST_URI\"];\n\t\t} else {\n\t\t\t$pageURL = $_SERVER[\"SERVER_NAME\"];\n\t\t}\n\t}", "title": "" }, { "docid": "d34fa784cba365447436f9d45787346f", "score": "0.5928769", "text": "public function url()\n {\n return parent::url().'home';\n }", "title": "" }, { "docid": "a59d08547f16a99649cc9f84f388f174", "score": "0.592864", "text": "function mgmt_uri($page = '')\n{\n\techo SYS_DOMAIN . \"/mgmt/\" . $page;\n}", "title": "" }, { "docid": "6c2f6470c1a47b5d4ed2e84dcebe2dac", "score": "0.592855", "text": "function returnHref() {\n switch ($this->typeID) {\n case 4: // supplemental pages\n Return 'sup.php?id=' . $this->url;\n break;\n default:\n Return $this->url;\n break;\n }\n }", "title": "" }, { "docid": "b5e337df2f49b68c9c8afa072ba8d4f5", "score": "0.5925294", "text": "function do_html_URL($url, $name) {\n?>\n <br /><a href=\"<?php echo $url;?>\"><?php echo $name;?></a><br />\n \n<?php\n}", "title": "" }, { "docid": "9181fb2e78d6a294c1574b1dd831c18d", "score": "0.5913794", "text": "function do_html_URL($url, $name) {\n?>\n <a href=\"<?php echo $url; ?>\"><?php echo $name; ?></a><br />\n<?php\n}", "title": "" }, { "docid": "77e51c563c83d65fcb33ee1bc351f8f7", "score": "0.591337", "text": "public function curPageURL() {\r\n\t\t$pageURL = 'http';\r\n\t\tif ($_SERVER[\"HTTPS\"] == \"on\") {$pageURL .= \"s\";}\r\n\t\t\t$pageURL .= \"://\";\r\n\t\tif ($_SERVER[\"SERVER_PORT\"] != \"80\") {\r\n\t\t\t//Trong truong hop chay cong 8080\r\n\t\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].\":8080\".$_SERVER[\"REQUEST_URI\"];\r\n\t\t} else {\r\n\t\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].\":8080\" . $_SERVER[\"REQUEST_URI\"];\r\n\t\t}\r\n\t\treturn $pageURL;\r\n\t}", "title": "" }, { "docid": "147a6b82d71b59b7b777a3a2accb73be", "score": "0.59075713", "text": "public function index(){\r\n $this->display();\r\n }", "title": "" }, { "docid": "332747e6294f8dea0ff57ee73d1d131c", "score": "0.59073037", "text": "public function printCurrentUrl()\n {\n echo $this->getSession()->getCurrentUrl();\n }", "title": "" }, { "docid": "c24169f849841f02e804922043340f93", "score": "0.59035295", "text": "function getPageUrl() {\r\n\t\t$url = 'http';\r\n\t\tif ($_SERVER[\"HTTPS\"] == \"on\") {$url .= \"s\";}\r\n\t\t$url .= \"://\";\r\n\r\n\t\tif ($_SERVER[\"SERVER_PORT\"] != \"80\") {\r\n\t\t\t$url .= $_SERVER[\"SERVER_NAME\"]. \":\". $_SERVER[\"SERVER_PORT\"]. $_SERVER[\"REQUEST_URI\"];\r\n\t\t} else {\r\n\t\t\t$url .= $_SERVER[\"SERVER_NAME\"].$_SERVER[\"REQUEST_URI\"];\r\n\t\t}\r\n\t\treturn $url;\r\n\t}", "title": "" } ]
59e70fd2247d34d2bbb948e717b5a90b
Returns the name of the analytics relation table.
[ { "docid": "935995ae2613f6113905ae60c0bad5fd", "score": "0.8306354", "text": "public static function getAnalyticsRelationTable(): string\n {\n return config('laravel-server-analytics.analytics_relation_table');\n }", "title": "" } ]
[ { "docid": "d0ba391180a36093deac60636b1f1d8c", "score": "0.7316164", "text": "protected function getJoinTable(): string\n {\n return \"{$this->define(SchemaInterface::TABLE)} AS {$this->getAlias()}\";\n }", "title": "" }, { "docid": "7572c892edbf7474993cf2853bcd0817", "score": "0.7246984", "text": "public function getRelationTableName()\n {\n if (!empty($this->relationTableName)) {\n return $this->relationTableName;\n }\n $relationTableName = 'tx_' . str_replace('_', '', $this->domainObject->getExtension()->getExtensionKey()) . '_';\n $relationTableName .= strtolower($this->domainObject->getName());\n\n if ($this->useExtendedRelationTableName) {\n $relationTableName .= '_' . strtolower($this->getName());\n }\n $relationTableName .= '_' . strtolower($this->getForeignModelName()) . '_mm';\n\n return $relationTableName;\n }", "title": "" }, { "docid": "0596731bd2b7bd0c8beaa36c87a0f47a", "score": "0.70497775", "text": "private function relationshipsTableName()\n {\n return config('follow.table_name');\n }", "title": "" }, { "docid": "e8edf8f81db3ec56dcfb390290741c3f", "score": "0.7003409", "text": "protected function getRelationTable(string $relation) : string\n {\n return $this->builder\n ->getModel()\n ->{$relation}()\n ->getRelated()\n ->getTable();\n }", "title": "" }, { "docid": "128f97db9f258514a8de9b437027a62e", "score": "0.6960124", "text": "public function getTableName(): string\n {\n return $this->table->getTableName();\n }", "title": "" }, { "docid": "599dd8cb66fe9bb9cb840d8fa4817340", "score": "0.6899865", "text": "function table_name() {\n\t\tif ($this->table) {\n\t\t\treturn $this->table;\n\t\t} else {\n\t\t\treturn $this->_get_type();\n\t\t}\n\n\t}", "title": "" }, { "docid": "40912b102f7629d85426156125fee90f", "score": "0.686678", "text": "public function get_table_name(){\n return $this->table_name();\n }", "title": "" }, { "docid": "36a2f2778cdab5c409f8d0c337b8e4ae", "score": "0.6846548", "text": "public function getForeignTable(): string\n {\n return $this->foreignTable;\n }", "title": "" }, { "docid": "bd4e41d39ec7406925a75fd95ab82db1", "score": "0.68299705", "text": "public static function getTableName()\n {\n return _DB_PREFIX_ . self::$definition['table'];\n }", "title": "" }, { "docid": "b6560bb11f69d04d908031754c2d7b36", "score": "0.68279904", "text": "protected function relationshipsTableName()\n {\n return config('blockable.table_name', 'block_relationships');\n }", "title": "" }, { "docid": "b2ade445eabcecd3755dc67d5379b935", "score": "0.6814664", "text": "public function getTableName()\n {\n return $this->__get(\"table_name\");\n }", "title": "" }, { "docid": "10b5dd0980b4b7be82dac5c50037dac9", "score": "0.67645454", "text": "function getTableFullName()\n {\n return implode(' ', [$this->table_prefix . $this->table_name, $this->table_alias]);\n }", "title": "" }, { "docid": "db13c168c861dc6f0a138a4238876c1f", "score": "0.6762901", "text": "public static function getTableName() {\r\n\t\t\r\n\t\treturn static::properties()->table->getName();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "525da33b525d4c2940080051636619c5", "score": "0.6752948", "text": "private static function getTableName() {\n global $wpdb;\n return $wpdb->prefix . self::$NOTIFICATION_TABLE_NAME;\n }", "title": "" }, { "docid": "5db38ea28d4a5f919a2139ed32700175", "score": "0.6720205", "text": "static public function get_table_name() {\n return static::$tableName;\n }", "title": "" }, { "docid": "18d371525e9a391fb584cc3665d54679", "score": "0.6707842", "text": "public static function table_name(): string {\n\t\tglobal $wpdb;\n\t\treturn $wpdb->prefix . 'sb_' . static::TABLE;\n\t}", "title": "" }, { "docid": "f258b834b402cd48b9af14d8a3290ef9", "score": "0.6706524", "text": "protected function getTableName(): string {\n return self::TABLE_NAME;\n }", "title": "" }, { "docid": "c9309b880cab105e877f375427291db1", "score": "0.6684499", "text": "public static function getAnalyticsMetaTable(): string\n {\n return config('laravel-server-analytics.analytics_meta_table');\n }", "title": "" }, { "docid": "df91289b36f9083f1368e4b3c503f661", "score": "0.6678016", "text": "public function table_name()\n {\n return $this->table_name;\n }", "title": "" }, { "docid": "8997ff257c14e92b6a6f213d2d2da739", "score": "0.6675157", "text": "public function getTableName(): string\n {\n return $this->getEntityDao()->getTableName();\n }", "title": "" }, { "docid": "3c4545338b071cdd0cc52fbbdf69eaeb", "score": "0.6668019", "text": "function expressions_graph_tablename() {\n\tglobal $wpdb;\n\treturn $wpdb->prefix . 'exp_graph_data';\n}", "title": "" }, { "docid": "63ceeb6d6b86c89d7c4fe4508a51730e", "score": "0.6662752", "text": "public static function getTableName()\n {\n return self::getDatabaseName() . '.' . self::NAME;\n }", "title": "" }, { "docid": "001cb7f8dc5aa71396fa5678a3cfb35a", "score": "0.66625947", "text": "private static function tableName() {\n global $wpdb;\n return $wpdb->prefix . self::SIMPLE_LOGIN_HISTORY_TABLE_NAME;\n }", "title": "" }, { "docid": "3c635eaff1cf4de4a18dddd37bc8c2d8", "score": "0.66581994", "text": "public function get_tablename() : string\n\t{\n\t\treturn (string)$this->table;\n\t}", "title": "" }, { "docid": "d00bd5d2da558454f3571303fd7c77e2", "score": "0.66410863", "text": "public function getDesiredName(): string\n {\n return '#join-' . ($this->foreignAlias ?? $this->foreignTable);\n }", "title": "" }, { "docid": "a0271646e95eaa65fd50c552422aa291", "score": "0.6631628", "text": "public function get_table_name()\r\n\t{\r\n\t\treturn $this->table_name;\r\n\t}", "title": "" }, { "docid": "e8f6a841aa709f8dd09afe7de06925a2", "score": "0.6626505", "text": "public function getTableName() : string\n {\n if ($this->tableName !== null) {\n return $this->tableName;\n }\n\n return $this->reflectionClass->getShortName();\n }", "title": "" }, { "docid": "0594fd1e574ede71a82d14f51fe9f533", "score": "0.6621549", "text": "protected function getTableName(): string\n {\n return (new $this->model)->getTable();\n }", "title": "" }, { "docid": "db53f27c8f5080f3c96d037081bc33a4", "score": "0.66149276", "text": "public function getTableName()\n {\n return $this->table_name;\n }", "title": "" }, { "docid": "b16927cdb34fa3670e4fc0ba82d94226", "score": "0.66062444", "text": "public static function getTableName()\n {\n return \"event_organisers\";\n }", "title": "" }, { "docid": "c4321c8cdeb43cc66c4c3a0b870e4074", "score": "0.6605832", "text": "public function getTableName()\n {\n return $this->parentTable->getName();\n }", "title": "" }, { "docid": "62c6ee38a5f5dbcfbe83749ff8253306", "score": "0.66040426", "text": "public function getForTableName(): string\n {\n if ($this->tableName === 'pages') {\n return 'pages_language_overlay';\n }\n return $this->tableName;\n }", "title": "" }, { "docid": "b6ea064312af184759259fba637e160f", "score": "0.6601499", "text": "public function getTableName()\r\n {\r\n return $this->table_name;\r\n }", "title": "" }, { "docid": "1e25bda8f4b7e937462ee5cf5c1ce0ad", "score": "0.65943414", "text": "public function getBaseTableName()\n {\n return $this->table->getName();\n }", "title": "" }, { "docid": "a88e781d8216e6a116576d03fa46af46", "score": "0.6594169", "text": "function getTableName()\r\n\t{\r\n\t\tif ( $this->table == null ) return (null );\r\n\t\treturn( $this->table->table_name());\r\n\t}", "title": "" }, { "docid": "05a8778e8cc3ac2fe3390e49c860a4cc", "score": "0.6585261", "text": "public function get_table_name() \n\t{\n\t\treturn $this->table_name;\n\t}", "title": "" }, { "docid": "285af95da2cc6d75eab4c8cd6dbec45d", "score": "0.65849394", "text": "public function getTableName()\n\t{\n\t\treturn 'stat_unique';\n\t}", "title": "" }, { "docid": "91f1dc771ad0cf818448a2f77ad5c91c", "score": "0.65735227", "text": "public static function getTableName()\n {\n return Str::snake(Str::pluralStudly(class_basename(get_called_class())));\n }", "title": "" }, { "docid": "16c7437f4933a05165e93c6a39dbdbaf", "score": "0.65711933", "text": "public function getTableName(): string\n {\n return $this->tableName;\n }", "title": "" }, { "docid": "16c7437f4933a05165e93c6a39dbdbaf", "score": "0.65711933", "text": "public function getTableName(): string\n {\n return $this->tableName;\n }", "title": "" }, { "docid": "58b381d8fa59e64d08f72927496a2899", "score": "0.6567831", "text": "public static function getTableName()\n\t{\n\t\treturn self::$table_name;\n\t}", "title": "" }, { "docid": "e076974e0c051b41d329ea577d167b1b", "score": "0.6567113", "text": "protected static function table_name(): mixed\n\t{\n\t\treturn self::$query->table_name;\n\t}", "title": "" }, { "docid": "c02d23f20a273844db4a2c4e48cfd61a", "score": "0.6565509", "text": "public function detailTableName() : string\n {\n return $this->detailTableName;\n }", "title": "" }, { "docid": "cb8cd5a2ab0b8d6aefd92776d0cafc5b", "score": "0.65547013", "text": "public function getTableName() {\n\t\t$table = strtolower(get_called_class());\n\t\tif ($table == 'person')\n\t\t\treturn 'people';\n\t\tswitch (substr($table, -1)) {\n\t\t\tcase 'y': return substr($table, 0, -1) . 'ies';\n\t\t\tcase 's': return $table . 'es';\n\t\t}\n\t\treturn $table . 's';\n\t}", "title": "" }, { "docid": "ab8179e40c3c16b35520cf5412dd017b", "score": "0.6547934", "text": "public function getTableName()\n {\n return $this::TABLE;\n }", "title": "" }, { "docid": "e0f01bcafdc7fdfbb226a786704bcf51", "score": "0.6527023", "text": "public function getTableName()\n {\n global $wpdb;\n return $wpdb->prefix . static::TABLE_NAME;\n }", "title": "" }, { "docid": "2025c8e1fdb3357b280239f82b23eb43", "score": "0.65257245", "text": "protected static function get_table_name() {\n return null;\n }", "title": "" }, { "docid": "142bbfda472ef7f8366a1530731cb483", "score": "0.6525027", "text": "public function getTableName()\n {\n return (string) $this->tableName;\n }", "title": "" }, { "docid": "8dd49bee707318b737deafdf4620c4d3", "score": "0.65138763", "text": "public function getTable(): string\n {\n return $this->prefix . $this->table;\n }", "title": "" }, { "docid": "ab437b2030f07c2099a7bf5392967ca3", "score": "0.6512885", "text": "function SqlTableName($table=\"\")\n {\n return $this->ApplicationObj->SqlEventTableName(\"Inscriptions\",$table);\n }", "title": "" }, { "docid": "886fd5e3537ad2fd6befaa638bde97d3", "score": "0.6504065", "text": "public function getTableName() {\n\t\treturn self::$TABLE_NAME;\n\t}", "title": "" }, { "docid": "065609174a8195c1903df5e3bb20e05b", "score": "0.65034735", "text": "public static function tableName()\n {\n $em = self::getEntityManager();\n return $em->getClassMetadata(static::className())->getTableName();\n }", "title": "" }, { "docid": "5e5903aa07de0422301ba40915c34e14", "score": "0.6500739", "text": "public function getTableName()\n {\n return $this->_name;\n }", "title": "" }, { "docid": "5e5903aa07de0422301ba40915c34e14", "score": "0.6500739", "text": "public function getTableName()\n {\n return $this->_name;\n }", "title": "" }, { "docid": "31a935e205860cfc05d99367eda86466", "score": "0.6497003", "text": "protected function getEventTypeTableName()\n {\n return $this->getGatewayCollection()\n ->getGateway('pt_event_type')\n ->getMetaData()\n ->getName(); \n \n }", "title": "" }, { "docid": "068d2af5c75bc509b1fd8133609e6671", "score": "0.6479678", "text": "public static function getTableName()\n {\n return self::getConfig()->get('scheme/tableName');\n }", "title": "" }, { "docid": "7a1c7c9d9eea5e1cb8a850b21be5d4c7", "score": "0.64784425", "text": "public function _tablename() {\n if (isset($this->_table) && !isNull($this->_table)) {\n return $this->_table;\n } else {\n return camel_case_to_underscore(get_class($this));\n }\n }", "title": "" }, { "docid": "71257f7c2fff1b72e8098cbb8dcd7749", "score": "0.6476137", "text": "public function tableName()\n\t{\n\t\treturn '{{'.$this->getTableName().'}}';\n\t}", "title": "" }, { "docid": "da4338740664784fdfc58eae417d7184", "score": "0.64756894", "text": "protected static function getTableName()\n {\n // by default we have tables in all lower case letters names after the unqualified model classes\n return strtolower(StringHelper::getNameWithoutNamespaces(get_called_class()));\n }", "title": "" }, { "docid": "a0e47416ad4fb0fa74f964f44c34f3b8", "score": "0.6465742", "text": "public function getTable()\n {\n if (isset($this->table)) {\n return $this->table;\n }\n\n return str_replace('\\\\', '', Str::snake(Str::plural(class_basename($this))));\n }", "title": "" }, { "docid": "d17a87a39aaf99903f146d223f1e912a", "score": "0.6465439", "text": "final public function __toString()\n {\n return $this->getTableName();\n }", "title": "" }, { "docid": "9bd9d42d52f385607277b3b7abaf089b", "score": "0.6463086", "text": "public function table_name();", "title": "" }, { "docid": "0faf9526b6d5fae99901b48c8e5fbd4e", "score": "0.64542127", "text": "public function getTable()\n {\n if (!isset($this->table)) {\n return $this->table = strtolower(plural(get_class($this)));\n }\n\n return $this->table;\n }", "title": "" }, { "docid": "1b05cfe19f1735e6e76cdafe8a664a2f", "score": "0.6448241", "text": "public static function getTableName()\n\t{\t\n\t\treturn self::$table_name;\n\t}", "title": "" }, { "docid": "9582031d66f62deef781fff50e8cfb54", "score": "0.6441549", "text": "public function getTableName() {\n\t\treturn 'wcf'.WCF_N.'_linklist_link';\n\t}", "title": "" }, { "docid": "71fe3faf22245d04c527d959837ad668", "score": "0.6437002", "text": "public function getTableName(): string\n {\n return $this->tableNames[0];\n }", "title": "" }, { "docid": "2af8451663844781d6e179bc0b13ab49", "score": "0.6416126", "text": "public function getRelationName()\n {\n return $this->relationName;\n }", "title": "" }, { "docid": "49faf1da981b1c9d4647d1031d24fbd7", "score": "0.64121544", "text": "public function getFromTableName(): string\n {\n if ($this->tableName === 'pages_language_overlay') {\n return 'pages';\n }\n return $this->tableName;\n }", "title": "" }, { "docid": "82b6085473440d39e5c114e9f0509e1f", "score": "0.641046", "text": "public function getTableName() {\n return $this->_table;\n }", "title": "" }, { "docid": "b4405a8f62687b205957a7f05678d737", "score": "0.6402742", "text": "public function getTableName() {\n return $this->table;\n }", "title": "" }, { "docid": "155e76f25aed62cd80aa1ce670a7c2e9", "score": "0.63969624", "text": "public static function TABLE_NAME(): string\n\t{\n\t\treturn (self::TABLE_NAME);\n\t}", "title": "" }, { "docid": "dd9863596631246cb54904a513f264a8", "score": "0.6391057", "text": "public function getTableName()\n {\n if (!isset($this->name)) {\n $this->name = static::uncamelcase(preg_replace('/^.+\\\\\\\\|Table$/i', '', get_class($this)));\n }\n \n return $this->name;\n }", "title": "" }, { "docid": "f21cf3eebcd957c158ad5e9fe8c533d9", "score": "0.6388406", "text": "public function getQualifiedName(): string\n {\n $this->needsToBeOwned();\n\n return $this->getMeta()->getTableName().'.'.$this->getNative();\n }", "title": "" }, { "docid": "667106ae8c9c888a60043f64e978b297", "score": "0.6385587", "text": "protected function getCJoinTmpTableName()\n {\n return $this->getGatewayCollection()\n ->getGateway('pt_result_cjoin')\n ->getMetaData()\n ->getName();\n \n }", "title": "" }, { "docid": "ce8c376dbf47e0f678deb01a8bbe9ab2", "score": "0.638161", "text": "public function getReferencedTable(): string;", "title": "" }, { "docid": "5514c223c67ed569871b881cb409f288", "score": "0.63800824", "text": "public function getTable(): string\n {\n $annotation = (new Annotation($this))->getClassAnnotation('Table');\n return $annotation->getProperty();\n }", "title": "" }, { "docid": "18cb1b25f761429f25a7965c7db008c7", "score": "0.63771254", "text": "protected static function getTableName() {\n if (static::$tableName) {\n return static::$tableName;\n }\n // Get the hashes from the base table.\n $info = entity_get_info(static::ENTITY_TYPE);\n static::$tableName = $info['base table'];\n return static::$tableName;\n }", "title": "" }, { "docid": "fddcbe457c7e46a9b8243180fa3508bd", "score": "0.63636035", "text": "public function table(): string\n {\n return $this->config->table;\n }", "title": "" }, { "docid": "968a5566aed273c213562b6237d1ed66", "score": "0.636208", "text": "public function getTable()\n {\n if (!isset($this->table)) {\n return str_replace(\n '\\\\', '', str_plural(snake_case(class_basename($this)))\n );\n }\n\n return $this->table;\n }", "title": "" }, { "docid": "8209a4f0fcc0e8c75e0b172f823b1409", "score": "0.6353441", "text": "public function getTable(): string\n {\n return $this->_table;\n }", "title": "" }, { "docid": "25e727ac9529540969df18bc38f15004", "score": "0.63495", "text": "public function getTable() : string\n {\n\n return $this->table;\n }", "title": "" }, { "docid": "6dee3883e8360d4e0af1ad3cc28d3572", "score": "0.63440466", "text": "public function table($table_name)\n {\n return Mage::getSingleton('core/resource')->getTableName($table_name);\n }", "title": "" }, { "docid": "8a215082dabcc4c277825aa01ac403a5", "score": "0.6338805", "text": "public static function getTableName() {\n return str_replace(\"-\", '_', self::getFolderName()) . 's';\n }", "title": "" }, { "docid": "b2fe1fcc2b9e4cb5ee7220b5578a77a2", "score": "0.6335321", "text": "public static function getRelationName(): Name\n {\n return new Name('history site');\n }", "title": "" }, { "docid": "def813a52e9b6f1652bb1d88d6c8ab88", "score": "0.63330823", "text": "abstract public function table_name ();", "title": "" }, { "docid": "dd471a7b73abaacd7b3d1494a0aeff05", "score": "0.6331871", "text": "public function getTable(): string\n {\n return $this->table;\n }", "title": "" }, { "docid": "dd471a7b73abaacd7b3d1494a0aeff05", "score": "0.6331871", "text": "public function getTable(): string\n {\n return $this->table;\n }", "title": "" }, { "docid": "dd471a7b73abaacd7b3d1494a0aeff05", "score": "0.6331871", "text": "public function getTable(): string\n {\n return $this->table;\n }", "title": "" }, { "docid": "45dcd758aab94889b7f43aa3fb01e3e2", "score": "0.63311726", "text": "public function getTable()\n {\n if (isset($this->table)) {\n return $this->table;\n }\n return str_replace('\\\\', '', Str::snake(Str::singular(class_basename($this))));\n }", "title": "" }, { "docid": "c265414b67d3d1fc080c08e3af2deb92", "score": "0.6328532", "text": "public static function getTableName()\n {\n $class = get_called_class();\n\n return (new $class())->getTable();\n }", "title": "" }, { "docid": "c8ea242504a119dfff48bf248804e920", "score": "0.63193864", "text": "protected function _getNewsIndexTableName()\n {\n return $this->getTable('oggetto_news/indexer_relation');\n }", "title": "" }, { "docid": "a4e1cba7dc59bddb9bdd0b7038b38ff7", "score": "0.6313261", "text": "public function getTable () {\n\t\treturn $this->getPrefix() . $this->getName();\n\t}", "title": "" }, { "docid": "d38e826c0e67ff71e1c56e2c2af96ec1", "score": "0.6310634", "text": "protected function getTableName()\n {\n return trim($this->option('table-name')) ?: $this->makeTableName($this->getModelName());\n }", "title": "" }, { "docid": "ce2a44385b45579e63a61a2bdfee331c", "score": "0.62983036", "text": "public function getTableName(){\n\t\treturn $this->_table;\n\t}", "title": "" }, { "docid": "88cf4dc0c3a523cd544e6005c9871f16", "score": "0.6295865", "text": "protected function getTableName () {\n $class = explode('\\\\', get_class($this));\n\n return strtolower(end($class));\n }", "title": "" }, { "docid": "8f5fdc5fee6b8312b844784e656d9aac", "score": "0.6287582", "text": "public static function getTableName()\n\t{\n\t\treturn 'b_crm_tracking_trace_channel';\n\t}", "title": "" }, { "docid": "507940a2d385e332cc960fb2913c4bdb", "score": "0.62826645", "text": "public static function getTableName()\n {\n return 'isaev_seolinks';\n }", "title": "" }, { "docid": "bd1db47d04f82d456ea3214be8bf394a", "score": "0.62824434", "text": "public static function getTableName()\n\t{\n\t\treturn 'b_location_addr_link';\n\t}", "title": "" }, { "docid": "5f3a7d6d6a316e5a8a38e63d7839232b", "score": "0.62784874", "text": "protected function joining_table()\n {\n return $this->connection()->table($this->joining);\n }", "title": "" }, { "docid": "03f5de1e47af1bede4293ce990b36dfa", "score": "0.62736565", "text": "public function\n\t\tget_table_name()\n\t{\n\t\tif (!isset($this->table_name)) {\n\t\t\t$sxe = $this->get_simple_xml_element();\n\t\t\t\n\t\t\t$this->table_name = (string)$sxe->table['name'];\n\t\t}\n\t\t\n\t\treturn $this->table_name;\n\t}", "title": "" } ]
575755ff483991042c0476038082966e
Assert that the [paginator] method allows manually setting paginator on resource.
[ { "docid": "a773ff611d0a1c2301275d0787d90d4e", "score": "0.850029", "text": "public function testPaginatorMethodSetsPaginatorsOnResource()\n {\n $paginator = Mockery::mock(IlluminatePaginatorAdapter::class);\n $this->paginatorFactory->shouldReceive('make')->andReturn($paginator);\n\n $this->builder->resource()->paginator($paginator);\n\n $this->resource->shouldHaveReceived('setPaginator')->with($paginator)->once();\n }", "title": "" } ]
[ { "docid": "248239b52bee56ceb50bf26e5985dc59", "score": "0.82688403", "text": "public function testResourceMethodSetsPagintorOnResource()\n {\n $paginator = Mockery::mock(IlluminatePaginatorAdapter::class);\n $this->paginatorFactory->shouldReceive('make')->andReturn($paginator);\n\n $this->builder->resource($data = Mockery::mock(LengthAwarePaginator::class));\n\n $this->resource->shouldHaveReceived('setPaginator')->with($paginator)->once();\n }", "title": "" }, { "docid": "cc3ec1e9800b035098f1dd17a52f2b29", "score": "0.7112668", "text": "public function setPaginator(PaginatorInterface $paginator);", "title": "" }, { "docid": "5685de66406e44fe9da03d726bf46809", "score": "0.66766286", "text": "public function testGetPageCount()\n {\n $paginator = $this->buildPaginator(7);\n $paginator->setLimitPerPage(10);\n\n $this->assertEquals(1, $paginator->getPageCount());\n\n $paginator->setLimitPerPage(5);\n $this->assertEquals(2, $paginator->getPageCount());\n }", "title": "" }, { "docid": "2a513fb8b31ca586f7c88e3f85b706c0", "score": "0.66181314", "text": "public function testResourceMethodSetsCursorOnResource()\n {\n $cursor = Mockery::mock(Cursor::class);\n $this->paginatorFactory->shouldReceive('makeCursor')->andReturn($cursor);\n\n $this->builder->resource($data = Mockery::mock(CursorPaginator::class));\n\n $this->resource->shouldHaveReceived('setCursor')->with($cursor)->once();\n }", "title": "" }, { "docid": "a7a5a5b956862ea04f1df77d5d551cc7", "score": "0.6511856", "text": "public function test100ItemsAndOnPage10() {\n\t\t$input = array('currentPage'=>10, 'numItemsPerPage'=>10, 'totalItems'=>100);\n\t\t$paginator = new Paginator($input);\n\t\t$this->assertFalse($paginator->isOutOfBounds());\n\t\t$this->assertSame(10, $paginator->getNumItemsPerPage());\n\t\t$this->assertSame(10, $paginator->getCurrentPage());\n\t\t$this->assertSame(100, $paginator->getTotalItems());\n\t\t$this->assertSame(10, $paginator->getTotalPages());\n\t\t$this->assertTrue($paginator->haveToPaginate());\n\t\t$this->assertTrue($paginator->hasPreviousPage());\n\t\t$this->assertFalse($paginator->hasNextPage());\n\t\t$this->assertSame(1, $paginator->getFirstPage());\n\t\t$this->assertSame(10, $paginator->getLastPage());\n\t\t$this->assertFalse($paginator->getNextPage());\n\t\t$this->assertSame(9, $paginator->getPreviousPage());\n\t\t$this->assertSame(90, $paginator->getOffset());\n\t}", "title": "" }, { "docid": "f0ed6752652e44f8066731a693605572", "score": "0.6421438", "text": "public function testSetPaging()\n {\n $this->todo('stub');\n }", "title": "" }, { "docid": "f990f6f84fc9b4d25ef383fff456e1d2", "score": "0.6317737", "text": "public function test100ItemsAndOnPage1() {\n\t\t$input = array('currentPage'=>1, 'numItemsPerPage'=>10, 'totalItems'=>100);\n\t\t$paginator = new Paginator($input);\n\t\t$this->assertFalse($paginator->isOutOfBounds());\n\t\t$this->assertSame(10, $paginator->getNumItemsPerPage());\n\t\t$this->assertSame(1, $paginator->getCurrentPage());\n\t\t$this->assertSame(100, $paginator->getTotalItems());\n\t\t$this->assertSame(10, $paginator->getTotalPages());\n\t\t$this->assertTrue($paginator->haveToPaginate());\n\t\t$this->assertFalse($paginator->hasPreviousPage());\n\t\t$this->assertTrue($paginator->hasNextPage());\n\t\t$this->assertSame(1, $paginator->getFirstPage());\n\t\t$this->assertSame(10, $paginator->getLastPage());\n\t\t$this->assertFalse($paginator->getPreviousPage());\n\t\t$this->assertSame(2, $paginator->getNextPage());\n\t\t$this->assertSame(0, $paginator->getOffset());\n\t}", "title": "" }, { "docid": "14c6213faab0d0c503e845cec2a4039e", "score": "0.6251888", "text": "protected static function getFacadeAccessor() { return 'paginator'; }", "title": "" }, { "docid": "9dfc3ced4b2e12fc226bef4b389b8365", "score": "0.6238076", "text": "public function testUsersAreListedWithPaginateCorrectly(): void\n {\n $response = $this->json('GET', 'api/users/paginate', ['per_page' => 10], $this->headers);\n\n $response->assertStatus(200)\n ->assertJsonStructure([\n 'current_page',\n 'data' => [\n '*' => [\n 'id',\n 'first_name',\n 'last_name',\n 'full_name',\n 'email',\n 'deleted_at',\n 'created_at',\n 'updated_at',\n 'roles' => [],\n ]\n ],\n 'first_page_url',\n 'from',\n 'last_page',\n 'last_page_url',\n 'next_page_url',\n 'path',\n 'per_page',\n 'prev_page_url',\n 'to',\n 'total',\n ]);\n }", "title": "" }, { "docid": "4b7eb33cfb529f1f991fc836a1e15ca3", "score": "0.62167203", "text": "public function test100ItemsAndOnPage5() {\n\t\t$input = array('currentPage'=>5, 'numItemsPerPage'=>10, 'totalItems'=>100);\n\t\t$paginator = new Paginator($input);\n\t\t$this->assertFalse($paginator->isOutOfBounds());\n\t\t$this->assertSame(10, $paginator->getNumItemsPerPage());\n\t\t$this->assertSame(5, $paginator->getCurrentPage());\n\t\t$this->assertSame(100, $paginator->getTotalItems());\n\t\t$this->assertSame(10, $paginator->getTotalPages());\n\t\t$this->assertTrue($paginator->haveToPaginate());\n\t\t$this->assertTrue($paginator->hasPreviousPage());\n\t\t$this->assertTrue($paginator->hasNextPage());\n\t\t$this->assertSame(1, $paginator->getFirstPage());\n\t\t$this->assertSame(10, $paginator->getLastPage());\n\t\t$this->assertSame(6, $paginator->getNextPage());\n\t\t$this->assertSame(4, $paginator->getPreviousPage());\n\t\t$this->assertSame(40, $paginator->getOffset());\n\t}", "title": "" }, { "docid": "932d896ffa0d12c3fd27cca74724bed0", "score": "0.61173636", "text": "public function testGetRange()\n {\n $paginator = $this->buildPaginator(150);\n $paginator\n ->setLimitPerPage(10)\n ->setRangeLimit(10)\n ->setPage(1);\n\n $this->assertEquals(range(1, 10), $paginator->getRange());\n\n $paginator->setPage(9);\n $this->assertEquals(range(5, 14), $paginator->getRange());\n\n $paginator->setPage(14);\n $this->assertEquals(range(6, 15), $paginator->getRange());\n\n }", "title": "" }, { "docid": "923000b41fb13fabbc78a885a21699ef", "score": "0.6107159", "text": "public function setPaginator(PaginatorInterface $paginator)\n {\n $this->paginator = $paginator;\n }", "title": "" }, { "docid": "6aec6b6041d70f4a8cf9b882ab1a5086", "score": "0.6075867", "text": "public function testGetPaging()\n {\n $this->todo('stub');\n }", "title": "" }, { "docid": "6be2dfdda11ff8cfe9df8d88f8708872", "score": "0.6069683", "text": "public function testDefaults()\n {\n $paginator = $this->buildPaginator(10);\n\n $this->assertEquals(1, $paginator->getPage());\n $this->assertEquals(0, $paginator->getLimitPerPage());\n }", "title": "" }, { "docid": "c2998200dfe173fe339cc913103d6c44", "score": "0.6019135", "text": "public function paginationTest($data)\n {\n $this->assertObjectHasAttribute('current_page', $data);\n $this->assertObjectHasAttribute('first_page_url', $data);\n $this->assertObjectHasAttribute('total', $data);\n $this->assertTrue(is_array($data->data));\n\n }", "title": "" }, { "docid": "db0f7bd22aadf72de51305e807b5fa2b", "score": "0.59799266", "text": "public function testListPagination()\n {\n $this->browse(function (Browser $browser) {\n $browser->loginAs(User::find(1))\n ->visit('admin/contacts')\n ->assertSee('Contacts Gestion')\n ->assertSee('Softagonopoulos')\n ->click('ul.pagination li:nth-child(3) a')\n ->assertDontSee('Softagonopoulos');\n });\n }", "title": "" }, { "docid": "f40e4f295c873fd8138f928b1bcf7681", "score": "0.597428", "text": "public function setResource($resource) {\n\t\tif (!$resource instanceof ArraySerializableInterface && !$resource instanceof Paginator) {\n\t\t\tthrow new Exception('Resource must be an instance of Zend\\Stdlib\\ArraySerializableInterface or Zend\\Paginator\\Paginator');\n\t\t}\n\t\t$this->resource = $resource;\n\t\t$this->resourceClassName = get_class($resource);\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "09b0ded3c0f1bad7c307600a0d05aa7f", "score": "0.5963611", "text": "public function test_pages() {\n $this->\n assert_class('Data.Pagination.Page', $this->pager->first)->\n assert_equal($this->pager->first, new Data_Pagination_Page($this->pager, 1))->\n assert_class('Data.Pagination.Page', $this->pager->last)->\n assert_equal($this->pager->last, new Data_Pagination_Page($this->pager, 8))->\n assert_class('Data.Pagination.Page', $this->pager->current)->\n assert_equal($this->pager->current, new Data_Pagination_Page($this->pager, 5))\n ;\n }", "title": "" }, { "docid": "3c6a1787a657547ea159129f09095ffa", "score": "0.5957327", "text": "public function testAdminCanListAllPhoneOffersWithCorrectPaginationData(): void\n {\n // Authenticate an admin client\n $this->initDefaultAuthenticatedClient(true);\n $this->client->request(\n 'GET',\n '/admin/phones/' . self::DEFAULT_DATA['consumer']['phone_uuid'] . '/offers?page=2&per_page=1'\n );\n $content = json_decode($this->client->getResponse()->getContent(), true);\n static::assertArrayHasKey('page', $content);\n static::assertSame(2, $content['page']);\n static::assertArrayHasKey('per_page', $content);\n static::assertSame(1, $content['per_page']);\n static::assertArrayHasKey('pages', $content);\n static::assertSame(3, $content['pages']);\n static::assertArrayHasKey('total', $content);\n static::assertSame(3, $content['total']);\n }", "title": "" }, { "docid": "62f01bc6b4cb25924939b520464370fa", "score": "0.59490496", "text": "public function testCursorMethodSetsCursorsOnResource()\n {\n $cursor = Mockery::mock(Cursor::class);\n $this->paginatorFactory->shouldReceive('makeCursor')->andReturn($cursor);\n\n $this->builder->resource()->cursor($cursor);\n\n $this->resource->shouldHaveReceived('setCursor')->with($cursor)->once();\n }", "title": "" }, { "docid": "590492d4bfe831df26eadd549f813717", "score": "0.5945155", "text": "public function paginator();", "title": "" }, { "docid": "ee09484d07b3c6df7296ed4d7890da87", "score": "0.59270895", "text": "public function testGetPaginatedEntities()\n {\n $entities = $this->getRepository()->getPaginatedEntities(array(\n 'elementsPerPage' => 2,\n 'page' => 1\n ));\n\n $iterator = $entities->getIterator();\n $this->assertNotEmpty($iterator);\n $this->assertEquals(2, $iterator->count());\n }", "title": "" }, { "docid": "fb6974ba607fac772f400c52ed949935", "score": "0.5917015", "text": "public function testGetPaging()\n {\n $model = $this->_catalog->getModel('TestSolarSpecialCols');\n \n $expect = 50;\n $model->setPaging($expect);\n \n $actual = $model->getPaging();\n $this->assertEquals($actual, $expect);\n }", "title": "" }, { "docid": "10bcee80d7f409bd89a871e21845b644", "score": "0.58756214", "text": "public function getPaginator();", "title": "" }, { "docid": "5b5955cb24ced0b8fa6a24c62d7737a1", "score": "0.5852546", "text": "public function testMakeMethodShouldCreatePaginatorAdapters()\n {\n $factory = new PaginatorFactory($parameters = ['foo' => 1]);\n $paginator = Mockery::mock(LengthAwarePaginator::class);\n $paginator->shouldReceive('appends')->andReturnSelf();\n\n $result = $factory->make($paginator);\n\n $this->assertInstanceOf(PaginatorInterface::class, $result);\n $paginator->shouldHaveReceived('appends')->with($parameters)->once();\n }", "title": "" }, { "docid": "f1a9e47c2bcce37ec1e1835ff10d04a2", "score": "0.5831216", "text": "public function testAdminCanListAllPartnerOffersWithCorrectPaginationData(): void\n {\n // Authenticate an admin client\n $this->initDefaultAuthenticatedClient(true);\n $this->client->request(\n 'GET',\n '/admin/partners/' . self::DEFAULT_DATA['consumer']['uuid'] . '/offers?page=2&per_page=1'\n );\n $content = json_decode($this->client->getResponse()->getContent(), true);\n static::assertArrayHasKey('page', $content);\n static::assertSame(2, $content['page']);\n static::assertArrayHasKey('per_page', $content);\n static::assertSame(1, $content['per_page']);\n static::assertArrayHasKey('pages', $content);\n static::assertSame(2, $content['pages']);\n static::assertArrayHasKey('total', $content);\n static::assertSame(2, $content['total']);\n }", "title": "" }, { "docid": "9d1e4708f2d9b6c085539c5aa2cbd7d7", "score": "0.5811144", "text": "public function getPages(Paginator $paginator, $pageRange = null);", "title": "" }, { "docid": "6afcd9b80b1e995e4be1ba42551ecf44", "score": "0.5796508", "text": "public function TestPager() {\n\t\t$step = 100;\n\t\tforeach ([1, 2, 3] as $page) {\n\t\t\t$result = $this->SCRUD->Search([\n\t\t\t\t'LIMIT' => $step,\n\t\t\t\t'PAGE' => $page,\n\t\t\t\t'FIELDS' => ['ID'],\n\t\t\t]);\n\t\t\t$expected_pager = [\n\t\t\t\t'TOTAL' => $this->limit,\n\t\t\t\t'CURRENT' => $page,\n\t\t\t\t'LIMIT' => $step,\n\t\t\t\t'SELECTED' => min($this->limit - ($page - 1) * $step, $step),\n\t\t\t];\n\t\t\tif ($result['PAGER'] <> $expected_pager) {\n\t\t\t\tthrow new Exception([\"Unexpected PAGER\", $expected_pager, $result['PAGER'], $this->SCRUD->SQL]);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4eaebffcd66b00cbb60c61e3dbd21c18", "score": "0.5770338", "text": "public function testCount()\n {\n $paginator = $this->buildPaginator(7);\n\n $this->assertEquals(7, count($paginator));\n }", "title": "" }, { "docid": "45c5bf57eaa2468839b2bf339a4694a1", "score": "0.5683796", "text": "public function testPageNumber()\n {\n $builder = $this->getBuilder();\n\n $builder\n ->endpoint('properties')\n ->setCurrentPage(2);\n\n $this->assertStringContainsString('page%5Bnumber%5D=2', $builder->buildUrl());\n }", "title": "" }, { "docid": "e2b997a056b89c009fd932e805d8554a", "score": "0.567164", "text": "public function setPaginator($paginator)\n {\n if ($paginator instanceof Paginator) {\n $this->_paginator = $paginator;\n }\n else {\n throw new \\InvalidArgumentException(\n sprintf(\"'%s' must be of type \\Cube\\Paginator.\", $this->_paginator));\n }\n\n return $this;\n }", "title": "" }, { "docid": "25e5f18146d3dcd1b05b2d694325a8af", "score": "0.5666215", "text": "public function getPaginator()\n {\n return $this->paginator;\n }", "title": "" }, { "docid": "b859c535d72d580b5b6aaa3ed209675b", "score": "0.5650461", "text": "public function getPaginatorAdapter ();", "title": "" }, { "docid": "321b0a702636e0a3b7a730a7c2f3c870", "score": "0.5647469", "text": "public function testGetPaginatedListingsWithValidPaginationWorksAsExpected() {\n $response = $this->get('/paginated_listings?page=1&results_per_page=3');\n\n $responseJson = $response->decodeResponseJson();\n $this->assertEquals(count($responseJson), 3);\n $response->seeStatusCode(206);\n }", "title": "" }, { "docid": "546aa3f26f951b1df03b95de58a51c1e", "score": "0.5626835", "text": "public function setPageable($pageable);", "title": "" }, { "docid": "2d80dfb8a4eeb5f322f7a444178cdb05", "score": "0.5618082", "text": "public function test_page_accessing() {\n $page = $this->pager->current;\n\n $this->asserts->accessing->\n assert_read_only($page, array(\n 'pager' => $this->pager,\n 'first_item' => 29,\n 'last_item' => 35,\n 'offset' => 28,\n 'previous' => $this->pager[4],\n 'next' => $this->pager[6],\n 'is_first' => false,\n 'is_last' => false,\n 'number' => 5\n ))->\n assert_missing($page)->\n assert_undestroyable($page, array(\n 'pager', 'first_item',\n 'last_item', 'offset',\n 'previous', 'next',\n 'is_first', 'is_last', 'number'));\n }", "title": "" }, { "docid": "bfd57cd0382d5d9e85516bba4aeb78ea", "score": "0.56171185", "text": "public function testIndexStudentPageCanBeChangedItemPerPage(){\n $this->dispatch('student/profile/index/size/1/page/1');\n \n $this->assertQueryContentContains('table tbody tr td', 'h1h1h1h1h1hh1h1h1h1');\n $this->assertQueryContentContains('table tbody tr td', 'Tran Van Hoang');\n $this->assertQueryContentContains('table tbody tr td', '1996-01-21');\n $this->assertQueryContentContains('table tbody tr td', 'nam');\n $this->assertQueryContentContains('table tbody tr td', '01267618465');\n $this->assertQueryContentContains('table tbody tr td', 'Tran Nguyen Han, Le Chan, Hai Phong');\n }", "title": "" }, { "docid": "8b2aa8d4350bba2973d72e97aa212321", "score": "0.5607219", "text": "public function setDataPaginated(array $resource)\n {\n # Set data response\n $this->setData($resource['data'] ?? []);\n # delete data in $resource.\n unset($resource['data']);\n # Set pagination to meta data.\n $this->setMeta(__('messages.request_success'), ['pagination' => $resource]);\n return $this;\n }", "title": "" }, { "docid": "d8d747b54fb79bf7e2b4bbe3b4f096e8", "score": "0.5595879", "text": "public function isPaginated();", "title": "" }, { "docid": "826882fac9e413f552a38d535058bf06", "score": "0.5556469", "text": "public function test_indexing() {\n $this->asserts->indexing->\n assert_undestroyable($this->pager, range(1,8))->\n assert_missing($this->pager, 9)->\n assert_read_only($this->pager, array(\n 1 => new Data_Pagination_Page($this->pager, 1),\n 2 => new Data_Pagination_Page($this->pager, 2),\n 3 => new Data_Pagination_Page($this->pager, 3),\n 4 => new Data_Pagination_Page($this->pager, 4),\n 5 => new Data_Pagination_Page($this->pager, 5),\n 6 => new Data_Pagination_Page($this->pager, 6),\n 7 => new Data_Pagination_Page($this->pager, 7),\n 8 => new Data_Pagination_Page($this->pager, 8)\n ));\n }", "title": "" }, { "docid": "b5821807e399fedf0be03092bffb2330", "score": "0.5550584", "text": "public function testPageSize()\n {\n $builder = $this->getBuilder();\n\n $builder\n ->endpoint('properties')\n ->pageSize(200);\n\n $this->assertStringContainsString('page%5Bsize%5D=200', $builder->buildUrl());\n }", "title": "" }, { "docid": "729524aa0e8b27c9082fa4ebcac2c407", "score": "0.5541206", "text": "public function test_paginate_links_should_allow_non_default_format_without_add_args()\n {\n $request_uri = $_SERVER['REQUEST_URI'];\n $_SERVER['REQUEST_URI'] = add_query_arg('foo', 3, home_url());\n \n $links = paginate_links(array(\n 'base' => add_query_arg('foo', '%#%'),\n 'format' => '',\n 'total' => 5,\n 'current' => 3,\n 'type' => 'array'\n ));\n \n $this->assertContains('?foo=1', $links[1]);\n $this->assertContains('?foo=2', $links[2]);\n $this->assertContains('?foo=4', $links[4]);\n $this->assertContains('?foo=5', $links[5]);\n \n $_SERVER['REQUEST_URI'] = $request_uri;\n }", "title": "" }, { "docid": "1887f942ba681980840475baa1366e75", "score": "0.55370915", "text": "public function testPaginate()\n {\n Image::factory()\n ->has(Comment::factory()->count(10))\n ->count(6)->forImageHash(['ng' => 0 ])->create();\n Image::factory()->count(1)->forImageHash(['ng' => 1 ])->create();\n $result = $this->repo->paginate(5);\n\n $this->assertEquals(6, $result->total());\n $this->assertEquals(5, $result->perPage());\n $this->assertTrue($result->hasMorePages());\n $this->assertInstanceOf(Image::class, $result[0]);\n $this->assertInstanceOf(ImageHash::class, $result[0]->imageHash);\n $this->assertEquals(10, $result[0]->comments_count);\n }", "title": "" }, { "docid": "31f4503d71c7ba06fd22fccb948c7514", "score": "0.55364686", "text": "public function testAdminCanListAllPartnerPhonesWithCorrectPaginationData(): void\n {\n // Authenticate an admin client\n $this->initDefaultAuthenticatedClient(true);\n $this->client->request(\n 'GET',\n '/admin/partners/' . self::DEFAULT_DATA['consumer']['uuid'] . '/phones?page=2&per_page=1'\n );\n $content = json_decode($this->client->getResponse()->getContent(), true);\n static::assertArrayHasKey('page', $content);\n static::assertSame(2, $content['page']);\n static::assertArrayHasKey('per_page', $content);\n static::assertSame(1, $content['per_page']);\n static::assertArrayHasKey('pages', $content);\n static::assertSame(2, $content['pages']);\n static::assertArrayHasKey('total', $content);\n static::assertSame(2, $content['total']);\n }", "title": "" }, { "docid": "ce01cae97a506c7d01b50999a39df0bd", "score": "0.5536274", "text": "public function testPage()\n {\n $collection = new Collection();\n $query = new Query($collection);\n $this->assertSame($query, $query->page(10));\n $mongoQuery = $query->compileQuery();\n $this->assertSame(225, $mongoQuery['skip']);\n $this->assertSame(25, $mongoQuery['limit']);\n\n $this->assertSame($query, $query->page(20, 50));\n $mongoQuery = $query->compileQuery();\n $this->assertSame(950, $mongoQuery['skip']);\n $this->assertSame(50, $mongoQuery['limit']);\n\n $query->limit(15);\n $this->assertSame($query, $query->page(20));\n $mongoQuery = $query->compileQuery();\n $this->assertSame(285, $mongoQuery['skip']);\n $this->assertSame(15, $mongoQuery['limit']);\n }", "title": "" }, { "docid": "c54fe185436afbf4b9d172f3dcc0027e", "score": "0.5513553", "text": "public function testGetActivePageShouldReturnResultSet()\n {\n $resultMock = $this->getMockBuilder(\\Zend\\Db\\Adapter\\Driver\\ResultInterface::class)\n ->getMockForAbstractClass();\n $statementMock = $this->getMockBuilder(\\Zend\\Db\\Adapter\\Driver\\StatementInterface::class)\n ->getMockForAbstractClass();\n $statementMock->expects(static::once())\n ->method('execute')\n ->willReturn($resultMock);\n $driverMock = $this->getMockBuilder('Zend\\Db\\Adapter\\Driver\\DriverInterface')\n ->getMockForAbstractClass();\n $driverMock->expects(static::once())\n ->method('createStatement')\n ->willReturn($statementMock);\n $adapterMock = $this->getMockBuilder(\\Zend\\Db\\Adapter\\Adapter::class)\n ->setConstructorArgs([$driverMock])\n ->getMockForAbstractClass();\n $resultSetMock = $this->getMockBuilder(\\Zend\\Db\\ResultSet\\HydratingResultSet::class)\n ->getMockForAbstractClass();\n\n $pageMapper = new \\Page\\Mapper\\PageMapper($adapterMock, $resultSetMock);\n $pageMapper->initialize();\n static::assertInstanceOf(\\Zend\\Db\\ResultSet\\HydratingResultSet::class, $pageMapper->getActivePage('test'));\n }", "title": "" }, { "docid": "14710976980a3d86229b88eea72c509c", "score": "0.55092794", "text": "public function testContributorCanSeePagedListOfEntries()\n {\n // stops notification being physically sent when a user is created\n Notification::fake();\n\n $user = $this->loginAsFakeUser(false, 'contributor', $visualCheck = 'assertSee');\n\n // stops events being fired (i.e. will prevent audit)\n Event::fake();\n\n // mock up an a number of entries\n $entry = factory(Entry::class, 75)->create();\n\n // now browse the list\n $response = $this->get('/entries');\n $response->assertSuccessful();\n $response->assertSee('Browse catalogue')\n ->assertSee('Showing 1 - 50 of 75 entries');\n }", "title": "" }, { "docid": "c7ba949754861bf08dddf52666d73e8e", "score": "0.5491751", "text": "public function testGetPaginatedListingsWithValidPaginationAndPhotosWorks() {\n $response = $this->get('/paginated_listings?page=1&results_per_page=3&photos_only=true');\n\n $response->seeJson([\"media_url\" => \"http://photos.listhub.net/BCMLSIA/12777/1?lm=20160106T175645\"]);\n $response->dontSeeJson([\"listing_category\" => \"Residential\"]);\n $response->seeStatusCode(206);\n }", "title": "" }, { "docid": "0b9b64492e0266786b8df21935447949", "score": "0.5482461", "text": "public function testGetPaginatedListingsWithNoParametersWorksAsExpected() {\n /**\n * Given I am an API consumer\n * If I visit /paginated_listings (passing no query params)\n * I get an array containing a single listing in JSON format\n * And status code is 206\n */\n $response = $this->get('/paginated_listings');\n\n $responseJson = $response->decodeResponseJson();\n $this->assertEquals(count($responseJson), 1);\n $response->seeStatusCode(206);\n }", "title": "" }, { "docid": "05cf3f9b03b35415197a27d526d699dc", "score": "0.5471908", "text": "public function testPerPageDefaultConstantIsSet()\n\t{\n\t\t$this->assertInternalType('int', Controller::PER_PAGE_DEFAULT);\n\t}", "title": "" }, { "docid": "7e9e2807ac8b2dce3deb0d250ce9ae5d", "score": "0.5471334", "text": "public function setPerPage($perPage);", "title": "" }, { "docid": "ca1a3ca056bc74b70b5821e1a011c297", "score": "0.54710704", "text": "public function testPerPageInRequest()\n\t{\n\t\t$perPage = 100;\n\t\t$controller = new ControllerMock;\n\t\t/** @var Request|m\\MockInterface $requestMock */\n\t\t$requestMock = m::mock(Request::class);\n\t\t$requestMock->shouldReceive('get')\n\t\t\t->with(Controller::PER_PAGE_KEY, Controller::PER_PAGE_DEFAULT)\n\t\t\t->andReturn($perPage);\n\n\t\t$this->assertEquals(100, $controller->perPage($requestMock));\n\t}", "title": "" }, { "docid": "4ea85a0414b4971a21da0baa621c96de", "score": "0.5465868", "text": "public function createPaginator(string $parameter, int $limit = 25): PaginatorInterface;", "title": "" }, { "docid": "e53dec181be0152dacbd9c509989b6d3", "score": "0.54625785", "text": "public function testGetPaginatedListingsWithValidPaginationAndSortingWorks() {\n $response = $this->get('/paginated_listings?page=1&results_per_page=5&sort=list_price.asc');\n\n $responseJson = $response->decodeResponseJson();\n $this->assertEquals(count($responseJson), 5);\n $this->assertEquals($responseJson[0]['list_price'], 125000);\n $response->seeStatusCode(206);\n }", "title": "" }, { "docid": "a697a3ad96b9e6d6c6fb0bffe30004ba", "score": "0.54306835", "text": "public function preparePagination(Validator $validator): void\n {\n $data = $validator->validated();\n\n $this->page = $data[$this->pageKey] ?? $this->defaultPage;\n $this->show = $data[$this->showKey] ?? $this->defaultShow;\n }", "title": "" }, { "docid": "ff777f02e3306474cdd238342e0df6ec", "score": "0.54297924", "text": "public function test_list_users_pagination()\n {\n $this->browse(function (Browser $browser) {\n $browser->loginAs($this->user)\n ->visit(new ShowListUser);\n $number_page = count($browser->elements('.pagination li')) - 2;\n $this->assertEquals($number_page, ceil((self::NUMBER_RECORD) / (self::ROW_LIMIT)));\n });\n }", "title": "" }, { "docid": "67b5e7ac86472199effe05835287b487", "score": "0.54225326", "text": "public function paginate(int $perPage): LengthAwarePaginator;", "title": "" }, { "docid": "de8e79bd07d6dfe74fef5240775e4e79", "score": "0.54155576", "text": "public function testPerPageMax()\n\t{\n\t\t$perPage = 500;\n\t\t$controller = new ControllerMock;\n\t\t/** @var Request|m\\MockInterface $requestMock */\n\t\t$requestMock = m::mock(Request::class);\n\t\t$requestMock->shouldReceive('get')\n\t\t\t->with(Controller::PER_PAGE_KEY, Controller::PER_PAGE_DEFAULT)\n\t\t\t->andReturn($perPage);\n\n\t\t$this->assertEquals(Controller::PER_PAGE_MAX, $controller->perPage($requestMock));\n\t}", "title": "" }, { "docid": "698c894cffe79d491e94d726fb8c268f", "score": "0.541486", "text": "public function test_get_enrollments_pagination() {\n\n\t\twp_set_current_user( $this->user_allowed );\n\n\t\t// Create enrollments.\n\t\t$user_id = $this->factory->user->create( array( 'role' => 'subscriber' ) );\n\n\t\t// Create new courses.\n\t\t$course_ids = $this->factory->post->create_many( 25, array( 'post_type' => 'course' ) );\n\t\t$start_course_id = $course_ids[0];\n\n\t\tforeach ( $course_ids as $course_id ) {\n\t\t\t// Enroll Student in newly created course.\n\t\t\tllms_enroll_student( $user_id, $course_id, 'test_get_enrollments_pagination' );\n\t\t}\n\n\t\t$route = $this->parse_route( $user_id );\n\n\t\t$this->pagination_test( $route, $start_course_id, 10, 'post_id', $total = 25, $ids_step = 2 );\n\t}", "title": "" }, { "docid": "9359695b4b610e8f80f30eee9309d5f9", "score": "0.54051477", "text": "public function initializePagination()\n {\n Paginator::currentPageResolver(function ($pageName = 'page') {\n return (int) ($_GET[$pageName] ?? 1);\n });\n }", "title": "" }, { "docid": "0e0ff3a724b94db90e68d2c09ff23a2b", "score": "0.5393206", "text": "public function testPerPageMaxConstantIsSet()\n\t{\n\t\t$this->assertInternalType('int', Controller::PER_PAGE_MAX);\n\t}", "title": "" }, { "docid": "0389b8e1d7168029f6162f5c9f160337", "score": "0.5384331", "text": "public function testSetPaging()\n {\n $this->_populateSpecialColsTable();\n \n // set it\n $model = $this->_catalog->getModel('TestSolarSpecialCols');\n $expect = 3;\n $model->setPaging($expect);\n \n // make sure it's recognized\n $actual = $model->getPaging();\n $this->assertEquals($actual, $expect);\n \n /**\n * make sure the setting is honored\n */\n \n // get the first page of 3 records\n $collection = $model->fetchAll(array('order' => 'id', 'page' => 1));\n $this->assertEquals(count($collection), 3);\n \n // make sure they're the right ones: 1, 2, 3\n foreach ($collection as $key => $record) {\n $this->assertEquals($record->id, $key + 1);\n }\n \n // get the third page of 3 records; this should also be 3 records\n $collection = $model->fetchAll(array('order' => 'id', 'page' => 3));\n $this->assertEquals(count($collection), 3);\n \n // make sure they're the right ones: 7, 8, 9\n foreach ($collection as $key => $record) {\n $this->assertEquals($record->id, $key + 7);\n }\n \n // get the 4th page of 3 records: this should be 1 record, #10\n $collection = $model->fetchAll(array('order' => 'id', 'page' => 4));\n $this->assertEquals(count($collection), 1);\n $this->assertEquals($collection[0]->id, 10);\n }", "title": "" }, { "docid": "ba6e194bc3c49c3db6436671cd6f438e", "score": "0.5379591", "text": "protected function setUp() {\n $this->paginator1 = (new Paginator)\n ->setUrl($this->url, $this->pattern1);\n }", "title": "" }, { "docid": "d348e59e6d0230b2cf49707b83f4bb3d", "score": "0.53715706", "text": "public function test_accessing() {\n $this->asserts->accessing->\n assert_read_only($this->pager, array(\n 'num_of_items' => 53,\n 'num_of_pages' => 8,\n 'items_per_page' => 7,\n 'length' => 0,\n 'last' => new Data_Pagination_Page($this->pager, 8),\n 'first' => new Data_Pagination_Page($this->pager, 1),\n 'current' => new Data_Pagination_Page($this->pager, 5)\n ))->\n assert_missing($this->pager)->\n assert_undestroyable($this->pager, array(\n 'num_of_items', 'num_of_pages',\n 'items_per_page', 'length',\n 'last', 'first', 'current'\n ));\n ;\n }", "title": "" }, { "docid": "450d9def806ab089cc01f8a171ab4b56", "score": "0.5354464", "text": "public function testInvalidGetter()\n {\n $this->expectException(PagingException::class);\n\n $cursor = new CursorRequest([]);\n $cursor->items;\n }", "title": "" }, { "docid": "0e22915c159b2526db4323d5140dc680", "score": "0.53418046", "text": "public function testSetPagerInfo()\n {\n $this->todo('stub');\n }", "title": "" }, { "docid": "193f3fd02e6307a04bc5c6c4c15bfa93", "score": "0.5339608", "text": "public function testPageNumberAndSize()\n {\n $builder = $this->getBuilder();\n\n $builder\n ->endpoint('properties')\n ->pageSize(200)\n ->setCurrentPage(2);\n\n $this->assertStringContainsString('page%5Bsize%5D=200', $builder->buildUrl());\n $this->assertStringContainsString('page%5Bnumber%5D=2', $builder->buildUrl());\n }", "title": "" }, { "docid": "a72c49775d85ba46851c68f537dec921", "score": "0.5339396", "text": "public function paginated() :bool;", "title": "" }, { "docid": "fef038ccf96c942ab56940aaf21a30ec", "score": "0.5328511", "text": "public function test_it_lists_offices_in_paginated_form()\n {\n Office::factory(3)->create();\n $response = $this->get('/api/offices');\n\n $response->assertOk();\n $response->assertJsonStructure(['meta','links']);\n $this->assertNotNull($response->json('data')[0]['id']);\n }", "title": "" }, { "docid": "7ec5fd4f4e7a89f1755e85c0e2b8ac64", "score": "0.5328479", "text": "public function it_can_auto_paging_one_page()\n {\n /** @var Collection $collection */\n $collection = Collection::scopedConstructFrom(\n $this->pageableModelResponse(['pm_123', 'pm_124'], false),\n new RequestOptions\n );\n\n $seen = [];\n\n foreach ($collection->autoPagingIterator() as $item) {\n array_push($seen, $item['id']);\n }\n\n $this->assertSame(['pm_123', 'pm_124'], $seen);\n }", "title": "" }, { "docid": "4415139eaf49591cb2759ef13a46dd33", "score": "0.5316065", "text": "public function getPaginator()\n {\n if (!($this->_paginator instanceof Paginator)) {\n throw new \\InvalidArgumentException(\n sprintf(\"'%s' must be of type \\Cube\\Paginator.\", $this->_paginator));\n }\n\n return $this->_paginator;\n }", "title": "" }, { "docid": "a3999761901a0179388f33c7bc1808e2", "score": "0.530954", "text": "public function getPaginator()\n {\n return $this->page;\n }", "title": "" }, { "docid": "dd65429805322c2af74450d7871067fc", "score": "0.5309175", "text": "public function testItCanListingEntity()\n {\n $amount = 2;\n factory(Role::class, $amount)->create();\n\n $list = $this->roleService->paginate();\n $data = current($list->items())->toArray();\n\n $this->assertInstanceOf(LengthAwarePaginator::class, $list);\n $this->assertEquals($amount, $list->total());\n\n foreach ($this->dataStructure() as $key) {\n $this->assertArrayHasKey($key, $data);\n }\n }", "title": "" }, { "docid": "9d833ec83c5cad386e0267efb1f15dba", "score": "0.5306622", "text": "public function testContributorCanSeeNextPageOfEntries()\n {\n // stops notification being physically sent when a user is created\n Notification::fake();\n\n $user = $this->loginAsFakeUser(false, 'contributor', $visualCheck = 'assertSee');\n\n // stops events being fired (i.e. will prevent audit)\n Event::fake();\n\n // mock up an a number of entries\n $entry = factory(Entry::class, 125)->create();\n\n // now browse the list\n $response = $this->get('/entries?page=2');\n $response->assertSuccessful();\n $response->assertSee('Browse catalogue')\n ->assertSee('Showing 51 - 100 of 125 entries');\n }", "title": "" }, { "docid": "68137d6dd035ace21019ed9dc0925886", "score": "0.53024083", "text": "public function getPaginate() {}", "title": "" }, { "docid": "8569a9dac329ad2591c85cb4e6f0f630", "score": "0.5292924", "text": "public function testPerPageMissingInRequest()\n\t{\n\t\t$controller = new ControllerMock;\n\t\t/** @var Request|m\\MockInterface $requestMock */\n\t\t$requestMock = m::mock(Request::class);\n\t\t$requestMock->shouldReceive('get')\n\t\t\t->with(Controller::PER_PAGE_KEY, Controller::PER_PAGE_DEFAULT)\n\t\t\t->andReturn(Controller::PER_PAGE_DEFAULT);\n\n\t\t$this->assertEquals(Controller::PER_PAGE_DEFAULT, $controller->perPage($requestMock));\n\t}", "title": "" }, { "docid": "38ddfd9fddaa0dd809dc7be4fa58696d", "score": "0.5292541", "text": "public function testLinksWithOptions() {\n\t\t/*\n\t\t collection = empty Array\n\t\t pages = 20\n\t\t current page = 3\n\t\t next page = 4\n\t\t previous page = 2\n\t\t */\n\t\t$paginationResult = new PaginationResult(array(), 20, 3, 4, 2, 40);\n\t\t$paginationHelper = new Pagination;\n\n\t\t$result = $paginationHelper->links($paginationResult, array(\n\t\t\t'class' => 'my-custom-pagination-class',\n\t\t\t'prev_label' => 'My Prev Label',\n\t\t\t'next_label' => 'My Next Label',\n\t\t\t'max_items' => 10\n\t\t));\n\n\t\t$this->assertContains('<div class=\"my-custom-pagination-class\">', $result);\n\n\t\t$this->assertContains('<a href=\"?page=2\" rel=\"prev\" class=\"prev-page\">My Prev Label</a>', $result);\n\n\t\t$this->assertContains('<a href=\"?page=4\" rel=\"next\" class=\"next-page\">My Next Label</a>', $result);\n\n\t\t// Last page link\n\t\t$this->assertContains('<a href=\"?page=20\">20</a>', $result);\n\n\t\t$this->assertContains('<span>...</span>', $result);\n\t}", "title": "" }, { "docid": "7a26625303acdae2c77fed9c85add181", "score": "0.5292453", "text": "abstract public function paginate();", "title": "" }, { "docid": "d8b5d9d98ad54877d9c13261a442669d", "score": "0.52881974", "text": "public function setPaginated(bool $bool) :AbstractSerializer;", "title": "" }, { "docid": "5d7aa41831e350fe3fb529a5c1e8666e", "score": "0.5280357", "text": "public function testUsersAreListedWithPaginateException(): void\n {\n $usersService = $this->prophesize(UsersServiceInterface::class);\n\n $usersService->paginate(Argument::any())->willThrow(new \\Exception('Exception', 500));\n\n $this->app->instance(UsersServiceInterface::class, $usersService->reveal());\n\n $response = $this->json('GET', 'api/users/paginate', ['per_page' => 10], $this->headers);\n\n $response->assertStatus(500);\n\n $response->assertJsonStructure([\n 'success',\n 'message',\n 'status'\n ]);\n }", "title": "" }, { "docid": "3c0c5b02800322ab7b615e7462e1b554", "score": "0.52505195", "text": "public function shouldPaginate()\n {\n return $this->has('page') || $this->has('per_page');\n }", "title": "" }, { "docid": "8ef930d4aa26e258afe0410a4239cb0a", "score": "0.5245431", "text": "public function needsPaging();", "title": "" }, { "docid": "e165882542ef8382bafdb3a47b9bc7f8", "score": "0.5241544", "text": "public function paginator()\n {\n return new Grid\\Tools\\Paginator($this);\n }", "title": "" }, { "docid": "32b4dd02c6aabe6b7c2a9932d1297199", "score": "0.52403915", "text": "public function testContributorCanSeePreviousPageOfEntries()\n {\n // stops notification being physically sent when a user is created\n Notification::fake();\n\n $user = $this->loginAsFakeUser(false, 'contributor', $visualCheck = 'assertSee');\n\n // stops events being fired (i.e. will prevent audit)\n Event::fake();\n\n // mock up an a number of entries\n $entry = factory(Entry::class, 125)->create();\n\n // simulate clicking Next\n $response = $this->get('/entries?page=2');\n $response->assertSuccessful();\n\n // simulate clicking Previous\n $response = $this->get('/entries?page=1');\n $response->assertSuccessful();\n $response->assertSee('Browse catalogue')\n ->assertSee('Showing 1 - 50 of 125 entries');\n }", "title": "" }, { "docid": "e3e48c5355a9377402cc27c9d9da45e5", "score": "0.5230493", "text": "public function testGetPagerInfo()\n {\n $this->todo('stub');\n }", "title": "" }, { "docid": "18a9e3d18992fd9493888ffb370fb20c", "score": "0.52131784", "text": "public function testLimit()\n {\n $builder = $this->getBuilder();\n\n $builder\n ->endpoint('properties')\n ->limit(200);\n\n $this->assertStringContainsString('page%5Bsize%5D=200', $builder->buildUrl());\n }", "title": "" }, { "docid": "8f29152139dd5826f83b6f55bcea58d9", "score": "0.52124256", "text": "public function testActivityWithPagination()\n {\n $activities = factory(App\\Activity::class, 12)->create();\n $apiKey = factory(ApiKey::class)->create();\n $headers['X-Authorization'] = $apiKey->key;\n\n $json = '\"meta\": {\"cursor\": {\"cursor\": {\"current\": false, \"prev\": 6, \"next\": 5, \"count\": 5}}';\n\n $this->get(route('api.activity.index'), $headers);\n $this->seeStatusCode(200);\n $this->seeJson(json_decode($json));\n }", "title": "" }, { "docid": "992eeb295c7dc271b810bb03b21f8b20", "score": "0.5208769", "text": "public function test_paginate_links_should_allow_add_args_to_be_bool_false()\n {\n $request_uri = $_SERVER['REQUEST_URI'];\n $_SERVER['REQUEST_URI'] = add_query_arg('foo', 3, home_url());\n \n $links = paginate_links(array(\n 'add_args' => false,\n 'base' => add_query_arg('foo', '%#%'),\n 'format' => '',\n 'total' => 5,\n 'current' => 3,\n 'type' => 'array'\n ));\n \n $this->assertContains('<span class=\"pagination current\">3</span>', $links);\n }", "title": "" }, { "docid": "95d83b5fc8c08926ecb1e683f324639d", "score": "0.5203459", "text": "public function testItShouldThrowAnExceptionIfTheSortDirectionWasInvalidWhenGeneratingAPageOfObjects() {\n\t\t$mapper = ItemMapper::create();\n\t\t$items = $mapper->generatePage(\"id\", \"sideways\", 0, 10);\n\t}", "title": "" }, { "docid": "3604fb2a81ea70fa72098c9f86a6a0f9", "score": "0.5200911", "text": "public function testLinks() {\n\t\t/*\n\t\t collection = empty Array\n\t\t pages = 3\n\t\t current page = 1\n\t\t next page = 2\n\t\t previous page = 1\n\t\t */\n\t\t$paginationResult = new PaginationResult(array(), 3, 1, 2, 1, 40);\n\t\t$paginationHelper = new Pagination;\n\n\t\t$result = $paginationHelper->links($paginationResult);\n\t\t$expected = '<div class=\"pagination\"><em>1</em> <a href=\"?page=2\">2</a> <a href=\"?page=3\">3</a> <a href=\"?page=2\" rel=\"next\" class=\"next-page\">Next &raquo;</a></div>';\n\n\t\t$this->assertEquals($result, $expected);\n\t}", "title": "" }, { "docid": "feb3d5104ecafc32c5c36e6bc2ed73eb", "score": "0.5194765", "text": "public function getIsPaginated()\n {\n return false;\n }", "title": "" }, { "docid": "be8c651dc19aca49fee1009e0ea791ea", "score": "0.51896876", "text": "public function testCoursesViewWithPaginationAndSorting() {\n $get_data = array(\n 'page' => '2',\n 'per_page' => '1',\n 'sort' => 'created_at',\n 'sort_dir' => 'desc'\n );\n $response = $this->get('courses', $get_data);\n $this->assertEquals('200', $response->foundation->getStatusCode());\n $data = $response->content->data['content']->data();\n $this->assertArrayHasKey('courses', $data);\n $this->assertCount(1, $data['courses']);\n }", "title": "" }, { "docid": "1dd6a4dc29da015f18ce4f5ed2eac1f4", "score": "0.5183943", "text": "public function injectPaginationLinks(Collection $halCollection);", "title": "" }, { "docid": "a6724c88cc2f800a943722c987122619", "score": "0.5179245", "text": "public function test_get_all_employees_paginated()\n {\n \n $repo = app(EmployeeRepository::class);\n \n $owner = $this->owner();\n \n $data = $repo->getPaginatedForOwner($owner);\n \n $expected = $this->createPaginated($data, new EmployeeTransformer);\n \n $token = $this->getTokenAsOwner();\n \n $link = 'v1/employees';\n \n $this->get($link, $token);\n \n $this->seeJson($expected->toArray());\n \n \n }", "title": "" }, { "docid": "cb324e36908bf6c9878bcdcac6e16fcd", "score": "0.51615876", "text": "public function testActivityIndexWithPageQuery()\n {\n factory(Signup::class, 22)->create();\n\n $response = $this->getJson('api/v2/activity?page=2');\n\n $response->assertStatus(200);\n\n // By default, we show 20 posts per page, so we should see 2 here.\n $json = $response->json();\n $this->assertCount(2, $json['data']);\n }", "title": "" }, { "docid": "90485e308367b91458cb52c830f821e5", "score": "0.5153067", "text": "public function respondWithPaginator($paginator, $transformer)\n {\n $resource = new Collection(\n $paginator->getCollection(),\n $transformer,\n $transformer->resourceType\n );\n\n $resource->setMetaValue(\n 'version',\n $transformer->resourceVersion\n );\n\n $resource->setPaginator(\n new IlluminatePaginatorAdapter($paginator)\n );\n\n $rootScope = $this->fractal\n ->createData($resource);\n\n return $this->respondWithArray($rootScope->toArray());\n }", "title": "" }, { "docid": "b45fd33d531ab118588bdc6775a3e8cc", "score": "0.51497364", "text": "public function paginator(): ?WpQueryPaginatorInterface;", "title": "" }, { "docid": "eb47dc25878ebfb966ce717e4034690d", "score": "0.51479477", "text": "public function testCountPages()\n {\n $this->todo('stub');\n }", "title": "" }, { "docid": "c7b1d761db764df7d5958f883a0567e5", "score": "0.5129521", "text": "public function testModifyQueryInEvent()\n {\n $this->_eventManager->on(\n 'Controller.initialize',\n ['priority' => 11],\n function () {\n $this->_controller->Crud->on('beforePaginate', function ($event) {\n $event->getSubject()->query->where(['id <' => 2]);\n });\n }\n );\n\n $this->get('/blogs');\n $this->assertStringContainsString(\n 'Page 1 of 1, showing 1 records out of 1 total',\n (string)$this->_response->getBody()\n );\n }", "title": "" }, { "docid": "f081dc18172d2ebd61f63dc7edd4d2da", "score": "0.5122625", "text": "public function pagination() {\n\n\t\t\n\t}", "title": "" } ]
7c2b3fae9d18d8266459dbd3dcea95bf
Go to the next day. Goes to the entries of the next day. Discards the working entry.
[ { "docid": "c7b8c00a2b8563c63178fa1f76ec64fb", "score": "0.58992594", "text": "function incrementDate() {\n\t\t$this->pl->incrementDate();\n $this->pl->clearWorkspace();\n\t\t$this->pl->setBlankWorkingEntry();\n\t}", "title": "" } ]
[ { "docid": "67c13e550135eb5e8fa08d3e33c8622f", "score": "0.68922293", "text": "public function nextDay(): self\n {\n $this->day++;\n $this->wanderedToday = 0;\n\n return $this->hit(1);\n }", "title": "" }, { "docid": "2c866273037ef26552564cdd216180d5", "score": "0.65026253", "text": "public function goToNextWorkingDay()\n {\n if ($this->compareDay('Saturday', 'en') == 0) {\n $this->addDay(2);\n }\n if ($this->compareDay('Sunday', 'en') == 0) {\n $this->addDay(1);\n }\n return $this;\n }", "title": "" }, { "docid": "bf671777a676022853be95e93ffedcf8", "score": "0.64051735", "text": "function next_working_day($preserveHours = false) {\n\t\tglobal $AppUI;\n\t\t$do = $this;\n\t\t$end = intval ( dPgetConfig ( 'cal_day_end' ) );\n\t\t$start = intval ( dPgetConfig ( 'cal_day_start' ) );\n\t\twhile ( ! $this->isWorkingDay () || $this->getHour () >= $end ) {\n\t\t\t$this->addDays ( 1 );\n\t\t\t$this->setTime ( $start, '0', '0' );\n\t\t}\n\t\tif ($preserveHours)\n\t\t\t$this->setTime ( $do->getHour (), '0', '0' );\n\t\t\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "1b2d391aed4db896a4347eb786072256", "score": "0.6288458", "text": "function next_working_day($preserveHours = false)\n {\n global $AppUI;\n $do = $this;\n $end = intval(CGAF::getConfig('date.cal_day_end'));\n $start = intval(CGAF::getConfig('date.cal_day_start'));\n while (!$this->isWorkingDay() || $this->getHour() > $end || ($preserveHours == false && $this->getHour() == $end && $this->getMinute() == '0')) {\n $this->addDays(1);\n $this->setTime($start, '0', '0');\n }\n if ($preserveHours)\n $this->setTime($do->getHour(), '0', '0');\n return $this;\n }", "title": "" }, { "docid": "5092f3742d57b3b11c838e2c6922e5e0", "score": "0.621281", "text": "public static function getNextWorkingDay(){\n $invalid_day = array('sat','sun');\n $tomorrow_unix = mktime(0, 0, 0, date(\"m\"), date(\"d\")+1, date(\"y\"));\n $tomorrow_date = date('Ymd',$tomorrow_unix);\n $tomorrow_day = strtolower(date('D',$tomorrow_unix));\n\n $datetime = new \\DateTime();\n if(!in_array($tomorrow_day,$invalid_day)){\n $datetime -> setTimestamp($tomorrow_unix);\n return $datetime;\n }else{\n switch($tomorrow_day){\n case 'sat':\n $tomorrow_unix = mktime(0, 0, 0, date(\"m\"), date(\"d\")+3, date(\"y\"));\n break;\n case 'sun':\n $tomorrow_unix = mktime(0, 0, 0, date(\"m\"), date(\"d\")+2, date(\"y\"));\n break;\n }\n $datetime -> setTimestamp($tomorrow_unix);\n return $datetime;\n }\n }", "title": "" }, { "docid": "5e72a1e567827a78251cee91581c01d9", "score": "0.6162997", "text": "public function next_no_exception()\n\t{\n\t\tswitch($this->type)\n\t\t{\n\t\t\tcase self::NONE:\t// need to add at least one day, to end \"series\", as enddate == current date\n\t\t\tcase self::DAILY:\n\t\t\t\t$this->current->modify($this->interval.' day');\n\t\t\t\tbreak;\n\n\t\t\tcase self::WEEKLY:\n\t\t\t\t// advance to next valid weekday\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\t// interval in weekly means event runs on valid days eg. each 2. week\n\t\t\t\t\t// --> on the last day of the week we have to additionally advance interval-1 weeks\n\t\t\t\t\tif ($this->interval > 1 && self::getWeekday($this->current) == $this->lastdayofweek)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->current->modify(($this->interval-1).' week');\n\t\t\t\t\t}\n\t\t\t\t\t$this->current->modify('1 day');\n\t\t\t\t\t//echo __METHOD__.'() '.$this->current->format('l').', '.$this->current.\": $this->weekdays & \".self::getWeekday($this->current).\"<br />\\n\";\n\t\t\t\t}\n\t\t\t\twhile(!($this->weekdays & self::getWeekday($this->current)));\n\t\t\t\tbreak;\n\n\t\t\tcase self::MONTHLY_WDAY:\t// iCal: BYDAY={1, ..., 5, -1}{MO..SO}\n\t\t\t\t// advance to start of next month\n\t\t\t\tlist($year,$month) = explode('-',$this->current->format('Y-m'));\n\t\t\t\t$month += $this->interval+($this->monthly_byday_num < 0 ? 1 : 0);\n\t\t\t\t$this->current->setDate($year,$month,$this->monthly_byday_num < 0 ? 0 : 1);\n\t\t\t\t//echo __METHOD__.\"() $this->monthly_byday_num\".substr(self::$days[$this->monthly_byday_wday],0,2).\": setDate($year,$month,1): \".$this->current->format('l').', '.$this->current.\"<br />\\n\";\n\t\t\t\t// now advance to n-th week\n\t\t\t\tif ($this->monthly_byday_num > 1)\n\t\t\t\t{\n\t\t\t\t\t$this->current->modify(($this->monthly_byday_num-1).' week');\n\t\t\t\t\t//echo __METHOD__.\"() $this->monthly_byday_num\".substr(self::$days[$this->monthly_byday_wday],0,2).': modify('.($this->monthly_byday_num-1).' week): '.$this->current->format('l').', '.$this->current.\"<br />\\n\";\n\t\t\t\t}\n\t\t\t\t// advance to given weekday\n\t\t\t\twhile(!($this->weekdays & self::getWeekday($this->current)))\n\t\t\t\t{\n\t\t\t\t\t$this->current->modify(($this->monthly_byday_num < 0 ? -1 : 1).' day');\n\t\t\t\t\t//echo __METHOD__.\"() $this->monthly_byday_num\".substr(self::$days[$this->monthly_byday_wday],0,2).': modify(1 day): '.$this->current->format('l').', '.$this->current.\"<br />\\n\";\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase self::MONTHLY_MDAY:\t// iCal: monthly_bymonthday={1, ..., 31, -1}\n\t\t\t\tlist($year,$month) = explode('-',$this->current->format('Y-m'));\n\t\t\t\t$day = $this->monthly_bymonthday+($this->monthly_bymonthday < 0 ? 1 : 0);\n\t\t\t\t$month += $this->interval+($this->monthly_bymonthday < 0 ? 1 : 0);\n\t\t\t\t$this->current->setDate($year,$month,$day);\n\t\t\t\t//echo __METHOD__.\"() setDate($year,$month,$day): \".$this->current->format('l').', '.$this->current.\"<br />\\n\";\n\t\t\t\tbreak;\n\n\t\t\tcase self::YEARLY:\n\t\t\t\t$this->current->modify($this->interval.' year');\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tthrow new egw_exception_assertion_failed(__METHOD__.\"() invalid type #$this->type !\");\n\t\t}\n\t}", "title": "" }, { "docid": "88c73bce661304175fb6ad7044845a16", "score": "0.60101527", "text": "public function next($dayOfWeek = null);", "title": "" }, { "docid": "ffd705a0ad69a6af3e2b41a982201cc6", "score": "0.59099084", "text": "public function next()\n\t{\n\t\tdo\n\t\t{\n\t\t\t$this->next_no_exception();\n\t\t}\n\t\twhile($this->exceptions && in_array($this->current->format('Ymd'),$this->exceptions));\n\t}", "title": "" }, { "docid": "a01c031ebc73626c939837b21e1e01c3", "score": "0.58149207", "text": "public function startNewContestSameAsLast() {\n $stamp = strtotime(\"next Monday\");\n // die($date);\n $date = date('Y-m-d', $stamp);\n $this->setStartdatum($date);\n $this->commit();\n }", "title": "" }, { "docid": "48487a36aa3baf07151bb256ebe6c383", "score": "0.57581717", "text": "private function _findNextDay()\n {\n if (\n $this->at->params['exclude_staff_with_day_off'] &&\n count( $this->excluded_staff ) >= count( $this->at->staff_data )\n ) {\n // The search must stop if all staff have been excluded.\n return false;\n }\n\n $attempt = 0;\n // Find available day within requested days.\n $requested_days = $this->at->userData->get( 'days' );\n\n while ( ! in_array( (int) $this->date->format( 'w' ) + 1, $requested_days ) ) {\n $this->date->add( $this->at->one_day );\n if ( ++ $attempt >= 7 ) {\n return false;\n }\n }\n\n return $this->date >= $this->at->max_date ? false : true;\n }", "title": "" }, { "docid": "3f7c401609e8f98e292dd7b39dd3cfe3", "score": "0.5708183", "text": "protected function takePaymentDay()\n\t{\n\t\t$now = new DateTime('now');\n\t\tif($now->format('l') !== 'friday') {\n\t\t\t$now->modify('next friday');\n\t\t}\n\t\treturn $now;\n\t}", "title": "" }, { "docid": "492127888fb4bf6fa5cc63a527f2ead7", "score": "0.565435", "text": "public function timeDayAction() {\n \n if ($this->request->hasArgument('date')) {\n $date = $this->request->getArgument('date');\n } else {\n $date = date(\"d.m.Y\");\n }\n $headlineDate = $date;\n //set the start/end timestamps for the day\n $date = explode('.', $date);\n $start = mktime(0, 0, 0, $date[1], $date[0], $date[2]);\n $end = mktime(23, 59, 59, $date[1], $date[0], $date[2]);\n\n $workNotesCustom = $this->ticketresponseRepository->findPerDate($start, $end, 2, $this->user);\n $workNotesInternal = $this->ticketresponseRepository->findPerDate($start, $end, 3, $this->user);\n\n $time['custom'] = 0;\n $time['internal'] = 0;\n if ($workNotesCustom[0]) {\n foreach ($workNotesCustom as $noteCustom) {\n $time['custom'] = $time['custom'] + $noteCustom->getTrTime();\n $this->calculateTime($noteCustom);\n }\n }\n if ($workNotesInternal[0]) {\n foreach ($workNotesInternal as $noteInternal) {\n\n $time['internal'] = $time['internal'] + $noteInternal->getTrTime();\n $this->calculateTime($noteInternal);\n }\n }\n $time['total'] = $time['custom'] + $time['internal'];\n\n\n //buid the date navigation\n $todayTimestamp = mktime(0, 0, 0, $date[1], $date[0], $date[2]);\n $yesterday = $todayTimestamp - 86400;\n $tomorrow = $todayTimestamp + 86400;\n \n $dayNavi['actual'] = $todayTimestamp;\n $dayNavi['next'] = date(\"d.m.Y\", $tomorrow);\n $dayNavi['prev'] = date(\"d.m.Y\", $yesterday);\n \n // \\TYPO3\\CMS\\Extbase\\Utility\\DebuggerUtility::var_dump($workNotesInternal);\n $this->view->assign('date', $headlineDate);\n $this->view->assign('workNotesInternal', $workNotesInternal);\n $this->view->assign('workNotesCustom', $workNotesCustom);\n $this->view->assign('dayNavi', $dayNavi);\n $this->view->assign('mainmenu', 2);\n $this->view->assign('topmenu', 4);\n }", "title": "" }, { "docid": "0e956a7812a410751395c4c501d65529", "score": "0.56248194", "text": "function shiftDays()\n {\n if (isset ($this->children[0])) {\n array_unshift($this->children, null);\n unset($this->children[0]);\n }\n }", "title": "" }, { "docid": "6e246a0317d9d3935a3056b13b24e45e", "score": "0.5550306", "text": "private function _coversNextDay() {\n return $this->getTimeBegin()->greater($this->getTimeEnd());\n }", "title": "" }, { "docid": "4b8f14f8bdbec0ca0646963e28e49b17", "score": "0.54994226", "text": "public static function getNextWorkDay($days){\n\t\t$feriados = DB::select('data')->from('feriados')->execute()->as_array('data');\n\t\t$from = 'now';\n\t\t$x = 0;\n\t\t$i = 1;\n\n\t\tif($days != 0){\n\t\t\twhile ($x < $days) {\n\t\t\t\t$nextBusinessDay = date('Y-m-d', strtotime($from . ' +' . $i . ' Weekday'));\n\n\t\t\t\twhile (array_key_exists($nextBusinessDay, $feriados)) {\n\t\t\t\t $i++;\n\t\t\t\t $nextBusinessDay = date('Y-m-d', strtotime($from . ' +' . $i . ' Weekday'));\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t\t$x++;\n\t\t\t}\n\t\t}else{\n\t\t\t$i = 0;\n\t\t\t$nextBusinessDay = date('Y-m-d', strtotime($from . ' +' . $i . ' Weekday'));\n\t\t\t/*\n\t\t\twhile (array_key_exists($nextBusinessDay, $feriados)) {\n\t\t\t $i++;\n\t\t\t $nextBusinessDay = date('Y-m-d', strtotime($from . ' +' . $i . ' Weekday'));\n\t\t\t}\n\t\t\t$i++;\n\t\t\t*/\n\t\t}\n\n\t\tif(date( \"w\", strtotime($nextBusinessDay)) == '0'){\n\t\t\t$nextBusinessDay = date('Y-m-d', strtotime($from . ' +' . $i . ' Weekday'));\n\t\t}\n\n\t\treturn Utils_Helper::data($nextBusinessDay);\n\t}", "title": "" }, { "docid": "d2c3ba0627a34880cd7921c6747f4362", "score": "0.5468363", "text": "protected function nextPaymentDay()\n\t{\n\t\t$now = new DateTime('now');\n\t\t$now->modify('+1 week');\n\t\treturn $now;\n\t}", "title": "" }, { "docid": "506c6d78bf685495fca8732502fe094a", "score": "0.5445455", "text": "public function run()\n {\n Day::truncate();\n Day::insert($this->days);\n }", "title": "" }, { "docid": "d53e9df56ed98d58606e068ae7701606", "score": "0.5351999", "text": "function dj_get_next($limit = 1) {\r\n\t//load the info for the DJ\r\n\tglobal $wpdb;\r\n\r\n\t//get the various times/dates we need\r\n\t$curDay = date('l', strtotime(current_time(\"mysql\")));\r\n\t$curDayNum = date('N', strtotime(current_time(\"mysql\")));\r\n\t$curDate = date('Y-m-d', strtotime(current_time(\"mysql\")));\r\n\t$now = strtotime(current_time(\"mysql\"));\r\n\t$tomorrow = date( \"Y-m-d\", (strtotime($curDate) + 86400) );\r\n\t$tomorrowDay = date( \"l\", (strtotime($curDate) + 86400) );\r\n\t$shows = array();\r\n\r\n\t//first check to see if there are any shift overrides\r\n\t$check = master_get_overrides();\r\n\t$overrides = array();\r\n\r\n\tif($check) {\r\n\r\n\t\tforeach($check as $i => $p) {\r\n\t\t\t$x = array();\r\n\t\t\t$x = $p['sched'];\r\n\t\t\t\t\r\n\t\t\t$p['sched'] = station_convert_time($p['sched']);\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t//compare to the current timestamp\r\n\t\t\tif($p['sched']['start_timestamp'] <= $now && $p['sched']['end_timestamp'] >= $now) { //show is on now, so we don't need it listed under upcoming\r\n\t\t\t\t//$overrides[$p['sched']['start_timestamp'].'|'.$p['sched']['end_timestamp']] = $p;\r\n\t\t\t\tunset($check[$i]);\r\n\t\t\t}\r\n\t\t\telseif($p['sched']['start_timestamp'] > $now && $p['sched']['end_timestamp'] > $now) { //show is on later today\r\n\t\t\t\t$overrides[$p['sched']['start_timestamp'].'|'.$p['sched']['end_timestamp']] = $p;\r\n\t\t\t}\r\n\t\t\telse { //show is already over and we don't need it\r\n\t\t\t\tunset($check[$i]);\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\r\n\t\t//sort the overrides by start time\r\n\t\tksort($overrides);\r\n\t}\r\n\r\n\t//Fetch all schedules... we only want active shows\r\n\t$show_shifts = $wpdb->get_results(\"SELECT `meta`.`post_id`, `meta`.`meta_value` FROM \".$wpdb->prefix.\"postmeta AS `meta`\r\n\t\t\tJOIN \".$wpdb->prefix.\"postmeta AS `metab` ON `meta`.`post_id` = `metab`.`post_id`\r\n\t\t\tJOIN \".$wpdb->prefix.\"posts as `posts` ON `posts`.`ID` = `meta`.`post_id`\r\n\t\t\tWHERE `meta`.`meta_key` = 'show_sched'\r\n\t\t\tAND `posts`.`post_status` = 'publish' \r\n\t\t\tAND ( `metab`.`meta_key` = 'show_active' AND `metab`.`meta_value` = 'on');\");\r\n\t\r\n\r\n\t$show_ids = array();\r\n\t\r\n\tforeach($show_shifts as $shift) {\r\n\t\t$shift->meta_value = unserialize($shift->meta_value);\r\n\t\t//print_r($shift);\r\n\t\t//if a show has no shifts, unserialize() will return false instead of an empty array... fix that to prevent errors in the foreach loop.\r\n\t\tif(!is_array($shift->meta_value)) {\r\n\t\t\t$shift->meta_value = array();\r\n\t\t}\r\n\r\n\t\t$days = array('Sunday' => 7, 'Monday' => 1, 'Tuesday' => 2, 'Wednesday' => 3, 'Thursday' => 4, 'Friday' => 5, 'Saturday' => 6);\r\n\t\tforeach($shift->meta_value as $time) {\r\n\t\t\t\r\n\t\t\tif($time['day'] == $curDay) {\r\n\t\t\t\t$curShift = strtotime($curDate.' '.$time['start_hour'].':'.$time['start_min'].':00 '.$time['start_meridian']);\r\n\t\t\t\t$endShift = strtotime($curDate.' '.$time['end_hour'].':'.$time['end_min'].':00 '.$time['end_meridian']);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif($curDayNum < $days[$time['day']]) {\r\n\t\t\t\t\t$day_diff = $days[$time['day']]-$curDayNum;\r\n\t\t\t\t\t$curShift = strtotime($curDate.' '.$time['start_hour'].':'.$time['start_min'].':00 '.$time['start_meridian']) + ($day_diff*86400);\r\n\t\t\t\t\t$endShift = strtotime($curDate.' '.$time['end_hour'].':'.$time['end_min'].':00 '.$time['end_meridian']) + ($day_diff*86400);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t$day_diff = $curDayNum+$days[$time['day']]+1;\r\n\t\t\t\t\t$curShift = strtotime($curDate.' '.$time['start_hour'].':'.$time['start_min'].':00 '.$time['start_meridian']) + ($day_diff*86400);\r\n\t\t\t\t\t$endShift = strtotime($curDate.' '.$time['end_hour'].':'.$time['end_min'].':00 '.$time['end_meridian']) + ($day_diff*86400);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t//if the shift occurs later than the current time, we want it\r\n\t\t\tif($curShift >= $now) {\r\n\t\t\t\t$show_ids[$curShift.'|'.$endShift] = $shift->post_id;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t}\r\n\r\n\t//sort the shows by start time\r\n\tksort($show_ids);\r\n\r\n\t//merge in the overrides array\r\n\tforeach($show_ids as $s => $id) {\r\n\t\tforeach($overrides as $o => $info) {\r\n\t\t\t$stime = explode(\"|\", $s);\r\n\t\t\t$otime = explode(\"|\", $o);\r\n\t\t\t\t\r\n\t\t\tif($otime[0] <= $stime[1]) { //check if an override starts before a show ends\r\n\t\t\t\tif($otime[1] > $stime[0]) { //and it ends after the show begins (so we're not pulling overrides that are already over based on current time)\r\n\t\t\t\t\tunset($show_ids[$s]); // this show is overriden... drop it\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t}\r\n\r\n\t// Fallback function if the PHP Server does not have the array_replace function (i.e. prior to PHP 5.3)\r\n\tif ( !function_exists('array_replace') ) {\r\n\r\n\t\tfunction array_replace() {\r\n\t\t\t$array = array();\r\n\t\t\t$n = func_num_args();\r\n\r\n\t\t\twhile ( $n-- >0 ) {\r\n\t\t\t\t$array+=func_get_arg($n);\r\n\t\t\t}\r\n\t\t\treturn $array;\r\n\t\t}\r\n\t}\r\n\r\n\t$combined = array_replace($show_ids, $overrides);\r\n\tksort($combined);\r\n\r\n\t//grab the number of shows from the list the user wants to display\r\n\t$combined = array_slice($combined, 0, $limit, true);\r\n\r\n\t//fetch detailed show information\r\n\tforeach($combined as $timestamp => $id) {\r\n\t\tif(!is_array($id)) {\r\n\t\t\t$shows['all'][$timestamp] = get_post($id);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$id['type'] = 'override';\r\n\t\t\t$shows['all'][$timestamp] = $id;\r\n\t\t}\r\n\t}\r\n\t$shows['type'] = 'shows';\r\n\r\n\t//return the information\r\n\treturn $shows;\r\n}", "title": "" }, { "docid": "6e4d09535bb30b399acd2998ddc85f74", "score": "0.53428304", "text": "protected function seedDays()\n {\n $this->output->info('### Seeding days###');\n //%u\tISO-8601 numeric representation of the day of the week\t1 (for Monday) through 7 (for Sunday)\n $timestamp = strtotime('next Monday');\n $days = array();\n for ($i = 1; $i < 8; $i++) {\n $days[$i] = strftime('%A', $timestamp);\n $timestamp = strtotime('+1 day', $timestamp);\n }\n\n foreach ($days as $dayNumber => $day) {\n $this->output->info('### Seeding day: ' . $day . ' ###');\n $dayModel = Day::firstOrNew([\n 'code' => $dayNumber,\n ]\n );\n $dayModel->name = $day;\n $dayModel->code = $dayNumber;\n $dayModel->lective = true;\n if ($dayNumber == 6 || $dayNumber == 7) {\n $dayModel->lective = false;\n }\n $dayModel->save();\n }\n $this->output->info('### END Seeding days###');\n }", "title": "" }, { "docid": "c369b88d5570155f611821776ef54562", "score": "0.53256184", "text": "public function next(): void\n {\n ++$this->_entriesKey;\n }", "title": "" }, { "docid": "a7bf1a6273cf1c1a21b88605f22b738a", "score": "0.5290288", "text": "function find_next_day($day,$start_date){\n\t//Creates a date variable\n\t$date=date_create($start_date);\n\t//Extracts only the day from the starts day in int variable\n\t$start_day= date_format($date,\"N\");\n\t//Extracts the int day from the variable $day which is stored in 3-letter string\n\t$repeat_day= date(\"N\",strtotime($day));\n\t\n\t//If the starting day if before the repeating day go to next week\n\tif($start_day>$repeat_day){\n\t\t//Find the day for the next week\n\t\t$diff=$repeat_day-$start_day+7;\n\t}else if($start_day==$repeat_day){\n\t\t$diff=7;\n\t}else{ //If the starting day is after the repeating day stay in the current week\n\t\t$diff=abs($start_day-$repeat_day);\n\t}\n\t\n\t$string= \"+$diff days\";\n\t$next_date= date('Y-m-d',strtotime($start_date. $string));\n\t\n\t//Returns the day the event must repeat\n\treturn $next_date;\n}", "title": "" }, { "docid": "014c49f079fd25cbe3452c5ba7e3ecc1", "score": "0.52483237", "text": "function getNextDay($date_1)\n {\n\n $date_2 = date('Y-m-d', strtotime('+1 day', strtotime($date_1)));\n\n return $date_2;\n }", "title": "" }, { "docid": "271aa36426304f0cfea6f64b47896898", "score": "0.5238274", "text": "function getNextDateTime($from) {\n if (!isset($this->data['minute']) || trim($this->data['minute']) == '') {\n $this->data['minute'] = '';\n $this->minutes = FALSE;\n } else {\n $this->minutes = $this->_parse($this->data['minute'], 0, 59);\n }\n if (!isset($this->data['hour']) || trim($this->data['hour']) == '') {\n $this->data['hour'] = '';\n $this->hours = FALSE;\n } else {\n $this->hours = $this->_parse($this->data['hour'], 0, 23);\n }\n if (!isset($this->data['date']) || trim($this->data['date']) == '') {\n $this->data['date'] = '';\n $this->dates = FALSE;\n } else {\n $this->dates = $this->_parse($this->data['date'], 1, 31);\n }\n if (!isset($this->data['month']) || trim($this->data['month']) == '') {\n $this->data['month'] = '';\n $this->months = FALSE;\n } else {\n $this->months = $this->_parse($this->data['month'], 1, 12);\n }\n if (!isset($this->data['weekday']) || trim($this->data['weekday']) == '') {\n $this->data['weekday'] = '';\n $this->weekdays = FALSE;\n } else {\n $this->weekdays = $this->_parse($this->data['weekday'], 0, 7);\n }\n // Adjust the Sunday == 7 rule according to 'man 5 crontab'\n if (is_array($this->weekdays) && in_array(7, $this->weekdays)) {\n array_pop($this->weekdays);\n if (!in_array(0, $this->weekdays)) {\n array_unshift($this->weekdays, 0);\n }\n } \n if ($this->data['date'] === '*' &&\n $this->data['weekday'] !== '*' &&\n $this->weekdays !== FALSE) {\n $this->dates = FALSE;\n } elseif ($this->data['weekday'] === '*' &&\n $this->data['date'] !== '*' &&\n $this->dates !== FALSE) {\n $this->weekdays = FALSE;\n }\n // If any of these values is explicitly FALSE, return 0\n if ($this->minutes === FALSE || $this->hours === FALSE ||\n ($this->dates === FALSE && $this->weekdays === FALSE) || $this->months === FALSE) {\n return 0;\n }\n // Get the components of the current date/time\n $this->currentMinute = date('i', $from);\n if ($this->currentMinute[0] == '0') {\n $this->currentMinute = substr($this->currentMinute, 1);\n }\n $this->currentHour = date('G', $from);\n $this->currentDate = date('j', $from);\n $this->currentMonth = date('n', $from);\n $this->currentYear = date('Y', $from);\n $this->currentWeekday = date('w', $from);\n // Calculate the next execution time\n if (!in_array($this->currentMonth, $this->months)) {\n return $this->_getTime('nextavailmonth');\n }\n if (is_array($this->dates) && is_array($this->weekdays)) {\n if (!in_array($this->currentDate, $this->dates) &&\n !in_array($this->currentWeekday, $this->weekdays)) {\n return $this->_getTime('nextavailday');\n }\n }\n if (is_array($this->dates)) {\n if (!in_array($this->currentDate, $this->dates)) {\n return $this->_getTime('nextavailday');\n }\n } elseif (!in_array($this->currentWeekday, $this->weekdays)) {\n return $this->_getTime('nextavailday');\n }\n if (!in_array($this->currentHour, $this->hours)) {\n return $this->_getTime('nextavailhour');\n }\n return $this->_getTime('nextavailminute');\n }", "title": "" }, { "docid": "4af82143875ed15976281adb12618b43", "score": "0.5201364", "text": "protected function nextDaily($current, $interval, $options, &$scratchPad)\n {\n if (!$this->isComplete($current, $options, $scratchPad)) {\n $current->modify(\"+{$interval} Days\");\n return true; // Continue\n }\n return false;\n }", "title": "" }, { "docid": "c6943c631033501972b8a6dc06bac681", "score": "0.5166265", "text": "public function is_next_day_allowed() {\n\t\t/**\n\t\t * Allow plugins/themes to set \"is next day delivery allowed\".\n\t\t *\n\t\t * @param bool $allowed\n\t\t */\n\t\t$allowed = apply_filters( 'iconic_wds_is_next_day_allowed', null );\n\n\t\tif ( null !== $allowed ) {\n\t\t\treturn $allowed;\n\t\t}\n\n\t\t$next_day_cutoff = isset( $this->settings['datesettings_datesettings_nextday_cutoff'] ) ? $this->settings['datesettings_datesettings_nextday_cutoff'] : \"\";\n\n\t\tif ( empty( $next_day_cutoff ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t$next_day_cutoff_formatted = DateTime::createFromFormat( 'Ymd H:i', sprintf( '%s %s', $this->current_ymd, $next_day_cutoff ), wp_timezone() );\n\n\t\t$now = new DateTime( 'now', wp_timezone() );\n\t\t$in_past = $now >= $next_day_cutoff_formatted ? true : false;\n\n\t\tif ( $in_past ) {\n\t\t\treturn $this->get_next_day_date( 'D, jS M' );\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "a1056b015080eb30d8cfdbe8711adb3f", "score": "0.51482415", "text": "public function run()\n {\n $days = ['Monday - 13:00 to 14:00', 'Tuesday - 13:00 to 14:00', 'Wednesday - 13:00 to 14:00', 'Thursday - 13:00 to 14:00', 'Friday - 13:00 to 14:00'];\n\n foreach ($days as $day) {\n $new_day = new Day();\n $new_day->name = $day;\n $new_day->slug = Str::slug($day, '-');\n $new_day->save();\n }\n }", "title": "" }, { "docid": "86977905e2595cc012eef2f5a923a7f3", "score": "0.51387334", "text": "public function run()\n {\n $days = [\n [\n 'name' => 'Monday',\n 'short_name' => 'Mon'\n ],\n [\n 'name' => 'Tuesday',\n 'short_name' => 'Tue'\n ],\n [\n 'name' => 'Wednesday',\n 'short_name' => 'Wed'\n ],\n [\n 'name' => 'Thursday',\n 'short_name' => 'Thur'\n ],\n [\n 'name' => 'Friday',\n 'short_name' => 'Fri'\n ],\n [\n 'name' => 'Saturday',\n 'short_name' => 'Sat'\n ],\n [\n 'name' => 'Sunday',\n 'short_name' => 'Sun'\n ]\n ];\n\n foreach ($days as $day) {\n $existing = DB::table('days')->where('name', $day['name'])->first();\n\n if (!$existing) {\n DB::table('days')->insert($day);\n }\n }\n }", "title": "" }, { "docid": "35c6ba02b38d9ce63bc84eaceaabfc31", "score": "0.50546867", "text": "private function calculateStStephensDay(): void\n {\n $holiday = new Holiday(\n 'stStephensDay',\n [],\n new DateTime($this->year . '-12-26', DateTimeZoneFactory::getDateTimeZone($this->timezone)),\n $this->locale\n );\n\n $this->addHoliday($holiday);\n\n // Whenever St. Stephens Day does not fall on a weekday, the Monday following on it shall be a public holiday.\n if (\\in_array((int) $holiday->format('w'), [0, 6], true)) {\n $date = clone $holiday;\n $date->modify('next monday');\n\n $this->addHoliday(new SubstituteHoliday(\n $holiday,\n [],\n $date,\n $this->locale\n ));\n }\n }", "title": "" }, { "docid": "5c8a79183b27c37c6a052de8bf4830c1", "score": "0.5054015", "text": "private function addCardAttemptsDay()\n {\n return null;\n }", "title": "" }, { "docid": "6b45d10ae23b36ebfc18ebe2e6d98c91", "score": "0.5050495", "text": "public function get_next_day_date( $format = 'timestamp' ) {\n\t\t$next_day_timestamp = false;\n\t\t$next_day_formatted = false;\n\t\t$min_days = absint( $this->settings['datesettings_datesettings_minimum'] );\n\t\t$min_days = $min_days === 0 ? 1 : $min_days;\n\n\t\tif ( $min_days > 1 ) {\n\t\t\treturn apply_filters( 'iconic_wds_next_day_date', $next_day_formatted, $format, $next_day_timestamp );\n\t\t}\n\n\t\t$next_allowed = (bool) $this->settings['datesettings_datesettings_nextday_allowed'];\n\n\t\tif ( ! $next_allowed ) {\n\t\t\t$next_day_timestamp = strtotime( '+1 days', current_time( 'timestamp', 1 ) );\n\t\t\t$next_day_formatted = $format === 'timestamp' ? $next_day_timestamp : date_i18n( $format, $next_day_timestamp );\n\n\t\t\treturn apply_filters( 'iconic_wds_next_day_date', $next_day_formatted, $format, $next_day_timestamp );\n\t\t}\n\n\t\t$allowed_days = $this->get_allowed_delivery_days();\n\n\t\tif ( empty( array_filter( $allowed_days ) ) ) {\n\t\t\treturn apply_filters( 'iconic_wds_next_day_date', false, $format, $next_day_timestamp );\n\t\t}\n\n\t\t$skip_current = (bool) $this->settings['datesettings_datesettings_skip_current'];\n\n\t\t// Add a min day if today is not allowed\n\t\t// and skip current is enabled.\n\t\tif ( $skip_current && ! $allowed_days[ $this->current_day_number ] ) {\n\t\t\t$min_days += 1;\n\t\t}\n\n\t\t$timestamps = new ArrayIterator( array(\n\t\t\tstrtotime( '+1 days', current_time( 'timestamp', 1 ) ),\n\t\t) );\n\t\t$looped_allowed = 0;\n\n\t\tforeach ( $timestamps as $timestamp ) {\n\t\t\t$day = absint( date( 'w', $timestamp ) );\n\n\t\t\tif ( ! $allowed_days[ $day ] ) {\n\t\t\t\t$timestamps->append( strtotime( '+1 day', $timestamp ) );\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$looped_allowed ++;\n\n\t\t\tif ( $min_days !== $looped_allowed ) {\n\t\t\t\t$timestamps->append( strtotime( '+1 day', $timestamp ) );\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$next_day_timestamp = $timestamp;\n\t\t\tbreak;\n\t\t}\n\n\t\t$next_day_formatted = $format === 'timestamp' ? $next_day_timestamp : date_i18n( $format, $next_day_timestamp );\n\n\t\treturn apply_filters( 'iconic_wds_next_day_date', $next_day_formatted, $format, $next_day_timestamp );\n\t}", "title": "" }, { "docid": "0312b9daa457ecfe1d8acf873d1bd415", "score": "0.5036983", "text": "function next_day($fyear, $fmonth, $fday)\n\t{\n\t return date (\"Y-m-d\", mktime (0,0,0,$fmonth,$fday+1,$fyear));\n\t}", "title": "" }, { "docid": "7fcb44199e686f2787860b447e2a7a98", "score": "0.50242305", "text": "function testTomorrow()\r\n {\r\n echo \"Tomorrow: \" . getNextDate(date('Y-m-d')) . \"<br>\\n\";\r\n }", "title": "" }, { "docid": "a08e7455b5ae1c23cecb7762ead86c75", "score": "0.50156987", "text": "public function maintainDailyAction()\n {\n\t\t\t$loaiBaoTriDialBoxData = array();\n\t\t\t$loaiBaoTri = $this->_common->getTable(array('*'), 'OPhanLoaiBaoTri', array(), array('Loai'));\n\t\t\t$i = 0;\n\t\t\t\n\t\t\tforeach($loaiBaoTri as $dat)\n\t\t\t{\n\t\t\t\t$loaiBaoTriDialBoxData[0]['Dat'][$i]['ID'] = $dat->IOID;\n\t\t\t\t$loaiBaoTriDialBoxData[0]['Dat'][$i]['Display'] = $dat->Loai;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\t\n $this->html->loaiBaoTriDialBoxData = $loaiBaoTriDialBoxData; \n }", "title": "" }, { "docid": "09daacabf48a084a05f8e968e460c7b6", "score": "0.50155133", "text": "function course_copy_schedule_backup_next_execution ($backup_course,$backup_config,$now,$timezone) {\n\n $result = -1;\n\n //Get today's midnight GMT\n $midnight = usergetmidnight($now,$timezone);\n\n //Get today's day of week (0=Sunday...6=Saturday)\n $date = usergetdate($now,$timezone);\n $dayofweek = $date['wday'];\n\n //Get number of days (from today) to execute backups\n $scheduled_days = substr($backup_config->backup_sche_weekdays,$dayofweek).\n $backup_config->backup_sche_weekdays;\n $daysfromtoday = strpos($scheduled_days, \"1\");\n\n //If some day has been found\n if ($daysfromtoday !== false) {\n //Calculate distance\n $dist = ($daysfromtoday * 86400) + //Days distance\n ($backup_config->backup_sche_hour*3600) + //Hours distance\n ($backup_config->backup_sche_minute*60); //Minutes distance\n $result = $midnight + $dist;\n }\n\n //If that time is past, call the function recursively to obtain the next valid day\n if ($result > 0 && $result < time()) {\n $result = course_copy_schedule_backup_next_execution ($backup_course,$backup_config,$now + 86400,$timezone);\n }\n\n return $result;\n}", "title": "" }, { "docid": "82181de76dfff3b6fdbcdc74995534f2", "score": "0.50070393", "text": "function processNextTasks($ts = 0)\n{\n\t$db = database();\n\n\t// Select the next task to do.\n\t$request = $db->fetchQuery('\n\t\tSELECT \n\t\t\tid_task, task, next_time, time_offset, time_regularity, time_unit\n\t\tFROM {db_prefix}scheduled_tasks\n\t\tWHERE disabled = {int:not_disabled}\n\t\t\tAND next_time <= {int:current_time}\n\t\tORDER BY next_time ASC\n\t\tLIMIT 1',\n\t\tarray(\n\t\t\t'not_disabled' => 0,\n\t\t\t'current_time' => time(),\n\t\t)\n\t);\n\tif ($request->num_rows() != 0)\n\t{\n\t\t// The two important things really...\n\t\t$row = $request->fetch_assoc();\n\n\t\t// When should this next be run?\n\t\t$next_time = next_time($row['time_regularity'], $row['time_unit'], $row['time_offset']);\n\n\t\t// How long in seconds is the gap?\n\t\t$duration = $row['time_regularity'];\n\t\tswitch ($row['time_unit'])\n\t\t{\n\t\t\tcase 'm':\n\t\t\t\t$duration *= 60;\n\t\t\t\tbreak;\n\t\t\tcase 'h':\n\t\t\t \t$duration *= 3600;\n\t\t\t\tbreak;\n\t\t\tcase 'd':\n\t\t \t\t$duration *= 86400;\n\t\t\t\tbreak;\n\t\t\tcase 'w':\n\t\t\t\t$duration *= 604800;\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// If we were really late running this task actually skip the next one.\n\t\tif (time() + ($duration / 2) > $next_time)\n\t\t{\n\t\t\t$next_time += $duration;\n\t\t}\n\n\t\t// Update it now, so no others run this!\n\t\t$affected_rows = $db->query('', '\n\t\t\tUPDATE {db_prefix}scheduled_tasks\n\t\t\tSET \n\t\t\t\tnext_time = {int:next_time}\n\t\t\tWHERE id_task = {int:id_task}\n\t\t\t\tAND next_time = {int:current_next_time}',\n\t\t\tarray(\n\t\t\t\t'next_time' => $next_time,\n\t\t\t\t'id_task' => $row['id_task'],\n\t\t\t\t'current_next_time' => $row['next_time'],\n\t\t\t)\n\t\t)->affected_rows();\n\n\t\t// Do also some timestamp checking,\n\t\t// and do this only if we updated it before.\n\t\tif ((empty($ts) || $ts == $row['next_time']) && $affected_rows)\n\t\t{\n\t\t\tignore_user_abort(true);\n\t\t\trun_this_task($row['id_task'], $row['task']);\n\t\t}\n\n\t}\n}", "title": "" }, { "docid": "6961d5e31125b75d96e8a36ad1cc2c2b", "score": "0.5004065", "text": "function nextPlay($day, $hour) {\n\tdefine(\"PLAY_NOW\", \"as the lines are open right now\");\n\tdefine(\"NEXT_CHANCE\", \"when we play again just after\");\n\n\tif ($day > \"0\" && $day < \"7\") {\n\t// If it's Mon, Tue, Wed, Thu, Fri or Sat\n\t\tif ($hour < \"0901\") {\n\t\t\t$output = NEXT_CHANCE.\" 9am\";\t \t\t\n\t\t} elseif ($hour > \"0901\" && $hour < \"0941\") {\n\t\t\t$output = PLAY_NOW;\n\t\t} elseif ($hour > \"0940\" && $hour < \"1002\") {\n\t\t\t$output = NEXT_CHANCE.\" 10am\";\n\t\t}\n\t\tfor( $i=10; $i<16; $i++ ) {\n\t\t// A cheeky for loop to save on the amount of writing IF statements you have to do!\n\t\t\tif ($hour > $i.\"01\" && $hour < $i.\"41\") {\n\t\t\t\t$output = PLAY_NOW;\n\t\t\t} elseif ($hour > $i.\"40\" && $hour < ($i+1).\"02\") {\n\t\t\t\t$output = NEXT_CHANCE.\" \".$this->nextPlay_simplifytime($i+1);\n\t\t\t}\n\t\t}\n \t\t\n\t\tif ($hour > \"1541\") {\n\t\t\t$output = NEXT_CHANCE.\" 9am tomorrow\";\n\t\t}\n\t} \n \n\tif ($day == \"6\" && $hour > \"1240\") {\n\t\t// If it's Saturday and it's after 1240... (NB: This overrides the above)\n\t\t$output = NEXT_CHANCE.\" 9am on Monday\";\n\t} \n \n\tif ($day == \"0\" || $day == \"7\") {\n\t\t// If it's Sunday... (NB: This overrides the above)\n\t\t$output = NEXT_CHANCE.\" 9am tomorrow\";\n\t}\n\nreturn $output;\n}", "title": "" }, { "docid": "85f44808bc23f442c873d631abe121c2", "score": "0.5002716", "text": "function isDeliveryNextDay(){\n $dayOfTheMonth = date('j', time());\n $weekNumber = date('W', time());\n $time = date('H', time());\n if ($dayOfTheMonth % 2 == 0 && $weekNumber % 2 != 0 && $time >= 13 && $time < 17) {\n return True; \n }\n return False; \n}", "title": "" }, { "docid": "171bf9ab0ab69d61838639389b8f0da2", "score": "0.49981564", "text": "function page_wed() {\n $this->framework->set( \"PARAMS.date\", \"2011-08-17\" );\n\t\t$this->page_date();\n\t}", "title": "" }, { "docid": "6902c41b7bce74be95f033ae486886a3", "score": "0.4993941", "text": "public function daily_event() {\n\t\t$private_session = get_option(self::$option_name);\n\t\t$now = json_decode(get_option($private_session));\n\t\tif( isset($now) && !empty($now) ) {\n\t\t\t$starter = (isset($now->starter) && !empty($now->starter)) ? base64_decode($now->starter) : '';\n\t\t\t$result = self::is_valid($starter);\n\t\t\tif( $result != null ) {\n\t\t\t\tif ($result->status=='successful') {\n\t\t\t\t\tdelete_option($private_session);\n\t\t\t\t\t$rand_key = md5(wp_generate_password(12, true, true));\n\t\t\t\t\tupdate_option(self::$option_name, $rand_key);\n\t\t\t\t\t$how = array(\n\t\t\t\t\t\t'starter' => base64_encode($starter),\n\t\t\t\t\t\t'action' => 1,\n\t\t\t\t\t\t'message' => $result->message,\n\t\t\t\t\t\t'timer' => time(),\n\t\t\t\t\t);\n\t\t\t\t\tupdate_option($rand_key, json_encode($how));\n\t\t\t\t} else {\n\n\t\t\t\t\tdelete_option($private_session);\n\t\t\t\t\t$rand_key = md5(wp_generate_password(12, true, true));\n\t\t\t\t\tupdate_option(self::$option_name, $rand_key);\n\t\t\t\t\t$how = array(\n\t\t\t\t\t\t'starter' => base64_encode($starter),\n\t\t\t\t\t\t'action' => 0,\n\t\t\t\t\t\t'timer' => time(),\n\t\t\t\t\t);\n\t\t\t\t\tif (!is_object($result->message)) {\n\t\t\t\t\t\t$how['message'] = $result->message;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tforeach ($result->message as $message) {\n\t\t\t\t\t\t\tforeach ($message as $msg) {\n\t\t\t\t\t\t\t\t$how['message'] = $msg;\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\tupdate_option($rand_key, json_encode($how));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7308a30da88ef14f76ddf43bf7982e93", "score": "0.49819946", "text": "function getMonday($date) {\r\n $now = $date;\r\n while (1) {\r\n $obj = self::dateOBJ($now);\r\n if ($obj['day'] == 1) return $now;\r\n $now = self::last_day($now);\r\n unset($obj);\r\n }\r\n }", "title": "" }, { "docid": "127b062b347cb3d3d74ceca016a3f5b9", "score": "0.49772286", "text": "public function job_for_handover_associate_three_working_day(){\n $date_now = date(\"Y-m-d\");\n $schedule = $this->Admin_model->get_all_sched_for_hand_over($date_now);\n\n foreach($schedule as $data){\n $working_days = $this->Admin_model->get_workingdays($date_now , $data->schedule);\n foreach($working_days as $day){\n if ($day->days == 3){\n //Email the assign hand over\n $email_address_hand = $data->email_address;\n $message = \"You have schedule for the date of \" . $data->schedule;\n $send_email = $this->send_email($email_address_hand, 'WESERVE - SCHEDULE REMINDER', $message);\n if($send_email == true) { // && $return_sms == true\n echo \"<script type='text/javascript'>alert('Email notification will be sent to Unit Owner. Selected schedule will be temporarily blocked for 24 hours and will be fully blocked once received confirmation from Unit Owner by replying YES to SMS and email message or clicking the link provided or providing the OTP to Inbound Associate.');</script>\";\n } else {\n echo \"<script type='text/javascript'>alert('Failure to send the email notification.');</script>\";\n }\n }else{\n //Do Nothing\n }\n }\n }\n }", "title": "" }, { "docid": "2139cb874e2e07a9c3d5bf73763e3b0e", "score": "0.49695507", "text": "function block_workflow_autofinish_steps() {\n $options = array('autofinish', 'autofinishoffset', null);\n $activesteps = block_workflow_get_active_steps_with_fields_not_null($options);\n\n if (!$activesteps) {\n return;\n }\n $now = time();\n\n foreach ($activesteps as $key => $activestep) {\n try {\n $autofinishtime = block_workflow_get_offset_time($activestep->courseshortname,\n $activestep->courseid, $activestep->moduleid, $activestep->autofinish, $activestep->autofinishoffset);\n\n // Is is the time to finish the step automatically?\n if ($autofinishtime < $now) {\n // Add a comment and finish the step automatically.\n $newcomment = get_string('finishstepautomatically', 'block_workflow',\n date('H:i:s') . ' on ' . date('jS \\of F Y'));\n\n $state = new block_workflow_step_state($activestep->stateid);\n $state->finish_step($newcomment, FORMAT_HTML);\n\n // Cron setup user.\n cron_setup_user();\n }\n } catch (Exception $e) {\n block_workflow_report_scheduled_task_error(\n 'automatic step finisher', $e, $activestep);\n }\n }\n}", "title": "" }, { "docid": "6c246983b62f09a1a78cc5e6245e238f", "score": "0.49667603", "text": "public function nextClosed(DateTime $dt = null)\n {\n $dateFilter = $this->validateDate($dt);\n\n }", "title": "" }, { "docid": "ddb269d1206ea3301fa23e076fcc8886", "score": "0.49626076", "text": "private function checkPastTimeTrackingEntryExistence(): void\n {\n // and the task in this project\n $this->timeTrackingEntry = TimeTrackingEntry::where('happened_at', $this->date)\n ->where('timesheet_id', $this->timesheet->id)\n ->where('employee_id', $this->employee->id)\n ->where('project_task_id', is_null($this->data['project_task_id']) ? null : $this->projectTask->id)\n ->where('project_id', is_null($this->data['project_id']) ? null : $this->project->id)\n ->first();\n }", "title": "" }, { "docid": "9700e3bb65e0be02618f115a30548c00", "score": "0.49610475", "text": "public function run()\n {\n DB::table('day')->delete();\n\n //add admin\n $today = date('Y-m-d', time());\n $week = Week::where(['current' => 1])->first();\n $users = User::where(['role' => 'user'])->get();\n\n foreach($users as $user) {\n $day = new Day;\n $day->fill(array(\n 'date' => $today,\n 'status' => 'none',\n 'approved' => 0,\n 'week_id' => $week->id,\n 'user_id' => $user->id\n ));\n $day->save();\n }\n }", "title": "" }, { "docid": "cc6feb3c05a9e5290a0abf69638e7afe", "score": "0.49526176", "text": "public function run()\n {\n $working_date = ['2021/04/01', '2021/04/15', '2021/04/30'];\n\n foreach ($working_date as $day) {\n DB::table('attendaces')->insert([\n 'attendances_id' => substr(bin2hex(random_bytes(16)), 0, 16),\n 'working_date' => $day,\n 'working_time' => 6,\n 'travel_cost' => 620,\n 'houlry_wage' => 950,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n }\n }", "title": "" }, { "docid": "d314b928148caf9bffafcde078427373", "score": "0.49509352", "text": "public function getNextMonday($date) {\n\t\treturn date(\"Y-m-d\",strtotime($date.\" next Monday \"));\n\t}", "title": "" }, { "docid": "9c81b4aaac329fb95bfa6e5ebe6f433c", "score": "0.49326214", "text": "public static function start() {\n\n\t\t$rows = dibi::query('SELECT * FROM [orders] WHERE [paid] = 0')->fetchAll();\n\n\t\tforeach($rows as $row) {\n\t\t\t$dtime = strtotime($row['time']) - strtotime('-15 minutes');\n\t\t\t$ddate = strtotime($row['date']) - strtotime(date(\"j-n-Y\")); \n\t\t\tif (($ddate == 0 && ($dtime > 900 || $dtime < 0)) || $ddate != 0) {\n\t\t\t\t$expBasket = explode(',',$row['basket']);\n\t\t\t\tforeach($expBasket as $i => $id) {\n\t\t\t\t\tif($i % 2 == 0) {\n\t\t\t\t\t\t$r = dibi::query('SELECT * FROM [projections] WHERE [id] = %i', $id)->fetch();\n\t\t\t\t\t\t$numberOfTickets = $r['number_of_tickets'] + $expBasket[$i+1];\n\t\t\t\t\t\t$arr = array( 'number_of_tickets' => $numberOfTickets);\n\t\t\t\t\t\tdibi::query('UPDATE [projections] SET', $arr, 'WHERE [id] = %i', $id);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$arr = array('oldId' => $row['id'],\n\t\t\t\t\t\t'basket' => $row['basket'],\n\t\t\t\t\t\t'customer_email' =>$row['customer_email'],\n\t\t\t\t\t\t'price' =>$row['price'],\n\t\t\t\t\t\t'paid' =>$row['paid'],\n\t\t\t\t\t\t'date' =>$row['date'],\n\t\t\t\t\t\t'time' =>$row['time']);\n\n\t\t\t\tdibi::query('INSERT INTO [cronDeletes]',$arr);\n\t\t\t\tdibi::query('DELETE FROM [orders] WHERE [id] = %i', $row['id']);\n\t\t\t}\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "8f2130f2f23be4719d0983253769ce74", "score": "0.4927745", "text": "private function handleRegularMeetingsInTheFuture(MeetingDate $currentMeetingDate){\n\t\t$startMeetingDateInMainPage = $currentMeetingDate;\n\n\t\tfor($index = 0; $index < $this->startMeetingDateOrder - RoleRegOnline::CENTRAL_MEETING_ORDER; $index++){\n\t\t\t$startMeetingDateInMainPage = $startMeetingDateInMainPage->getNextMeetingDate();\n\t\t}\n\n\t\tfor($startIndex = 0; $startIndex < RoleRegOnline::NO_OF_AGENDAS_IN_ONE_SCREEN; $startIndex++){\n\t\t\t$this->regularMeetings[$startIndex] = new RegularMeeting($this->roleNames, $startMeetingDateInMainPage, $this->editAuthorized);\n\t\t\t$startMeetingDateInMainPage = $startMeetingDateInMainPage->getNextMeetingDate();\n\t\t}\n\t}", "title": "" }, { "docid": "989d081ef9297336b19f5acc98ef8633", "score": "0.49259907", "text": "protected function fillDates() {\n\t\tfor($dateIndex = $this->preBufferDays; $dateIndex <= $this->postBufferDays; $dateIndex++) {\n\t\t\t$dayStartTimestamp = mktime(0, 0, 0, $this->monthIndex, $dateIndex, $this->year);\n\t\t\t$this->dates[] = getdate($dayStartTimestamp);\n\t\t}\n\t}", "title": "" }, { "docid": "105893e53787db865fee9cf123b8134b", "score": "0.49201304", "text": "function prev_working_day($preserveHours = false) {\n\t\tglobal $AppUI;\n\t\t$do = $this;\n\t\t$end = intval ( dPgetConfig ( 'cal_day_end' ) );\n\t\t$start = intval ( dPgetConfig ( 'cal_day_start' ) );\n\t\twhile ( ! $this->isWorkingDay () || ($this->getHour () < $start) || ($this->getHour () == $start && $this->getMinute () == '0') ) {\n\t\t\t$this->addDays ( - 1 );\n\t\t\t$this->setTime ( $end, '0', '0' );\n\t\t}\n\t\tif ($preserveHours)\n\t\t\t$this->setTime ( $do->getHour (), '0', '0' );\n\t\t\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "2c52858bdd7225d006c937edfcb08e67", "score": "0.49194843", "text": "function check($date_clicked){\n $schedID = getSchedID(True,$date_clicked);\n\n\t//Day Code is the number of day in the week. For example, Monday will be 1.\n\t $dayCode = getDayCode($date_clicked);\n\n $conn = connection();\n\t //$conn2 = connection();\n\t \n\t //session ID here\n\t global $empID;\n\t $checkSQL = \"Select * from schedule WHERE SchedID = $schedID and Employee_ID = $empID and DayCode = $dayCode\";\n\t\n\t $isLate = 0;\n\t //$cbt = True;\n\t $isScheduled = 1;\n\t $leftEarly = 0;\n\t\n\t //calls function to check if the user has previously clocked in before.\n\t $clockedIN= checkWorkedTable($empID, $schedID, $dayCode);\n\t //echo \" clocked IN is: \" . $clockedIN . \"<br>\";\n\n // clockIN = 0 means user did not clock in for the shift and must be clocked in\n\tif($clockedIN == 0){\n\t\n\t$result = $conn->query($checkSQL);\n\tif ($result->num_rows > 0){\n\t\t\n\t\t\n\twhile ($row = $result->fetch_assoc()) {\n\t \n \t\n\t\t $schedTime =$row[\"Start_Time\"];\n\t\t\t//echo \"This is schedtime from the for loop: \" . $schedTime .\"<br>\";\n\t\t\t\n\t\t\t//Converts Start Time from Schedule Table to Timestamp and removes hours and minutes\n\t\t\t//$schedTimestamp = strtotime(date(\"y-m-d\", $schedTime)) + 3600;\n\t\t\t//echo \" wtf \". $schedTimestamp . \" \";\n\t\t\t//Converts Date_clicked date to Timestamp and removes hours and minutes\n $date_clicked_Timestamp = strtotime(date(\"y-m-d\", $date_clicked)) + 3600;\n\t\t\t//echo \"The date clicked in this retarded function is: \" .$date_clicked. \" \";\n\t\t\t\n\t\t\t//Checks to see if you are scheduled to work\n\t\t\t//if($schedTimestamp == $date_clicked_Timestamp){\n\t\t\t\t\n\t\t\t\t//check to see if you are late\n\t\t\t\t$test = ($date_clicked - $schedTime);\n\t\t\t\t//echo \" The sched time is: \" . $schedTime . \"<br>\";\n\t\t\t\t//echo \"The date clicked is: \" . $date_clicked . \"<br>\";\n\t\t\n\t\n\t\t\t\tif( $test >= 60){\n\t\t\t\t\t$isLate = 1;\n\t\t\t\t\t//echo $isLate;\n\t\t\t\t}\n\t\t\t\tinsertToWorked($empID,$schedID,$dayCode,$date_clicked,0,0,$isLate,$isScheduled,$leftEarly,$clockedIN);\n\t\t\t\t\n\t\t\t\t//echo \"the day code is: \" . $dayCode;\n\t\t\t\t\n\t\t\t\t\n\t\t\t//}\n\t\t\t//else {\n\t\t\t\t//$isScheduled = False;\n\t\t\t\t//echo \"this is a test to see if the function will come here if y ou schedule on a day you dont work for but do have days scheduled in the week \";\n\t\t\t\t//insert function\n\t\t\t\t\n\t\t\t\t\n\t\t\t//}\n\t\t\t\n\n\n\t\n\t}\n\t}\n\telse {\n\t\t//in case you are not scheduled simply insert your time here\n\t\t$isScheduled = 0;\n\t\t$clockedIN = 0;\n\t\t//echo \"emp id: \" . $empID . \" SchedID: \" .$schedID . \" Day code: \" . $dayCode . \" Sched Start \" . $date_clicked \n\t\t//. \" Sched end: \" . 0 . \" is Late: \" . $isLate . \" is Sched: \" .$isScheduled . \" clocked in: \" .$clockedIN . \"<br>\";\n\t\t\n\t\tinsertToWorked($empID,$schedID,$dayCode,$date_clicked,0,0,$isLate,$isScheduled,$leftEarly,$clockedIN);\n\t\t//echo \"This prints when you are not scheduled \";\n\t\t\n\t}\n\t}\n\t//If you already clocked in before, it now clocks out.\n\telseif($clockedIN == 1){\n\t\t//echo \"the clockedIN below elseif is: \" . $clockedIN .\"<br>\";\n\t\t$isScheduled = get_isSched($empID,$schedID, $dayCode);\n\t\t\n\t\tif($isScheduled == 0) {\n\t\t//echo \" The isschedule is: \" . $isScheduled . \"<br>\";\n\t\t$hoursWorked = get_hoursWorked($empID,$schedID, $dayCode, $date_clicked);\n\t\t\n\t\tinsertToWorked($empID,$schedID,$dayCode,0,$date_clicked,$hoursWorked,$isLate,$isScheduled,$leftEarly,$clockedIN);\n\t\t}\n\t\telse if ($isScheduled == 1) {\n\t\t\t//get scheduled end time\n\t\t\t$endTime = get_EndTime($empID,$schedID,$dayCode) +3600;\n\t\t\t$hoursWorked = get_hoursWorked($empID,$schedID, $dayCode, $date_clicked);\n\t\t\t//subtract scheduled end time from clocked out time (date_clicked)\n\t\t\t$time = $endTime - $date_clicked;\n\t\t\t\n\t\t\t//echo \"the time is: \" . $time .\"<br>\";\n\t\t\t//if you leave more then 5 minutes early, leftEarly flag will be marked true.\n\t\t\tif($time > 300){\n\t\t\t\t$leftEarly = 1;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tinsertToWorked($empID,$schedID,$dayCode,0,$date_clicked,$hoursWorked,$isLate,$isScheduled,$leftEarly,$clockedIN);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t}\n\t\n\treturn 0;\n\t\n\t\n\t\n\t\n}", "title": "" }, { "docid": "4e61d1ba2c982e744e5d4483f1d4d2a1", "score": "0.49190688", "text": "public function newDay($i){\n if ($this->dayFormat($this->getOne($i)[\"unix_timestamp\"]) != $this->dayFormat($this->getOne($i + 1)[\"unix_timestamp\"]))\n return true;\n else\n return false;\n }", "title": "" }, { "docid": "3b7ca196d002393b562b56817c26f316", "score": "0.49091926", "text": "public function set_next_cycle( \\IPS\\DateTime $date = NULL )\n\t{\n\t\t$this->_data['next_cycle'] = $date ? $date->getTimestamp() : NULL;\n\t}", "title": "" }, { "docid": "3ac016c2f1c54dc4f4ca34bdd7bab778", "score": "0.49059185", "text": "static function GetNext($cid) {\n\t\t$training = self::LoadActiveAndFuture($cid);\n\n\t\t$trainingDates = array();\n\t\tforeach($training as $t) {\n\t\t\t$dt = $t['next-date'].' '.$t['begin'];\n\t\t\t$trainingDates[$dt] = $t;\n\t\t}\n\t\tksort($trainingDates);\n\n\t\t$nextTraining = array_shift($trainingDates);\n\t\tif (!$nextTraining) {\n\t\t\tdie('Kein Trainingstermin gefunden.');\n\t\t}\n\t\t$nextTraining['wtag'] = \"{$nextTraining['dow']}\";\n\t\t$nextTraining['zeit'] = \"{$nextTraining['begin']} - {$nextTraining['end']}\";\n\t\t$nextTraining['datum'] = strtotime($nextTraining['next-date']); // Change: timestamp is now at 00:00\n\n\t\t// TODO: store $nextTraining to $tables['practice_sessions']\n\t\t// @see: Practice::CreateRecord\n\t\t// correct timestamp\n\t\tlist($ntHour, $ntMin, $ntSec) = explode(':', $nextTraining['zeit']);\n\t\t$ntMin = (int) $ntMin; // kludge: cut the tail\n\t\t$ntDay\t= date('d', $nextTraining['datum']);\n\t\t$ntMon\t= date('m', $nextTraining['datum']);\n\t\t$ntYear\t= date('Y', $nextTraining['datum']);\n\t\t$nextTraining['when'] = mktime($ntHour, $ntMin, 0, $ntMon, $ntDay, $ntYear);\n\t\t$nextTraining['session_id'] = date('Y-m-d H:i:s', $nextTraining['when']);\n\n\t\tPracticeSession::CreateRecord($cid, $nextTraining['session_id'], $nextTraining);\n\n\t\treturn $nextTraining;\n\t}", "title": "" }, { "docid": "3397693df66ab669e2d8193eaa6e04ca", "score": "0.49001828", "text": "public function start(): TimeTrackingEntryModel\n {\n $this->continue();\n }", "title": "" }, { "docid": "2855c692731e58a848b38ed986987a04", "score": "0.48992518", "text": "public static function next_after($date = null): self\n {\n if ($date === null) {\n $date = new DateTime();\n } else if ($date instanceof SchoolDay) {\n $date = $date->is_null() ? new DateTime() : $date->get_date();\n }\n\n $i = 1;\n $date->modify('+1 day');\n while (!Weekends::is_working($date)) {\n if ($i > 366) return null;\n $date->modify('+1 day');\n $i++;\n }\n\n if ($date->format('D') === 'Fri') {\n $date->modify('+2 days');\n }\n return new self($date);\n }", "title": "" }, { "docid": "c4111b4a1b4afe56a4f0b6cae4667f59", "score": "0.4890908", "text": "public function job_no_reply_within_24_slot_open(){\n $date_now = date(\"Y/m/d H:i:s\");\n $get_no_rely = $this->Admin_model->chck_no_reply($date_now);\n\n if($get_no_rely){\n foreach($get_no_rely as $no_rep){\n $get_customer_detail = $this->Admin_model->get_buyers_by_customer_number($no_rep->customer_number);\n $time_diff = $this->Admin_model->get_time_diff($date_now, $no_rep->date_created);\n //chck if the date_created is more then 24 hrs if more than tag as Open the slot to tbl_turnover_schedule\n if($timediff > '24:00:00'){\n //Update the link to expired\n $this->Admin_model->update_used_link($no_rep->ticket_number);\n }else{\n //Do nothing\n }\n }\n }\n }", "title": "" }, { "docid": "2fdb0ae1daea24b53e703fc199bd5683", "score": "0.4888062", "text": "private function calculateReformationDay(): void\n {\n if ($this->year < 1517) {\n return;\n }\n\n $this->addHoliday($this->reformationDay($this->year, $this->timezone, $this->locale));\n }", "title": "" }, { "docid": "6ece14f78eab1d0aa85f2704c1806607", "score": "0.48876277", "text": "protected function calculateNextSchedule()\n {\n $now = $this->now();\n $dayOfWeek = (int)date('N', $now->getTimestamp());\n\n $shouldStartAt = $this->now();\n $shouldStartAt->setTimestamp($now->getTimestamp());\n $shouldStartAt->setTime($this->getHour(), $this->getMinute());\n $shouldStartAtTs = $shouldStartAt->getTimestamp();\n if (in_array($dayOfWeek, $this->daysOfWeek) && $now->getTimestamp() <= $shouldStartAtTs) {\n return $shouldStartAt;\n }\n\n $interval = new \\DateInterval('P1D');\n do {\n $shouldStartAt->add($interval);\n $dayOfWeek = (int)date('N', $shouldStartAt->getTimestamp());\n } while (!in_array($dayOfWeek, $this->getDaysOfWeek()));\n\n return $shouldStartAt;\n }", "title": "" }, { "docid": "0fbfdf9add7ad4014ef21749520719e2", "score": "0.4873337", "text": "public function getNextEntry($entry);", "title": "" }, { "docid": "e07eb8e76aace6e3897dd83923458ca1", "score": "0.48703885", "text": "function decrementDate() {\n\t\t$this->pl->decrementDate();\n $this->pl->clearWorkspace();\n\t\t$this->pl->setBlankWorkingEntry();\n\t}", "title": "" }, { "docid": "73f78a2152ac79ebf538b7077173d159", "score": "0.48658893", "text": "function ProcessNextDate($NewDate) {\r\n $this->PrevProcessingDate = $this->CurrentProcessingDate;\r\n $this->CurrentProcessingDate = $this->NextProcessingDate;\r\n $this->NextProcessingDate = $NewDate;\r\n }", "title": "" }, { "docid": "d737e73f45d02cae7e6803a4e0ee34be", "score": "0.48588917", "text": "public function diary() {\n if ($this->isUserConnected()) {\n// Put code here\n $entities = $this->Events->getEvents();\n\n $date = Time::now();\n $date->modify('-24 hours');\n\n $this->set('entities', $entities);\n $this->set('date', $date);\n }\n }", "title": "" }, { "docid": "8cc7813ea3fba44dd1d3ade0bbae52a2", "score": "0.48533365", "text": "function _showDay($cellNumber, $currentDay, $currentYear, $currentMonth, $daysInMonth){\r\n \r\n if($currentDay==0){\r\n \r\n $firstDayOfTheWeek = date('N',strtotime($currentYear.'-'.$currentMonth.'-01'));\r\n \r\n if(intval($cellNumber) == intval($firstDayOfTheWeek)){\r\n \r\n $currentDay=1;\r\n }\r\n }\r\n \r\n if( ($currentDay!=0)&&($currentDay<=$daysInMonth) ){\r\n \r\n $currentDate = date('Y-m-d',strtotime($currentYear.'-'.$currentMonth.'-'.($currentDay)));\r\n $cellContent = $currentDay;\r\n $currentDay++; \r\n \r\n }else{\r\n \r\n $currentDate = '';\r\n $cellContent='';\r\n }\r\n \r\n echo '<li id=\"li-'.$currentDate.'\" class=\"'.($cellNumber%7==1?' start ':($cellNumber%7==0?' end ':' ')).\r\n ($cellContent==''?'mask':'').'\">'.$cellContent.'</li>';\r\n return;\r\n }", "title": "" }, { "docid": "c4f9eec0d89a1b3b68262aa939595522", "score": "0.48470274", "text": "function onair_ShowByDay($oa_day)\n{\n // Function to show all days where days is equal to the selected one\n $oa_timetype = onair_GetModuleOption('timetype');\n global $xoopsDB, $xoopsTpl, $timetype, $xoopsModuleConfig, $backgroundcolor;\n $dayname = onair_Numbers2Days($oa_day);\n $msg = [];\n if (isset($_POST['oa_id'])) {\n $oa_day = date('w');\n }\n $myts = MyTextSanitizer::getInstance();\n $query = 'SELECT * FROM ' . $xoopsDB->prefix('oa_program') . ' WHERE oa_day=' . $myts->addSlashes(\"$oa_day\") . ' ORDER BY oa_day,oa_start ASC';\n $result = $xoopsDB->query($query);\n $i = $xoopsDB->getRowsNum($result);\n\n while ($sqlfetch = $xoopsDB->fetchArray($result)) {\n $backgroundcolor = onair_ChangeBg($oa_day, $myts->htmlSpecialChars($myts->stripSlashesGPC($sqlfetch['oa_start'])), $myts->htmlSpecialChars($myts->stripSlashesGPC($sqlfetch['oa_stop'])));\n $msg['bgc'] = $backgroundcolor;\n $msg['oa_id'] = $myts->htmlSpecialChars($myts->stripSlashesGPC($sqlfetch['oa_id']));\n $msg['oa_day'] = onair_Numbers2Days($myts->htmlSpecialChars($myts->stripSlashesGPC($sqlfetch['oa_day'])));\n $msg['oa_station'] = $myts->htmlSpecialChars($myts->stripSlashesGPC($sqlfetch['oa_station']));\n $msg['oa_name'] = $myts->htmlSpecialChars($myts->stripSlashesGPC($sqlfetch['oa_name']));\n $msg['oa_title'] = $myts->htmlSpecialChars($myts->stripSlashesGPC($sqlfetch['oa_title']));\n $msg['bgc'] = $backgroundcolor;\n if (1 == $xoopsModuleConfig['timetype']) {\n $message['start'] = date('h:i:s a', strtotime($sqlfetch['oa_start']));\n $message['stop'] = date('h:i:s a', strtotime($sqlfetch['oa_stop']));\n } else {\n $message['start'] = date('H:i:s', strtotime($sqlfetch['oa_start']));\n $message['stop'] = date('H:i:s', strtotime($sqlfetch['oa_stop']));\n }\n\n $msg['oa_start'] = $myts->htmlSpecialChars($myts->stripSlashesGPC($message['start']));\n $msg['oa_stop'] = $myts->htmlSpecialChars($message['stop']);\n $msg['oa_image'] = \"<img src='\" . XOOPS_URL . '/' . $xoopsModuleConfig['imagedir'] . $myts->htmlSpecialChars($sqlfetch['oa_image']) . \"' height='\" . $xoopsModuleConfig['shotheight'] . \"' width='\" . $xoopsModuleConfig['shotwidth'] . \"' alt='\" . _VISITWEBSITE . \"'></img>\";\n $msg['oa_description'] = $myts->displayTarea($myts->stripSlashesGPC($sqlfetch['oa_description']), 1, 1, 1);\n $i--;\n\n $xoopsTpl->assign('lang_startname', _MD_ONAIR_STARTNAME);\n $xoopsTpl->assign('lang_titlename', _MD_ONAIR_TITLENAME);\n $xoopsTpl->assign('lang_namename', _MD_ONAIR_NAMENAME);\n $xoopsTpl->assign('lang_startstop', _MD_ONAIR_STARTSTOP);\n $xoopsTpl->assign('lang_djimage', _MD_ONAIR_DJIMAGE);\n $xoopsTpl->assign('lang_dayname', $dayname);\n $xoopsTpl->append('posts', $msg);\n }\n}", "title": "" }, { "docid": "30c2248acf9957573f7eeb48c26466e2", "score": "0.4830249", "text": "public function next()\n {\n $this->_valid = (false !== next($this->_entries));\n }", "title": "" }, { "docid": "0557dda30ba6b495bc7be0370f0c2af6", "score": "0.48122603", "text": "public function next()\n {\n do {\n $this->key = next($this->keys);\n } while (!isset($this->data[$this->key]) && $this->key !== false);\n //while(!isset($_SESSION[$this->key]) && $this->key !== false);\n }", "title": "" }, { "docid": "98359b192d0b04a86e302cacbd0d4095", "score": "0.47970143", "text": "function getDayHTML($day){\n\t\t\t\n\t\t$bookings = $this->getBookings($this->resAdmin, '', '', $day, \"\", \"day\");\n\t\t\n\t\t$unix_day = strtotime($day);\n\t\t$prevDay = \"buildFrontDeskView('\".date(\"Y-m-d\", strtotime('-1 day', $unix_day)).\"');\";\n\t\t$nextDay = \"buildFrontDeskView('\".date(\"Y-m-d\", strtotime('+1 day', $unix_day)).\"');\";\n\n\t\t$bookoffs = null;\n\t\tif($this->fd_show_bookoffs){\n\t\t\t$bookoffs = $this->getBookoffs($this->resAdmin, date(\"m\", $unix_day), date(\"y\", $unix_day), date(\"Y-m-d\", $unix_day), \"1\", \"day\");\n\t\t}\n\t\t$statuses = $this->getStatuses();\n\n\t\t$lang = JFactory::getLanguage();\n\t\tsetlocale(LC_TIME, str_replace(\"-\", \"_\", $lang->getTag()).\".utf8\");\n\t\t// on a Windows server you need to spell it out\n\t\t// offical names can be found here..\n\t\t// http://msdn.microsoft.com/en-ca/library/39cwe7zf(v=vs.80).aspx\n\t\t//setlocale(LC_TIME,\"swedish\");\n\t\t// Using the first two letteres seems to work in many cases.\n\t\tif(WINDOWS){\t\n\t\t\tsetlocale(LC_TIME, substr($lang->getTag(),0,2)); \n\t\t}\n\t\t// for Greek you may need to hard code..\n\t\t//setlocale(LC_TIME, array('el_GR.UTF-8','el_GR','greek'));\n\t\t\n\t\tif(WINDOWS){\n\t\t\t$header = iconv(getIconvCharset(), 'UTF-8//IGNORE',strftime($this->week_view_header_date_format, strtotime($day)));\n\t\t} else {\n\t\t\t$header = strftime($this->week_view_header_date_format, strtotime($day));\t\t\n\t\t}\n\n\t\t$s = \"\";\n\t\t$i=1;\n\t\t\n\t\t$array_daynames = getLongDayNamesArray();\n\t\t$s .= \"<div id=\\\"sv_apptpro_front_desk_top\\\">\\n\";\n\t\t$s .= \"<table width=\\\"100%\\\" align=\\\"center\\\" border=\\\"0\\\" class=\\\"calendar_week_view\\\" cellspacing=\\\"0\\\">\\n\";\n\t\t$s .= \" <tr class=\\\"calendar_week_view_header_row\\\">\\n\";\n\t\t$s .= \" <td width=\\\"5%\\\" align=\\\"center\\\" ><input type=\\\"button\\\" onclick=\\\"$prevDay\\\" value=\\\"<<\\\"></td>\\n\";\n\t\t$s .= \" <td style=\\\"text-align:center\\\" class=\\\"calendarHeader\\\" >$header</td>\\n\"; \n\t\t$s .= \" <td width=\\\"5%\\\" align=\\\"center\\\"><input type=\\\"button\\\" onclick=\\\"$nextDay\\\" value=\\\">>\\\"></td>\\n\";\n\t\t$s .= \" </tr>\\n\";\n\t\t// week day\n\t\t$s .= \" <tr>\\n\";\n\t\t$s .= \" <td colspan=\\\"3\\\">\\n\";\n\t\t$s .= \" <table class=\\\"week_day_table\\\" width=\\\"100%\\\" border=\\\"0\\\" cellspacing=\\\"0\\\">\\n\";\n\t\t$k = 0;\n\t\t$seat_tally = 0;\n\t\t$current_ts = \"\";\n\t\t$previous_ts = \"\";\n\t\t$current_res = 0;\n\t\t$previous_res = 0;\n\t\t$initial_pass = true;\n\t\tforeach($bookings as $booking){\n\t\t\tif($this->showSeatTotals == \"true\"){\n\t\t\t\tif($initial_pass){\n\t\t\t\t\t$current_ts = $booking->display_starttime;\n\t\t\t\t\t$previous_ts = $current_ts;\n\t\t\t\t\t$current_res = $booking->res_id;\n\t\t\t\t\t$previous_res = $current_res;\n\t\t\t\t\t$initial_pass = false;\n\t\t\t\t}\n\t\t\t\t$current_ts = $booking->display_starttime;\n\t\t\t\t$current_res = $booking->res_id;\n\t\t\t\tif($current_ts == $previous_ts AND $previous_res == $current_res){\n\t\t\t\t\tif($booking->request_status == 'accepted'){\n\t\t\t\t\t\t$seat_tally += $booking->booked_seats;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t//moved to next timeslot\n\t\t\t\t\t//write summary and move on\n\t\t\t\t\t$s .= \"<tr class='week_row' >\\n\";\n\t\t\t\t\t$s .= \" <td colspan='4' align='right' style=\\\"border-bottom:solid 1px\\\">\".JText::_('RS1_TS_TOTAL_SEATS').\"&nbsp;</td>\\n\";\n\t\t\t\t\t$s .= \" <td width=\\\"5%\\\" align=\\\"center\\\" style=\\\"border-top:solid 1px;border-bottom:solid 1px\\\"> \".$seat_tally.\"</td>\";\n\t\t\t\t\t$s .= \" <td colspan='3' style=\\\"border-bottom:solid 1px\\\" >&nbsp;</td>\\n\";\n\t\t\t\t\t$s .= \"</tr>\\n\";\n\t\t\t\t\t$previous_ts = $current_ts;\n\t\t\t\t\t$seat_tally = $booking->booked_seats;\t\t\t\t\n\t\t\t\t\t$previous_res = $current_res;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif($this->fd_read_only){\n\t\t\t\tif($this->fd_detail_popup){\n\t\t\t\t\t$link = JRoute::_( 'index.php?option=com_rsappt_pro3&controller=admin_detail&task=edit&cid='. $booking->id_requests.'&frompage=front_desk&Itemid='.$this->Itemid). \"&format=readonly class=\\\"modal\\\" rel=\\\"{handler: 'iframe'}\\\" \";\n\t\t\t\t} else {\n\t\t\t\t\t$link = \"'#' onclick=\\\"alert('\".JText::_('RS1_DETAIL_VIEW_DISABLED').\"');return true;\\\" \";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$link \t= JRoute::_( 'index.php?option=com_rsappt_pro3&controller=admin_detail&task=edit&cid='. $booking->id_requests.'&frompage=front_desk&Itemid='.$this->Itemid);\n\t\t\t}\n\n\t\t\t$s .= \"<tr class='week_row'>\\n\";\n\t\t\t$s .= \" <td align=\\\"center\\\"><input type=\\\"checkbox\\\" id=\\\"cb\".$i.\"\\\" name=\\\"cid[]\\\" value=\\\"\".$booking->id_requests.\"\\\" /></td>\\n\";\n\t\t\tif($this->fd_allow_manifest && !$this->mobile){\n\t\t\t\t$s .= \" <td align=\\\"left\\\" width=\\\"10%\\\"><a href=# onclick='goManifest(\\\"\".$booking->resid.\"\\\",\\\"\".$booking->startdate.\"\\\", \\\"\".$booking->starttime.\"\\\", \\\"\".$booking->endtime.\"\\\");return false;' title='\".JText::_('RS1_DAY_VIEW_TIMESLOT_TOOLTIP').\"'>\".$booking->display_starttime.\"</a></td>\\n\";\n\t\t\t} else {\n\t\t\t\t$s .= \" <td align=\\\"left\\\" width=\\\"10%\\\">\".$booking->display_starttime.\"</td>\\n\";\n\t\t\t}\n\t\t\t$s .= \" <td align=\\\"left\\\"> \".JText::_(stripslashes($booking->resname)).\"</td>\\n\";\n\t\t\tif(!$this->mobile){\n\t\t\t\t$s .= \" <td align=\\\"left\\\"> \".JText::_(stripslashes($booking->ServiceName)).\"</td>\\n\";\n\t\t\t}\n\t\t\tif($this->fd_allow_show_seats){\n\t\t\t\t$s .= \" <td width=\\\"5%\\\" align=\\\"center\\\"> \".$booking->booked_seats.\"</td>\\n\";\n\t\t\t}\n\t\t\t$s .= \" <td align=\\\"left\\\"> <a href=\".$link.\" title='\".JText::_('RS1_DAY_VIEW_NAME_TOOLTIP').\"'>\".stripslashes($booking->name).\"</a></td>\\n\";\n\t\t\tif($this->fd_show_contact_info){\n\t\t\t\tif(!$this->mobile){\n\t\t\t\t\t$s .= \" <td align=\\\"left\\\"><a href=\\\"mailto:\".$booking->email.\"\\\">\".$booking->email.\"</a></td>\\n\";\n\t\t\t\t}\n\t\t\t}\n//\t\t\t\t$s .= \" <td align=\\\"center\\\" width=\\\"10%\\\"><span class='color_\".$booking->payment_status.\"'>\".translated_status($booking->payment_status).\"</span></td>\\n\";\n\n\t\t\tif($this->apptpro_config->status_quick_change == \"No\"){\n\t\t\t\t$s .= \" <td align=\\\"center\\\" width=\\\"10%\\\"><span class='color_\".$booking->request_status.\"'>\".translated_status($booking->request_status).\"</span></td>\\n\";\n\t\t\t} else {\n\t\t\t\t$s .= \" <td align=\\\"center\\\">\\n\";\n\t\t\t\t$s .= \" <select id=\\\"booking_status_\".$booking->id_requests.\"\\\" name=\\\"booking_status\".$booking->id_requests.\"\\\" \"; \n\t\t\t\t$s .= \"\t\t\tonfocus=\\\"this.oldvalue = this.value;\\\" onchange=\\\"quick_status_change('\".$booking->id_requests.\"',this); return false;\\\"\";\n\t\t\t\t$s .= \"\t\t\tstyle=\\\"width:auto\\\">\\n\";\n\t\t\t\tforeach($statuses as $status_row){\n\t\t\t\t\t$s .= \"\t\t<option value=\\\"\".$status_row->internal_value.\"\\\" class=\\\"color_\".$status_row->internal_value.\"\\\" \";\n\t\t\t\t\t\tif($booking->request_status == $status_row->internal_value ? $s .=\" selected='selected' \":\"\");\n\t\t\t\t\t\t$s .= \">\".JText::_($status_row->status).\"</option>\\n\";\n\t\t\t\t}\n\t\t\t\t$s .= \"\t\t</select>\\n\";\n\t\t\t\t$s .= \"</td>\\n\";\n\t\t\t}\n\t\t\tif($this->fd_show_financials){\n\t\t\t\t$s .= \" <td align=\\\"right\\\">\".translated_status($booking->payment_status).($booking->invoice_number != \"\"?\"<br/>(\".$booking->invoice_number.\")\":\"\").\"</td>\\n\";\n\t\t\t}\t\t\t\t\t\n\t\t\t$s .= \"</tr>\\n\";\n\t\t\t$i++;\n\t\t}\t\n\t\tif($this->showSeatTotals == \"true\"){\n\t\t\t$s .= \"<tr class='week_row' >\\n\";\n\t\t\t$s .= \" <td colspan='4' align='right' style=\\\"border-bottom:solid 1px\\\">\".JText::_('RS1_TS_TOTAL_SEATS').\"&nbsp;</td>\\n\";\n\t\t\t$s .= \" <td width=\\\"5%\\\" align=\\\"center\\\" style=\\\"border-top:solid 1px;border-bottom:solid 1px\\\"> \".$seat_tally.\"</td>\";\n\t\t\t$s .= \" <td colspan='3' style=\\\"border-bottom:solid 1px\\\" >&nbsp;</td>\\n\";\n\t\t\t$s .= \"</tr>\\n\";\n\t\t}\t\t\t \n\t $s .= \" </table>\\n\";\n\t\t$s .= \" </tr>\\n\";\n\t\t$s .= \"</table>\\n\";\n\t\t$s .= \"</div>\\n\";\n\t\t$s .= \"<input type=\\\"hidden\\\" name=\\\"cur_day\\\" id=\\\"cur_day\\\" value=\\\"\".$day.\"\\\">\";\n\n\t\tif($this->fd_show_bookoffs){\n\t\t\t$strToday = date(\"Y-m-d\", $unix_day);\n\t\t\tforeach($bookoffs as $bookoff){\n\t\t\t\tif($bookoff->off_date == $strToday){\n\t\t\t\t\tif($bookoff->full_day == \"Yes\"){\n\t\t\t\t\t\t$display_timeoff = JText::_('RS1_FRONTDESK_BO_FULLDAY');\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$display_timeoff = $bookoff->display_bo_starttime.\" - \".$bookoff->display_bo_endtime;\n\t\t\t\t\t\tif($bookoff->description != \"\"){\n\t\t\t\t\t\t\t$display_timeoff .= \"\\n\".$bookoff->description;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$s .= \"<br/><label class='calendar_text_bookoff' title='\".$display_timeoff.\"'>\".$bookoff->name.\" - \".$display_timeoff.\"</label>\";\n\t\t\t\t}\n\t\t\t}\t\t\t\t\n\t\t}\n\n\t\tif($this->printerView == \"Yes\"){\n\t\t\t// remove all links\n\t\t\t$s = preg_replace(array('\"<a href(.*?)>\"', '\"</a>\"'), array('',''), $s);\n\t\t}\t\t\t\n\t\treturn $s; \t\n\t}", "title": "" }, { "docid": "3b6b2fd6691d1378093d1fe3c2f811e2", "score": "0.47947708", "text": "public function run()\n {\n DB::statement(\"INSERT INTO `calendar` (`id`, `date`, `day`, `month`, `bank_holiday`)\nVALUES\n\t(1, 1, 'Wed', 'Jan', 'Y'),\n\t(2, 2, 'Thu', 'Jan', NULL),\n\t(3, 3, 'Fri', 'Jan', NULL),\n\t(4, 4, 'Sat', 'Jan', 'Unavailable'),\n\t(5, 5, 'Sun', 'Jan', 'Unavailable'),\n\t(6, 6, 'Mon', 'Jan', NULL),\n\t(7, 7, 'Tue', 'Jan', NULL),\n\t(8, 8, 'Wed', 'Jan', NULL),\n\t(9, 9, 'Thu', 'Jan', NULL),\n\t(10, 10, 'Fri', 'Jan', NULL),\n\t(11, 11, 'Sat', 'Jan', 'Unavailable'),\n\t(12, 12, 'Sun', 'Jan', 'Unavailable'),\n\t(13, 13, 'Mon', 'Jan', NULL),\n\t(14, 14, 'Tue', 'Jan', NULL),\n\t(15, 15, 'Wed', 'Jan', NULL),\n\t(16, 16, 'Thu', 'Jan', NULL),\n\t(17, 17, 'Fri', 'Jan', NULL),\n\t(18, 18, 'Sat', 'Jan', 'Unavailable'),\n\t(19, 19, 'Sun', 'Jan', 'Unavailable'),\n\t(20, 20, 'Mon', 'Jan', NULL),\n\t(21, 21, 'Tue', 'Jan', NULL),\n\t(22, 22, 'Wed', 'Jan', NULL),\n\t(23, 23, 'Thu', 'Jan', NULL),\n\t(24, 24, 'Fri', 'Jan', NULL),\n\t(25, 25, 'Sat', 'Jan', 'Unavailable'),\n\t(26, 26, 'Sun', 'Jan', 'Unavailable'),\n\t(27, 27, 'Mon', 'Jan', NULL),\n\t(28, 28, 'Tue', 'Jan', NULL),\n\t(29, 29, 'Wed', 'Jan', NULL),\n\t(30, 30, 'Thu', 'Jan', NULL),\n\t(31, 31, 'Fri', 'Jan', NULL),\n\t(32, 1, 'Sat', 'Feb', 'Unavailable'),\n\t(33, 2, 'Sun', 'Feb', 'Unavailable'),\n\t(34, 3, 'Mon', 'Feb', NULL),\n\t(35, 4, 'Tue', 'Feb', NULL),\n\t(36, 5, 'Wed', 'Feb', NULL),\n\t(37, 6, 'Thu', 'Feb', NULL),\n\t(38, 7, 'Fri', 'Feb', NULL),\n\t(39, 8, 'Sat', 'Feb', 'Unavailable'),\n\t(40, 9, 'Sun', 'Feb', 'Unavailable'),\n\t(41, 10, 'Mon', 'Feb', NULL),\n\t(42, 11, 'Tue', 'Feb', NULL),\n\t(43, 12, 'Wed', 'Feb', NULL),\n\t(44, 13, 'Thu', 'Feb', NULL),\n\t(45, 14, 'Fri', 'Feb', NULL),\n\t(46, 15, 'Sat', 'Feb', 'Unavailable'),\n\t(47, 16, 'Sun', 'Feb', 'Unavailable'),\n\t(48, 17, 'Mon', 'Feb', NULL),\n\t(49, 18, 'Tue', 'Feb', NULL),\n\t(50, 19, 'Wed', 'Feb', NULL),\n\t(51, 20, 'Thu', 'Feb', NULL),\n\t(52, 21, 'Fri', 'Feb', NULL),\n\t(53, 22, 'Sat', 'Feb', 'Unavailable'),\n\t(54, 23, 'Sun', 'Feb', 'Unavailable'),\n\t(55, 24, 'Mon', 'Feb', NULL),\n\t(56, 25, 'Tue', 'Feb', NULL),\n\t(57, 26, 'Wed', 'Feb', NULL),\n\t(58, 27, 'Thu', 'Feb', NULL),\n\t(59, 28, 'Fri', 'Feb', NULL),\n\t(60, 29, 'Sat', 'Feb', 'Unavailable'),\n\t(61, 1, 'Sun', 'Mar', 'Unavailable'),\n\t(62, 2, 'Mon', 'Mar', NULL),\n\t(63, 3, 'Tue', 'Mar', NULL),\n\t(64, 4, 'Wed', 'Mar', NULL),\n\t(65, 5, 'Thu', 'Mar', NULL),\n\t(66, 6, 'Fri', 'Mar', NULL),\n\t(67, 7, 'Sat', 'Mar', 'Unavailable'),\n\t(68, 8, 'Sun', 'Mar', 'Unavailable'),\n\t(69, 9, 'Mon', 'Mar', NULL),\n\t(70, 10, 'Tue', 'Mar', NULL),\n\t(71, 11, 'Wed', 'Mar', NULL),\n\t(72, 12, 'Thu', 'Mar', NULL),\n\t(73, 13, 'Fri', 'Mar', NULL),\n\t(74, 14, 'Sat', 'Mar', 'Unavailable'),\n\t(75, 15, 'Sun', 'Mar', 'Unavailable'),\n\t(76, 16, 'Mon', 'Mar', NULL),\n\t(77, 17, 'Tue', 'Mar', NULL),\n\t(78, 18, 'Wed', 'Mar', NULL),\n\t(79, 19, 'Thu', 'Mar', NULL),\n\t(80, 20, 'Fri', 'Mar', NULL),\n\t(81, 21, 'Sat', 'Mar', 'Unavailable'),\n\t(82, 22, 'Sun', 'Mar', 'Unavailable'),\n\t(83, 23, 'Mon', 'Mar', NULL),\n\t(84, 24, 'Tue', 'Mar', NULL),\n\t(85, 25, 'Wed', 'Mar', NULL),\n\t(86, 26, 'Thu', 'Mar', NULL),\n\t(87, 27, 'Fri', 'Mar', NULL),\n\t(88, 28, 'Sat', 'Mar', 'Unavailable'),\n\t(89, 29, 'Sun', 'Mar', 'Unavailable'),\n\t(90, 30, 'Mon', 'Mar', NULL),\n\t(91, 31, 'Tue', 'Mar', NULL),\n\t(92, 1, 'Wed', 'Apr', NULL),\n\t(93, 2, 'Thu', 'Apr', NULL),\n\t(94, 3, 'Fri', 'Apr', NULL),\n\t(95, 4, 'Sat', 'Apr', 'Unavailable'),\n\t(96, 5, 'Sun', 'Apr', 'Unavailable'),\n\t(97, 6, 'Mon', 'Apr', NULL),\n\t(98, 7, 'Tue', 'Apr', NULL),\n\t(99, 8, 'Wed', 'Apr', NULL),\n\t(100, 9, 'Thu', 'Apr', NULL),\n\t(101, 10, 'Fri', 'Apr', 'Y'),\n\t(102, 11, 'Sat', 'Apr', 'Unavailable'),\n\t(103, 12, 'Sun', 'Apr', 'Unavailable'),\n\t(104, 13, 'Mon', 'Apr', 'Y'),\n\t(105, 14, 'Tue', 'Apr', NULL),\n\t(106, 15, 'Wed', 'Apr', NULL),\n\t(107, 16, 'Thu', 'Apr', NULL),\n\t(108, 17, 'Fri', 'Apr', NULL),\n\t(109, 18, 'Sat', 'Apr', 'Unavailable'),\n\t(110, 19, 'Sun', 'Apr', 'Unavailable'),\n\t(111, 20, 'Mon', 'Apr', NULL),\n\t(112, 21, 'Tue', 'Apr', NULL),\n\t(113, 22, 'Wed', 'Apr', NULL),\n\t(114, 23, 'Thu', 'Apr', NULL),\n\t(115, 24, 'Fri', 'Apr', NULL),\n\t(116, 25, 'Sat', 'Apr', 'Unavailable'),\n\t(117, 26, 'Sun', 'Apr', 'Unavailable'),\n\t(118, 27, 'Mon', 'Apr', NULL),\n\t(119, 28, 'Tue', 'Apr', NULL),\n\t(120, 29, 'Wed', 'Apr', NULL),\n\t(121, 30, 'Thu', 'Apr', NULL),\n\t(122, 1, 'Fri', 'May', NULL),\n\t(123, 2, 'Sat', 'May', 'Unavailable'),\n\t(124, 3, 'Sun', 'May', 'Unavailable'),\n\t(125, 4, 'Mon', 'May', NULL),\n\t(126, 5, 'Tue', 'May', NULL),\n\t(127, 6, 'Wed', 'May', NULL),\n\t(128, 7, 'Thu', 'May', NULL),\n\t(129, 8, 'Fri', 'May', 'Y'),\n\t(130, 9, 'Sat', 'May', 'Unavailable'),\n\t(131, 10, 'Sun', 'May', 'Unavailable'),\n\t(132, 11, 'Mon', 'May', NULL),\n\t(133, 12, 'Tue', 'May', NULL),\n\t(134, 13, 'Wed', 'May', NULL),\n\t(135, 14, 'Thu', 'May', NULL),\n\t(136, 15, 'Fri', 'May', NULL),\n\t(137, 16, 'Sat', 'May', 'Unavailable'),\n\t(138, 17, 'Sun', 'May', 'Unavailable'),\n\t(139, 18, 'Mon', 'May', NULL),\n\t(140, 19, 'Tue', 'May', NULL),\n\t(141, 20, 'Wed', 'May', NULL),\n\t(142, 21, 'Thu', 'May', NULL),\n\t(143, 22, 'Fri', 'May', NULL),\n\t(144, 23, 'Sat', 'May', 'Unavailable'),\n\t(145, 24, 'Sun', 'May', 'Unavailable'),\n\t(146, 25, 'Mon', 'May', 'Y'),\n\t(147, 26, 'Tue', 'May', NULL),\n\t(148, 27, 'Wed', 'May', NULL),\n\t(149, 28, 'Thu', 'May', NULL),\n\t(150, 29, 'Fri', 'May', NULL),\n\t(151, 30, 'Sat', 'May', 'Unavailable'),\n\t(152, 31, 'Sun', 'May', 'Unavailable'),\n\t(153, 1, 'Mon', 'Jun', NULL),\n\t(154, 2, 'Tue', 'Jun', NULL),\n\t(155, 3, 'Wed', 'Jun', NULL),\n\t(156, 4, 'Thu', 'Jun', NULL),\n\t(157, 5, 'Fri', 'Jun', NULL),\n\t(158, 6, 'Sat', 'Jun', 'Unavailable'),\n\t(159, 7, 'Sun', 'Jun', 'Unavailable'),\n\t(160, 8, 'Mon', 'Jun', NULL),\n\t(161, 9, 'Tue', 'Jun', NULL),\n\t(162, 10, 'Wed', 'Jun', NULL),\n\t(163, 11, 'Thu', 'Jun', NULL),\n\t(164, 12, 'Fri', 'Jun', NULL),\n\t(165, 13, 'Sat', 'Jun', 'Unavailable'),\n\t(166, 14, 'Sun', 'Jun', 'Unavailable'),\n\t(167, 15, 'Mon', 'Jun', NULL),\n\t(168, 16, 'Tue', 'Jun', NULL),\n\t(169, 17, 'Wed', 'Jun', NULL),\n\t(170, 18, 'Thu', 'Jun', NULL),\n\t(171, 19, 'Fri', 'Jun', NULL),\n\t(172, 20, 'Sat', 'Jun', 'Unavailable'),\n\t(173, 21, 'Sun', 'Jun', 'Unavailable'),\n\t(174, 22, 'Mon', 'Jun', NULL),\n\t(175, 23, 'Tue', 'Jun', NULL),\n\t(176, 24, 'Wed', 'Jun', NULL),\n\t(177, 25, 'Thu', 'Jun', NULL),\n\t(178, 26, 'Fri', 'Jun', NULL),\n\t(179, 27, 'Sat', 'Jun', 'Unavailable'),\n\t(180, 28, 'Sun', 'Jun', 'Unavailable'),\n\t(181, 29, 'Mon', 'Jun', NULL),\n\t(182, 30, 'Tue', 'Jun', NULL),\n\t(183, 1, 'Wed', 'Jul', NULL),\n\t(184, 2, 'Thu', 'Jul', NULL),\n\t(185, 3, 'Fri', 'Jul', NULL),\n\t(186, 4, 'Sat', 'Jul', 'Unavailable'),\n\t(187, 5, 'Sun', 'Jul', 'Unavailable'),\n\t(188, 6, 'Mon', 'Jul', NULL),\n\t(189, 7, 'Tue', 'Jul', NULL),\n\t(190, 8, 'Wed', 'Jul', NULL),\n\t(191, 9, 'Thu', 'Jul', NULL),\n\t(192, 10, 'Fri', 'Jul', NULL),\n\t(193, 11, 'Sat', 'Jul', 'Unavailable'),\n\t(194, 12, 'Sun', 'Jul', 'Unavailable'),\n\t(195, 13, 'Mon', 'Jul', NULL),\n\t(196, 14, 'Tue', 'Jul', NULL),\n\t(197, 15, 'Wed', 'Jul', NULL),\n\t(198, 16, 'Thu', 'Jul', NULL),\n\t(199, 17, 'Fri', 'Jul', NULL),\n\t(200, 18, 'Sat', 'Jul', 'Unavailable'),\n\t(201, 19, 'Sun', 'Jul', 'Unavailable'),\n\t(202, 20, 'Mon', 'Jul', NULL),\n\t(203, 21, 'Tue', 'Jul', NULL),\n\t(204, 22, 'Wed', 'Jul', NULL),\n\t(205, 23, 'Thu', 'Jul', NULL),\n\t(206, 24, 'Fri', 'Jul', NULL),\n\t(207, 25, 'Sat', 'Jul', 'Unavailable'),\n\t(208, 26, 'Sun', 'Jul', 'Unavailable'),\n\t(209, 27, 'Mon', 'Jul', NULL),\n\t(210, 28, 'Tue', 'Jul', NULL),\n\t(211, 29, 'Wed', 'Jul', NULL),\n\t(212, 30, 'Thu', 'Jul', NULL),\n\t(213, 31, 'Fri', 'Jul', NULL),\n\t(214, 1, 'Sat', 'Aug', 'Unavailable'),\n\t(215, 2, 'Sun', 'Aug', 'Unavailable'),\n\t(216, 3, 'Mon', 'Aug', NULL),\n\t(217, 4, 'Tue', 'Aug', NULL),\n\t(218, 5, 'Wed', 'Aug', NULL),\n\t(219, 6, 'Thu', 'Aug', NULL),\n\t(220, 7, 'Fri', 'Aug', NULL),\n\t(221, 8, 'Sat', 'Aug', 'Unavailable'),\n\t(222, 9, 'Sun', 'Aug', 'Unavailable'),\n\t(223, 10, 'Mon', 'Aug', NULL),\n\t(224, 11, 'Tue', 'Aug', NULL),\n\t(225, 12, 'Wed', 'Aug', NULL),\n\t(226, 13, 'Thu', 'Aug', NULL),\n\t(227, 14, 'Fri', 'Aug', NULL),\n\t(228, 15, 'Sat', 'Aug', 'Unavailable'),\n\t(229, 16, 'Sun', 'Aug', 'Unavailable'),\n\t(230, 17, 'Mon', 'Aug', NULL),\n\t(231, 18, 'Tue', 'Aug', NULL),\n\t(232, 19, 'Wed', 'Aug', NULL),\n\t(233, 20, 'Thu', 'Aug', NULL),\n\t(234, 21, 'Fri', 'Aug', NULL),\n\t(235, 22, 'Sat', 'Aug', 'Unavailable'),\n\t(236, 23, 'Sun', 'Aug', 'Unavailable'),\n\t(237, 24, 'Mon', 'Aug', NULL),\n\t(238, 25, 'Tue', 'Aug', NULL),\n\t(239, 26, 'Wed', 'Aug', NULL),\n\t(240, 27, 'Thu', 'Aug', NULL),\n\t(241, 28, 'Fri', 'Aug', NULL),\n\t(242, 29, 'Sat', 'Aug', 'Unavailable'),\n\t(243, 30, 'Sun', 'Aug', 'Unavailable'),\n\t(244, 31, 'Mon', 'Aug', 'Y'),\n\t(245, 1, 'Tue', 'Sep', NULL),\n\t(246, 2, 'Wed', 'Sep', NULL),\n\t(247, 3, 'Thu', 'Sep', NULL),\n\t(248, 4, 'Fri', 'Sep', NULL),\n\t(249, 5, 'Sat', 'Sep', 'Unavailable'),\n\t(250, 6, 'Sun', 'Sep', 'Unavailable'),\n\t(251, 7, 'Mon', 'Sep', NULL),\n\t(252, 8, 'Tue', 'Sep', NULL),\n\t(253, 9, 'Wed', 'Sep', NULL),\n\t(254, 10, 'Thu', 'Sep', NULL),\n\t(255, 11, 'Fri', 'Sep', NULL),\n\t(256, 12, 'Sat', 'Sep', 'Unavailable'),\n\t(257, 13, 'Sun', 'Sep', 'Unavailable'),\n\t(258, 14, 'Mon', 'Sep', NULL),\n\t(259, 15, 'Tue', 'Sep', NULL),\n\t(260, 16, 'Wed', 'Sep', NULL),\n\t(261, 17, 'Thu', 'Sep', NULL),\n\t(262, 18, 'Fri', 'Sep', NULL),\n\t(263, 19, 'Sat', 'Sep', 'Unavailable'),\n\t(264, 20, 'Sun', 'Sep', 'Unavailable'),\n\t(265, 21, 'Mon', 'Sep', NULL),\n\t(266, 22, 'Tue', 'Sep', NULL),\n\t(267, 23, 'Wed', 'Sep', NULL),\n\t(268, 24, 'Thu', 'Sep', NULL),\n\t(269, 25, 'Fri', 'Sep', NULL),\n\t(270, 26, 'Sat', 'Sep', 'Unavailable'),\n\t(271, 27, 'Sun', 'Sep', 'Unavailable'),\n\t(272, 28, 'Mon', 'Sep', NULL),\n\t(273, 29, 'Tue', 'Sep', NULL),\n\t(274, 30, 'Wed', 'Sep', NULL),\n\t(275, 1, 'Thu', 'Oct', NULL),\n\t(276, 2, 'Fri', 'Oct', NULL),\n\t(277, 3, 'Sat', 'Oct', 'Unavailable'),\n\t(278, 4, 'Sun', 'Oct', 'Unavailable'),\n\t(279, 5, 'Mon', 'Oct', NULL),\n\t(280, 6, 'Tue', 'Oct', NULL),\n\t(281, 7, 'Wed', 'Oct', NULL),\n\t(282, 8, 'Thu', 'Oct', NULL),\n\t(283, 9, 'Fri', 'Oct', NULL),\n\t(284, 10, 'Sat', 'Oct', 'Unavailable'),\n\t(285, 11, 'Sun', 'Oct', 'Unavailable'),\n\t(286, 12, 'Mon', 'Oct', NULL),\n\t(287, 13, 'Tue', 'Oct', NULL),\n\t(288, 14, 'Wed', 'Oct', NULL),\n\t(289, 15, 'Thu', 'Oct', NULL),\n\t(290, 16, 'Fri', 'Oct', NULL),\n\t(291, 17, 'Sat', 'Oct', 'Unavailable'),\n\t(292, 18, 'Sun', 'Oct', 'Unavailable'),\n\t(293, 19, 'Mon', 'Oct', NULL),\n\t(294, 20, 'Tue', 'Oct', NULL),\n\t(295, 21, 'Wed', 'Oct', NULL),\n\t(296, 22, 'Thu', 'Oct', NULL),\n\t(297, 23, 'Fri', 'Oct', NULL),\n\t(298, 24, 'Sat', 'Oct', 'Unavailable'),\n\t(299, 25, 'Sun', 'Oct', 'Unavailable'),\n\t(300, 26, 'Mon', 'Oct', NULL),\n\t(301, 27, 'Tue', 'Oct', NULL),\n\t(302, 28, 'Wed', 'Oct', NULL),\n\t(303, 29, 'Thu', 'Oct', NULL),\n\t(304, 30, 'Fri', 'Oct', NULL),\n\t(305, 31, 'Sat', 'Oct', 'Unavailable'),\n\t(306, 1, 'Sun', 'Nov', 'Unavailable'),\n\t(307, 2, 'Mon', 'Nov', NULL),\n\t(308, 3, 'Tue', 'Nov', NULL),\n\t(309, 4, 'Wed', 'Nov', NULL),\n\t(310, 5, 'Thu', 'Nov', NULL),\n\t(311, 6, 'Fri', 'Nov', NULL),\n\t(312, 7, 'Sat', 'Nov', 'Unavailable'),\n\t(313, 8, 'Sun', 'Nov', 'Unavailable'),\n\t(314, 9, 'Mon', 'Nov', NULL),\n\t(315, 10, 'Tue', 'Nov', NULL),\n\t(316, 11, 'Wed', 'Nov', NULL),\n\t(317, 12, 'Thu', 'Nov', NULL),\n\t(318, 13, 'Fri', 'Nov', NULL),\n\t(319, 14, 'Sat', 'Nov', 'Unavailable'),\n\t(320, 15, 'Sun', 'Nov', 'Unavailable'),\n\t(321, 16, 'Mon', 'Nov', NULL),\n\t(322, 17, 'Tue', 'Nov', NULL),\n\t(323, 18, 'Wed', 'Nov', NULL),\n\t(324, 19, 'Thu', 'Nov', NULL),\n\t(325, 20, 'Fri', 'Nov', NULL),\n\t(326, 21, 'Sat', 'Nov', 'Unavailable'),\n\t(327, 22, 'Sun', 'Nov', 'Unavailable'),\n\t(328, 23, 'Mon', 'Nov', NULL),\n\t(329, 24, 'Tue', 'Nov', NULL),\n\t(330, 25, 'Wed', 'Nov', NULL),\n\t(331, 26, 'Thu', 'Nov', NULL),\n\t(332, 27, 'Fri', 'Nov', NULL),\n\t(333, 28, 'Sat', 'Nov', 'Unavailable'),\n\t(334, 29, 'Sun', 'Nov', 'Unavailable'),\n\t(335, 30, 'Mon', 'Nov', NULL),\n\t(336, 1, 'Tue', 'Dec', NULL),\n\t(337, 2, 'Wed', 'Dec', NULL),\n\t(338, 3, 'Thu', 'Dec', NULL),\n\t(339, 4, 'Fri', 'Dec', NULL),\n\t(340, 5, 'Sat', 'Dec', 'Unavailable'),\n\t(341, 6, 'Sun', 'Dec', 'Unavailable'),\n\t(342, 7, 'Mon', 'Dec', NULL),\n\t(343, 8, 'Tue', 'Dec', NULL),\n\t(344, 9, 'Wed', 'Dec', NULL),\n\t(345, 10, 'Thu', 'Dec', NULL),\n\t(346, 11, 'Fri', 'Dec', NULL),\n\t(347, 12, 'Sat', 'Dec', 'Unavailable'),\n\t(348, 13, 'Sun', 'Dec', 'Unavailable'),\n\t(349, 14, 'Mon', 'Dec', NULL),\n\t(350, 15, 'Tue', 'Dec', NULL),\n\t(351, 16, 'Wed', 'Dec', NULL),\n\t(352, 17, 'Thu', 'Dec', NULL),\n\t(353, 18, 'Fri', 'Dec', NULL),\n\t(354, 19, 'Sat', 'Dec', 'Unavailable'),\n\t(355, 20, 'Sun', 'Dec', 'Unavailable'),\n\t(356, 21, 'Mon', 'Dec', NULL),\n\t(357, 22, 'Tue', 'Dec', NULL),\n\t(358, 23, 'Wed', 'Dec', NULL),\n\t(359, 24, 'Thu', 'Dec', NULL),\n\t(360, 25, 'Fri', 'Dec', 'Y'),\n\t(361, 26, 'Sat', 'Dec', 'Unavailable'),\n\t(362, 27, 'Sun', 'Dec', 'Unavailable'),\n\t(363, 28, 'Mon', 'Dec', 'Y'),\n\t(364, 29, 'Tue', 'Dec', NULL),\n\t(365, 30, 'Wed', 'Dec', NULL),\n\t(366, 31, 'Thu', 'Dec', NULL);\n\");\n }", "title": "" }, { "docid": "e41e55e57be9362cba8d812270ec85b7", "score": "0.47937405", "text": "public function findForwardersFallDue();", "title": "" }, { "docid": "4ee5c450e10e15ec862ee6c2f6e8e409", "score": "0.47923538", "text": "function mapWorkedDays($startTimestamp, $duration, $workedDays, $exceptions, $mode = 0)\n {\n //echo(\"mapWorkedDays(start=\" . date('m.d.Y',$startTimestamp) . \", duration=\" . $duration . \", workedDays=(\" . $workedDays . \"), exceptions=\" . sizeof($exceptions) . \", mode=\" . $mode . \") <br>\");\n\n $oneDayTimestampValue = 86400;\n\n $currentTimestamp = $startTimestamp;\n\n $startYear\t= date('Y', $startTimestamp);\n $startMonth\t= date('n', $startTimestamp);\n $startDay\t= date('j', $startTimestamp);\n\n $durationRemaining = $duration;\n\n $workedDaysMap = array();\n $workedDaysMap[$startYear] = array();\n $workedDaysMap[$startYear][$startMonth] = array();\n\n //if the list of worked days is empty\n if (trim($workedDays) == \"\") {\n //return void map\n return $workedDaysMap;\n }\n else $workedDaysList = explode(',', $workedDays);\n\n //echo \"workedDaysList=\" . $workedDays . \"<br>\";\n\n while ($durationRemaining > 0) {\n\n //echo \"durationRemaining=\" . $durationRemaining . \"<br>\";\n //echo \"currentDate=\" . date('d/m/Y', $currentTimestamp) . \"<br>\";\n\n $currentYear = date('Y', $currentTimestamp);\n $currentMonth = date('n', $currentTimestamp);\n $currentDay = date('j', $currentTimestamp);\n\n //make sure arrays are correctly initialized\n if (!isset($workedDaysMap[$currentYear])) $workedDaysMap[$currentYear] = array();\n if (!isset($workedDaysMap[$currentYear][$currentMonth])) $workedDaysMap[$currentYear][$currentMonth] = array();\n if (!isset($workedDaysMap[$currentYear][$currentMonth][$currentDay])) $workedDaysMap[$currentYear][$currentMonth][$currentDay] = array();\n\n $currentDayOfWeek = get_day_of_week($currentYear, $currentMonth, $currentDay);\n\n //day is not worked by default\n $dayValue=0;\n\n //echo \"currentDayOfWeek=\".$currentDayOfWeek.\" in_array()=\".in_array ($currentDayOfWeek, $workedDaysList).\"<br>\";\n\n //day value is set as 1 (worked) if matching worked days list\n if (in_array ($currentDayOfWeek, $workedDaysList)) {\n $dayValue = 1;\n }\n\n //checking exceptions\n foreach ($exceptions as $currentException) {\n $currentException->toHTML();\n //exception must not be disabled\n if ($currentException->data['disable'] == 0) {\n //if we are evaluating estimated data and exception affects estimated data\n if ($mode === 0 && $currentException->data['affect_estimation'] == 1) {\n if ($currentTimestamp >= $currentException->data['start_date']) {\n if ($currentTimestamp <= $currentException->data['end_date']) {\n //setting day status to 0 as days is within exception range\n $dayValue = 0;\n //echo \"EXCEPTION=\".date('d/m/Y',$currentTimestamp).\"<br>\";\n }\n }\n }\n\n //if we are evaluating real data and exception affects real data\n elseif ($mode === 1 && $currentException->data['affect_real'] == 1) {\n if ($currentTimestamp >= $currentException->data['start_date']) {\n if ($currentTimestamp <= $currentException->data['end_date']) {\n //setting day status to 0 as days is within exception range\n $dayValue = 0;\n //echo \"EXCEPTION=\".date('d/m/Y',$currentTimestamp).\"<br>\";\n }\n }\n }\n }\n\n }\n\n //recording day state : 0=not worked, 1=worked\n $workedDaysMap[$currentYear][$currentMonth][$currentDay] = $dayValue;\n\n //Removing one day from remaining duration if day as been marked as worked\n if ($dayValue === 1) {\n $durationRemaining--;\n }\n\n //advancing one day\n $currentTimestamp += $oneDayTimestampValue;\n }\n return $workedDaysMap;\n }", "title": "" }, { "docid": "ed48e0f3f0a1aa6806e66014d71f2d15", "score": "0.47907078", "text": "private function _showDay($cellNumber){\n $this->flag = 0;\n if($this->currentDay==0){\n \n $firstDayOfTheWeek = date('N',strtotime($this->currentYear.'-'.$this->currentMonth.'-01'));\n \n if(intval($cellNumber) == intval($firstDayOfTheWeek)){\n \n $this->currentDay=1;\n \n }\n }\n \n if( ($this->currentDay!=0)&&($this->currentDay<=$this->daysInMonth) ){\n \n $this->currentDate = date('Y-m-d',strtotime($this->currentYear.'-'.$this->currentMonth.'-'.($this->currentDay)));\n \n $result = $this->connection->query(\"Select Dzien, Id_dnia from dzien_przyjec where Dzien = '$this->currentDate'\");\n $numberOfDays = $result->num_rows;\n $daysRow = mysqli_fetch_assoc($result);\n \n if($numberOfDays>0){\n \n $checkUserRow = mysqli_fetch_assoc($this->connection->query(\"SELECT uzytkownicy.Id_pacjenta, uzytkownicy.Id_lekarza, uzytkownicy.Id_obslugi, uzytkownicy.Id_uzytkownika from uzytkownicy, sesja where sesja.Id_uzytkownika = uzytkownicy.Id_uzytkownika and sesja.id = '{$_COOKIE['id']}' and sesja.Web = '{$_SERVER['HTTP_USER_AGENT']}' and sesja.Ip = '{$_SERVER['REMOTE_ADDR']}';\"));\n $checkDaySql = \"Select count(*) cnt from godziny_przyjec where Id_dnia_przyjec = '$daysRow[Id_dnia]' and Id_uzytkownika = '$checkUserRow[Id_uzytkownika]'\";\n $result = $this->connection->query($checkDaySql);\n $checkDayRow = mysqli_fetch_assoc($this->connection->query($checkDaySql));\n \n if($checkDayRow['cnt']){\n \n $this->flag = 1;\n }\n \n }\n $cellContent = $this->currentDay;\n \n $this->currentDay++; \n \n }else{\n \n $this->currentDate =null;\n \n $cellContent=null;\n \n }\n if(isset($_GET['value'])){\n $value = $_GET['value'];\n \n return '<li '.($cellNumber%7==1?' start ':($cellNumber%7==0?' end ':' ')).\n '>'.' '.($cellContent==null?'</li>':\n '<form action=\"deleteTime.php\" method=\"post\">'.($this->flag==1?'<input type=\"hidden\" name=\"idLekarza\" value=\"'.$checkUserRow['Id_uzytkownika'].'\"> <button class = \"cover\" name=\"submit\" type=\"submit\" value=\"'.$this->currentDate.'\">'.$cellContent.'</button></form></li>':' <button disabled name=\"day\" class = \"empty\" type=\"submit\" value=\"'.$this->currentDate.'\">'.$cellContent.'</button></form></li>')); \n }else{\n return '<li '.($cellNumber%7==1?' start ':($cellNumber%7==0?' end ':' ')).\n '>'.' '.($cellContent==null?'</li>':\n '<form action=\"showTime.php\" method=\"post\">'.($this->flag==1?'<input type=\"hidden\" name=\"idLekarza\" value=\"'.$checkUserRow['Id_uzytkownika'].'\"> <button class = \"cover\" name=\"submit\" type=\"submit\" value=\"'.$this->currentDate.'\">'.$cellContent.'</button></form></li>':' <button disabled name=\"day\" class = \"empty\" type=\"submit\" value=\"'.$this->currentDate.'\">'.$cellContent.'</button></form></li>')); \n }\n \n /*\n return '<li '.($cellNumber%7==1?' start ':($cellNumber%7==0?' end ':' ')).\n '>'.' '.($cellContent==null?'</li>':\n '<form action=\"time.php\" method=\"post\">'.($this->flag==1?'<span style=\"background:blue\"></span>':'').' <button name=\"day\" type=\"submit\" value=\"'.$cellContent.'\">'.$cellContent.'</button></form></li>');*/\n }", "title": "" }, { "docid": "8165e754cc678116c6f714381ac87aa1", "score": "0.4789763", "text": "private function calculatePentecostMonday(): void\n {\n if ($this->year > 1973) {\n return;\n }\n\n $this->addHoliday($this->pentecostMonday($this->year, $this->timezone, $this->locale));\n }", "title": "" }, { "docid": "fdb74aebde307ba587e51f7b2bddc53d", "score": "0.47882515", "text": "public function getNextDeliverTime($curdate, $curtime, $recursionCount = 0) {\n if ($recursionCount >= 2) {\n return strtotime('01.01.2020 10 pm');\n }\n\n $db = Zend_Registry::get('dbAdapterReadOnly');\n\n //check if closed, then set $curdate to next day\n $selectSpecialClosed = $db\n ->select()\n ->from(array(\"ros\" => \"restaurant_openings_special\"))\n ->where(\"closed = 1\")\n ->where(\"ros.restaurantId = ?\", $this->getId())\n ->order('specialDate ASC');\n\n $specialRowClosed = $db->fetchAll($selectSpecialClosed);\n \n foreach ($specialRowClosed as $closed) {\n if ($closed['specialDate'] == $curdate) {\n $curdate = date(\"Y-m-d\", strtotime($curdate . \" +1 day\"));\n }\n }\n\n $selectSpecial = $db\n ->select()\n ->from(array(\"ros\" => \"restaurant_openings_special\"), array(\n \"nextopening\" => new Zend_Db_Expr(sprintf(\"UNIX_TIMESTAMP(CONCAT('%s', ' ', ros.from))\", $curdate)),\n \"openInTime\" => new Zend_Db_Expr(sprintf(\"IF('%s' BETWEEN ros.from AND ros.until, 1, 0)\", $curtime)),\n \"closed\" => 'ros.closed'\n )\n )\n ->where(\"ros.specialDate= ? AND closed = 0\", $curdate)\n ->where(\"ros.restaurantId = ?\", $this->getId());\n \n $specialRows = $db->fetchAll($selectSpecial);\n \n if (!is_null($specialRows)) {\n foreach ($specialRows as $sr) {\n if ((strcmp($sr['openInTime'], '1') == 0) || ($sr['closed']==0)) {\n return $sr;\n } else {\n $curdate = date(\"Y-m-d\", strtotime($curdate . \" +1 day\"));\n return $this->getNextDeliverTime($curdate, $curtime, ++$recursionCount);\n }\n }\n }\n\n $selectHoliday = $db\n ->select()\n ->from(array(\"roh\" => \"restaurant_openings_holidays\"), array(\n \"nextopening\" => new Zend_Db_Expr(sprintf(\"UNIX_TIMESTAMP(CONCAT('%s', ' ', ro.from))\", $curdate))\n )\n )\n ->join(array(\"c\" => \"city\"), \"c.stateId=roh.stateId\", array())\n ->join(array(\"r\" => \"restaurants\"), \"r.cityId=c.id\", array())\n ->join(array(\"ro\" => \"restaurant_openings\"), \"ro.restaurantId=r.id\", array())\n ->where(\"roh.date= ? \", $curdate)\n ->where(\"ro.`day`=10\")\n ->where(\"ro.`from` > CURTIME()\")\n ->where(\"r.id = ?\", $this->getId());\n\n $holidayRow = $db->fetchAll($selectHoliday);\n\n if (intval($holidayRow[0]) != 0) {\n return $holidayRow[0];\n }\n\n // select next possible deliver time after \"timestamp\" parameter\n // don't try to understand it\n $select = $db->select()->from(array('ro' => 'restaurant_openings'), array('nextopening' => new Zend_Db_Expr(\"UNIX_TIMESTAMP(CONCAT(DATE_ADD('\" . $curdate . \"', INTERVAL ( ro.day + 6 - WEEKDAY('\" . $curdate . \"'))%7 DAY), ' ', IF ( ('\" . $curtime . \"' > ro.`from`) AND ((WEEKDAY('\" . $curdate . \"')+1)%7 = ro.day), '\" . $curtime . \"', ro.`from`)))\"),\n 'intime' => new Zend_Db_Expr(\"(('\" . $curtime . \"' between ro.`from` AND ro.`until`) OR ('\" . $curtime . \"'<ro.`from`))\"),\n 'daydiff' => new Zend_Db_Expr(\"(ro.day + 6 - WEEKDAY('\" . $curdate . \"'))%7\")\n ))->where(\"ro.restaurantId= ? and ro.day<>10\", $this->getId())\n ->having('(intime+daydiff) > 0')\n ->order('daydiff')\n ->order('ro.from')\n ->limit(1);\n\n return $db->fetchRow($select);\n }", "title": "" }, { "docid": "605e4a9d15832aed25e727028b6e56b8", "score": "0.47833353", "text": "function fixLikelyVisit(){\n\t $answers = $this->find('all', array(\n\t 'conditions' => array(\n\t 'created <' => '2010-09-01 00:00:00',\n\t 'question' => '2_likely_to_schedule'\n\t ),\n\t 'recursive' => -1\n\t ));\n\t foreach($answers as $answer){\n\t $this->id = $answer['SurveyAnswer']['id'];\n\t $this->saveField('answer', $answer['SurveyAnswer']['answer'] - 1);\n\t }\n\t}", "title": "" }, { "docid": "a6e28b4ac88b5b4bc1bc964926593b76", "score": "0.47754452", "text": "private function _showDay($cellNumber){\n \n if($this->currentDay==0){\n \n $firstDayOfTheWeek = date('N',strtotime($this->currentYear.'-'.$this->currentMonth.'-01'));\n \n if(intval($cellNumber) == intval($firstDayOfTheWeek)){\n \n $this->currentDay=1;\n \n }\n }\n \n if( ($this->currentDay!=0)&&($this->currentDay<=$this->daysInMonth) ){\n \n $this->currentDate = date('Y-m-d',strtotime($this->currentYear.'-'.$this->currentMonth.'-'.($this->currentDay)));\n \n $cellContent = $this->currentDay;\n \n $this->currentDay++; \n \n }else{\n \n $this->currentDate =null;\n \n $cellContent=null;\n }\n \n \n // return '<li id=\"li-'.$this->currentDate.'\" class=\"'.($cellNumber%7==1?' start ':($cellNumber%7==0?' end ':' ')). ($cellContent==null?'mask':'').'\">'.$cellContent.'</li>';\n\n return $cellContent;\n }", "title": "" }, { "docid": "9125bbd256d6e4a0bc7b7e6b1137995f", "score": "0.47680852", "text": "protected function nextWeekly($current, $interval, $options, &$scratchPad)\n {\n $dow = $current->getDayOfWeek();\n $days = 0;\n while (($pos = strpos($options['dow'], \"{$dow}\")) === false) {\n $dow++;\n $dow = $dow % 7;\n $days++;\n }\n $current->modify(\"+{$days} Days\");\n if (!$this->isComplete($current, $options, $scratchPad)) {\n if ($pos + 1 == strlen($options['dow'])) {\n $skip = (7 * ($interval - 1)) + 1;\n $current->modify(\"+{$skip} Days\");\n } else {\n $current->modify(\"+1 Days\");\n }\n return true; // Continue\n }\n return false;\n }", "title": "" }, { "docid": "17c0245b010b32b1a8c0849a7b4ac9a2", "score": "0.47661927", "text": "function updateNextDate($t_rec, $t_dt =null) {\n $prevdateToApply = (isset($t_dt) && $t_dt != \"unset\" ? $t_dt : $t_rec[\"nextdate\"]);\n \n //Get next incremented date\n $dateToApply = incrementDate($t_rec, $prevdateToApply);\n \n //Get the account group name\n $accountgroup = getAccountGroup();\n\n if (db_updateRepeatingNextDate($t_rec[\"id\"], $dateToApply, $prevdateToApply, $accountgroup)){\n return $dateToApply;\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "c7b45725020633d21cf05d80b9c5c6b1", "score": "0.47624907", "text": "private function transactionActivityDay()\n {\n return null;\n }", "title": "" }, { "docid": "7501afaedecffce36b06c19fa0639589", "score": "0.4757597", "text": "function create_daily_restaurants_check() {\n $timestamp = wp_next_scheduled('create_daily_restaurants_check');\n\n // If $timestamp == false schedule daily alerts since it hasn't been done previously.\n if ($timestamp == false) {\n // Schedule the event for right now, then to repeat daily using the hook 'create_daily_restaurants_check'.\n wp_schedule_event(time(), 'daily', 'create_daily_restaurants_check');\n }\n}", "title": "" }, { "docid": "e602d0a218dd898da1c6ab3f8315deb8", "score": "0.47505087", "text": "public function testWorkflow_Active_FreeDays()\n {\n $nowOriginal = clone $this->engine->now();\n $now = Carbon::now()->startOfMonth();\n $this->engine->now($now);\n\n $plan = $this->setUpPlan();\n $plan->plan_monthly_behavior = 'monthly_free';\n $plan->plan_month_day = 10;\n $plan->save();\n\n list($user, $plan, $membership, $service, $invoice) = $payload = $this->generatePaidMembership($plan);\n $this->assertNotNull($plan, $membership, $service, $service->status, $invoice, $invoice->status);\n\n $now2 = clone $now;\n $this->assertEquals(1, $service->count_renewal);\n $this->assertEquals(1, $service->invoices()->count());\n $this->assertEquals($now, $service->service_period_start, '', 5);\n $this->assertEquals($now2->addMonth()->addDays(9), $service->service_period_end, '', 5);\n $this->assertEquals(100, $invoice->total);\n\n // It is now the 12th of the month\n $this->timeTravelDay(11);\n $this->workerProcess();\n\n // Another invoice should not be raised yet\n $this->assertEquals(1, $service->invoices()->count());\n\n // It is now the 12th of next month\n $this->timeTravelMonth();\n $this->workerProcess();\n\n list($user, $plan, $membership, $service, $invoice) = $payload = $this->reloadMembership($payload);\n\n // Second invoice is ready to go 1 month + 11 days later\n $this->assertEquals(2, $service->invoices()->count());\n\n // Reset\n $this->engine->now($nowOriginal);\n }", "title": "" }, { "docid": "5434d2846b0350199c34280b3b67940f", "score": "0.47483543", "text": "public static function determineFirstDay($currentDate)\r\n {\r\n $referenceDate = new DateTime(REFERENCE_DATE);\r\n $dayOne = new DateTime($currentDate->format('Y-m-d'));\r\n $dayOne->setTime(8, 00, 00);\r\n\r\n $interval = intval(($dayOne->diff($referenceDate, TRUE)->format('%R%a')));\r\n\r\n $i = 0;\r\n while (($interval % 14) != 0) // First day of the pay period prior to the user selected first day.\r\n {\r\n $dayOne->modify(\"-1 day\");\r\n $interval = intval(($dayOne->diff($referenceDate, TRUE)->format('%R%a')));\r\n $i++;\r\n if ($i > 20)\r\n {\r\n Messages::setMsg('There was a problem finding the first day of the pay period', 'error');\r\n echo \"<META http-equiv='refresh' content='0;URL=\" . ROOT_URL . \"employees'>\";\r\n die();\r\n }\r\n }\r\n return ($dayOne);\r\n }", "title": "" }, { "docid": "4fe1e831da4bbb8e0e002b9293605902", "score": "0.4747647", "text": "public function daily_cash_flow() {\n BackendMenu::setContext('Olabs.Oims', 'reportaccounts', 'daily_cash_flow');\n $this->searchFormWidget = $this->createDailyCashFlowSearchFormWidget();\n $this->pageTitle = 'Daily Cash FLow';\n $reports = array();\n $balance_amount = 0;\n $from_date = '';\n $to_date = '';\n $oimsSetting = \\Olabs\\Oims\\Models\\Settings::instance();\n\n $searchForm = $this->searchFormWidget;\n\n $this->vars['search'] = false;\n $this->vars['msg'] = false;\n $this->vars['searchFormWidget'] = $searchForm;\n $this->vars['reports'] = $reports;\n $this->vars['balance_amount'] = $balance_amount;\n $this->vars['from_date'] = $from_date;\n $this->vars['to_date'] = $to_date;\n\n $this->vars['oimsSetting'] = $oimsSetting;\n }", "title": "" }, { "docid": "fca4a9eaf4f922090eab9aa92cf13de0", "score": "0.47449407", "text": "public function run()\n {\n for ($i = 1; $i < 10; $i++) {\n $a = Admin::find($i);\n $a->daysOff()->attach(1);\n $a->daysOff()->attach(7);\n }\n\n $a = Admin::find(2);\n $a->daysOff()->attach(2);\n $a = Admin::find(3);\n $a->daysOff()->attach(4);\n $a = Admin::find(5);\n $a->daysOff()->attach(6);\n $a = Admin::find(6);\n $a->daysOff()->attach(2);\n $a->daysOff()->attach(3);\n $a = Admin::find(7);\n $a->daysOff()->attach(2);\n $a->daysOff()->attach(3);\n $a = Admin::find(8);\n $a->daysOff()->attach(5);\n $a->daysOff()->attach(6);\n $a = Admin::find(9);\n $a->daysOff()->attach(5);\n $a->daysOff()->attach(6);\n }", "title": "" }, { "docid": "132fcc1456568117137594c42df7e6f8", "score": "0.47436532", "text": "public function dailyCron()\n {\n if (!$this->_helper->isEnabled()) {\n return;\n }\n $this->updateTotalCount();\n }", "title": "" }, { "docid": "31a9c91fd11c1af761f5253514201362", "score": "0.47391963", "text": "function getNextGame() {\r\n global $dbaseMatchData, $SID, $Next_Match,$No_Matches_Scheduled,$leagueID;\r\n global $dbase;\r\n\r\n $todaysdate = date(\"Y-m-d H:i:s\");\r\n $tz = date(\"T\");\r\n \r\n // Search for the next date in the dbase.\r\n // If the matches are ordered, then the first should be the next game.\r\n $query = \"select * from $dbaseMatchData where lid='$leagueID' and matchdate>='$todaysdate' order by matchdate\";\r\n $result = $dbase->query($query);\r\n\r\n $count = mysql_num_rows($result);\r\n if ($count == 0) {\r\n $nextmatch = \"<b>$No_Matches_Scheduled</b>\";\r\n } else {\r\n $line = mysql_fetch_array($result, MYSQL_ASSOC);\r\n $matchid = $line[\"matchid\"];\r\n $matchdate = $line[\"matchdate\"];\r\n $textdate = convertDatetimeToScreenDate($matchdate);\r\n $hometeam = stripslashes($line[\"hometeam\"]);\r\n $awayteam = stripslashes($line[\"awayteam\"]);\r\n $nextmatch = \"<b>$Next_Match: <a href=\\\"index.php?sid=$SID&cmd=matchpreds&matchid=$matchid&date=$matchdate\\\">$hometeam v $awayteam </a></b> $textdate\";\r\n }\r\n\r\n return $nextmatch;\r\n }", "title": "" }, { "docid": "bfca8a0361fdb337e3e7a83dd1d290c1", "score": "0.47377622", "text": "public function addDay($n)\n\t{\n\t\t$this->timestamp += $n * 86400;\n\t\t$this->setValues();\n\t}", "title": "" }, { "docid": "8fc7863ae2b2123bfbbed841afada8ca", "score": "0.47237763", "text": "function next_entry()\n {\n global $IN, $TMPL, $LOC, $FNS, $REGX, $DB, $LANG, $FNS;\n \n\t\tif ($IN->QSTR == '')\n\t\t{\n\t\t return;\n }\n \n $qstring = $IN->QSTR;\n \n\t\t// --------------------------------------\n\t\t// Remove page number \n\t\t// --------------------------------------\n\t\t\n\t\tif (preg_match(\"#/P\\d+#\", $qstring, $match))\n\t\t{\t\t\t\n\t\t\t$qstring = $FNS->remove_double_slashes(str_replace($match['0'], '', $qstring));\n\t\t}\n \n $sql = \"SELECT t1.entry_id, t1.title, t1.url_title \n \t\tFROM exp_weblog_titles t1, exp_weblog_titles t2, exp_weblogs \n \t\tWHERE t1.weblog_id = exp_weblogs.weblog_id \";\n \t\t\n if (is_numeric($qstring))\n {\n\t\t\t$sql .= \" AND t1.entry_id != '$qstring' AND t2.entry_id = '\".$DB->escape_str($qstring).\"' \";\n }\n else\n {\n\t\t\t$sql .= \" AND t1.url_title != '$qstring' AND t2.url_title = '\".$DB->escape_str($qstring).\"' \";\n }\n \n\t\t$timestamp = ($TMPL->cache_timestamp != '') ? $LOC->set_gmt($TMPL->cache_timestamp) : $LOC->now;\n \t\t\n\t\t$sql .= \" AND t1.entry_date > t2.entry_date AND (t1.expiration_date = 0 || t1.expiration_date > \".$timestamp.\") \";\n \t\t\n if (USER_BLOG === FALSE)\n {\n \t$sql .= \" AND exp_weblogs.is_user_blog = 'n' \";\n \n if ($blog_name = $TMPL->fetch_param('weblog'))\n {\n $sql .= $FNS->sql_andor_string($blog_name, 'blog_name', 'exp_weblogs');\n }\n }\n else\n {\n \t$sql .= \" AND weblog_id = '\".UB_BLOG_ID.\"' \";\n }\n \t\t\n $sql .= \" ORDER BY t1.entry_date LIMIT 1\";\n \n $query = $DB->query($sql);\n \n if ($query->num_rows == 0)\n {\n \treturn;\n }\n \n\t\t$path = (preg_match(\"#\".LD.\"path=(.+?)\".RD.\"#\", $TMPL->tagdata, $match)) ? $FNS->create_url($match['1']) : $FNS->create_url(\"SITE_INDEX\");\n\t\t\n\t\t$path .= '/'.$query->row['url_title'].'/';\n\t\t\n\t\t$TMPL->tagdata = preg_replace(\"#\".LD.\"path=.+?\".RD.\"#\", $path, $TMPL->tagdata);\t\n\t\t$TMPL->tagdata = preg_replace(\"#\".LD.\"title\".RD.\"#\", $query->row['title'], $TMPL->tagdata);\t\n\t\t\t\t\n return $FNS->remove_double_slashes($TMPL->tagdata);\n }", "title": "" }, { "docid": "bf8b1e129996cd9ca6edd2f2f63ec480", "score": "0.4718818", "text": "public function testWorkflow_Active_FreeDays_Alt()\n {\n $nowOriginal = clone $this->engine->now();\n $now = Carbon::now()->day(15);\n $this->engine->now($now);\n\n $plan = $this->setUpPlan();\n $plan->plan_monthly_behavior = 'monthly_free';\n $plan->plan_month_day = 10;\n $plan->save();\n\n list($user, $plan, $membership, $service, $invoice) = $payload = $this->generatePaidMembership($plan);\n $this->assertNotNull($plan, $membership, $service, $service->status, $invoice, $invoice->status);\n\n $now2 = clone $now;\n $this->assertEquals(1, $service->count_renewal);\n $this->assertEquals(1, $service->invoices()->count());\n $this->assertEquals($now, $service->service_period_start, '', 5);\n $this->assertEquals($now2->addMonth()->day(10), $service->service_period_end, '', 5);\n $this->assertEquals(100, $invoice->total);\n\n // It is now the 26th of the month\n $this->timeTravelDay(11);\n $this->workerProcess();\n\n // Another invoice should not be raised yet\n $this->assertEquals(1, $service->invoices()->count());\n\n // It is now the 26th of the next month\n $this->timeTravelMonth();\n $this->workerProcess();\n\n list($user, $plan, $membership, $service, $invoice) = $payload = $this->reloadMembership($payload);\n\n // Second invoice is ready to go 1 month + 11 days later\n $this->assertEquals(2, $service->invoices()->count());\n\n // Reset\n $this->engine->now($nowOriginal);\n }", "title": "" }, { "docid": "ad3ed405967d0c2d08b4f0d996d082e7", "score": "0.4716455", "text": "function prev_working_day($preserveHours = false)\n {\n global $AppUI;\n $do = $this;\n $end = intval(CGAF::getConfig('date.cal_day_end'));\n $start = intval(CGAF::getConfig('date.cal_day_start'));\n while (!$this->isWorkingDay() || ($this->getHour() < $start) || ($this->getHour() == $start && $this->getMinute() == '0')) {\n $this->addDays(-1);\n $this->setTime($end, '0', '0');\n }\n if ($preserveHours)\n $this->setTime($do->getHour(), '0', '0');\n return $this;\n }", "title": "" }, { "docid": "1373b3fe530df1105c89156931bd8bca", "score": "0.47109926", "text": "public function rewind()\n\t{\n\t\t$this->current = clone $this->time;\n\t\twhile ($this->valid() &&\n\t\t\t$this->exceptions &&\n\t\t\tin_array($this->current->format('Ymd'),$this->exceptions))\n\t\t{\n\t\t\t$this->next_no_exception();\n\t\t}\n\t}", "title": "" }, { "docid": "4a3ec9f21d3515bfd565d0c799225a77", "score": "0.47084102", "text": "function notfilledDays($user_id,$fin_dates,$blockConfigDay){\n\t\t$monthCalWeek = array(); //cal_weeks in a month for notfilleddates\n\t\t$monthCalWeekDates = array();\n\n\t\tforeach($fin_dates as $notFilledDate){\n\t\t\t//echo $notFilledDate.'<br>';\n\t\t\t$cal_week = strftime('%U',strtotime($notFilledDate));\n\t\t\tif(!in_array($cal_week,$monthCalWeek)){\n\t\t\t\t$monthCalWeek[] = $cal_week;\n\t\t\t}\n\t\t\t/* $monthCalWeekDates(create individual cal_week dates array), This array not for specific month week */\n\t\t\t$monthCalWeekDates[$cal_week][] = $notFilledDate;\n\t\t}\n\n\t\tif(count($monthCalWeek) > 0){\n\t\t\tforeach($monthCalWeek as $key => $calWeekVal){\n\t\t\t\tif(count($monthCalWeekDates[$calWeekVal])){\n\t\t\t\t\t$calWeekDate = $monthCalWeekDates[$calWeekVal][0];\n\t\t\t\t\t$ts_model = new Timemanagement_Model_Timesheetstatus();\n\n\t\t\t\t\t//get start date of the week\n\t\t\t\t\t$getDayString = strftime('%A',strtotime($calWeekDate));\n\t\t\t\t\tif($getDayString == 'Sunday'){\n\t\t\t\t\t\t$startDateOfWeek = date('F d, Y', strtotime($calWeekDate));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$startDateOfWeek = date('F d, Y', strtotime('last sunday', strtotime($calWeekDate)));\n\t\t\t\t\t}\n\n\t\t\t\t\t$YearFromStartDate = strftime('%Y',strtotime($startDateOfWeek));\n\n\t\t\t\t\t$weekDates = array(date('Y-m-d', strtotime($startDateOfWeek)),\n\t\t\t\t\tdate('Y-m-d', strtotime($startDateOfWeek . \" +1 days\")),\n\t\t\t\t\tdate('Y-m-d', strtotime($startDateOfWeek . \" +2 days\")),\n\t\t\t\t\tdate('Y-m-d', strtotime($startDateOfWeek . \" +3 days\")),\n\t\t\t\t\tdate('Y-m-d', strtotime($startDateOfWeek . \" +4 days\")),\n\t\t\t\t\tdate('Y-m-d', strtotime($startDateOfWeek . \" +5 days\")),\n\t\t\t\t\tdate('Y-m-d', strtotime($startDateOfWeek . \" +6 days\")),\n\t\t\t\t\t);\n\n\t\t\t\t\t$loopDate = $weekDates[0];\n\n\t\t\t\t\t$yearCalWeekArray = array();\n\t\t\t\t\t$monthCalWeekArray = $monthWeekCalDatesArray = array();\n\n\t\t\t\t\twhile (strtotime($loopDate) <= strtotime($weekDates[6])) {\n\n\t\t\t\t\t\t$dateYearVal = strftime('%Y',strtotime($loopDate));\n\t\t\t\t\t\t$dateMonthVal = (int)strftime('%m',strtotime($loopDate));\n\n\t\t\t\t\t\t$yearCalWeekArray[] = $dateYearVal;\n\t\t\t\t\t\t$monthCalWeekArray[] = (int)$dateMonthVal;\n\t\t\t\t\t\t$monthWeekCalDatesArray[$dateMonthVal][] = $loopDate;\n\n\t\t\t\t\t\tif(!in_array($loopDate,$monthWeekCalDatesArray[$dateMonthVal])){\n\t\t\t\t\t\t\t$monthCalWeekArray[$dateMonthVal][] = $loopDate;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$loopDate = date (\"Y-m-d\", strtotime(\"+1 day\", strtotime($loopDate)));\n\t\t\t\t\t}\n\n\t\t\t\t\t$yearCalWeekArray = array_unique($yearCalWeekArray);\n\t\t\t\t\t$monthCalWeekArray = array_unique($monthCalWeekArray);\n\t\t\t\t\t//echo '<pre>';\n\t\t\t\t\t//print_r($monthWeekCalDatesArray); exit;\n\t\t\t\t\tforeach($monthCalWeekArray as $monthnum){\n\t\t\t\t\t\t$monthCalFirstWeek = date(\"Y-m-d\", strtotime(strftime('%Y',strtotime($monthWeekCalDatesArray[$monthnum][0])).'-'.strftime('%m',strtotime($monthWeekCalDatesArray[$monthnum][0])).'-01'));\n\t\t\t\t\t\t$monthCalFirstWeek = strftime('%U',strtotime($monthCalFirstWeek));\n\n\t\t\t\t\t\t$year = strftime('%Y',strtotime($monthWeekCalDatesArray[$monthnum][0]));\n\t\t\t\t\t\t$week = ($calWeekVal-$monthCalFirstWeek) + 1;\n\t\t\t\t\t\t$monthnum = (int)$monthnum;\n\t\t\t\t\t\t$empTsDataByDate = $ts_model->getTsRecordExists($user_id,$year,$monthnum,$week,$calWeekVal);//print_r($empTsDataByDate);exit;\n\n\t\t\t\t\t\t$weekTableDateKeys = array('sun_date','mon_date','tue_date','wed_date','thu_date','fri_date','sat_date');\n\t\t\t\t\t\t$weekTableStatusKeys = array('sun_status','mon_status','tue_status','wed_status','thu_status','fri_status','sat_status');\n\t\t\t\t\t\t$projWeekTableStatusKeys = array('sun_project_status','mon_project_status','tue_project_status','wed_project_status','thu_project_status','fri_project_status','sat_project_status');\n\n\t\t\t\t\t\tif(count($empTsDataByDate) == 0){\n\t\t\t\t\t\t\t$insertData = array('emp_id'=>$user_id,\n\t\t\t\t\t\t\t\t\t\t\t 'ts_year'=>$year,\n\t\t\t\t\t\t\t\t\t\t\t 'ts_month' => $monthnum,\n\t\t\t\t\t\t\t\t\t\t\t 'ts_week' => $week,\n\t\t\t\t\t\t\t\t\t\t\t 'cal_week'=>$calWeekVal,\n\t\t\t\t\t\t\t\t\t\t\t 'is_active' => 1,\n\t\t\t\t\t\t 'created_by' => 1,\n\t\t\t\t\t\t\t\t\t\t\t 'created' => gmdate(\"Y-m-d H:i:s\"),\n\t\t\t\t\t\t\t\t\t\t\t 'modified' => gmdate(\"Y-m-d H:i:s\"),\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t$tableStatusArray = array();\n\t\t\t\t\t\t\t$blockedFlag = false;\n\t\t\t\t\t\t\t$projStatusArray = array();\n\t\t\t\t\t\t\tforeach($weekTableDateKeys as $key => $tableDate){\n\t\t\t\t\t\t\t\t$projStatusArray[$projWeekTableStatusKeys[$key]] = 'no_entry';\n\t\t\t\t\t\t\t\t$insertData[$tableDate] = $weekDates[$key];\n\n\t\t\t\t\t\t\t\tif(in_array($weekDates[$key],$monthCalWeekDates[$calWeekVal])){\n\t\t\t\t\t\t\t\t\tif(in_array($weekDates[$key],$monthWeekCalDatesArray[$monthnum])){ \n\t\t\t\t\t\t\t\t\t\t$blockedFlag = true;\n\t\t\t\t\t\t\t\t\t\t$tableStatusArray[$weekTableStatusKeys[$key]] = 'blocked';\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t$tableStatusArray[$weekTableStatusKeys[$key]] = 'no_entry';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t$tableStatusArray[$weekTableStatusKeys[$key]] = 'no_entry';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// row not exists in tbl_ts_status, insert in 3 tables(tbl_ts_status,tm_emp_timesheets,tm_emp_ts_notes)\n\t\t\t\t\t\t\t$insertedEmpTsid = $ts_model->SaveEmpTsData($insertData);\n\t\t\t\t\t\t\t$insertedEmpTsNoesid = $ts_model->SaveEmpTsNotesData($insertData);\n\n\t\t\t\t\t\t\t// add day status and week status to inserted array\n\t\t\t\t\t\t\tif($blockedFlag){\n\t\t\t\t\t\t\t\t$week_status = array('week_status' => 'blocked');\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$week_status = array('week_status' => 'no_entry');\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$tsinsertData = $insertData + $tableStatusArray+ $week_status+$projStatusArray;\n\t\t\t\t\t\t\t$insertedTsid = $ts_model->SaveTsData($tsinsertData);\n\n\t\t\t\t\t\t}else{ // update tbl_ts_status table for not not filled dates\n\t\t\t\t\t\t\t$updateData = array();\n\t\t\t\t\t\t\t$blockedFlag = false;\n\t\t\t\t\t\t\tforeach($weekTableDateKeys as $key => $tableDate){\n\t\t\t\t\t\t\t\tif(in_array($weekDates[$key],$monthCalWeekDates[$calWeekVal])){\n\t\t\t\t\t\t\t\t\tif(in_array($weekDates[$key],$monthWeekCalDatesArray[$monthnum])){ \n\t\t\t\t\t\t\t\t\t $blockedFlag = true;\n\t\t\t\t\t\t\t\t\t\t$updateData[$weekTableStatusKeys[$key]] = 'blocked';\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t$updateData[$weekTableStatusKeys[$key]] = 'no_entry';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// add day status and week status to inserted array\n\t\t\t\t\t\t\tif($blockedFlag){\n\t\t\t\t\t\t\t\t$week_status_text = 'blocked';\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$week_status_text = 'no_entry';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$updateData = $updateData + array('week_status' => $week_status_text,'modified' => gmdate(\"Y-m-d H:i:s\"));\n\t\t\t\t\t\t\t$where['emp_id = ?'] = $user_id;\n\t\t\t\t\t\t\t$where['ts_year = ?'] = $year;\n\t\t\t\t\t\t\t$where['ts_month = ?'] = $monthnum;\n\t\t\t\t\t\t\t$where['ts_week = ?'] = $week;\n\t\t\t\t\t\t\t$where['cal_week = ?'] = $calWeekVal;\n\n\t\t\t\t\t\t\t$updateTs = $ts_model->updateTsData($updateData,$where);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}//end if(dates count in a week)\n\t\t\t}//end foreach $monthCalWeek Array\n\t\t}//end if $monthCalWeek count > 0\n\t}", "title": "" }, { "docid": "bb1364dd072cdbe1b4cb066e713b4848", "score": "0.4705092", "text": "function getSunday($date) {\r\n $now = $date;\r\n while (1) {\r\n $obj = self::dateOBJ($now);\r\n if ($obj['day'] == 7) return $now;\r\n $now = self::next_date($now);\r\n unset($obj);\r\n }\r\n }", "title": "" }, { "docid": "578d4a7a996eff40ba013171b6d87dac", "score": "0.47015905", "text": "public function testRepoReturnsNullIfNotWorkingDayWithThatDayExists()\n {\n $this->workingDayWithTask = $this->getWorkingDayWithTask();\n\n $this->inMemoryRepo->add($this->workingDayWithTask);\n\n $nullWorkingDayFromRepo = $this->inMemoryRepo->getByDate(Carbon::tomorrow('Europe/Madrid'));\n\n $this->assertNull($nullWorkingDayFromRepo);\n }", "title": "" }, { "docid": "81e9ec20e3aed6c9c0f97bdeba85a2a8", "score": "0.4697199", "text": "public function isTomorrow();", "title": "" }, { "docid": "637e945b78cbb5365d05a0231accb117", "score": "0.46966252", "text": "private function calculatePentecostMonday(): void\n {\n $type = Holiday::TYPE_OFFICIAL;\n\n if ($this->year >= 2004) {\n $type = Holiday::TYPE_OBSERVANCE;\n }\n\n $this->addHoliday($this->pentecostMonday($this->year, $this->timezone, $this->locale, $type));\n }", "title": "" }, { "docid": "5aed76c747d6d3b42b003f0139a549ac", "score": "0.46929374", "text": "function genHelDoAddOneDayToDate($date)\n {\n $date = new DateTime($date);\n\n $date->modify('+1 day');\n return $date->format('Y-m-d');\n\n }", "title": "" }, { "docid": "6c27408fbbcefe548da8dc3e8b587954", "score": "0.46913186", "text": "public function nextOpen(DateTime $dt = null)\n {\n $dateFilter = $this->validateDate($dt);\n $closuresForTheDay = $this->getClosuresForDate($dateFilter)->exists();\n\n if ($closuresForTheDay) {\n\n $dateFilter->modify('+1 day');\n\n $closuresForTheDay = $this->getClosuresForDate($dateFilter);\n $nextOpen = $this->nextOpen($dateFilter);\n }\n\n if ($this->isClosed($dateFilter)) {\n\n $firstOpenDay = ShopOperatingTime::min('shop_operating_weekday_id');\n $lastOpenDay = ShopOperatingTime::max('shop_operating_weekday_id');\n $currentDayInt = $dateFilter->format('N');\n\n if ($this->isPastCutOffTime($dateFilter) && $currentDayInt >= $lastOpenDay) {\n $nextOpening = ShopOperatingTime::with('operatingWeekday')->where([\n ['shop_operating_weekday_id', '=', $firstOpenDay]\n ]);\n $dateFilter->modify('next ' . $nextOpening->first()->operatingWeekday->weekday_label);\n } else {\n $nextOpening = ShopOperatingTime::where([\n ['shop_operating_weekday_id', '=', $currentDayInt],\n ['opening_time', '>=', $dateFilter->format('H:i:s')],\n ]);\n\n if (!$nextOpening->exists()) {\n $nextOpening = ShopOperatingTime::where([\n ['shop_operating_weekday_id', '=', $currentDayInt],\n ['opening_time', '<=', $dateFilter->format('H:i:s')],\n ]);\n $dateFilter->modify('+1 day');\n }\n }\n $nextOpeningTime = explode(\n \":\",\n $nextOpening->first()->opening_time\n );\n\n return $dateFilter->setTime(\n $nextOpeningTime[0],\n $nextOpeningTime[1],\n $nextOpeningTime[2]\n );\n }\n\n return $dateFilter;\n }", "title": "" }, { "docid": "d675d1154d9ce969b49c4ee095f01bc8", "score": "0.4686193", "text": "public function index(){\n dump(strtotime('-1 day'));\n\t //\treturn $this->fetch();\n\t }", "title": "" } ]
1b39e02288f33f806d95ffad0bcd4534
Seed the application's database.
[ { "docid": "dc628dfc896228e389e848d89045f000", "score": "0.0", "text": "public function run()\n {\n Category::create([\n 'name'=>'laptop',\n 'slug'=>'laptop',\n 'description'=>'laptop category',\n 'image'=>'files/mobile.jpg'\n ]);\n Category::create([\n 'name'=>'laptop1',\n 'slug'=>'laptop1',\n 'description'=>'laptop1 category',\n 'image'=>'files/mobile.jpg'\n ]);\n Category::create([\n 'name'=>'laptop12',\n 'slug'=>'laptop12',\n 'description'=>'laptop12 category',\n 'image'=>'files/mobile.jpg'\n ]);\n Subcategory::create([\n 'name'=>'sony',\n 'category_id'=>1\n ]);\n Subcategory::create([\n 'name'=>'sony1',\n 'category_id'=>2\n ]);\n Subcategory::create([\n 'name'=>'sony12',\n 'category_id'=>3\n ]);\n Product::create([\n 'name'=>'sony laptop',\n 'image'=>'product/mobile.jpg',\n 'price'=>rand(10000,20000),\n 'description'=>'this is the description of a product',\n 'additional_info'=>'this is additional information',\n 'category_id'=>1,\n 'subcategory_id'=>1\n ]);\n Product::create([\n 'name'=>'sony laptop1',\n 'image'=>'product/mobile.jpg',\n 'price'=>rand(20000,40000),\n 'description'=>'this is the description of a product',\n 'additional_info'=>'this is additional information',\n 'category_id'=>2,\n 'subcategory_id'=>2\n ]);\n Product::create([\n 'name'=>'sony laptop12',\n 'image'=>'product/mobile.jpg',\n 'price'=>rand(40000,60000),\n 'description'=>'this is the description of a product',\n 'additional_info'=>'this is additional information',\n 'category_id'=>3,\n 'subcategory_id'=>3\n ]);\n User::create([\n 'name'=>'EcomAdmin',\n 'email'=>'rms@gmail.com',\n 'password'=>bcrypt('password'),\n 'email_verified_at'=>NOW(),\n 'address'=>'Dhaka',\n 'phone_number'=>'01847330008',\n 'is_admin'=>1\n ]);\n User::create([\n 'name'=>'EcomUser',\n 'email'=>'user@gmail.com',\n 'password'=>bcrypt('password'),\n 'email_verified_at'=>NOW(),\n 'address'=>'Dhaka',\n 'phone_number'=>'01847330008',\n 'is_admin'=>0\n ]);\n }", "title": "" } ]
[ { "docid": "624c72ead8c9c21fcc16e737553a1052", "score": "0.777958", "text": "protected function seedDatabase()\n {\n if ($this->config['populate']) {\n if ($this->config['verbose']) {\n $this->writeln('Seeding test data');\n }\n }\n }", "title": "" }, { "docid": "74fe8cfa27723303984028c96a86bc7f", "score": "0.7486858", "text": "public static function seed() {\n Log::debug('db', 'The seed command has not been implemented yet.');\n }", "title": "" }, { "docid": "bf1acaa1cc2c8af0179e0daecca90177", "score": "0.7343304", "text": "public function seedDB(){\n //$seed->run();\n }", "title": "" }, { "docid": "01ab98199454c942078d3fbdd8dd3245", "score": "0.7095894", "text": "public function run()\n {\n\n if ($this->command->confirm('This will delete existing data from the database and create new seed data. Are you sure you want to continue?')) {\n\n $path = public_path().'/storage/uploads/avatars';\n if (File::isDirectory($path)) { File::deleteDirectory($path); }\n File::isDirectory($path) or File::makeDirectory($path, 0777, true, true);\n\n DB::table('pets')->delete();\n DB::table('users')->delete();\n DB::table('tags')->delete();\n DB::table('taggables')->delete();\n\n $this->createDevUser();\n\n // create users\n factory(App\\User::class, 25)->create()->each(function ($user) {\n\n // (maybe) create pets\n $pets = [];\n factory(App\\Pet::class, rand(0, 3))->create()->each(function ($pet) use ($user) {\n $user->pets()->save($pet);\n $pets[] = $pet;\n });\n\n });\n\n $this->command->info('Successfully seeded database with sample users and pets. (login with dev@dev.com/secret)');\n } else {\n $this->command->line('db:seed command has been cancelled.');\n }\n }", "title": "" }, { "docid": "8b13e63766cfed0ee237408950922d64", "score": "0.7008505", "text": "public function run()\n {\n \\DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n \\DB::table('attendances')->truncate();\n factory(App\\Attendance::class, static::$seedCount)->make()->each(function (App\\Attendance $attendance) {\n $guestId = random_int(1, GuestsTableSeeder::$seedCount);\n if (DB::table('attendances')->where('guest_id', $guestId)->where('openarms_session_id', $attendance->openarms_session_id)->exists()) {\n return;\n }\n $attendance->guest_id = $guestId;\n $attendance->save();\n });\n \\DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n }", "title": "" }, { "docid": "08082ff87e10335eb2600b8c8b08df19", "score": "0.7008114", "text": "protected function populateDB()\n {\n $this->databaseManager->table('users')->delete();\n\n $users = [];\n\n for ($i = 0; $i < 100; $i++) {\n $faker = Factory::create();\n\n array_push($users, [\n 'name' => $faker->name,\n 'email' => $faker->unique()->email,\n 'password' => $faker->password,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n }\n\n $this->databaseManager->table('users')->insert($users);\n }", "title": "" }, { "docid": "5f68075df0abcd6c5093dbc9205cec38", "score": "0.6984913", "text": "public function run()\n {\n \\DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n \\DB::table('users')->truncate();\n factory(App\\User::class, static::$seedCount)->create();\n\n \\DB::table('role_user')->truncate();\n \\DB::table('role_user')->insert(['user_id' => 1, 'role_id' => 1]);\n \\DB::table('role_user')->insert(['user_id' => 2, 'role_id' => 1]);\n\n \\DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n }", "title": "" }, { "docid": "f0cb610e9a8dce78912a8f8303156a02", "score": "0.69839036", "text": "public function seedDb(){\n // Artisan::call('migrate:refresh');\n Artisan::call('db:seed', ['--class'=>'ScannerSeeder'] );\n }", "title": "" }, { "docid": "5d03df505da2646ac17f29a1ebe7479c", "score": "0.6978414", "text": "public function run()\n {\n //\n if (App::environment() === 'production') {\n exit('Do not seed in production environment');\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // disable foreign key constraints\n DB::table('detection_form')->truncate();\n\n DetectionForm::create([\n 'id' => 1,\n 'name' => 'Throat Cancer Detection Form',\n 'description' => 'This form contains regarding diagnosis of Throat Cancer',\n 'cancerId' => 1,\n 'createdBy' => 1,\n ]);\n \n DB::statement('SET FOREIGN_KEY_CHECKS = 1'); // enable foreign key constraints\n }", "title": "" }, { "docid": "ead83ba6866241c631b1f86481b7213f", "score": "0.69673795", "text": "public function seed() {\n\t\tUser::unguard(); // to be able to fill password\n\t\tUser::create([\n\t\t\t'id' => 1,\n\t\t\t'name' => 'Rico',\n\t\t\t'email' => 'rico@example.com',\n\t\t\t'password' => md5('test'),\n\t\t]);\n\t\tUser::create([\n\t\t\t'id' => 2,\n\t\t\t'name' => 'Marco',\n\t\t\t'email' => 'marco@example.com',\n\t\t\t'password' => md5('test'),\n\t\t]);\n\t\tUser::reguard();\n\t}", "title": "" }, { "docid": "46ecc45967855f89c3451f9b7ce020bf", "score": "0.6965884", "text": "public function run()\n {\n if (env('APP_ENV') == 'production'){\n die('The application has died, horribly. Don\\'t seed fake data to production, goofball');\n }\n $this->call(CyclesTableSeeder::class);\n $this->call(JournalsTableSeeder::class);\n $this->call(OpsTableSeeder::class);\n $this->call(PhotosTableSeeder::class);\n $this->call(PlantsTableSeeder::class);\n $this->call(StagesTableSeeder::class);\n $this->call(DataTableSeeder::class);\n $this->call(SeedCompaniesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(StrainsTableSeeder::class);\n $this->call(TagsTableSeeder::class);\n\n Model::reguard();\n }", "title": "" }, { "docid": "7eee72bcbc9b79f110ce93b52e46dafc", "score": "0.69507766", "text": "public function run()\n\t{\n\t\t//DB::table('applications')->truncate();\n\n\t\t$data = array(\n\t\t);\n\n\t\t// // Uncomment the below to run the seeder\n\t\tDB::table('applications')->insert($data);\n\t}", "title": "" }, { "docid": "5afe62e5ef69248371b0533944837bfa", "score": "0.6944875", "text": "public function run()\n {\n $this->seed('Database\\Seeders\\DataTypesTableSeeder');\n $this->seed('Database\\Seeders\\DataRowsTableSeeder');\n $this->seed('Database\\Seeders\\MenusTableSeeder');\n $this->seed('Database\\Seeders\\MenuItemsTableSeeder');\n $this->seed('Database\\Seeders\\RolesTableSeeder');\n $this->seed('Database\\Seeders\\PermissionsTableSeeder');\n $this->seed('Database\\Seeders\\PermissionRoleTableSeeder');\n $this->seed('Database\\Seeders\\SettingsTableSeeder');\n }", "title": "" }, { "docid": "ef86f91ef66143e3a212e72c445ea0b5", "score": "0.69448125", "text": "public function run()\n {\n Eloquent::unguard();\n\n //disable foreign key check for this connection before running seeders\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n \n Speakers::truncate();\n factory(App\\Speakers::class, 15)->create();\n\n Members::truncate();\n factory(App\\Members::class, 5)->create();\n\n Supporters::truncate();\n factory(App\\Supporters::class, 10)->create();\n\n Workshops::truncate();\n factory(App\\Workshops::class, 10)->create();\n SponsorsGroups::truncate();\n factory(App\\SponsorsGroups::class, 5)->create();\n\n Sponsors::truncate();\n factory(App\\Sponsors::class, 15)->create();\n\n Jobs::truncate();\n factory(App\\Jobs::class, 15)->create();\n\n Topics::truncate();\n factory(App\\Topics::class, 6)->create();\n\n Talk::truncate();\n factory(App\\Talk::class, 10)->create();\n\n ScheduleItem::truncate();\n\n foreach (Talk::all() as $talk) {\n $talk->speakers()->sync(App\\Speakers::all()->random(1)->first());\n }\n\n foreach (Workshops::all() as $workshop) {\n $workshop->speakers()->sync(App\\Speakers::all()->random(1)->first());\n }\n\n App\\VideoGroups::truncate();\n factory(App\\VideoGroups::class, 4)->create();\n\n App\\Videos::truncate();\n factory(App\\Videos::class, 40)->create();\n\n App\\EventImages::truncate();\n factory(App\\EventImages::class, 4)->create();\n \n User::truncate();\n $user = new User;\n $user->name = 'Admin';\n $user->email = 'admin@admin.test';\n $user->password = bcrypt('123456');\n $user->save();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "782c955f057a1bfce60c8518ac688c27", "score": "0.69353837", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n $this->call(StatesTableSeeder::class);\n $this->call(CitiesTableSeeder::class);\n\n \\App\\Models\\Admin::create([\n 'email' => 'joaogustavo.b@hotmail.com',\n 'password' => Hash::make('123456'),\n 'name' => 'Administrador'\n ]);\n\n //$this->call(UserSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "4d602b7213827168b3b0d96cf3e7172f", "score": "0.69046545", "text": "public function run()\n {\n\t\t//Do the production seeding\n\t\t\n\t\t$users = User::all();\n\t\t//Seed the site configuration defaults\n\t\tSeedingHelper::SeedPaginationTable();\n\t\tSeedingHelper::SeedRatingRestrictionTable();\n\t\tSeedingHelper::SeedPlaceholderTable();\n\t\t\n\t\t//Seed the user configuration\n\t\tforeach ($users as $user)\n\t\t{\n\t\t\tSeedingHelper::SeedPaginationTable($user);\n\t\t\tSeedingHelper::SeedRatingRestrictionTable($user);\n\t\t\tSeedingHelper::SeedPlaceholderTable($user);\n\t\t}\n }", "title": "" }, { "docid": "8e2223e323aa0ac0ca8dafa81178e356", "score": "0.6887677", "text": "public function run()\n\t{\n\t\t// Safety measure\n\t\tif(App::environment() == 'production')\n\t\t{\n\t\t\texit('No seeding allowed on production!');\n\t\t}\n\n\t\tEloquent::unguard();\n\n // Seed\n\t\t$this->call('ChiefPostsTableSeeder');\n\t\t$this->call('ChiefUsersTableSeeder');\n\t\t$this->call('ChiefCommentsTableSeeder');\n\t\t$this->call('ChiefTagsTableSeeder');\n\n\t\t// Fakeseeding\n\t\t// $this->call('ChiefFakerSeeder');\n\t\t\n\t}", "title": "" }, { "docid": "75e04ddb17bc88c3933f6e707b84424e", "score": "0.68510777", "text": "public function run()\n {\n // Ask for db migration refresh, default is no\n if ($this->command->confirm('Do you wish to refresh migration before seeding, it will clear all old data ?')) {\n $this->command->call('migrate:refresh');\n $this->command->warn('Data cleared, starting from blank database.');\n }\n\n // Confirm roles and permisson default needed\n if ($this->command->confirm('Create default roles, permission and user owner?', true)) {\n app()['cache']->forget('spatie.permission.cache'); // Reset cached roles and permissions\n\n $permissions = Permission::defaultPermissions();\n\n // Seed the default permissions\n foreach ($permissions as $p) {\n Permission::firstOrCreate(['name' => $p]);\n }\n $this->command->info('Default Permissions added.');\n\n $roles = Role::defaultRoles();\n\n // Seed the default roles\n foreach ($roles as $role) {\n $role = Role::firstOrCreate(['name' => $role]);\n\n if ($role->name == 'owner') {\n // assign all permissions\n $role->syncPermissions(Permission::all());\n $this->command->info('Owner granted all the permissions');\n }\n\n if ($role->name == 'administrator') {\n $role->givePermissionTo([\n 'edit-groups', 'view-staffs-groups', 'view-invitation-groups',\n ]);\n }\n\n if ($role->name == 'admin-group') {\n $role->givePermissionTo([\n 'edit-group', 'checkin-appointment-group', 'view-staffs-group', 'view-invitation-group',\n ]);\n }\n\n if ($role->name == 'admin-counter') {\n $role->givePermissionTo([\n 'checkin-appointment-group',\n ]);\n }\n }\n\n $this->command->info('Default Roles added.');\n $user = factory(User::class)->create();\n $user->assignRole('owner');\n $this->command->info('Default Owner added.');\n $this->command->info('Here is your owner details to login:');\n $this->command->warn($user->email);\n $this->command->warn('Password is \"secret\"');\n $this->command->call('cache:clear');\n }\n }", "title": "" }, { "docid": "e8069e1b393526cf00601cee204641b9", "score": "0.6827522", "text": "public function seed()\n {\n $save = array();\n $save['name'] = 'administrator';\n $save['email'] = 'admin@gmail.com';\n $save['password'] = bcrypt('admin123');\n User::create($save);\n }", "title": "" }, { "docid": "0e273b0c8f9872192a69fd26dacec980", "score": "0.6820996", "text": "public function run()\n {\n //FOR SYSTEM - FIXED\n $this->call(PermissionTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(PermissionRoleTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n //FOR DEMO\n $this->call(BookAddressTableSeeder::class);\n $this->call(RatesTableSeeder::class);\n //$this->call(AppSettingsTableSeeder::class);\n \n //script re-new database \n // DROP DATABASE IF EXISTS demo_wom;\n // CREATE DATABASE IF NOT EXISTS demo_wom CHARACTER SET utf8 COLLATE utf8_general_ci;\n }", "title": "" }, { "docid": "2c33efe4b205b906cee11172b1491534", "score": "0.6813255", "text": "public function initDatabase()\n {\n\n $this->call('migrate');\n\n $userModel = config('admin.database.admin_model');\n\n if ($userModel::count() == 0) {\n $this->call('db:seed', ['--class' => \\Future\\Admin\\Auth\\Database\\AdminTablesSeeder::class]);\n }\n\n }", "title": "" }, { "docid": "92dfd99ab3b0f2ba72c07fd8a771e58c", "score": "0.680688", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // User::truncate();\n Page::truncate();\n\n // factory(User::class, 10)->create();\n factory(Page::class, 5)->create();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "5b195a5409e2faabdf4d2a87aee3cbf1", "score": "0.6802748", "text": "public function run()\n {\n Schema::disableForeignKeyConstraints();\n User::truncate();\n Schema::enableForeignKeyConstraints();\n\n factory(User::class)->create([\n 'name' => config('fixture.user_role.master'),\n 'role' => 'master',\n 'email' => 'k-wada@mikunilabo.com',\n 'password' => bcrypt(config('database.connections.mysql.password')),\n ]);\n\n factory(User::class)->create([\n 'name' => config('fixture.user_role.company-admin'),\n 'role' => 'company-admin',\n 'email' => 'redbull.816.com@gmail.com',\n 'password' => bcrypt(config('database.connections.mysql.password')),\n ]);\n\n factory(User::class)->create([\n 'name' => config('fixture.user_role.store-admin'),\n 'role' => 'store-admin',\n 'email' => 'red.bull.816.com@gmail.com',\n 'password' => bcrypt(config('database.connections.mysql.password')),\n ]);\n\n factory(User::class)->create([\n 'name' => config('fixture.user_role.store-user'),\n 'role' => 'store-user',\n 'email' => 're.d.bull.816.com@gmail.com',\n 'password' => bcrypt(config('database.connections.mysql.password')),\n ]);\n }", "title": "" }, { "docid": "150f5fd738e490e8cb388a3b9a514918", "score": "0.67946166", "text": "public function run()\n {\n /* ===== ORDER IS IMPORTANT ===== */\n /* ===== KEEP THE ORDER SAME ===== */\n // update voyager tables\n $this->seed('DataTypesTableSeeder');\n $this->seed('DataRowsTableSeeder');\n $this->seed('MenusTableSeeder');\n $this->seed('MenuItemsTableSeeder');\n $this->seed('PermissionsTableSeeder');\n $this->seed('PermissionRoleTableSeeder');\n $this->seed('SettingsTableSeeder');\n }", "title": "" }, { "docid": "2a2e06c37c669b5d94df1eccc70512b4", "score": "0.6791369", "text": "public function run()\n {\n //Seeds 30 Fake Users to your Database\n factory(App\\User::class, 30)->create();\n\n //Seeds 100 Posts to your database\n factory(App\\Post::class, 100)->create();\n }", "title": "" }, { "docid": "54a55a0bd6e4a678e410cf1dfa061d10", "score": "0.67792666", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n (new \\Database\\Seeders\\MotivoSeeder())->run();\n (new \\Database\\Seeders\\UnidadeSeeder())->run();\n \\App\\Models\\Fornecedor::factory(10)->create();\n \\App\\Models\\SiteContato::factory(10)->create();\n (new \\Database\\Seeders\\ProdutoSeeder())->run();\n (new \\Database\\Seeders\\ProdutoDetalheSeeder())->run();\n }", "title": "" }, { "docid": "5229468c2db4cf83695cbd6872a949d6", "score": "0.67778635", "text": "public function run()\n {\n DB::unprepared(file_get_contents('database/seeds/000-schema-mysql.sql'));\n $this->command->info('DB created');\n\n DB::unprepared(file_get_contents('database/seeds/001-data-category.sql'));\n $this->fakeCategories();\n $this->command->info('Fake categories created');\n\n DB::insert(\"insert into `adz_user` (`email`, `password`, `created_at`, `role`, `name`)\n values (?,?,now(),?,?)\", ['orlov@adz.me', Hash::make('asdasd'), 'admin', 'Yuri Orlov']);\n $this->fakeUsers();\n $this->command->info('Fake users created');\n\n }", "title": "" }, { "docid": "6bef7069c32b22f8c6d817eb2a609d8a", "score": "0.6773936", "text": "protected function setupDatabase(): void\n {\n $this->getConnection();\n\n $this->createTables();\n $this->truncateTables();\n\n if (!empty($this->fixtures)) {\n $this->insertFixtures($this->fixtures);\n }\n }", "title": "" }, { "docid": "7f2b133a2feb626a4c74f7a725127359", "score": "0.6771278", "text": "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Model::unguard();\n\n\n User::truncate();\n\n //re-enable foreign key check for this connection\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n\n factory(User::class, 50)->create();\n\n Model::reguard();\n\n //Run all seeders\n $this->call(UserTableSeeder::class);\n $this->call(RoleUserTableSeeder::class);\n $this->call(PermissionRoleTableSeeder::class);\n $this->call(SurveyTableSeeder::class);\n $this->call(QuestionTableSeeder::class);\n $this->call(OptionTableSeeder::class);\n $this->call(AnswerTableSeeder::class);\n\n }", "title": "" }, { "docid": "a0a19bc70d5dfbbf88aabbd2fbf81bf7", "score": "0.6769586", "text": "public function run()\n {\n DB::table('admins')->insert([\n 'name' => Str::random(10),\n 'email' => 'admin' . '@gmail.com',\n 'password' => Hash::make('admin1'),\n ]);\n\n $faker = Faker\\Factory::create('id_ID');\n }", "title": "" }, { "docid": "17af4cf9c6ed8f14c6e4fd8b42dc102b", "score": "0.6749777", "text": "public function run()\n {\n Model::unguard();\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n // empty all tables\n DB::table('collections')->truncate();\n DB::table('pages')->truncate();\n DB::table('fragments')->truncate();\n DB::table('images')->truncate();\n DB::table('metadetails')->truncate();\n // seed DB\n factory('App\\Api\\V1\\Models\\Collection', 5)->create();\n factory('App\\Api\\V1\\Models\\Page', 20)->create();\n factory('App\\Api\\V1\\Models\\Metadetail', 50)->create();\n factory('App\\Api\\V1\\Models\\Fragment', 50)->create();\n factory('App\\Api\\V1\\Models\\Fragment', 'section', 20)->create();\n factory('App\\Api\\V1\\Models\\Image', 50)->create();\n // Add relationships\n $this->call('CollectionsTableSeeder');\n $this->call('PagesTableSeeder');\n $this->call('MetadetailsTableSeeder');\n $this->call('FragmentsTableSeeder');\n $this->call('ImagesTableSeeder');\n // rest DB\n DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n Model::reguard();\n }", "title": "" }, { "docid": "241997fba179a7ec36c99a0bebc87cc5", "score": "0.674408", "text": "public function run()\n {\n if (App::environment() === 'production') {\n exit('Seed should be run only in development/debug environment.');\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n DB::table('permission_user')->truncate();\n\n $partnerAdmin = User::where('email', 'root@allaccessrms.com')->first();\n $partnerAdmin->assignPermission('users');\n $partnerAdmin->assignPermission('events');\n $partnerAdmin->assignPermission('organizations');\n $partnerAdmin->assignPermission('attendees');\n\n $partnerAdmin = User::where('email', 'admin1@partner1.com')->first();\n $partnerAdmin->assignPermission('users');\n $partnerAdmin->assignPermission('attendees');\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n }", "title": "" }, { "docid": "5053d2123fba40128d014ec96d2e1bd3", "score": "0.6743446", "text": "public function run()\n {\n Model::unguard();\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n $this->truncateTables();\n\n $this->call(CountriesTableSeeder::class);\n\n $this->call(SlidersTableSeeder::class);\n\n $this->call(CategoriesTableSeeder::class);\n\n $this->call(NewsLettersTableSeeder::class);\n\n $this->call(StoresTableSeeder::class);\n\n $this->call(UsersTableSeeder::class);\n\n $this->call(AreasTableSeeder::class);\n\n $this->call(StoreAreasTableSeeder::class);\n\n $this->call(CouponsTableSeeder::class);\n\n// $this->call(ProductsTableSeeder::class);\n\n $this->call(UserLikesTableSeeder::class);\n\n $this->call(ProductCategoriesTableSeeder::class);\n\n// $this->call(OrdersTableSeeder::class);\n\n factory(\\App\\Ad::class,3)->create();\n\n Model::reguard();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "23fee21ff0d9b36494386681d9421179", "score": "0.6733592", "text": "public function run()\n {\n $this->clearTables();\n\n $this->call(UserSeeder::class);\n $this->call(ConferenceSeeder::class);\n }", "title": "" }, { "docid": "7af5e923843a3ebb1827eaa3d1e893c2", "score": "0.6727611", "text": "public function run()\n {\n $faker = \\Faker\\Factory::create();\n\n DB::table(\"posts\")->insert([\n \"title\" => $faker->sentence(),\n \"content\" => $faker->text(400),\n \"user_id\" => $faker->numberBetween(1, 3)\n ]);\n }", "title": "" }, { "docid": "aad53c4e222af5eef7ae5751a2e33180", "score": "0.6727349", "text": "public function run()\n\t{\n\t\t// DB::table('deploys')->delete();\n\t\t// DB::table('historicos')->delete();\n\n\t\t$this->call('UserTableSeeder');\n\t\t$this->call('ProjetoTableSeeder');\n\t\t$this->call('HistoricoTableSeeder');\n\t}", "title": "" }, { "docid": "1c2beb057a8109b66038b34ee0a8d7cd", "score": "0.6723972", "text": "public function run()\n\t{\n\t\tModel::unguard();\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n\n DB::statement('TRUNCATE TABLE granit_memorials');\n DB::statement('TRUNCATE TABLE granit_guestbooks');\n DB::statement('TRUNCATE TABLE granit_timelines');\n DB::statement('TRUNCATE TABLE granit_photo_albums');\n DB::statement('TRUNCATE TABLE granit_photo_comments');\n DB::statement('TRUNCATE TABLE granit_videos');\n DB::statement('TRUNCATE TABLE granit_video_comments');\n DB::statement('TRUNCATE TABLE granit_services');\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n\n $this->call(ServicesTableSeeder::class);\n\t\t$this->call(MemorialTableSeeder::class);\n\t\t$this->call(GuestbookTableSeeder::class);\n\t\t$this->call(TimelineTableSeeder::class);\n\t\t$this->call(PhotoAlbumsTableSeeder::class);\n\t\t$this->call(VideoTableSeeder::class);\n\t}", "title": "" }, { "docid": "f479c4c8e7d3d948e24e9ea980221257", "score": "0.6722574", "text": "public function run()\n {\n Schema::disableForeignKeyConstraints();\n DB::table('users')->truncate();\n DB::table('books')->truncate();\n DB::table('authors')->truncate();\n DB::table('genres')->truncate();\n DB::table('publishers')->truncate();\n DB::table('languages')->truncate();\n DB::table('members')->truncate();\n DB::table('member_types')->truncate();\n DB::table('punishments')->truncate();\n Schema::enableForeignKeyConstraints();\n\n $this->call(UsersSeeder::class);\n $this->call(BooksSeeder::class);\n $this->call(AuthorsSeeder::class);\n $this->call(GenresSeeder::class);\n $this->call(PublishersSeeder::class);\n $this->call(LanguagesSeeder::class);\n $this->call(MemberSeeder::class);\n $this->call(MemberTypeSeeder::class);\n $this->call(PunishmentSeeder::class);\n $this->call(RolesPermissionsSeeder::class);\n }", "title": "" }, { "docid": "10acbc7957454c3e94f4bd39aad4c8f0", "score": "0.6708677", "text": "public function run()\n {\n Model::unguard();\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n $this->call(Illuminate\\Database\\Seeder\\RegionTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\ProvinceTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\MunicipalityTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\BarangayTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\BranchTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\UserTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\ProductGroupTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\ProductCategoryTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\ProductSubcategoryTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\ProductTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\SettingTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\PatientTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\ReturnCodeTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\SpecialtyTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\SubSpecialtyTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\DoctorTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\ClinicTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\ClinicDoctorTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\ClinicMedicineTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\ClinicPatientTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\ClinicPatientDoctorTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\SecretaryTableSeeder::class);\n $this->call(Illuminate\\Database\\Seeder\\DoctorSecretaryTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n Model::reguard();\n }", "title": "" }, { "docid": "887911080e539150f3373a1e5e8123e6", "score": "0.67041373", "text": "public function run()\n {\n $this->call(CountrySeeder::class);\n $this->call(CategorySeeder::class);\n $this->call(RestaurantSeeder::class);\n \n for ( $i = 1; $i < 11; $i++ )\n {\n $this->call(UserTableSeeder::class);\n }\n\n $this->call(PostSeeder::class);\n\n for ( $i = 1; $i < 110; $i++ )\n {\n $this->call(CommentSeeder::class);\n }\n\n $this->call(RoleSeeder::class);\n\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => 'admin@melbournedining.com.au',\n 'password' => 'password',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n 'country_id' => rand(1,5),\n ]);\n }", "title": "" }, { "docid": "5ab36dc412224b42ff7b496a8ae831c1", "score": "0.6698899", "text": "protected function prepareDatabase()\n {\n // Make sure sqlite database file exists\n if ($this->app->config->get('database.default') === 'sqlite') {\n touch($this->app->config->get('database.connections.sqlite.database'));\n }\n\n // Run Laravel's default migrations for user table etc\n $this->loadLaravelMigrations($this->app->config->get('database.default'));\n\n // Run any migrations registered in service providers\n $this->loadRegisteredMigrations();\n\n $this->withFactories(__DIR__ . '/../database/factories');\n }", "title": "" }, { "docid": "8fabcdb760025cbd7795259fa33b7924", "score": "0.66943264", "text": "public function run()\n {\n // Seed \"articles\"-table with 30 rows. !!! Singular \"App\\Article::\" NOT \"App\\ArticleS\" !!!\n factory(App\\Article::class, 30)->create();\n }", "title": "" }, { "docid": "53c4bef2aa1133f6c033ecf2da3acacc", "score": "0.66933584", "text": "public function testDatabaseSeeder()\n {\n $this->artisan(\"db:seed\");\n }", "title": "" }, { "docid": "cbafa486b1e97b74323e72ca5784e0b1", "score": "0.66857225", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\t\t\n\t\t$this->call('CountriesTableSeeder');\n\t\t$this->call('StatesTableSeeder');\n\t\t$this->call('GenderTableSeeder');\n\t\t$this->call('RolePermissionTableSeeder');\n\t\t$this->call('EmergencyRelationTableSeeder');\n\t\t$this->call('UserTableSeeder');\n\t\t\n\t}", "title": "" }, { "docid": "3ba9927d4f3b0d798f80d21c2da3ded8", "score": "0.6685392", "text": "public function run()\n {\n if (!in_array(App::environment(), self::SEEDABLE_ENVIRONMENTS)) {\n throw new Exception('Seeding is not available for this environment. Add --env=[environment] if necessary.');\n }\n\n $this->call(UsersSeeder::class);\n $this->call(BusinessesTableSeeder::class);\n $this->call(TeamsSeeder::class);\n $this->call(SampleDeviceSeeder::class);\n $this->call(SampleRegistersSeeder::class);\n $this->call(RoomsTableSeeder::class);\n $this->call(TransactionModesTableSeeder::class);\n $this->call(ProductsTableSeeder::class);\n $this->call(BusinessCustomerFieldsSeeder::class);\n $this->call(BusinessRoomSelectionFieldsSeeder::class);\n $this->call(TaxesTableSeeder::class);\n $this->call(SampleOrderSeeder::class);\n $this->call(ProductCategoriesTableSeeder::class);\n }", "title": "" }, { "docid": "e827b8bad1ee2650d62eaba75d145102", "score": "0.66794544", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n \n User::truncate();\n Book::truncate();\n Author::truncate();\n Publisher::truncate();\n Genre::truncate();\n\n factory(User::class, 50)->create();\n factory(Author::class, 200)->create();\n factory(Publisher::class, 100)->create();\n factory(Genre::class, 50)->create();\n\t\tfactory(Book::class, 400)->create();\n }", "title": "" }, { "docid": "bde1f77c89bd972c77145d59ffb7037e", "score": "0.66759163", "text": "public function run()\n { \n $this->call(GroupUsersTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n App\\Administrator::create([\n 'name' => 'David',\n 'lastname' => 'Restrepo',\n 'email' => 'drv404@hotmail.com',\n 'password' => bcrypt('admin'),\n ]);\n\n $this->call(SuppliersTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n $this->call(FeaturesTableSeeder::class);\n $this->call(AttributesTableSeeder::class);\n\n\n\n }", "title": "" }, { "docid": "de84d4e81016a7a36df1001bf862c372", "score": "0.66758764", "text": "public function run()\n {\n $this->call([\n DbSeeder::class\n ]);\n // DB::table('users')->insert([\n // 'name' => 'admin',\n // 'apellido' => 'Rodriguez',\n // 'nro_documento' => '84758',\n // 'direccion' => 'UAGRM',\n // 'telefono' => 12345678,\n // 'email' => 'admin@admin.com',\n // 'password' => Hash::make('0120'),\n // 'rol' => 'admin',\n // 'puntos_acumulados' => 0,\n // ]);\n // DB::table('users')->insert([\n // 'name' => 'diego',\n // 'apellido' => 'Rodriguez',\n // 'nro_documento' => '84758',\n // 'direccion' => 'UAGRM',\n // 'telefono' => 12345678,\n // 'email' => 'user1@user.com',\n // 'password' => Hash::make('0120'),\n // 'rol' => 'user',\n // 'puntos_acumulados' => 0,\n // ]);\n // DB::table('users')->insert([\n // 'name' => 'mariela',\n // 'apellido' => 'Rodriguez',\n // 'nro_documento' => '84758',\n // 'direccion' => 'UAGRM',\n // 'telefono' => 12345678,\n // 'email' => 'user2@user.com',\n // 'password' => Hash::make('0120'),\n // 'rol' => 'user',\n // 'puntos_acumulados' => 0,\n // ]);\n }", "title": "" }, { "docid": "0a823e82a5fd300273a7959cc3791c93", "score": "0.66704714", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t$this->call('RolesTableSeeder');\n\t\t$this->call('PermissionsTableSeeder');\n\t\t$this->call('UsersTableSeeder');\n\t\t$this->call('EntrustTableSeeder');\n\t\t$this->call('SubscribersTableSeeder');\n\t\t$this->call('AdvertisementTypeTableSeeder');\n\t\t$this->call('CampaignsTableSeeder');\n\t\t$this->call('StudentsTableSeeder');\n\n\t\t$this->call('StudioClassTableSeeder');\n\t\t$this->call('RevenuesTableSeeder');\n\t\t$this->call('ProjectsTableSeeder');\n\n\t}", "title": "" }, { "docid": "6a73dfd341a22751b3d86acf8e8749dc", "score": "0.6669208", "text": "public function run()\n {\n DB::statement(\"SET foreign_key_checks=0\");\n\n DB::table('users')->delete();\n DB::table('auctions')->delete();\n DB::table('biddings')->delete();\n\n DB::statement('ALTER TABLE users AUTO_INCREMENT = 0');\n DB::statement('ALTER TABLE auctions AUTO_INCREMENT = 0');\n DB::statement('ALTER TABLE biddings AUTO_INCREMENT = 0');\n \n DB::statement(\"SET foreign_key_checks=1\");\n\n $this->call(UsersSeeder::class);\n $this->call(AuctionsSeeder::class);\n $this->call(BiddingsSeeder::class);\n }", "title": "" }, { "docid": "50b509186722d57e3f283904e55a2017", "score": "0.66671896", "text": "public function run()\n {\n DB::table('users')->insert([\n \"firstname\" => \"Admin\",\n \"lastname\" => \"\",\n \"email\" => \"admin@gmail.com\",\n \"password\" => bcrypt(\"admin\"),\n \"address1\" => \"\",\n \"address2\" => \"\",\n \"city\" => \"\",\n \"state\" => \"\",\n \"postal\" => \"\",\n \"country\" => \"\",\n \"dayphone\" => \"\",\n \"evephone\" => \"\" ,\n \"status\" => 1,\n \"role\" => 1,\n \"pick\" => 1,\n ]);\n /*$this->call(CategoriesTableSeeder::class);\n $this->call(ProductsTableSeeder::class);\n $this->call(OrdersTableSeeder::class);*/\n $this->call(PublishedUsersTableSeeder::class);\n $this->call(PUblishedCategoriesTableSeeder::class);\n $this->call(PublishedProductsTableSeeder::class);\n }", "title": "" }, { "docid": "d95e3997d67129f61a417290e91445d4", "score": "0.666645", "text": "public function run()\n {\n // $this->call('UserTableSeeder');\n DB::table('posts')->delete();\n $post = app()->make('App\\Post');\n $post->fill(['user_id' => 1, 'title' => 'Holiday in Bali', 'body' => 'This is body']);\n $post->save();\n }", "title": "" }, { "docid": "989cbf90d737c16a9ccf85e7d79fc56a", "score": "0.66513133", "text": "public function run()\n {\n $this->seedProduction();\n\n if (app()->environment() !== 'production') {\n $this->seedDev();\n }\n }", "title": "" }, { "docid": "ad35ae5e81c3b679445a104e78143197", "score": "0.66430473", "text": "public function run()\n {\n\n\n //recordar que hay que ir a DatabaseSeeder.php para registrar el seeder \n\n // directamente con codigo sql\n // Entre otros problemas permite inyeccion de sql\n // DB::insert('INSERT INTO professions (title) VALUES (\"Desarrollador Back-ends\")');\n\n // directamente con codigo sql y parametros dinamicos con el componente PDO de PHP\n // Con marcadores\n // DB::insert('INSERT INTO professions (title) VALUES (?)',['Desarrollador Back-end3']);\n\n // usando como marcador un parametro de sustitucion\n // DB::insert('INSERT INTO professions (title) VALUES (:title)',['title'=>'Desarrollador Back-end4']);\n\n // con metodo DB:insert\n // DB::table('professions')->insert([\n // 'title'=>'Desarrollador Back-end',\n // ]);\n\n // DB::table('professions')->insert([\n // 'title'=>'Desarrollador Front-end',\n // ]);\n\n // DB::table('professions')->insert([\n // 'title'=>'Diseñador web',\n // ]);\n\n/* // creo y borro una profession\n DB::table('professions')->insert([\n 'title'=>'borrar',\n ]);\n\n DB::table('professions'\n )->where('title', 'borrar')->delete(); */\n\n // creo profesiones con Eloquent\n \\App\\Profession::create([\n 'title'=>'Desarrollador Back-end',\n ]);\n\n // Si pongo al principio use \\App\\Profession me evito la ruta\n Profession::create([\n 'title'=>'Desarrollador Front-end',\n ]);\n\n Profession::create([\n 'title'=>'Diseñador web',\n ]);\n\n factory(Profession::class,17)->create();\n\n }", "title": "" }, { "docid": "e7474bbfe117c761f96e113269123c2d", "score": "0.6642897", "text": "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n //$this->call(PostsTableSeeder::class);\n $this->call(UnitsTableSeeder::class);\n $this->call(ResidentsTableSeeder::class);\n $this->call(AdminTableSeeder::class);\n //$this->call(AdlsTableSeeder::class);\n\n factory(App\\Models\\Admin::class)->create(\n ['username' => 'kentaro', 'password' => bcrypt('password')]\n );\n }", "title": "" }, { "docid": "ade748704712ac93da356845c91c77e4", "score": "0.66422045", "text": "protected function seedTables()\n {\n Post::unguard();\n Post::create(['title' => 'The Long Tale: Preface', 'category_id' => 1, 'is_published' => true]);\n Post::create(['title' => 'The Long Tale: Chapter 1', 'category_id' => 1, 'is_published' => false]);\n Post::create(['title' => 'The Short Tale', 'category_id' => 2, 'is_published' => true]);\n Post::reguard();\n }", "title": "" }, { "docid": "8e57454f0a2705f8215e460ca87b4efa", "score": "0.66404074", "text": "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Admin Admin',\n 'email' => 'admin@afiammuta.com',\n 'phone_number' => '09198765432',\n 'password' => '$2y$10$20uvTri3uDwjF0FgOKnameTQY.IQvgPIMAe2tXoxEUY/w.wiG8U8a',\n 'admin' => true\n ]);\n $this->call(CategoriesSeeder::class);\n $this->call(ProductsSeeder::class);\n }", "title": "" }, { "docid": "61aea23f2245531d485e191419f403ce", "score": "0.66390425", "text": "public function run()\n {\n Model::unguard();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n DB::table('oauth_clients')\n ->truncate();\n DB::table('roles')\n ->truncate();\n DB::table('oauth_scopes')\n ->truncate();\n DB::table('oauth_client_grants')\n ->truncate();\n DB::table('oauth_grants')\n ->truncate();\n DB::table('oauth_client_scopes')\n ->truncate();\n DB::table('oauth_access_tokens')\n ->truncate();\n DB::table('oauth_access_token_scopes')\n ->truncate();\n DB::table('oauth_sessions')\n ->truncate();\n DB::table('oauth_session_scopes')\n ->truncate();\n DB::table('oauth_grant_scopes')\n ->truncate();\n DB::table('users')->truncate();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $this->call(OauthClientsTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(OauthScopesTableSeeder::class);\n $this->call(OauthGrantsTableSeeder::class);\n $this->call(OauthClientGrantsTableSeeder::class);\n $this->call(OauthClientScopesTableSeeder::class);\n $this->call(OauthGrantScopesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n Model::reguard();\n }", "title": "" }, { "docid": "6f1de7adc99a9b9837fa169ecebd13d6", "score": "0.6636716", "text": "public function run()\n {\n // per disabilitare un attimo le foreign keys: DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // questo lo chiami quando fai php artisan db:seed senza specificare quale seed vuoi lanciare\n \n // $this->call(UsersTableSeeder::class);\n $this->call(SeedUsersTable::class);\n $this->call(SeedAlbumCategoriesTable::class); // lo mettiamo prima di album perchè nel seeder di album avremo bisogno della categoria per popolare la tabella pivot\n $this->call(SeedAlbumsTable::class);\n $this->call(SeedPhotosTable::class);\n \n }", "title": "" }, { "docid": "657f9e7cbbf1d124253045313e229130", "score": "0.6627553", "text": "public function run()\n {\n $faker = Faker\\Factory::create();\n DB::table('users')->truncate();\n App\\Models\\Users::create(array(\n 'ugroup'=>1,\n 'FirstName'=>$faker->firstName,\n 'LastName'=>$faker->lastName,\n 'UserName'=>$faker->userName,\n 'email'=>'admin@mail.com',\n 'Password'=>Hash::make('admin'),\n 'Active'=>1,\n 'RegData'=>time()\n ));\n }", "title": "" }, { "docid": "78ae018496872953458c923e6d38d2b3", "score": "0.66244656", "text": "public function run()\n {\n $this->call(SeedThemeSectionTableSeeder::class);\n $this->call(ThemeTableSeeder::class);\n $this->call(MenuTableSeeder::class);\n $this->call(SeedMenuItemTableSeeder::class);\n\n Model::unguard();\n\n }", "title": "" }, { "docid": "399eea482be88f4ec4c48c0c65c2e5de", "score": "0.66238356", "text": "public function run()\n { \n /** clear database before seeding */\n DB::statement('set foreign_key_checks=0');\n\n foreach($this->tables as $table)\n {\n DB::table($table)->truncate();\n }\n\n $this->call(UserSeeder::class);\n\n /** country,state,city */\n $this->call(CountryStateCitySeeder::class);\n\n $this->call(CategorySeeder::class);\n\n $this->call(AttributeSeeder::class);\n\n $this->call(AttributeCategorySeeder::class);\n }", "title": "" }, { "docid": "40485436c1f7105f119bb617312b3db9", "score": "0.66188204", "text": "public function run()\n {\n Model::unguard();\n\n $this->call('CountriesTableSeeder');\n $this->call('CitiesTableSeeder');\n $this->call('ArticlesTableSeeder');\n $this->call('CompaniesTableSeeder');\n $this->call('ContactsTableSeeder');\n $this->call('HotelsTableSeeder');\n $this->call('MenuPointsTableSeeder');\n $this->call('QuotesTableSeeder');\n $this->call('RestaurantsTableSeeder');\n $this->call('SightsTableSeeder');\n $this->call('ToursTableSeeder');\n $this->call('VisasTableSeeder');\n }", "title": "" }, { "docid": "05733915ebf53ade3c9e7c1f6d14767f", "score": "0.6618503", "text": "public function run()\n { \n /*\n $this->call('CountryTableSeeder'); \n $this->call('CityTableSeeder'); \n $this->call('Module_appTableSeeder');\n $this->call('RoleTableSeeder');\n $this->call('Module_catagoryTableSeeder'); \n $this->call('ModuleTableSeeder');\n $this->call('Role_moduleTableSeeder'); \n $this->call('UctoolTableSeeder'); \n $this->call('UserTableSeeder'); \n */\n DB::table('user')->insert([\n 'role_id' => '1',\n 'uctool_id' => '1',\n 'username' => 'diego.soba',\n 'password' => bcrypt('secret'),\n 'name' => 'Diego Soba',\n 'email' => 'diego.soba@gecko.com.co',\n 'address' => 'Av. 15# 106-32 of 403 Bogotá',\n 'country_id' => 'COL',\n 'city_id' => 'BOG',\n 'phone_home' => '5636985',\n 'phone_mobile' => '3005207017',\n 'phone_business' => '3005208017',\n 'picture' => 'gecko.jpg',\n 'position' => 'Full Stack',\n 'status' => 'ENABLED', \n 'created_at' => date(\"Y-m-d H:i:s\"),\n\t\t\t\t'updated_at' => date(\"Y-m-d H:i:s\") \n ]);\n \n }", "title": "" }, { "docid": "ea910635e5733159fdb0733677607984", "score": "0.6616037", "text": "public function setUp()\n {\n parent::setUp();\n // DB::statement('create database coretest;');\n // Artisan::call('migrate');\n //$this->seed();\n // Mail::pretend(true);\n }", "title": "" }, { "docid": "ce56796a7900ee3fe29fe079310e7e3e", "score": "0.6608821", "text": "public function run()\n {\n $this->call('PracticesTableSeeder');\n $this->call('PractitionerTableSeeder');\n $this->call('SpecialitiesTableSeeder');\n $this->call('ColorsTableSeeder');\n $this->call('ColorSchemeTableSeeder');\n $this->call('AgesTableSeeder');\n\n $this->call('CategoriesTableSeeder');\n $this->call('SubCategoriesTableSeeder');\n\n }", "title": "" }, { "docid": "54528f6bb8cec0ece00a2f0597057f1b", "score": "0.6603119", "text": "public function run()\n {\n User::query()->create([\n 'name' => 'Test Account',\n 'email' => 'test.acc@example.net',\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password\n ]);\n \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\CarBrand::factory(10)->create();\n \\App\\Models\\CarModel::factory(10)->create();\n }", "title": "" }, { "docid": "bbea4bcaadd24b404a1ffc21c849ddb3", "score": "0.65998346", "text": "public function run()\n {\n // Seed the database with fake posts\n DB::table('posts')->insert([\n 'name' => 'The first post',\n 'description' => 'This is the first post to test seeds/migrations.',\n 'body' => 'The body of the post',\n ]);\n }", "title": "" }, { "docid": "efb473d55864a01b2293b4f6b42fe411", "score": "0.65997565", "text": "public function run()\n {\n $user = User::create([\n 'name' => 'Admin',\n 'email' => 'admin@framgia.com',\n 'password' => '123456',\n ]);\n\n if($user) {\n echo \"Seeding User data has done.\\n\";\n } else {\n echo \"Seeding User data has fail.\\n\";\n }\n }", "title": "" }, { "docid": "d516aa9126a278366ebd531d487e2eee", "score": "0.65993196", "text": "public function run()\n {\n //run Roles seed\n $rolesTableSeeder = new RolesTableSeeder();\n $rolesTableSeeder->run();\n\n //run Admins seed\n $adminsTableSeeder = new AdminsTableSeeder();\n $adminsTableSeeder->run();\n\n //run Users seed\n $usersTableSeeder = new UsersTableSeeder();\n $usersTableSeeder->run();\n\n //run Localities seed\n $localitiesTableSeeder = new LocalitiesTableSeeder();\n $localitiesTableSeeder->run();\n\n }", "title": "" }, { "docid": "7a0f13421ac4ecdb6e9c9833c79bd2e6", "score": "0.6595833", "text": "public function run(): void\n {\n User::factory()->create(\n [\n 'id' => 1,\n 'email' => 'akim.savchenko@gmail.com',\n 'name' => 'Akimius',\n 'password' => '12345678',\n ]\n );\n\n User::factory()->count(4)->create();\n\n (new ProjectSeeder())->run();\n }", "title": "" }, { "docid": "d7e2cf7219878c25b4c489434f79df0f", "score": "0.65951294", "text": "public function run()\n {\n // $this->call(UserTableSeeder::class);\n\n factory(Category::class, 5)->create();\n\n factory(Tag::class, 5)->create();\n\n factory(Post::class, 5)->create();\n\n factory(User::class)->create([\n 'name' => 'Editor',\n 'email' => 'editor@codepress.com',\n 'password' => bcrypt(123456),\n 'remember_token' => str_random(10),\n ]);\n\n factory(User::class)->create([\n 'name' => 'Redactor',\n 'email' => 'redactor@codepress.com',\n 'password' => bcrypt(123456),\n 'remember_token' => str_random(10),\n ]);\n }", "title": "" }, { "docid": "e1e3d794de67a2a8ff4b86565b9556d0", "score": "0.65929794", "text": "public function run()\n {\n Model::unguard();\n $this->call('UserTableSeeder');\n\n Model::reguard();\n \t$this->call('TeamsTableSeeder');\n\t\t$this->call('ClientsTableSeeder');\n\t\t$this->call('RoleUserTableSeeder');\n $this->call('ClientsGroupsTableSeeder');\n $this->call('ProposalsTypesTableSeeder');\n\t\t$this->call('ProposalsTableSeeder');\n\t\t$this->call('PermissionsTableSeeder');\n\t\t$this->call('PermissionRoleTableSeeder');\n\t\t$this->call('ProposalsVersionsTableSeeder');\n $this->call('ProjectsTableSeeder');\n\t\t// $this->call('ProjectsTimesTasksTableSeeder');\n\t\t$this->call('ProjectsTimesTableSeeder');\n\t\t$this->call('HolidaysTableSeeder');\n\t}", "title": "" }, { "docid": "44be4106819867e13c1f2aa9b59c5345", "score": "0.6591654", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::create([\n 'name' => 'foo baz',\n 'password' => bcrypt('123456'),\n 'email' => 'tobiagbeja4@gmail.com'\n ]);\n factory(Owner::class, 20)->create();\n factory(Vehicle::class, 20)->create();\n }", "title": "" }, { "docid": "6de7ee3ba0e6bd01fb9f7e1d5771e6de", "score": "0.6588038", "text": "public function run()\n {\n $this->seedACL();\n $this->seedUsers();\n }", "title": "" }, { "docid": "8f01082498701661be6630c4addc755b", "score": "0.6587835", "text": "public function run()\n {\n // detta körs vid db:seed\n // factory(Article::class,300)->create();\n // factory(Category::class,5)->create();\n factory(Ad::class,5)->create();\n // factory(User::class,20)->create();\n }", "title": "" }, { "docid": "88f00ef10fd85df702124070e54fe959", "score": "0.6576656", "text": "public function run()\n {\n DB::table('customer')->delete();\n DB::table('support')->delete();\n DB::table('employee')->delete();\n\n $faker = Faker\\Factory::create();\n\n DB::table('employee')->insert([\n 'name' => 'admin',\n 'email' => 'admin@remyhair.vn',\n 'password' => bcrypt('2eTE74ftZp'),\n 'id_group' => 1,\n 'date_of_birth' => Carbon::create('2000', '01', '01'),\n 'join_date' => Carbon::create('2000', '01', '01'),\n 'date_of_contract' => Carbon::create('2000', '01', '01'),\n 'date_of_graduation' => Carbon::create('2000', '01', '01'),\n 'address' => 'Vietnam',\n 'phone' => '093295693',\n 'facebook' => '',\n 'education' => '',\n 'school' => '',\n 'major' => ''\n ]);\n }", "title": "" }, { "docid": "acb60748659a59cad7e83ff2180fc299", "score": "0.65743804", "text": "public function run()\n {\n factory(App\\Models\\Article::class,50)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(ProductsTableSeeder::class);\n $this->call(PermissionTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(RolesPermissionTableSeeder::class);\n $this->call(RoleUserTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n $this->call(CountryTableSeeder::class);\n $this->call(PostTableSeeder::class);\n\n }", "title": "" }, { "docid": "ede55f161f86992d13317cffb669841f", "score": "0.6574268", "text": "public function run()\n {\n Model::unguard();\n\n $this->call('BannerGroupsSeeder');\n $this->call('CountriesSeeder');\n $this->call('StatesSeeder');\n $this->call('TimezonesSeeder');\n $this->call('CurrenciesSeeder');\n $this->call('RolesSeeder');\n $this->call('SystemsSeeder');\n $this->call('UsersSeeder');\n $this->call('ModulesSeeder');\n $this->call('PermissionSeeder');\n $this->call('AttributeSeeder');\n $this->call('GtinSeeder');\n $this->call('PaymentMethodsSeeder');\n $this->call('OrderStatusesSeeder');\n $this->call('AddressTypesSeeder');\n $this->call('TicketCategoriesSeeder');\n $this->call('DisputeTypesSeeder');\n $this->call('TaxesSeeder');\n $this->call('PackagingsSeeder');\n $this->call('SubscriptionPlansSeeder');\n $this->call('PagesSeeder');\n $this->call('FaqsSeeder');\n // $this->call('demoSeeder');\n $this->command->info('Seeding complete!');\n\n Model::reguard();\n }", "title": "" }, { "docid": "5ebdf150d9dae5be012dfc44f2b98e9b", "score": "0.6573716", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t//DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n\t\t$this->call('UserTableSeeder');\n\t\t$this->call('TypeContactTableSeeder');\n\t\t$this->call('TypePhoneTableSeeder');\n\n\t\t//este codigo reinicia el autoincrement\n\t\t//DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\t}", "title": "" }, { "docid": "75520aa5ef1c4b5beb70e1fffd17219d", "score": "0.6573677", "text": "public function run()\n {\n // prevent db error from key constraint when refresh seeder\n DB::statement('SET foreign_key_checks=0');\n DB::table('artists')->truncate();\n DB::statement('SET foreign_key_checks=1');\n\n $artists = [\n ['name' => 'Peck Palitchoke', 'gender' => 'male', 'year_debut' => 2002],\n ['name' => 'Off Pongsak', 'gender' => 'gay', 'year_debut' => 2004],\n ['name' => 'Ice Saranyu', 'gender' => 'female', 'year_debut' => 2006]\n ];\n\n foreach ( $artists as $artist ) {\n DB::table('artists')->insert($artist);\n }\n }", "title": "" }, { "docid": "4849283d2cfc5b23415b670519ca7344", "score": "0.65671015", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n Model::unguard();\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n $toTruncate=[\n 'comment',\n 'order_product',\n 'order',\n 'product_image',\n 'tax',\n 'price',\n 'product',\n 'category',\n 'user'];\n\n foreach($toTruncate as $table){\n DB::table($table)->truncate();\n }\n\n $this->call(UserTableSeeder::class);\n\n $this->call(CategoryTableSeeder::class);\n\n $this->call(ProductTableSeeder::class);\n\n $this->call(ProductImageTableSeeder::class);\n\n $this->call(PriceTableSeeder::class);\n\n $this->call(TaxTableSeeder::class);\n\n $this->call(OrderTableSeeder::class);\n\n $this->call(OrderProductTableSeeder::class);\n\n $this->call(CommentTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n Model::reguard();\n\n }", "title": "" }, { "docid": "fd4389fadd2cf54e894f4bd9560e0cb6", "score": "0.6566943", "text": "public function run()\n\t{\n Eloquent::unguard();\n\n if (!User::find(1)) {\n User::create([\n 'email' => 'admin',\n 'password' => Hash::make('admin'),\n 'name' => 'Main',\n 'surname' => 'Admin',\n 'group' => User::GROUP_ADMIN\n ]);\n\n Project::create([\n 'name' => 'Project 1',\n 'description' => 'Default starter project',\n 'user_id' => 1\n ]);\n\n $keys = KeyPairGenerator::generate('admin');\n\n $key = new RsaKey();\n $key->private = $keys['private'];\n $key->public = $keys['public'];\n $key->user_id = 1;\n $key->save();\n\n echo \"DB Seeded...\\n\";\n } else {\n echo \"DB Already Seeded...\\n\";\n }\n\t}", "title": "" }, { "docid": "875e48bfadb1812597cf1b4427db282e", "score": "0.65658736", "text": "public function run()\n {\n DB::table('users')->insert([\n 'name' => \"testuser\",\n 'email' => \"test@user.de\",\n 'password' => 123456,\n ]);\n\n DB::table('todos')->insert([\n 'userId' => 1,\n 'title' => str_random(10),\n 'description' => str_random(10),\n 'location' => str_random(10),\n 'priority' => 1,\n 'duration' => 10,\n ]);\n\n DB::table('todos')->insert([\n 'userId' => 1,\n 'title' => str_random(10),\n 'description' => str_random(10),\n 'location' => str_random(10),\n 'priority' => 2,\n 'duration' => 10,\n ]);\n\n DB::table('todos')->insert([\n 'userId' => 1,\n 'title' => str_random(10),\n 'description' => str_random(10),\n 'location' => str_random(10),\n 'priority' => 3,\n 'duration' => 10,\n ]);\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "0a73e2bde08b304a33d5e5e7578073f5", "score": "0.6565814", "text": "public function run()\n\t{\n\t\t// delete pre-existing versions of tables in the opposite order they \n\t\t// were seeded in to avoid foreign key conflict errors\n\t\tDB::table('posts')->delete();\n\t\tDB::table('users')->delete();\n\n\t\tEloquent::unguard();\n\n\t\t$this->call('UserTableSeeder');\n\t\t$this->call('PostsTableSeeder');\n\t}", "title": "" }, { "docid": "390972c962a38f478d5c7d736c09ca0e", "score": "0.6564696", "text": "public function run()\n {\n Model::unguard();\n \n // Truncate all tables before seeding.\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n foreach ($this->toTruncate as $table) {\n DB::table($table)->truncate();\n }\n DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n \n // Run the seeds.\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n $this->call(StatusTableSeeder::class);\n $this->call(LanguageTableSeeder::class);\n $this->call(PartOfSpeechTableSeeder::class);\n $this->call(ScientificAreaTableSeeder::class);\n $this->call(ScientificFieldTableSeeder::class);\n $this->call(ScientificBranchTableSeeder::class);\n \n Model::reguard();\n }", "title": "" }, { "docid": "4e429ae65b9f4755a0232dffc1b6fc40", "score": "0.65634924", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::create([\n 'name' => 'Admin',\n 'email' => 'admin@admin.com',\n 'password' => Hash::make('password')\n ]);\n\n //for DB testing\n Company::create([\n 'name' => 'Google',\n 'email' => 'Google@google.com',\n 'website' => 'google.com',\n //must be uploaded from a dir\n 'logo' => 'GoogleLogo.jpg'\n ]);\n\n Employee::create([\n 'Fname' => 'Karim',\n 'Lname' => 'Mohamed',\n 'email' => 'K@test.com',\n 'phone' => '01012223157',\n 'company' => (App\\Company::where('name', 'Google')->get())[0]['id']\n ]);\n }", "title": "" }, { "docid": "1a269672125b8cfb3d0049a45a09973f", "score": "0.65630686", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n DB::table('users')->truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $users = config('users.users');\n\n // Add any data to the table.\n DB::table('users')->insert($users);\n }", "title": "" }, { "docid": "2bdb93fd1414d3df8b694cfdb6511e59", "score": "0.6559919", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n $this->call([\n UsersTableSeeder::class,\n AlbumsTableSeeder::class,\n PhotosTableSeeder::class,\n ]);\n }", "title": "" }, { "docid": "6608f1e4ecc42009a1ed2a0b5ca43c4e", "score": "0.6559034", "text": "public function run()\n {\n User::factory(2)->create();\n\n $this->call(CurrencySeeder::class);\n $this->call(MarketSeeder::class);\n }", "title": "" }, { "docid": "59b271b4eb798998b28e2c09ed91e0ac", "score": "0.6558665", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n //Models::unguard();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n $this->call(UsersTableSeeder::class);\n $this->command->info('users table seeded');\n\n $this->call(PostsTableSeeder::class);\n $this->command->info('posts table seeded');\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n //Models::reguard();\n }", "title": "" }, { "docid": "df6eebcfb04f569a9691effc35e02747", "score": "0.6557394", "text": "public function run()\n {\n echo \"Seeding Languages\\r\\n\";\n\n $languagesTable = DB::table(Config::get('migrations.Languages'));\n\n foreach ($this->data as $row) {\n $row['created_at'] = Carbon\\Carbon::now()->toDateTimeString();\n $row['updated_at'] = Carbon\\Carbon::now()->toDateTimeString();\n\n $languagesTable->insert($row);\n }\n }", "title": "" }, { "docid": "fa0d89578d78de5540c210df93585df2", "score": "0.6551688", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n UserStat::truncate();\n Role::truncate();\n User::truncate();\n\n $this->call('UserSeed');\n $this->call('UserStatSeed');\n $this->call('RoleSeed');\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n }", "title": "" }, { "docid": "41572e9036b74888025d18d885529bd4", "score": "0.65511715", "text": "public function run()\n\t{\n\t\tModel::unguard();\n $this->call('UserTableSeeder');\n\t\t$this->call('ProvinceTableSeeder');\n\t\t$this->call('CityTableSeeder');\n\t\t\n\t\t$this->call('NeighborhoodTableSeeder');\n\t\t\n\t\t\n\t\t$this->call('OperationTableSeeder');\n\t\t$this->call('PropertyTypeTableSeeder');\n\t\t$this->call('PropertyStateTableSeeder');\n\t\t\n\t\t//$this->call('PropertyTableSeeder');\n\t}", "title": "" }, { "docid": "8501a077494dc7b74b484e670e1da149", "score": "0.6548606", "text": "public function run()\n {\n Model::unguard();\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n $this->call(RoleTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(CustomersTableSeeder::class);\n $this->call(PostsCategoryTableSeeder::class);\n $this->call(PostsTableSeeder::class);\n $this->call(ProductCompleteCategoryTableSeeder::class);\n $this->call(ProductCompleteTableSeeder::class);\n $this->call(ImageProductsTableSeeder::class);\n $this->call(ProductsTableSeeder::class);\n $this->call(BillsTableSeeder::class);\n $this->call(DesignsTableSeeder::class);\n $this->call(BillsDetailsTableSeeder::class);\n $this->call(WarrantyTableSeeder::class);\n $this->call(InvoiceTableSeeder::class);\n $this->call(InvoiceDetailsTableSeeder::class);\n $this->call(YeucausanxuatTableSeeder::class);\n $this->call(YeucausanxuatDetailsTableSeeder::class);\n $this->call(NCCTableSeeder::class);\n $this->call(SuppliesTableSeeder::class);\n $this->call(ReportsTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n Model::reguard();\n }", "title": "" }, { "docid": "9f10702cee84c6cc84847483aaceeec4", "score": "0.654783", "text": "public function run()\n {\n $this->call([\n StatusSeeder::class,\n EcommerceSeeder::class,\n ProfileTableSeeder::class,\n UserSeeder::class,\n NationsSeeder::class,\n BrazilStatesSeeder::class,\n BrazilCitiesSeeder::class,\n ]);\n\n //Fake Seeders\n if (env('APP_ENV') === 'local') {\n $this->call([\n CustomerSeeder::class,\n ]);\n }\n }", "title": "" }, { "docid": "1f73b9ae8aea0bd52347552e5bd463f2", "score": "0.654753", "text": "public function run()\n {\n $this->call(userSeederTable::class);\n \n $this->deleteImages('public/storage');\n\n $companies = Companies::factory(60)->create();\n\n foreach ($companies as $company) {\n Employees::factory(random_int(10, 55))->create([\n 'company_id' => $company->id\n ]);\n }\n }", "title": "" }, { "docid": "7b98b75295427ff99cdb6e869e73b1ce", "score": "0.65463483", "text": "public function run()\n {\n DB::table('images')->delete();\n DB::table('blog')->delete();\n factory('St\\Models\\Image', BlogSeeder::FACTORY_COUNT )->create();\n }", "title": "" }, { "docid": "0f4b7f726dd808b3570fd76ac6af5a02", "score": "0.65458894", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\n DB::table('comments')->delete();\n DB::table('revisions')->delete();\n DB::table('pages')->delete();\n DB::table('categories')->delete();\n\n\t\t$this->call('UserTableSeeder');\n $this->call('TestDataSeeder');\n\t}", "title": "" }, { "docid": "c753ba25c1e05802272074271a9accf3", "score": "0.65458727", "text": "public function run()\n {\n User::query()->delete();\n\n $faker = \\Faker\\Factory::create();\n\n // Let's make sure everyone has the same password and\n // let's hash it before the loop, or else our seeder\n // will be too slow.\n $password = Hash::make('qwerty');\n\n User::create([\n 'id' => 1,\n 'name' => 'Administrator',\n 'email' => 'admin@test.com',\n 'password' => $password,\n ]);\n\n // And now let's generate a few dozen users for our app:\n for ($i = 0; $i < 10; $i++) {\n User::create([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'password' => $password,\n ]);\n }\n }", "title": "" }, { "docid": "9011e7f601a07f757621b7cf30aff813", "score": "0.65429586", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\n $this->call('UserTableSeeder');\n $this->call('AmenitiesTableSeeder');\n $this->call('RestrictionsTableSeeder');\n $this->call('CitiesTableSeeder');\n $this->call('StreetsTableSeeder');\n $this->call('HabitationsTableSeeder');\n $this->call('HabitationAmenitiesTableSeeder');\n $this->call('HabitationRestrictionsTableSeeder');\n $this->call('RequestsTableSeeder');\n\t}", "title": "" } ]
df9bcc7137b55745e3d5461cd9f62cd9
Checks to see if an association exists with a specific ProjectAsRelated
[ { "docid": "f48e09b283f7e1074d6ebe0509496e8c", "score": "0.6428274", "text": "public function IsProjectAsRelatedAssociated(Project $objProject) {\n\t\t\tif ((is_null($this->intId)))\n\t\t\t\tthrow new QUndefinedPrimaryKeyException('Unable to call IsProjectAsRelatedAssociated on this unsaved Project.');\n\t\t\tif ((is_null($objProject->Id)))\n\t\t\t\tthrow new QUndefinedPrimaryKeyException('Unable to call IsProjectAsRelatedAssociated on this Project with an unsaved Project.');\n\n\t\t\t$intRowCount = Project::QueryCount(\n\t\t\t\tQQ::AndCondition(\n\t\t\t\t\tQQ::Equal(QQN::Project()->Id, $this->intId),\n\t\t\t\t\tQQ::Equal(QQN::Project()->ProjectAsRelated->ChildProjectId, $objProject->Id)\n\t\t\t\t)\n\t\t\t);\n\n\t\t\treturn ($intRowCount > 0);\n\t\t}", "title": "" } ]
[ { "docid": "c67c2f1961ff7309d8f0c93f33e77f83", "score": "0.628062", "text": "public function _definesAssociation($as)\n {\n $this->_setupAssociations();\n\n $my_class = $this->getClass();\n if (!isset(self::$_description[$my_class]['has'])) {\n return false;\n }\n\n $all_assoc = array_keys(self::$_description[$my_class]['has']);\n return in_array($as, $all_assoc);\n }", "title": "" }, { "docid": "4ef7a5db50b506b12499e5cd27b81521", "score": "0.61112744", "text": "public function IsParentProjectAsRelatedAssociated(Project $objProject) {\n\t\t\tif ((is_null($this->intId)))\n\t\t\t\tthrow new QUndefinedPrimaryKeyException('Unable to call IsParentProjectAsRelatedAssociated on this unsaved Project.');\n\t\t\tif ((is_null($objProject->Id)))\n\t\t\t\tthrow new QUndefinedPrimaryKeyException('Unable to call IsParentProjectAsRelatedAssociated on this Project with an unsaved Project.');\n\n\t\t\t$intRowCount = Project::QueryCount(\n\t\t\t\tQQ::AndCondition(\n\t\t\t\t\tQQ::Equal(QQN::Project()->Id, $this->intId),\n\t\t\t\t\tQQ::Equal(QQN::Project()->ParentProjectAsRelated->ProjectId, $objProject->Id)\n\t\t\t\t)\n\t\t\t);\n\n\t\t\treturn ($intRowCount > 0);\n\t\t}", "title": "" }, { "docid": "7ef27fad87fc8620245b5fd5037b2da6", "score": "0.60088074", "text": "public function hasRelated($name)\n\t{\n\t\treturn isset($this->_related[$name]) || array_key_exists($name,$this->_related);\n\t}", "title": "" }, { "docid": "61e1d7affc9e9e5b942d00336e06348e", "score": "0.59056664", "text": "protected function hasAssociation(FieldDescriptionInterface $fieldDescription): bool\n {\n if (method_exists($fieldDescription, 'describesAssociation')) {\n return $fieldDescription->describesAssociation();\n }\n\n return \\in_array($fieldDescription->getMappingType(), [\n ClassMetadata::ONE_TO_MANY,\n ClassMetadata::MANY_TO_MANY,\n ClassMetadata::MANY_TO_ONE,\n ClassMetadata::ONE_TO_ONE,\n ], true);\n }", "title": "" }, { "docid": "e84b3af9b29f754b3cf6acdd71fe100a", "score": "0.58152926", "text": "public static function doesProjectIDBelongToUser($projectID) {\n $userID = Auth::user()->id;\n\n $project = Project::whereHas('users', function($q) use($userID, $projectID) {\n\n $q->where(function ($query2) use($userID, $projectID) {\n $query2\n ->where('id', '=', $userID)\n ->where('project_user.auth', '=', 'owner')\n ->where('project_user.project_id', '=', $projectID);\n });\n\n })->first();\n\n if($project) {\n self::$foundProject = $project;\n return true;\n } else {\n return false;\n }\n\n }", "title": "" }, { "docid": "aa97d6d9e6fa2ae2fc654443ef388718", "score": "0.5719964", "text": "public function isAssociated()\n {\n return !empty($this->object);\n }", "title": "" }, { "docid": "dd4021ee9b0d9ede971f5cf8be7f6ddd", "score": "0.5684342", "text": "public function relationshipExists($tag_id, $taggable_id, $taggable_type)\n {\n if (static::where('name', $tag)->pluck('id')->isEmpty()) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "c79bc54188c3656236d99bfcd8a79ba4", "score": "0.56237805", "text": "public function hasProjectId(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "c79bc54188c3656236d99bfcd8a79ba4", "score": "0.56237805", "text": "public function hasProjectId(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "e2ec015fd0d78a9db21c200417e204d3", "score": "0.55639493", "text": "public function isAssociation(string $fieldName): bool\n {\n return $this->metadata->hasAssociation($fieldName);\n }", "title": "" }, { "docid": "b21ec3f8c8dfbb27d60a1d848b6c07e1", "score": "0.55636734", "text": "public function hasProjectId(){\n return $this->_has(8);\n }", "title": "" }, { "docid": "b21ec3f8c8dfbb27d60a1d848b6c07e1", "score": "0.55636734", "text": "public function hasProjectId(){\n return $this->_has(8);\n }", "title": "" }, { "docid": "b21ec3f8c8dfbb27d60a1d848b6c07e1", "score": "0.55636734", "text": "public function hasProjectId(){\n return $this->_has(8);\n }", "title": "" }, { "docid": "b21ec3f8c8dfbb27d60a1d848b6c07e1", "score": "0.55636734", "text": "public function hasProjectId(){\n return $this->_has(8);\n }", "title": "" }, { "docid": "b21ec3f8c8dfbb27d60a1d848b6c07e1", "score": "0.55636734", "text": "public function hasProjectId(){\n return $this->_has(8);\n }", "title": "" }, { "docid": "b21ec3f8c8dfbb27d60a1d848b6c07e1", "score": "0.55636734", "text": "public function hasProjectId(){\n return $this->_has(8);\n }", "title": "" }, { "docid": "71c3e1a4f322904f3e4a39a917924379", "score": "0.55037516", "text": "public function existsProject();", "title": "" }, { "docid": "1ec876b761baecdeb6f9d5e148b09df6", "score": "0.54502034", "text": "public function hasRelationships();", "title": "" }, { "docid": "e937ac86096ce455d202900e77819cb9", "score": "0.53704786", "text": "protected function isHasOne($foreignKey)\n {\n $remote = $this->describes[$foreignKey->TABLE_NAME];\n foreach ($remote as $field) {\n if ($field->Key == 'PRI') {\n if ($field->Field == $foreignKey->COLUMN_NAME) {\n return true;\n }\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "8560b90084ffd1aca5b355cc20c399dc", "score": "0.5319062", "text": "static function isProjectExists($project_id) {\r\n\t$mdb2 = getConnection();\r\n\r\n $sql = \"select count(p.p_id) as cnt from projects p where p.p_id = $project_id and p.p_status = 1\";\r\n\t$res = &$mdb2->query($sql);\r\n\r\n \tif (PEAR::isError($res) == 0) {\r\n $val = $res->fetchRow();\r\n\r\n if ($val['cnt'] > 0) {\r\n \treturn true;\r\n } else {\r\n \treturn false;\r\n }\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "f26a46ffe81096c037c31545575f3e1d", "score": "0.5300195", "text": "public function isRelatedTo(string $subject): bool;", "title": "" }, { "docid": "e9cd0465fc7b7737dbc08fab0c7e8808", "score": "0.5299121", "text": "public function entityExists(AssocEntityInterface $entity): bool\n {\n return $this->offsetExists($entity->getCollectionIndex());\n }", "title": "" }, { "docid": "04046d25eb98d8c36a00719681386aba", "score": "0.52962", "text": "public function testHasInRelationship(): void\n {\n $crud = $this->createCrud(PostsApi::class);\n\n $this->assertFalse($crud->hasInRelationship('1', Post::REL_COMMENTS, '1'));\n $this->assertTrue($crud->hasInRelationship('1', Post::REL_COMMENTS, '9'));\n }", "title": "" }, { "docid": "991c54807cf09a23848e2bf68da6e8e9", "score": "0.5293531", "text": "function relationship_exists($table_name, $join_key_values) {\n\t\t$dup_keys=$this->_get_alternate_key_fields($table_name);\n\t\tif (empty($dup_keys)) {\n\t\t\t$GLOBALS['log']->debug(\"No alternate key define, skipping duplicate check..\");\n\t\t\treturn false;\n\t\t}\n\n\t\t$delimiter='';\n\t\t$this->_duplicate_where=' WHERE ';\n\t\tforeach ($dup_keys as $field) {\n\t\t\t//look for key in $join_key_values, if found add to filter criteria else abort duplicate checking.\n\t\t\tif (isset($join_key_values[$field])) {\n\n\t\t\t\t$this->_duplicate_where .= $delimiter.' '.$field.\"='\".$join_key_values[$field].\"'\";\n\t\t\t\t$delimiter='AND';\n\t\t\t} else {\n\t\t\t\t$GLOBALS['log']->error('Duplicate checking aborted, Please supply a value for this column '.$field);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//add deleted check.\n\t\t$this->_duplicate_where .= $delimiter.' deleted=0';\n\n\t\t$query='SELECT id FROM '.$table_name.$this->_duplicate_where;\n\n\t\t$GLOBALS['log']->debug(\"relationship_exists query(\".$query.')');\n\n\t\t$row = $this->_db->fetchOne($query, true);\n\n\t\tif ($row == null) {\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\t$this->_duplicate_key=$row['id'];\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "8bbe55921a794ad6a5e358e563f07717", "score": "0.5290487", "text": "function check_if_office_has_any_context_association(int $office_id):Bool{\n // Just check if this office has any hierarchy association \n\n $this->db->select(array('context_definition_name'));\n $context_definition_names = $this->db->get('context_definition')->result_array();\n\n $has_association = false;\n \n\n foreach(array_column($context_definition_names,'context_definition_name') as $context_definition_name){\n $context_table = 'context_'.$context_definition_name;\n\n $office_count = $this->db->get_where($context_table,\n array('fk_office_id'=>$office_id))->num_rows();\n\n if($office_count > 0){\n $has_association = true;\n break;\n }\n }\n\n return $has_association;\n\n }", "title": "" }, { "docid": "562b54a8c6cea23e10c7b7c75d614c6b", "score": "0.5280217", "text": "public function testContainInAssociationMatching(): void\n {\n $table = $this->getTableLocator()->get('authors');\n $table->hasMany('articles');\n $articles = $table->getAssociation('articles')->getTarget();\n $articles->hasMany('articlesTags');\n $articles->getAssociation('articlesTags')->getTarget()->belongsTo('tags');\n\n $query = $table->find()->matching('articles.articlesTags', function ($q) {\n return $q->matching('tags', function ($q) {\n return $q->where(['tags.name' => 'tag3']);\n });\n });\n\n $results = $query->toArray();\n $this->assertCount(1, $results);\n $this->assertSame('tag3', $results[0]->_matchingData['tags']->name);\n }", "title": "" }, { "docid": "b46a5258c70f9fe62f0418666f66b87c", "score": "0.5268445", "text": "public function Exists()\n {\n if (!$this->Build) {\n return false;\n }\n $stmt = $this->PDO->prepare(\n 'SELECT COUNT(*) FROM pending_submissions\n WHERE buildid = :buildid');\n $params = [':buildid' => $this->Build->Id];\n pdo_execute($stmt, $params);\n if ($stmt->fetchColumn() > 0) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "2e6c388f98c3a3e8c802e9c0049d3e9a", "score": "0.5258679", "text": "function project_exists($origin, $project) {\n $project = btr::db_query(\n 'SELECT project FROM {btr_projects}\n WHERE BINARY origin = :origin AND BINARY project = :project',\n array(\n ':origin' => $origin,\n ':project' => $project,\n ))\n ->fetchField();\n\n return ($project ? TRUE : FALSE);\n}", "title": "" }, { "docid": "cdf789c332c1e3f1668369ab6974bacb", "score": "0.52545244", "text": "public static function isProjectPahtExist($projectId, $parentPahtId, $path) {\n\t\t$projectPath = new ProjectPathDao();\n\t\t$sequence = $projectId;\n\t\t$projectPath->setServerAddress($sequence);\n\n\t\t$builder = new QueryBuilder($projectPath);\n\t\t$res = $builder->select('CONST(*) as count')\n\t\t\t\t\t ->where('project_id', $projectId)\n\t\t\t\t\t ->where('parent_path_id', $parentPahtId)\n\t\t\t\t\t ->where('path', $path)\n\t\t\t\t\t ->find();\n\n\t\treturn $res['count']>0;\n\t}", "title": "" }, { "docid": "f4dd526b08e8b42167c9b7d2ec38f387", "score": "0.52207154", "text": "public function existsHasOneThrough(string $modelName, string $modelRelation): bool\n {\n }", "title": "" }, { "docid": "cebe9beac4702aa12fc87d3d496e2789", "score": "0.5211818", "text": "public function _getAssociationDescription($as)\n {\n $this->_setupAssociations();\n\n $my_class = $this->getClass($this);\n if (!$this->_definesAssociation($as)) {\n return false;\n }\n\n return self::$_description[$my_class]['has'][$as];\n }", "title": "" }, { "docid": "5b9a0f20fd3be8657a12fbfd5e9cb363", "score": "0.519595", "text": "function userIsInProject($id, $idProject, $pdo) {\n $sql = \"SELECT idUser FROM team \n JOIN teams ON team.idTeam = teams.idTeam \n JOIN projects ON teams.id = projects.idteam\n WHERE projects.id = :idProject\";\n $rqt = $pdo->prepare($sql);\n $rqt->execute([$idProject]);\n $result = $rqt->fetchAll(PDO::FETCH_ASSOC);\n foreach($result as $res) {\n if (in_array($id,$res)) {\n return true;\n }\n }\n return false;\n}", "title": "" }, { "docid": "bb4a32ede326695c61bfeaff35b630e1", "score": "0.5193863", "text": "private function check_has_many($name) {\n if (!method_exists($this, 'has_many')) {\n return;\n }\n\n $has_many = $this->has_many();\n\n if (!array_key_exists($name, $has_many)) {\n return;\n }\n\n $hm_info = $has_many[$name];\n\n $model = $hm_info[0];\n $fk = $hm_info[1];\n\n return $model::where([\n $fk => $this->id()\n ]);\n }", "title": "" }, { "docid": "c65b2b662daf12c46177643d655a187d", "score": "0.5185975", "text": "public function owns($related)\n {\n return $this->id == $related->user_id;\n }", "title": "" }, { "docid": "038852efac77e3d702514ed84e2f42b8", "score": "0.5185447", "text": "public function IsPersonAsTeamMemberAssociated(Person $objPerson) {\n\t\t\tif ((is_null($this->intId)))\n\t\t\t\tthrow new QUndefinedPrimaryKeyException('Unable to call IsPersonAsTeamMemberAssociated on this unsaved Project.');\n\t\t\tif ((is_null($objPerson->Id)))\n\t\t\t\tthrow new QUndefinedPrimaryKeyException('Unable to call IsPersonAsTeamMemberAssociated on this Project with an unsaved Person.');\n\n\t\t\t$intRowCount = Project::QueryCount(\n\t\t\t\tQQ::AndCondition(\n\t\t\t\t\tQQ::Equal(QQN::Project()->Id, $this->intId),\n\t\t\t\t\tQQ::Equal(QQN::Project()->PersonAsTeamMember->PersonId, $objPerson->Id)\n\t\t\t\t)\n\t\t\t);\n\n\t\t\treturn ($intRowCount > 0);\n\t\t}", "title": "" }, { "docid": "0d8b48259dccec9fa5c4bac0e88763d3", "score": "0.51854354", "text": "public function projectExists(){\n\t\treturn $this->managermodel->checkProjectExists();\n\t}", "title": "" }, { "docid": "bf560deee7c4ac769c75ab11a7fa0d1f", "score": "0.51774436", "text": "public function check_exists(){\n\t\t$query = array('id_lophoc' => new MongoId($this->id_lophoc),\n\t\t\t\t\t\t'id_namhoc' => new MongoId($this->id_namhoc));\n\t\t$fields = array('_id'=>true);\n\n\t\t$result = $this->_collection->findOne($query, $fields);\n\t\tif($result['_id']) return true;\n\t\telse return false;\n\t\t\n\t}", "title": "" }, { "docid": "16acc1fe9c22ab70fe6d73b92ec3426d", "score": "0.51757735", "text": "private function checkRelationships()\n\t{\n\t\tif(!empty($this->relationships))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t};\n\t}", "title": "" }, { "docid": "22a1e19a24a4c28fbc15231e8f6fca57", "score": "0.5150104", "text": "public function existsHasMany(string $modelName, string $modelRelation): bool\n {\n }", "title": "" }, { "docid": "b713a4ac7616bd1cffa738a34f894d67", "score": "0.5148788", "text": "private function isRelation($field)\n {\n return \\in_array($field, $this->associationNames);\n }", "title": "" }, { "docid": "acd47372f8f26bf840d2878fbf338035", "score": "0.5148659", "text": "static function isProjectExistsStrict($project_id, $user) {\r\n $result = false;\r\n $mdb2 = getConnection();\r\n\r\n $user_id = $user->getManagerId();\r\n if ($user->isManager()) $user_id = $user->getUserId();\r\n\r\n $sql = \"select count(p.p_id) as prjc from projects p\r\n \t\twhere p.p_id = $project_id and p.p_manager_id = $user_id and p.p_status = 1\";\r\n $res = &$mdb2->query($sql);\r\n if (PEAR::isError($res) == 0) {\r\n if ($val = $res->fetchRow()) {\r\n if ($val[\"prjc\"]>0) $result = true;\r\n }\r\n \t}\r\n \treturn $result;\r\n }", "title": "" }, { "docid": "67f3de307821e44052338786bef1ca1f", "score": "0.51473933", "text": "public function checkIfHasRelated($recordObject){\n\n\t\t//if has related\n\t\t//disabl editing/has relate\n\t\tif(!empty($recordObject['related'])){\n\n\t\t\t$this->set('bodyClass','disable-buttons');\n\t\t\t$this->set('hasRelated', true);\n\t\t}\n\n\t\t//attempt to find a booking where booking.related = the passed ID\n\t\t$isARelatedBooking = $this->Booking->find(\n\t\t\t'first', array(\n\t\t\t\t'conditions'=>array(\n\t\t\t\t\t'Booking.related' => $recordObject['id']\n\t\t\t\t),\n\t\t\t\t'fields' => array(\n\t\t\t\t\t'Booking.id'\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\n\t\t//if HAS related\n\t\tif(!empty($isARelatedBooking)){\n\n\t\t\t//set found related record to view\n\t\t\t$this->set('isRelated', $isARelatedBooking);\n\t\t}\n\n\n\t}", "title": "" }, { "docid": "af60fe557d6f2fbcc6062c86fa08c5b5", "score": "0.5107396", "text": "public function exists()\n {\n return $this->_noOrganization['gor_name'] !== $this->getName();\n }", "title": "" }, { "docid": "0bf25a66b5a4964e0c798cb27dd12814", "score": "0.510739", "text": "public function issetRelatedSituation($index)\n {\n return isset($this->relatedSituation[$index]);\n }", "title": "" }, { "docid": "1db0986e1ed63cb202b246f9181c22c7", "score": "0.5096576", "text": "public function hasOne($as, $params = array())\n {\n $my_class = $this->getClass();\n if (isset(self::$_description[$my_class]['has'][$as])) {\n return;\n }\n\n $params['count'] = self::ASSOC_ONE;\n\n /**\n * guarantee we have necessary params\n */\n if (!isset($params['class'])) {\n $params['class'] = ucfirst($as);;\n }\n if (!isset($params['my_key'])) {\n $params['my_key'] = $this->getPrimaryKey();\n }\n if (!isset($params['table'])) {\n $params['table'] = pluralize($as);\n }\n\n if (isset($params['thru'])) {\n $this->_setupThruParams($params);\n }\n else {\n if (!isset($params['foreign_key'])) {\n $params['foreign_key'] = strtolower($my_class).\"_id\";\n }\n }\n\n if (!isset($params['default_strategy'])) {\n $params['default_strategy'] = 'Immediate';\n }\n\n self::$_description[$my_class]['has'][$as] = $params;\n }", "title": "" }, { "docid": "3edc64a7b33e7a77f8c24ced4e5be58e", "score": "0.50926197", "text": "public function has($id);", "title": "" }, { "docid": "3edc64a7b33e7a77f8c24ced4e5be58e", "score": "0.50926197", "text": "public function has($id);", "title": "" }, { "docid": "3edc64a7b33e7a77f8c24ced4e5be58e", "score": "0.50926197", "text": "public function has($id);", "title": "" }, { "docid": "3edc64a7b33e7a77f8c24ced4e5be58e", "score": "0.50926197", "text": "public function has($id);", "title": "" }, { "docid": "a062907b5bd72f4d831158958d9dcf5e", "score": "0.5085312", "text": "public function existsHasOne(string $modelName, string $modelRelation): bool\n {\n }", "title": "" }, { "docid": "ccb5299d3037cb769474830c01e83b5f", "score": "0.5072165", "text": "public function existsBelongsTo(string $modelName, string $modelRelation): bool\n {\n }", "title": "" }, { "docid": "8c195bd20f7611188736295052898d76", "score": "0.50711024", "text": "public function testContainAssociationWithEmptyConditions(): void\n {\n $articles = $this->getTableLocator()->get('Articles');\n $articles->belongsTo('Authors', [\n 'conditions' => function ($exp, $query) {\n return $exp;\n },\n ]);\n $query = $articles->find('all')->contain(['Authors']);\n $result = $query->toArray();\n $this->assertCount(3, $result);\n }", "title": "" }, { "docid": "59b0be07a01091e390bfa5ce3ffc9d45", "score": "0.5066353", "text": "function checkSurveyProject($survey_id)\r\n{\r\n\tglobal $Proj;\r\n\treturn (is_numeric($survey_id) && isset($Proj->surveys[$survey_id]));\r\n}", "title": "" }, { "docid": "7a5425ce375501ed82e3c4a5c0f9a591", "score": "0.5061835", "text": "public function exists()\n\t{\n\t\treturn $this->one() !== null;\n\t}", "title": "" }, { "docid": "bb6505afd223fabe11dfd33365e4c27f", "score": "0.5034654", "text": "public function hasRelation($name)\n\t{\n\t\treturn isset($this->relations[$name]);\n\t}", "title": "" }, { "docid": "abf4183a2a56e86f03849ffefaf2e203", "score": "0.5021617", "text": "public function isRelated($roleName, $id, $options = array())\n {\n $related = $this->getRelated($roleName, $options);\n\n foreach ($related as $relate) {\n if ($relate->id == $id) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "5549cf8730e905dafcd157919bff3e94", "score": "0.50194794", "text": "public function hasPrincipal(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "0270c088a59066224739d5623063943a", "score": "0.5014865", "text": "public function hasObjective()\n\t{\n\t\tif(is_array($this->objectives) && in_array($a_id, $this->objectives))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "fd20827c069a6504c3978f6c80dde123", "score": "0.5009059", "text": "public function exists()\n {\n return $this->id !== null;\n }", "title": "" }, { "docid": "0f9be66fca558d7345823110e71ea5b3", "score": "0.5007212", "text": "private function check_belongs_to($name) {\n if (!method_exists($this, 'belongs_to')) {\n return;\n }\n\n $belongs_to = $this->belongs_to();\n\n if (!array_key_exists($name, $belongs_to)) {\n return;\n }\n \n $bt_info = $belongs_to[$name];\n\n $model = $bt_info[0];\n $fk = $bt_info[1];\n\n return $model::find([\n 'id' => $this->hash[$fk]\n ]);\n }", "title": "" }, { "docid": "ec00a1b6b7e5536baffed25add819fd1", "score": "0.49991974", "text": "public function hasRelations(): bool\n {\n return $this->relations->size() > 0;\n }", "title": "" }, { "docid": "d68475c3c415d797dfe18f0745e157a3", "score": "0.49972904", "text": "public function owns(Model $related = null, ?string $foreignKey = null): bool\n {\n if (\\is_null($related)) {\n return false;\n }\n\n if (\\is_null($foreignKey)) {\n $foreignKey = $this->getForeignKey();\n }\n\n return $related->getAttribute($foreignKey) == $this->getKey();\n }", "title": "" }, { "docid": "e424f8f5bb793f2ae686a7dbcde0a380", "score": "0.49953458", "text": "public function fetch_users_where_have_relation()\n {\n $this->assertInstanceOf(Collection::class, \\UserRepository::getUsersWhereHave('posts', ['approved' => true]));\n }", "title": "" }, { "docid": "3927ede469e21a5a0feab95b96b94eef", "score": "0.49810886", "text": "function hasRelation($item)\n {\n return isset($item['relation']);\n }", "title": "" }, { "docid": "6c4b6998dfaab3233b2a2564e70a220e", "score": "0.49796093", "text": "public function isAddToRelationship();", "title": "" }, { "docid": "79154b420ce1fd1599a9eaac930decef", "score": "0.49559727", "text": "public static function exists()\n {\n /** @var \\Illuminate\\Database\\Query\\Builder $instance */\n return $instance->exists();\n }", "title": "" }, { "docid": "84c2dacc87dfa55e5a7e9c051775b486", "score": "0.49428573", "text": "public function canHandle(RelationInterface $relation) {\n\t\treturn $relation instanceof ProjectedRelation;\n\t}", "title": "" }, { "docid": "ac5eb56084ccc3bb4cbcf4810838f8f2", "score": "0.49415416", "text": "public function testVoteProjectRelationship()\n {\n $user = factory(User::class)->create();\n $this->be($user);\n $project = factory(Project::class)->create();\n $vote = factory(Vote::class)->create(['project_id' => $project->id]);\n $this->assertInstanceOf(Project::class, $vote->project);\n $this->assertEquals($project->id, $vote->project->id);\n }", "title": "" }, { "docid": "090e1ad43c9fab6d20c145c0830168da", "score": "0.49342626", "text": "public function hasProjects()\n {\n return $this->hasMany(Project::class, 'assign', 'id');\n }", "title": "" }, { "docid": "a4b971c2ae3c4e79409db9c80ccb4958", "score": "0.49266547", "text": "function projectExists($identifier, $apiKey) {\n\t$projectInfo = json_decode(file_get_contents(sprintf('http://api.crowdin.net/api/project/%s/info?json&key=%s', $identifier, $apiKey)), TRUE);\n\n\t// check if project exists\n\tif (isset($projectInfo['success']) && $projectInfo['success'] === FALSE) {\n\t\treturn FALSE;\n\t} else {\n\t\treturn TRUE;\n\t}\n}", "title": "" }, { "docid": "497a3b06565de3e478bbf317d402a6bc", "score": "0.49252602", "text": "function Exists()\n {\n if(!$this->BuildId)\n {\n echo \"BuildConfigure::Exists(): BuildId not set\";\n return false;\n }\n\n if(!is_numeric($this->BuildId))\n {\n echo \"BuildConfigure::Exists(): Buildid is not numeric\";\n return false;\n }\n\n $query = pdo_query(\"SELECT COUNT(*) FROM configure WHERE buildid=\".qnum($this->BuildId));\n if(!$query)\n {\n add_last_sql_error(\"BuildConfigure Exists()\",0,$this->BuildId);\n return false;\n }\n\n $query_array = pdo_fetch_array($query);\n if($query_array[0] > 0)\n {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "d784d81072f5c681aa054d4b546ba974", "score": "0.49161693", "text": "public function exists(UserInterface $user);", "title": "" }, { "docid": "c8e7112e672f8f7d0d4e41d44bde294e", "score": "0.48991746", "text": "function has_projects()\n\t{\n // phpcs:enable\n\t\t$sql = 'SELECT COUNT(*) as numproj FROM '.MAIN_DB_PREFIX.'projet WHERE fk_soc = ' . $this->id;\n\t\t$resql = $this->db->query($sql);\n\t\tif ($resql)\n\t\t{\n\t\t\t$obj = $this->db->fetch_object($resql);\n\t\t\t$count = $obj->numproj;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$count = 0;\n\t\t\tprint $this->db->error();\n\t\t}\n\t\t$this->db->free($resql);\n\t\treturn ($count > 0);\n\t}", "title": "" }, { "docid": "7f39a763856665d60dd7e3270efed7f9", "score": "0.48957705", "text": "public function __isset($name)\n {\n if (parent::__isset($name)) {\n return true;\n }\n\n $table = static::table();\n\n return $table->has_relationship($name);\n }", "title": "" }, { "docid": "5987caba00ad50a86b7953b328386ac4", "score": "0.48878038", "text": "public static function exists($url){\n $project=Database\\Projects::selectProjectByUrl($url);\n return is_array($project);\n }", "title": "" }, { "docid": "16a337757846c3f926d4d91cb1fa6669", "score": "0.48817065", "text": "public function hasOne( $attribute )\n {\n return array_key_exists( $attribute, $this->hasOne );\n }", "title": "" }, { "docid": "4985163aacc96e560c5a5c1528fd2f31", "score": "0.4875007", "text": "function exists()\n\t{\n\t\t$slug = $this->attribute('slug');\n\n\t\t$this->load->model('galleries_m');\n\n\t\treturn (int) ($slug ? $this->galleries_m->count_by('slug', $slug) > 0 : FALSE);\n\t}", "title": "" }, { "docid": "61e69da1a36a243c58d0f2d27e865db4", "score": "0.48749903", "text": "public function hasProject($name)\n {\n return in_array($name, $this->getProjectNames());\n }", "title": "" }, { "docid": "4e846b1bea84b43968478665ece7e1f7", "score": "0.48642102", "text": "static function exists($a_blog_id, $a_posting_id)\n\t{\n\t\tglobal $ilDB;\n\n\t\t$query = \"SELECT id FROM il_blog_posting\".\n\t\t\t\" WHERE blog_id = \".$ilDB->quote($a_blog_id, \"integer\").\n\t\t\t\" AND id = \".$ilDB->quote($a_posting_id, \"integer\");\n\t\t$set = $ilDB->query($query);\n\t\tif($rec = $ilDB->fetchAssoc($set))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "5eb86314775ac484d85a7e508cbe2793", "score": "0.48641476", "text": "public function testContainWithQueryBuilderJoinableAssociation(): void\n {\n $table = $this->getTableLocator()->get('Authors');\n $table->hasOne('Articles');\n $query = new SelectQuery($table);\n $query->select()\n ->contain([\n 'Articles' => [\n 'foreignKey' => false,\n 'queryBuilder' => function ($q) {\n return $q->where(['Articles.id' => 1]);\n },\n ],\n ]);\n $result = $query->toArray();\n $this->assertEquals(1, $result[0]->article->id);\n $this->assertEquals(1, $result[1]->article->id);\n\n $articles = $this->getTableLocator()->get('Articles');\n $articles->belongsTo('Authors');\n $query = new SelectQuery($articles);\n $query->select()\n ->contain([\n 'Authors' => [\n 'foreignKey' => false,\n 'queryBuilder' => function ($q) {\n return $q->where(['Authors.id' => 1]);\n },\n ],\n ]);\n $result = $query->toArray();\n $this->assertEquals(1, $result[0]->author->id);\n }", "title": "" }, { "docid": "658bec55917b67ba2d3bc9f4f4d43368", "score": "0.48565146", "text": "private function _validateRelatedRecords() {\n\t\tforeach ($this->getMetaData()->relations as $relation) {\n\t\t if ($relation instanceof MortimerHasManyRelation || $relation instanceof MortimerHasOneRelation) {\n if (!$this->hasRelated($relation->name) || !$this->isRelationSupported($relation) || !$relation->autoSave)\n continue;\n \n $records = $relation instanceof MortimerHasOneRelation ? array($this->getRelated($relation->name, false)) : $this->getRelated($relation->name, false);\n foreach ($records as $record) {\n if (!$record->validate())\n return false;\n }\n }\n }\n return true;\n }", "title": "" }, { "docid": "b81242d77f522b9091de9f93b8038023", "score": "0.48534882", "text": "public function hasRelatedEntities($id)\n {\n\n $pdo = $this->getEntityManager()->getConnection();\n $sql = 'SELECT (SELECT COUNT(e.id) FROM events e \n JOIN defendants_events de ON e.id = de.event_id \n WHERE de.defendant_id = :id) + (SELECT COUNT(r.id) \n FROM requests r JOIN defendants_requests dr \n ON r.id = dr.request_id WHERE dr.defendant_id = :id) AS total';\n $stmt = $pdo->prepare($sql);\n $stmt->execute([':id' => $id]);\n $count = $stmt->fetch(\\PDO::FETCH_COLUMN);\n\n return $count ? true : false;\n }", "title": "" }, { "docid": "0c718c70f54bcefc14db49759e6488a5", "score": "0.4849423", "text": "public function testExists()\n {\n $builder = new QueryBuilder();\n $result = $builder->exists('comments');\n $expected = [\n 'exists' => ['field' => 'comments'],\n ];\n $this->assertEquals($expected, $result->toArray());\n }", "title": "" }, { "docid": "8123be3e7c41c709a26327bd2b06e610", "score": "0.48457193", "text": "public function hasAndBelongsTo( $attribute )\n {\n return array_key_exists( $attribute, $this->hasAndBelongsTo );\n }", "title": "" }, { "docid": "2b765a90a3e626ffa73fddc4dc1deb02", "score": "0.48374188", "text": "function has_related(){\n\n\treturn Walker::getRelated();\n\t\n}", "title": "" }, { "docid": "c8fcedd5003bdf57d0449f0a4b14f9c4", "score": "0.4833438", "text": "public function hasRelation($identifier = null);", "title": "" }, { "docid": "855d3469519693d8156ddfc8c2ca1b08", "score": "0.48309416", "text": "public function IsCheckingAccountLookupAssociated(CheckingAccountLookup $objCheckingAccountLookup) {\n\t\t\tif ((is_null($this->intId)))\n\t\t\t\tthrow new QUndefinedPrimaryKeyException('Unable to call IsCheckingAccountLookupAssociated on this unsaved Person.');\n\t\t\tif ((is_null($objCheckingAccountLookup->Id)))\n\t\t\t\tthrow new QUndefinedPrimaryKeyException('Unable to call IsCheckingAccountLookupAssociated on this Person with an unsaved CheckingAccountLookup.');\n\n\t\t\t$intRowCount = Person::QueryCount(\n\t\t\t\tQQ::AndCondition(\n\t\t\t\t\tQQ::Equal(QQN::Person()->Id, $this->intId),\n\t\t\t\t\tQQ::Equal(QQN::Person()->CheckingAccountLookup->CheckingAccountLookupId, $objCheckingAccountLookup->Id)\n\t\t\t\t)\n\t\t\t);\n\n\t\t\treturn ($intRowCount > 0);\n\t\t}", "title": "" }, { "docid": "359c1bc7f3ccaf1824af14593e1796c6", "score": "0.4814582", "text": "public function exists()\n {\n return !is_null($this->id);\n }", "title": "" }, { "docid": "309e7c19db3f3215b8d5d88ea68e5259", "score": "0.48109272", "text": "public function hasRelationship($key)\n {\n return null !== $this->getRelationship($key);\n }", "title": "" }, { "docid": "3c997189bc57c2644a77249aa13ea22b", "score": "0.48082352", "text": "protected function belongsTo($as, $params = array())\n {\n $my_class = $this->getClass();\n if (isset(self::$_description[$my_class]['has'][$as])) {\n return;\n }\n\n $params['count'] = self::ASSOC_BELONGSTO;\n\n // guarantee we have necessary params\n if (!isset($params['class'])) {\n $params['class'] = ucfirst($as);;\n }\n\n if (!isset($params['foreign_key'])) {\n $params['foreign_key'] = strtolower($as).\"_id\";\n }\n\n if (!isset($params['owner_key'])) {\n $params['owner_key'] = 'id';\n }\n\n if (!isset($params['table'])) {\n $params['table'] = pluralize($as);\n }\n\n if (!isset($params['default_strategy'])) {\n $params['default_strategy'] = 'Immediate';\n }\n\n self::$_description[$my_class]['has'][$as] = $params;\n }", "title": "" }, { "docid": "cdb49296f8486c6317c518611f736dc7", "score": "0.48040658", "text": "protected function isRelation($name)\n {\n return isset($this->relations[$name]);\n }", "title": "" }, { "docid": "3292e8804950bd59bd79ba71d0f689dd", "score": "0.4799771", "text": "public function isAssigned() {\n return $this->assignments()->first() != null;\n }", "title": "" }, { "docid": "ad24bf74fe1184577efe51767a51a3fa", "score": "0.47968742", "text": "public function hasRelation($relationid){\n $relation = collect($this->data[\"relations\"])->first(function(Relation $relation) use($relationid){\n return $relation->id == $relationid;\n });\n return $relation != null;\n }", "title": "" }, { "docid": "0b84287d585b04a1daa4a91627d8d7f1", "score": "0.47961387", "text": "public function isComparingRelationship();", "title": "" }, { "docid": "614ddb42f41ab2ad8dbe50c8ed0dd4f6", "score": "0.47933102", "text": "public function exists()\n {\n return !empty($this->id);\n }", "title": "" }, { "docid": "5384807386490b48e9985fd248636c90", "score": "0.47925594", "text": "public function testExists()\n {\n $circle = new Circle(\n new CircleId(\"id001\"),\n new CircleName(\"name001\"),\n new User(\n new UserId(\"uId001\"),\n new UserName(\"uName001\")\n ),\n new Collection()\n );\n\n $circleRepository = new CircleRepository;\n $circleService = new CircleService($circleRepository);\n $this->assertIsBool($circleService->exists($circle));\n }", "title": "" }, { "docid": "5bac1355f09fc65a402956aca5ca6d2a", "score": "0.47846636", "text": "public function testContainInAssociationQuery(): void\n {\n $table = $this->getTableLocator()->get('ArticlesTags');\n $table->belongsTo('Articles');\n $table->getAssociation('Articles')->getTarget()->belongsTo('Authors');\n\n $query = $table->find()\n ->orderBy(['Articles.id' => 'ASC'])\n ->contain([\n 'Articles' => function ($q) {\n return $q->contain('Authors');\n },\n ]);\n $results = $query->all()->extract('article.author.name')->toArray();\n $expected = ['mariano', 'mariano', 'larry', 'larry'];\n $this->assertEquals($expected, $results);\n }", "title": "" }, { "docid": "47aa9ff6d72df3a3d4f510576794093e", "score": "0.47806215", "text": "public function exists(Identity $id): bool;", "title": "" }, { "docid": "8ea8675e90bbd2d08f947fe74b3709c1", "score": "0.47740188", "text": "public function hasTaxonomies()\n {\n return count($this->belongs_to) > 0;\n }", "title": "" }, { "docid": "6eee1dd0b7cc9bbdf8f103a0c8551279", "score": "0.47663528", "text": "function exists($person_id) {\n\t\t$this->db->from('suppliers');\t\n\t\t$this->db->join('people', 'people.person_id = suppliers.person_id');\n\t\t$this->db->where('suppliers.person_id',$person_id);\n\t\t$query = $this->db->get();\n\t\treturn ($query->num_rows()==1);\n\t}", "title": "" } ]
e038e81657abca41e33d33e95342961a
End here Funtion Name : _Exe_Query Created By : Sureshkumar S 18Oct2016 08:54 AM Modified By : Description : Execute the sql and write log into table if enabled Start here
[ { "docid": "85d0f596f84256cb80bf4d9e41101b9e", "score": "0.57184595", "text": "public function _Exe_Query($sql)\n\t{\t\t\n\t\t\n\t\t$msc=microtime(true);\n\t\tif ( mysqli_query($this->con,$sql ) === TRUE)\n\t\t{\t\n\t\t\t$msc=microtime(true)-$msc;\n\t\t\treturn 1;\n\t\t} \n\t\t\treturn 0;\t\t\n\t}", "title": "" } ]
[ { "docid": "7228248896b2eb9e13b0a43781b72099", "score": "0.6323152", "text": "private function executeStatement()\n {\n }", "title": "" }, { "docid": "a8e807cf0efebbe19021a7d0e22ca217", "score": "0.63104683", "text": "public function executeQuery();", "title": "" }, { "docid": "d5513e16dd1dd08def65ba73afb7e1ec", "score": "0.6250451", "text": "public function executedQuery();", "title": "" }, { "docid": "d5fae8d4b658bf69f4bbf9640f09ef22", "score": "0.6210794", "text": "public function logSql() {\n\t\t\tif (Configure::read('debug') < 2) {\n\t\t\t\ttrigger_error('You must set debug level to at least 2 to enable SQL-logging',\n\t\t\t\t\tE_USER_NOTICE);\n\t\t\t}\n\t\t\t$dbo = $this->getDatasource();\n\t\t\t$logs = $dbo->getLog();\n\t\t\t$this->log($logs['log']);\n\t\t}", "title": "" }, { "docid": "d1e1542a14865fa245510d25c4aaf441", "score": "0.6161419", "text": "static function sqlAction( &$hCtx, $stQry, $fLog = true ) {\n\n\t$fRet = $hCtx->sqlAction( $stQry, $fLog );\n\n\treturn $fRet;\n}", "title": "" }, { "docid": "a0ccd8a6d48152df0eb32d3e915e8bab", "score": "0.6101112", "text": "public function execSQL()\n {\n try {\n #$sql = mysql_real_escape_string($this->prepSQL);\n $sql = $this->prepSQL;\n $this->qry = parent::prepare($sql);\n $this->qry->execute($this->tableFields);\n $opKey = strtolower(strstr(ltrim($this->prepSQL), ' ', true));\n switch($opKey) {\n case 'insert':\n $this->resultMsg= ['status'=>'success', 'action'=>'insert', 'lastid'=>parent::lastInsertId()];\n break;\n case 'update':\n $this->resultMsg = ['status'=>'success', 'action'=>'update', 'affected_rows'=>$count];\n break;\n }\n return $result;\n } catch (Exception $e) {\n $this->errorCatch($e, $sql);\n }\n }", "title": "" }, { "docid": "7cbcabd8159a897762bc5f07dc9f8007", "score": "0.6085975", "text": "function execute() { $this->doQuery();\n }", "title": "" }, { "docid": "f55ba9d30a2d0b32c3b9c5ef13efbcc4", "score": "0.6079563", "text": "public function execute() {\n \t\t\n \t\t$start = microtime(true);\n\t\t\t$check_result = ($result = parent::execute()) ? TRUE : FALSE;\n \t\t$time = microtime(true) - $start; \t\t\n \t\t$error = parent::errorInfo();\t\t\t\n\t\t\t\n\t\t\tif(is_int(stripos($this->getSQL(), 'SELECT ')) && stripos($this->getSQL(), 'SELECT ') < 5) $type = 'query';\n\t\t\telseif(is_int(stripos($this->getSQL(), 'UPDATE ')) && stripos($this->getSQL(), 'UPDATE ') < 5) $type = 'modify';\n\t\t\telseif(is_int(stripos($this->getSQL(), 'INSERT ')) && stripos($this->getSQL(), 'INSERT ') < 5) $type = 'add';\n\t\t\telseif(is_int(stripos($this->getSQL(), 'DELETE ')) && stripos($this->getSQL(), 'DELETE ') < 5) $type = 'delete';\n\t\t\t\n \t\tMyPDO::$log[] = array('query' => $this->getSQL(),\n \t\t\t\t \t\t\t\t'time' => round($time * 1000, 3),\n \t\t\t\t\t\t\t\t'line' => $this->LineNumber,\n \t\t\t\t\t\t\t\t'file' => basename($this->File),\n\t\t\t\t\t\t\t\t\t'type' => $type,\n \t\t\t\t\t\t\t\t'file' => basename($file),\n\t\t\t\t\t\t\t\t\t'result' => $check_result,\n \t\t\t\t\t\t\t\t'error' => $error);\n \t\treturn $result;\n \t}", "title": "" }, { "docid": "32ba5b8e55b7f346619371eeb76417d5", "score": "0.6050251", "text": "public function runSqlQuery($sqlQuery);", "title": "" }, { "docid": "e4aa24a70f14ad2a7427f064d52c1815", "score": "0.597206", "text": "public function execSQL($StQuery) {\n $this->RsResult = $this->ObjConnection->query($StQuery);\n if( $this->RsResult === false ) {\n throw new ErrorHandler(EXC_DB_EXEC . ' Detalhes:' . $this->ObjConnection->error . '<br>' . $StQuery);\n }\n }", "title": "" }, { "docid": "8f6ce8d46ee795e830d7771eaf8fe292", "score": "0.5941198", "text": "public function main() {\n\t\t$this->execute();\n\t}", "title": "" }, { "docid": "d96ca66e60a8f668e27f374f6293645e", "score": "0.5931067", "text": "public function exec($sql, \\JobRouter\\Log\\LogInfoInterface $logInfoInterface, $loggingEnabled=true);", "title": "" }, { "docid": "10b9172b92a1a4d9e45468a6b43b0682", "score": "0.59254414", "text": "function SQLLogs($table='',$idtable='',$action='', $query='', $desc='', $iduser=''){\n\tif(!empty($table)){\n\t\t$timestamp = date('Y-m-d H:i:s');\n\t\t$query=addslashes($query);\n\t\t$tbl_logs = \"admin_logs_vnm2014\";\n\t\t$Sql = \"INSERT INTO $tbl_logs SET\n\t\t\t\ttablename='$table',\n\t\t\t\tid_table='$idtable',\n\t\t\t\taccion='$action',\n\t\t\t\tquery='$query',\n\t\t\t\ttxt='$desc',\n\t\t\t\ttimestamp='$timestamp',\n\t\t\t\tid_usuario='$iduser';\";\t\t\t\n\t\t$Link=SQLLink();\n\t\t$Con=mysql_query($Sql, $Link)or die(\"Error en Tbl Logs: \".mysql_error());\n\t}else{return \"Error al grabar logs en $tbl_logs\";}\n}", "title": "" }, { "docid": "59dd3b402d6805dc95a5db9e1015b2e7", "score": "0.5868218", "text": "public abstract function exec($sql);", "title": "" }, { "docid": "281e68941a210d71026925329035177a", "score": "0.5866354", "text": "public function execute_query(){\n\t\ttry\n {\n\t\t\t$rs=$this->hookUp->query($this->query);\n //UniversalConnect::doconnet();\n\t\t\treturn array('success'=>true);\n\t\t}catch(PDOException $e){\n\t\t\t //mail('james2yiga@gmail.com','Query failure occured',$e->getMessage());\n\t\t\treturn array('msg'=>$e->getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "1d57635ba6a8530229f2707f1071b0e3", "score": "0.5851606", "text": "function sec_log($sql)\n{\n $sql = strip_tags(trim(preg_replace(\"/(from|select|insert|delete|where|drop table|show tables|,|'|#|\\*|--|\\\\\\\\)/i\",\"\",$sql)));\n if(!get_magic_quotes_gpc())\n $sql = addslashes($sql);\n return $sql;\n}", "title": "" }, { "docid": "3851d11fbfb651e2ad26fc245247755e", "score": "0.5835568", "text": "function execQuery($query) {\n $result = SqlWrapper::getInstance()->sql_query($query);\n if (!$result) {\n echo \"<span style='color:red'>ERROR: Query FAILED $query</span>\";\n exit;\n }\n return $result;\n}", "title": "" }, { "docid": "234407d4a502226d024a711e508a9b12", "score": "0.580668", "text": "public function run()\n {\n $sql = \"INSERT INTO empsdata\"\n . \" SELECT \n 0 as `id`,\n 1 as `grp`,\n ed_emp as `empid`,\n c_id as `code`,\n ed_inst as `ref`,\n ed_year as `yr`,\n ed_instt as `name`,\n ed_rem as `rem`,\n ed_place as `loc`,\n ed_grd as `grd`,\n 1 as `state`,\n 5 as `CREATED_BY`,\n now() as `CREATED_AT`,\n 5 as `UPDATED_BY`,\n now() as `UPDATED_AT`,\n ed_id as `oid`\n FROM admin_hctdb.hr_emp_edu\n LEFT JOIN (select * from admin_hctdb.tbcommon where c_parent = 3224 ) as cm ON c_code = ed_level\n ORDER BY ed_id;\";\n\n DB::statement($sql);\n }", "title": "" }, { "docid": "1f0ab3258fa818f1d578c01b3185a6b8", "score": "0.57933956", "text": "public function exec($query){\n throw new \\Exception('Could not start Transaction: not implemented');}", "title": "" }, { "docid": "e365b29b41a7f8d1e0267b3cd4142de4", "score": "0.5774078", "text": "protected function prlog() {\n //$log = $this->->getDataSource()->getLog(false, false);\n //debug($log);\n $db = & ConnectionManager::getDataSource('default');\n $db->showLog();\n die;\n }", "title": "" }, { "docid": "164e0d965c8bdb3d2eec6171661c078e", "score": "0.5758116", "text": "function SQLExec($Sql=''){\n\tglobal $Usuario;\n\tif(!empty($Sql)){\n\t\t$Cmd=array('INSERT', 'UPDATE', 'DELETE');\n\t\t$vSql=explode(' ',$Sql);\n\t\tif(in_array(strtoupper($vSql[0]),$Cmd)){\n\t\t\t$Link=SQLLink();\n\t\t\t$Con=mysql_query($Sql, $Link)or die(mysql_error());\t\n\t\t\t$Id=mysql_insert_id($Link);\n\t\t\t$TotRows=mysql_affected_rows();\n\t\t\tif($TotRows){\n\t\t\t\t$Result = $TotRows;\t\t\t\t\t\n\t\t\t\t#Identify table in query\n\t\t\t\t$idtable=mysql_insert_id();\n\t\t\t\t$action=strtoupper($vSql[0]);\n\t\t\t\tif($action=='INSERT'){\n\t\t\t\t\t$t=explode('INTO ',strtoupper($Sql));\n\t\t\t\t\t$t2=explode(' ',$t[1]);\n\t\t\t\t\t$table=strtolower($t2[0]);\n\t\t\t\t\t$Result=$Id;\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif($action=='UPDATE'){\n\t\t\t\t\t$t=explode(' ',strtoupper($Sql));\n\t\t\t\t\t$table=strtolower($t[1]);\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif($action=='DELETE'){\n\t\t\t\t\t$t=explode('FROM ',strtoupper($Sql));\n\t\t\t\t\t$t2=explode(' ',$t[1]);\n\t\t\t\t\t$table=strtolower($t2[0]);\n\t\t\t\t}\t\t\n\t\t\t\t$Log=SQLLogs($table,$idtable,$action,$Sql,'',$Usuario['id']);\t\n\t\t\t}else{\n\t\t\t\t$Result = 0;\n\t\t\t}\n\t\t\tmysql_close($Link);\n\t\t}else{$Result = false;}\n\t}else{$Result = false;}\n\treturn $Result;\n}", "title": "" }, { "docid": "aa141f9523aacac3844a8eedf2611649", "score": "0.5753051", "text": "public function execute()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "9699a7bfb6f9569f7ffe609edfeaa985", "score": "0.57431316", "text": "protected function executeEpilog() {}", "title": "" }, { "docid": "f0e06af9f97cc2778a2ab1281242ef18", "score": "0.5738803", "text": "function ExecuteQuery($sql)\n\t{\n\t\t$conn = @new mysqli($this->servername,$this->username,$this->password,$this->dbname);\n\t\n\t\t// Works as of PHP 5.2.9 and 5.3.0.\n\t\tif ($conn->connect_error) {\n\t\t // die('Connect Error: ' . $mysqli->connect_error);\n\t\t UTILS::write_log(mysqli_connect_error());\n\t\t throw new Exception(\"\");\n\t\t}\n\t\telse{\n\t\t\t$result =$conn->query($sql);\n\t\n\t\t\tif(!$result){\n \t\t\t UTILS::write_log(\"SQL ($sql)\");\n\t\t\t\tthrow new Exception(\"\");\n\t\t\t\n\t\t\t}else\n\t\t\t\treturn $conn->insert_id; \n\t\t}\n \n\t}", "title": "" }, { "docid": "04a4665e755238b2851128d49b81a83b", "score": "0.5736565", "text": "public function query($sql, \\JobRouter\\Log\\LogInfoInterface $logInfo, $loggingEnabled=true);", "title": "" }, { "docid": "42c39a00d0118f13a84bbe1fe1f59fec", "score": "0.57287043", "text": "public function execute()\n\t{\n\t\t$this->statement->execute();\n\t}", "title": "" }, { "docid": "9d96059247a85a39df37b261dee58703", "score": "0.5705", "text": "public function execQuery() {\n\t\tif ( $this->debug ) {\n\t\t\t$this->logger->log( \"In Database::execQuery\" );\n\t\t}\n\n\t\t\t// Check if we have a dbConnection\n\n\t\tif ( !isset( $this->dbConn )) {\n\t\t\tthrow new Exception( \"DB not open\" );\n\n\t\t\t// Check if we have a query string\n\n\t\t} elseif ( !is_string( $this->query )) {\n\t\t\tthrow new Exception( \"Query is not a string\" );\n\n\t\t} elseif ( !isset( $this->query )) {\n\t\t\tthrow new Exception( \"Query is not set\" );\n\n\t\t} elseif ( $this->query === \"\" ) {\n\t\t\tthrow new Exception( \"Empty query string\" );\n\n\t\t} else {\n\t\t\tif ( $this->debug ) {\n\t\t\t\t$this->logger->log( \"\\$this->query = [$this->query]\", 1 );\n\t\t\t}\n\n\t\t\t\t// Check if a previous result is still active\n\n \t\t\t$this->closeResults();\n \t\t\t\n \t\t\t\t// Check if we must filter the query\n \t\t\t\t\n \t\t\tif ( $this->usePermFilter == true ) {\n \t\t\t\t$this->query\t= $this->addFilterToQuery( $this->query );\n \t\t\t}\n \t\t\t\n\t\t\t\t// Execute the query string\n\n\t\t\t$this->numrows\t= 0;\n\t\t\t$this->success\t= false;\n\t\t\tif ( $this->debug ) {\n\t\t\t\t$this->logger->log( \"executing query...\", 1 );\n\t\t\t}\n\t\t\tif ( $this->result = $this->dbConn->query( $this->query )) {\n\t\t\t\tif ( $this->debug ) {\n\t\t\t\t\t$this->logger->log( \"gettype( \\$this->result ) = [\" . gettype( $this->result ) . \"]\", 1 );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ( is_object( $this->result )) {\n\t\t\t\t\t$this->numrows\t= $this->result->num_rows;\n\t\t\t\t}\n\t\t\t\t$this->success\t= true;\n\n\t\t\t\tif ( $this->debug ) {\n\t\t\t\t\t$this->logger->log( \"\\$this->numrows = [$this->numrows]\", 1 );\n\t\t\t\t\t$this->logger->log( \"\\$this->success = [$this->success]\", 1 );\n\t\t\t\t}\n\n\t\t\t\treturn $this->numrows;\n\t\t\t} else {\n\t\t\t\t$this->errormsg = \"Error: [\" . $this->dbConn->error . \"]\";\n\t\t\t\tthrow new Exception( $this->errormsg );\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "b4984b52343116fff00bf7dade8d8e03", "score": "0.57012737", "text": "abstract public function execute($sql);", "title": "" }, { "docid": "bd1d22485e4bd2af17cc33414cea587f", "score": "0.5698767", "text": "protected function execute()\n {\n $this->statement->execute();\n $this->dispatcher->now('db-query', ['statement' => $this->statement->queryString, 'bindings' => json_encode($this->bindings)]);\n }", "title": "" }, { "docid": "cdd5f421618f3d0ed494b651178c95dd", "score": "0.5691583", "text": "function executeQuery( $sql='' ) {\r\n $rs = new query($GLOBALS['sysdb'],$sql);\r\n\t\t//if ( _DEBUG_SQL ) echo \"executeQuery: $sql <br />\\n\";\r\n return $rs;\r\n }", "title": "" }, { "docid": "5d9ae78194257efc370b931955f88420", "score": "0.56913024", "text": "public function envelopeSql()\n {\n $this->sql = \"SELECT mvc_sql_evelop.* FROM (\" . $this->sql. \") mvc_sql_evelop\";\n }", "title": "" }, { "docid": "71624a26534a434b5fb2a0be240f578e", "score": "0.5670316", "text": "public function log($sql, $params = []);", "title": "" }, { "docid": "64161c01d4d51efb8464c17e5b558692", "score": "0.56694573", "text": "function ExecuteQuery($sqlQuery){\r\n\t\t\r\n\t\t$this->p_query=\"\";\r\n\t\t$this->p_query = $sqlQuery;\r\n\t\t$this->p_numrows=0;\r\n\t\t\r\n\t\t$this->p_result=$this->p_DBConnection->query($this->p_query);\r\n\t\t\r\n\t\tif(!$this->p_result){\r\n\t\t\t\r\n\t\t\t$this->p_ErrorMessage = $this->p_DBConnection->error;\r\n\t\t\t$this->p_ErrorCode = $this->p_DBConnection->errno;\r\n\t\t\treturn;\r\n\t\t\tdie();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t$this->p_lastid = \"\";\r\n\t\t\r\n\t\treturn true;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a21dbd4bf1735e5f04da05cd40cd71b9", "score": "0.56567925", "text": "public static function test()\n {\n $sql = \\DB::getQueryLog();\n echo \"<pre>\";\n print_r($sql);\n echo \"</pre>\";\n die(\"here\");\n }", "title": "" }, { "docid": "b855fe907cca6973bb10132aee66c943", "score": "0.562786", "text": "protected function execute_single_query() {\n$this->open_connection();\n$this->conn->query($this->query) or die($this->conn->error.__LINE__);\n$this->close_connection();\n}", "title": "" }, { "docid": "d3f7c323340e02d0cc7fefc6759bb004", "score": "0.5626489", "text": "public function testQuery(){\n\t\t$this->pdo->dbConn();\n\t\t$sql=$this->pdo->prepare($this->mainQuery);\n\t\ttry{\n\t\t\t$sql->execute();\n\t\t} catch (Exception $e){\n\t\t\t$this->error->errorDisplay($this->mainQuery,$objName,$e->getMessage(),\"Could not execute query. <b>If the problem persists please contact the administrator!</b> <a href=javascript:window.close()>Return to main menu</a>\");\n\t\t\t\n\t\t\t/*echo \"<script type='text/javascript'>\";\n\t\t\techo \"alert('Could not execute query! Please view the help file to build an appropriate query');\";\n\t\t\techo \"window.close();\";\n\t\t\techo \"</script>\";*/\n\t\t}\n\t}", "title": "" }, { "docid": "7ad59540a6fd352dbac8dc9b39ca093b", "score": "0.5621784", "text": "public function customExec($sql)\n {\n if(APP_MODE == 'demo'){\n exit(CrypticBrain::t('core', 'This operation is blocked in Demo Mode. <a href=\"{base_url}\">Back to site</a>', array('{base_url}'=>CrypticBrain::app()->getRequest()->getBaseUrl())));\n }\n\n try{\n $result = $this->exec($sql);\n }catch(PDOException $e){\n $this->_errorLog('customExec [database.php, ln.:'.$e->getLine().']', $e->getMessage().' => '.$sql);\n $result = false;\n }\n\n CDebug::addMessage('queries', ++self::$count.'. query | '.CrypticBrain::t('core', 'total').': '.(($result) ? $result : '0 (<b>error</b>)'), $sql);\n return $result;\n }", "title": "" }, { "docid": "cbd489d902b5663f497ec3220ff724c3", "score": "0.5620616", "text": "public static function query_log() {\n\t\tforeach(Database::$benchmarks as $b) {\n\t\t\tif(strrpos($b['query'],'/* IGNORE */')!==FALSE) continue;\n\t\t\t$sql = str_replace(array(\"\\n\",\"\\t\"),' ',$b['query']);\n\t\t\terrorln(\"{$sql}\\n\\t#Time: {$b['time']} Rows: {$b['rows']}\");\n\t\t}\n\t}", "title": "" }, { "docid": "98bdbff5c751c95bf501c61078aa6545", "score": "0.56206036", "text": "abstract public function runQuery();", "title": "" }, { "docid": "db349a1c024b427c880f0281776f315b", "score": "0.5619027", "text": "abstract protected function execute_query($sql);", "title": "" }, { "docid": "dec444fba886aad4bf73c2930a7f0213", "score": "0.5608283", "text": "function db_execute($query, $file_line_query = \"\"){\n global $user_id;\n $back_track = debug_backtrace();\n $caller = array_shift($back_track);\n\t\t$dbinit = new db_init();\n $this->links = @mysql_pconnect($dbinit->server, $dbinit->username, $dbinit->passworddb);\n\n\t\t@mysql_select_db($dbinit->database);\n\t\t@mysql_query(\"SET NAMES 'utf8'\");\n\t\t@mysql_query($query);\n\n\t\t//kiem tra thanh cong hay chua\n\t\t$this->total = @mysql_affected_rows();\n\n\t\t//neu ket qua query thuc thi khong thanh cong tru truong hop insert ignore\n\t\tif($this->total < 0 && strpos($query, \"IGNORE\") === false ){\n\t\t\t$error = @mysql_error($this->links);\n\t\t\t@mysql_close($this->links);\n //ghi log\n\t\t\t$dbinit->log($dbinit->path_query_execute , \"error_sql\", \"File : \" . (isset($caller['file']) ? $caller['file'] : '') . \" line: \" . (isset($caller['line']) ? $caller['line'] : '') . \" \" . $error . \"\\n\" . $query);\n\t\t}\n\t\t@mysql_close($this->links);\n\n\t\t//ghi query ra log de kiem tra\n\t\t$dbinit->debug_query($query, $file_line_query);\n\t\tunset($dbinit);\n\t}", "title": "" }, { "docid": "be741017f66077d01c53dd79d75d2644", "score": "0.5598925", "text": "function executePlainSQL($cmdstr) {\n //echo ('<div class=\"card container text-center\" ><div class=\"card-body\"><h5>running \".$cmdstr.\"</h5></div></div>');\n global $db_conn, $success;\n $statement = OCIParse($db_conn, $cmdstr); //There is a set of comments at the end of the file that describe some of the OCI specific functions and how they work\n\n if (!$statement) {\n //echo \"<br>Cannot parse the following command: \" . $cmdstr . \"<br>\";\n $e = OCI_Error($db_conn); // For OCIParse errors pass the\n // connection handle\n echo ('<div class=\"card container text-center\" ><div class=\"card-body\"><h5>'.htmlentities($e['message']).'</h5></div></div>');\n $success = False;\n }\n\n $r = OCIExecute($statement, OCI_DEFAULT);\n\n if (!$r) {\n // echo \"<div class='card'><br>Cannot execute the following command: \" . $cmdstr . \"<br></div>\";\n echo ('<div class=\"card container text-center\" ><div class=\"card-body\"><h5>Cannot execute the following command:'.$cmdstr.'</h5></div></div>');\n $e = oci_error($statement); // For OCIExecute errors pass the statementhandle\n echo ('<div class=\"card container text-center\" ><div class=\"card-body\"><h5>'.htmlentities($e['message']).'</h5></div></div>');\n $success = False;\n } else {\n\n }\n return $statement;\n\n }", "title": "" }, { "docid": "b16e950e32eac8c98dfaae2c8b00c45e", "score": "0.55986184", "text": "function executeSQL( $sql='' ) {\r\n if(is_object($GLOBALS['sysdb'])){\r\n if ($result = @mysql_query($sql, $GLOBALS['sysdb']->connect_id)) {\r\n @mysql_free_result($result);\r\n\t\tif ( _DEBUG_SQL ) {\r\n\t\t\tif (isset($GLOBALS['fire'])) {\r\n\t\t\t\tif ( eregi('^select',$sql) ) {\r\n\t\t\t\t\t$GLOBALS['fire']->info($sql);\r\n\t\t\t\t} elseif ( eregi('^insert',$sql) ) {\r\n\t\t\t\t\t$GLOBALS['fire']->warn($sql);\r\n\t\t\t\t} elseif ( eregi('^delete',$sql) ) {\r\n\t\t\t\t\t$GLOBALS['fire']->error($sql);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$GLOBALS['fire']->warn($sql);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\techo '<pre style=\"padding:4px;';\r\n\t\t\t\tif ( eregi('^select',$sql) ) {\r\n\t\t\t\t\techo 'border:1px solid blue;background-color:#ccccff;';\r\n\t\t\t\t} elseif ( eregi('^insert',$sql) ) {\r\n\t\t\t\t\techo 'border:1px solid green;background-color:#ccffff;';\r\n\t\t\t\t} elseif ( eregi('^delete',$sql) ) {\r\n\t\t\t\t\techo 'border:1px solid red;background-color:#ffcccc;';\r\n\t\t\t\t} else {\r\n\t\t\t\t\techo 'border:1px solid black;background-color:#cccccc;';\r\n\t\t\t\t}\r\n\t\t\t\techo \"\\\">$sql</pre>\";\r\n\t\t\t}\r\n\t\t}\r\n return TRUE;\r\n }\r\n }\r\n return FALSE;\r\n }", "title": "" }, { "docid": "5de2cda7c2cfd25fdfef1fe58e9f1b3e", "score": "0.5596231", "text": "function setQuery($sql){}", "title": "" }, { "docid": "419f2279e69c98eed818177c2877ca46", "score": "0.55951077", "text": "protected function executeSQuery(){\n\t\tif($_POST || $_GET){\n\t\t\t$this->openConnection();\n\t\t\tpg_query($this->conn, $this->query) or $this->msj ='<div class=\"alert alert-danger\">\n <strong>La consulta fallo! </strong>' . pg_last_error() . '</div>';\n\t\t\t$this->closeConnection();\n\t\t}\n\t\telse{\n\t\t\t$this->msj = 'Metodo no permitido';\n\t\t}\n\t}", "title": "" }, { "docid": "ab2e313dda52f15de9a6c9111c820785", "score": "0.55938435", "text": "public function executeFull(){\n\t\t$writer = new \\Zend\\Log\\Writer\\Stream(BP . '/var/log/practice_indexer.log');\n\t\t$logger = new \\Zend\\Log\\Logger();\n\t\t$logger->addWriter($writer);\n\t\t$logger->info('executeFull method run');\n\n\t}", "title": "" }, { "docid": "cdb76bcaf9f56065306114ccb0cd0044", "score": "0.55846816", "text": "public function execQuery($sql,array $parameters=array());", "title": "" }, { "docid": "b8129117e2ce011b5f28b57e8c976d08", "score": "0.5580014", "text": "function db_exec( $SQL, $param=array() ){\n\t$cid=db_open();\n\t$cid->beginTransaction();\n\t$res = $cid->prepare( $SQL );\n\tif( ( false === $res ) || ( false === $res->execute( $param ) ) ) {\n\t\techo( $SQL.\"<br>\\n\");\n\t\tprint_r( $cid->errorInfo() );\n\t\t$cid->rollback();\n\t } else {\n\t\t$cid->commit();\n\t}\n\treturn $res->fetchAll();\n}", "title": "" }, { "docid": "4fc1a6af479647381f69f684740e4098", "score": "0.5573799", "text": "private function exec_query($sql) {\n\t\tif (DEBUG_MODE == 1) {\n\t\t\techo $sql.'<br />';\n\t\t}\n\n\t\t// Execute the query\n\t\t$results = $this->_db_link->query($sql);\n\n\t\t// Reset the class variables\n\t\t$this->reset();\n\n\t\t// Return the results\n\t\treturn $results;\n\t}", "title": "" }, { "docid": "d75ed1e9921280943d8fc04af39504e4", "score": "0.5563472", "text": "function log_update($sql){\n db(\"insert into partner_updates (upd_sql) values('\".db_escape($sql).\"')\");\n}", "title": "" }, { "docid": "c178500e57fe0dea369d463bf966e39b", "score": "0.5563137", "text": "public function executeInsert($sqlQuery);", "title": "" }, { "docid": "0763b4dee185aecb60ed618bb61d56d3", "score": "0.55610496", "text": "public static function logSQLQuery($sqlStatement, $params);", "title": "" }, { "docid": "5fd29714cff222644b6b7e337ea0b297", "score": "0.55497074", "text": "public function executeRow($id){\n\t\t$writer = new \\Zend\\Log\\Writer\\Stream(BP . '/var/log/practice_indexer.log');\n\t\t$logger = new \\Zend\\Log\\Logger();\n\t\t$logger->addWriter($writer);\n\t\t$logger->info('executeList method run'.$id);\n\t}", "title": "" }, { "docid": "33dc1fd0d8a892e9f4d1c6b959d3de6d", "score": "0.55370086", "text": "public function EjecutarSP($sql)\n { \n $data=$this->db->prepare($sql); \n $data->execute(); \n \n }", "title": "" }, { "docid": "7112cb504bf89c3f8ee0757e6095ce5f", "score": "0.5531936", "text": "protected function sqlInit(){ }", "title": "" }, { "docid": "0d467adc8441d14a6899023cb6649566", "score": "0.55269825", "text": "function executeSavedQuery()\n {\n if($this->connectionOpen)\n {\n $lresult = $this->connection->query($this->queryString) \n or $this->throwError(\"There was an error while querying the database. [executeStoredQuery($this->queryString);] [\".$this->connection->error.\"]\", \"x\", $this->dieAfterError);\n $this->lastResult = $lresult;\n }\n else\n $this->throwError(\"ERROR, the connection seams to be closed. Run connect() or reconnect() to make a connection\", \"x\", $this->dieAfterError);\n }", "title": "" }, { "docid": "b2e439114cb408d44a345aeda126b4bb", "score": "0.55184937", "text": "public function executeMultiple($sql)\n {\n\n }", "title": "" }, { "docid": "b2e439114cb408d44a345aeda126b4bb", "score": "0.55184937", "text": "public function executeMultiple($sql)\n {\n\n }", "title": "" }, { "docid": "43949b2e7670d07938bd212379b60692", "score": "0.551847", "text": "function logging($act=null){\n $mdbLog = MDB2::factory(DSN);\n\t\t$mdbLog->setFetchMode(MDB2_FETCHMODE_ASSOC);\n\t if(LOGGING == \"monthly\" || LOGGING == \"all\"){\n\t $strTable = (LOGGING==\"monthly\"?LOGGING_PREFIX.date(\"Ym\"):LOGGING_PREFIX.\"all\");\n\t $_query = \"SHOW TABLES FROM db_bcms LIKE '\".$strTable.\"'\";\n\t $res = $mdbLog->queryAll($_query);\n\t if (PEAR::isError($res)) die($res->getMessage());\n\n\t if(count($res)==\"0\"){ // create table\n\t $_create = \"\n\t CREATE TABLE `\".$strTable.\"` (\n `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,\n `login` VARCHAR( 20 ) NOT NULL ,\n `datetime` DATETIME NOT NULL ,\n `ip` VARCHAR( 20 ) NOT NULL ,\n `query` TEXT NOT NULL,\n INDEX ( `login` , `ip` ) )\n\t \";\n\t $res = $mdbLog->exec($_create);\n\t if (PEAR::isError($res)) die($res->getMessage());\n\t }\n\t \n\t $_insert = \"INSERT INTO \".$strTable.\"(`id`,`login`,`datetime`,`ip`,`query`) VALUES(\n\t '','\".$_SESSION[\"login\"].\"',NOW(),'\".$_SERVER[\"REMOTE_ADDR\"].\"','\".$act.\"') \";\n\t $res = $mdbLog->exec($_insert);\n\t if (PEAR::isError($res)) die($res->getMessage());\n\t }\n\t $mdbLog->disconnect();\n\t}", "title": "" }, { "docid": "8cce65ff931d0c13183a22bd69fe1577", "score": "0.5505334", "text": "function db2xls_query()\r\n {\r\n $this->db2xlsWriter();\r\n }", "title": "" }, { "docid": "38f14222bc4b6b6870c5ed6e064ec03f", "score": "0.55000246", "text": "public function run()\n {\n //\n DB::table('login_log')->insert([\n \t['user_id'=>1,'login_time'=>time()],\n \t['user_id'=>2,'login_time'=>time()],\n \t['user_id'=>3,'login_time'=>time()],\n \t['user_id'=>4,'login_time'=>time()],\n \t['user_id'=>5,'login_time'=>time()],\n \n ]);\n }", "title": "" }, { "docid": "5818aa311dc093e75e627cf252b04a47", "score": "0.549917", "text": "public function Locktable()\r\n{\r\n$objConfig=new Config();//Connects database\r\n$Available=false;\r\n$rowCommitted=0;\r\n$colUpdated=0;\r\n$updateList=\"\";\r\n$sql=\" select count(*) from locktable\";\r\n$result=mysql_query($sql);\r\n$row=mysql_fetch_array($result);\r\nif (strlen($row[0])>0)\r\n$this->recordCount=$row[0];\r\nelse\r\n$this->recordCount=0;\r\n$this->condString=\"1=1\";\r\n}", "title": "" }, { "docid": "f95ceea07db6226b4b6f531b9c6c0ddf", "score": "0.5497009", "text": "private function logToDB()\n {\n\n //insert the info into the database, don't allow logging of any error\n $this->DB->insert(\"logger.logs\",$this->logData,null,1);\n \n }", "title": "" }, { "docid": "caa02d4f283a198b97400ef5ad21c7bf", "score": "0.54951334", "text": "function dbg_db($msg){\n global $debug_db,$debug_log;\n\n if($debug_db){\n if(!$debug_log) print(\"<p><b>query:</b><br/>\".$msg.\"</p>\"); \n else accum_file($debug_log,$msg.\"\\n\");\n }\n }", "title": "" }, { "docid": "7d8e761d8ec8968f09205dabcdd5a59c", "score": "0.5494948", "text": "function DB_query($SQL,\n &$Conn,\n $ErrorMessage = '',\n $DebugMessage = '',\n $Transaction = false,\n $TrapErrors = false,\n $Line = '') {\n\n global $debug;\n global $PathPrefix; //\n global $db;\n\n $Linea = \"\";\n if ($Line != '') {\n $Linea = \"| Linea: \" . $Line;\n }\n \n // if (empty($_SESSION['UserID'])){\n // $_SESSION['UserID']= \"admin\";\n // }\n \n if (empty($_SESSION['DefaultDateFormat'])){\n $_SESSION['DefaultDateFormat'] = \"d/m/Y\";\n }\n\n $SQLSuser = $SQL;\n $SQL = \"/*\" . $_SESSION['UserID'] . \":(\" . $_SERVER['PHP_SELF'] . \") \" . $Linea . \" */ \" . $SQL;\n $result = mysqli_query($Conn, $SQL);\n $_SESSION['LastInsertId'] = mysqli_insert_id($Conn);\n\n if ($DebugMessage == '') {\n $DebugMessage = _('El SQL que fallo fue');\n }\n $debug = 1;\n if (DB_error_no($Conn) != 0) {\n $SQLerror = $SQL;\n\n if ($TrapErrors) {\n require_once $PathPrefix . 'includes/header.inc';\n }\n if ($Transaction) {\n\n $SQL = 'ROLLBACK';\n $Result = DB_query($SQL, $Conn);\n\n }\n\n $AuditSQL = \"INSERT INTO auditerrorlog (transactiondate,\n userid,\n querystring)\n VALUES('\" . Date('Y-m-d H:i:s') . \"',\n '\" . trim($_SESSION['UserID']) . \"',\n '\" . DB_escape_string($SQLerror, $Conn) . \"')\";\n $AuditResult = mysqli_query($Conn, $AuditSQL);\n\n } elseif (isset($_SESSION['MonthsAuditTrail']) and (DB_error_no($Conn) == 0 and $_SESSION['MonthsAuditTrail'] > 0)) {\n\n $SQLArray = explode(' ', $SQLSuser);\n\n if (($SQLArray[0] == 'INSERT')\n or ($SQLArray[0] == 'UPDATE')\n or ($SQLArray[0] == 'DELETE')) {\n\n if ($SQLArray[2] != 'audittrail' and $SQLArray[1] != 'systypescusttrans' and $SQLArray[1] != 'sysDocumentIndex' and $SQLArray[1] != 'systypesinvtrans' and $SQLArray[1] != 'systypesinvoice') {\n // to ensure the auto delete of audit trail history is not logged\n $AuditSQL = \"INSERT INTO audittrail (transactiondate,\n userid,\n querystring)\n VALUES('\" . Date('Y-m-d H:i:s') . \"',\n '\" . trim($_SESSION['UserID']) . \"',\n '\" . DB_escape_string($SQL, $Conn) . \"')\";\n if ($_SESSION['UserID'] == \"desarrollo\") {\n //echo $AuditSQL;\n }\n $AuditResult = mysqli_query($Conn, $AuditSQL);\n }\n //\n if ($SQLArray[0] == 'INSERT') {\n if (strpos(strtoupper($SQL), 'GLTRANS') > 0) {\n $AuditSQL = \"INSERT INTO gltrans_user (id, userid, thisSQL,origtrandategl)\n VALUES(\" . $_SESSION['LastInsertId'] . \",\n '\" . trim($_SESSION['UserID']) . \"',\n '\" . DB_escape_string($SQL, $Conn) . \"',now())\";\n\n $AuditResult = mysqli_query($Conn, $AuditSQL);\n } else if (strpos(strtoupper($SQL), 'STOCKMOVES') > 0) {\n $AuditSQL = \"INSERT INTO stockmoves_user (id, userid, thisSQL,origtrandategl)\n VALUES(\" . $_SESSION['LastInsertId'] . \",\n '\" . trim($_SESSION['UserID']) . \"',\n '\" . DB_escape_string($SQL, $Conn) . \"',now())\";\n\n $AuditResult = mysqli_query($Conn, $AuditSQL);\n }\n }\n }\n }\n return $result;\n\n}", "title": "" }, { "docid": "9c528c8bf540cea06f383ca1a7cdeec2", "score": "0.5489285", "text": "public function doQuery($sql) {\n\n //echo $sql.\"<br>\";\n //exit();\n $this->results = $this->connection->prepare($sql);\n $this->results->execute();\n $this->numRows = $this->results->rowCount();\n }", "title": "" }, { "docid": "b546b5ce958763d6f3a88d7d550d267c", "score": "0.5488852", "text": "function logQueries() {\n $CI = & get_instance();\n \n $times = $CI->db->query_times; // Get execution time of all the queries executed by controller\n foreach ($CI->db->queries as $key => $query) {\n $data = array(\n 'FROM_LOG' => 'HOOK',\n 'IP_LOG' => $CI->input->ip_address(),\n 'PATH_LOG' => $CI->router->directory,\n 'CONTROLLER_LOG' => $CI->router->class,\n 'METHOD_LOG' => $CI->router->method,\n 'SESSION_LOG' => json_encode($CI->session->all_userdata()),\n 'QUERY_LOG' => $query,\n 'EXECUTION_TIME_LOG' => $times[$key]\n );\n $CI->db->insert('gen_log', $data);\n }\n }", "title": "" }, { "docid": "addf6ac520ed95031425ae31dcb2baed", "score": "0.54775167", "text": "function doSQL($sql) {\n\t\t\t\ttry {\n\t\t\t\t\t\t$this->dbConnect();\n\t\t\t\t\t\tif(DEBUG_MODE)\n\t\t\t\t\t\t$rst=mysql_query($sql) or die(mysql_error().\": \".$sql);\n\t\t\t\t\t\telse $rst=mysql_query($sql) or die(\"Query has error\");\n\n\t\t\t\t\t\treturn $rst;\n\t\t\t\t}catch (Exception $ex) {\n\n\t\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "11c2a75f363ffa0465e820856003f0f0", "score": "0.54740393", "text": "public function exec($statement) \n\t{\n\t\t$startTime = microtime(true);\n\t\t$result = parent::exec($statement);\n\t\t$totalTime = microtime(true) - $startTime;\n\t\t\n\t\t$this->logs[] = [\n\t\t\t\"sql\" => $statement,\n\t\t\t\"totalTime\" => $totalTime\n\t\t];\n\t\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "dc21fad088d42d4a4ef54a00cf43c7f9", "score": "0.5470995", "text": "public function executeUpdate($sqlQuery);", "title": "" }, { "docid": "170c5040e91c944405dbafdaa3b2cba1", "score": "0.5470423", "text": "function& dbExecute($query)\r\n\t{\r\n\t\t$insertID = -999999;\r\n\r\n\t\t$connection = $this->dbOpen();\r\n\t\t$query = str_replace(\"##\", $this->cfg_db_tableprefix, $query);\r\n\t\t$rs = $connection->Execute($query);\r\n\t\r\n\t\t$ini = strtolower(substr($query, 0, 6));\r\n\t\tif ($ini == \"insert\")\r\n\t\t\t$insertID = $connection->Insert_ID();\r\n\t\t\r\n\t\t$this->dbClose($connection);\r\n\r\n\t\tif (!($insertID == -999999))\r\n\t\t\treturn $insertID;\r\n\t}", "title": "" }, { "docid": "4c2ffaf1002ef7dad2facb299187df32", "score": "0.5466377", "text": "function query($sql, $line = 'Uknown')\r\n {\r\n //if (defined('DEVELOPMENT_MODE') ) echo '<b>Query to execute: </b>'.$sql.'<br /><b>Line: </b>'.$line.'<br />';\r\n\t$res = mysql_db_query($this->dbName, $sql, $this->dbConn);\r\n\tif ( !$res )\r\n\t\t$this->error(mysql_error($this->dbConn), $line);\r\n\treturn $res;\r\n }", "title": "" }, { "docid": "94fb152cbae79c7b222b7ac9cf52fc52", "score": "0.5465709", "text": "function query_p($sql,$accion) {\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\trequire_once 'appconfig.php';\r\n\r\n\t\t$appconfig\t= new appconfig();\r\n\t\t$datos\t\t= $appconfig->conexion();\t\r\n\t\t$hostname\t= $datos['hostname'];\r\n\t\t$database\t= $datos['database'];\r\n\t\t$username\t= $datos['username'];\r\n\t\t$password\t= $datos['password'];\r\n\t\t\r\n\t\t$conex = mysql_connect($hostname,$username,$password) or die (\"no se puede conectar\".mysql_error());\r\n\t\t\r\n\t\tmysql_select_db($database);\r\n\t\t\r\n\t\t $error = 0;\r\n\t\tmysql_query(\"BEGIN\");\r\n\t\t$result=mysql_query($sql,$conex);\r\n\t\tif ($accion && $result) {\r\n\t\t\t$result = mysql_insert_id();\r\n\t\t}\r\n\t\tif(!$result){\r\n\t\t\t$error=1;\r\n\t\t}\r\n\t\tif($error==1){\r\n\t\t\tmysql_query(\"ROLLBACK\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t else{\r\n\t\t\tmysql_query(\"COMMIT\");\r\n\t\t\treturn $result;\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "24a1ac222a080e3243d5550e0ae85936", "score": "0.5462228", "text": "function execSQL($query, $params, $close){\n\tglobal $error_message;\n\tglobal $conn;\n\n\t// LOG\n\tLOG_MSG('DEBUG',\"execSQL(): START\");\n\tLOG_MSG('DEBUG',\" QUERY=[\".$query.\"]\");\n\tLOG_MSG('DEBUG',\" PARAMS\\n[\".print_r($params,true).\"]\");\n\n\n\t$log_query=preg_replace(\"/\\t/\",\" \",$query);\n\t$log_query=preg_replace(\"/\\n/\",\" \",$log_query);\n\t$log_query=preg_replace(\"/[\\s]+/\",\" \",$log_query);\n\tLOG_MSG('INFO',\" QUERY=[$log_query] PARAMS=[\".implode(\"|\",$params).\"]\");\n\n\t// Reset result set before starting\n\t$resp = array(\"STATUS\"=>\"ERROR\");\t// For DMLs\n\t$resp[0]['STATUS']=\"ERROR\";\t\t\t// For Selects\n\t$error_message=\"There was an error proccessing your request. Please check and try again\";\n\n\n\n\t// INIT STATEMENT\n\tif ( !$stmt = mysqli_stmt_init($conn) ) {\n\t\tLOG_MSG('ERROR',\"execSQL(): Error initializing statement: [\".mysqli_errno($conn).\": \".mysqli_error($conn).\"]. \");\n\t\t$resp['SQL_ERROR_CODE']=mysqli_errno($conn);\n\t\treturn $resp;\n\t}\n\tLOG_MSG('DEBUG',\"execSQL():\\t Init query\");\n\n\n\t// PREPARE\n\tif ( !mysqli_stmt_prepare($stmt,$query) ) {\n\t\tLOG_MSG('ERROR',\"execSQL(): Error preparing statement: [\".mysqli_errno($conn).\": \".mysqli_error($conn).\"].\");\n\t\t$resp['SQL_ERROR_CODE']=mysqli_errno($conn);\n\t\treturn $resp;\n\t}\n\tLOG_MSG('DEBUG',\"execSQL():\\t Prepared query\");\n\n\n\t// BIND PARAMS\n\tif ( !empty($params) ) {\n\t\t// Bind input params\n\t\tif (!call_user_func_array(array($stmt, 'bind_param'), refValues($params))) {\n\t\t\tLOG_MSG('ERROR',\"execSQL(): Error binding input params: [\".mysqli_errno($conn).\": \".mysqli_error($conn).\"].\");\n\t\t\t$resp['SQL_ERROR_CODE']=mysqli_errno($conn);\n\t\t\tmysqli_stmt_close($stmt);\t\t\t// Close statement\n\t\t\treturn $resp;\n\t\t}\n\t}\n\tLOG_MSG('DEBUG',\"execSQL():\\t Bound query parameters\");\n\n\n\t// EXECUTE \n\t$qry_exec_time=microtime(true);\n\tif ( isset($_SESSION['admin']['shop']) && get_arg($_SESSION['admin']['shop'],'domain') == DEMO_STORE && $close ) { \n\t\t$status=true;\t\n\t} else {\n\t\t$status=mysqli_stmt_execute($stmt); \n\t}\n\t$qry_exec_time=number_format(microtime(true)-$qry_exec_time,4);\n\n\tif ( !$status ) {\n\t\tLOG_MSG('ERROR',\"execSQL(): Error executing statement: [\".mysqli_errno($conn).\": \".mysqli_error($conn).\"].\");\n\t\t$resp['SQL_ERROR_CODE']=mysqli_errno($conn);\n\t\tmysqli_stmt_close($stmt);\t\t\t// Close statement\n\t\treturn $resp;\n\t}\n\tLOG_MSG('INFO',\" Executed query in $qry_exec_time secs\");\n\n\n\t// DMLs (insert/update/delete)\n\t// If CLOSE, then return no of rows affected\n\tif ($close) {\n\t\tunset($resp[0]);\n\t\t$error_message=\"\";\n\t\t$resp[\"STATUS\"]=\"OK\";\n\t\t$resp[\"EXECUTE_STATUS\"]=$status;\n\t\t$resp[\"NROWS\"]=$conn->affected_rows;\n\t\t$resp[\"INSERT_ID\"]=$conn->insert_id;\n\t\tmysqli_stmt_close($stmt);\t\t\t// Close statement\n\t\tLOG_MSG('INFO',\" Status=[OK] Affected rows [\".$resp['NROWS'].\"]\");\n\t\tLOG_MSG('DEBUG',\"execSQL(): UPDATE/INSERT response:\\n[\".print_r($resp,true).\"]\");\n\t\tLOG_MSG('DEBUG',\"execSQL(): END\");\n\t\treturn $resp;\n\t}\n\n\t// SELECT\n\t$result_set = mysqli_stmt_result_metadata($stmt);\n\twhile ( $field = mysqli_fetch_field($result_set) ) {\n\t\t$parameters[] = &$row[$field->name];\n\t}\n\n\t// BIND OUTPUT\n\tif ( !call_user_func_array(array($stmt, 'bind_result'), refValues($parameters))) {\n\t\tLOG_MSG('ERROR',\"execSQL(): Error binding output params: [\".mysqli_errno($conn).\": \".mysqli_error($conn).\"].\");\n\t\t$resp[0]['SQL_ERROR_CODE']=mysqli_errno($conn);\n\t\tmysqli_free_result($result_set);\t// Close result set\n\t\tmysqli_stmt_close($stmt);\t\t\t// Close statement\n\t\treturn $resp;\n\t}\n\tLOG_MSG('DEBUG',\"execSQL():\\t Bound output parameters\");\n\n\n\t// FETCH DATA\n\t$i=0;\n\twhile ( mysqli_stmt_fetch($stmt) ) { \n\t\t$x = array();\n\t\tforeach( $row as $key => $val ) { \n\t\t\t$x[$key] = $val; \n\t\t}\n\t\t$results[] = $x; \n\t\t$i++;\n\t}\n\t$results[0][\"NROWS\"]=$i;\n\n\t$error_message=\"\";\t\t\t\t\t// Reset Error message\n\t$results[0][\"STATUS\"]=\"OK\";\t\t\t// Reset status\n\tmysqli_free_result($result_set);\t// Close result set\n\tmysqli_stmt_close($stmt);\t\t\t// Close statement\n\n\tLOG_MSG('INFO',\" Status=[OK] Affected rows [\".$results[0]['NROWS'].\"]\");\n\tLOG_MSG('DEBUG',\"execSQL(): SELECT Response:\\n[\".print_r($results[0],true).\"]\");\n\tLOG_MSG('DEBUG',\"execSQL(): END\");\n\n\treturn $results;\n}", "title": "" }, { "docid": "a6d504b6f8386e4b1314c9ed7af06d15", "score": "0.5458114", "text": "private function ExecuteQuery($query = \"\") { \n if($this->dbContext == null) {\n $this->dbContext = new DBConnection();\n }\n return $this->dbContext->ExecuteQuery($query);\n }", "title": "" }, { "docid": "a6d504b6f8386e4b1314c9ed7af06d15", "score": "0.5458114", "text": "private function ExecuteQuery($query = \"\") { \n if($this->dbContext == null) {\n $this->dbContext = new DBConnection();\n }\n return $this->dbContext->ExecuteQuery($query);\n }", "title": "" }, { "docid": "a6d504b6f8386e4b1314c9ed7af06d15", "score": "0.5458114", "text": "private function ExecuteQuery($query = \"\") { \n if($this->dbContext == null) {\n $this->dbContext = new DBConnection();\n }\n return $this->dbContext->ExecuteQuery($query);\n }", "title": "" }, { "docid": "b4bb37a74c3b1be3c1deae79985644b4", "score": "0.54550475", "text": "function store() {\n //$dbo = Db::getInstance();\n $sql = $this->buildQuery();\n $this->db->doQuery($sql);\n }", "title": "" }, { "docid": "c3854cfd28cdacb379fa60a3c2859cfd", "score": "0.5454178", "text": "function executeAQueryManEng($sqlStatement) \r\n{\r\n $serverName = \"DNAENGGSK2\"; \r\n\t$connectionInfo = array( \"Database\"=>\"scan\", \"UID\"=>\"scan_reader\", \"PWD\"=>\"Solut1onst3@m2017\"); \r\n// $serverName = \"GMC10001\\SQLEXPRESS\"; \r\n// $connectionInfo = array( \"Database\"=>\"Ignition_db\", \"UID\"=>\"downtime_log\", \"PWD\"=>\"solutionsteam\"); \r\n\t$conn = sqlsrv_connect( $serverName, $connectionInfo); \r\n\r\n\tif( $conn ) \r\n\t{\r\n\t}\r\n\telse\r\n\t{\r\n\t\techo \" SQL Connection could not be established.<br>\";\r\n\t\tdie( print_r( sqlsrv_errors(), true));\r\n\t}\r\n\r\n if($conn === FALSE)\r\n {\r\n die(print_r(sqlsrv_errors(), TRUE));\r\n }\r\n $rs = GetQueryForMSQLServerReturn($conn, $sqlStatement);\r\n //sqlsrv_free_stmt($rs);\r\n //sqlsrv_close($conn);\r\n return $rs;\r\n}", "title": "" }, { "docid": "0bb65a8a7ac7f4d74fb6f95da4604358", "score": "0.54534507", "text": "function execute() {\n\t\t\n $gesamt = 0;\n $connection = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionByName('Default');\n $statement = $connection->query('SHOW TABLE STATUS');\n \n while ($row = $statement->fetch()) {\n $summe = $row[\"Index_length\"] + $row[\"Data_length\"];\n $gesamt += $summe;\n }\n\n $gesamtMByte = round($gesamt / (1024 * 1024),1);\n\n if($gesamtMByte > $this->getMaxDbSize()){\n $this->sendNotificationEmail($gesamtMByte.' MByte');\n } \n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "7fb8797f530c92ae1bad719ebbbfa8b2", "score": "0.54453474", "text": "public function write()\n {\n echo \"database log write\";\n }", "title": "" }, { "docid": "d55e1f18965d363282e325ea85be49d6", "score": "0.54437894", "text": "public function execute();", "title": "" }, { "docid": "d55e1f18965d363282e325ea85be49d6", "score": "0.54437894", "text": "public function execute();", "title": "" }, { "docid": "d55e1f18965d363282e325ea85be49d6", "score": "0.54437894", "text": "public function execute();", "title": "" }, { "docid": "d55e1f18965d363282e325ea85be49d6", "score": "0.54437894", "text": "public function execute();", "title": "" }, { "docid": "d55e1f18965d363282e325ea85be49d6", "score": "0.54437894", "text": "public function execute();", "title": "" }, { "docid": "d55e1f18965d363282e325ea85be49d6", "score": "0.54437894", "text": "public function execute();", "title": "" }, { "docid": "d55e1f18965d363282e325ea85be49d6", "score": "0.54437894", "text": "public function execute();", "title": "" }, { "docid": "d55e1f18965d363282e325ea85be49d6", "score": "0.54437894", "text": "public function execute();", "title": "" }, { "docid": "d55e1f18965d363282e325ea85be49d6", "score": "0.54437894", "text": "public function execute();", "title": "" }, { "docid": "d55e1f18965d363282e325ea85be49d6", "score": "0.54437894", "text": "public function execute();", "title": "" }, { "docid": "d55e1f18965d363282e325ea85be49d6", "score": "0.54437894", "text": "public function execute();", "title": "" }, { "docid": "d55e1f18965d363282e325ea85be49d6", "score": "0.54437894", "text": "public function execute();", "title": "" }, { "docid": "d55e1f18965d363282e325ea85be49d6", "score": "0.54437894", "text": "public function execute();", "title": "" }, { "docid": "d55e1f18965d363282e325ea85be49d6", "score": "0.54437894", "text": "public function execute();", "title": "" }, { "docid": "d55e1f18965d363282e325ea85be49d6", "score": "0.54437894", "text": "public function execute();", "title": "" }, { "docid": "d55e1f18965d363282e325ea85be49d6", "score": "0.54437894", "text": "public function execute();", "title": "" }, { "docid": "d55e1f18965d363282e325ea85be49d6", "score": "0.54437894", "text": "public function execute();", "title": "" }, { "docid": "ab41163aa3f1e5aa470896afb56e9115", "score": "0.54389787", "text": "public function open_query();", "title": "" }, { "docid": "1d204b8820d2ce85927768850f4bf71f", "score": "0.5423586", "text": "private function dbExecute( $sql ){\r\n\t $res = mysql_query( $this->conn, $sql ) ;\r\n\t return $res ;\r\n\t}", "title": "" } ]
0e09942d6c346a9b4d43f882202025fb
this down() migration is autogenerated, please modify it to your needs
[ { "docid": "1b1e9a96847356164147839f9c043e49", "score": "0.0", "text": "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 modification DROP FOREIGN KEY FK_EF6425D2166D1F9C');\n $this->addSql('ALTER TABLE modification DROP FOREIGN KEY FK_EF6425D27ACB456A');\n $this->addSql('ALTER TABLE project DROP FOREIGN KEY FK_2FB3D0EE7ACB456A');\n $this->addSql('ALTER TABLE modification DROP FOREIGN KEY FK_EF6425D28DB60186');\n $this->addSql('ALTER TABLE task_user DROP FOREIGN KEY FK_FE2042328DB60186');\n $this->addSql('ALTER TABLE modification DROP FOREIGN KEY FK_EF6425D214DDCDEC');\n $this->addSql('ALTER TABLE task DROP FOREIGN KEY FK_527EDB2514DDCDEC');\n $this->addSql('ALTER TABLE modification DROP FOREIGN KEY FK_EF6425D2A76ED395');\n $this->addSql('ALTER TABLE task_user DROP FOREIGN KEY FK_FE204232A76ED395');\n $this->addSql('ALTER TABLE work_team_user DROP FOREIGN KEY FK_3E7A8A67A76ED395');\n $this->addSql('ALTER TABLE modification DROP FOREIGN KEY FK_EF6425D2FCA7608C');\n $this->addSql('ALTER TABLE work_team_user DROP FOREIGN KEY FK_3E7A8A67FCA7608C');\n $this->addSql('DROP TABLE modification');\n $this->addSql('DROP TABLE project');\n $this->addSql('DROP TABLE project_status');\n $this->addSql('DROP TABLE task');\n $this->addSql('DROP TABLE task_user');\n $this->addSql('DROP TABLE task_status');\n $this->addSql('DROP TABLE user');\n $this->addSql('DROP TABLE work_team');\n $this->addSql('DROP TABLE work_team_user');\n }", "title": "" } ]
[ { "docid": "d02727f8d23f0861699c07edd53b33cf", "score": "0.7951184", "text": "public function down()\n {\n //add your migration here \n }", "title": "" }, { "docid": "670546cfcca72d7c3e365e5ca1cc9997", "score": "0.76109326", "text": "public function down(){\n\t\t$this->dbforge->drop_column('lang_id', TRUE);\n\t\t\n\t}", "title": "" }, { "docid": "ee25ba1d73db426b4c5064262ea3d2d5", "score": "0.74867", "text": "public function down()\n\t{\n\t\t// return false;\n\t\t$this->addColumn('pax','arrival_time','datetime');\n\t\t$this->addColumn('pax','departure_time','datetime');\n\t}", "title": "" }, { "docid": "7fb3894f5faf0357b362f9c74b26eb23", "score": "0.7419263", "text": "public function down(){\n\t//\t$this->query($sql);\n\t\t\n\t}", "title": "" }, { "docid": "76d8d61e5da6477462c0799d980d4f5f", "score": "0.735865", "text": "public function\n\tDown() {\n\n\t\t$this->Execute(\"\n\t\tALTER TABLE `LogBlogPostTraffic`\n\t\tDROP COLUMN `SourceURL`,\n\t\tDROP COLUMN `RemoteClient`;\n\t\t\");\n\n\t\treturn;\n\t}", "title": "" }, { "docid": "f7a4865397f82ce9f61f06fa50d83fb5", "score": "0.7327099", "text": "public function down()\n\t{\n\t\t// Answer: The part where you forget reverting migrations\n\t\tDB::query(\"ALTER TABLE `haaletaja`\nDROP INDEX `Eesnimi_Perekonnanimi`,\nDROP INDEX `Eesnimi`;\");\n\t}", "title": "" }, { "docid": "ca2adac2f817a3d825c5490df81ec75e", "score": "0.72907543", "text": "public function down()\n\t{\n\t\tSchema::table('bak', function(Blueprint $table)\n\t\t{\n\t\t\t$table->unsignedInteger('amount');\n\t\t});\n\t}", "title": "" }, { "docid": "f2011c7eef13ff135a92017796c1d80b", "score": "0.7275165", "text": "protected function down() {\n\n }", "title": "" }, { "docid": "f1624626340b0db8029a39841af0ab3a", "score": "0.7229451", "text": "public function down()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "31e0039530d09594fb4e4405726b7eb9", "score": "0.7224483", "text": "public function down()\n\t{\n\t\tSchema::drop('back');\n\t}", "title": "" }, { "docid": "8a8b5836428713b8af6ba4af18b2ae0c", "score": "0.71986675", "text": "public function down()\n\t{\n\t $this->dropForeignKey('FK_article_country','tbl_article');\n\n\t\t$this->dropColumn('tbl_article','countryCode');\n \t \t$this->dropColumn('tbl_price','party_id');\n\t}", "title": "" }, { "docid": "62daddba085ebcd140beb36831bf7caf", "score": "0.7182117", "text": "public function getDownSQL()\n {\n return array (\n 'propel' => '\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 `archivo_calificacion`;\n\n# This restores the fkey checks, after having unset them earlier\nSET FOREIGN_KEY_CHECKS = 1;\n',\n);\n }", "title": "" }, { "docid": "93bde8ebd81a62c975f0b92a3bc21b93", "score": "0.71626407", "text": "public function down(){\n $this->dbforge->drop_table($this->_table_name, TRUE);\n }", "title": "" }, { "docid": "4bdb72b5b930834e4f7607bba307563a", "score": "0.71615183", "text": "public function down() {\n $this->dropForeignKey(\n 'fk-venue-user_uuid', 'venue'\n );\n\n // drops index for column `user_uuid`\n $this->dropIndex(\n 'idx-venue-user_uuid', 'venue'\n );\n\n\n // drops ForeignKey for column `venue_uuid`\n $this->dropForeignKey(\n 'fk-venue-occasion-venue_uuid', 'venue_occasion'\n );\n\n // drops index for column `venue_uuid`\n $this->dropIndex(\n 'idx-venue-occasion-venue_uuid', 'venue_occasion'\n );\n\n // drops ForeignKey for column `occasion_uuid`\n $this->dropForeignKey(\n 'fk-venue-occasion-occasion_uuid', 'venue_occasion'\n );\n\n // drops index for column `occasion_uuid`\n $this->dropIndex(\n 'idx-venue-occasion-occasion_uuid', 'venue_occasion'\n );\n\n\n // drops ForeignKey for column `venue_uuid`\n $this->dropForeignKey(\n 'fk-venue-photo-venue_uuid', 'venue_photo'\n );\n\n // drops index for column `venue_uuid`\n $this->dropIndex(\n 'idx-venue-photo-venue_uuid', 'venue_photo'\n );\n \n // drops ForeignKey for column `user_uuid`\n $this->dropForeignKey(\n 'fk-user_token-user_uuid',\n 'user_token'\n );\n\n // drops index for column `user_uuid`\n $this->dropIndex(\n 'idx-user_token-user_uuid',\n 'user_token'\n );\n\n //Drop all tables\n $this->dropTable('{{%admin}}');\n $this->dropTable('{{%user}}');\n $this->dropTable('{{%user_token}}');\n $this->dropTable('{{%occasion}}');\n $this->dropTable('{{%venue}}');\n $this->dropTable('{{%venue_occasion}}');\n $this->dropTable('{{%venue_photo}}');\n }", "title": "" }, { "docid": "6e5fcc943ae718585688bcd45256722f", "score": "0.7159493", "text": "public function down()\n\t{\n\t\t//\n\t\tSchema::table('users', function($table) {\n\t\t\t$table->drop_column('freelancer');\t\t\t\n\t\t});\t\t\t\t\n\t}", "title": "" }, { "docid": "1d2f9c567442d7e438beba2f6c8a4b83", "score": "0.7144188", "text": "public function down()\n {\n if ($this->getSchema()->hasColumn('forum_items', 'update_time')) {\n $this->getSchema()->table('forum_items', function ($table) {\n $table->dropColumn('update_time');\n });\n }\n if ($this->getSchema()->hasColumn('forum_posts', 'update_time')) {\n $this->getSchema()->table('forum_posts', function ($table) {\n $table->dropColumn('update_time');\n });\n }\n if ($this->getSchema()->hasColumn('forum_threads', 'update_time')) {\n $this->getSchema()->table('forum_threads', function ($table) {\n $table->dropColumn('update_time');\n });\n }\n parent::down();\n }", "title": "" }, { "docid": "1efee00402f7f50e197871bf65f2cea0", "score": "0.7134683", "text": "public function down()\r\n {\r\n \r\n }", "title": "" }, { "docid": "df3b357289dd814f164b91d0c6f80940", "score": "0.7130594", "text": "public function down()\n\t{\n\t\tSchema::drop('student_activity');\n\t\t//\n\t}", "title": "" }, { "docid": "9373f05b18d5af96b8eae13289ece685", "score": "0.7127831", "text": "public function down()\n\t{\n\t\techo $this->migration('down');\n\n\t\tci('o_nav_model')->migration_remove($this->hash());\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "527349615ecb4c3cbd5d1596ef2e98bf", "score": "0.7126462", "text": "public function down()\n\t{\n\t\tSchema::drop('step8');\n\t}", "title": "" }, { "docid": "b87c96f1f3277b1c55909fa7a5d74b57", "score": "0.71242195", "text": "public function down(): void\n\t{\n\t\t$this->getConnection()->query\n\t\t('\n\t\t\tALTER TABLE \"invitations\"\n\t\t\tDROP COLUMN \"archive\"\n\t\t');\n\t}", "title": "" }, { "docid": "68ec92cad31be89ebb3b8d78720c7496", "score": "0.7110125", "text": "public function down()\n {\n $this->dbforge->drop_table(self::table_ems_sub_content);\n }", "title": "" }, { "docid": "ef4c3e7accacc887e810c308032c47d8", "score": "0.7102555", "text": "public function down()\n {\n\n //////////////////////////////////////////////MEDIA LOOKUP\n Schema::dropIfExists('media_lookup_value');\n //////////////////////////////////////////////PROCEDURES ORDER LOOKUP\n Schema::dropIfExists('procedure_orders_lookup_value');\n ///////////////////////////////////////////////IMAGING ORDERS LOOKUP\n Schema::dropIfExists('imaging_orders_lookup_value');\n ///////////////////////////////////////////////LAB ORDERS LOOKUP\n Schema::dropIfExists('lab_orders_lookup_value');\n ////////////////////////////////////////////////DIAGNOSIS LOOKUP\n Schema::dropIfExists('diagnosis_lookup_value');\n /////////////////////////////////////////////////MED LOOKUP\n Schema::dropIfExists('med_lookup_value');\n ////////////////////////////////////////////SECURITY QUESTION USER\n Schema::dropIfExists('security_question_users');\n ///////////////////////////////////////////////SECURITY QUESTION\n Schema::dropIfExists('security_question');\n ////////////////////////////////////////////USERS PATIENT\n Schema::dropIfExists('users_patient');\n ///////////////////////////////////////////////PATIENT RECORD STATUS\n Schema::dropIfExists('patient_record_status');\n /////////////////////////////////////////////USERS\n Schema::dropIfExists('users');\n ///////////////////////////////////////////////DEPARTMENT\n Schema::dropIfExists('department');\n ////////////////////////////////////////////EMAIL ID ROLE\n Schema::dropIfExists('EmailIdRole');\n ////////////////////////////////////////////DOC LOOKUP VALUE\n Schema::dropIfExists('doc_lookup_value');\n ////////////////////////////////////////////////LOOKUP VALUE\n Schema::dropIfExists('lookup_value');\n ///////////////////////////////////////////ACTIVE RECORD\n Schema::dropIfExists('active_record');\n ////////////////////////////////////////////PATIENT\n Schema::dropIfExists('patient');\n ////////////////////////////////////////////MODULES NAVIGATION\n Schema::dropIfExists('modules_navigations');\n ///////////////////////////////////////////////MODULE\n Schema::dropIfExists('module');\n ////////////////////////////////////////////DOC CONTROL\n Schema::dropIfExists('doc_control'); \n ////////////////////////////////////////////////DOC CONTROL TYPE\n Schema::dropIfExists('doc_control_type'); \n ///////////////////////////////////////////////FREE TEXT VALUE TYPE\n Schema::dropIfExists('freetext_value_type'); \n ///////////////////////////////////////////////NAVIGATIONS\n Schema::dropIfExists('navigations');\n ////////////////////////////////////////////CSV DATA\n Schema::dropIfExists('csv_data');\n }", "title": "" }, { "docid": "31741149d9e10e2b3c4f19a63b3d2621", "score": "0.70955634", "text": "public function down()\n {\n Schema::dropIfExists($this->tableName);\n }", "title": "" }, { "docid": "148bd39e31db5fa0e14613e62d03f721", "score": "0.707957", "text": "public function down(){\n $table = $this->table('api_keys');\n $table->changeColumn('expiration_stamp', 'timestamp', array('default'=>'CURRENT_TIMESTAMP'));\n }", "title": "" }, { "docid": "5bd83a40d5aa5a8f7ae290d51c4b2902", "score": "0.70718336", "text": "public function down(){\n\t\tSchema::dropIfExists('sucursal');\n\t}", "title": "" }, { "docid": "bbcf6b41cb64d355cbdcf4f9c6a31928", "score": "0.7067402", "text": "public function down()\n {\n $users = $this->table('users');\n $users->removeColumn('last_action')->update();\n }", "title": "" }, { "docid": "43e6916ecbc5e1484849b153da8e635b", "score": "0.7063566", "text": "public function down()\n {\n $this->getSchema()->dropIfExists('contents');\n parent::down();\n }", "title": "" }, { "docid": "3e2aa3eefa50e366833c22692f2b8f68", "score": "0.70547694", "text": "public function down()\n\t{\n\t}", "title": "" }, { "docid": "3e2aa3eefa50e366833c22692f2b8f68", "score": "0.70547694", "text": "public function down()\n\t{\n\t}", "title": "" }, { "docid": "c62778c7c9626d550931c7ea62aa262c", "score": "0.70525867", "text": "public function down(): void\n {\n }", "title": "" }, { "docid": "59ba5f7aba9166756b78f582abec352c", "score": "0.7049419", "text": "public function down(){\n\t\t$this->dbforge->drop_table('grupos_bandejas_perfiles', TRUE);\n\t\t\n\t}", "title": "" }, { "docid": "43cc1932dcbf62fe141a9e3faffd6b61", "score": "0.70457125", "text": "public function down()\n {\n $this->dropForeignKey(\n 'fk-cabinet-company_id',\n 'cabinet'\n );\n\n // drops index for column `equipment_id`\n $this->dropIndex(\n 'idx-cabinet-company_id',\n 'cabinet'\n );\n\n $this->dropColumn('cabinet', 'company_id');\n\n $this->addColumn('cabinet', 'company_id',\n $this->integer(3)->after('cabinet_name') );\n\n // add foreign key for table `cabinet`\n $this->addForeignKey(\n 'fk-cabinet_company-company_id',\n 'cabinet',\n 'company_id',\n 'company',\n 'id',\n 'CASCADE'\n );\n\n return false;\n }", "title": "" }, { "docid": "b8d04c4d241d7a2ff5d9a369d7d3e1e4", "score": "0.70439786", "text": "public function down()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "c97cc099f89de7424462b220b511d3a3", "score": "0.7025875", "text": "public function down()\n\t{\n\t\tDB::table(\"authors\")->where(\"author_name\", \"=\", \"Brenda\")->delete;\n\t\tDB::table(\"authors\")->where(\"author_name\", \"=\", \"Chucky\")->delete;\n\t}", "title": "" }, { "docid": "24eabc9f1d380808f91460de18d6e8ba", "score": "0.7006435", "text": "public function down()\n\t{\n DB::table('authors')->delete(1);\n DB::table('authors')->delete(2);\n DB::table('authors')->delete(3);\n DB::table('authors')->delete(4);\n DB::table('authors')->delete(5);\n DB::table('authors')->delete(6);\n\t}", "title": "" }, { "docid": "ff10b3945175f617a9db0984fe547495", "score": "0.6996731", "text": "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 `fos_user`;\n\nDROP TABLE IF EXISTS `fos_group`;\n\nDROP TABLE IF EXISTS `fos_user_group`;\n\n# This restores the fkey checks, after having unset them earlier\nSET FOREIGN_KEY_CHECKS = 1;\n',\n);\n }", "title": "" }, { "docid": "0b25e080d5a162254b9f8cbc22c2e22e", "score": "0.6991538", "text": "public function down() {\n //\n Schema::drop('member');\n }", "title": "" }, { "docid": "43e5c660199db2ceac95afdb2cd4863e", "score": "0.69878364", "text": "public function down()\n {\n $this->output->writeln('Down migration is not available.');\n }", "title": "" }, { "docid": "43e5c660199db2ceac95afdb2cd4863e", "score": "0.69878364", "text": "public function down()\n {\n $this->output->writeln('Down migration is not available.');\n }", "title": "" }, { "docid": "ff0aab8cd16920d2de65c56f7f1d7e7e", "score": "0.69870055", "text": "public function down()\n {\n\n }", "title": "" }, { "docid": "4af87ac6eac9a5fbbc2808f0519f42ef", "score": "0.69830793", "text": "public function down()\n {\n Schema::table('history_substances', function (Blueprint $table) {\n $table->string('wheather', 255)->change();\n });\n }", "title": "" }, { "docid": "c67da3f0552348210d59c8dfb886c673", "score": "0.6979364", "text": "public function down()\n\t{\n\t\t// return false;\n\t\t$this->dropTable('booking');\n\t}", "title": "" }, { "docid": "cde547848226ea55ba51772927e4cae5", "score": "0.69780195", "text": "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', 'has_child');\n\t}", "title": "" }, { "docid": "9554c2f7c44de657b04f549fc1b5cde4", "score": "0.69721466", "text": "public function down ()\n {\n }", "title": "" }, { "docid": "88486105a59cdbf9b69d7c1a93274284", "score": "0.696871", "text": "public function down()\n {\n $this->db->createCommand(\"SET foreign_key_checks = 0\")->execute();\n $this->dropTable('{{%property_property_group}}');\n\n $this->dropTable('{{%property_translation}}');\n $this->dropTable('{{%property}}');\n $this->dropTable('{{%property_group_translation}}');\n $this->dropTable('{{%property_group}}');\n\n $this->dropTable('{{%property_storage}}');\n\n $this->dropTable('{{%static_value_translation}}');\n $this->dropTable('{{%static_value}}');\n\n $this->dropTable(ApplicablePropertyModels::tableName());\n $this->dropTable('{{%property_handlers}}');\n $this->db->createCommand(\"SET foreign_key_checks = 1\")->execute();\n }", "title": "" }, { "docid": "81b5d66bdccf100f2bf2fa9a05395a5b", "score": "0.6963282", "text": "public function down()\n {\n $this->dbforge->drop_column('sites', 'home_page');\n\n // Drop column ftp_type from sites table\n $this->dbforge->drop_column('sites', 'ftp_type');\n\n // Drop column favourite from frames table\n $this->dbforge->drop_column('frames', 'favourite');\n\n // Drop column ftp_publish from packages table\n $this->dbforge->drop_column('packages', 'ftp_publish');\n\n // Revert back rows in apps_settings table for Export improvements\n $this->db->query(\"UPDATE `apps_settings` SET `value` = 'elements/bundles|elements/css|images' WHERE id = 9\");\n $this->db->query(\"UPDATE `apps_settings` SET `default_value` = 'elements/bundles|elements/css|images' WHERE id = 9\");\n\n // Drop blocks_categories table\n $this->dbforge->drop_table('blocks_categories', TRUE);\n // Drop blocks table\n $this->dbforge->drop_table('blocks', TRUE);\n // Drop components_categories table\n $this->dbforge->drop_table('components_categories', TRUE);\n // Drop components table\n $this->dbforge->drop_table('components', TRUE);\n // Drop blocks_fav table\n $this->dbforge->drop_table('blocks_fav', TRUE);\n }", "title": "" }, { "docid": "e3786ccb7ec0861918251efe0884f151", "score": "0.6951721", "text": "public function getDownSQL()\n {\n return array (\n 'dofe' => '\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_reports`;\n\nDROP TABLE IF EXISTS `bug_reports`;\n\nALTER TABLE `activities`\n\n DROP `created_at`,\n\n DROP `updated_at`;\n\nALTER TABLE `activity_logs`\n\n DROP `created_at`,\n\n DROP `updated_at`;\n\nALTER TABLE `images`\n\n CHANGE `title` `title` VARCHAR(50);\n\nALTER TABLE `quotes`\n\n DROP `created_at`,\n\n DROP `updated_at`;\n\nALTER TABLE `ratings`\n\n DROP `created_at`,\n\n DROP `updated_at`;\n\n# This restores the fkey checks, after having unset them earlier\nSET FOREIGN_KEY_CHECKS = 1;\n',\n);\n }", "title": "" }, { "docid": "e01a687c3084e1ff7f36d03aa49dcde1", "score": "0.69452184", "text": "public function down()\n {\n $this->getSchema()->dropIfExists('wall_answers');\n parent::down();\n }", "title": "" }, { "docid": "a382150d3161372209d4e845ba9a167b", "score": "0.6944507", "text": "public function down()\n {\n Schema::dropIfExists('tbl_member_datas');\n }", "title": "" }, { "docid": "6f6b2eefebb9987d4597346ca140a225", "score": "0.6944092", "text": "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 eafelements DROP FOREIGN KEY FK_7A30C4C2727ACA70');\n $this->addSql('ALTER TABLE mapping DROP FOREIGN KEY FK_49E62C8AEBAB1181');\n //$this->addSql('ALTER TABLE eafelements DROP FOREIGN KEY FK_7A30C4C2CAE4D54A');\n $this->addSql('ALTER TABLE binaire_evaluation DROP FOREIGN KEY FK_266C1C358E874B23');\n $this->addSql('ALTER TABLE binaire_evaluation DROP FOREIGN KEY FK_266C1C35FC41CAB7');\n $this->addSql('ALTER TABLE eaf_user DROP FOREIGN KEY FK_18D18BEFCAE4D54A');\n $this->addSql('ALTER TABLE evaluation_elements DROP FOREIGN KEY FK_49047E7BA4AEAFEA');\n $this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D649C7DD3230');\n $this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D6493AB49740');\n $this->addSql('ALTER TABLE eaf DROP FOREIGN KEY FK_696A4E52F5186DD6');\n $this->addSql('ALTER TABLE evaluation_elements DROP FOREIGN KEY FK_49047E7B727ACA70');\n // $this->addSql('ALTER TABLE mapping DROP FOREIGN KEY FK_49E62C8AF5186DD6');\n $this->addSql('ALTER TABLE preferences DROP FOREIGN KEY FK_E931A6F58E874B23');\n $this->addSql('ALTER TABLE preferences DROP FOREIGN KEY FK_E931A6F5FC41CAB7');\n //$this->addSql('ALTER TABLE eafelements DROP FOREIGN KEY FK_7A30C4C2C5568CE4');\n $this->addSql('ALTER TABLE eaf_user DROP FOREIGN KEY FK_18D18BEFA76ED395');\n $this->addSql('ALTER TABLE entreprise DROP FOREIGN KEY FK_D19FA60783E3463');\n $this->addSql('ALTER TABLE evaluation_elements DROP FOREIGN KEY FK_49047E7B73A201E5');\n // $this->addSql('ALTER TABLE mapping DROP FOREIGN KEY FK_49E62C8AC5568CE4');\n $this->addSql('ALTER TABLE preferences DROP FOREIGN KEY FK_E931A6F5231F139');\n //$this->addSql('DROP TABLE eafelements');\n $this->addSql('DROP TABLE binaire_evaluation');\n $this->addSql('DROP TABLE eaf');\n $this->addSql('DROP TABLE eaf_user');\n $this->addSql('DROP TABLE entreprise');\n $this->addSql('DROP TABLE evaluation_elements');\n //$this->addSql('DROP TABLE mapping');\n $this->addSql('DROP TABLE preferences');\n $this->addSql('DROP TABLE user');\n }", "title": "" }, { "docid": "2196d2ed15cff82982ad1b3bfd26d3a9", "score": "0.69436884", "text": "abstract public function down();", "title": "" }, { "docid": "2196d2ed15cff82982ad1b3bfd26d3a9", "score": "0.69436884", "text": "abstract public function down();", "title": "" }, { "docid": "2196d2ed15cff82982ad1b3bfd26d3a9", "score": "0.69436884", "text": "abstract public function down();", "title": "" }, { "docid": "c38917d953f29843c4ed2f77c0599ce1", "score": "0.69406503", "text": "public function down() {\n\n\t}", "title": "" }, { "docid": "d54735405674ff6af756d2d77cfc553c", "score": "0.6934785", "text": "public function down()\n\t{\n\t\t//return false;\n $this->dropTable('tbl_news');\n\t}", "title": "" }, { "docid": "c1063c21b377ab976c70758f594f9529", "score": "0.6925623", "text": "public function down(): void\n {\n // Remove your data\n }", "title": "" }, { "docid": "4cf3fbb39f5a8a672df7855769efc958", "score": "0.6924269", "text": "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 `wishlists`;\nDROP TABLE IF EXISTS `wishlists_lines`;\n\n# This restores the fkey checks, after having unset them earlier\nSET FOREIGN_KEY_CHECKS = 1;\n',\n);\n }", "title": "" }, { "docid": "c891382993c1714915b04b87cbfd2518", "score": "0.6918394", "text": "public function down()\n {\n $this->dbforge->drop_table('categories'); //eliminacion de la tabla categories\n }", "title": "" }, { "docid": "d88480fe9893e295cdc3c930a5539772", "score": "0.68997204", "text": "public function down()\n\t{\n\t\tDB::table('authors')->where('name','=','Author 1')->delete();\n\t\tDB::table('authors')->where('name','=','Author 2')->delete();\n\t}", "title": "" }, { "docid": "badd8e714ae2f75f5e9f63c47675c552", "score": "0.68982047", "text": "public function down()\n {\n }", "title": "" }, { "docid": "badd8e714ae2f75f5e9f63c47675c552", "score": "0.68982047", "text": "public function down()\n {\n }", "title": "" }, { "docid": "badd8e714ae2f75f5e9f63c47675c552", "score": "0.68982047", "text": "public function down()\n {\n }", "title": "" }, { "docid": "badd8e714ae2f75f5e9f63c47675c552", "score": "0.68982047", "text": "public function down()\n {\n }", "title": "" }, { "docid": "31268103cd59aa9e1ac564cd1fc494ef", "score": "0.689743", "text": "public function down()\n {\n /*Schema::table('leelam_payment_gateway', function (Blueprint $table) {\n $table->dropForeign ( 'comments_user_id_foreign' );\n });*/\n\n Schema::drop('leelam_cash');\n }", "title": "" }, { "docid": "251fabc8c9219a181a23bac0fe6cf415", "score": "0.68915045", "text": "public function getDownSQL()\n {\n return array (\n 'dofe' => '\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 `ratings`;\n\nDROP TABLE IF EXISTS `levels`;\n\nDROP TABLE IF EXISTS `activities`;\n\nDROP TABLE IF EXISTS `activity_types`;\n\nDROP TABLE IF EXISTS `activity_logs`;\n\nALTER TABLE `comments`\n\n DROP `rating`;\n\n# This restores the fkey checks, after having unset them earlier\nSET FOREIGN_KEY_CHECKS = 1;\n',\n);\n }", "title": "" }, { "docid": "ff6cbdd86254c01f363cc48eb40bb5ce", "score": "0.6879707", "text": "public function down() : void;", "title": "" }, { "docid": "eeba8936172de781f9f425340a201a7e", "score": "0.6876181", "text": "abstract function down();", "title": "" }, { "docid": "cbb29167cfaeb539e8916f58596cb8ae", "score": "0.6873525", "text": "public function down(){\n $this->dropTable('feed_articles');\n }", "title": "" }, { "docid": "cd2be85474da5f0b5f8ea7bc27717ee3", "score": "0.6866593", "text": "public function safeDown()\n {\n //$this->dropForeignKey('appoftagKey', 'tag');\n\t\t$this->dropTable('tag');\n //return false;\n }", "title": "" }, { "docid": "b7101c6cc8905b89b0d6f6459b70b470", "score": "0.68462825", "text": "public function safeDown()\n {\n// $this->dropForeignKey(\n// 'fk-prod-auth-customer',\n// 'auth'\n// );\n//\n $this->dropIndex(\n 'idx-auth-id',\n 'auth'\n );\n\n $this->dropColumn('customer', 'status_id');\n $this->dropColumn('customer', 'updated_at');\n $this->dropColumn('customer', 'real_id');\n }", "title": "" }, { "docid": "fc9083deb7212b511eaffbac71655def", "score": "0.68445283", "text": "public function down()\n\t{\n\t\tif(Yii::app()->db->getSchema()->getTable(\"{{photoalbum}}\")){\n\t\t\t$this->dropTable(\"{{photoalbum}}\");\n\t\t}\n\n\t\t//delete table if exists\n\t\tif(Yii::app()->db->getSchema()->getTable(\"{{photoalbum_lang}}\")){\n\t\t\t$this->dropTable(\"{{photoalbum_lang}}\");\n\t\t}\n\t}", "title": "" }, { "docid": "cbb74ff809462b4c2088108ccd7e633d", "score": "0.684043", "text": "public function down()\n\t{\n\t\techo \"\\n Remove locked column from users table\";\n\t\t$table = Schema::remove_column('users', 'locked');\n\t\t\n\t\techo \"\\n Schema changes successful\";\n\t}", "title": "" }, { "docid": "91329ac8dd2cae15fd8b8cc6b2171d98", "score": "0.6832839", "text": "public function down()\n {\n Schema::disableForeignKeyConstraints();\n\n Schema::dropIfExists('order_return_products');\n Schema::dropIfExists('order_return_requests');\n Schema::dropIfExists('product_downloadable_urls');\n Schema::dropIfExists('product_property');\n Schema::dropIfExists('site_currencies');\n Schema::dropIfExists('menu_groups');\n Schema::dropIfExists('menus');\n Schema::dropIfExists('order_histories');\n Schema::dropIfExists('user_user_group');\n Schema::dropIfExists('user_groups');\n\n Schema::dropIfExists('category_filters');\n Schema::dropIfExists('order_product_variations');\n Schema::dropIfExists('product_variations');\n Schema::dropIfExists('product_attribute_integer_values');\n\n Schema::dropIfExists('attribute_dropdown_options');\n Schema::dropIfExists('attribute_product');\n\n Schema::dropIfExists('product_property_boolean_values');\n Schema::dropIfExists('product_property_text_values');\n Schema::dropIfExists('product_property_decimal_values');\n Schema::dropIfExists('product_property_integer_values');\n Schema::dropIfExists('product_property_varchar_values');\n Schema::dropIfExists('product_property_datetime_values');\n Schema::dropIfExists('property_dropdown_options');\n Schema::dropIfExists('properties');\n\n Schema::dropIfExists('category_product');\n Schema::dropIfExists('product_images');\n Schema::dropIfExists('product_prices');\n Schema::dropIfExists('products');\n Schema::dropIfExists('categories');\n\n Schema::dropIfExists('attributes');\n\n\n Schema::dropIfExists('order_statuses');\n Schema::dropIfExists('order_product');\n Schema::dropIfExists('orders');\n\n Schema::dropIfExists('oauth_personal_access_clients');\n Schema::dropIfExists('oauth_clients');\n Schema::dropIfExists('oauth_refresh_tokens');\n Schema::dropIfExists('oauth_access_tokens');\n Schema::dropIfExists('oauth_auth_codes');\n\n Schema::dropIfExists('admin_password_resets');\n Schema::dropIfExists('admin_users');\n Schema::dropIfExists('password_resets');\n Schema::dropIfExists('users');\n Schema::dropIfExists('addresses');\n Schema::dropIfExists('configurations');\n\n Schema::dropIfExists('pages');\n Schema::dropIfExists('wishlists');\n\n Schema::dropIfExists('permission_role');\n Schema::dropIfExists('permissions');\n Schema::dropIfExists('roles');\n Schema::dropIfExists('states');\n Schema::dropIfExists('countries');\n\n }", "title": "" }, { "docid": "54abf58c173e7e7a57943ca73578f5b9", "score": "0.68262094", "text": "public function up()\n\t{\n $this->dropColumn('producto','costo');\n\n $this->dropColumn('calculo','costo_x_unidad');\n\n $this->dropColumn('calculo','costo_calculado');\n\t}", "title": "" }, { "docid": "434258b2bba36b9e93480298c9fb2759", "score": "0.6805274", "text": "public function down()\n\t{\n\t\tSchema::drop('ranking',function(){\n\t\t\t$table->drop_foreign('user_idUser_foreign');\n\t\t\t$table->drop_foreign('user_id_metadata_term_foreign');\n\t\t});\n\t}", "title": "" }, { "docid": "bde2b9c35bf272e7b0e91be5431c4f55", "score": "0.67990696", "text": "public function down()\n\t{\n\t\t$this->dropTable('{{%sale}}');\n\t}", "title": "" }, { "docid": "afd4308c3b9539e9e66fd31911d03181", "score": "0.67911184", "text": "public function down()\n {\n $this->table('actors')->drop()->save();\n $this->table('addresses')->drop()->save();\n $this->table('categories')->drop()->save();\n $this->table('cities')->drop()->save();\n $this->table('countries')->drop()->save();\n $this->table('customers')->drop()->save();\n $this->table('employees')->drop()->save();\n $this->table('film_actors')->drop()->save();\n $this->table('film_categories')->drop()->save();\n $this->table('film_texts')->drop()->save();\n $this->table('films')->drop()->save();\n $this->table('inventories')->drop()->save();\n $this->table('languages')->drop()->save();\n $this->table('payments')->drop()->save();\n $this->table('rentals')->drop()->save();\n $this->table('stores')->drop()->save();\n }", "title": "" }, { "docid": "0ac48b3363e6c5afe80d33e8d7e0c207", "score": "0.67894554", "text": "public function down()\r\n {\r\n $this -> executeSQL(\"ALTER TABLE `esq_customers` DROP `icontact_id`;\");\r\n }", "title": "" }, { "docid": "4157534f13ace563c4b466b550e962c2", "score": "0.6783665", "text": "public function down()\n {\n /*Schema::table('boilerplates', function (Blueprint $table) {\n $table->dropForeign ( 'boilerplates_user_id_foreign' );\n });*/\n\n Schema::drop('boilerplates');\n }", "title": "" }, { "docid": "8dc77184a9f2078979ca124bb224abf0", "score": "0.6783623", "text": "public function down()\n\t{\n\t\tDB::query(\"DELETE FROM `partei` WHERE (`Nimetus` = 'Üksikkandidaat' COLLATE utf8_bin);\");\n\t}", "title": "" }, { "docid": "565e6cf58a459a24f205f281166fb065", "score": "0.67828375", "text": "public function getDownSQL()\n {\n return array (\n 'cungfoo' => '\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\n# This restores the fkey checks, after having unset them earlier\nSET FOREIGN_KEY_CHECKS = 1;\n',\n);\n }", "title": "" }, { "docid": "509a876ef2f9a07c697b3221cfd48a28", "score": "0.6782033", "text": "public function down()\n {\n $this->dbforge->drop_table('news', true);\n }", "title": "" }, { "docid": "d2480d709c20c7cef9b0f5b19b59799f", "score": "0.6765602", "text": "public function down()\n\t{\n\t\t//\n\t\tSchema::drop('Courses');\n\t}", "title": "" }, { "docid": "fd12c048d7b07937ee4afeac3ac0ed85", "score": "0.6758085", "text": "public function down()\n\t{\n\t\tSchema::drop('bienes');\n\t}", "title": "" }, { "docid": "3ee15fbdd6dbcaa18262ad62decc598c", "score": "0.67546046", "text": "public function down() {\n\t}", "title": "" }, { "docid": "3ee15fbdd6dbcaa18262ad62decc598c", "score": "0.67546046", "text": "public function down() {\n\t}", "title": "" }, { "docid": "9f3e91cc744fd3d94e97f036f3c3a279", "score": "0.67505664", "text": "public function down(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE nfl_draft_pick DROP FOREIGN KEY FK_9EF2FF6F296CD8AE');\n $this->addSql('ALTER TABLE nfl_former_names DROP FOREIGN KEY FK_6C88AECA378DECEF');\n $this->addSql('ALTER TABLE nfl_roster DROP FOREIGN KEY FK_807F846B296CD8AE');\n $this->addSql('ALTER TABLE nfl_draft_pick DROP FOREIGN KEY FK_9EF2FF6F99E6F5DF');\n $this->addSql('ALTER TABLE nfl_roster DROP FOREIGN KEY FK_807F846B99E6F5DF');\n $this->addSql('ALTER TABLE player_ext_id DROP FOREIGN KEY FK_C204297399E6F5DF');\n $this->addSql('ALTER TABLE player_score DROP FOREIGN KEY FK_8DEB4C1799E6F5DF');\n $this->addSql('ALTER TABLE player_stats DROP FOREIGN KEY FK_E8351CEC99E6F5DF');\n $this->addSql('ALTER TABLE nfl_roster DROP FOREIGN KEY FK_807F846B41085FAE');\n $this->addSql('ALTER TABLE player DROP FOREIGN KEY FK_98197A6541085FAE');\n $this->addSql('ALTER TABLE week DROP FOREIGN KEY FK_5B5A69C04EC001D1');\n $this->addSql('ALTER TABLE player_score DROP FOREIGN KEY FK_8DEB4C17C86F3B2F');\n $this->addSql('ALTER TABLE player_stats DROP FOREIGN KEY FK_E8351CECC86F3B2F');\n $this->addSql('DROP TABLE nfl_draft_pick');\n $this->addSql('DROP TABLE nfl_former_names');\n $this->addSql('DROP TABLE nfl_roster');\n $this->addSql('DROP TABLE nfl_team');\n $this->addSql('DROP TABLE player');\n $this->addSql('DROP TABLE player_ext_id');\n $this->addSql('DROP TABLE player_score');\n $this->addSql('DROP TABLE player_stats');\n $this->addSql('DROP TABLE position');\n $this->addSql('DROP TABLE season');\n $this->addSql('DROP TABLE week');\n }", "title": "" }, { "docid": "11d758cc1b139ee03d2b5e0c6b7add0e", "score": "0.67487127", "text": "public function down()\n\t{\n\t\t//\n\t\tSchema::drop('users');\n\t}", "title": "" }, { "docid": "b6313a2efac1aa937cca17814d98e938", "score": "0.6748358", "text": "public function down(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE atelier_inscription DROP FOREIGN KEY FK_20EC8DC882E2CF35');\n $this->addSql('ALTER TABLE atelier_theme DROP FOREIGN KEY FK_AEB6D34382E2CF35');\n $this->addSql('ALTER TABLE vacation DROP FOREIGN KEY FK_E3DADF7582E2CF35');\n $this->addSql('ALTER TABLE proposer DROP FOREIGN KEY FK_21866C155DEB5F8');\n $this->addSql('ALTER TABLE licencie DROP FOREIGN KEY FK_3B75561261190A32');\n $this->addSql('ALTER TABLE proposer DROP FOREIGN KEY FK_21866C153243BB18');\n $this->addSql('ALTER TABLE atelier_inscription DROP FOREIGN KEY FK_20EC8DC85DAC5993');\n $this->addSql('ALTER TABLE inscription_nuite DROP FOREIGN KEY FK_DF05E3585DAC5993');\n $this->addSql('ALTER TABLE restauration DROP FOREIGN KEY FK_898B1EF15DAC5993');\n $this->addSql('ALTER TABLE inscription_nuite DROP FOREIGN KEY FK_DF05E358A84291E2');\n $this->addSql('ALTER TABLE nuite DROP FOREIGN KEY FK_8D4CB715B13FA634');\n $this->addSql('ALTER TABLE licencie DROP FOREIGN KEY FK_3B7556128635C1A4');\n $this->addSql('ALTER TABLE licencie DROP FOREIGN KEY FK_3B755612A6338570');\n $this->addSql('ALTER TABLE atelier_theme DROP FOREIGN KEY FK_AEB6D34359027487');\n $this->addSql('ALTER TABLE inscription DROP FOREIGN KEY FK_5E90F6D6F2C56620');\n $this->addSql('ALTER TABLE licencie DROP FOREIGN KEY FK_3B755612F2C56620');\n $this->addSql('DROP TABLE atelier');\n $this->addSql('DROP TABLE atelier_inscription');\n $this->addSql('DROP TABLE atelier_theme');\n $this->addSql('DROP TABLE categorie_chambre');\n $this->addSql('DROP TABLE club');\n $this->addSql('DROP TABLE hotel');\n $this->addSql('DROP TABLE inscription');\n $this->addSql('DROP TABLE inscription_nuite');\n $this->addSql('DROP TABLE licencie');\n $this->addSql('DROP TABLE nuite');\n $this->addSql('DROP TABLE proposer');\n $this->addSql('DROP TABLE qualite');\n $this->addSql('DROP TABLE restauration');\n $this->addSql('DROP TABLE theme');\n $this->addSql('DROP TABLE `user`');\n $this->addSql('DROP TABLE vacation');\n }", "title": "" }, { "docid": "a0c2b6730a9fa6e68d6060648b528de4", "score": "0.6738148", "text": "public function down()\n {\n // DB::table($this->table)->truncate();\n }", "title": "" }, { "docid": "b296a76bbf2f50487ff6181407746e9a", "score": "0.6724187", "text": "public function down()\n\t{\n\t\tSchema::drop('scholarship_subject');\n\t}", "title": "" }, { "docid": "b3255c1852268005bac5cac94ce49102", "score": "0.67214614", "text": "public function down()\n\t{\n\t\t$this->forge->dropTable('peserta_videografi');\n\t}", "title": "" }, { "docid": "5d7fc419f103e615df19aa30efd40f0f", "score": "0.6718567", "text": "public function getDownSQL()\n\t{\n\t\treturn array (\n 'propel' => '\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\n\nALTER TABLE `package_transaction_credit` DROP FOREIGN KEY `package_transaction_credit_FK_2`;\n\nALTER TABLE `package_transaction_credit` DROP FOREIGN KEY `package_transaction_credit_FK_1`;\n\nDROP INDEX `package_transaction_credit_FI_2` ON `package_transaction_credit`;\n\nALTER TABLE `package_transaction_credit` ADD\n(\n\t`collector_id` INTEGER\n);\n\nALTER TABLE `package_transaction_credit` ADD CONSTRAINT `package_transaction_credit_FK_1`\n\tFOREIGN KEY (`package_transaction_id`)\n\tREFERENCES `package` (`id`);\n\n\n# This restores the fkey checks, after having unset them earlier\nSET FOREIGN_KEY_CHECKS = 1;\n',\n);\n\t}", "title": "" }, { "docid": "5975b240571a0a3058274e652cf838c6", "score": "0.67160255", "text": "public function down() {\n\n\t\t$query = 'PRAGMA foreign_keys=off;';\n\n\t\t/**\n\t\t * Rename old site table.\n\t\t */\n\t\t$query .= 'ALTER TABLE sites RENAME TO sites_backup;';\n\n\t\t/**\n\t\t * Create new site table without 'site_container_fs_path' column.\n\t\t */\n\t\t$query .= 'CREATE TABLE sites (\n\t\t\tid INTEGER NOT NULL,\n\t\t\tsite_url VARCHAR NOT NULL,\n\t\t\tsite_type VARCHAR NOT NULL,\n\t\t\tsite_fs_path VARCHAR NOT NULL,\n\t\t\tsite_enabled BOOLEAN NOT NULL DEFAULT 1,\n\t\t\tsite_ssl VARCHAR,\n\t\t\tsite_ssl_wildcard BOOLEAN NOT NULL DEFAULT 0,\n\t\t\tcache_nginx_browser BOOLEAN NOT NULL DEFAULT 0,\n\t\t\tcache_nginx_fullpage BOOLEAN NOT NULL DEFAULT 0,\n\t\t\tcache_mysql_query BOOLEAN NOT NULL DEFAULT 0,\n\t\t\tcache_app_object BOOLEAN NOT NULL DEFAULT 0,\n\t\t\tcache_host VARCHAR,\n\t\t\tphp_version VARCHAR,\n\t\t\tdb_name VARCHAR,\n\t\t\tdb_user VARCHAR,\n\t\t\tdb_password VARCHAR,\n\t\t\tdb_root_password VARCHAR,\n\t\t\tdb_host VARCHAR,\n\t\t\tdb_port VARCHAR,\n\t\t\tapp_sub_type VARCHAR,\n\t\t\tapp_admin_url VARCHAR,\n\t\t\tapp_admin_email VARCHAR,\n\t\t\tapp_admin_username VARCHAR,\n\t\t\tapp_admin_password VARCHAR,\n\t\t\tapp_mail VARCHAR,\n\t\t\tmailhog_enabled BOOLEAN NOT NULL DEFAULT 0,\n\t\t\tadmin_tools BOOLEAN NOT NULL DEFAULT 0,\n\t\t\tcreated_on DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,\n\t\t\tmodified_on DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,\n\t\t\tsite_auth_scope VARCHAR,\n\t\t\tsite_auth_username VARCHAR,\n\t\t\tsite_auth_password VARCHAR,\n\t\t\tPRIMARY KEY (id),\n\t\t\tUNIQUE (site_url),\n\t\t\tCHECK (site_enabled IN (0, 1))\n\t\t);';\n\n\t\t/**\n\t\t * Insert data from backup site table.\n\t\t */\n\t\t$query .= 'INSERT INTO sites (id, site_url, site_type, site_fs_path, site_enabled, site_ssl, site_ssl_wildcard,cache_nginx_browser,\n\t\t\tcache_nginx_fullpage, cache_mysql_query, cache_app_object, cache_host, php_version, db_name, db_user, db_password, db_root_password,\n\t\t\tdb_host, db_port,app_sub_type,app_admin_url, app_admin_email, app_admin_password, app_mail, mailhog_enabled,\n\t\t\tadmin_tools, created_on, site_auth_scope, site_auth_username, site_auth_password)\n\t\t\t\n\t\t\tSELECT id, site_url, site_type, site_fs_path, site_enabled, site_ssl, site_ssl_wildcard,cache_nginx_browser\n\t\t\t,cache_nginx_fullpage, cache_mysql_query, cache_app_object, cache_host, php_version, db_name, db_user, db_password, db_root_password,\n\t\t\tdb_host, db_port,app_sub_type,app_admin_url, app_admin_email, app_admin_password, app_mail, mailhog_enabled,\n\t\t\tadmin_tools, created_on, site_auth_scope, site_auth_username, site_auth_password\n\t\t\tFROM sites_backup;';\n\n\t\t/**\n\t\t * Drop site backup table.\n\t\t */\n\t\t$query .= 'DROP TABLE sites_backup;';\n\n\t\t$query .= 'PRAGMA foreign_keys=on;';\n\n\t\ttry {\n\t\t\tself::$pdo->exec( $query );\n\t\t} catch ( PDOException $exception ) {\n\t\t\tEE::error( 'Encountered Error while dropping table: ' . $exception->getMessage(), false );\n\t\t}\n\t}", "title": "" }, { "docid": "56ec50b369e0c4dcb88aee2f9e9cdaf9", "score": "0.67155266", "text": "public function down()\n\t{\n\t\tDB::table('students')->where('id','=','1')->delete();\n\t\tDB::table('students')->where('id','=','2')->delete();\n\t\tDB::table('students')->where('id','=','3')->delete();\n\n\t}", "title": "" }, { "docid": "a6ef04922ebaa65f8e78058242b4e18f", "score": "0.671374", "text": "public function down()\n\t{\n\t\tSchema::drop('orderdetails');\n\t}", "title": "" }, { "docid": "3feeeb062df4b3aeeb364be5a2b91c0b", "score": "0.67048", "text": "public function down()\n {\n if ($this->db->DBDriver != 'MySQLi')\n {\n echo 'This website is intented to work only with MySQL databases!';\n return;\n }\n \n // Remove foreign keys\n $this->forge->dropForeignKey('visitors_record', 'visitors_record_mem_id_foreign');\n $this->forge->dropForeignKey('mem_record', 'mem_record_mem_id_foreign');\n $this->forge->dropForeignKey('issue_record', 'issue_record_mem_id_foreign');\n $this->forge->dropForeignKey('issue_record', 'issue_record_book_id_foreign');\n \n // Removing tables\n $this->forge->dropTable('books', true);\n $this->forge->dropTable('members', true);\n $this->forge->dropTable('visitors_record', true);\n $this->forge->dropTable('mem_record', true);\n $this->forge->dropTable('issue_record', true);\n //$this->forge->dropTable('app_conf', true);\n }", "title": "" }, { "docid": "fef7ebbf52e5e83cda9e0c01b8005b0e", "score": "0.6704519", "text": "public function down()\n {\n Schema::disableForeignKeyConstraints();\n Schema::dropIfExists('asunto_puesto'); \n Schema::enableForeignKeyConstraints();\n }", "title": "" }, { "docid": "19c9fe28b211f6ecd195768027827dae", "score": "0.6700671", "text": "public function down(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE adresse_user DROP FOREIGN KEY FK_7D95019F4DE7DC5C');\n $this->addSql('ALTER TABLE vente DROP FOREIGN KEY FK_15E7EB5E4DE7DC5C');\n $this->addSql('ALTER TABLE stockage DROP FOREIGN KEY FK_CABCB4924DE7DC5C');\n $this->addSql('ALTER TABLE produit DROP FOREIGN KEY FK_29A5EC27BCF5E72D');\n $this->addSql('ALTER TABLE paiement DROP FOREIGN KEY FK_B1DC7A1EE80B6EFB');\n $this->addSql('ALTER TABLE enchere DROP FOREIGN KEY FK_38D1870FA8CBA5F7');\n $this->addSql('ALTER TABLE ordre_achat DROP FOREIGN KEY FK_71306AD9A8CBA5F7');\n $this->addSql('ALTER TABLE produit DROP FOREIGN KEY FK_29A5EC27A8CBA5F7');\n $this->addSql('ALTER TABLE enchere DROP FOREIGN KEY FK_38D1870F5DD2787F');\n $this->addSql('ALTER TABLE estimation DROP FOREIGN KEY FK_D0527024F347EFB');\n $this->addSql('ALTER TABLE photo DROP FOREIGN KEY FK_14B78418F347EFB');\n $this->addSql('ALTER TABLE enchere DROP FOREIGN KEY FK_38D1870F61864004');\n $this->addSql('ALTER TABLE produit DROP FOREIGN KEY FK_29A5EC27DAA83D7F');\n $this->addSql('ALTER TABLE adresse_user DROP FOREIGN KEY FK_7D95019FA76ED395');\n $this->addSql('ALTER TABLE enchere DROP FOREIGN KEY FK_38D1870FF7EA9D21');\n $this->addSql('ALTER TABLE enchere DROP FOREIGN KEY FK_38D1870F91D60FC6');\n $this->addSql('ALTER TABLE estimation DROP FOREIGN KEY FK_D0527024F7EA9D21');\n $this->addSql('ALTER TABLE ordre_achat DROP FOREIGN KEY FK_71306AD9DF123119');\n $this->addSql('ALTER TABLE produit DROP FOREIGN KEY FK_29A5EC27858C065E');\n $this->addSql('ALTER TABLE produit DROP FOREIGN KEY FK_29A5EC27706A94B3');\n $this->addSql('DROP TABLE adresse');\n $this->addSql('DROP TABLE adresse_user');\n $this->addSql('DROP TABLE categorie');\n $this->addSql('DROP TABLE enchere');\n $this->addSql('DROP TABLE estimation');\n $this->addSql('DROP TABLE lot');\n $this->addSql('DROP TABLE ordre_achat');\n $this->addSql('DROP TABLE paiement');\n $this->addSql('DROP TABLE photo');\n $this->addSql('DROP TABLE produit');\n $this->addSql('DROP TABLE vente');\n $this->addSql('DROP TABLE stockage');\n $this->addSql('DROP TABLE user');\n }", "title": "" }, { "docid": "69960a230af34dd9a2f657f6981eb32c", "score": "0.66955847", "text": "public function down()\n {\n $this->dropForeignKey(\n 'fk_users_auth_type',\n 'users'\n );\n\n $this->dropColumn('users', 'auth_type');\n }", "title": "" } ]
2cb945fc705291621a231aaa8068a911
checks if date pass is the current date of the next date
[ { "docid": "b7e5edbb40b8f43651d4df510841a85e", "score": "0.58795977", "text": "function validDate($date) {\r\n $currDate = date(\"m/d/Y\");\r\n\r\n if(strtotime($currDate)<=strtotime($date) ){\r\n //echo(\"true <br>\");\r\n return true;\r\n }\r\n else{\r\n //echo(\"false <br>\");\r\n return false;\r\n }\r\n}", "title": "" } ]
[ { "docid": "941dff95480e1f62f9c3f09eefe76447", "score": "0.66597354", "text": "function validateExamDateWithCurrentDate($exam_date)\n{ \n\t$expire = strtotime($exam_date);\n\t$today = strtotime(\"today midnight\");\n\n\tif($today > $expire){\n\t $result = \"expired\";\n\t} else {\n\t $result = \"active\";\n\t}\n\treturn $result;\n}", "title": "" }, { "docid": "03146db94a024b36a2e749f8c4b5e8fe", "score": "0.6433684", "text": "function get_next_date( ) {\n if ( !$this->current_date ) {\n $this->finished = true;\n }\n return $this->current_date;\n }", "title": "" }, { "docid": "0f559653c09b72f21aa523c1114d0d56", "score": "0.64001364", "text": "function more_day($db){\r\n\t\t$old_dtfin = $this->dt_fin;\r\n\r\n\t\t$this->dt_fin += 86400;\r\n\t\tif(!$this->check_date_resa($db)){\r\n\t\t\t$this->dt_fin = $old_dtfin;\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "64d0b568dcae8c08ddf9a2a65ec4e56c", "score": "0.6359401", "text": "private function dateHasPassed($date = \"\") {\n\t\t$d = $this->getComparableDates($date);\n\t\treturn ( $d['now'] >= $d['date'] );\n\t}", "title": "" }, { "docid": "ab67e5d2d8c9c0dfda4ab5a7262a0158", "score": "0.6298112", "text": "public function next()\n {\n do {\n $this->currentDate = date(\n self::DATE_FORMAT,\n strtotime('+1 day', strtotime($this->currentDate))\n );\n } while(!in_array(date('N', strtotime($this->currentDate)), [1,2,3,4,5]));\n }", "title": "" }, { "docid": "bf7ac16d48149db2808176fa36290e59", "score": "0.62479866", "text": "private function checkIfDateHasPassed($end_date, $now) {\n $end_ts = strtotime($end_date);\n $now_ts = strtotime($now);\n\n return ($now_ts > $end_ts);\n }", "title": "" }, { "docid": "7c09c0ec7d8a82a42b14fdb4aca11005", "score": "0.61429197", "text": "public function setDateNext( $date );", "title": "" }, { "docid": "095c6b7076a580e1c432908817877bb4", "score": "0.60948426", "text": "public function set_next_valid_date($date=NULL)\n\t{\n\t\t$this->created_at = $this->get_next_valid_date($date);\n\t}", "title": "" }, { "docid": "eac4d2128eac534ca37ea290a22d4dbe", "score": "0.6045983", "text": "function less_day($db){\r\n\r\n\t\t$this->dt_fin -= 86400;\r\n\r\n\t\tif($this->dt_fin<$this->dt_deb){\r\n\t\t\t$this->dt_fin = $this->dt_deb;\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "779a61daeaa2d3b497f1ce1498d0356d", "score": "0.6031187", "text": "function is_future($date) {\n return strtotime($date) >= strtotime(date('Ymd'));\n}", "title": "" }, { "docid": "2e53d16ae44b9aba242ff662223dbe35", "score": "0.6010927", "text": "public function getDateNext();", "title": "" }, { "docid": "0c530fb01a4edcd9217bc83d6c256b15", "score": "0.6001312", "text": "function isFuture($date){\n if ($date>=strtotime(\"now\")){\n return true;\n }\n else{\n return false;\n }\n}", "title": "" }, { "docid": "ae7e758043835c7328b76c87429d8d88", "score": "0.59866816", "text": "public function canSeeDateIsNextYear($date) {\n return $this->scenario->runStep(new \\Codeception\\Step\\ConditionalAssertion('seeDateIsNextYear', func_get_args()));\n }", "title": "" }, { "docid": "879f72955497d811a0447536c798b0de", "score": "0.59589344", "text": "public function checkExpirationDate()\r\n {\r\n if (Mage::getSingleton('customer/session')->getCustomer()->getWalletId()) {\r\n $exp = $this->getExpirationDate();\r\n $date_exp=substr($exp, 2).substr($exp,0,2);\r\n if (date('ym')<=$date_exp){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n } else {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "5d0e825d5f23b157b8aaa6a48ebdd4bc", "score": "0.5895779", "text": "public function seeDateIsNextYear($date) {\n return $this->scenario->runStep(new \\Codeception\\Step\\Assertion('seeDateIsNextYear', func_get_args()));\n }", "title": "" }, { "docid": "e10d0d67415520bd4044bda713833768", "score": "0.58732516", "text": "function less_day_left($db){\r\n\r\n\t\t$this->dt_deb += 86400;\r\n\r\n\t\tif($this->dt_fin<$this->dt_deb){\r\n\t\t\t$this->dt_deb = $this->dt_fin;\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "8b0931fa21318c464402ba76c4903a89", "score": "0.58723295", "text": "function get_checkby_date($oldestDate, $periodBack){\n\tif(!empty($oldestDate)){\n\t\t$dayDiff = abs(floor((strtotime($oldestDate) - strtotime($periodBack))/(60*60*24)));\n\t\treturn date('Y-m-d H:i:s', strtotime('+'.$dayDiff.' days'));\n\t}\n\t# check tomorrow if the checkby date is not given\n\telse return date('Y-m-d H:i:s', strtotime('+1 days'));\n}", "title": "" }, { "docid": "2c990f0d7662fad2fcd0e1e31a2e967a", "score": "0.5872153", "text": "function more_day_left($db){\r\n\t\t$old_dtdeb = $this->dt_deb;\r\n\r\n\t\t$this->dt_deb -= 86400;\r\n\t\tif(!$this->check_date_resa($db)){\r\n\t\t\t$this->dt_deb = $old_dtdeb;\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "ed92850bd55b49ef78eb6b5a02106c1d", "score": "0.58547306", "text": "public function canSeeDateIsNextWeek($date) {\n return $this->scenario->runStep(new \\Codeception\\Step\\ConditionalAssertion('seeDateIsNextWeek', func_get_args()));\n }", "title": "" }, { "docid": "abb391228d2704239147f11e84ed6612", "score": "0.58482337", "text": "public function canSeeDateIsNextMonth($date) {\n return $this->scenario->runStep(new \\Codeception\\Step\\ConditionalAssertion('seeDateIsNextMonth', func_get_args()));\n }", "title": "" }, { "docid": "6dd21028798f146072acad31b401e01a", "score": "0.5820472", "text": "function comprobarFecha($fecha) {\n $fechaActual = new DateTime();\n if ($fechaActual < $fecha) {\n return true;\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "99a5b4074cf6d01353e783bf8bcc9ac1", "score": "0.5803374", "text": "public function isPassed() {\n\t\t\n\t\tif (empty($this->end)) return false;\n\t\t\n\t\t// End date\n\t\t$date = DateTime::createFromFormat(\n\t\t\t\tDATE_FORMAT, \n\t\t\t\t$this->end);\n\t\t\n\t\t$today = new DateTime('today');\n\t\t\n\t\treturn $today > $date;\n\t\t\n\t}", "title": "" }, { "docid": "0ca9b8bd9b50974809525527e0585d47", "score": "0.579638", "text": "public function get_next_valid_date($date=NULL)\n\t{\n\t\t$now = $this->get_now();\n\n\t\t$edates = $this->get_edates();\n\n\t\tif(empty($edates)) return false;\n\n\t\t$day = 86400-2;\n\n\t\tforeach ($edates as $ed)\n\t\t{\n\t\t\t$from \t= $this->zero_time($ed->from,'00:00:01');\n\t\t\t$to \t= $this->zero_time($ed->to,'23:59:59');\n\n\t\t\tfor($i=$from; $i < ($to + 1); $i = $i + $day)\n\t\t\t{\n\n\t\t\t\tif($i >= $now)\n\t\t\t\t{\n\t\t\t\t\tif(intval($ed->multi)===0) return $i;\n\n\t\t\t\t\tswitch($ed->recurUnit)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase \"all\":\n\t\t\t\t\t\t\treturn $i;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase \"days\":\n\t\t\t\t\t\t\tif(in_array(date('D',$i),$ed->recur_days)) return $i;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase \"monthly\":\n\n\t\t\t\t\t\t\t# some quick closures to help with code duplication\n\t\t\t\t\t\t\t$recur_helper = function($str_day) use($i,$ed)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$dow = strtolower($ed->recur_every_day);\n\t\t\t\t\t\t\t\t$temp = strtotime(\"{$str_day} {$dow} of this month\",$i);\n\t\t\t\t\t\t\t\t$temp_min = $this->zero_time(date('Y-m-d',$temp),'00:00:01');\n\t\t\t\t\t\t\t\t$temp_max = $this->zero_time(date('Y-m-d',$temp),'23:59:59');\n\t\t\t\t\t\t\t\treturn array($temp_min,$temp_max);\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t$recur_switch = function($day_name) use ($recur_helper,$i)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tlist($min,$max) = $recur_helper($day_name,$i);\n\t\t\t\t\t\t\t\tif($min <= $i && $max >= $i) return $i;\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\tswitch($ed->recur_days)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcase \"1\":\n\t\t\t\t\t\t\t\t\treturn $recur_switch(\"First\");\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase \"2\":\n\t\t\t\t\t\t\t\t\treturn $recur_switch(\"Second\");\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase \"3\":\n\t\t\t\t\t\t\t\t\treturn $recur_switch(\"Third\");\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase \"4\":\n\t\t\t\t\t\t\t\t\treturn $recur_switch(\"Fourth\");\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase \"5\":\n\t\t\t\t\t\t\t\t\treturn $recur_switch(\"Last\");\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase \"9\":\n\t\t\t\t\t\t\t\t\tif(date('j',$i) === date('j',$from)) return $i;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "faefe9add6141dd358cfcf6eeab04066", "score": "0.57960993", "text": "public static function dateHasPassed($coursework)\n {\n return date(\"Y-m-d\") > $coursework->deadline;\n }", "title": "" }, { "docid": "44179b1ae96ece97e5081772d9c4c05c", "score": "0.57816637", "text": "public function seeDateIsNextWeek($date) {\n return $this->scenario->runStep(new \\Codeception\\Step\\Assertion('seeDateIsNextWeek', func_get_args()));\n }", "title": "" }, { "docid": "5027ce185eb038a44d70dd980e17409c", "score": "0.57802546", "text": "function calcAvailability($nextfree) {\n\n $today = date('Y-m-d');\n\n $dateArray = explode(\".\",$nextfree);\n list($d,$m,$y) = $dateArray;\n $calcNextfree = $y . \"-\" . $m . \"-\" . $d;\n\n if ( $calcNextfree < $today ) {\n return \"now\";\n } else {\n return $nextfree;\n }\n\n // check if in maintenance\n \n\n}", "title": "" }, { "docid": "9732486827c981cefaeed2cf87e436be", "score": "0.5775349", "text": "public function seeDateIsNextMonth($date) {\n return $this->scenario->runStep(new \\Codeception\\Step\\Assertion('seeDateIsNextMonth', func_get_args()));\n }", "title": "" }, { "docid": "61510af45bbde2ebf5f49b4c72cc927a", "score": "0.5771962", "text": "public function nextPaymentDate () {\n $current_date = Date('Y-m-d', strtotime('+ 30days'));\n return $current_date;\n }", "title": "" }, { "docid": "1d028273e8cc39d8e3bbd0a3ae2f98dc", "score": "0.5756219", "text": "function validity_check($date, $currentDate, $startTime, $currentTime) {\r\n //the below can be a single statement, since both conditions cant be true at once\r\n if ($date < $currentDate) {\r\n //echo \"selected date \" . $date . \" is before today!\";\r\n return -1;\r\n } elseif ($startTime < $currentTime && $currentDate == $date) {\r\n //echo \"start time is before current time, on current date\";\r\n return -2;\r\n } else {\r\n return true;\r\n }\r\n}", "title": "" }, { "docid": "0c7e454dc519058a6a21141941ca3bd5", "score": "0.5739914", "text": "public function isPausedOneDay()\n {\n return $this->paused_at && Date::parse($this->paused_at)->addDay() > Date::now();\n }", "title": "" }, { "docid": "42b4848310941515b3e9ea1f5678b05a", "score": "0.5717502", "text": "public function nextDay() {\n return $this->modify('+1 day');\n }", "title": "" }, { "docid": "37137de8f3995c538ced16e7b5c4d0a2", "score": "0.571403", "text": "private function dateHasNotExpired($date = \"\") {\n\t\t$d = $this->getComparableDates($date);\n\t\treturn ( $d['now'] <= $d['date'] );\n\t}", "title": "" }, { "docid": "0a143e0263fe27b03bc118dba87a3a0a", "score": "0.5705675", "text": "public static function dateIsToday($coursework)\n {\n return date(\"Y-m-d\") == $coursework->deadline;\n }", "title": "" }, { "docid": "c4f7d97f46a20f5b27a1d0a89338c4d2", "score": "0.570142", "text": "public function canSeeDateInFuture($date) {\n return $this->scenario->runStep(new \\Codeception\\Step\\ConditionalAssertion('seeDateInFuture', func_get_args()));\n }", "title": "" }, { "docid": "b1eb654ae051cd9c3c7efacc082367a4", "score": "0.56923896", "text": "public function checkExpirationDate()\n {\n return new DateTime($this->getAttribute('expired_date')) > new DateTime();\n }", "title": "" }, { "docid": "9cee1930b3cf225dbb652b38cc5743da", "score": "0.56837636", "text": "public function getNextPayoutDate($dateNow = \"\")\n {\n\n $dateNow = ($dateNow !== \"\") ? $dateNow : Carbon::now();\n $currentDay = intval($dateNow->format('d'));\n $currentMonth = intval($dateNow->format('m'));\n $currentYear = intval($dateNow->format('Y'));\n\n $payOutDays = $this->getPayOutDays();\n $day = min($payOutDays);\n \n foreach($payOutDays as $payoutday){\n if ($currentDay <= $payoutday){\n $day = $payoutday;\n break;\n } \n }\n\n $hasExceededLastCutOff = ($currentDay > max($payOutDays));\n $month = $currentMonth + ($hasExceededLastCutOff ? 1 : 0);\n $month = ($month > 12) ? 1 : $month;\n $year = $currentYear + (($currentMonth === 12 && $hasExceededLastCutOff) ? 1 : 0); \n\n return Carbon::createFromFormat('Y-m-d', $year.'-'.$month.'-'.$day)->startOfDay();\n }", "title": "" }, { "docid": "5e489ec0b72abc740b8d9be9390b48c4", "score": "0.56658787", "text": "public function isValidAuthDate() {\n\t\t\tif (!isset($_SESSION['authentication_date']))\n\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t$sessionDate = (int)$_SESSION['authentication_date'];\n\t\t\t$currentDate = (int)date(\"U\");\n\t\t\t\n\t\t\tif ($sessionDate + 86400 < $currentDate) {\n\t\t\t\tself::reset_session();\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "0f8529af9ade7eecf2f777db3cdb5fd5", "score": "0.56658125", "text": "public function isDue($currentTime = 'now')\n {\n if ('now' === $currentTime) {\n $currentDate = date('Y-m-d H:i');\n $currentTime = strtotime($currentDate);\n } elseif ($currentTime instanceof DateTime) {\n $currentDate = clone $currentTime;\n // Ensure time in 'current' timezone is used\n $currentDate->setTimezone(new DateTimeZone(date_default_timezone_get()));\n $currentDate = $currentDate->format('Y-m-d H:i');\n $currentTime = strtotime($currentDate);\n } elseif ($currentTime instanceof DateTimeImmutable) {\n $currentDate = DateTime::createFromFormat('U', $currentTime->format('U'));\n $currentDate->setTimezone(new DateTimeZone(date_default_timezone_get()));\n $currentDate = $currentDate->format('Y-m-d H:i');\n $currentTime = strtotime($currentDate);\n } else {\n $currentTime = new DateTime($currentTime);\n $currentTime->setTime($currentTime->format('H'), $currentTime->format('i'), 0);\n $currentDate = $currentTime->format('Y-m-d H:i');\n $currentTime = $currentTime->getTimeStamp();\n }\n\n try {\n return $this->getNextRunDate($currentDate, 0, true)->getTimestamp() == $currentTime;\n } catch (Exception $e) {\n return false;\n }\n }", "title": "" }, { "docid": "3ff3f18d500649047823c1fe3b0f6490", "score": "0.565836", "text": "public function canSeeDateIsTomorrow($date) {\n return $this->scenario->runStep(new \\Codeception\\Step\\ConditionalAssertion('seeDateIsTomorrow', func_get_args()));\n }", "title": "" }, { "docid": "c709d6cd8abb7f219d060bba81129d97", "score": "0.56417084", "text": "public function testStartBeforeCurrent()\n {\n $this->assertTrue(BookingController::checkPast('2010-03-01 09:00:00'));\n }", "title": "" }, { "docid": "5bcb086f5001ea141b42ed9425dd41e7", "score": "0.5629309", "text": "public function valid()\n {\n return $this->currentDate <= $this->endDate;\n }", "title": "" }, { "docid": "77c3a6563f416fd6308ce1fa5d0bd843", "score": "0.5623229", "text": "function etivite_bp_edit_activity_check_date_recorded( $date_recorded ) {\n\tglobal $bp;\n\t\n\tif ( !$date_recorded )\n\t\treturn false;\n\t\t\n\tif ( $bp->loggedin_user->is_super_admin )\n\t\treturn true;\n\n\t//http://www.php.net/manual/en/datetime.formats.relative.php\n\t$lock_date = get_option( 'etivite_bp_edit_activity_lock_date');\n\tif (!$lock_date) $lock_date = '+30 Minutes';\n\n\tif ( strtotime( bp_core_current_time() ) <= strtotime( $lock_date, strtotime( $date_recorded ) ) )\n\t\treturn true;\n\n\treturn false;\n}", "title": "" }, { "docid": "3029c677f65da8319ef8c71a62b58fa5", "score": "0.56151056", "text": "public function seeDateIsTomorrow($date) {\n return $this->scenario->runStep(new \\Codeception\\Step\\Assertion('seeDateIsTomorrow', func_get_args()));\n }", "title": "" }, { "docid": "4ad93eb1cc435f13ea83cb79cd846dc2", "score": "0.56143785", "text": "private function checkValidDate($currDate, $unitId = null) {\n\t\tif ($this->Rest->isActive()) {\n\t\t\t$isValidDate = checkdate( $currDate['month'], $currDate['day'], $currDate['year'] );\n\t\t\t$currDate = date('Y-m-d H:i:s',strtotime($this->dateArrayToString($currDate)));\n\t\t\tif (!$isValidDate) {\n\t\t\t\t$this->Rest->error(__('Invalid date. Please use YYYY-MM-DD format' , true) );\n\t\t\t/* } else if ($this->dateArrayToString($currDate) > date(\"Y-m-d H:i:s\") ) {\n\t\t\t\t$this->Rest->error(__('Date cannot be in the future.' , true) ); */\n\t\t\t} \n\t\t\tif (!is_null($unitId) && $isValidDate){\n\t\t\t\t$earlyDate = NULL;\n\t\t\t\t$isEarlyCreated = FALSE;\n\t\t\t\t$earlyDate = $this->getUnitFirstDate($unitId);\n\t\t\t\tif ($earlyDate != -1 && $earlyDate > $currDate){\n\t\t\t\t\t$isEarlyCreated = TRUE;\n\t\t\t\t}\n\t\t\t\tif ($isEarlyCreated)\n\t\t\t\t\t$this->Rest->error(__('The date reported is prior to the creation date for that kit' , true));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "67a8acbfc22de7ad8ecf75e785871910", "score": "0.55466616", "text": "abstract public function getNext($date);", "title": "" }, { "docid": "cf69062e888f4b4057f24c9de2c7f30d", "score": "0.5545252", "text": "private function dayElapsed()\n\t{\n\t\t$date = clone $this->lastDelivery;\n $date->setHour(0)->setMinute(0)->setSecond(0);\n\t return time() >= $date->addDay(1)->toValue(Zend_Date::TIMESTAMP);\n\t}", "title": "" }, { "docid": "dedfe553bfad7601dec421bf6d31b8d9", "score": "0.5542821", "text": "public function canSeeDateIsToday($date) {\n return $this->scenario->runStep(new \\Codeception\\Step\\ConditionalAssertion('seeDateIsToday', func_get_args()));\n }", "title": "" }, { "docid": "a63fd71a3cb5f1b82dfa78737ad3218f", "score": "0.5519638", "text": "public function checkReservationDate()\n {\n $validate = true;\n $diffTime = strtotime($this->data['start_date']) - time();\n if ($diffTime < self::DAY_IN_SECONDS) {\n $validate = false;\n $this->setError(self::RESERVATION_TIME_IS_TOO_EARLY_ERROR_TEXT);\n }\n\n if ($diffTime > 5 * self::DAY_IN_SECONDS) {\n $validate = false;\n $this->setError(self::RESERVATION_TIME_IS_TOO_LONG_ERROR_TEXT);\n }\n\n return $validate;\n }", "title": "" }, { "docid": "a97566d9976b89a1b0f3bbb8265a2bc2", "score": "0.5492884", "text": "public function cantSeeDateIsNextYear($date) {\n return $this->scenario->runStep(new \\Codeception\\Step\\ConditionalAssertion('dontSeeDateIsNextYear', func_get_args()));\n }", "title": "" }, { "docid": "053ceb68d512c48e0077eaf5509c189d", "score": "0.5486134", "text": "public function isLate()\n {\n $currentTrip = $this->openTrips->first();\n\n return strtotime(now()) > strtotime($currentTrip->return_date);\n }", "title": "" }, { "docid": "e4dcaff78cf55f96025435d3c87eb1b1", "score": "0.5462453", "text": "private function checkDate(): void\n {\n if (self::FRIDAY_NUMBER_DAY != date('w')) {\n return;\n }\n\n $hour = date('H');\n\n if (self::FIRST_HOUR > $hour) {\n return;\n }\n\n if (self::SECOND_HOUR < $hour) {\n return;\n }\n\n $this->basePricePolicy = 0.13;\n }", "title": "" }, { "docid": "d5d8eba3f1707af69991df7970c7e2c9", "score": "0.54587615", "text": "public function seeDateIsToday($date) {\n return $this->scenario->runStep(new \\Codeception\\Step\\Assertion('seeDateIsToday', func_get_args()));\n }", "title": "" }, { "docid": "09c200dba8b1e46ea853d37b3c898acb", "score": "0.5455791", "text": "function needToCheckOut()\n {\n\n if ($this->hasRenewalDate()) {\n\n $today = date(\"Y-m-d\");\n $today = explode(\"-\", $today);\n $today_year = $today[0];\n $today_month = $today[1];\n $today_day = $today[2];\n $timestamp_today = mktime(0, 0, 0, $today_month, $today_day, $today_year);\n\n $this_renewaldate = $this->renewal_date;\n $renewaldate = explode(\"-\", $this_renewaldate);\n $renewaldate_year = $renewaldate[0];\n $renewaldate_month = $renewaldate[1];\n $renewaldate_day = $renewaldate[2];\n $timestamp_renewaldate = mktime(0, 0, 0, $renewaldate_month, $renewaldate_day, $renewaldate_year);\n\n if (($this->status == \"E\") || ($this_renewaldate == \"0000-00-00\") || ($timestamp_today > $timestamp_renewaldate)) {\n return true;\n }\n\n }\n\n return false;\n\n }", "title": "" }, { "docid": "9b6635744e6f58a2db826a1b8ef02e91", "score": "0.54504544", "text": "public function pass()\n\t{\n // No valid dates\n\t\tif (!$this->params->publish_up && !$this->params->publish_down)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$up = $this->params->publish_up ? $this->getDate($this->params->publish_up) : null;\n\t\t$down = $this->params->publish_down ? $this->getDate($this->params->publish_down) : null;\n\n return $this->checkRange($up, $down);\n }", "title": "" }, { "docid": "b12d6a4d249b1db6e76aacf95b76d8b8", "score": "0.5442993", "text": "public function eliteStatusNeedsRefreshed()\n {\n $checkdate = clone $this->elite_expires;\n $checkdate->modify('First day of this month 00:00:00');\n if ($this->patreon_id &&\n new \\DateTime(\"now\") > $checkdate) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "d4ea0cf53bdcf2e89ea9aff09e69d0c4", "score": "0.54398215", "text": "public function seeDateInFuture($date) {\n return $this->scenario->runStep(new \\Codeception\\Step\\Assertion('seeDateInFuture', func_get_args()));\n }", "title": "" }, { "docid": "cc2f230411a3c66bb56b7a9443777d83", "score": "0.5432603", "text": "public function checkTime()\n {\n $Today = time();\n $Time = $this->getAuctionTime();\n $PremiumDate = strtotime($Time);\n\n if ($PremiumDate < $Today) {\n print $PremiumDate;\n echo '<br>';\n print $Today;\n $this->updateAuction();\n } else {\n print $PremiumDate;\n echo '<br>';\n print $Today;\n }\n }", "title": "" }, { "docid": "864f84ce0132e1771a69c1b6a8ecfc5d", "score": "0.5418356", "text": "public function isTomorrow()\n {\n }", "title": "" }, { "docid": "0f74aeda50517f157fb39644d3c2e88b", "score": "0.54173106", "text": "public function can_register_today()\n\t{\n\t\tif (isset($this->ticket_date)) {\n\t\t \treturn $this->ticket_date == Carbon::today();\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "0b5185ed19862525701d9727940bd6a0", "score": "0.54163826", "text": "public function isExpiredByDate();", "title": "" }, { "docid": "700276b5b3c1bbc314b90196c21878a5", "score": "0.541518", "text": "public function needToCheckOut()\n {\n\n if ($this->hasRenewalDate()) {\n\n $today = date('Y-m-d');\n $today = explode('-', $today);\n $today_year = $today[0];\n $today_month = $today[1];\n $today_day = $today[2];\n $timestamp_today = mktime(0, 0, 0, $today_month, $today_day, $today_year);\n\n $this_renewaldate = $this->renewal_date;\n $renewaldate = explode('-', $this_renewaldate);\n $renewaldate_year = $renewaldate[0];\n $renewaldate_month = $renewaldate[1];\n $renewaldate_day = $renewaldate[2];\n $timestamp_renewaldate = mktime(0, 0, 0, $renewaldate_month, $renewaldate_day, $renewaldate_year);\n\n if (($this->status === 'E') || ($this_renewaldate === '0000-00-00') || ($timestamp_today > $timestamp_renewaldate)) {\n return true;\n }\n\n }\n\n return false;\n\n }", "title": "" }, { "docid": "634b17998828dfc621b85df14f804461", "score": "0.5413917", "text": "public static function dateInFuture($coursework)\n {\n return $coursework->start_date > date(\"Y-m-d\");\n }", "title": "" }, { "docid": "93a426b92fc8204acc18b3272844b2e5", "score": "0.54125524", "text": "public function getNextExpectedDate()\n {\n return $this->next_expected_date->format('Y-m-d');\n }", "title": "" }, { "docid": "476e463fec4f1780db797185a4ab1ea9", "score": "0.5406013", "text": "function check_date_resa (&$db) {\r\n\r\n\t\t$req = new TRequete;\r\n\r\n\t\t$TResa = $req->liste_toute_reservation_par_chambre_par_date($db, $this->id_chambre, $this->dt_deb, $this->dt_fin, $this->id);\r\n\r\n\t\tif ($req->nb_resultat > 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "a2d5a74a06d4e06d47d60bb79f5d0d64", "score": "0.5405853", "text": "public static function getNextDate($date = \"\", $step = 0, $outputFormat = \"Y-m-d H:i:s\")\n {\n if (!empty($date)) {\n return ($step > 1) ? date($outputFormat, strtotime($date . \" +\" . $step . \"days\")) : $date;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "7ca0ff1f6df6f98f03a9ee540beb16fb", "score": "0.5402766", "text": "public function cantSeeDateIsNextMonth($date) {\n return $this->scenario->runStep(new \\Codeception\\Step\\ConditionalAssertion('dontSeeDateIsNextMonth', func_get_args()));\n }", "title": "" }, { "docid": "15139da85f7040fc3da656edf150d490", "score": "0.5400614", "text": "public static function subscriptionExpired($user){\n \t$next_date = strtotime($user->next_subscription_date);\n \t$today_date = strtotime(date('Y-m-d'));\n\n \tif($today_date > $next_date){\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\n\n }", "title": "" }, { "docid": "c9680d681760c239e5c8a22e560ee645", "score": "0.53952134", "text": "function expected_date($newdate)\n{\n $expdate = strtotime(date(\"Y-m-d\"));\n $expdate = strtotime(\"+7 day\", $expdate);\n $expdate= date('Y-m-d', $expdate);\n $sql=\"SELECT DATEDIFF('$newdate', '$expdate') as days\";\n $days= find_value_by_sql($sql)['days'];\n\n if($days>=0)\n return true;\n else return false;\n\n\n}", "title": "" }, { "docid": "dd64faa111e2fda2ca63db63b8e6666c", "score": "0.5394107", "text": "public function isCurrent() {\n $now = time() - strtotime('today');\n\n return date('N', time()) === $this->getWeekday() && $this->getFrom() <= $now && $this->getTo() >= $now;\n }", "title": "" }, { "docid": "73900605d13714f517789465c1778a95", "score": "0.5360859", "text": "public function cantSeeDateIsNextWeek($date) {\n return $this->scenario->runStep(new \\Codeception\\Step\\ConditionalAssertion('dontSeeDateIsNextWeek', func_get_args()));\n }", "title": "" }, { "docid": "19ad9be28827f3af4ca457aee0a53fc9", "score": "0.5341178", "text": "function inCorrectDate($var){\n\t\t\t\t\t$varDate = date('Y-m-d',$var->{\"dt\"});\n\t\t\t\t\treturn strcmp($varDate,$_GET[\"date\"])==0;\n\t\t\t\t}", "title": "" }, { "docid": "6dad9bfd7e37dbd9a116b3893cccdf06", "score": "0.5339867", "text": "public function valid()\n {\n return $this->counter <= count($this->dates);\n }", "title": "" }, { "docid": "4c318ef836ee9246778964db813d31a3", "score": "0.5322748", "text": "public function testToday()\r\n {\r\n $this->assertToday(getdate(strtotime(\"2000-01-01 00:00:00\")), \"2000-01-01 00:00:00\");\r\n $this->assertToday(getdate(strtotime(\"2000-12-01 00:00:00\")), \"2000-12-01 00:00:00\");\r\n // it has no sense to prove 01 and 12 month with 28 so prove it with february and the result is two proves we can reduced to one\r\n $this->assertToday(getdate(strtotime(\"2000-02-28 00:00:00\")), \"2000-02-28 00:00:00\");\r\n $this->assertToday(getdate(strtotime(\"2000-01-30 00:00:00\")), \"2000-01-30 00:00:00\");\r\n $this->assertToday(getdate(strtotime(\"2000-12-30 00:00:00\")), \"2000-12-30 00:00:00\");\r\n $this->assertToday(getdate(strtotime(\"2000-01-31 00:00:00\")), \"2000-01-31 00:00:00\");\r\n $this->assertToday(getdate(strtotime(\"2000-12-31 00:00:00\")), \"2000-12-31 00:00:00\");\r\n\r\n }", "title": "" }, { "docid": "1f2cd493d0834ace0189d89a28394b81", "score": "0.53226316", "text": "public function isRegistrationPossible(Date $value);", "title": "" }, { "docid": "794c794a6f6a26d92e88f3638e43682d", "score": "0.53202116", "text": "function compCheckSubmissionDate($comp)\n{\n if ($comp->submission_begins > date(\"Y-m-d\")) {\n \n return 'true';\n\n }else {\n\n return 'false';\n\n }\n}", "title": "" }, { "docid": "34f966307a0ba2da629a9306efa30862", "score": "0.531794", "text": "protected function _isCurrent()\n {\n return 1 === preg_match(\"/^[A-HJ-PR-Y]{2}[0-9][0-9][A-HJ-PR-Z]{3}/\", $this->_preparedInput) && 1 !== preg_match(\"/^[A-HJ-PR-Y]{2}(01)/\", $this->_preparedInput);\n }", "title": "" }, { "docid": "89b25220bfe120ab2e02ac642b075da9", "score": "0.53157324", "text": "function hasRenewalDate()\n {\n if (PAYMENT_FEATURE != \"on\") {\n return false;\n }\n if ((CREDITCARDPAYMENT_FEATURE != \"on\") && (INVOICEPAYMENT_FEATURE != \"on\") && (MANUALPAYMENT_FEATURE != \"on\")) {\n return false;\n }\n if ($this->getPrice('monthly') <= 0 && $this->getPrice('yearly') <= 0) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "50cc37fd5de2a1b011e12ce4ebd2fe59", "score": "0.5314828", "text": "public function valid()\n {\n $interval = new DateInterval(sprintf('P%sD', $this->index));\n $current_date = $this->date_range->getStartDate()->add($interval);\n return ($current_date > $this->date_range->getEndDate());\n }", "title": "" }, { "docid": "5c440324d3339c1f8d53cd27fc777db0", "score": "0.53138566", "text": "public function getNextFyStartDate(): DateTimeInterface;", "title": "" }, { "docid": "400fd0c6041fd5bca744a427b27435f9", "score": "0.5312481", "text": "public function dateIsExpired( string $date ) : bool {\n $dateTime = DateTime::createFromFormat( 'Y-m-d H:i:s', $date );\n $now = new DateTime();\n return $dateTime < $now;\n }", "title": "" }, { "docid": "497f8e67fb1819a08d3cd7c5edbb03a6", "score": "0.5277318", "text": "public static function checkIfDateInPast($date, $currentDate = null)\n {\n if (empty($currentDate)) {\n $currentDate = date('Y-m-d');\n }\n\n $datetime1 = new DateTime($date);\n $datetime2 = new DateTime($currentDate);\n\n if ($datetime1 < $datetime2) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "09d23e31538e17e950ecd44318cea370", "score": "0.52763236", "text": "public function isToday() :bool\n {\n return $this->date->format('Y-m-d') === today()->format('Y-m-d');\n }", "title": "" }, { "docid": "a7c5ba825dd25b35e9bda5740cb85ca5", "score": "0.52678204", "text": "function verificarDate($data) {\n if (date('Y-m-d', strtotime($data)) == $data) {\n return true;\n \n } else {\n return false;\n \n }\n \n }", "title": "" }, { "docid": "dbb244d57cac756b390a4eed1ec2e3ba", "score": "0.52629066", "text": "public function validarFecha()\n { \n $fecha1=date(str_replace(\"/\", \"-\", $this->fecha_inicio));\n $fecha2=date(str_replace(\"/\", \"-\", $this->fecha_fin));\n if(strtotime($fecha1)>strtotime($fecha2))\n {\n $this->addError('fecha_inicio','Fecha Inicio no puede ser mayor a Fecha Fin');\n $this->addError('fecha_fin','Fecha Fin no puede ser menor a Fecha Inicio');\n }\n }", "title": "" }, { "docid": "ba82038da30463b23b82f2388e613f09", "score": "0.525571", "text": "public function isDay()\n {\n if ($this->hasFrontPage()) {\n $this->addIndexPage();\n }\n\n $this->add(get_the_date(), false, true);\n }", "title": "" }, { "docid": "e3ff6b75163ccfe906dcb6598b3d8414", "score": "0.52481437", "text": "public function set_last_valid_date($date=NULL)\n\t{\n\t\tif($this->created_at===false) return false;\n\n\t\t$temp_date = $this->get_last_valid_date($date);\n\n\t\t# zero out the times so that we can truly compare\n\t\t$a = $this->zero_time($temp_date,'00:00:01');\n\t\t$b = $this->zero_time($this->created_at,'00:00:01');\n\n\t\t$this->last_valid_date = ($a === $b)? false : $temp_date;\n\t}", "title": "" }, { "docid": "ed2c52b5475f949eec80dd189194eb43", "score": "0.5247184", "text": "public function isToday(Paydate $date): bool\n {\n return $date->equals(Paydate::today());\n }", "title": "" }, { "docid": "c5269b8bbdfd05ac688717bce676dcff", "score": "0.52401114", "text": "function isFlexyTimeActivity($db, $date)\n{\n if ($db->connect()) {\n $strSQL = \"SELECT break_duration,work_duration,start_date,\n end_date,start_time_1,start_time_2,finish_time_1,finish_time_2 \n FROM all_flexy_time_setting WHERE start_date <= '$date'\";\n $resDb = $db->execute($strSQL);\n if ($rowDb = $db->fetchrow($resDb)) {\n return true;\n }\n }\n return false;\n}", "title": "" }, { "docid": "7d8f25f55815dee0e1c54590551938ee", "score": "0.5239088", "text": "public function countNextDay($input)\n {\n// $tomorrow = date(\"$year-$month-$date\", strtotime('tomorrow'));\n// return $tomorrow;\n $datetime = new DateTime(\"$input\");\n $datetime->modify('+1 day');\n return $datetime->format('Y-m-d');\n }", "title": "" }, { "docid": "9692747af547f9d752aa055ba9ee19d5", "score": "0.5236854", "text": "public function passes($attribute, $value)\n {\n if (Carbon::createFromFormat('d-m-Y', $value)){\n if (Carbon::createFromFormat('d-m-Y', $value)<= Carbon::now()){\n return false;\n }else{\n return true;\n }\n }else{\n return false;\n }\n\n\n }", "title": "" }, { "docid": "a7d9fe2e5253e46589785b504e3bd9b0", "score": "0.5235949", "text": "public function hasDueDate();", "title": "" }, { "docid": "8e9b958f88b683f5d7ae0a4ccc88b573", "score": "0.5233451", "text": "function nextDay ($method_name, $params, $app_data)\r\n{\r\n\t$dt = createFromFormat(DateTime::ISO8601, $params[0]->string);\r\n\t$dt->modify('+1 day');\r\n\r\n\t$ret = $dt->format('c');\r\n\txmlrpc_set_type ($ret, \"datetime\");\r\n\t\r\n\treturn $ret;\r\n}", "title": "" }, { "docid": "a7a1ef72538c75e6985adc6ea87ca6e4", "score": "0.5231817", "text": "public function getNextDay()\n {\n return $this->getRelativeDay('+1');\n }", "title": "" }, { "docid": "bd1799c9f3fcbbad4de7bd26c5126f72", "score": "0.52297044", "text": "function offerAlreadyCheck(){\n \n global $CFG,$admin_smarty;\n \n //echo \"<pre>\";print_r($_POST);echo \"</pre>\";\n \n $toDate = $this->getValue('offer_valid_to', $CFG['table']['restaurant_offer'],\"restaurant_id = '\" . $this->filterInput($_POST['restaurant_name']) . \"' AND status = '1' \");\n list($day,$month,$year) = explode(\"-\",$_POST['offer_valid_to']);\n\t\t $enddate = $day.'-'.$month.'-'.$year; \n $toDate = strtotime($toDate);\n $nowToDate = strtotime($enddate);\n \n if($nowToDate < $toDate){\n echo \"Already\";\n }else{\n echo \"Nooffer\";\n } \n }", "title": "" }, { "docid": "cf6cf166182c3ba85cc445679d9b0aca", "score": "0.5223915", "text": "public function getNextPaidDate()\n {\n $date = (isset($this->input_template['move_in_date']))? $this->input_template['move_in_date'] : $this->input_template['date_of_payment'];\n\n return $this->add_dates($this->unix_flip($date, true),$this->getNumberOfMonthsPaid());\n }", "title": "" }, { "docid": "db61098fd9d2f393778ac6b7e2ed28b2", "score": "0.52217275", "text": "function today ($date1, $date2='') {\n if (empty($date2))\n $date2 = time();\n // convert to UNIX timestamp\n if (!is_int($date1))\n $date1 = getTimestamp($date1);\n if (!is_int($date2))\n $date2 = getTimestamp($date2);\n \n if (date('Y-m-d', $date1) == date('Y-m-d', $date2))\n return TRUE;\n else\n return FALSE;\n}", "title": "" }, { "docid": "78dcb8a06fe0bccbd56a264ffbb41861", "score": "0.5219893", "text": "public function dontSeeDateIsNextYear($date) {\n return $this->scenario->runStep(new \\Codeception\\Step\\Assertion('dontSeeDateIsNextYear', func_get_args()));\n }", "title": "" }, { "docid": "c3f013430c80f67bdd6225095b9fff2c", "score": "0.5216569", "text": "public function getNextPaymentDate()\n {\n //Get new payment date\n $office = Office::find(intval(Auth::user()->idoffice));\n $officePayments = Payment::where('idoffice', $office->idoffice)->select('for_month')->get();\n if ($officePayments != null) {\n $lastPayment = $officePayments->max('for_month');\n } else {\n $lastPayment = null;\n }\n\n if ($lastPayment != null) {\n $nextPayment = date('Y-m-d', strtotime($lastPayment . '+1 month'));\n } else {\n $nextPayment = $office->payment_date;\n }\n return $nextPayment;\n //Get new payment date end\n }", "title": "" }, { "docid": "f5bea53cdcc84c2551c2b690ee75de58", "score": "0.5208896", "text": "function is_date_turn_off_past($post_id){\n \n $turn_off = strtotime( get_post_meta($post_id, 'delete_resource', true) );\n $today = strtotime( date('m/d/Y'));\n \n if($turn_off <= $today)\n return true;\n else\n return false;\n}", "title": "" }, { "docid": "0dc7ec9578a3470d2bf4743faba8115a", "score": "0.52074903", "text": "private function _get_next_safe_time() {\n $next_time = $this->current_time + Config::$meeting_length;\n $i = 0;\n while (!$this->finished && !$this->time_is_safe_to_schedule($next_time)) {\n $next_time = $next_time + Config::$meeting_length;\n $i++;\n if ($i > 100000) {\n return false;\n }\n }\n return $next_time;\n }", "title": "" } ]
a763747df16ec70452cf194f9df0b9f5
Get local(on FTP) path
[ { "docid": "fa82f9392378e91ab92d5ec1e4b121fc", "score": "0.7026269", "text": "private function getLocalPath( $path ) {\n\t\tstatic $FTP_root_len = null;\n\t\tif ( null === $FTP_root_len ) {\n\t\t\t$FTP_root_len = strlen( $this->seekFTPRoot() );\n\t\t}\n\t\t$localPath = substr( $path, $FTP_root_len );\n\n\t\treturn $localPath;\n\t}", "title": "" } ]
[ { "docid": "a67eaa6a8f1ca4d88384b40e65bfeb90", "score": "0.706731", "text": "public function get_ftps_webserver_path()\n\t{\n\t\treturn $this->ftps_webserver_path;\n\t}", "title": "" }, { "docid": "2e1b1569d70e6462b8cb9092f1ef4b77", "score": "0.6986534", "text": "function getUrlForUserFTP() {\n\t global $config;\n\t if(substr($config['userFTP'], -1) != '/')\n\t\t $config['userFTP'] = $config['userFTP'] . '/';\n\t $userFtpUrl = str_replace('ftp://', \"ftp://\".$this->name.\"@\" , $config['userFTP'] . $this->name);\n\t return $userFtpUrl;\n\t}", "title": "" }, { "docid": "8ee1de66bb05dc49fb899cbee3e6288b", "score": "0.6960265", "text": "public function getLocalPath();", "title": "" }, { "docid": "ecf4789d2c2c1540656152103d38efd0", "score": "0.68991673", "text": "function get_ftp_calendar_path() {\n\tglobal $ftp_calendar_path;\n\tglobal $calendar_path;\n\t\n\tif ($ftp_calendar_path != '')\n\t\treturn $ftp_calendar_path;\n\telse {\n\t\treturn str_replace (\"\\\\\", \"/\", realpath($calendar_path));\n\t}\n}", "title": "" }, { "docid": "75da5debf00f3dd7ef7f898be3b8a2f9", "score": "0.68602467", "text": "public function getLocalPath()\n {\n return $this->getRootPath() . 'local' . DIRECTORY_SEPARATOR;\n }", "title": "" }, { "docid": "acc7e2c3eb8f15014f76734a3cdfa04f", "score": "0.680622", "text": "public function getLocalPath()\n {\n return $this->pathLocal;\n }", "title": "" }, { "docid": "ff0a74be5e2f4aaf1cd5b993ea115337", "score": "0.6768164", "text": "public function getLocalPath(): string\n {\n return $this->path;\n }", "title": "" }, { "docid": "7e644b81b70d55698d3ade77f30dbc06", "score": "0.67565566", "text": "public function getLocalPath()\n {\n return $this->localPath;\n }", "title": "" }, { "docid": "b0c7b6c357cf6a5dfb3445a35aff01f3", "score": "0.66908175", "text": "public function getLocalPath()\n {\n return $this->settings->getPathLocal();\n }", "title": "" }, { "docid": "2360628981475972ed0815ad4f0c3d48", "score": "0.66417915", "text": "public function getCurrentDirectory()\n {\n return ftp_pwd($this->connectionId);\n }", "title": "" }, { "docid": "6e0c641eaa947b1015447a7eeb6ce288", "score": "0.6586768", "text": "function get_local_path($webid) {\n // verify if it's a local user or not\n if ($this->is_local($webid)) {\n $location = strstr($webid, $_SERVER['SERVER_NAME']);\n $path = explode('/', $location);\n $path = $path[1] . \"/\" . $path[2];\n return $path;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "c70e682603355df1d249b3ad9b3af416", "score": "0.64885336", "text": "public function getLocalRootPath()\n {\n return $this->directory.'/'.$this->getLocalFileName();\n }", "title": "" }, { "docid": "11063cf0d822284047ebdd87483aedf9", "score": "0.64505374", "text": "public function getLocalPath()\n {\n return '/' . ltrim($this->localRoot, '/') . '/' . ltrim($this->relativePath, '/');\n }", "title": "" }, { "docid": "246389f76b88117fe50c0e51d052e3fd", "score": "0.6409786", "text": "public static function get_directory(): string\n {\n return Options::instance()->get('local_dir') ?: '';\n }", "title": "" }, { "docid": "8ae5aa1a4a63b6da91d9ab9ee8b945b4", "score": "0.63939446", "text": "public function getLocalPath()\n {\n return $this->getValue('nb_site_local_path');\n }", "title": "" }, { "docid": "bbf0dbaa1c6ee95d0801a53a5542f54b", "score": "0.6331495", "text": "public function getFileSystemPath();", "title": "" }, { "docid": "5c8a2c2022824cf7012e31a15a8cdd30", "score": "0.632794", "text": "public function getRealPath(){}", "title": "" }, { "docid": "4d17453336b1ce431ba7ad01c5e82323", "score": "0.6276494", "text": "public function getCurrentRealPath(): string;", "title": "" }, { "docid": "8d022c572d3a22d4bb499bba8d38cbef", "score": "0.6248611", "text": "public static function get_path() \r\n\t{\r\n\t\treturn MP_PATH . 'tmp';\r\n\t}", "title": "" }, { "docid": "e5f8a4b25aa0484e05300f9a5ea37ae9", "score": "0.61474144", "text": "public static function getRemoteDir()\n {\n $connection = static::getConnection(\n 'filesystem',\n static::get('filesystem.default')\n );\n\n switch($connection['driver']) {\n case 's3':\n return 'https://s3.amazonaws.com/' . $connection['bucket'] . '/';\n } // @codeCoverageIgnore\n }", "title": "" }, { "docid": "4b2f7347b7eb4cc048319a2d3732cf09", "score": "0.6139815", "text": "public function getHost()\n {\n return Mage::getStoreConfig(self::XML_CONFIG_PATH_FTP_HOST);\n }", "title": "" }, { "docid": "0183118b8e35b34f8e325f84f7abd2aa", "score": "0.6051949", "text": "public function getRealPath() {\n return hphp_splfileinfo_getrealpath($this);\n }", "title": "" }, { "docid": "de0d4a4e7a15efcb243e59a9e1efa248", "score": "0.6029453", "text": "function _construct_path ( $path ) {\n\n if (substr($path, 0, 1) != \"/\") {\n $actual_dir = ftp_pwd($this->_handle);\n if (substr($actual_dir, (strlen($actual_dir) - 2), 1) != \"/\") {\n $actual_dir .= \"/\";\n }\n $path = $actual_dir.$path;\n }\n return $path;\n }", "title": "" }, { "docid": "87dd8e79d32b1f08d0b408bab3113767", "score": "0.6022053", "text": "public function getFilePathWeb()\n {\n return null === $this->filePath ? null : $this->getUploadDir() . '/' . $this->filePath;\n }", "title": "" }, { "docid": "945f93e5b993920b1a7a5f8333a5e876", "score": "0.5982338", "text": "public function getFtpLocation($store = null)\n {\n return Mage::getStoreConfig(self::XML_PATH.'ftp_location', $store);\n }", "title": "" }, { "docid": "af1bba78601fd89735fad2559e7164ec", "score": "0.59617233", "text": "protected function getLocalFilesystemPath($path)\r\n\t{\r\n\t\tif(!isset(static::$pointer_tree[$path]))\r\n\t\t\tstatic::$pointer_tree[$path] = tmpfile();\r\n\t\t\r\n\t\tif($metadata = stream_get_meta_data(static::$pointer_tree[$path]))\r\n\t\t\treturn $metadata[\"uri\"];\r\n\t\t\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "6dad6f1ace4e2d4c8cad13c4918801ed", "score": "0.5957452", "text": "public function localToRemotePath($localPath);", "title": "" }, { "docid": "9b21bc7bb6c1d3bb443e25eb73c2520a", "score": "0.5953536", "text": "public function get_path();", "title": "" }, { "docid": "1258ec839907979ca9c6e28f8e3209c3", "score": "0.5938307", "text": "function local_path($fullpath) {\n global $root_length;\n return substr($fullpath, $root_length);\n}", "title": "" }, { "docid": "abf9c8f8518894964422c2e3a99ee96f", "score": "0.5924743", "text": "public function getRealPath()\n {\n return $this->realPath;\n }", "title": "" }, { "docid": "7e2201157c64aaff671ce11fc269a47b", "score": "0.5919364", "text": "protected function getLocalCopiesFilesDir(): string\n {\n $dbDir = $this->getLocalCopiesDir() . DIRECTORY_SEPARATOR . 'files';\n\n return $this->createDirIfNotExists($dbDir);\n }", "title": "" }, { "docid": "5eda9da866ea6d643c43891848f1cacc", "score": "0.5913586", "text": "public function getFileLocation()\n {\n return '../data/uploads/' . $this->token . '.upload';\n }", "title": "" }, { "docid": "a80d5bb2322fa11eb8d6fcc641df4f43", "score": "0.59107053", "text": "static function buildFTPUrl($filepath=NULL)\n {\n $url = sprintf(\"ftp://%s:%s\", rawurlencode(env(\"FTP_USERNAME\")), rawurlencode(env(\"FTP_PASSWORD\")));\n $url .= sprintf(\"@%s\", env(\"FTP_HOST\"));\n\n if($filepath)\n $url .= \"/\".$filepath;\n\n return $url;\n }", "title": "" }, { "docid": "400cd10e6e26023014d2ee4ffbda36b3", "score": "0.5878847", "text": "public function getPath(string $localPath);", "title": "" }, { "docid": "70f178dc19167196530718d06a15b92a", "score": "0.58774203", "text": "private function path()\r\r\n\t{\r\r\n\t\treturn TL_PATH;\r\r\n\t}", "title": "" }, { "docid": "6d38f50f32ae6e95cf9f01e18ce25f22", "score": "0.5866862", "text": "function file_path() {\n $path = (!empty($_GET['path']))? $_GET['path'] : '';\n $mainPath = $_SESSION['base_path_folder'] . $path;\n return $mainPath;\n }", "title": "" }, { "docid": "d0223fbc08e1ed65c12be2c2e10671e4", "score": "0.5861144", "text": "protected function getLocalRootPath(): string\n {\n return Config::get('filesystems.disks.local.root', storage_path('app'));\n }", "title": "" }, { "docid": "ef4ee0583283b6de1ccf252b55898cd8", "score": "0.5846347", "text": "public function getLocalPath()\r\n {\r\n return $this->_mootolsLibraryPath;\r\n }", "title": "" }, { "docid": "46326b59fdcd010711072298e9c9a9f6", "score": "0.58408636", "text": "public function getWebPath()\n {\n return null === $this->path ? null : $this->getUploadDir().'/'.$this->path;\n }", "title": "" }, { "docid": "efe9666bd31564c7918f2224bf85dde5", "score": "0.58254683", "text": "public function getLocalPath()\n {\n return _PS_MODULE_DIR_.$this->name.'/';\n }", "title": "" }, { "docid": "4a2e73417ed7ba35643118d1b45c12f6", "score": "0.5823375", "text": "function pwd() \n\t{\n\t\treturn ftp_pwd($this->_connectid);\n\t}", "title": "" }, { "docid": "24150b70b4cf851b2ca46ce28d32590b", "score": "0.58176905", "text": "public function getMooreLocalPath()\r\n {\r\n \treturn $this->_mooreLibraryPath;\r\n }", "title": "" }, { "docid": "76ab0c9678778859808b56633b2085e0", "score": "0.5805966", "text": "public function getPath(){\n\t\t\t\t$no_host = $this->uriNoHost();\n\n\t\t\t\treturn explode('?', $no_host)[0];\n\t\t\t}", "title": "" }, { "docid": "7faf914a18b15b408a82a83eaab49581", "score": "0.5787393", "text": "private function getPath() {\n return str_replace('%u', $this->store, VCARDDIR_DIR);\n }", "title": "" }, { "docid": "f86a2af3d44b73121f012d44d35ec414", "score": "0.57818395", "text": "function file_ftp_get ( $p_conn_id, $p_local_filename, $p_remote_filename ) {\n\t\tset_time_limit(0);\n\t\t$download = ftp_get( $p_conn_id, $p_local_filename, $p_remote_filename, FTP_BINARY);\n\t}", "title": "" }, { "docid": "85fb063d8bc0cef350fd8e6386124ef9", "score": "0.5778275", "text": "public function getRealpath()\n\t{\n\t\t$path = parent::getRealpath();\n\t\t$path = $path ?: $this->getPath().'/'.$this->getBasename();\n\n\t\treturn $path;\n\t}", "title": "" }, { "docid": "a7ed34739f2339ffe3c340311a035d4c", "score": "0.57777166", "text": "public function getUploadPath()\n {\n\t\t\t$this->setupConnection();\n\n\t include_once('proxy/databaseProxy.php');\n\n\t /*\n\t * Load the proxy and get the data from the database.\n\t */\n\t $proxy = new databaseProxy($this->_registry);\n\t $proxy->setTable(Types::SETTINGS_TABLE);\n\t $data = $proxy->getRows();\n\n\t while ($row = mysql_fetch_array($data)) $uploadPath = $row['uploadPath'];\n\n\t return $uploadPath;\n }", "title": "" }, { "docid": "fce01d24a1c84787a98d65bcb3893697", "score": "0.5766971", "text": "public function getFileSystemRootPath()\n {\n return $this->getDriver()->getAdapter()->getPathPrefix();\n }", "title": "" }, { "docid": "4017a85d1620e4a0b282b91a56ab0014", "score": "0.575697", "text": "public function getFullUploadPath()\n {\n return realpath($this->getFullWebPath().DIRECTORY_SEPARATOR.$this->getUploadPath());\n }", "title": "" }, { "docid": "5e1c475648037a81955e2f57cb466114", "score": "0.5754843", "text": "public function getAbsolutePath(){\n return public_path() . '/' . $this->destinationPath;\n }", "title": "" }, { "docid": "01504ffefa98d5b539cea3357afee3fb", "score": "0.575211", "text": "public static function getLocalFoundationLocation() {\r\n\t\tif (!isset(self::$__localFoundationFolder)) {\r\n\t\t\t$localConfigLocation = dirname(__FILE__);\r\n\t\t\t\r\n\t\t\tself::$__localFoundationFolder = \"$localConfigLocation/foundation/\";\r\n\t\t}\r\n\t\t\r\n\t\treturn self::$__localFoundationFolder;\r\n\t}", "title": "" }, { "docid": "1d317fb2ed5c1926ebdb4873790c4c49", "score": "0.5751808", "text": "protected function getUploadAbsolutePath()\n {\n return __DIR__ . '/../../../../web/' . $this->getUploadPath();\n }", "title": "" }, { "docid": "1a50299d16c11301f96d40b6bcbaedca", "score": "0.5728091", "text": "public function getPath() {\n return hphp_splfileinfo_getpath($this);\n }", "title": "" }, { "docid": "6ca10207dc0c6a71eed8ac61a4c8d71e", "score": "0.572491", "text": "public function getRelativePath(): string;", "title": "" }, { "docid": "4f8cc130858ca0e6a5a259708529ee73", "score": "0.5723265", "text": "public static function getLocalConfigPath()\n {\n $path = self::getByDomainConfigPath();\n if ($path) {\n return $path;\n }\n return PIWIK_USER_PATH . self::DEFAULT_LOCAL_CONFIG_PATH;\n }", "title": "" }, { "docid": "4f8cc130858ca0e6a5a259708529ee73", "score": "0.5723265", "text": "public static function getLocalConfigPath()\n {\n $path = self::getByDomainConfigPath();\n if ($path) {\n return $path;\n }\n return PIWIK_USER_PATH . self::DEFAULT_LOCAL_CONFIG_PATH;\n }", "title": "" }, { "docid": "b425ffe3f550d57b6d76fbc20265fc8b", "score": "0.57155716", "text": "function findFtpRoot($user, $pass, $host='127.0.0.1', $port='21')\n\t{\n\t\tjimport('joomla.client.ftp');\n\t\t$ftpPaths = array();\n\n\t\t// Connect and login to the FTP server (using binary transfer mode to be able to compare files)\n\t\t$ftp =& JFTP::getInstance($host, $port, array('type'=>FTP_BINARY));\n\t\tif (!$ftp->isConnected()) {\n\t\t\treturn JError::raiseError('31', 'NOCONNECT');\n\t\t}\n\t\tif (!$ftp->login($user, $pass)) {\n\t\t\treturn JError::raiseError('31', 'NOLOGIN');\n\t\t}\n\n\t\t// Get the FTP CWD, in case it is not the FTP root\n\t\t$cwd = $ftp->pwd();\n\t\tif ($cwd === false) {\n\t\t\treturn JError::raiseError('SOME_ERROR_CODE', 'NOPWD');\n\t\t}\n\t\t$cwd = rtrim($cwd, '/');\n\n\t\t// Get list of folders in the CWD\n\t\t$ftpFolders = $ftp->listDetails(null, 'folders');\n\t\tif ($ftpFolders === false || count($ftpFolders) == 0) {\n\t\t\treturn JError::raiseError('SOME_ERROR_CODE', 'NODIRECTORYLISTING');\n\t\t}\n\t\tfor ($i=0, $n=count($ftpFolders); $i<$n; $i++) {\n\t\t\t$ftpFolders[$i] = $ftpFolders[$i]['name'];\n\t\t}\n\n\t\t// Check if Joomla! is installed at the FTP CWD\n\t\t$dirList = array('administrator', 'components', 'installation', 'language', 'libraries', 'plugins');\n\t\tif (count(array_diff($dirList, $ftpFolders)) == 0) {\n\t\t\t$ftpPaths[] = $cwd.'/';\n\t\t}\n\n\t\t// Process the list: cycle through all parts of JPATH_SITE, beginning from the end\n\t\t$parts\t\t= explode(DS, JPATH_SITE);\n\t\t$tmpPath\t= '';\n\t\tfor ($i=count($parts)-1; $i>=0; $i--)\n\t\t{\n\t\t\t$tmpPath = '/'.$parts[$i].$tmpPath;\n\t\t\tif (in_array($parts[$i], $ftpFolders)) {\n\t\t\t\t$ftpPaths[] = $cwd.$tmpPath;\n\t\t\t}\n\t\t}\n\n\t\t// Check all possible paths for the real Joomla! installation\n\t\t$checkValue = file_get_contents(JPATH_LIBRARIES.DS.'joomla'.DS.'version.php');\n\t\tforeach ($ftpPaths as $tmpPath)\n\t\t{\n\t\t\t$filePath = rtrim($tmpPath, '/').'/libraries/joomla/version.php';\n\t\t\t$buffer = null;\n\t\t\t@$ftp->read($filePath, $buffer);\n\t\t\tif ($buffer == $checkValue)\n\t\t\t{\n\t\t\t\t$ftpPath = $tmpPath;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// Close the FTP connection\n\t\t$ftp->quit();\n\n\t\t// Return the FTP root path\n\t\tif (isset($ftpPath)) {\n\t\t\treturn $ftpPath;\n\t\t} else {\n\t\t\treturn JError::raiseError('SOME_ERROR_CODE', 'Unable to autodetect the FTP root folder');\n\t\t}\n\t}", "title": "" }, { "docid": "3961d462af0fb3532b59b3904f955fb4", "score": "0.57027555", "text": "public function remoteToLocalPath($remotePath);", "title": "" }, { "docid": "a3f32604181001879f07da79ed078cb7", "score": "0.5690612", "text": "public function getFilesystem();", "title": "" }, { "docid": "d3d9fdf6e1b6d94b8122963c7a5dcdee", "score": "0.56878835", "text": "protected function getLocalRootPath()\n {\n return Config::get('filesystems.disks.local.root', storage_path('app'));\n }", "title": "" }, { "docid": "1c6143ada4b7c15e37674f712b11134b", "score": "0.56845796", "text": "public function get_fullpath(){\n\t\treturn $this->path;\n\t}", "title": "" }, { "docid": "03067680178126f1bbb81db5ca6f2f23", "score": "0.5681375", "text": "public function get_ftps_use_ftp()\n\t{\n\t\treturn $this->ftps_use_ftp;\n\t}", "title": "" }, { "docid": "65a40c5d292efbe06b841960ca3a5912", "score": "0.56746304", "text": "public function userTempFolder()\n {\n /** @var \\TYPO3\\CMS\\Core\\Resource\\Folder $folder */\n $folder = $GLOBALS['BE_USER']->getDefaultUploadTemporaryFolder();\n return $folder->getPublicUrl();\n }", "title": "" }, { "docid": "7a0d3a30b55d5e9e8741de5224a65fe0", "score": "0.56735593", "text": "public function getWebPath()\n {\n if (null === $this->getFileAttached()) {\n return null;\n } else {\n return '/' . $this->getUploadDir() . '/' . $this->getFileAttached();\n }\n }", "title": "" }, { "docid": "c923b2dc6d932db1b7d7bfddb9f562e3", "score": "0.56712663", "text": "public function path();", "title": "" }, { "docid": "c923b2dc6d932db1b7d7bfddb9f562e3", "score": "0.56712663", "text": "public function path();", "title": "" }, { "docid": "b8352e952d3ef6805f1f1e7552983174", "score": "0.5662397", "text": "function get_url( $path = '' ){\n $base_url = Flight::request()->base;\n\t$protocol = empty($_SERVER['HTTPS']) ? 'http' : 'https';\n\t$port = $_SERVER['SERVER_PORT'];\n\t$disp_port = ($protocol == 'http' && $port == 80 || $protocol == 'https' && $port == 443) ? '' : \":$port\";\n\t$domain = $_SERVER['SERVER_NAME'];\n\t$home_url = \"${protocol}://${domain}${disp_port}${base_url}\";\n\n\treturn trailingslashit( $home_url ) . ltrim( $path, '/\\\\' );\n}", "title": "" }, { "docid": "50a38cfae93c6ddb5369387fb31d1da8", "score": "0.5661151", "text": "public static function get_server_path(){\n\t\n\t\treturn self::get_instance()->session_server_path;\n\t\n\t}", "title": "" }, { "docid": "7e41139f889780e522fa94c5bebab93b", "score": "0.5649835", "text": "public function it_uploads_a_file_via_ftp($host, $userName, $userPass, $remoteFilePath, $localFilePath);", "title": "" }, { "docid": "e188dac649b22fb343931947db7750e4", "score": "0.5642012", "text": "protected function getPath() {\r\n $path = \"{$this->path}/\";\r\n return $path;\r\n }", "title": "" }, { "docid": "df171e9e05c2e49ab6232ee8a46bf7c4", "score": "0.56413275", "text": "public function getDirectoryPath() {\n return variable_get('file_public_path', conf_path() . '/files');\n }", "title": "" }, { "docid": "7e56a4afdfbd6cab81d06d8d1f2212c7", "score": "0.5639467", "text": "function getPathOfRestore()\n {\n $fullpathofimport='/pathtomysql/mysql';\n\n $resql=$this->query('SHOW VARIABLES LIKE \\'basedir\\'');\n if ($resql)\n {\n $liste=$this->fetch_array($resql);\n $basedir=$liste['Value'];\n $fullpathofimport=$basedir.(preg_match('/\\/$/',$basedir)?'':'/').'bin/mysql';\n }\n return $fullpathofimport;\n }", "title": "" }, { "docid": "a858205b0e62efb16761694b3d73328e", "score": "0.56319016", "text": "public function path() {\n return $this->conform_dir( $this->path );\n }", "title": "" }, { "docid": "65dccfaaf8441943958947198ed316a8", "score": "0.563103", "text": "public function getRealPath() {\r\n\t\t$nodeAlbum = $this->getParent();\r\n\t\t$nodeJukebox = $nodeAlbum->getParent()->getParent();\r\n\t\t$sRealPath = $nodeJukebox->getProperty('config_realpath').$nodeAlbum->getProperty('info_relpath').$this->getProperty('info_filename');\r\n\t\treturn ($sRealPath);\r\n\t}", "title": "" }, { "docid": "0126150288ed4251c9b88cf72d4b1391", "score": "0.5630571", "text": "public function getFullPath()\n {\n /*if (file_exists($this->getCachedPath())) {\n return $this->getCachedPath();\n }*/\n return $this->filePath;\n }", "title": "" }, { "docid": "0354db3a892cb50c94229322a4146370", "score": "0.5624221", "text": "public function download($con_ftp, $remote_file) {\n\t\t\tdate_default_timezone_set('America/Sao_Paulo');\n\t\t\t$local_file = 'temp/temp-'.date(\"Y-m-d H-i-s\").'.'.$this->extensao;\n\t\t\t$handle = fopen($local_file, 'w');\n\t\t\tftp_fget($con_ftp, $handle, $remote_file, FTP_BINARY, 0);\n\t\t\treturn $local_file;\n\t}", "title": "" }, { "docid": "d6895b1676ae564ccb70e4f7237254e8", "score": "0.5616684", "text": "abstract public function fileServerPath($fileName);", "title": "" }, { "docid": "6fe9eec2308ffdea4fd6fa378a9986ca", "score": "0.56103283", "text": "public function getFtpHost($store = null)\n {\n return Mage::getStoreConfig(self::XML_PATH.'ftp_host', $store);\n }", "title": "" }, { "docid": "dc8a4424d136c6e657cdb4d82d0020e0", "score": "0.5608072", "text": "private function getPath(){\n\t\t$this->_path = FVN_PATH . 'includes/admin/' .$this->name .'/';\n\t\treturn $this->_path;\n\t}", "title": "" }, { "docid": "42b51ae4f22c9a4b691f688c4863b8c3", "score": "0.5605109", "text": "protected function getTmpDownloadDir()\r\n {\r\n $root = __DIR__ . '/../../../../web/';\r\n $downloadDir = $this->container->getParameter('media.tmp_download_dir'); \r\n return (substr($downloadDir, 0, 1) === '/' ? '' : $root) . $downloadDir . (substr($downloadDir, -1) === '/' ? '' : '/');\r\n }", "title": "" }, { "docid": "910dbbf5230985fabdc05f61eec9ef53", "score": "0.56040657", "text": "public function realpath(): string\n {\n return realpath($this->root);\n }", "title": "" }, { "docid": "3eaf844650ed8e458d05be6dafd64f82", "score": "0.5603071", "text": "public function getPath($host = false)\n\t{\n\t\tif ($host) return DOCROOT.'doc'.DS.$this->atividade->id.DS.$this->arquivo;\n\t\telse return '/doc/'.$this->atividade->id.'/'.$this->arquivo;\n\t}", "title": "" }, { "docid": "bbb9f62e3a3c9a591281a8c5bbcc43d3", "score": "0.5596762", "text": "public function getPath()\n {\n return $this->path ?: '/';\n }", "title": "" }, { "docid": "66bd42b0528e1f469689c4f83e41a07d", "score": "0.55966574", "text": "public function get_full_path() {\n\t\treturn $this->get_base_location() . $this->get_file();\n\t}", "title": "" }, { "docid": "38c3ca1c5165a8d8526f69d1c5a80d34", "score": "0.55922365", "text": "public function getAbsolutePath()\n {\n return null === $this->path ? null : $this->getUploadRootDir().'/'.$this->path;\n }", "title": "" }, { "docid": "86c0a3af32539a8356a0385d2c2dd3ca", "score": "0.558778", "text": "public function getPath()\n {\n return $this->getPublicPath().$this->getPartitionDirectory().$this->name;\n }", "title": "" }, { "docid": "0a97618437f7f91af47a0fb15db49866", "score": "0.55823064", "text": "public function getRelativePath();", "title": "" }, { "docid": "dd7b9b3dbef37b4c0a2dca6aa5864254", "score": "0.55738217", "text": "public function getAbsolutePath()\n {\n if (null === $this->getFileAttached()) {\n return null;\n } else {\n return $this->getUploadRootDir() . '/' . $this->getFileAttached();\n }\n }", "title": "" }, { "docid": "a063138e9af6b493ba6131a3346645b4", "score": "0.5562588", "text": "function dirPath() { return (\"../../../../\"); }", "title": "" }, { "docid": "39edb2e7d958f3e2fc8d51ecf5838452", "score": "0.5561701", "text": "public function getFtpPwd()\n {\n $dir = FALSE;\n\n if($this->_ftpConnection !== FALSE)\n {\n try {\n $dir = ftp_pwd($this->_ftpConnection);\n } catch(Exception $e) {\n throw new L8M_Exception(\"FtpTools::getFtpPwd : \" . $e->getMessage());\n }\n }\n\n return $dir;\n }", "title": "" }, { "docid": "32493a936feddc9d75438229f4e5bdc4", "score": "0.5559619", "text": "protected function getPath() {\n return preg_replace('/^' . preg_quote(INSTALLDIR, '/') . '\\//', '', dirname(__FILE__));\n }", "title": "" }, { "docid": "2f5aafdd3c964744c0f0573d94f2d674", "score": "0.55574906", "text": "protected function getLocalCopiesDir(): string\n {\n $localCopies = $this->getConfig()->get('local_copies');\n\n return $this->createDirIfNotExists($localCopies);\n }", "title": "" }, { "docid": "b3611fa149fe7ff0207562b99c6a4a89", "score": "0.5555913", "text": "public function getWebPath(): string;", "title": "" }, { "docid": "b83770a97992a73a47a3a5dcba0966e1", "score": "0.5546206", "text": "static public function getCurrentURLPathFile()\n {\n if (ROOT_URL) {\n return substr_replace($_SERVER['PHP_SELF'], '', 0, strlen(ROOT_URL));\n } else {\n return $_SERVER['PHP_SELF'];\n }\n }", "title": "" }, { "docid": "15258075f98602a04b0bcbdb10dd0135", "score": "0.5545367", "text": "public function getPath(): string;", "title": "" }, { "docid": "15258075f98602a04b0bcbdb10dd0135", "score": "0.5545367", "text": "public function getPath(): string;", "title": "" }, { "docid": "15258075f98602a04b0bcbdb10dd0135", "score": "0.5545367", "text": "public function getPath(): string;", "title": "" }, { "docid": "15258075f98602a04b0bcbdb10dd0135", "score": "0.5545367", "text": "public function getPath(): string;", "title": "" }, { "docid": "e752791f4d98142a364916f9f114c51c", "score": "0.5544102", "text": "public function getPathname() {\n return hphp_splfileinfo_getpathname($this);\n }", "title": "" }, { "docid": "caeb1ada819f851dcfa6e468c836ac2e", "score": "0.5542841", "text": "function ftp_pwd($ftp_stream){}", "title": "" } ]
501ef6ddd3ece9a4d13243062f4960e3
Load the meta data for this record
[ { "docid": "81aa420f95c3e37ca5dd6531b64c5dd6", "score": "0.79164976", "text": "protected function loadMetaData()\n {\n $rows = (new Query)\n ->select('*')\n ->from($this->metaTableName())\n ->where([\n self::tableName() . '_id' => $this->{$this->getPkName()}\n ])\n ->all();\n\n $this->metaData = $rows;\n }", "title": "" } ]
[ { "docid": "7cd8d236c71e9df7e707129fd7d6e70b", "score": "0.7367214", "text": "static function loadMeta() {\r\n\t\t//Load defaults\r\n\t\t// self::$_meta = Art_Model_Meta::getDefaults();\r\n\r\n\t\t$metas = Art_Model_Meta::fetchAllCurrLayer();\r\n\t\tforeach($metas as $meta) {\r\n\t\t\tself::$_meta[$meta->key] = $meta->getContent();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c69b0e73d45108439292abc8f6190c58", "score": "0.7049477", "text": "abstract function loadMeta($Meta);", "title": "" }, { "docid": "e11d3239acc599840656be7dd4fbe3be", "score": "0.70040375", "text": "protected function loadCustomMetadata()\n {\n //we are assuming that the reader has already been loaded with the metadata file, since this function should only be called from \n $reader = $this->getNfoReader();\n $this->year = $reader->year !== null ? $reader->year : \"\";\n $this->runtime = $reader->runtime;\n }", "title": "" }, { "docid": "79f464fad86ed1acab6b3b3e39298d73", "score": "0.6629256", "text": "public function load()\n {\n $this->metadataList = array();\n \n $result = $this->database->query( \"\n SELECT\n metadata_name AS name,\n metadata_value AS value\n FROM\n `{$this->tbl['library_metadata']}`\n WHERE\n resource_id = \" . $this->database->escape( $this->resourceId )\n );\n \n foreach( $result as $line )\n {\n $name = $line[ 'name' ];\n $value = $line[ 'value' ];\n \n if ( $name == self::COLLECTION || $name == self::KEYWORD )\n {\n $this->metadataList[ $name ][] = $value;\n }\n else\n {\n $this->metadataList[ $name ] = $value;\n }\n }\n }", "title": "" }, { "docid": "609acfb425237daf961b83098dd57364", "score": "0.65028745", "text": "protected function get_meta_data()\n {\n }", "title": "" }, { "docid": "2934a27a40070d715073f161509fa80d", "score": "0.64981186", "text": "public function getMetaData(){ return $this->_META_DATA;}", "title": "" }, { "docid": "d33f6302a04bb068b6e5c05fd2334dd3", "score": "0.6316224", "text": "public function read_meta( &$data ) {\n\t\t// TODO check where and how this data are used\n\t}", "title": "" }, { "docid": "74f2818cce1dfbabdad74e5b3a0fd9b8", "score": "0.6252041", "text": "abstract function readMetadata();", "title": "" }, { "docid": "29d50fb2f2826c09edcaec2f800187c9", "score": "0.62401086", "text": "private function load_core_meta() {\r\n\t\t/* Load core fields config meta */\r\n\t\tif (!is_array($this->fields_meta) || empty( $this->fields_meta)) {\r\n\t\t\t$this->fields_meta = include('meta/wcff-meta.php');\r\n\t\t}\r\n\t\t/* Load common config meta for all fields */\r\n\t\tif (!is_array($this->common_meta) || empty($this->common_meta)) {\r\n\t\t\t$this->common_meta = include('meta/wcff-common-meta.php');\r\n\t\t}\r\n\t\t/* Load common config meta for admin fields */\r\n\t\tif (!is_array($this->wccaf_common_meta) || empty($this->wccaf_common_meta)) {\r\n\t\t\t$this->wccaf_common_meta = include('meta/wcff-common-wccaf-meta.php');\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d80d601695064d7f0b578ede8d95d25f", "score": "0.61611956", "text": "function load() {\n\t\t# Global Variables\n\t\tglobal $_db;\n\t\t\n\t\t# Load Attributes\n\t\t$this->get_attributes();\n\t\t\n\t\t# Check if Object exists in Database\n\t\tif ($this->exists()) {\n\t\t\t# Get Data\n\t\t\t$query\t\t\t\t\t\t\t\t\t\t\t\t\t\t= \"\tSELECT\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tFROM\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t`{$this->table}`\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t`{$this->uid_field}` = '{$this->uid}'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\";\n\t\t\t$data\t\t\t\t\t\t\t\t\t\t\t\t\t\t= $_db->fetch_one($query);\n\t\t\t\n\t\t\t# Load Data\n\t\t\t$data_bits\t\t\t\t\t\t\t\t\t\t\t\t\t= get_object_vars($data);\n\t\t\tforeach ($data_bits as $key => $value) {\n\t\t\t\t$this->$key\t\t\t\t\t\t\t\t\t\t\t\t= $value;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b428be1f0e57647e4514ff45e9205b2a", "score": "0.61195827", "text": "public function getMetaData();", "title": "" }, { "docid": "9fd9e11d1e81e64d7c0c05450f4c37c9", "score": "0.6116949", "text": "public function meta(){\n $data = array();\n $this->template->title('Meta Data')\n ->build('admin/meta', $data);\n }", "title": "" }, { "docid": "5a789c72155a918709ac2d6864b99e96", "score": "0.60605013", "text": "public function meta() {\n $table = $this->table;\n\n if( !array_key_exists($table, $this->meta_data) ) {\n $path = $this->dir . $table . '/meta.php';\n if( !file_exists($path) )\n return NULL;\n\n $this->meta_data[$table] = $this->read($path, false);\n }\n\n return $this->meta_data[$table];\n }", "title": "" }, { "docid": "b5a895a723ffae2d8b6ebc20f90f2e81", "score": "0.6039547", "text": "public function fetchMasterMeta(){\n\t\t$ids = $this->collections['master']->getIds();\n\t\t$collection = $this->slave->loadIn($this->getMasterColumn(), $ids);\n\t\t$this->collections['slave'] = $collection;\n\t}", "title": "" }, { "docid": "82b16039528e2b6e4cfcc5b2bef8699c", "score": "0.6017719", "text": "public function reloadMetaData()\n {\n $this->metaData->reloadCache();\n }", "title": "" }, { "docid": "17cdd9af98718b9b58a49fd52dc3b135", "score": "0.60123956", "text": "protected function modelsMeta()\n {\n $config = $this->config;\n $this->di->set('modelsMetadata', function () use ($config) {\n return new Memory(['metaDataDir' => $config->application->cacheDir . 'metaData/']);\n });\n }", "title": "" }, { "docid": "9ea705b184703d02b1e589723b3327e9", "score": "0.59857637", "text": "function local_metadata_load_data($instance, $contextlevel) {\n global $DB;\n\n if ($fields = $DB->get_records('local_metadata_field', ['contextlevel' => $contextlevel])) {\n foreach ($fields as $field) {\n $newfield = \"\\\\metadatafieldtype_{$field->datatype}\\\\metadata\";\n $formfield = new $newfield($field->id, $instance->id);\n $formfield->edit_load_instance_data($instance);\n }\n }\n}", "title": "" }, { "docid": "777d59468496a01eba57f91a8341f2ea", "score": "0.5955346", "text": "protected function get_meta() {\n\n\t\t//* Go fetch the meta from the database\n\t\t$meta = get_post_meta( $this->post_id, $this->meta_key, $this->is_single );\n\n\t\t//* Shift $meta off of the 0 index to get at the actual meta array\n\t\t$meta = isset( $meta[0] ) ? $meta[0] : array();\n\n\t\t//* Loop through the meta we expect to receive. If it's in $meta from the database\n\t\t//* store it into the property. Otherwise, store the default value.\n\t\tforeach ( $this->defaults as $sub_key => $default_value ) {\n\t\t\t$this->$sub_key = array_key_exists( $sub_key, $meta )\n\t\t\t\t? $meta[ $sub_key ]\n\t\t\t\t: $default_value;\n\t\t}\n\t}", "title": "" }, { "docid": "522dc2bbf74f0cddb3cc13af0344c997", "score": "0.5947959", "text": "abstract protected function getMeta();", "title": "" }, { "docid": "2a7d4a1878c94252f474aa582543ff5b", "score": "0.5917603", "text": "protected function discoverMetaFields()\n {\n $this->metaFields = Schema::getColumnListing($this->table . '_meta_values');\n }", "title": "" }, { "docid": "675556ac6921f7f87192acae1bb47ef9", "score": "0.59134185", "text": "private function getMeta()\n {\n $this->meta = Storage::isFile($this->cacheFile) ? @stat($this->cacheFile): [];\n }", "title": "" }, { "docid": "90a17de87e44f49761b838e9394654af", "score": "0.58514804", "text": "private function loadFields() {}", "title": "" }, { "docid": "70b654465b98dc32e46c26add7a76e28", "score": "0.5838638", "text": "abstract protected function loadFields();", "title": "" }, { "docid": "08ed5dec69061cb629ca04f5cfb46702", "score": "0.5835989", "text": "function loadPresistents(){\n\t\t$this->persistent_slots = array();\n\t\t$tableInfo = $this->db->metadata($this->table);\n\t\tforeach($tableInfo as $info){\n\t\t\t$fname = $info[\"name\"];\n\t\t\t$this->persistent_slots[] = $fname;\n\t\t\tswitch($info[\"type\"]){\n\t\t\t\tcase 'tinyblob':\n\t\t\t\tcase 'mediumblob':\n\t\t\t\tcase 'blob':\n\t\t\t\tcase 'longblob':\n\t\t\t\tcase 'varbinary':\n\t\t\t\tcase 'binary':\n\t\t\t\t\t$this->binFields[] = $fname;\n\t\t\t}\n\t\t\tif(!isset($this->$fname)){\n\t\t\t\t$this->$fname = \"\";\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7bece84ac5060f9ebd736908cf9a9ff0", "score": "0.5822581", "text": "public function getMeta()\n {\n }", "title": "" }, { "docid": "3d5f7a1663df215601a6b2eadceade3d", "score": "0.57989544", "text": "public function load() {\n\n\t\t$this->data = unserialize(file_get_contents($this->file));\n\t}", "title": "" }, { "docid": "cfe48ad22062fff134bef0bd6f1c802a", "score": "0.5791273", "text": "public function load(){\n\t\t$string = get_post_meta( $this->postID, $this->get_meta_name(), true);\n\t\t$price_spec = unserialize($string);\n\n\t\t$this->pricing = array();\n\t\tif(isset($price_spec['pricing'])){\n\t\t\tforeach ($price_spec['pricing'] as $role => $params) {\n\t\t\t\t$this->pricing[$role] = new Lasercommerce_Pricing(unserialize($params));\n\t\t\t}\n\t\t}\n\t\t$this->dynamics = array();\n\t\tif(isset($price_spec['dynamics'])){\n\t\t\tforeach ($price_spec['dynamics'] as $dynamicID => $dynamic) {\n\t\t\t\t$this->dynamics[$dynamicID] = new Lasercommerce_Dynamic(unserialize($dynamic));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3150f4a824e7bb7a6a1e114b0e913f19", "score": "0.5784025", "text": "public function meta()\n {\n return $this->meta;\n }", "title": "" }, { "docid": "3150f4a824e7bb7a6a1e114b0e913f19", "score": "0.5784025", "text": "public function meta()\n {\n return $this->meta;\n }", "title": "" }, { "docid": "69ddacd02525742f5935655e838f407f", "score": "0.57822496", "text": "public function initPageMetadata() {\r\n if ($this->object) {\r\n switch ($this->view) {\r\n case 'content' :\r\n $meta_title = $this->object->meta_title ? $this->object->meta_title : $this->object->title;\r\n if (!$meta_title)\r\n $meta_title = 'Article not found !';\r\n $meta_desc = $this->object->meta_description;\r\n $meta_key = $this->object->meta_keywords;\r\n break;\r\n case 'category' :\r\n $meta_title = $this->category->meta_title ? $this->category->meta_title : $this->category->name;\r\n if (!$meta_title)\r\n $meta_title = $this->l('Articles!');\r\n $meta_desc = $this->category->meta_description;\r\n $meta_key = $this->category->meta_keywords;\r\n break;\r\n case 'tag':\r\n $meta_title = $this->pagetitle;\r\n $meta_desc = $this->pagetitle;\r\n $meta_key = $this->pagetitle;\r\n default :\r\n $meta_title = $this->pagetitle;\r\n $meta_desc = $this->pagetitle;\r\n $meta_key = $this->pagetitle;\r\n break;\r\n }\r\n $this->context->smarty->assign('meta_title', $meta_title);\r\n $this->context->smarty->assign('meta_description', $meta_desc);\r\n $this->context->smarty->assign('meta_keywords', $meta_key);\r\n }\r\n }", "title": "" }, { "docid": "38f5269b63ffa0342fbce8c6163b2c4b", "score": "0.5778894", "text": "public function load() {\n\t\tparent::load();\n\t}", "title": "" }, { "docid": "5dbf3c2f15a26a72728d11d0d3ca40cf", "score": "0.5775745", "text": "public function load() {\n\t\tif ( ! defined( 'WPINC' ) || !$this->_post_id ) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$meta = get_post_custom( $this->_post_id );\n\n\t\t//var_dump( $meta);\n\t\t// $this->perform( State::DRAFT );\n\t\tforeach ( $this->_data as $key=>$value ) {\n\t\t\t// if ($key == 'icons') die('tried to load');\n\t\t\t$this->_data[$key] = isset( $meta[$key] ) ? $meta[$key][0] : null;\n\t\t}\n\t\t// $this->halt( State::DRAFT );\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "cbd3f629b1d6d01ef15b63f3a15dfc9e", "score": "0.5762889", "text": "public function fetchMetadata()\n {\n if (!$this->languages) {\n $this->languages = $this->connection->fetchLanguages();\n }\n }", "title": "" }, { "docid": "e842abc164857587c1b8e43b4904f2f9", "score": "0.5761688", "text": "public function meta() {\n return $this->meta;\n }", "title": "" }, { "docid": "bd97319361550ecb0b563bcba0b51c1e", "score": "0.5754656", "text": "protected function _load(){\n\n\t\t$this->database_fields = ($this->id !== null)?ApineFactory::get_table_row($this->table_name, $this->id):null;\n\t\t$this->database_fields = $this->database_fields[0];\n\t\t$this->field_loaded = 1;\n\t\tif(sizeof($this->modified_fields) > 0){\n\t\t\tforeach($this->modified_fields as $key=>$values){\n\t\t\t\t$this->modified_fields[$key] = false;\n\t\t\t}\n\t\t\t$modified = 0;\n\t\t}\n\n\t}", "title": "" }, { "docid": "e2a67998f64958b6f1a376dc5968d947", "score": "0.5746966", "text": "public function metadata();", "title": "" }, { "docid": "f572c5381d97fc3cf18495c56e788849", "score": "0.5741378", "text": "private function load()\n {\n if ($this->isLoaded) {\n return null;\n }\n $loader = $this->loader;\n $data = $loader($this->id, $this);\n $this->id = $data['id'] ?? $this->id;\n $this->label = $data['label'] ?? null;\n $this->sequences = array_map(function ($sequence) {\n return Sequence::fromArray($sequence);\n }, $data['sequences'] ?? []);\n $this->thumbnail = $data['thumbnail'] ?? [];\n $this->isLoaded = true;\n }", "title": "" }, { "docid": "73be891a19e60e0d3fe1b0bd5f6bc353", "score": "0.5724726", "text": "public function getMetaInformation()\n {\n return $this->metaInformation;\n }", "title": "" }, { "docid": "83add82011b6d57d913e72c6a0d0fc9f", "score": "0.5724008", "text": "public function meta();", "title": "" }, { "docid": "064fe0466345b9ccd2a92c3d5ada451a", "score": "0.5712665", "text": "public function getMetadata();", "title": "" }, { "docid": "064fe0466345b9ccd2a92c3d5ada451a", "score": "0.5712665", "text": "public function getMetadata();", "title": "" }, { "docid": "040a10c3a9640fa2b0446b580bb6a170", "score": "0.5708234", "text": "protected function setupMetaData()\n {\n $this->app->singleton(MetaDataManager::class);\n }", "title": "" }, { "docid": "565a4e327b56b695ca3cf98304aa6864", "score": "0.569392", "text": "public function populate()\n {\n // Get post meta\n $post_meta = RightPress_Help::unwrap_post_meta(get_post_meta($this->id));\n\n // Set properties from meta\n foreach ($this->get_meta_properties() as $key => $type) {\n\n // Check if such field exists\n if (isset($post_meta[$key])) {\n $this->$key = RightPress_Help::cast_to($type, maybe_unserialize($post_meta[$key]));\n }\n else {\n $this->$key = null;\n }\n }\n\n // Populate child-specific properties\n $this->populate_own_properties();\n }", "title": "" }, { "docid": "ff4c0e87e62065727333455d6fb003c4", "score": "0.5668915", "text": "public function load()\n {\n }", "title": "" }, { "docid": "ff4c0e87e62065727333455d6fb003c4", "score": "0.5668915", "text": "public function load()\n {\n }", "title": "" }, { "docid": "ff4c0e87e62065727333455d6fb003c4", "score": "0.5668915", "text": "public function load()\n {\n }", "title": "" }, { "docid": "ff4c0e87e62065727333455d6fb003c4", "score": "0.5668915", "text": "public function load()\n {\n }", "title": "" }, { "docid": "ff4c0e87e62065727333455d6fb003c4", "score": "0.5668915", "text": "public function load()\n {\n }", "title": "" }, { "docid": "ff4c0e87e62065727333455d6fb003c4", "score": "0.5667903", "text": "public function load()\n {\n }", "title": "" }, { "docid": "2b051dcb0481ba67e63dbdc12e447e82", "score": "0.5659559", "text": "public function loadFields();", "title": "" }, { "docid": "d0c7f7ca195f6146c8fbee91038b4436", "score": "0.5657066", "text": "public function set_meta() {\n\n\t\tglobal $post;\n\n\t\tif ( empty( $post ) ) { return; }\n\t\tif ( 'job' != $post->post_type ) { return; }\n\n\t\t//wp_die( '<pre>' . print_r( $post->ID ) . '</pre>' );\n\n\t\t$this->meta = get_post_custom( $post->ID );\n\n\t}", "title": "" }, { "docid": "de11aaae47125adc0f352f7e62a07310", "score": "0.5653215", "text": "public function getMetadata() { return $this->data['metadata']; }", "title": "" }, { "docid": "c387d9c932ac9926506cd038cb925ccb", "score": "0.5636743", "text": "function getMeta() {}", "title": "" }, { "docid": "856b7afabc390da6477e90378d7ef691", "score": "0.56322235", "text": "function getmetaInfo ()\n {\n return $this->_metaInfo ;\n }", "title": "" }, { "docid": "7705d789ab6ae4d126df54d3cb4b8a62", "score": "0.5625652", "text": "protected function LoadData()\n\t{\n\t}", "title": "" }, { "docid": "30fe23e78f01773bd007b4b3f4974ec4", "score": "0.5621681", "text": "public function get_meta_data()\n {\n return $this->object_meta_data;\n }", "title": "" }, { "docid": "0adb98d4e03a77051fb361d76ac075d0", "score": "0.5608618", "text": "function loadData() {\n\t\t\tif(!isset($this->tableName) || !isset($this->idField)) {\n\t\t\t\ttrigger_error(\"Table name and id field names not defined in child class.\", E_USER_ERROR);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn populateDataArray($this->tableName, $this->idField);\n\t\t}", "title": "" }, { "docid": "51dd9218073702a041d69fbb989abf59", "score": "0.56077826", "text": "private function setMeta()\n\t{\n\t\t$this->meta = array(\n\t\t\t'id' => 'social_curator_original_id',\n\t\t\t'type' => 'social_curator_type',\n\t\t\t'user_id' => 'social_curator_user_id',\n\t\t\t'screen_name' => 'social_curator_screen_name',\n\t\t\t'link' => 'social_curator_link',\n\t\t\t'video_url' => 'social_curator_video_url',\n\t\t\t'profile_url' => 'social_curator_profile_url'\n\t\t);\n\t}", "title": "" }, { "docid": "3773c0ff7cf7221798599c6e971ac3f3", "score": "0.56031686", "text": "public function load(string $path) : Metadata;", "title": "" }, { "docid": "ceb2cc3cc69ef9500aee3fb710fb093a", "score": "0.55945355", "text": "public function __construct() {\n\t\t$this->meta = array();\n\t}", "title": "" }, { "docid": "96d8651da7d532a374b122eeb3535309", "score": "0.5593242", "text": "public function getMetaData()\n {\n return $this->metaData;\n }", "title": "" }, { "docid": "a29251922d0af65cdd70c023641678a8", "score": "0.55847275", "text": "private function load_meta_boxes()\n {\n }", "title": "" }, { "docid": "c81331d5843db3927a05bd2008dbcb03", "score": "0.55518234", "text": "public function loadData();", "title": "" }, { "docid": "25aeed0c5bb8b918bc0e62e4a1751f0f", "score": "0.55450815", "text": "public function simple_import($meta_data)\n {\n }", "title": "" }, { "docid": "d24f6822c40319265fe1eb7075a91904", "score": "0.55356365", "text": "public function Metadata();", "title": "" }, { "docid": "0213dd54b82288c63ecd51dedd719293", "score": "0.5530787", "text": "public function Meta() {\n return $this->morphOne('App\\Models\\Location\\Meta', 'location');\n }", "title": "" }, { "docid": "0213dd54b82288c63ecd51dedd719293", "score": "0.5530787", "text": "public function Meta() {\n return $this->morphOne('App\\Models\\Location\\Meta', 'location');\n }", "title": "" }, { "docid": "ec1f6e3097188a7443e202a7d0c63f2b", "score": "0.55058694", "text": "public function meta()\n {\n return array_merge([\n 'resourceName' => $this->resourceName,\n 'hasManyRelationship' => $this->hasManyRelationship,\n 'listable' => true,\n 'singularLabel' => $this->singularLabel ?? Str::singular($this->name),\n ], $this->meta);\n }", "title": "" }, { "docid": "10e4388c126206367fb5c759145a1402", "score": "0.5491659", "text": "public function getMeta()\n {\n return $this->meta;\n }", "title": "" }, { "docid": "10e4388c126206367fb5c759145a1402", "score": "0.5491659", "text": "public function getMeta()\n {\n return $this->meta;\n }", "title": "" }, { "docid": "10e4388c126206367fb5c759145a1402", "score": "0.5491659", "text": "public function getMeta()\n {\n return $this->meta;\n }", "title": "" }, { "docid": "482b3dbdb2973a1adcc37764ecc5cf4c", "score": "0.5490578", "text": "abstract public function load($metadataElement);", "title": "" }, { "docid": "cfa3be3c4eab90e1800aa0930ded6780", "score": "0.5486075", "text": "public function save_meta_data() {\n\t\tif ( ! empty( $this->object->ID ) ) {\n\t\t\t// Get our meta data mapping and iterate through it.\n\t\t\tforeach ( $this->get_meta_keys() as $key => $db_field ) {\n\t\t\t\t$this->update_meta( $key, $this->raw->$db_field );\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "title": "" }, { "docid": "5a3e987156bc908f7b8f56df199f24f1", "score": "0.5453021", "text": "public function load() { }", "title": "" }, { "docid": "eb585143896621d6f4094461d458315a", "score": "0.5446276", "text": "final protected function _load () {\n\t\t\n\t\t$db = new Database();\n\t\t\n\t\tif ($this->id !== null) {\n\t\t\tif (!is_numeric($this->id)) {\n\t\t\t\t$field_id = $db->quote($this->id);\n\t\t\t} else {\n\t\t\t\t$field_id = $this->id;\n\t\t\t}\n\t\t\t\n\t\t\t$database_fields = $db->select(\"SELECT * from $this->table_name where $this->load_field = $field_id\");\n\t\t\t\n\t\t\tif ($database_fields) {\n\t\t\t\t$this->database_fields = $database_fields[0];\n\t\t\t\t$this->field_loaded = 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (sizeof($this->modified_fields) > 0) {\n\t\t\tforeach ($this->modified_fields as $key => $values) {\n\t\t\t\t$this->modified_fields[$key] = false;\n\t\t\t}\n\t\t\t\n\t\t\t$modified = 0;\n\t\t}\n\n\t}", "title": "" }, { "docid": "e2d3c756be979cb1e7e75550a51228dd", "score": "0.5444567", "text": "public function getMeta() {\n return $this->meta;\n }", "title": "" }, { "docid": "e2d3c756be979cb1e7e75550a51228dd", "score": "0.5444567", "text": "public function getMeta() {\n return $this->meta;\n }", "title": "" }, { "docid": "88fa456b39d1337e0cc6a8c9782de341", "score": "0.5434422", "text": "public function load() {\n return parent::load();\n }", "title": "" }, { "docid": "577532ca956ac875584fc9fe805d2fca", "score": "0.54295284", "text": "private function extractMetas() {\n $xyl = new \\Hoa\\Xyl(\n new \\Hoa\\File\\Read('hoa://Application/In/Posts/' . $this->getInputFilename()),\n new \\Hoa\\Http\\Response(),\n new \\Hoa\\Xyl\\Interpreter\\Html(),\n $this->_router\n );\n\n $ownerDocument = $xyl->readDOM()->ownerDocument;\n $xpath = new \\DOMXpath($ownerDocument);\n $query = $xpath->query('/processing-instruction(\\'xyl-meta\\')');\n\n for($i = 0, $m = $query->length; $i < $m; ++$i) {\n\n $item = $query->item($i);\n $meta = new \\Hoa\\Xml\\Attribute($item->data);\n $this->_metas[$meta->readAttribute('name')] = $meta->readAttribute('value');\n\n // remove the PI from the output\n $item->parentNode->removeChild($item);\n }\n\n $buffer = new \\Hoa\\Stringbuffer\\Read();\n $buffer->initializeWith($xyl->readXML());\n $this->_streamName = $buffer->getStreamName();\n }", "title": "" }, { "docid": "d363636816fa6db57fe916b7b573e656", "score": "0.54217595", "text": "public function getLoadedMetadata()\n {\n return $this->loadedMetadata;\n }", "title": "" }, { "docid": "836daac4c6b694f3a047be24f6a8f9f5", "score": "0.5417048", "text": "public function getMetaData() \n {\n return $this->mMetadata;\n }", "title": "" }, { "docid": "f05d8ca9c86effd2cb8008a7ba630ac8", "score": "0.541175", "text": "protected function loadInfo()\n {\n if (is_null($this->filesCache)) {\n $this->filesCache = FileCollection::fromCollection($this);\n }\n \n $this->fileCache = File::fromId(key($this->filesCache));\n $this->uid = $this->fileCache->uid;\n }", "title": "" }, { "docid": "6e88ce5ece1f60f5d9d37b435c718544", "score": "0.5396947", "text": "public function getMetaData()\n {\n if ($this->meta === null) {\n $supportClass = $this->getMetaSupportClass();\n\n if (is_subclass_of($supportClass, 'Aviogram\\DAL\\Meta\\SupportInterface') === false) {\n throw Exception\\Database::invalidMetaSupportClass($this->getName());\n }\n\n $this->meta = new Meta($this, new $supportClass, new Type($this, $this->getTypeMapping()));\n }\n\n return $this->meta;\n }", "title": "" }, { "docid": "9c1e75b09948107dedd271f123c284b2", "score": "0.53895974", "text": "public function load() {\n\t\treturn parent::load();\n }", "title": "" }, { "docid": "4d713b7c8f211a48a96f5ff7a6f8dc82", "score": "0.53864753", "text": "public static function createMetaData();", "title": "" }, { "docid": "0ad623ace4735dc7c2f01214b9176542", "score": "0.5385986", "text": "function header_meta_data()\n\t{\n\t\t$dir = get_template_directory() . '/module/meta/';\n\n\t\tif(file_exists($dir))\n\t\t{\n\t\t\t/* Load Meta data */\n\t\t\t$dir_scan = scandir( $dir );\n\n\t\t\tif(!is_admin())\n\t\t\t{\n\t\t\t\tforeach($dir_scan as $dir_item)\n\t\t\t\t{\n\t\t\t\t\tif($dir_item!='.'&& $dir_item!='..')\n\t\t\t\t\t{\n\t\t\t\t\t\tinclude( $dir . $dir_item );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "362041138c0e20f9a29001e681757b27", "score": "0.5373699", "text": "public function sync_meta_data() {\n\t\tforeach ( get_post_meta( $this->id) as $key => $value ) {\n\t\t\t$this->$key = substr( $value[0], 0, 2 ) === \"a:\" ? get_post_meta( $this->id, $key )[0] : $value[0];\n\t\t}\n\t}", "title": "" }, { "docid": "4cd8dc20c05bf0cb037fb4b6022e15ca", "score": "0.53730726", "text": "public function load() {}", "title": "" }, { "docid": "4cd8dc20c05bf0cb037fb4b6022e15ca", "score": "0.53730726", "text": "public function load() {}", "title": "" }, { "docid": "4cd8dc20c05bf0cb037fb4b6022e15ca", "score": "0.53730726", "text": "public function load() {}", "title": "" }, { "docid": "4cd8dc20c05bf0cb037fb4b6022e15ca", "score": "0.53730726", "text": "public function load() {}", "title": "" }, { "docid": "4cd8dc20c05bf0cb037fb4b6022e15ca", "score": "0.53730726", "text": "public function load() {}", "title": "" }, { "docid": "4cd8dc20c05bf0cb037fb4b6022e15ca", "score": "0.53730726", "text": "public function load() {}", "title": "" }, { "docid": "2438f7e12428cdc58ae873ef727f2db3", "score": "0.53679943", "text": "private function should_load_meta_boxes()\n {\n }", "title": "" }, { "docid": "1fe5559219e4e8fb5617d138ccb7179f", "score": "0.53522956", "text": "function getMetadata();", "title": "" }, { "docid": "ef85640590b327168615206f4fcf68df", "score": "0.53424704", "text": "protected function load()\n\t{\n\t\t$xml = simplexml_load_file($this->_origin);\n\t\tforeach($xml->children() as $item) {\n\t\t\t$record = new Task();\n\t\t\tforeach($item->children() as $prop) {\n\t\t\t\t$this->_fields[] = $prop->getName();\n\t\t\t\t$record->{$prop->getName()} = (string)$prop;\n\t\t\t}\n\t\t\t$key = $record->{$this->_keyfield};\n\t\t\t$this->_data[$key] = $record;\n\t\t}\n\t}", "title": "" }, { "docid": "5be220c39e192ad2590d6995622f77fd", "score": "0.5337239", "text": "public function prepareMetaData()\n {\n // Parse extra selects if they were defined\n if (count($this->select) > 0)\n {\n foreach ($this->select as $id => $select)\n {\n $this->dataSource->addSelect($select);\n }\n }\n\n // Check if there's a format method and prepare the DB fields if needed.\n foreach ($this->fields as $key => $field)\n {\n $formatted = $this->dataSource->formatColumn($field);\n $field->set($formatted);\n $field->checkFormat();\n\n if($field->searchable)\n {\n $this->searchables[] = ($field->select)?: $field->column;\n }\n }\n\n // make sure the primary key is always loaded\n $pk = $this->dataSource->getPrimaryKey();\n\n if (!array_key_exists($pk, $this->select))\n {\n $this->select[$pk] = $this->dataSource->getFormattedPrimaryKey() . ' AS ' . $pk;\n $this->dataSource->addSelect('(:table).(:primary_key) AS ' . $pk);\n }\n }", "title": "" }, { "docid": "d866b53de924aabbeb0aa0383ca1fa83", "score": "0.5336866", "text": "protected function loadMetadata($args, MetaDataContextInterface $context)\n {\n $this->args = $args;\n // Start collecting data\n $this->data = array();\n\n $defaultContext = $this->getDefaultContext();\n $sections = $this->sections;\n\n if ($context instanceof MetaDataContextPartial) {\n $sections = array_diff($this->sections, $this->getContextAwareSections());\n } elseif ($context->getHash() != $defaultContext->getHash()) {\n $sections = $this->getContextAwareSections();\n }\n\n foreach ($sections as $section) {\n // Overrides are handled at the end because they are \"special\"\n // full_module_list and module_info are handled by the modules section\n // handler and is only found in private metadata\n if ($this->sectionIsSkipped($section)) {\n continue;\n }\n\n $this->data = $this->loadSectionMetadata($section, $this->data, $context);\n }\n\n // Handle overrides\n $this->data['_override_values'] = $this->getOverrides($this->data, $args);\n\n // Handle client specific normalizations\n $this->data = $this->normalizeMetadata($this->data);\n\n // Handle hashing\n $this->data[\"_hash\"] = $this->hashChunk($this->data);\n\n // Send it back\n return $this->data;\n }", "title": "" }, { "docid": "7dccac47a4834ce23e08624c8488e957", "score": "0.53357977", "text": "public static function getMeta() {\n return json_decode(\n '['\n . ' {'\n . ' \"name\":\"doctor_office_id\",'\n . ' \"type\":\"int\",'\n . ' \"default\": null'\n . ' },'\n . ' {'\n . ' \"name\":\"doctor_office_name\",'\n . ' \"type\":\"varchar\",'\n . ' \"default\": null'\n . ' },'\n . ' {'\n . ' \"name\":\"doctor_office_contact_address\",'\n . ' \"type\":\"varchar\",'\n . ' \"default\": null'\n . ' },'\n . ' {'\n . ' \"name\":\"doctor_office_contact_phone\",'\n . ' \"type\":\"varchar\",'\n . ' \"default\": null'\n . ' },'\n . ' {'\n . ' \"name\":\"doctor_office_contact_zip\",'\n . ' \"type\":\"varchar\",'\n . ' \"default\": null'\n . ' },'\n . ' {'\n . ' \"name\":\"doctor_office_contact_email\",'\n . ' \"type\":\"varchar\",'\n . ' \"default\": null'\n . ' }'\n . ']'\n );\n }", "title": "" }, { "docid": "2cb1e3666899d397853127f3236e844c", "score": "0.53127366", "text": "function load(){\n\t\t\t/*$this->connect();\n\t\t\tforeach(self::$_entities as $entity) :\n\t\t\t\tself::$_data[$entity] = $this->preLoadEntity($entity);\n\t\t\tendforeach;*/\n\t\t}", "title": "" } ]
4702a1b7daa39bc462ffd51d1292f532
[Output Only] Type of the resource. Always computeaddress for addresses. Generated from protobuf field string kind = 3292052;
[ { "docid": "898ddb891faf0b42b351a2622f0fe8f5", "score": "0.0", "text": "public function setKind($var)\n {\n GPBUtil::checkString($var, True);\n $this->kind = $var;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "aba74ac1c8904ac4e2fc0b9e2a050a13", "score": "0.60042113", "text": "public function getAddressType();", "title": "" }, { "docid": "28bc5ee5459fb3f6d7585950d14982e4", "score": "0.5823762", "text": "public function resource_type()\n {\n return isset($this->data['type']) ? $this->data['type'] : '';\n }", "title": "" }, { "docid": "4faca4042b8039c94b2e6605815b1888", "score": "0.5803192", "text": "public function resource_type()\r\n {\r\n return isset($this->data['type']) ? $this->data['type'] : '';\r\n }", "title": "" }, { "docid": "d3e00aeacf276cb4c9ad133e3ec0de24", "score": "0.5735204", "text": "function getAddressType()\n {\n\t\t$type = array_filter($this->types(), function($type)\n\t\t{\n\t\t\tif (strpos($type, 'wcir:') !== false) {\n\t\t\t\t$present = true;\n\t\t\t} else {\n\t\t\t\t$present = false;\n\t\t\t}\n\t\t\treturn($present);\n\t\t});\n\t\t$type = substr(current($type), strpos(current($type), \":\")+1);\n \treturn $type;\n }", "title": "" }, { "docid": "f451dac344e6044fdf3255b6040709f2", "score": "0.5555002", "text": "public function getAddressType() {\n\t\treturn $this->addressType;\n\t}", "title": "" }, { "docid": "6166e1d69f45fab9d5be6b6701d7217b", "score": "0.55521864", "text": "public function getAddressType()\n\t{\n\t\treturn $this->addressType;\n\t}", "title": "" }, { "docid": "4feb498f43e7fb78ebb9b522e95f7bb0", "score": "0.55298305", "text": "public function getAddressType()\n {\n return $this->address_type;\n }", "title": "" }, { "docid": "2c9901e69a67b0a991623ecc08ac3de4", "score": "0.54617894", "text": "public function getAddressForType(Type $type)\n\t{\n\t\treturn $this->typeProvider->getTypeUri($type);\n\t}", "title": "" }, { "docid": "1f1a11f3ff025680c03e01b4698c2be4", "score": "0.52820265", "text": "public function getName()\n {\n return 'address';\n }", "title": "" }, { "docid": "e0c8ec42cd19bf80655d1bc72b10dd27", "score": "0.52353436", "text": "public function getAddressType()\n {\n return isset($this->address_type) ? $this->address_type : 0;\n }", "title": "" }, { "docid": "8440fe79da0d2f997069a5782b3bedb0", "score": "0.515303", "text": "public function get_type()\n\t{\n\t\treturn \"location\";\n\t}", "title": "" }, { "docid": "a1a17c292df7521e5202dd941e7c1a1c", "score": "0.51164573", "text": "public function getResourceType()\n {\n return $this->resource_type;\n }", "title": "" }, { "docid": "2a71b9f056627610dbe994b619e5fb7d", "score": "0.5114631", "text": "public function typeAsResource()\n {\n $this->checkHasGraph();\n return $this->graph->typeAsResource($this->uri);\n }", "title": "" }, { "docid": "e52018401995560838654ba347d6ca04", "score": "0.50377595", "text": "public function getResourceTypeKind()\n {\n return $this->resourceTypeKind;\n }", "title": "" }, { "docid": "18c80c358c64fae193bb466ce5eb8c38", "score": "0.50105995", "text": "private function getAddress($type)\n {\n \tif(empty($this->address_data))\n {\n return '';\n }\n \n $address = json_decode($this->address_data, true);\n \n if (empty($address))\n {\n \treturn '';\n }\n \n $info = [];\n\n foreach ($address as $row)\n {\n if ($row['title'] == $type)\n {\n $info = $row['fields'];\n break;\n }\n }\n\n $fullAddress = \"\";\n\n $size = count($info);\n\n for($i = 0; $i < $size; $i++)\n {\n if ($info[$i]['label'] == 'postcode')\n {\n break;\n }\n\n if ($info[$i]['value'])\n {\n \t$fullAddress .= str_replace(\"\\n\", \"<br/>\", $info[$i]['value']).\"<br/>\";\n }\n }\n return $fullAddress;\n }", "title": "" }, { "docid": "9015f9c773049374e07d2874260ca3e7", "score": "0.4978771", "text": "public function addResourceByType($type, $resource){ }", "title": "" }, { "docid": "b9ad9b3b07e2063c4e4506c2a8ba3205", "score": "0.49486482", "text": "public function getResourceType(): string;", "title": "" }, { "docid": "b9ad9b3b07e2063c4e4506c2a8ba3205", "score": "0.49486482", "text": "public function getResourceType(): string;", "title": "" }, { "docid": "9291bc65dc2b918f6b18a4a1fd9db111", "score": "0.49098408", "text": "public function __toString()\n {\n return sprintf(\n 'Resource(%s, %s)',\n $this->type,\n $this->identifier === null ? 'NULL' : $this->identifier\n );\n }", "title": "" }, { "docid": "6eac6a1fc0f2f52774681a34255b4383", "score": "0.48540598", "text": "private function typeDescriptorString(): string\n {\n $type_cls = $this->element->typeClass();\n $tag = $this->element->tag();\n $str = $this->element->isConstructed() ? 'constructed ' : 'primitive ';\n if ($type_cls === Identifier::CLASS_UNIVERSAL) {\n $str .= Element::tagToName($tag);\n } else {\n $str .= Identifier::classToName($type_cls) . \" TAG {$tag}\";\n }\n return $str;\n }", "title": "" }, { "docid": "66e54abd39395564440556b3e61d54de", "score": "0.4786148", "text": "function format_resource_object(int $id, string $type, array $attributes, array $relationships = [])\n {\n return [\n 'id' => $id,\n 'type' => $type,\n 'attributes' => $attributes,\n 'relationships' => $relationships,\n ];\n }", "title": "" }, { "docid": "d5e3ce8964c40e56602dd5a9d63463cc", "score": "0.47808555", "text": "public function setType(string $type): pm_Dns_Record { }", "title": "" }, { "docid": "8a5b54136344810c1d8d55fce6a57527", "score": "0.47734374", "text": "public function getAddress()\n {\n return $this->readOneof(5);\n }", "title": "" }, { "docid": "6a1add7c3158dabe55afbc6b223720b4", "score": "0.47721443", "text": "public function getResourceType()\n {\n return $this->resourceProperty->getResourceType();\n }", "title": "" }, { "docid": "082e2560ca3d44e23d8ab5f48b441378", "score": "0.4761117", "text": "public function getResourceType()\n {\n return $this->resourceType;\n }", "title": "" }, { "docid": "082e2560ca3d44e23d8ab5f48b441378", "score": "0.4761117", "text": "public function getResourceType()\n {\n return $this->resourceType;\n }", "title": "" }, { "docid": "d9695bfff45a332c65a24c7a05655b44", "score": "0.47474483", "text": "public function getType()\n {\n $type = new AddressType();\n return new ListType(\n $type->init()\n );\n }", "title": "" }, { "docid": "541a843c4dc2e4765ed755adf8b03418", "score": "0.47372732", "text": "public function __toString()\n {\n return $this->resourceType;\n }", "title": "" }, { "docid": "e356ba560e1a178ca719976e5aa93a41", "score": "0.47155735", "text": "function constructUriString($type, $vocab, $term){\n if($type=='resource'){\n $resourceQueryComp = 'resource.json?uri=';\n }else if($type=='broader'){\n $resourceQueryComp = 'concept/allBroader.json?uri=';\n }else if($type=='label'){\n return $resourceQueryComp = $vocab['resolvingService']. 'concept.json?anylabel=' . rawurlencode($term);\n }\n return $vocab['resolvingService'].$resourceQueryComp.$vocab['uriprefix'].$term;\n }", "title": "" }, { "docid": "6055f82752876ca31ffd2f145e6556fc", "score": "0.47122973", "text": "function getType ()\n\t\t{\n\t\t\treturn \"Contact\";\n\t\t}", "title": "" }, { "docid": "d5179f8f6401cf28ff27c6b873a679af", "score": "0.46984157", "text": "public function getResourceType()\r\n {\r\n return $this->_resourceType;\r\n }", "title": "" }, { "docid": "de933df4f56b105d7a8874bf75a7d8d7", "score": "0.4694563", "text": "final public function prop_resourcetype() {\n $retval = $this->user_prop_resourcetype();\n if (!is_null($retval)) return $retval;\n if ($this instanceof DAV_Collection)\n $retval .= DAV_Collection::RESOURCETYPE;\n if ($this instanceof DAVACL_Principal)\n $retval .= DAVACL_Principal::RESOURCETYPE;\n return $retval;\n}", "title": "" }, { "docid": "0251c7418408dc561b65a15ec04a0e49", "score": "0.46944776", "text": "public function resource()\n {\n return LabelResource::class;\n }", "title": "" }, { "docid": "4c2beef066a08cef21958214379f0fcd", "score": "0.46688488", "text": "public function setAddressType($type) {\n\t\t\tif (array_key_exists($type, $this->addressTypeBitmap)) {\n\t\t\t\t$this->addressType = $type;\n\t\t\t\t$this->addType($type);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ff3615345e44edacf79f5e6ad40a236f", "score": "0.46680802", "text": "public function getType() { return self::Type; }", "title": "" }, { "docid": "ff3615345e44edacf79f5e6ad40a236f", "score": "0.46680802", "text": "public function getType() { return self::Type; }", "title": "" }, { "docid": "ff3615345e44edacf79f5e6ad40a236f", "score": "0.46680802", "text": "public function getType() { return self::Type; }", "title": "" }, { "docid": "8cef2fa352b044780e5303cd93ee98e8", "score": "0.46490824", "text": "public static function getType(): string;", "title": "" }, { "docid": "72206a2089a2c86217c8c07eb6fab17c", "score": "0.4641234", "text": "public function getResourceType()\n {\n return $this->_resourceType;\n }", "title": "" }, { "docid": "dc7c1457f79bca4461c4aca340a37854", "score": "0.46322608", "text": "public function getType(): string\n {\n return self::TYPE;\n }", "title": "" }, { "docid": "1a602c9da5eec7928d5ebef6f928f945", "score": "0.46292767", "text": "public function convertAddress(array $data, $type = 'billing')\n {\n $address = Mage::getModel('customer/address');\n $address->setId(null);\n $address->setIsDefaultBilling(true);\n $address->setIsDefaultShipping(false);\n if ($type == 'shipping') {\n $address->setIsDefaultBilling(false);\n $address->setIsDefaultShipping(true);\n }\n Mage::helper('core')->copyFieldset('lengow_convert_address', 'to_' . $type . '_address', $data, $address);\n $address_1 = $data['first_line'];\n $address_2 = $data['second_line'];\n // Fix address 1\n if (empty($address_1) && !empty($address_2)) {\n $address_1 = $address_2;\n $address_2 = null;\n }\n // Fix address 2\n if (!empty($address_2)) {\n $address_1 = $address_1 . \"\\n\" . $address_2;\n }\n $address_3 = $data['complement'];\n if (!empty($address_3)) {\n $address_1 = $address_1 . \"\\n\" . $address_3;\n }\n // adding relay to address\n if (isset($data['tracking_relay'])) {\n $address_1 .= ' - Relay : ' . $data['tracking_relay'];\n }\n $address->setStreet($address_1);\n $tel_1 = $data['phone_office'];\n $tel_2 = $data['phone_mobile'];\n // Fix tel\n $tel_1 = empty($tel_1) ? $tel_2 : $tel_1;\n\n if (!empty($tel_1)) {\n $this->setTelephone($tel_1);\n }\n if (!empty($tel_1)) {\n $address->setFax($tel_1);\n } else {\n if (!empty($tel_2)) {\n $address->setFax($tel_2);\n }\n }\n $codeRegion = substr(str_pad($address->getPostcode(), 5, '0', STR_PAD_LEFT), 0, 2);\n $id_region = Mage::getModel('directory/region')->getCollection()\n ->addRegionCodeFilter($codeRegion)\n ->addCountryFilter($address->getCountry())\n ->getFirstItem()\n ->getId();\n $address->setRegionId($id_region);\n $address->setCustomer($this);\n return $address;\n }", "title": "" }, { "docid": "8e49ec85ae2b64a5bda0b21682d76624", "score": "0.4624859", "text": "public function getAddress($type)\r\n {\r\n $quote = $this->getQuote();\r\n $addressesCollection = $quote->getAddressesCollection();\r\n \r\n foreach ($addressesCollection as $address) {\r\n if ($address['address_type'] == $type) {\r\n return $address;\r\n } else {\r\n return false;\r\n }\r\n }\r\n \r\n return false;\r\n }", "title": "" }, { "docid": "2a0b0f8024a378516a1a2617bdac9890", "score": "0.46210137", "text": "public function getType(): string;", "title": "" }, { "docid": "2a0b0f8024a378516a1a2617bdac9890", "score": "0.46210137", "text": "public function getType(): string;", "title": "" }, { "docid": "2a0b0f8024a378516a1a2617bdac9890", "score": "0.46210137", "text": "public function getType(): string;", "title": "" }, { "docid": "2a0b0f8024a378516a1a2617bdac9890", "score": "0.46210137", "text": "public function getType(): string;", "title": "" }, { "docid": "2a0b0f8024a378516a1a2617bdac9890", "score": "0.46210137", "text": "public function getType(): string;", "title": "" }, { "docid": "2a0b0f8024a378516a1a2617bdac9890", "score": "0.46210137", "text": "public function getType(): string;", "title": "" }, { "docid": "2a0b0f8024a378516a1a2617bdac9890", "score": "0.46210137", "text": "public function getType(): string;", "title": "" }, { "docid": "2a0b0f8024a378516a1a2617bdac9890", "score": "0.46210137", "text": "public function getType(): string;", "title": "" }, { "docid": "2a0b0f8024a378516a1a2617bdac9890", "score": "0.46210137", "text": "public function getType(): string;", "title": "" }, { "docid": "86eec6b57e87ae5d192d4c2123e1db09", "score": "0.46107858", "text": "public function getIcon_type() {}", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.45804515", "text": "abstract public function getType();", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.45804515", "text": "abstract public function getType();", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.45804515", "text": "abstract public function getType();", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.45804515", "text": "abstract public function getType();", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.45804515", "text": "abstract public function getType();", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.45804515", "text": "abstract public function getType();", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.45804515", "text": "abstract public function getType();", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.45804515", "text": "abstract public function getType();", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.45804515", "text": "abstract public function getType();", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.45804515", "text": "abstract public function getType();", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.45804515", "text": "abstract public function getType();", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.45804515", "text": "abstract public function getType();", "title": "" }, { "docid": "6efa66b89b8996569a6af7b2a5dbe4e2", "score": "0.4570825", "text": "public function getType() {\n return $this->attributes()->getValue('type');\n }", "title": "" }, { "docid": "6451473695251ad4599d6052db608dab", "score": "0.45679572", "text": "public function isAddress()\n {\n return $this->getType() === self::LOCATIONTYPE_ADDRESS;\n }", "title": "" }, { "docid": "8944d719b0e75fd390dd275a3865947a", "score": "0.45627248", "text": "public function Type(){\n return $this->API['Type'];\n }", "title": "" }, { "docid": "d701c57da45e01cecb7282c928132180", "score": "0.45572507", "text": "public static function getType(): string\n {\n return Label::class;\n }", "title": "" }, { "docid": "8ba484ca16b827b6999f8fdf1364e977", "score": "0.45491424", "text": "abstract protected function getType();", "title": "" }, { "docid": "8ba484ca16b827b6999f8fdf1364e977", "score": "0.45491424", "text": "abstract protected function getType();", "title": "" }, { "docid": "8ba484ca16b827b6999f8fdf1364e977", "score": "0.45491424", "text": "abstract protected function getType();", "title": "" }, { "docid": "b70062d2d46a35bca36446c4a9e88712", "score": "0.45457497", "text": "public function model()\n {\n return Address::class;\n }", "title": "" }, { "docid": "cad418f48b7174259d93a5f7d384aeb8", "score": "0.45457077", "text": "public function getType(): string\n {\n return $this->block->type->handle;\n }", "title": "" }, { "docid": "5f8063103ec10c0518c7c2539b06e194", "score": "0.4535088", "text": "public function getType(){\n return \"Registrar\";\n }", "title": "" }, { "docid": "8a3867932581c8c347a11703bdcd8f1c", "score": "0.45237714", "text": "public function typeJson()\n {\n return [\n 'type' => self::STRING_TYPE,\n 'required' => false,\n 'location' => self::JSON,\n 'description' => 'Filters Rackspace base images or any custom server images that you have created.',\n ];\n }", "title": "" }, { "docid": "8a53cc3849fc42ef2ede97d29786f4b3", "score": "0.45236516", "text": "public function defaultResource(): string\n {\n return \\Nesk\\Rialto\\Data\\BasicResource::class;\n }", "title": "" }, { "docid": "0fc96e752ef4465474bfcde7d6f252a8", "score": "0.45236418", "text": "public function addType($type) {\n\t\t\tif (array_key_exists($type, $this->addressTypeBitmap)) {\n\t\t\t\tif (!($this->addressTypeBitmap[$type] & $this->addressBit)) {\n\t\t\t\t\t$this->addressBit += $this->addressTypeBitmap[$type];\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "0fc85fc7cf58de3da21470a31f8f18c2", "score": "0.45139912", "text": "function typeStr() {\n return $this->tuningType()->name;\n }", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.45069277", "text": "public function getType();", "title": "" } ]
3b1d6aac21a9d8a329f3100c197970fc
Set object as initialized or not.
[ { "docid": "89ba07f58db2f5a6bb495e2729498541", "score": "0.734641", "text": "public function set_init($bool);", "title": "" } ]
[ { "docid": "d9a1210bee87667a604f5e3962e44a5b", "score": "0.80887216", "text": "function _setInitialized() {\n\t\t$this->_initialized = true;\n\t}", "title": "" }, { "docid": "95a0b785c5dac049861b19d2d04b3a58", "score": "0.7321013", "text": "protected function init()\n {\n if (true===$this->isInit) return;\n if ($this->__auto_populate===true) {\n $this->getObjectRelations();\n }\n $this->isInit=true;\n }", "title": "" }, { "docid": "3386ffb9a57da824e3b17d8c5eb66c75", "score": "0.6980904", "text": "protected function setUp() {\n\t\t$this->object = new Boolean(true);\n\t}", "title": "" }, { "docid": "99e4d47087125f470806f46dcb22b1a1", "score": "0.6980504", "text": "public function isInitialized();", "title": "" }, { "docid": "3dd142ab5604b4cb50d2e11bcc7ecd94", "score": "0.69375783", "text": "private static function initialize()\n {\n \tif (self::$initialized)\n \t\treturn;\n\n\n \tself::$initialized = true;\n }", "title": "" }, { "docid": "3bb8ed9167de00b02de9c1195ba3eceb", "score": "0.6868785", "text": "public function initialized()\n {\n return true;\n }", "title": "" }, { "docid": "2501199cc995a7b73fbd2a180b824d8c", "score": "0.68141025", "text": "public function setInitialized($bool): void\n {\n $this->initialized = $bool;\n }", "title": "" }, { "docid": "0e9c8656641944e72f22411535cd08b6", "score": "0.6743844", "text": "private static function checkInitialized()\n\t{\n\t\tif (!self::$initialized) {\n\t\t\t\\SGFilehoster\\DataHandler::initDatabase();\n\t\t\tself::$initialized = true;\n\t\t}\n\t}", "title": "" }, { "docid": "5650543472302a13f7fbf8aded0c350d", "score": "0.67351824", "text": "private function ensureInitialized(): void\n {\n if (null === $this->parameters) {\n $this->initialize();\n }\n }", "title": "" }, { "docid": "f23850c9407df8061d088eeb2be28e51", "score": "0.66686165", "text": "public function initializeObject(): void\n {\n $this->falMedia = $this->falMedia ?? new ObjectStorage();\n }", "title": "" }, { "docid": "0050b8151923f25f48c5691211af2126", "score": "0.66563576", "text": "public function init() {\n\t\tforeach($this->objects as $key=>$object)\n\t\t\tif(method_exists($object, 'init'))\n\t\t\t\t$object->init();\n\t}", "title": "" }, { "docid": "7caf8b6fe8fe3e4d2774756f2344fccc", "score": "0.66490346", "text": "private function init()\n {\n if (empty($this->attributes)) {\n $this->attributes = $this->defaultAttributes;\n }\n\n $this->currentLevel = -1;\n $this->parsedObjects = array();\n $this->currentObject = $this->getNewEmptyObject();\n }", "title": "" }, { "docid": "15e1a40ab720857afaf9b96562a62e89", "score": "0.6606553", "text": "public function isInitialised(): bool;", "title": "" }, { "docid": "d02eb9a86c141d40a2b704b189f47ea9", "score": "0.65995324", "text": "protected function init()\n {\n if (!$this->offsetExists('success')) $this->offsetSet('success',true);\n }", "title": "" }, { "docid": "fef0fee9ca86afd00ec2b54dc532e6f3", "score": "0.6557129", "text": "public function initialize()\n {\n // set dynamic update on\n $this->useDynamicUpdate(true);\n }", "title": "" }, { "docid": "83542619032c26db595974a842fad97d", "score": "0.6498638", "text": "public function initialize(): void\n {\n $this->getInit()->initialize();\n }", "title": "" }, { "docid": "a41c4f9f6dc73f55507f1ad22c85f48d", "score": "0.6493351", "text": "public function init()\n {\n return true;\n }", "title": "" }, { "docid": "a894878da55597349ba97bdc5903f849", "score": "0.6488613", "text": "protected function checkForInit() {\n if(!$this->initialized) {\n $this->initSavedCarts();\n $this->initialized = true;\n }\n }", "title": "" }, { "docid": "be6f0ec0a6345b6cd0e5cca7dd5bfbef", "score": "0.6481079", "text": "public function initialize(): void\n {\n if ($this->initialized || ! $this->association) {\n return;\n }\n\n $this->doInitialize();\n\n $this->initialized = true;\n }", "title": "" }, { "docid": "a285afef284aa30f1534ccf918d986cb", "score": "0.64695346", "text": "protected function init() { return true; }", "title": "" }, { "docid": "2f26ba39f13e177cab9d7c54710e8e4a", "score": "0.6452051", "text": "public function initializeObject(): void\n {\n $this->initStorageObjects();\n }", "title": "" }, { "docid": "fea8a2edbb40ae0e86556f85e0e50dce", "score": "0.6430117", "text": "private function is_initialized()\n {\n return !is_null($this->is_self);\n }", "title": "" }, { "docid": "51080fb252968461ec0ccf76d277e3db", "score": "0.6421922", "text": "public function init()\n\t{\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "e1eefb2418e79be9339d2bea45ad6cfe", "score": "0.6402093", "text": "public function isInitializeNeeded()\n {\n return true;\n }", "title": "" }, { "docid": "d77b4ced4f99e5a9502fcf8bfc3f9614", "score": "0.63987", "text": "public function initializeObject()\n {\n $this->methods = $this->methods ?: new \\TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage();\n $this->options = $this->options ?: new \\TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage();\n }", "title": "" }, { "docid": "cdb2ec39d1eab5e578c1c0f8c8ecc61a", "score": "0.6384137", "text": "protected function setUp()\n {\n $this->object = new Object(array(0));\n }", "title": "" }, { "docid": "4cba6165bd27a3c6bdc7aab4380cdf3e", "score": "0.63595605", "text": "public function initialize()\n {\n if (!$this->initialized) {\n $draftExists = $this->draftExists();\n\n // Fire onInitialize event\n Sitecake::eventBus()->dispatch('Site.onInitialize');\n\n if (!$draftExists) {\n $this->createDraft();\n } else {\n $this->updateFromSource();\n }\n\n $this->initialized = true;\n }\n }", "title": "" }, { "docid": "e8326d564e168dfe9da0549f8bec5ed7", "score": "0.63384473", "text": "public function init()\n {\n $this->reset();\n }", "title": "" }, { "docid": "749362319a682a6333d43268702f88d6", "score": "0.6334821", "text": "protected function setUp()\n {\n $this->object = new State();\n }", "title": "" }, { "docid": "293f8a3d4674068c3d9dbb2f44235c8c", "score": "0.6306418", "text": "public function initialize() \n {\n return true;\n }", "title": "" }, { "docid": "a909357918dfd9d35a29940bb5075bb2", "score": "0.62868905", "text": "public function initialize(): void\n {\n $this->db = \"active\";\n $this->wModell = new WeatherModell();\n $this->ipModell = new IpApiModell();\n }", "title": "" }, { "docid": "332ad48813239dcee6fceeb3672d2fa9", "score": "0.62686986", "text": "public function init()\r\n\t{\r\n\r\n\t\t$this->_logger->log(__CLASS__.' '.__METHOD__);\r\n\t\t$this->settings = Settings::model()->find();\r\n $this->synchronization = new Synchronization();\r\n\r\n return true;\r\n }", "title": "" }, { "docid": "e62045a647be3bba3960a5743d2fe1f8", "score": "0.6267491", "text": "public function initialize()\n {\n return true;\n }", "title": "" }, { "docid": "e62045a647be3bba3960a5743d2fe1f8", "score": "0.6267491", "text": "public function initialize()\n {\n return true;\n }", "title": "" }, { "docid": "cd1a2f9c7d533dd17d2575da91d13411", "score": "0.6265372", "text": "public function initialize()\n {\n $this->data = new stdClass();\n $this->data->type = null;\n $this->data->createdAt = null;\n $this->data->descriotion = null;\n }", "title": "" }, { "docid": "82645b54046c5088aff1768dab3fa404", "score": "0.6238296", "text": "protected function beforeInitialisation()\n {\n }", "title": "" }, { "docid": "d8bfa6cacba322aa08bedd3ac5f02d09", "score": "0.6227621", "text": "public function init()\n {\n /* Do stuff */\n }", "title": "" }, { "docid": "bacbcf2efeadaae16159fbff9e9466af", "score": "0.6190773", "text": "public function isInitialized(): bool;", "title": "" }, { "docid": "ec9c3f89aeed607bddd462fab841f2c8", "score": "0.6178968", "text": "public abstract function init();", "title": "" }, { "docid": "ec9c3f89aeed607bddd462fab841f2c8", "score": "0.6178968", "text": "public abstract function init();", "title": "" }, { "docid": "6aed92b37ab52c3e40b2bafe7bdf16c8", "score": "0.61710626", "text": "private function __construct() {\r\n\t\t$this->tryInitialize();\r\n\t}", "title": "" }, { "docid": "f8e4830db632ec3c17c3dd0be8ca1a1b", "score": "0.61589825", "text": "public function _init() {}", "title": "" }, { "docid": "37196c860162758965bd2b2ada92d315", "score": "0.6155975", "text": "protected function setUp()\n {\n $this->label = Random::string();\n $this->type = VFORM_BOOLEAN;\n $this->object = new VF_Checkbox($this->label, $this->type);\n }", "title": "" }, { "docid": "edcc89dd888fcffeb630d60c6d8a5eae", "score": "0.61492467", "text": "protected function initializeObject(): void\n {\n if ($this->readModelClassName === null && substr(get_class($this), -6, 6) === 'Finder') {\n $this->readModelClassName = substr(get_class($this), 0, -6);\n }\n }", "title": "" }, { "docid": "9d8f78037f8f0b650653748b5672f18b", "score": "0.6146663", "text": "public function initializeObject()\n {\n $this->defaultQuerySettings = $this->objectManager->get(Typo3QuerySettings::class);\n $this->defaultQuerySettings->setRespectStoragePage(false);\n }", "title": "" }, { "docid": "f4c66beacf1351d640d880c03156f0c0", "score": "0.61270237", "text": "protected function initialize() : void\n {\n if ($this->initialized) {\n return;\n }\n\n $this->nativeMapper = $this->mapperLocator->get($this->nativeMapperClass);\n $this->foreignMapper = $this->mapperLocator->get($this->foreignMapperClass);\n $this->foreignTableName = $this->foreignMapper->getTable()->getName();\n\n if (! $this->on) {\n $this->initializeOn();\n }\n\n $this->initialized = true;\n }", "title": "" }, { "docid": "cb9fe0c64039032bc1c5fbdbb31918bd", "score": "0.6125578", "text": "protected function afterInitialisation()\n {\n }", "title": "" }, { "docid": "5e768ffed57f55031ee5cc6bbefbdf2a", "score": "0.6124851", "text": "public static function init() {\n if($isInitialized)\n return;\n\n self::$dataset = require Core::getIncludePath('db.php');\n\n self::$isInitialized = true;\n }", "title": "" }, { "docid": "417fe384e1fa80b27139cc66cadd9b1b", "score": "0.6099092", "text": "public function initializeObject() {\n\t\t\n\t\tif ( empty($this->objectManager) ) {\n\t\t\t$this->objectManager = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance('TYPO3\\\\CMS\\\\Extbase\\\\Object\\\\ObjectManager');\n\t\t}\n\t\t$this->settings = $this->objectManager->get('TYPO3\\\\CMS\\\\Extbase\\\\Configuration\\\\ConfigurationManager')->getConfiguration('Settings', 'thRating', 'pi1');\n\n\t\t//Initialize vote storage if rating is new\n\t\tif (!is_object($this->votes)) {\n\t\t\t$this->votes = new \\TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage();\n\t\t}\n\t}", "title": "" }, { "docid": "00827372f2e24cf44077e1fe64ca3c91", "score": "0.60951203", "text": "public function __construct($forceInitiale) {\n $this->setForce($forceInitiale);\n }", "title": "" }, { "docid": "5545d8af550a07334981ca40dab32f93", "score": "0.60855985", "text": "protected function _initialize() {}", "title": "" }, { "docid": "f8f5e611fe33bd609f0475d316401dc9", "score": "0.6075627", "text": "abstract protected function set_if_fully_loaded();", "title": "" }, { "docid": "6bbaf9891027d5fcac1e65faa5e1d127", "score": "0.6070504", "text": "public function isInitialized()\n {\n return $this->_initilized;\n }", "title": "" }, { "docid": "95e76ba4077eba84d4219a2f9ce219a2", "score": "0.6067376", "text": "public function init() {\n\t\t$this->setDefaults();\n\t\t$this->processSettings();\n\t\t$this->processInputs();\n\t}", "title": "" }, { "docid": "094d553e71cc293e994b7f7168e0070a", "score": "0.6064125", "text": "private function init(): void\n {\n $name = 'some name';\n $status = 10;\n $this->name = $name;\n $this->status = $status;\n }", "title": "" }, { "docid": "0ac4f674cdefdf0794ce45e17311fa16", "score": "0.6058024", "text": "public function init(){}", "title": "" }, { "docid": "0ac4f674cdefdf0794ce45e17311fa16", "score": "0.6058024", "text": "public function init(){}", "title": "" }, { "docid": "0ac4f674cdefdf0794ce45e17311fa16", "score": "0.6058024", "text": "public function init(){}", "title": "" }, { "docid": "2babdb86d84180576499bdb27da1d274", "score": "0.6054308", "text": "protected abstract function init();", "title": "" }, { "docid": "2769fa50b3f0d5fc700fb68463d5ab47", "score": "0.60536546", "text": "public function initializeObject() {\r\n\t\t\r\n\t\t$this->configurationBuilder = Tx_Yag_Domain_Configuration_ConfigurationBuilderFactory::getInstance();\r\n\t\t\r\n\t\tif (TYPO3_MODE === 'BE') {\r\n \t$this->initializeBackend();\r\n } else {\r\n \t$this->initializeFrontend();\r\n }\r\n\t}", "title": "" }, { "docid": "9e3b4fc2c9053d3739b43eaf1e144aa3", "score": "0.6053471", "text": "protected function setUp()\n {\n $this->object = new Object;\n }", "title": "" }, { "docid": "b72f1a06dbae881d50ebff3d621da090", "score": "0.60498625", "text": "abstract protected function _init();", "title": "" }, { "docid": "b72f1a06dbae881d50ebff3d621da090", "score": "0.60498625", "text": "abstract protected function _init();", "title": "" }, { "docid": "dfd5ee1f387552c3b181c66afbedc9e0", "score": "0.6044912", "text": "public function isInitialized()\n {\n return !is_array($this->objectIdentifiers);\n }", "title": "" }, { "docid": "fdc625cd9a0be8db1e60c10c216f8d3e", "score": "0.6037717", "text": "protected function setUp()\n {\n $this->object = new Object();\n }", "title": "" }, { "docid": "bf14095236a1885b30a3e95e0632dde9", "score": "0.60307854", "text": "protected function _init() {}", "title": "" }, { "docid": "aa4406d5ce85313447b3a4408ae85376", "score": "0.60258496", "text": "public abstract function initObjectAces();", "title": "" }, { "docid": "4213fce23ce5b47c64fb6e401758bed2", "score": "0.6022418", "text": "function init() {}", "title": "" }, { "docid": "a7689263806d9e77583497944ad5fef3", "score": "0.6021745", "text": "public function _initialize(){\r\n\t}", "title": "" }, { "docid": "e22f8eaa4ea7aca93b107f2040f34a52", "score": "0.601753", "text": "public function initializeObject()\n {\n $querySettings = $this->objectManager->get(Typo3QuerySettings::class);\n $querySettings->setRespectStoragePage(false);\n $this->setDefaultQuerySettings($querySettings);\n }", "title": "" }, { "docid": "59c25fc67448347135824ee84aba15fd", "score": "0.60134625", "text": "protected function initializeObject() {\n\t\t$this->_localizationService->getConfiguration()->setCurrentLocale(new \\TYPO3\\Flow\\I18n\\Locale($this->_userService->getInterfaceLanguage()));\n\t}", "title": "" }, { "docid": "6195ac63c10b70cebf293e8a970cef40", "score": "0.60106903", "text": "public function __construct()\n\t{\n\t\t$this->loaded = true;\n\t}", "title": "" }, { "docid": "24c538f29538c37e9afafa5f2bb6bc92", "score": "0.60062283", "text": "public static function init() {\n if($isInitialized)\n return;\n\n self::$cachePath = Core::getIncludePath('selio/cache');\n mkdir(self::$cachePath, 0777, true);\n\n self::$isInitialized = true;\n }", "title": "" }, { "docid": "d584f947532f9510a8ae1848081226fd", "score": "0.60042626", "text": "public static function _init() {\n // this is called upon loading the class\n }", "title": "" }, { "docid": "80a281e06e8905abaff0ac3db7c09b8e", "score": "0.6002425", "text": "protected function init(){}", "title": "" }, { "docid": "e1529f259a39f2f94f997c5e87d61a0f", "score": "0.600122", "text": "abstract public function initialize();", "title": "" }, { "docid": "e1529f259a39f2f94f997c5e87d61a0f", "score": "0.600122", "text": "abstract public function initialize();", "title": "" }, { "docid": "1f8cea31db6fe6e7ab884f065066dfe7", "score": "0.5997725", "text": "protected function setUp() {\r\n $this->object = new ValidaDadosDisciplina;\r\n }", "title": "" }, { "docid": "b11272f7913c00aed9a7d79311e136cd", "score": "0.5992083", "text": "public function __construct()\n {\n $this->value = new NotInitializedValue;\n }", "title": "" }, { "docid": "d3dd6358d58625a59c5fa8fd7c5c696a", "score": "0.59895635", "text": "protected function initialize(): void\n {\n $this->parameters = [];\n $this->groups = [];\n }", "title": "" }, { "docid": "5168439a527d384f163785a3b3b292a3", "score": "0.59876597", "text": "public function initializeObject()\n {\n // set minimal configuration\n $configuration = [];\n $configuration['_']['features']['ignoreAllEnableFieldsInBe'] = 0;\n\n // transport our minimal configuration into backendConfigurationManagers 1st-level Cache\n if (property_exists(get_class($this->backendConfigurationManager), 'configurationCache')) {\n $propertyReflection = new \\ReflectionProperty(\n get_class($this->backendConfigurationManager),\n 'configurationCache'\n );\n $propertyReflection->setAccessible(true);\n $propertyReflection->setValue($this->backendConfigurationManager, $configuration);\n }\n }", "title": "" }, { "docid": "cff199a61c43478ac01ae0473e731e8c", "score": "0.59841317", "text": "protected static function intialize() {\n self::$intialized = TRUE;\n $env = Settings::get('DRUPAL_ENV');\n\n if (!empty($env)) {\n self::$environment = $env;\n }\n else {\n self::$environment = 'none';\n }\n }", "title": "" }, { "docid": "ab152a40e58ae9249605337fdb8bf107", "score": "0.5983774", "text": "public function _init()\n {\n $this->content = new Article();\n $this->user = new User();\n $this->commit = new Commit();\n\n }", "title": "" }, { "docid": "4437a4a6146f0492fabeeefabca22bd5", "score": "0.5979797", "text": "abstract public function init();", "title": "" }, { "docid": "4437a4a6146f0492fabeeefabca22bd5", "score": "0.5979797", "text": "abstract public function init();", "title": "" }, { "docid": "4437a4a6146f0492fabeeefabca22bd5", "score": "0.5979797", "text": "abstract public function init();", "title": "" }, { "docid": "4437a4a6146f0492fabeeefabca22bd5", "score": "0.5979797", "text": "abstract public function init();", "title": "" }, { "docid": "4437a4a6146f0492fabeeefabca22bd5", "score": "0.5979797", "text": "abstract public function init();", "title": "" }, { "docid": "4437a4a6146f0492fabeeefabca22bd5", "score": "0.5979797", "text": "abstract public function init();", "title": "" }, { "docid": "e11990724675b7c602d8e1c68f33a74a", "score": "0.5977377", "text": "public function isInitiation() {\n\t\t$this->getInitiation();\n\t}", "title": "" }, { "docid": "60e2c077b6848e73f5f881152e3109ce", "score": "0.5975588", "text": "public static function isInit()\r\n\t{\r\n\t\treturn self::$isInit;\r\n\t}", "title": "" }, { "docid": "1182ee2f1e2e3fa4976c97c5a5e395ec", "score": "0.5971454", "text": "public function _initialize()\n {\n }", "title": "" }, { "docid": "25c10cf908dc288b9dd238ad7b8ca4b8", "score": "0.59661853", "text": "function init(){}", "title": "" }, { "docid": "fbdba625bae4c2f2967281abeea83ff4", "score": "0.5965061", "text": "public function init()\n {\n // nothing to do here\n }", "title": "" }, { "docid": "778b506faf50fcb997da8cca008ab32e", "score": "0.59632784", "text": "public function init() {\n // nothing to do here\n }", "title": "" }, { "docid": "778b506faf50fcb997da8cca008ab32e", "score": "0.59632784", "text": "public function init() {\n // nothing to do here\n }", "title": "" }, { "docid": "bbbfde5de3d2c79372dac8fb4c1b2248", "score": "0.5963024", "text": "abstract protected function init();", "title": "" }, { "docid": "bbbfde5de3d2c79372dac8fb4c1b2248", "score": "0.5963024", "text": "abstract protected function init();", "title": "" }, { "docid": "bbbfde5de3d2c79372dac8fb4c1b2248", "score": "0.5963024", "text": "abstract protected function init();", "title": "" }, { "docid": "bbbfde5de3d2c79372dac8fb4c1b2248", "score": "0.5963024", "text": "abstract protected function init();", "title": "" } ]
e62be96fe2966d73ba2f235fc7108796
when user presses done it will go here basically saying we're done with this step what's next
[ { "docid": "3be1c105b99c4eb0154947b9ab0a50f9", "score": "0.0", "text": "public function pushNextState($device_id,$recipe_id){\n\t\t//get next step\n\t\t//set next step as device step\n\t\t//UPDATE device SET device_step= :recipe_step WHERE idd=:device_id\n\n\t\t//get new recipe\n\t\tif($recipe_id!=null){\n\t\t\t$query=DB::select(\"SELECT rs.id,MIN(step_number) FROM recipe_steps rs WHERE rs.recipe_id=$recipe_id\");\t\t\t\n\t\t\t$recipe_step=$query[0]->id;\n\t\t\t$query=DB::update(\"UPDATE device SET device_step=? WHERE id=?\",[$recipe_step,$device_id]);\t\t\n\t\t}\n\t\telse{\n\t\t\t$query=DB::select(\"SELECT rs.id,MIN(step_number) as step_number\n\t\t\t\tFROM recipe_steps rs\n\t\t\t\tWHERE step_number>(SELECT step_number FROM device d,recipe_steps rs WHERE d.device_step=rs.id AND d.id=:device_id1)\n\t\t\t\tAND rs.recipe_id=(SELECT rs.recipe_id FROM device d,recipe_steps rs WHERE d.device_step=rs.id AND d.id=:device_id2)\n\t\t\t\t\",['device_id1'=>$device_id,'device_id2'=>$device_id]);\n\n\t\t\tif(count($query)==1)\n\t\t\t\t$recipe_step=$query[0]->id;\n\t\t\telse\n\t\t\t\t$recipe_step=NULL;\n\t\t\t$query=DB::update(\"UPDATE device SET device_step=? WHERE id=?\",[$recipe_step,$device_id]);\t\t\n\t\t}\n\t\treturn true;\n\t}", "title": "" } ]
[ { "docid": "73927221942fa7be9b5115759913bb8e", "score": "0.74017936", "text": "public function Done(){\r\n\t\t\tprint $this->_config['done'];\r\n\t\t}", "title": "" }, { "docid": "06a3b6578db89e0bede5290d9bc444bf", "score": "0.7153082", "text": "public function proceed()\n {\n $this->transitionTo(new DoneState());\n }", "title": "" }, { "docid": "28caa411478505eddd56825953d2ce00", "score": "0.6847255", "text": "public function done(){\n\t\tif($_POST['formname'] == $this->formname){\n\t\t\t$this->handle_posting();\n\t\t}\n\t}", "title": "" }, { "docid": "3fbb015d9ef36c7c75b2e6dee835b114", "score": "0.68321544", "text": "private function completed()\n {\n $this->form->message($this->word('completed'));\n $this->form->hide(true);\n }", "title": "" }, { "docid": "6587a7b5e54a1b05b89467b37732fd9a", "score": "0.68072015", "text": "public function done()\n\t{\n\t\t$this->lang->load('takeaway');\n\t\t$this->template->load('takeaway/register_complete'); \n\t}", "title": "" }, { "docid": "385c7a1b992c1750c6e2bf448930514e", "score": "0.6771799", "text": "private function sayItsFinish()\n\t{\n\t\t$this->info('Finished! Translations saved to: '. (substr($this->parameters['output'], strlen(base_path()) + 1)) \n\t\t\t. PHP_EOL);\n\t}", "title": "" }, { "docid": "7019d8d7385bcf1e8692d19c8197eb8f", "score": "0.66200495", "text": "protected function completed_step($msg=null) { \n\t $message = $msg ? $msg : null;\n $onclick = \"top.location.href='\" . $this->url . \"'\";\n\t $jlink = \"<a href=\\\"#\\\" onClick=\\\"$onclick\\\">\" . localize('_exit',$lan) . \"</a>\";\t\n\t\n\t //$ret = 'Completed step:' . $msg;\n\t\t//$ret .= $jlink;\n\t\t\n\t\t$ret = $message;\n\t\t$ret .= '<form name=\"wizlaststep\" method=\"post\" class=\"sign-up-form\" action=\"\"> \n\t\t\t\t\t\t\t\t\t<div class=\"grid_4 alpha omega aligncenterparent\">\n\t\t\t\t\t\t\t\t\t\t<br/>\n\t\t\t\t\t\t\t\t\t\t<input type=\"submit\" class=\"call-out grid_2 push_2 alpha omega\" alt=\"Save\"\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"exit\"\n\t\t\t\t\t\t\t\t\t\t\tname=\"Submit\" value=\"Exit\" onClick=\"'.$onclick.'\">\n\t\t\t\t\t\t\t\t\t\t</input>\n\t\t\t\t\t\t\t\t </div>\n\t\t\t\t\t\t\t</form>';\t\t\t\n\t\t\n\t\treturn ($ret);\t\n\t}", "title": "" }, { "docid": "14abb4af54aefda44acd77ec341a4a00", "score": "0.6520458", "text": "public function done(): bool {}", "title": "" }, { "docid": "14abb4af54aefda44acd77ec341a4a00", "score": "0.6520458", "text": "public function done(): bool {}", "title": "" }, { "docid": "f282e40fd938a7e12b3927fdef89147b", "score": "0.65063983", "text": "public function complete() {\n // Verify Login\n $this->user->check_login();\n $this->user->check_step('game_results');\n $this->user->get_user($this->user->getMyId());\n if ($this->config->item('phase') > 1) {\n $this->user->update_step('game_results');\n }\n else {\n $this->load->helper('form');\n $this->load->library('form_validation');\n $this->form_validation->set_error_delimiters('<div class=\"error\">', '</div>');\n if ($this->form_validation->run() !== FALSE) {\n $this->user->save_will_return();\n $this->user->update_step('game_results');\n }\n }\n redirect(\"/account/\");\n }", "title": "" }, { "docid": "2b910f3c0ff5a85cff99ba2cf0e6d29e", "score": "0.6504717", "text": "public function proceed($nextStepName);", "title": "" }, { "docid": "30eda05073894db21899d55acd7d06c6", "score": "0.6395579", "text": "function finished()\r\n {\r\n //\r\n // $answer_count = Tracker :: count_data(SurveyQuestionAnswerTracker :: get_table_name(), SurveyManager :: APPLICATION_NAME, $condition);\r\n //\r\n // $survey = RepositoryDataManager :: get_instance()->retrieve_content_object($this->survey_id);\r\n // $survey->initialize($this->invitee_id);\r\n // $question_count = count($survey->get_question_context_paths());\r\n //\r\n // $progress = $answer_count / $question_count * 100;\r\n //\r\n // $this->participant_tracker->set_progress($progress);\r\n // $this->participant_tracker->set_status(SurveyParticipantTracker :: STATUS_FINISHED);\r\n // $this->participant_tracker->set_total_time(time());\r\n // $this->participant_tracker->update();\r\n }", "title": "" }, { "docid": "5cca1b953fd47853d168f3be06f693e1", "score": "0.638932", "text": "public function completeFlow();", "title": "" }, { "docid": "171b9260613cfc72b14524867ccf0dba", "score": "0.63596797", "text": "public function done();", "title": "" }, { "docid": "9d80415299230cc784684c2bb0a5e44e", "score": "0.6335485", "text": "public function done()\n {\n if (in_array($_SERVER['REQUEST_METHOD'], $this->requestTypes) && $this->order == self::SAVE) {\n $this->add(call_user_func_array($this->mechanism, array()));\n }\n }", "title": "" }, { "docid": "619886ac9fc7878e2405e22134b3a3e0", "score": "0.6281728", "text": "abstract public function complete ();", "title": "" }, { "docid": "6627690125b6fc066ff47508486b198c", "score": "0.62637514", "text": "public function complete()\n\t{\n\t\tif (!$this->ion_auth->logged_in())\n\t\t{\n\t\t\tredirect('auth/login');\n\t\t}\n\n\t\t// loads the model we are going to use\n\t\t$this->load->model('dowithtask_model');\n\n\t\t// get \"task_id\" from url to determinate what to do\n\t\t$task_id = $this->uri->segment(3);\n\n\t\t// check get value is an int\n\t\tif( ! filter_var($task_id, FILTER_VALIDATE_INT) ){\n\t\t\tredirect('/procrastinator/whatareyoutrying');\n\t\t}\n\n\t\t// catch the current user id\n\t\t$user = isset($user) ? $user : $this->session->userdata('user_id');\n\n\t\t// we may send it in the order of the db\n\t\t$this->dowithtask_model->complete_task(\n\t\t\t$task_id,\n\t\t\t$user\n\t\t);\n\n\t\t// show OK message\n\t\techo 'OK';\n\n\t}", "title": "" }, { "docid": "d2b4d45e546d56707992963a47a3c1e2", "score": "0.6263481", "text": "public function afterStep($event) {\n\n $text = $event->getStep()->getText();\n if (preg_match('/(follow|press|click|submit)/i', $text)) {\n $this->iWaitForAjaxToFinish();\n }\n }", "title": "" }, { "docid": "1f9f351d1f9dc7ff9977c38380a78f95", "score": "0.6256218", "text": "public function setDone();", "title": "" }, { "docid": "9d165c07a7546d1167c27f1b5968a4e0", "score": "0.61818683", "text": "public function print_done() {\n\t\t\tforeach ($this->done as $id => $item) {\n\t\t\t\techo \"<li>\" . $item . PHP_EOL .\n\t\t\t\t\t \"<br /><a href=\\\"actions/chart.php?project=\" . $this->name . \"&act=done_to_doing&id=\" . $id . \"\\\"><input type=\\\"button\\\" class=\\\"button-back\\\" /></a> <a href=\\\"actions/chart.php?project=\" . $this->name . \"&act=del_done&id=\" . $id . \"\\\"><input type=\\\"button\\\" class=\\\"button-delete\\\" /></a></li>\";\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "7c1f53aaeb750dcb739162d4c2bd0b04", "score": "0.6172065", "text": "function end(){\r\n }", "title": "" }, { "docid": "f4ea6905a8767bd78ea09beb544945e1", "score": "0.61578655", "text": "private function finish()\n {\n $this->step->status = 'COMPLETED';\n $this->step->save();\n\n // Now that this step is done, we need to check if\n // we have more nodes to run and queue them\n $this->step->queueNextSteps();\n }", "title": "" }, { "docid": "6fe9498d35973540f021733a9b324df6", "score": "0.61574566", "text": "protected function complete() {\n\t\t// Show notice to user or perform some other arbitrary task...\n\t\tparent::complete();\n\t}", "title": "" }, { "docid": "897f5abdba392a482c6f7a738e92635a", "score": "0.6155716", "text": "public function finalize()\n {\n $this->sendControlAction('finalize');\n }", "title": "" }, { "docid": "6a0e6c48220a89a55cfeaa93789a9cf7", "score": "0.61437017", "text": "public function complete();", "title": "" }, { "docid": "1cd4b400491f6539b47d9938b5b37023", "score": "0.6133237", "text": "protected function final_step() {\n\t //..collect data adn save.... \n\t\t/*\n\t\t$domain = $this->read_wizard_element('DOMAIN-NAME');// $this->url;\n\t\t$email = $this->read_wizard_element('E-MAIL');//paramload from SMTPMAIL,user..\n\t\t$title = $this->read_wizard_element('TITLE');\t\t\t\n\t\t$title = $this->read_wizard_element('SUBTITLE');\n\t\t//basic array\n\t\t$data = array('DOMAIN-NAME'=>$domain,'E-MAIL'=>$email,\n\t\t 'TITLE'=>$title,'SUBTITLE'=>$subtitle);\n\t\t//extended (optional array)\t\t\t \n\t\t$sdata = array(\t\t\t \n\t\t 'META-DESCRIPTION'=>'#your-description','META-KEYWORDS'=>'#your-keywords',\n\t\t\t\t\t 'FEEDBURNER'=>'#feedburner-url','TWITTER'=>'#tweeter-url','FACEBOOK'=>'#facebook-url','GOOGLEPLUS'=>'#googleplus-url',\n\t\t\t\t\t 'FLICKR'=>'#flickr-url','VIMEO'=>'#viemo-url','LINKEDIN'=>'#linkedin-url','DELICIOUS'=>'#delicious-url',\n\t\t\t\t\t 'FBLIKEBOX-PLUGIN'=>'#fb-plugin','FLICKRBADGE-PLUGIN'=>'#flickr-plugin');\t\n\t\t\t\n\t\t//$ok = $this->change_data('cp/html', $data);\t\t\n\t */\n\t\t\n\t\t/*\n\t $ret = 'Final step:<br>';\n\t\t$ret .= implode('<br>',$this->wdata);\t\n */\n\t\t//form... when submit cpwizsave... \n\t\t$ret .= '<form name=\"wizlaststep\" method=\"post\" class=\"sign-up-form\" action=\"\">\n\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"FormAction\" value=\"cpwizsave\" /> \n\t\t\t\t\t\t\t\t\t<div class=\"grid_4 alpha omega aligncenterparent\">\n\t\t\t\t\t\t\t\t\t\t<br/>\n\t\t\t\t\t\t\t\t\t\t<input type=\"submit\" class=\"call-out grid_2 push_2 alpha omega\" alt=\"Save\"\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"Finish\"\n\t\t\t\t\t\t\t\t\t\t\tname=\"Submit\" value=\"Finish\">\n\t\t\t\t\t\t\t\t\t\t</input>\n\t\t\t\t\t\t\t\t </div>\n\t\t\t\t\t\t\t</form>';\t\t\t\n\t\t\n\t\treturn ($ret);\n\t}", "title": "" }, { "docid": "5d4a88069e10d28f6467f47f14bcfb90", "score": "0.6092721", "text": "public function proceed()\n {\n $this->state->proceed($this);\n }", "title": "" }, { "docid": "37fe13c26ba5098496c060d8d636670b", "score": "0.60915035", "text": "public function complete()\n {\n $this->completed = true;\n }", "title": "" }, { "docid": "189c1469ed3b2fbbb954d9900ad1e90f", "score": "0.60782826", "text": "public function complete() {\n $this->completed = TRUE;\n }", "title": "" }, { "docid": "4e98b91a84bc1ba6a6a8c73f1f67d086", "score": "0.6034852", "text": "protected function complete() {\n parent::complete();\n\n // Show notice to user or perform some other arbitrary task...\n }", "title": "" }, { "docid": "279d1d9c835c1d5ae01bd3a50152bb93", "score": "0.6023693", "text": "public function complete(): void;", "title": "" }, { "docid": "c9d5a93c7cab057140bda693573ef839", "score": "0.60152274", "text": "public function is_done()\n\t{\n\t\treturn $this->passed;\n\t}", "title": "" }, { "docid": "d784c7216a3b5daaeba2726df5745e76", "score": "0.59989977", "text": "public function handlePreviousStep()\r\n {\r\n\tif($this->isComplete()) {\r\n\t $this->setComplete(FALSE);\r\n\t} else {\r\n\t if($this->session->currentStep != 1) {\r\n\t\t$this->session->currentStep--;\r\n\t }\r\n\t}\r\n\t$this->redirect('this');\r\n }", "title": "" }, { "docid": "2ae79cf1a4debc8d81f45bf26c1cba29", "score": "0.5961009", "text": "function checkbtBugs()\n{\n if (isset($_POST['button']) && $_POST['button'] === \"Save and Continue\") {\n $_SESSION['error'] = false;\n $_SESSION['errorMessage'] = array();\n //everything was ok - move to next step\n $_SESSION['wizardStep']['done']['7'] = true;\n setCurrentStep(10);\n }\n return;\n}", "title": "" }, { "docid": "a23e53af08c7bc03eab2a1fb36d6e7ef", "score": "0.5956194", "text": "public function finish(): void\n {\n }", "title": "" }, { "docid": "06dca3f47666d70f2b9e31a875b23d7f", "score": "0.5938702", "text": "protected function after() {\n\t\techo \" (after)\";\n\t}", "title": "" }, { "docid": "c74eceb472ed41404095e31b2d160152", "score": "0.5938164", "text": "public function doneTodo()\n {\n $this->todo = array();\n }", "title": "" }, { "docid": "1cc9391551261337351cb601062aa4cd", "score": "0.593815", "text": "protected function doFinish()\n {\n $newDomain = Domain::firstOrCreate([\n 'project_id' => $this->cur_proj->id,\n 'name' => $this->data['name'],\n ]);\n\n if ($newDomain) {\n $this->say('Теперь я отслеживаю протухание домена http://' . $newDomain->name);\n\n } else {\n $this->say('Не смог добавить домен');\n }\n }", "title": "" }, { "docid": "bd6abe4766c5120055556cc6d416d56d", "score": "0.5932781", "text": "function finish();", "title": "" }, { "docid": "72fe0f5641401fc64442f7b9230941e2", "score": "0.5901537", "text": "private function goal() {\n \techo \"Goal Event handled\";\n \treturn true;\t\n }", "title": "" }, { "docid": "a6be6ae2388f48e2314a817bcd69b317", "score": "0.58947146", "text": "function save_complete() {\n\t\tif(!isset($this->complete)) {\n\t\t\t$this->complete = 1;\n\t\t}\n\t}", "title": "" }, { "docid": "04b286677a5e71a91d3b5df205ee0202", "score": "0.58939224", "text": "function after_process() {\r\n\r\n \r\n }", "title": "" }, { "docid": "f283a78bcba4d75b0c7c76b4dec2a3ad", "score": "0.5855037", "text": "public function completed()\n\t{\n\t\t// If user is already logged in, redirect them to their dashboard automatically.\n\t\t$user \t\t= Foundry::user();\n\n\t\tif( $user->id )\n\t\t{\n\t\t\treturn $this->redirect( FRoute::dashboard( array() , false ) );\n\t\t}\n\n\t\t$userId \t= JRequest::getInt( 'userid' );\n\t\t$user \t\t= Foundry::user( $userId );\n\n\t\t// Get the profile type.\n\t\t$id \t\t= JRequest::getInt( 'id' );\n\t\t$profile\t= Foundry::table( 'Profile' );\n\t\t$profile->load( $id );\n\n\t\t$type \t\t= $profile->getRegistrationType();\n\n\t\t$this->set( 'user'\t\t, $user );\n\t\t$this->set( 'type'\t\t, $type );\n\t\t$this->set( 'profile'\t, $profile );\n\n\t\techo parent::display( 'site/registration/default.complete' );\n\t}", "title": "" }, { "docid": "cf7468870f8abc78925ab0c88bf93215", "score": "0.58281547", "text": "public function finish(): void;", "title": "" }, { "docid": "7275d3afd4c2e69ad96701b605485ea3", "score": "0.5824776", "text": "public function onFinished() {}", "title": "" }, { "docid": "feaf77561192c8b5028675f3e89c7558", "score": "0.57908446", "text": "function finish(){\n\tsetRemainingInit(0);\n\treturn 0;\n}", "title": "" }, { "docid": "d5d63b20af2afc6e6e98d00a1ad142c9", "score": "0.57641476", "text": "public function completed() {\n\t\t$home_lang = $this->session->userdata('home_lang');\n\t\t$diff_lang = $this->session->userdata('diff_lang');\n\t\t$data = array(\n\t\t\t'data' => '',\n\t\t);\n\t\t$this->template->write('title','Completed book tour');\n\t\t$this->template->write_view('content','FRONTEND/content/completed',$data);\n\t\t$this->template->render();\n\t}", "title": "" }, { "docid": "d24a80d5986b33ad06efd88ea1bee41b", "score": "0.5762386", "text": "function finishSetup() {\r\n header(\"Location:/actsetup\");\r\n}", "title": "" }, { "docid": "176898ecfeb83c8c061cb1b7c9d8fc57", "score": "0.5759981", "text": "protected function onFinish()\n {\n }", "title": "" }, { "docid": "f44a16afd729cc8128338042d6bf9081", "score": "0.5758239", "text": "public function action_done()\n {\n $class = str_replace('hook_pointstore_', '', strtolower(get_class($this)));\n\n $title = get_screen_title('GIFTR_TITLE');\n\n require_code('form_templates');\n $fields = new Tempcode();\n\n $fields->attach(form_input_username(do_lang_tempcode('TO_USERNAME'), do_lang_tempcode('MEMBER_TO_GIVE'), 'username', get_param_string('username', ''), true));\n\n $fields->attach(form_input_text(do_lang_tempcode('MESSAGE'), do_lang_tempcode('DESCRIPTION_GIFT_MESSAGE'), 'gift_message', '', true));\n\n $fields->attach(form_input_tick(do_lang_tempcode('ANON'), do_lang_tempcode('DESCRIPTION_ANONYMOUS'), 'anonymous', false));\n\n $submit_name = do_lang_tempcode('SEND_GIFT');\n $text = paragraph(do_lang_tempcode('CHOOSE_MEMBER'));\n\n $post_url = build_url(array('page' => 'pointstore', 'type' => 'action_done2', 'id' => 'giftr', 'gift' => get_param_string('gift', 0)), '_SEARCH');\n\n return do_template('FORM_SCREEN', array('_GUID' => '0d2878fbba63b22f7225a05ec2672537', 'SKIP_WEBSTANDARDS' => true, 'STAFF_HELP_URL' => '', 'HIDDEN' => '', 'TITLE' => $title, 'FIELDS' => $fields, 'TEXT' => $text, 'SUBMIT_ICON' => 'buttons__proceed', 'SUBMIT_NAME' => $submit_name, 'URL' => $post_url));\n }", "title": "" }, { "docid": "331c39cf0e6912fb982b18591116d238", "score": "0.5752495", "text": "public function requestExit() {\n $this->isExiting = true;\n }", "title": "" }, { "docid": "07e007f977caf969ad07d5bd09c152f5", "score": "0.57522154", "text": "function toggle_finished()\r\n {\r\n $this->set_finished(!$this->get_finished());\r\n }", "title": "" }, { "docid": "66f90143577ff9570f1b1c316cd6fd7f", "score": "0.5750989", "text": "public function finish();", "title": "" }, { "docid": "66f90143577ff9570f1b1c316cd6fd7f", "score": "0.5750989", "text": "public function finish();", "title": "" }, { "docid": "e5782c13b191de2c77539e465e281fb0", "score": "0.5749263", "text": "public function done($id, $value = 1) {\n $this->id = $id;\n $this->saveField('done', $value);\n }", "title": "" }, { "docid": "b2c33ab7f28a991dd08ff5d6fe66dc28", "score": "0.56974953", "text": "public function complete()\n {\n $view_data = [];\n\n $view_data['button'] = !$this->input->get('button') ? 'on' : 'off';\n\n $this->_render($view_data);\n }", "title": "" }, { "docid": "1ab3c034c6d811ff18a5bd69ef860556", "score": "0.56902754", "text": "public function end()\n {\n // nothing to do here\n }", "title": "" }, { "docid": "0f7dff9c45cc2c3b5dcfef255f77498d", "score": "0.5680309", "text": "public function flowEnd();", "title": "" }, { "docid": "e7c342f802de0425203b4dfa0fd6b5a7", "score": "0.5678916", "text": "abstract protected function onFinish();", "title": "" }, { "docid": "836b5218145fedbad7800f21886915db", "score": "0.5666682", "text": "public function end(){\n\t\t$this->return_flag=false;\n\t}", "title": "" }, { "docid": "319e88bb5644e98d8f2d26a41f85ef35", "score": "0.56526494", "text": "function doPlayerFinish($command){\r\n\t\tif (IN_XASECO) if ($command->score==0) return;\r\n\t\t$this->settings[\"localrecordswidget\"][\"needsUpdate\"] = true;\r\n\t\t//$this->showRecordsWidgets(true);\r\n\t}", "title": "" }, { "docid": "4291d239a741d4e0e8f4c12609797314", "score": "0.5651873", "text": "public function finish()\n {\n $this->setCurrentDir($this->orgDir);\n }", "title": "" }, { "docid": "dbf65b559a1489b7dbd2fd8b533b0dc4", "score": "0.5630222", "text": "public function complete_login()\n\t{\n\t}", "title": "" }, { "docid": "30328d8e59cdcab7d37ad9ccc57ec162", "score": "0.56236523", "text": "function main()\n{\n\techo \"<br><br><br>Begin processing of form data...<br>\";\n\tprocessFormData();\n echo \"Done!<br>\";\n showFormBtn();\n}", "title": "" }, { "docid": "63b5f635cf32fee299233e89aadb6fe4", "score": "0.56227493", "text": "private function end() {\n\t\t$content = file_get_contents( './stagePages/end.txt' );\n\t\t$this->uphp->assembleHtml( $content, 'Ende', true );\n\t}", "title": "" }, { "docid": "a527509e1cf693cbc3794dd5f6504ffb", "score": "0.56020117", "text": "protected function _statusCompleted()\n {\n $this->_writeLog('Not doing anything in statusCompleted');\n }", "title": "" }, { "docid": "06ebb31ac3a63ae84e3e596f002bba70", "score": "0.55950207", "text": "public function proceedToRequestedStepAndSave(): int\n {\n $currentStepName = $this->getCurrentStepName();\n\n // clear cached form\n $this->currentForm = null;\n\n $direction = $this->getSubmitAction() === self::SUBMIT_ACTION_BACK ?\n FormFlowNavigator::DIRECTION_BACKWARD : FormFlowNavigator::DIRECTION_FORWARD;\n $navigationResult = $this->navigator->proceedInDirection($direction, $this->getSteps());\n\n if ($navigationResult === FormFlowNavigator::NAV_FINISHED) {\n if ($this->getState() === self::STATE_FINISHED) {\n throw new AlreadyFinishedException($this, \"Tried to finish already finished form flow.\");\n }\n\n $this->setState(self::STATE_FINISHED);\n }\n\n $this->save($currentStepName);\n\n if ($navigationResult === FormFlowNavigator::NAV_FINISHED) {\n $this->dispatchEvent(new FlowFinishedEvent($this->getInstanceId(), $this->getData()), FlowFinishedEvent::NAME);\n }\n\n return $navigationResult;\n }", "title": "" }, { "docid": "6c338241d75b4c0ce25e494be9a313e8", "score": "0.55939347", "text": "public function endSetup();", "title": "" }, { "docid": "c3f419471b11df7f6d07470a14d69eef", "score": "0.5586973", "text": "public function complete()\n\t{\n\t\tif (!isset($this->record[$this->primary_key]))\n\t\t{\n\t\t\treturn;\t// Nothing to do\n\t\t}\n\n\t\tif (array_key_exists('completed', $this->schema) && array_key_exists('completed', $this->record))\n\t\t{\n\t\t\t$this->__set('completed', date('c', time()));\n\t\t\t$this->save();\n\t\t}\n\t}", "title": "" }, { "docid": "f9750bf24a5dfe67ea60d0ab12c730e7", "score": "0.5583998", "text": "public function afterScenario()\r\n {\r\n if ($this->isGiven) {\r\n $this->title = $this->failStepLine;\r\n }\r\n\r\n $this->description = $this->title .\r\n \"\\n\\n*Шаги сценария:*\\n\" . $this->fullSteps . \"\\n\" .\r\n \"\\n\\n*Пройденнные шаги:*\\n\";\r\n\r\n foreach ($this->passStepsLines as $step) {\r\n $this->description = $this->description . \"\\n # \" . $step;\r\n }\r\n\r\n $this->description = $this->description .\r\n \"\\n\\n*Шаг на котором возникла ошибка:*\\n\" .\r\n $this->failStepLine .\r\n \"\\n*Последняя фраза:*\\n\" .\r\n LastPhrase::getPhrase() .\r\n \"\\n*Последний URL:*\\n\" . $this->lastURL .\r\n \"\\n*Лог с консоли:*\\n\" . $this->lastConsoleLog .\r\n \"\\n*Примечания*\\nИмя gif:\\n\" . \"file:///home/meldon/PhpstormProjects/All4bom_TA/features/bootstrap/src/BugReport/GifRecord/gif/\" . $this->additionallyLine . \"\" .\r\n \"\\n\";\r\n $this->title = \"[\" . $this->idTest . \"] \" . $this->title;\r\n }", "title": "" }, { "docid": "863be751552a2c66bb25ef221cf69f3d", "score": "0.5581707", "text": "public function process() {\n\t\tif (!$this->input->post()) {\n\t\t\tredirect('error');\n\t\t} else {\n\t\t\tif ($this->input->post('back') == 1) {\n\n\t\t\t\t$form_step = $this->get_form_step();\n\t\t\t\t$next_step = $form_step;\n\t\t\t\tswitch($form_step) {\n\t\t\t\t\tcase 'start':\n\t\t\t\t\tcase 'scenario':\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'success':\n\t\t\t\t\t\t$next_step = 'scenario';\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\t$next_step = 'scenario';\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'electronicSignature':\n\t\t\t\t\t\t$this->scenario = $this->get_form_scenario();\n\t\t\t\t\t\t$next_step = count($this->form_scenario_a);\n\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tif (is_numeric($form_step)) {\n\t\t\t\t\t\t\t$this->scenario = $this->get_form_scenario();\n\t\t\t\t\t\t\tswitch($this->scenario) {\n\t\t\t\t\t\t\t\tcase 'assistance':\n\t\t\t\t\t\t\t\t\tif ($form_step == count($this->form_scenario_a)) {\n\t\t\t\t\t\t\t\t\t\t$next_step = count($this->form_scenario_a) - 1;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t$next_step = $form_step - 1;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase 'foster':\n\t\t\t\t\t\t\t\t\tif ($form_step == count($this->form_scenario_b)) {\n\t\t\t\t\t\t\t\t\t\t$next_step = count($this->form_scenario_b) - 1;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t$next_step = $form_step - 1;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase 'no':\n\t\t\t\t\t\t\t\t\tif ($form_step == count($this->form_scenario_c)) {\n\t\t\t\t\t\t\t\t\t\t$next_step = count($this->form_scenario_c) - 1;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t$next_step = $form_step - 1;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t$this->set_form_step($next_step);\n\t\t\t\tredirect('apply');\n\n\t\t\t} else {\n\t\t\t\t$this->process_form();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "87e8c586d73e2c7802d2597168055ce2", "score": "0.5575621", "text": "public function next() { \n\n\t\t$this->send_command('next'); \n\t\treturn true;\n\n\t}", "title": "" }, { "docid": "434075d18d4b5064f68e4c0938266799", "score": "0.5571678", "text": "public function isDone()\n {\n return ($this['isDone'] === '1');\n }", "title": "" }, { "docid": "a60df6bf52f6be05280bfda4a7ce33df", "score": "0.55386287", "text": "protected function wizard_step() {\n\t\t/*$domain = 'http://' . $this->posted_appname . '.' . $this->rootdomain ;\n\t\t$email = $this->posted_mail ? $this->posted_mail : $this->posted_appname.'@'.$this->rootdomain ;\n\t\t$title = $this->posted_appname;\t\t\t\n\t\t\n\t\t$data = array('DOMAIN-NAME'=>$domain,'E-MAIL'=>$email,\n\t\t 'TITLE'=>$title,'SUBTITLE'=>'#your-subtitle',\n\t\t 'META-DESCRIPTION'=>'#your-description','META-KEYWORDS'=>'#your-keywords',\n\t\t\t\t\t 'FEEDBURNER'=>'#feedburner-url','TWITTER'=>'#tweeter-url','FACEBOOK'=>'#facebook-url','GOOGLEPLUS'=>'#googleplus-url',\n\t\t\t\t\t 'FLICKR'=>'#flickr-url','VIMEO'=>'#viemo-url','LINKEDIN'=>'#linkedin-url','DELICIOUS'=>'#delicious-url',\n\t\t\t\t\t 'FBLIKEBOX-PLUGIN'=>'#fb-plugin','FLICKRBADGE-PLUGIN'=>'#flickr-plugin');\t\n\t\t\n\t\t\t\t\n\t\t//$ok = $this->change_data('cp/html', $data);\t \n\t\t*/\n\t\t\n\t\t//..change domain ? (www.name.gr can be bind here...)..or skip \n\t\t//...change mail ? (mailform can be changed here ?...)..or skip\n\t\t//..change logo (search for logo.png in images folder?)..or skip.....<<<<<<<<\n\t\t//..change title subttile ..or skip\n\t\t//..change/add meta keyword if not exist as html tag...)..or skip\n\t\t//..change/add meta description if not exist as html tag...)..or skip\n\t\t//add social media..one by one..explaining and add... or skip...\n\t\t\n\t\t//....\n\t\t\n\t\t//html file by html file...edit ....\n\t\t//......\n\t\t\n\t\t//image upload....\n\t\t//.....\n\t\t\n\t\t//cp commands win explain step by step...\n\t\t//.....dashboard....\n\t\t\n\t\t//echo 'current step:'.$this->wstep;\n\t\t$step_index = 0; //0 is welcome screen\n\t\t//print_r($this->wdata);\n\t\tforeach ($this->wdata as $stepname=>$stepaction) {\n\t\t\t//echo $stepname,':',$stepaction,'>';\n \n\t\t\tif (($stepaction) && ($step_index==$this->wstep)) {//if step val exist\n\t\t\t //echo $stepname,':',$stepaction,'>';\n\t\t\t\t$ret = $this->render_step($stepname, $stepaction);\n\t\t\t\tif ($ret) \n\t\t\t\t return ($ret); //else continue....other steps...\n\t\t\t\t//else\n\t\t\t\t //$this->wstep += 1;//virt inc..\n //$step_index += 1;\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t $step_index += 1;\n\t\t}\n\t\t\n\t\t//finilizing wizard exist screen...\n\t\t$ret = $this->final_step();\n\t\treturn ($ret);\n\t}", "title": "" }, { "docid": "b2fae7d6eddbac8f9a81a758b3258e1b", "score": "0.5533742", "text": "public function finished($user, $workflow);", "title": "" }, { "docid": "93de9137af181c1faf1ca9b79c6330b0", "score": "0.5533669", "text": "public function pause($message=\"[ ENTER TO STEP | 'FINISH' TO CONTINUE ]\")\n {\n if (!$this->step) return;\n\n $this->hr();\n $this->output($message);\n $this->hr();\n\n $line = $this->input();\n\n if (strtolower(trim($line)) == 'finish')\n {\n $this->step = false;\n }\n }", "title": "" }, { "docid": "ffd502499457c2cbbed554bbe76fdb89", "score": "0.5529913", "text": "function admin_end() {\n //global $sFormErr; \t \n\t $sFormErr = GetGlobal('sFormErr');\n\t \n //error message\n $toprint .= setError($sFormErr);\n\t\t \n\t $toprint .= $this->admin_commands();\n\n\t $toprint .= \"</FORM>\"; //the end of the form\n\n\t $toprint .= $this->admin_actions();\t\t \n \n return ($toprint);\n }", "title": "" }, { "docid": "11c4561db4851b598cb173602de3e7aa", "score": "0.5527484", "text": "function submit() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "3ecaf2bbe29e800e5f93f61d6b7bf383", "score": "0.55232763", "text": "public function paymentCancelled()\n {\n $this->currentStep = 1;\n }", "title": "" }, { "docid": "37fd4b2a6ca8168ad4ebe61082590469", "score": "0.5518926", "text": "protected function goodbye()\n {\n $this->info('>> The installation process is complete! <<');\n }", "title": "" }, { "docid": "ac1f73fbf9e672cf2f03386dbfb57049", "score": "0.5517197", "text": "function stepA() {\n echo \"Step A done.\\n\";\n }", "title": "" }, { "docid": "9938910f1aef7adeba93c34ab0e25ea6", "score": "0.5513636", "text": "public function hi_roy() {\n\t\t\t$this->exit_like_a_boss();\n\t\t}", "title": "" }, { "docid": "425160d3c0b1b12a6f964b25dd6dca0c", "score": "0.551094", "text": "protected abstract function onFinished();", "title": "" }, { "docid": "005c992085edeb04537872c168555101", "score": "0.5508869", "text": "public function onDone(OrderEntity $order){}", "title": "" }, { "docid": "87b4ab02e8a9cc303a77a111d594e16f", "score": "0.55077904", "text": "public function action_skip()\n\t{\n\t\treturn;\n\t}", "title": "" }, { "docid": "5bca3a2ca12725ef7c4dd27331a756ce", "score": "0.5506908", "text": "function chairFinish($material)\r\n\t\t\t{\r\n\t\t\techo $material . \" finish.<br />\";\r\n\t\t\t}", "title": "" }, { "docid": "c581f3af15ae7bcfbcfdcdd085eaef0c", "score": "0.55062973", "text": "public function finish()\n {\n parent::finish();\n\n // create enum arrays\n $class_name = lib::get_class_name( 'database\\consent' );\n $events = $class_name::get_enum_values( 'event' );\n $events = array_combine( $events, $events );\n\n // set the view's items\n $this->set_item( 'event', $this->get_record()->event, true, $events );\n $this->set_item( 'date', $this->get_record()->date, true );\n $this->set_item( 'note', $this->get_record()->note );\n\n $this->finish_setting_items();\n }", "title": "" }, { "docid": "5e19f080f548d2a5aa1aaf1ff978f2ee", "score": "0.54940754", "text": "public function finalizeDeployment() : void {\n $via_ui = filter_input( INPUT_POST, 'ajax_action' );\n\n if ( is_string( $via_ui ) ) {\n echo 'SUCCESS'; }\n }", "title": "" }, { "docid": "54b2d1fc7276f08a6e5d6a3645ddfe46", "score": "0.5476043", "text": "function finish_selected_item () {\r\n $conn = db_connect();\r\n \r\n $query = \"update items set item_state = 'FINISH' where item_id = '\".$_SESSION['current_item_id'].\"'\";\r\n $result = $conn->query(\"set names utf8\");\r\n $result = $conn->query($query);\r\n if (!$result) {\r\n throw new Exception(\"Could not finish the item.\");\r\n }\r\n // delete the auto_notify setting\r\n $result = $conn->query(\"delete from auto_notify where item_id = '\".$_SESSION['current_item_id'].\"'\");\r\n\r\n // arrange the notify setting information into the array\r\n $change_field = array();\r\n array_push($change_field, array(\r\n 'name' => '事项状态',\r\n 'old_value' => '运行中',\r\n 'new_value' => '关闭'\r\n )\r\n );\r\n // log the update information\r\n log_item($change_field);\r\n return true;\r\n }", "title": "" }, { "docid": "e9719ddf3cbe7a5f4f29948779ae86c5", "score": "0.5470037", "text": "function afterAction()\n {\n }", "title": "" }, { "docid": "e9719ddf3cbe7a5f4f29948779ae86c5", "score": "0.5470037", "text": "function afterAction()\n {\n }", "title": "" }, { "docid": "e9719ddf3cbe7a5f4f29948779ae86c5", "score": "0.5470037", "text": "function afterAction()\n {\n }", "title": "" }, { "docid": "37c1c3630d87ca0028b88725693f72cd", "score": "0.54690427", "text": "public function end() {}", "title": "" }, { "docid": "37c1c3630d87ca0028b88725693f72cd", "score": "0.54690427", "text": "public function end() {}", "title": "" }, { "docid": "61ce2b79e8c076262a4e01b3619d3d28", "score": "0.54654104", "text": "function onExecute(ActionEvent $event)\n {\n $event->getAction()->setState(Action::STATE_COMPLETED);\n }", "title": "" }, { "docid": "7e628fd21ac92c044b4684d5e8650742", "score": "0.5450461", "text": "function _return_success() {\r\r\n\t\tprint \"Thank You,Your transaction is successfully completed\";\r\r\n\t\tredirect(LBL_SITE_URL);\r\r\n\t}", "title": "" }, { "docid": "d35b93a87610a656d564768092b6f957", "score": "0.54418045", "text": "public function done(): bool\n {\n throw new RuntimeException(self::EXCEPTION_MESSAGE);\n }", "title": "" }, { "docid": "403c189d47c543d87f6afd1d53a44b8c", "score": "0.54336643", "text": "public function output()\n {\n echo \"Finished.....\\n\";\n }", "title": "" }, { "docid": "cc285b6b6e235b9b189051518d113415", "score": "0.5429771", "text": "public function mark(){\n\n $this->done=$this->done ? false : true;\n $this->save();\n }", "title": "" }, { "docid": "2a671775c6ad01a56ac6df0bc42f75fa", "score": "0.54263103", "text": "public function end();", "title": "" }, { "docid": "0c037eead2db8db2d78ed8ace5148993", "score": "0.5424343", "text": "protected function complete()\n {\n $this->runCommands(['rm -rf tmp']);\n }", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "27be8205937a3e5ad21d491536c37e18", "score": "0.0", "text": "public function store(Request $request)\n {\n // $news = News::Create([\n // 'address'=> $request->address,\n // 'image'=> $request->image,\n // 'news'=> $request->news,\n // ]);\n\n\n\n $request->validate([\n 'address' => 'required|string|max:400|min:15',\n 'image' => 'image',\n\n ]);\n\n $image_path = null;\n if ($request->hasFile('image') && $request->file('image')->isValid()) {\n $image = $request->file('image');\n $image_path = $image->store('courses', 'public');\n }\n\n \n\n $data = $request->all();\n \n $data['image'] = $image_path;\n\n $new = News::create($data);\n\n \n\n return redirect('/admin/news')\n ->with('alert-success',\"news \\\"{$new->name}\\\" Created!\");\n }", "title": "" } ]
[ { "docid": "70f839d67344487e3780c8ca780ec59c", "score": "0.78094894", "text": "public function store(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "df5c676a539300d5a45f989e772221a5", "score": "0.7009085", "text": "public function store()\n {\n return $this->storeResource();\n }", "title": "" }, { "docid": "56a1d1d00b789bcc32f6ce99932cc19b", "score": "0.65489227", "text": "public function store(Request $request)\n {\n //Validate request\n $this->validate($request, [\n 'name' => 'required|max:255|unique:resources',\n 'url' => 'required|max:255|unique:resources|active_url',\n 'description' => 'required|max:10000',\n 'tags.*' => 'exists:tags,id'\n ]);\n //Create the resource\n $newResourceData = [\n 'name' => $request->name,\n 'url' => $request->url,\n 'description' => $request->description,\n 'is_published' => Auth::user() && Auth::user()->isAdmin()\n ];\n if (Auth::user()){\n $resource = Auth::user()->resources()->create($newResourceData);\n }\n else{\n $resource = Resource::create($newResourceData);\n }\n //Add the tags for this resource to the pivot table\n $resource->tags()->attach($request->tags);\n $responseText = 'Resource created';\n $responseText .= Auth::user() && Auth::user()->isAdmin() ? ' and published!' : ' and awaiting review.';\n //Take them back to the resource form so they can add more resources\n return redirect('/resources/create')->with('success', $responseText);\n }", "title": "" }, { "docid": "d5deceebf787a137745e10078f88a17c", "score": "0.6420556", "text": "public function store(StorageRequest $request)\n {\n try {\n $this->service->addStorage($request);\n return $this->Created('Successfully added new storage');\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 }", "title": "" }, { "docid": "55b375ea7c339e8f0e9c38919b53b1db", "score": "0.63756555", "text": "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63650846", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63650846", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63650846", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63650846", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63650846", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63650846", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341676", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" } ]
76d405f6aa3b9c92bc69f9ac0df88862
Set the spam list.
[ { "docid": "de6c772aa2a6e80105fabb25c5732557", "score": "0.6964643", "text": "public function setSpamList(?bool $spamList): Breach {\n $this->spamList = $spamList;\n return $this;\n }", "title": "" } ]
[ { "docid": "bdd6b4cc6d482d8ff2f100efafda455b", "score": "0.60648894", "text": "public function setAsSpam()\n {\n $this->status = SPAM;\n return $this;\n }", "title": "" }, { "docid": "21bee99ac931427646558acbb6d40acc", "score": "0.5680602", "text": "public function setWhitelist($whitelist) {\n\t\t$this->whitelist = $whitelist;\n\t}", "title": "" }, { "docid": "4a05cb752b67f5ee895b87c9aacfa098", "score": "0.56597686", "text": "public function __construct(Spam $spam)\n {\n $this->spam = $spam;\n }", "title": "" }, { "docid": "811e216b2e05454d68f470f9b24f3f05", "score": "0.56090814", "text": "public function setWhitelist(array $whitelist)\n {\n $this->whitelist = $whitelist;\n }", "title": "" }, { "docid": "f99b757f7a47179e591be9931643cbf3", "score": "0.55326074", "text": "public function set(array $list);", "title": "" }, { "docid": "b3dad3065bd504340beefa61debbec97", "score": "0.5507949", "text": "function setBlackList($a_blacklist)\n\t{\n\t\t$this->blacklist = $a_blacklist;\n\t}", "title": "" }, { "docid": "e7c41f56b2a98fc41c97a4256d36f58e", "score": "0.5491781", "text": "function setWhiteList($a_whitelist)\n\t{\n\t\t$this->whitelist = $a_whitelist;\n\t}", "title": "" }, { "docid": "e926ea809ce117a7c0fafa557a72164e", "score": "0.5458647", "text": "public function setWhitelist($whitelist);", "title": "" }, { "docid": "04bcd199af3900fa9903796eba95cb54", "score": "0.5220897", "text": "public function setBlacklist($blacklist);", "title": "" }, { "docid": "a3d9cb010720c0f0ecbc30b21b0ee1a2", "score": "0.52191323", "text": "public function getSpamList(): ?bool {\n return $this->spamList;\n }", "title": "" }, { "docid": "cabc47e5840e717c3b8fcb742b6af1ee", "score": "0.5196692", "text": "public function setList($list)\n {\n $this->audience_list = $list;\n return $this;\n }", "title": "" }, { "docid": "aecb32411b1df1d2c34a41d855f9ede0", "score": "0.5189512", "text": "public function setAllowedItems(array $itemList): void\n {\n $this->allowedList = $itemList;\n }", "title": "" }, { "docid": "5328087dd841e8b7a1e95706bf6fab24", "score": "0.51413995", "text": "public function setList($list) {\r\n $this->list = $list;\r\n return $this;\r\n }", "title": "" }, { "docid": "e8afcb1be2272a4bf2ce2ac78216a15d", "score": "0.5090801", "text": "function spam_protection( $irc, $data ) {\n\t\tif ( $this->_nick == $data->nick ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// If this is the users first message, it's stored and ignored.\n\t\tif ( ! isset( $this->spam_check[ $data->nick ] ) ) {\n\t\t\t$this->spam_check[ $data->nick ] = array(\n\t\t\t\t'message' => array(\n\t\t\t\t\t$data->message,\n\t\t\t\t),\n\t\t\t\t'timestamp' => time(),\n\t\t\t\t'repeat' => 1,\n\t\t\t\t'succession' => array(\n\t\t\t\t\t'times' => 1,\n\t\t\t\t\t'timestamp' => time(),\n\t\t\t\t)\n\t\t\t);\n\t\t\treturn;\n\t\t}\n\n\t\t// If this message is not the same as the previous one, add it to the history.\n\t\tif ( ! in_array( $data->message, $this->spam_check[ $data->nick ]['message'] ) ) {\n\t\t\t$this->spam_check[ $data->nick ]['timestamp'] = time();\n\t\t\t$this->spam_check[ $data->nick ]['repeat'] = 1;\n\t\t\t$this->spam_check[ $data->nick ]['message'][] = $data->message;\n\n\t\t\t/*\n\t\t\t * If there's too many messages stored, remove the oldest entries until we're below the entry limit.\n\t\t\t * We use a loop here, in case there's lag we don't want to accidentally keep increasing the\n\t\t\t * amount of lines unintentionally.\n\t\t\t */\n\t\t\twhile ( count( $this->spam_check[ $data->nick ]['message'] ) > SPAM_MEMORY ) {\n\t\t\t\tarray_shift( $this->spam_check[ $data->nick ]['message'] );\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\t// The message should at this point be a repeat, check how often it's been repeated.\n\t\t$this->spam_check[ $data->nick ]['repeat']++;\n\n\t\t// Three repetitions makes us count this as spam.\n\t\tif ( $this->spam_check[ $data->nick ]['repeat'] >= $this->spam_repeats ) {\n\t\t\tif ( ! isset( $this->spam_kicked[ $data->nick ] ) ) {\n\t\t\t\t$this->spam_kicked[ $data->nick ] = array(\n\t\t\t\t\t'repeat' => 0,\n\t\t\t\t\t'timestamp' => time(),\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t$this->spam_kicked[ $data->nick ]['repeat']++;\n\n\t\t\tif ( $this->spam_kicked[ $data->nick ]['repeat'] >= $this->spam_auto_ban ) {\n\t\t\t\t// $data->nick . \"!\" . $data->ident . \"@\" . $data->host\n\t\t\t\t$hostmask = sprintf(\n\t\t\t\t\t'*!*@%s',\n\t\t\t\t\t$data->host\n\t\t\t\t);\n\n\t\t\t\t$irc->ban( $data->channel, $hostmask, SMARTIRC_CRITICAL );\n\t\t\t}\n\n\t\t\t$irc->kick( $data->channel, $data->nick, 'Please refrain from spamming in #WordPress.', SMARTIRC_CRITICAL );\n\t\t\treturn;\n\t\t}\n\n\t\t// Check if it's rapid, but unique, lines, which may still be spam!\n\t\tif ( ( time() - $this->spam_check[ $data->nick ]['succession']['timestamp'] ) <= $this->spam_lines_seconds ) {\n\t\t\t$this->spam_check[ $data->nick ]['succession']['times']++;\n\t\t} else {\n\t\t\t$this->spam_check[ $data->nick ]['succession'] = array(\n\t\t\t\t'timestamp' => time(),\n\t\t\t\t'times' => 1,\n\t\t\t);\n\t\t}\n\n\t\t// Is the user spamming\n\t\tif ( $this->spam_check[ $data->nick ]['succession']['times'] >= $this->spam_lines ) {\n\t\t\tif ( ! isset( $this->spam_muted[ $data->nick ] ) ) {\n\t\t\t\t$this->spam_muted[ $data->nick ] = array(\n\t\t\t\t\t'repeat' => 0,\n\t\t\t\t\t'timestampe' => time(),\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t$this->spam_muted[ $data->nick ]['repeat']++;\n\n\t\t\tif ( $this->spam_muted[ $data->nick ]['repeat'] >= $this->spam_auto_ban ) {\n\t\t\t\t// $data->nick . \"!\" . $data->ident . \"@\" . $data->host\n\t\t\t\t$hostmask = sprintf(\n\t\t\t\t\t'*!*@%s',\n\t\t\t\t\t$data->host\n\t\t\t\t);\n\n\t\t\t\t$irc->ban( $data->channel, $hostmask, SMARTIRC_CRITICAL );\n\n\t\t\t\t$irc->kick( $data->channel, $data->nick, 'Banned for repeated spam in #WordPress.', SMARTIRC_CRITICAL );\n\t\t\t} else {\n\t\t\t\t// $data->nick . \"!\" . $data->ident . \"@\" . $data->host\n\t\t\t\t$hostmask = sprintf(\n\t\t\t\t\t'*!*@%s',\n\t\t\t\t\t$data->host\n\t\t\t\t);\n\n\t\t\t\t$mute_command = sprintf(\n\t\t\t\t\t'+q %s',\n\t\t\t\t\t$hostmask\n\t\t\t\t);\n\n\t\t\t\t$this->spam_muted[ $data->nick ]['repeat']['timestamp'] = time();\n\t\t\t\t$this->spam_muted[ $data->nick ]['repeat']['hostmask'] = $hostmask;\n\n\t\t\t\t$irc->mode( $data->channel, $mute_command, SMARTIRC_CRITICAL );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fff34153a98f7970286122491e01fb6f", "score": "0.5039297", "text": "Function setTo($to) {\n\t\tif (!is_array($to)) {\n\t\t\t$to = str_replace(\";\", \",\", $to);\n\t\t\t$to = explode(\",\", $to);\n\t\t}\n\t\t$to = array_map(Array($this, '_normalizeEmailAddress'), $to);\n\t\tif ($this->blockDupe)\n\t\t\t$to = array_unique($to);\n\t\t$to = implode(\",\", $to);\n\n\t\t$this->to = $to;\n\t}", "title": "" }, { "docid": "e8d6410858cf690a7aefe3a1ba4767d6", "score": "0.5031574", "text": "public function set()\n {\n if (null === ($bots = $this->getFromCache())) {\n $bots = $this->getFromWeb();\n }\n $botInfo = $this->parseCsv($bots);\n $this->bots = (is_array($botInfo->distinctBots))\n ? $botInfo->distinctBots\n : array();\n $this->botIps = (is_array($botInfo->distinctIPs))\n ? $botInfo->distinctIPs\n : array();\n return $this;\n }", "title": "" }, { "docid": "e03988843330f25a3c9f21642a1c0ae8", "score": "0.4998776", "text": "public static function set_spam_protector($protector) {\n\t\tself::$spam_protector = $protector;\n\t}", "title": "" }, { "docid": "e6e09dc68022ae2b38ec7ff548a11bba", "score": "0.4972231", "text": "function setListLimit( $value )\r\n {\r\n $this->ListLimit = $value;\r\n }", "title": "" }, { "docid": "a40fbd9569d1ed60b52066478206ba7f", "score": "0.49659616", "text": "public function set()\n\t{\n\t\t$this->gpib->sendAll();\n\t}", "title": "" }, { "docid": "25b36899b69e874850f5e65f09b32fac", "score": "0.49487713", "text": "private function setItemList($list)\n {\n if (is_array($list))\n {\n $this->itemList = $list;\n }\n else\n {\n throw new InvalidArgumentException('The given item list is invalid.', 1);\n }\n }", "title": "" }, { "docid": "af4d01a1433be8ed8ba497e84d28a00c", "score": "0.49466696", "text": "public function setMemberOf(?array $value): void {\n $this->getBackingStore()->set('memberOf', $value);\n }", "title": "" }, { "docid": "af4d01a1433be8ed8ba497e84d28a00c", "score": "0.49466696", "text": "public function setMemberOf(?array $value): void {\n $this->getBackingStore()->set('memberOf', $value);\n }", "title": "" }, { "docid": "e45ccceca70112cb9a347b24e07bebf9", "score": "0.49308956", "text": "function spam_throttle_20130224() {\n $exempt = unserialize(elgg_get_plugin_setting('exempt', 'spam_throttle'));\n \n if (is_array($exempt)) {\n\tforeach ($exempt as $guid) {\n\t $user = get_user($guid);\n\t \n\t if ($user) {\n\t\t$user->spam_throttle_exempt = 1;\n\t }\n\t}\n }\n}", "title": "" }, { "docid": "a44740bd2aa69c6ed333473717213066", "score": "0.49183008", "text": "public function setRecipients($recipients=[]);", "title": "" }, { "docid": "0400faebc38fab05d258a2c29e357edd", "score": "0.4913675", "text": "protected function _setListCache(array $list, $user = null)\n {\n $sig = $this->_sig('list');\n if (!is_null($user)) {\n $sig .= '_' . $user;\n }\n try {\n $this->_cache->set($sig, serialize($list));\n } catch (Horde_Cache_Exception $e) {\n }\n }", "title": "" }, { "docid": "54a2b279f4d8f3cc98dfa4de427652eb", "score": "0.4904432", "text": "protected function setInList(string $listName): void\n {\n $this->extraInList = $listName;\n }", "title": "" }, { "docid": "5ec5935448058a04774f076f5a6a20d7", "score": "0.49020168", "text": "public function setSmsSend($valeur){\n $this->smsSend[]= $valeur;\n }", "title": "" }, { "docid": "a1febca0e1cbc703792089a84ca64fa5", "score": "0.48798105", "text": "static function setList($val) {\r\n self::$arrlist[] = $val;\r\n }", "title": "" }, { "docid": "36fd2ddd4d45d2cafe3b8cee64b3006d", "score": "0.48763743", "text": "public function updateIpWhitelist($whitelist) {\n $this->sendMessage(new IpWhitelist($whitelist));\n }", "title": "" }, { "docid": "1a8473064ee821c5b7efdcc1ba0b6a61", "score": "0.48714113", "text": "public function resetList($list_name);", "title": "" }, { "docid": "8de7afa967c638c3ec208505698569da", "score": "0.48424506", "text": "public function setSmsHacked($valeur){\n $this->smsHacked[]= $valeur;\n }", "title": "" }, { "docid": "bd800e5b23b099f30359a40d934a7275", "score": "0.47903955", "text": "public function setAppsVisibilityListType(?AppListType $value): void {\n $this->getBackingStore()->set('appsVisibilityListType', $value);\n }", "title": "" }, { "docid": "3e972d1d8c1440e182ffcc9cc237eb20", "score": "0.47851026", "text": "public function setAttendees(?array $value): void {\n $this->getBackingStore()->set('attendees', $value);\n }", "title": "" }, { "docid": "daea317c93e09e21e5ed6e3001748a00", "score": "0.4784064", "text": "public function addEmailList(array $emailList) : iSender;", "title": "" }, { "docid": "8a4d6c8c24fadcbc0d5f7c3f6ea473d6", "score": "0.4767527", "text": "public function setModifierLists(?array $modifierLists): void\n {\n $this->modifierLists = $modifierLists;\n }", "title": "" }, { "docid": "c224c862a6022043b744f949325e02ce", "score": "0.47590303", "text": "public function setAmis($listeAmis)\n\t{\n\t\t$this->_amis = $listeAmis;\n\t}", "title": "" }, { "docid": "e4fa4bdff96bbe545ffa28e72b013e18", "score": "0.47468615", "text": "public function markAsSpam($id, $optParams = array())\n {\n $params = array('id' => $id);\n $params = array_merge($params, $optParams);\n return $this->call('markAsSpam', array($params));\n }", "title": "" }, { "docid": "0cccdb3ec05d36e8225088ceddd1bc2a", "score": "0.4743961", "text": "public function setAppsVisibilityList(?array $value): void {\n $this->getBackingStore()->set('appsVisibilityList', $value);\n }", "title": "" }, { "docid": "b33005d2bb35e51ebe163d3b3d5dcc58", "score": "0.47432277", "text": "protected function set_plain_params($list) {\n\t\t\t\t\t$this->plain_params = $list;\n\t\t\t\t}", "title": "" }, { "docid": "fc3afe48f3e3cdee8d58d560660a4006", "score": "0.47397807", "text": "public function setAbuse(?WhoisContact $value): void {\n $this->getBackingStore()->set('abuse', $value);\n }", "title": "" }, { "docid": "7bb58d46b12051b3eac931ebb8e71ac2", "score": "0.47391313", "text": "public function setBanned($banned);", "title": "" }, { "docid": "5a1b0fca52e173130288738f8945a174", "score": "0.47038722", "text": "function setArray($data)\n\t{\n\t\t$this->data = $data;\n\t\t$this->fss = false;\n\t}", "title": "" }, { "docid": "9fd03bad9206dea36b007be26ca09087", "score": "0.4703111", "text": "public function setSentToAddresses(?array $value): void {\n $this->getBackingStore()->set('sentToAddresses', $value);\n }", "title": "" }, { "docid": "e347186167515429d1bcec034c9afc1d", "score": "0.46932876", "text": "public function set_send_to ($address)\n {\n $this->assert (! empty ($address), 'address cannot be empty', 'set_send_to', 'MAIL_MESSAGE');\n $this->send_to = array ();\n if (is_array ($address))\n {\n $this->send_to = $address;\n }\n else\n {\n $this->send_to [] = $address;\n }\n }", "title": "" }, { "docid": "dfc134d084047a1efa769cc119041f92", "score": "0.46828216", "text": "public function __construct(SpamBlocker $blocker)\n {\n $this->blocker = $blocker;\n }", "title": "" }, { "docid": "d7e485393183f0af0b0b581eaa5d3583", "score": "0.46764228", "text": "public function setListName($pVal){\n\t\t$this->listName = explode(';', $pVal);\n\t}", "title": "" }, { "docid": "14e7ff743490b710cf899fb684868b79", "score": "0.46731296", "text": "public function setMessageSent()\n {\n $values = [\n 'gto_mail_sent_num' => new \\Zend_Db_Expr('gto_mail_sent_num + 1'),\n 'gto_mail_sent_date' => \\MUtil_Date::format(new \\Zend_Date(), 'yyyy-MM-dd'),\n ];\n\n $this->_updateToken($values, $this->currentUser->getUserId());\n }", "title": "" }, { "docid": "4a09e2960fb8293a4b66ea531895d0a4", "score": "0.46644196", "text": "function setDomains( $domains = array() )\n {\n \n $this->domains = $domains;\n \n }", "title": "" }, { "docid": "f842a3d0b440fec1e3aaca2aeebd96c6", "score": "0.4661098", "text": "public function setRecipients($recipients)\n\t\t{\n\t\t\tif(is_array($recipients)) // Recipients must be array\n\t\t\t\t$this->recipients = $recipients;\n\t\t}", "title": "" }, { "docid": "6bc46e9ca8778229c881bcb3d8cc3f10", "score": "0.46588302", "text": "public function whitelist() {\n\n $this->log('hi', 'debug');\n $this->Paginator->settings = array(\n 'limit' => 10\n );\n $data = $this->Paginator->paginate('WhiteList');\n $this->set('Lists', $data);\n //$data=$this->WhiteList->find('all');\n $this->log($data, 'debug');\n\n }", "title": "" }, { "docid": "8e7a105ce2de98ea088eca1658103648", "score": "0.4657353", "text": "public function attachToList($list)\n\t{\n\n\t\t$params = ['list' => $list];\n\n\t\tif ( !is_null($this->getContact()) )\n\t\t\t$this->createResponse('put', 'contacts/'.$this->getContact()->id.'/list_subscribe', $params);\n\n\t\treturn $this;\n\n\t}", "title": "" }, { "docid": "be8a43d567cb69c9eedb2e51a7f358e1", "score": "0.46546066", "text": "public function setEmails(?array $value): void {\n $this->getBackingStore()->set('emails', $value);\n }", "title": "" }, { "docid": "067601e5354d1dfe315bb8a0def790f0", "score": "0.46515027", "text": "private function __removeSpam() {\n\t\tif ($this->{$this->modelClass}->deleteAll(array($this->modelClass . '.status' => 'spam'))) {\n\t\t\t$this->notice(\n\t\t\t\t__d('comments', 'Spam comments have been removed'),\n\t\t\t\tarray(\n\t\t\t\t\t'redirect' => true\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\n\t\t$this->notice(\n\t\t\t__d('comments', 'Spam comments could not be removed'),\n\t\t\tarray(\n\t\t\t\t'redirect' => true,\n\t\t\t\t'level' => 'warning'\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "1cd347012250f3e7c79710b0f90dfbbf", "score": "0.46438563", "text": "public function setRecipients($recipients)\n {\n $this->_recipients = $recipients;\n }", "title": "" }, { "docid": "49c381f3aa42125de3a4e09c47f1c4fe", "score": "0.4638534", "text": "public static function antispamSetup(&$mail)\n {\n // Unsubscribe list\n $mail->addCustomHeader(\"List-Unsubscribe\", \"<mailto:\" . $mail->From . \"?body=unsubscribe>, <\" . site_url(\"contact\") . \">\");\n\n // Remove XMailer\n $mail->XMailer = \" \";\n\n // Organization\n $mail->addCustomHeader(\"Organization\", config(\"client\"));\n\n // Sender enveloppe & bounce address\n $mail->Sender = $mail->From;\n\n // DKIM\n if (config(\"mail.dkim.domain\")) {\n $mail->DKIM_domain = config(\"mail.dkim.domain\");\n $mail->DKIM_selector = config(\"mail.dkim.selector\");\n $mail->DKIM_private = config(\"mail.dkim.private\");\n $mail->DKIM_passphrase = config(\"mail.dkim.passphrase\");\n $mail->DKIM_identity = $mail->From;\n }\n }", "title": "" }, { "docid": "ca1e8206578476ea8627a0e6c2b60e5a", "score": "0.46226043", "text": "function call_to_set_items()\r\n\t{\r\n\t\t//pass @todo.. think of what the function should do first\r\n\t}", "title": "" }, { "docid": "a673f6da98d0e2addf0a9bc627793ea2", "score": "0.46150026", "text": "protected function setContentsList(array $Content)\n {\n // Stores as an array\n $this->setContentsListAsArray($Content);\n // Stores as string in markdown list format.\n $this->setContentsListAsString($Content);\n }", "title": "" }, { "docid": "6e7e5bdb32f683b34c51e6de0a640f6e", "score": "0.46131846", "text": "function setDomains(){\n $domain_alias = $domain_redirect =[];\n foreach($this as $domain){\n if ($domain['is_redirect']) {\n $domain_redirect[] = $domain['name'];\n } else {\n $domain_alias[] = $domain['name'];\n }\n }\n $this->cmd('set', $domain_alias);\n $this->cmd('set', $domain_redirect, true);\n return $this;\n }", "title": "" }, { "docid": "0b33c49f6749b6b1fa95bcd668542705", "score": "0.46096116", "text": "public static function setMailing($send)\r\n\t{\r\n $instanse \t\t\t\t\t\t= self::getInstance();\r\n $instanse->_settings['toMail'] \t= (bool)$send;\r\n }", "title": "" }, { "docid": "f1e9cb6ca7b377dc18f4fda8664a8a40", "score": "0.45991707", "text": "public function setList(SS_List $list)\n {\n $this->list = $list;\n\n return $this;\n }", "title": "" }, { "docid": "f5fe732d28383ba4b3c31b9287832518", "score": "0.45986715", "text": "private function _setAccess()\n\t{\n\t\t// The groups that will see the ad\n\t\t$allowed_groups = array();\n\t\t$denied_groups = array();\n\n\t\tif (!empty($_POST['membergroups']) && is_array($_POST['membergroups']))\n\t\t{\n\t\t\tforeach ($_POST['membergroups'] as $id => $value)\n\t\t\t{\n\t\t\t\tif ($value == 1)\n\t\t\t\t{\n\t\t\t\t\t$allowed_groups[] = (int) $id;\n\t\t\t\t}\n\t\t\t\telseif ($value == -1)\n\t\t\t\t{\n\t\t\t\t\t$denied_groups[] = (int) $id;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (!empty($allowed_groups))\n\t\t{\n\t\t\t$this->values['allowed_groups'] = implode(',', $allowed_groups);\n\t\t}\n\n\t\tif (!empty($denied_groups))\n\t\t{\n\t\t\t$this->values['denied_groups'] = implode(',', $denied_groups);\n\t\t}\n\t}", "title": "" }, { "docid": "a648bed15ddfdf2b173ba61660709082", "score": "0.45898893", "text": "protected function set__items($val)\n {\n $this->topics = (int)$val;\n }", "title": "" }, { "docid": "fda87d027548f19e2c82ac53ab9c839e", "score": "0.45846355", "text": "function setAttendees($attendees = '')\n {\n $this->attendees = (array) ((is_array($attendees)) ? $attendees : array());\n }", "title": "" }, { "docid": "fbe597df8ae6a7d205f8ba581b4a9015", "score": "0.45838794", "text": "public function deleteAllSpam()\n {\n global $wpdb;\n $wpdb->query(\"DELETE $this->table_name.* FROM $this->table_name NATURAL JOIN $wpdb->comments WHERE comment_approved = 'spam'\");\n $wpdb->query(\"DELETE FROM $wpdb->comments WHERE comment_approved = 'spam'\");\n }", "title": "" }, { "docid": "c253845f08ad6bb18745581ecb9332c3", "score": "0.45820266", "text": "public function setIsList($bool){\n $this->is_list = $bool;\n }", "title": "" }, { "docid": "41b936354c9d31b5cc13194212ec3b4f", "score": "0.4577763", "text": "public function setTo($to) {\n\t\tif ($to instanceof \\SS_List) {\n\t\t\t$to = $to->column('Email');\n\t\t} else if (!is_array($to)) {\n\t\t\t$to = [$to];\n\t\t}\n\t\t$to = array_filter($to);\n\t\t$this->Recipients()->removeAll();\n\n\t\tforeach ($to as $address) {\n\t\t\t$recipient = new Recipient([\n\t\t\t\t'Member' => \\Member::get()->filter('Email', $address)->first(),\n\t\t\t\t'Email' => $address,\n\t\t\t]);\n\t\t\t$recipient->write();\n\t\t\t$this->Recipients()->add($recipient);\n\t\t}\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "9785832c55513f0b1f8bc90ed7e8b137", "score": "0.4577066", "text": "public function setSignatureMOTD() {\r\n\r\n\t\tif ($this->settingUsersArrayGsuite == False) {\r\n\t\t\tforeach ($this->user_info as $key => $value) {\r\n\t\t\t\tif (mooSignature::functionValidateUsers($key) == False) {\r\n\t\t\t\t \tcontinue;\r\n\t\t\t\t } \r\n\t\t\t\t$this->user_email = $this->user_info[$key]['primaryEmail'];\r\n\t\t\t\t$this->user_alias = $this->user_info[$key]['alias'];\r\n\t\t\t\tmooSignature::functionMOTDupdate();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else {\r\n\t\tmooSignature::getUsersList();\r\n\t\tforeach ($this->user_array as $key => $value) {\r\n\t\t\tmooSignature::functionStripUserAttributes($this->user_array[$key]);\r\n\t\t\tforeach ($this->user_info as $key => $value) {\r\n\t\t\t\tif (mooSignature::functionValidateUsers($key) == False) {\r\n\t\t\t\t \tcontinue;\r\n\t\t\t\t }\r\n\t\t\t\t$this->user_email = $this->user_info[$key]['primaryEmail'];\r\n\t\t\t\t$this->user_alias = $this->user_info[$key]['alias'];\r\n\t\t\t\tmooSignature::functionMOTDupdate();\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t}\r\n\t\treturn $this;\r\n\t}", "title": "" }, { "docid": "03108b271e89248b594cd1ac53f97d13", "score": "0.45735106", "text": "function SetData($data){\n $c = count($data);\n if($c === 0){$data = array();}\n $this->data = $data['members'];\n }", "title": "" }, { "docid": "92f9b5e8e8a527f0ae00e3a638584f8c", "score": "0.4571358", "text": "public function set_sitemap( $sitemap );", "title": "" }, { "docid": "0536560a041f0ba910e9779a6c36a963", "score": "0.45703968", "text": "public function set_reply_to_set( $is_set ) {\n\t\t$this->_reply_to_set = $is_set;\n\t}", "title": "" }, { "docid": "a708308d2ee28a4a7c7fa54b16ff7814", "score": "0.45693305", "text": "public function setDomains(?array $domains): void {\r\n $this -> domains = $domains;\r\n }", "title": "" }, { "docid": "4e8b7ce0bba26266d84bf3c70aacc326", "score": "0.45682782", "text": "public function setQueue(GearmanQueue $queue)\n {\n $this->_queue = $queue;\n }", "title": "" }, { "docid": "8b19a7f16bd728e212ba2d13c6b4a07f", "score": "0.45676586", "text": "function mark_all_as_seen() {\n\t$user_id = get_current_user_id();\n\n\t// get feed id\n\t$blog_id = (int) get_current_blog_id();\n\t$feed_id = (int) FeedBag::get_feed_id_for_blog_id( $blog_id );\n\n\t// mark all as seen\n\t\\SeenPosts\\mark_all_as_seen( $user_id, [ $feed_id ], \\SeenPosts\\Constants\\SOURCE_FRONTEND_P2 );\n}", "title": "" }, { "docid": "cbef349d89caaedf3e199106fcf67ea8", "score": "0.45624453", "text": "public function set() {\n\t\t}", "title": "" }, { "docid": "afebb53764153a1ede2e86f317badec0", "score": "0.45517045", "text": "function bait($options = array()) {\n\t\t// Spam bait field\n\t\t$options = Set::merge(array(\n\t\t\t'label' => __d('caracole_antispam', 'Spam bait', true),\n\t\t\t'help' => __d('caracole_antispam', 'Leave this field empty, it is only here to defeat spam bots', true),\n\t\t\t'div' => 'input text jsOff'\n\t\t), $options);\n\t\treturn $this->Fastcode->input('email', $options);\n\t}", "title": "" }, { "docid": "0096bcbc693176158fb389b1f1d6e22a", "score": "0.45506793", "text": "public function setAll($data) {\n\t\t$this->clear()->set($data);\n\t}", "title": "" }, { "docid": "a5e1c74ae2732a84f813c7d9bec1c0bf", "score": "0.45504907", "text": "protected function set__unapprovedItems($val)\n {\n $this->queued_topics = $val;\n }", "title": "" }, { "docid": "a32646ff7fc7d8354b72202d4fcf1f9d", "score": "0.45503864", "text": "public function set_reminder_email( $value ) {\n\t\tif ( is_string( $value ) ) {\n\t\t\t$value = new EmailList( $value );\n\t\t}\n\n\t\tif ( ! $value instanceof EmailList ) {\n\t\t\tthrow new InvalidArgumentException();\n\t\t}\n\n\t\t$this->reminder_email = $value;\n\t}", "title": "" }, { "docid": "aad34611c493708e271cd728b381c0f7", "score": "0.4550245", "text": "function setLimits($limits = array()) \n {\n foreach ($limits as $key => $value) {\n $this->setLimit($key, $value);\n }\n }", "title": "" }, { "docid": "6a5b14ec45aef67ddbe8affe1442184d", "score": "0.4547455", "text": "public function setSender( $sender )\r\n\t{\r\n\t\t$this->sender = $sender;\t\r\n\t}", "title": "" }, { "docid": "244095812ead5e6e4b8c2f3a027bbebf", "score": "0.45414907", "text": "public function setAllowedItem($value, string $key = ''): void\n {\n if (!empty($key)) {\n $this->allowedList[$key] = $value;\n } elseif (!in_array($value, $this->allowedList)) {\n array_push($this->allowedList, $value);\n }\n }", "title": "" }, { "docid": "f316980668fe1f0cc0cba5744e2bca17", "score": "0.453844", "text": "function setItems($items){\n \t\t$this->items = $items;\n \t}", "title": "" }, { "docid": "59798dd49035e4b6a079ae0ad83e1b67", "score": "0.4536679", "text": "public function __construct()\n {\n $this->list = array();\n }", "title": "" }, { "docid": "9d58b88927a83107f6228b743a41f88b", "score": "0.45245424", "text": "public function setIgnoreList($list)\n {\n $regexp = str_replace(array('#', '.', '^', '$'), array('\\#', '\\.', '\\^', '\\$'), $list);\n $regexp = '#/' . join('$|/', $list) . '#';\n $this->setIgnoreRegexp($regexp);\n }", "title": "" }, { "docid": "e1693680c0278161683dfbad07169002", "score": "0.4521983", "text": "public function removeSpamFields() {\n $this->controller->dictionary->remove('nospam');\n $this->controller->dictionary->remove('blank');\n $submitVar = $this->controller->getProperty('submitVar');\n if (!empty($submitVar)) {\n $this->controller->dictionary->remove($submitVar);\n }\n }", "title": "" }, { "docid": "4d33d13974389f02c46c78500dadf6fe", "score": "0.45194995", "text": "public function setMulti($list = array()) {\n foreach ($list as $array) {\n $this->set($array[0], isset($array[1]) ? $array[1] : 300, isset($array[2]) ? $array[2] : array());\n }\n }", "title": "" }, { "docid": "c7eda0e5e46b87a3e90b13df16d464ab", "score": "0.45184532", "text": "public function markAsSent()\n {\n $this->sent = 1;\n $this->save();\n }", "title": "" }, { "docid": "52176e1a20c568d4e3494d177fe3d723", "score": "0.4515319", "text": "public function __construct() {\r\n parent::__construct( 'email_lists' );\r\n\r\n // We want to make sure they match\r\n if ( isset( $this->email_list_id ) )\r\n $this->id = $this->email_list_id;\r\n }", "title": "" }, { "docid": "ecdec7a086b67c7739a8fb42e60e2e89", "score": "0.45139745", "text": "function setSender($sender) \r\n {\r\n $this->sender = $sender;\r\n }", "title": "" }, { "docid": "6aa37ecc1bcf13fbe691b3c4858565bb", "score": "0.45105603", "text": "public function setSenderContains(?array $value): void {\n $this->getBackingStore()->set('senderContains', $value);\n }", "title": "" }, { "docid": "e84cf0185255d72ea5e5a6a555806931", "score": "0.44950277", "text": "function setSendFrom($inSendFrom)\r\n\t{\r\n\t\t$this->sendFrom = \"From:\".$inSendFrom. \"\\r\\n\";\r\n\t}", "title": "" }, { "docid": "aad2f91e495907cf1b5376845acf22f7", "score": "0.4484245", "text": "function setBansPerTeam($num)\n {\n $this->bansPerTeam = $num;\n }", "title": "" }, { "docid": "57f397ec046e2f01e66e59cd2bded7ab", "score": "0.44672439", "text": "public function setFtafUseListFromAddress($ftaf_use_list_from_address)\n {\n $this->ftaf_use_list_from_address = (boolean)($ftaf_use_list_from_address === TRUE || $ftaf_use_list_from_address == 1);\n\n return $this;\n }", "title": "" }, { "docid": "5b18a5e94f109ca8613a72cdea242c18", "score": "0.44661045", "text": "public function setContacts($contacts);", "title": "" }, { "docid": "a178e826638df45939b9d4184872fe3c", "score": "0.44642505", "text": "public function spam($id, $on = true)\n {\n $item = $this->manager->findByPrimaryKey($id);\n if($on) {\n $result = $this->manager->update(\n array('b_spam' => '1')\n ,array('pk_i_id' => $id)\n );\n } else {\n $result = $this->manager->update(\n array('b_spam' => '0')\n ,array('pk_i_id' => $id)\n );\n }\n\n // updated corretcly\n if($result == 1) {\n if($on) {\n osc_run_hook(\"item_spam_on\", $id);\n } else {\n osc_run_hook(\"item_spam_off\", $id);\n }\n\n if($item['b_active']==1 && $item['b_enabled']==1 && !osc_isExpired($item['dt_expiration']) && $item['b_spam']==0) {\n $this->_decreaseStats($item);\n } else if($item['b_active']==1 && $item['b_enabled']==1 && !osc_isExpired($item['dt_expiration']) && $item['b_spam']==1) {\n $this->_increaseStats($item);\n }\n\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "94bac821c74bf8100f30541f04a2e266", "score": "0.4463153", "text": "public function setSender($sender)\n {\n $this->_sender = $sender;\n }", "title": "" }, { "docid": "ba3c94bbaccbaee7e224e9570ccc3e71", "score": "0.44441804", "text": "function setPackageModulesAccess(array $list)\n {\n if ($this->isAppPackage) {\n $this->packageModulesAccess = $list;\n }\n }", "title": "" }, { "docid": "054a6cc1791fea92c8d9f1716dd82c35", "score": "0.44422403", "text": "public static function setSendingCode($sendCode)\n {\n static::$sending = array_replace_recursive(static::$sending, $sendCode);\n }", "title": "" }, { "docid": "3d12771bf81b2748f082328c24f75143", "score": "0.4437481", "text": "public function set($inputArray = NULL){\n $this->replace[$this->tr_found] = $inputArray;\n $this->tr_found++;\n\t}", "title": "" }, { "docid": "e79811e0a414ffac4f09c3f6fb9a6837", "score": "0.44341585", "text": "public function _setMessages(array $_messages = []);", "title": "" } ]
7c63c7af70f5a5407448e4cdd5a5dfe6
Return a list of floors related to a building
[ { "docid": "e10cc2d196a7b5989913359ff30a42cc", "score": "0.5834718", "text": "public function actionAjaxFloors()\n\t{\n\t\tif (isset($_POST['building_id'])){\n\t\t\t$model = $this->loadModel($_POST['building_id']);\n\t\t\t$data = CHtml::listData($model->floors, 'id', 'level');\n\t\t\tforeach($data as $value=>$name)\n\t\t\t{\n\t\t\t\tif ($name == 0)\n\t\t\t\t\techo CHtml::tag('option',array('value'=>$value),CHtml::encode('Basement'),true);\n\t\t\t\telse\n\t\t\t\t\techo CHtml::tag('option',array('value'=>$value),CHtml::encode($name),true);\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "da56c57c90adc0f0fa78b95379db0930", "score": "0.6878646", "text": "public function getDistinctFloors($building = null)\n {\n $items = $this->createUniqFlatDistinct('storage_parts', 'floor', 'floor', true);\n return $items;\n }", "title": "" }, { "docid": "8cb3039074212a80fe0da95600f26be2", "score": "0.64393044", "text": "public function floors()\n {\n return $this->hasMany('App\\Floor');\n }", "title": "" }, { "docid": "cd0356076db8164a4201df13f71442f8", "score": "0.61361635", "text": "public function buildings()\n {\n \treturn $this->hasMany(Building::class);\n }", "title": "" }, { "docid": "cf0f7e55a513b98f552d401fa168d135", "score": "0.6021796", "text": "function GB_DetectBuildingParts()\n\t{\n\t\t$GBSQL = \"UPDATE action set _target='0',_construction='0' WHERE _construction != '0';\";\n\t\t$this->_GBUser->query($GBSQL);\n\t\t// first look for all building that could contain building part\n\t\t$GBSQL = \"SELECT DISTINCT _buildingcode FROM unitbuilding WHERE _part = 'true'\";\n\t\t$query = $this->_GBMain->query($GBSQL);\n\t\t$buildingcodes = $query->fetchAll() ;\n\t\t$output = \"\";\n\t\tforeach($buildingcodes as $buildingcode)\n\t\t{\n\t\t\t$unit = $this->GBSQLGetUnitByCode($buildingcode['0']) ;\n\t\t\t// get frendly name\n\t\t\t$GBSQL = \"SELECT _nice FROM 'locale' WHERE _raw = '\". $unit['_name']. \"_friendlyName' \" ;\n\t\t\t$result = $this->_GBMain->query($GBSQL);\n\t\t\t$buildingname = $result->fetchSingle();\n\t\t\t// get all the objects.\n\t\t\t$GBSQL = \"SELECT _obj FROM objects WHERE _set = 'itemName' AND _val = '\". $unit['_name']. \"'\" ;\n\t\t\t$result = $this->_GBUser->query($GBSQL);\n\t\t\t$Objectbuildings = $result->fetchAll();\n\t\t\t$output .= '<br><b>' . $buildingname . \"</b> <br>\";\n\t\t\tforeach($Objectbuildings as $Objectbuilding)\n\t\t\t{\n\t\t\t\t$GBSQL = \"SELECT _val FROM objects WHERE _set = 'expansionLevel' AND _obj = '\". $Objectbuilding['_obj']. \"'\" ;\n\t\t\t\t$result = $this->_GBUser->query($GBSQL);\n\t\t\t\t$expansionLevel = $result->fetchSingle();\n\t\t\t\tif($expansionLevel == 5)\n\t\t\t\t{ // building is fully build\n\t\t\t\t\t$output .= \"<br>This building is fully build. <br>\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$GBSQL = \"SELECT _val FROM objects WHERE _set = 'id' AND _obj = '\". $Objectbuilding['_obj']. \"'\" ;\n\t\t\t\t$result = $this->_GBUser->query($GBSQL);\n\t\t\t\t$ObjectID = $result->fetchAll(); //$ObjectID['0']['_val']\n\n\t\t\t\t$output .= '<table class=\"sofT\" cellspacing=\"0\"><tr><td class=\"helpHed\">Name</td>\n \t\t\t\t\t<td class=\"helpHed\">State</td><td class=\"helpHed\">Code</td>\n \t\t\t\t\t<td class=\"helpHed\">Expansion Parts</td><td class=\"helpHed\">Expansion Level</td></tr>';\n\t\t\t\t$GBSQL = \"SELECT _val FROM objects WHERE _set = 'state' AND _obj = '\". $Objectbuilding['_obj']. \"'\" ;\n\t\t\t\t$result = $this->_GBUser->query($GBSQL);\n\t\t\t\t$state = $result->fetchSingle();\n\n\t\t\t\t$GBSQL = \"SELECT _val FROM objects WHERE _set = 'expansionParts' AND _obj = '\". $Objectbuilding['_obj']. \"'\" ;\n\t\t\t\t$result = $this->_GBUser->query($GBSQL);\n\t\t\t\t$expansionParts = $result->fetchSingle();\n\t\t\t\t$expansionPart = \"\";\n\t\t\t\tif($expansionParts == 'a:0:{}' || $expansionParts == '')\n\t\t\t\t{ $expansionPart = \"\"; }\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$temps = unserialize($expansionParts) ;\n\t\t\t\t\t$expansionPartHave = array() ;\n\t\t\t\t\tforeach($temps as $key => $temp)\n\t\t\t\t\t{\n\t\t\t\t\t\t$expansionPartHave[$Objectbuilding['_obj'].\"\".$key] = $temps[$key] ; // !!!!!!!!!!!!!!!\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t\t$GBSQL = \"SELECT _val FROM objects WHERE _set = 'contents' AND _obj = '\". $Objectbuilding['_obj']. \"'\" ;\n\t\t\t\t$result = $this->_GBUser->query($GBSQL);\n\t\t\t\t$contents = $result->fetchSingle();\n\t\t\t\t$content = \"\";\n\t\t\t\tif($contents == 'a:0:{}' || $contents == '')\n\t\t\t\t{ $content = \"\"; }\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$temps = unserialize($contents) ;\n\t\t\t\t\t//print_r($temps);\n\t\t\t\t\tforeach($temps as $temp)\n\t\t\t\t\t{\n\t\t\t\t\t\t$contentName = $this->GBSQLGetUnitByCode($temp['itemCode']) ;\n\t\t\t\t\t\t$content .= $temp['numItem'] . \" \" . $contentName['_name'] . \" [\" . $temp['itemCode'] .\"]\";\n\t\t\t\t\t\t$result = $this->_GBMain->query(\"SELECT _buildingcode FROM unitbuilding WHERE _itemcode = '\".$temp['itemCode'].\"' AND _part = 'true' \");\n\t\t\t\t\t\tif ($result->numRows() != 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$expansionPartHave[$Objectbuilding['_obj'].\"\".$temp['itemCode']] = $temp['numItem'] ; // !!!!!!!!!!!!!!!\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t\t$GBSQL = \"SELECT _itemcode FROM unitbuilding WHERE _buildingcode = '\".$buildingcode['0'].\"' AND _part = 'true'\" ;\n\t\t\t\t$result = $this->_GBMain->query($GBSQL);\n\t\t\t\t$expansionPartsAll = $result->fetchAll();\n\t\t\t\t$expansionPart2 = \"\";\n\t\t\t\tforeach($expansionPartsAll as $expansionPartAll)\n\t\t\t\t{\n\t\t\t\t\t$expansionPartAllItemCode = $expansionPartAll['_itemcode'];\n\n\t\t\t\t\tif(array_key_exists($Objectbuilding['_obj'].\"\".$expansionPartAllItemCode, $expansionPartHave))\n\t\t\t\t\t{\n\t\t\t\t\t\t$amount2 = $expansionPartHave[$Objectbuilding['_obj'].\"\".$expansionPartAllItemCode];\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$amount2 = 0;\n\t\t\t\t\t}\n\t\t\t\t\t$contentName = $this->GBSQLGetUnitByCode($expansionPartAllItemCode) ;\n\t\t\t\t\t$expansionPart2 .= $amount2 . \" \" . $contentName['_name'] . \" [\" . $expansionPartAllItemCode .\"]<br>\";\n\n\t\t\t\t\t//////// NOW update the action table for this construction part.\n\t\t\t\t\tif($amount2 < 10)\n\t\t\t\t\t{\n\t\t\t\t\t\t$GBSQL = \"INSERT OR REPLACE INTO action(_code, _target, _construction) VALUES (\".$this->Qs($expansionPartAllItemCode).\",\".$this->Qs($ObjectID['0']['_val']).\",\".$this->Qs(10-$amount2).\" );\";\n\t\t\t\t\t\t$this->_GBUser->query($GBSQL);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t$output .= '<tr><td>'.$buildingname.'</td><td>'.$state.'</td><td>'.$buildingcode['0'].'</td>';\n\t\t\t\t$output .= '<td>'.$expansionPart2.'</td><td>'.$expansionLevel.'</td></tr>';\n\t\t\t}\n\t\t\t$output .= '</table><br>';\n\t\t}\n\n\t\treturn $output;\n\n\t}", "title": "" }, { "docid": "91deb67686bb39e092a76f3bb228b07e", "score": "0.59050006", "text": "public function getListBuilding()\n {\n\n $BuildingModel = new Building();\n $Buildings = $BuildingModel->getListBuilding();\n $this->data['newss'] = $Buildings;\n return view('admin.building_list', $this->data);\n }", "title": "" }, { "docid": "62ab29614d6468c84f580b29f1af70a2", "score": "0.57752573", "text": "function getAllByBuilding($buildingId);", "title": "" }, { "docid": "599914520b0e6f42768edb38e40e0ae0", "score": "0.57648826", "text": "public function floors($id)\n {\n $edificio = Building::findOrFail($id);\n return $edificio->total_floors;\n }", "title": "" }, { "docid": "5294366086599c26687e9ab66e3888cf", "score": "0.5604782", "text": "public function get_buildings(){\n $this->db->order_by(\"name\",\"asc\");\n $result = $this->db->get('building');\n return $result->result_array();\n }", "title": "" }, { "docid": "b32b75289b5b4e92beb2428bc1174870", "score": "0.55394495", "text": "public function getDistinctBuildings()\n {\n $items = $this->createUniqFlatDistinct('storage_parts', 'building', 'building', true);\n return $items;\n }", "title": "" }, { "docid": "571f35a113213db84421efef6aa94e9e", "score": "0.5473972", "text": "public function building()\n {\n return $this->belongsTo('App\\Models\\Manage\\Content\\Building\\TfBuilding', 'building_id', 'building_id');\n }", "title": "" }, { "docid": "dec739b79f6d7aeb335a2346be139704", "score": "0.5394202", "text": "function GB_DetectBuildingParts3()\n\t{\n\t\t$GBSQL = \"SELECT _itemCode FROM StorageConfig WHERE _part = 'true'\";\n\t\t$query = $this->_GBMain->query($GBSQL);\n\t\t$buildingParts = $query->fetchAll();\n\t\tforeach($buildingParts as $buildingPart)\n\t\t{\n\t\t\t$GBSQL = \"INSERT OR REPLACE INTO action(_code, _target, _construction) \";\n\t\t\t$GBSQL .= \" VALUES (\".$this->Qs($buildingPart['_itemCode']).\",'0','Y' );\";\n\t\t\t$result = $this->_GBUser->query($GBSQL);\n\t\t} // all building part now in database.\n\n\t\t// first look for all building that could contain building part\n\t\t$GBSQL = \"SELECT DISTINCT _name FROM StorageConfig WHERE _part = 'true'\";\n\t\t$query = $this->_GBMain->query($GBSQL);\n\t\t$buildingNames = $query->fetchAll();\n\t\t$output = \"\";\n\t\tforeach($buildingNames as $buildingName)\n\t\t{\n\t\t\t$GBSQL = \"SELECT DISTINCT _code,_name FROM units WHERE _storageType_itemClass = '\".$buildingName['_name'].\"'\";\n\t\t\t$query = $this->_GBMain->query($GBSQL);\n\t\t\t$buildingcode = $query->fetchAll();\n\t\t\t$unit = $this->GBSQLGetUnitByCode($buildingcode['0']['_code']) ;\n\t\t\t// get frendly name\n\t\t\t$GBSQL = \"SELECT _nice FROM 'locale' WHERE _raw = '\". $unit['_name']. \"_friendlyName' \" ;\n\t\t\t$result = $this->_GBMain->query($GBSQL);\n\t\t\t$buildingname = $result->fetchSingle();\n\t\t\t// get all the objects.\n\t\t\t$GBSQL = \"SELECT _obj FROM objects WHERE _set = 'itemName' AND _val = '\". $unit['_name']. \"'\" ;\n\t\t\t$result = $this->_GBUser->query($GBSQL);\n\t\t\t$Objectbuildings = $result->fetchAll();\n\t\t\t//get the building ID\n\n\t\t\t$output .= '<br><b>' . $buildingname . \"</b> <br>\";\n\t\t\tforeach($Objectbuildings as $Objectbuilding)\n\t\t\t{\n\t\t\t\t$GBSQL = \"SELECT _val FROM objects WHERE _set = 'expansionLevel' AND _obj = '\". $Objectbuilding['_obj']. \"'\" ;\n\t\t\t\t$result = $this->_GBUser->query($GBSQL);\n\t\t\t\t$expansionLevel = $result->fetchSingle();\n\t\t\t\tif($expansionLevel == 5)\n\t\t\t\t{ // building is fully build\n\t\t\t\t\t$output .= \"<br>This building is fully build. <br>\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$GBSQL = \"SELECT _val FROM objects WHERE _set = 'id' AND _obj = '\". $Objectbuilding['_obj']. \"'\" ;\n\t\t\t\t$result = $this->_GBUser->query($GBSQL);\n\t\t\t\t$ObjectID = $result->fetchAll(); //$ObjectID['0']['_val']\n\n\t\t\t\t$output .= '<table class=\"sofT\" cellspacing=\"0\"><tr><td class=\"helpHed\">Name</td>\n \t\t\t\t\t<td class=\"helpHed\">State</td><td class=\"helpHed\">Code</td>\n \t\t\t\t\t<td class=\"helpHed\">Expansion Parts</td><td class=\"helpHed\">Expansion Level</td></tr>';\n\t\t\t\t$GBSQL = \"SELECT _val FROM objects WHERE _set = 'state' AND _obj = '\". $Objectbuilding['_obj']. \"'\" ;\n\t\t\t\t$result = $this->_GBUser->query($GBSQL);\n\t\t\t\t$state = $result->fetchSingle();\n\t\t\t\t//echo \"ee:\". print_r($state);\n\n\t\t\t\t$GBSQL = \"SELECT _val FROM objects WHERE _set = 'expansionParts' AND _obj = '\". $Objectbuilding['_obj']. \"'\" ;\n\t\t\t\t$result = $this->_GBUser->query($GBSQL);\n\t\t\t\t$expansionParts = $result->fetchSingle();\n\t\t\t\t$expansionPart = \"\";\n\t\t\t\tif($expansionParts == 'a:0:{}' || $expansionParts == '')\n\t\t\t\t{ $expansionPart = \"\"; }\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$temps = unserialize($expansionParts) ;\n\t\t\t\t\t$expansionPartHave = array() ;\n\t\t\t\t\tforeach($temps as $key => $temp)\n\t\t\t\t\t{\n\t\t\t\t\t\t$expansionPartHave[$Objectbuilding['_obj'].\"\".$key] = $temps[$key] ; // !!!!!!!!!!!!!!!\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// look into the contents\n\t\t\t\t$GBSQL = \"SELECT _val FROM objects WHERE _set = 'contents' AND _obj = '\". $Objectbuilding['_obj']. \"'\" ;\n\t\t\t\t$result = $this->_GBUser->query($GBSQL);\n\t\t\t\t$contents = $result->fetchSingle();\n\t\t\t\t$content = \"\";\n\t\t\t\tif($contents == 'a:0:{}' || $contents == '')\n\t\t\t\t{ $content = \"\"; }\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$temps = unserialize($contents) ;\n\t\t\t\t\tforeach($temps as $temp)\n\t\t\t\t\t{\n\t\t\t\t\t\t$contentName = $this->GBSQLGetUnitByCode($temp['itemCode']) ;\n\t\t\t\t\t\t$content .= $temp['numItem'] . \" \" . $contentName['_name'] . \" [\" . $temp['itemCode'] .\"]\";\n\t\t\t\t\t\t// check if this is a building part or not.\n\t\t\t\t\t\t$result = $this->_GBMain->query(\"SELECT _name FROM StorageConfig WHERE _itemCode = '\".$temp['itemCode'].\"' AND _part = 'true' \");\n\t\t\t\t\t\tif ($result->numRows() != 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$expansionPartHave[$Objectbuilding['_obj'].\"\".$temp['itemCode']] = $temp['numItem'] ; // !!!!!!!!!!!!!!!\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// now look into all posible parts .. make sure that item with 0 in content.\n\t\t\t\t$GBSQL = \"SELECT _itemCode FROM StorageConfig WHERE _name = '\".$buildingName['_name'].\"' AND _part = 'true'\" ;\n\t\t\t\t$result = $this->_GBMain->query($GBSQL);\n\t\t\t\t$expansionPartsAll = $result->fetchAll() ;\n\t\t\t\t$expansionPart2 = \"\";\n\t\t\t\tforeach($expansionPartsAll as $expansionPartAll)\n\t\t\t\t{\n\t\t\t\t\t$expansionPartAllItemCode = $expansionPartAll['_itemCode'];\n\t\t\t\t\tif(array_key_exists($Objectbuilding['_obj'].\"\".$expansionPartAllItemCode, $expansionPartHave))\n\t\t\t\t\t{ $amount2 = $expansionPartHave[$Objectbuilding['_obj'].\"\".$expansionPartAllItemCode]; }\n\t\t\t\t\telse\n\t\t\t\t\t{ $amount2 = 0;}\n\t\t\t\t\t$contentName = $this->GBSQLGetUnitByCode($expansionPartAllItemCode) ;\n\t\t\t\t\t$expansionPart2 .= $amount2 . \" \" . $contentName['_name'] . \" [\" . $expansionPartAllItemCode .\"]<br>\";\n\t\t\t\t\t//////// NOW update the action table for this construction part.\n\t\t\t\t\tif($amount2 < 10)\n\t\t\t\t\t{\n\n\t\t\t\t\t\t$GBSQL =\"UPDATE action set _code=\".$this->Qs($expansionPartAllItemCode).\",_target=\".$this->Qs($ObjectID['0']['_val']).\",_construction=\".$this->Qs(10-$amount2).\" WHERE _code=\".$this->Qs($expansionPartAllItemCode).\" \";\n\t\t\t\t\t\t$this->_GBUser->query($GBSQL);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t$output .= '<tr><td>'.$buildingname.'</td><td>'.$state.'</td><td>'.$buildingcode['0'].'</td>';\n\t\t\t\t$output .= '<td>'.$expansionPart2.'</td><td>'.$expansionLevel.'</td></tr>';\n\t\t\t}\n\t\t\t$output .= '</table><br>';\n\t\t}\n\n\t\treturn $output;\n\n\t}", "title": "" }, { "docid": "bfb39c74bdea362eba6812433ac78d15", "score": "0.53500223", "text": "public function show(Building $building)\n {\n\n }", "title": "" }, { "docid": "667e2266a398752ee35d39b5b74006a0", "score": "0.5265789", "text": "public function findAllShoots()\n {\n // connects to DB\n $pdo = new PDO('mysql:host=localhost;dbname=hades', 'Nico', 'Ereul9Aeng');\n\n // SQL query\n $sql = \"SELECT *\n FROM `boons` \n WHERE `boons`.`type` = 'shoot'\n ORDER BY `boons`.`name` ASC\n \";\n // execute the query and set the result as a PDOStatement object\n $pdoStatement = $pdo->query($sql);\n\n // get results in an array and send them\n $boons = $pdoStatement->fetchAll(PDO::FETCH_CLASS, 'Boon');\n\n return $boons;\n }", "title": "" }, { "docid": "72ae8dfaf38cf5b2b4f4bdabb51168fe", "score": "0.52651215", "text": "public function getBuilding()\n {\n return $this->building;\n }", "title": "" }, { "docid": "1166cfde71e5fa5d77e6dad80b88ff7b", "score": "0.52618766", "text": "public function actionView($id)\n\t{\n\t\t// Load building model\n\t\t$model = Building::model()->with('floors')->findByPk($id,array('order'=>'floors.level ASC'));\n\t\t\n\t\tif (!$model)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t\n\t\t// Load data for floor dropdown\n\t\t$floors = CHtml::listData($model->floors, 'id', 'level');\n\t\t$floorImageJs = '';\n\t\t$rooms = array(new Room);\n\t\t$roomImageJs = '';\n\t\t$streetImageJs = '';\n\t\tif ($floors)\n\t\t{\n\t\t\tforeach ($floors as &$floor) {\n\t\t\t\tif ($floor == 0)\n\t\t\t\t\t$floor = 'Basement';\n\t\t\t\telse\n\t\t\t\t\t$floor='Floor '.$floor;\n\t\t\t}\n\t\t\n\t\t\t// Load floor images\n\t\t\t$floorImages = array();\n\t\t\t$rootPath = pathinfo(Yii::app()->request->scriptFile);\n\t\t\tforeach ($model->floors as $floorModel) {\n\t\t\t\t$imageLocation = $rootPath['dirname'].'/images/floors/'.$floorModel->map_image;\n\t\t\t\tif (!is_dir($imageLocation) && file_exists($imageLocation))\n\t\t\t\t\t$imageLink = Yii::app()->request->baseUrl.'/images/floors/'.$floorModel->map_image;\n\t\t\t\telse\n\t\t\t\t\t$imageLink = Yii::app()->request->baseUrl.'/images/floors/map-default-'.$floorModel->level.'.jpg';\n\t\t\t\t\n\t\t\t\t$floorImages[] = CHtml::image(\n\t\t\t\t\t$imageLink,\n\t\t\t\t\t$model->name.' - Floor '.$floorModel->level,\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'class'=>'floor-image',\n\t\t\t\t\t\t'id'=>'floor_'.$floorModel->id.'_map',\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\t\t\t\n\t\t\t// Create Javascript for Floor image preloading\n\t\t\tforeach ($floorImages as $image)\n\t\t\t\t$floorImageJs.=\"$('\".$image.\"').load(function(){\\$('.map-images').prepend(\\$(this))});\\n\";\n\t\n\t\t\t/*\n\t\t\t\n\t\t\t// Load rooms for first floor\n\t\t\t$rooms = Floor::Model()->with('rooms')->findByAttributes(array('level'=>'1','building_id'=>$id),array('order'=>'rooms.number ASC'));\n\t\t\t$rooms = $rooms->rooms;\n\t\t\t\n\t\t\t// Load room images\n\t\t\t$roomImages = array();\n\t\t\tforeach($rooms as $room) {\n\t\t\t\t$imageLocation = $rootPath['dirname'].'/images/rooms/'.$room->map_image;\n\t\t\t\tif (!is_dir($imageLocation) && file_exists($imageLocation))\n\t\t\t\t\t$imageLink = Yii::app()->request->baseUrl.'/images/rooms/'.$room->map_image;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$imageLocation = $rootPath['dirname'].'/images/floors/'.$room->floor->map_image;\n\t\t\t\t\tif (!is_dir($imageLocation) && file_exists($imageLocation))\n\t\t\t\t\t\t$imageLink = Yii::app()->request->baseUrl.'/images/floors/'.$room->floor->map_image;\n\t\t\t\t\telse\n\t\t\t\t\t\t$imageLink = Yii::app()->request->baseUrl.'/images/floors/map-default-'.$room->floor->level.'.jpg';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$roomImages[] = CHtml::image(\n\t\t\t\t\t$imageLink,\n\t\t\t\t\t$model->name.' - Floor '.$room->floor->level.' - '.$room->number,\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'class'=>'room-image',\n\t\t\t\t\t\t'id'=>'room_'.$room->id.'_map',\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\t\t\t// Create JavaScript for Room image preloading\n\t\t\tforeach($roomImages as $image)\n\t\t\t\t$roomImageJs.=\"$('\".$image.\"').load(function(){\\$('.map-images').prepend(\\$(this))});\\n\";\n\t\t\n\t\t\t*/\n\t\t\t\n\t\t\t// Create JavaScript for Street Image preloading\n\t\t\t$imageLocation = $rootPath['dirname'].'/images/buildings/'.$model->street_image;\n\t\t\tif (!is_dir($imageLocation) && file_exists($imageLocation))\n\t\t\t\t$imageLink = Yii::app()->request->baseUrl.'/images/buildings/'.$model->street_image;\n\t\t\telse\n\t\t\t\t$imageLink = Yii::app()->request->baseUrl.'/images/buildings/street-default.jpg';\n\t\t\t\n\t\t\t// Create JavaScript for Street Image preloading\n\t\t\t$image = CHtml::image(\n\t\t\t\t$imageLink,\n\t\t\t\t$model->name,\n\t\t\t\tarray(\n\t\t\t\t\t'class'=>'street-image display',\n\t\t\t\t\t'id'=>'building_'.$model->id.'_street',\n\t\t\t\t)\n\t\t\t);\n\t\t\t$streetImageJs=\"$('\".$image.\"').load(function(){\\$('.map-images').prepend(\\$(this))});\\n\";\n\t\t}\t\n\n\t\t$this->render('view',array(\n\t\t\t'model'=>$model,\n\t\t\t'floors'=>$floors,\n\t\t\t'floorImageJs'=>$floorImageJs,\n\t\t\t'rooms'=>$rooms,\n\t\t\t'roomImageJs'=>$roomImageJs,\n\t\t\t'streetImageJs'=>$streetImageJs,\n\t\t));\n\t}", "title": "" }, { "docid": "6fb20a83b0fad722c44ea2bfd130af6d", "score": "0.5208188", "text": "private function alle_bilder_lesen() {\r\n global $db;\r\n // Aller Bilder aus der Bilder-DB lesen\r\n $query = 'SELECT * from ' . $this->mPrefix . 'galerien';\r\n $bilder = $db->query($query);\r\n return $bilder;\r\n }", "title": "" }, { "docid": "6dba61ac6d378a5beb4349416ec95499", "score": "0.520326", "text": "public function getFloorByBuildingId(Request $request)\n {\n $building_id = trim($request->building_id);\n $query = DB::table('tbl_building_floor')->where('branch_id',$this->branch_id)->where('building_id',$building_id)->get();\n echo \"<option value=''>Select Floor </option>\";\n foreach ($query as $value) {\n echo \"<option value=\".$value->id.\">\".$value->floor_name.\"</option>\";\n }\n }", "title": "" }, { "docid": "e62e4eeb276d0237fb3d0a166b3b7086", "score": "0.517937", "text": "public function getListBuilding($type=\"\"){\n\t\t\n\t\tif($type == \"\"){\n\t\t\t$this->db->select('id,name,builder_number,created_at');\n\t\t\t$this->db->from('building_details');\n\t\t}else if($type == \"villa\"){\n\t\t\t$this->db->select('id,name,no,created_at');\n\t\t\t$this->db->from('villa_details');\n\t\t}else if($type == \"warehouse\"){\n\t\t\t$this->db->select('id,name,number,created_at');\n\t\t\t$this->db->from('warehouse_details');\n\t\t}\n\t\t\n\t\t$this->db->order_by('name',\"asc\");\n\t\t$query = $this->db->get();\n\t\t\n if ($query->num_rows() > 0) {\n\t\t\t$row = $query->result();\n return $row;\n } else {\n return false;\n }\n\t}", "title": "" }, { "docid": "f8d23f7c6b28d634981dcd46ebd258c8", "score": "0.51365787", "text": "public function get_landings() {\n $landings = array();\n $sql = \"select land_id,\n land_creatividad,\n land_nombre,\n land_argo_website,\n land_skin_folder\n from landings\"; \n\n $response = db::query(\"b2c\", $sql, array());\n\n foreach ($response as $key => $value) {\n $landings[$value[\"land_argo_website\"]][$key] = $value;\n }\n\n return $landings;\n }", "title": "" }, { "docid": "f01a4dcdcb92b0f8de5831e54cd164d4", "score": "0.51273", "text": "public static function getRoomChangesByFloor($term, Array $floorList, Array $stateList)\n {\n $db = PdoFactory::getPdoInstance();\n\n $floorPlaceholders = array();\n $floorParams = array();\n foreach ($floorList as $floor) {\n $placeholder = \"floor_id_\" . $floor->getId(); // piece together a placeholder name\n\n $floorPlaceholders[] = ':' . $placeholder; // Add it to the list of placeholders for PDO\n $floorParams[$placeholder] = $floor->getId(); // Add the value for this placeholder, to be passed to execute()\n }\n\n $floorQuery = implode(',', $floorPlaceholders); // Collapse the array of placeholders into a comma separated list\n\n $statePlaceholders = array();\n $stateParams = array();\n foreach ($stateList as $state) {\n $placeholder = \"state_name_$state\";\n\n $statePlaceholders[] = ':' . $placeholder;\n $stateParams[$placeholder] = $state;\n }\n\n $stateQuery = implode(',', $statePlaceholders);\n\n /*\n * Get any requests in the given states where the request is\n * coming from a Participant currently living on one of the listed floor\n * (from_bed is on a floor in list)\n *\n * Union that with any requests in the given states, where the request\n * has a to_bed set and that bed is on one of the floors in the list\n *\n * The union is important because the 'to_bed' field does not always have to be\n * set. A combined JOIN (as opposed to UNION) would not include results where\n * to_bed field is empty.\n */\n $query = \"SELECT hms_room_change_curr_request.* FROM hms_room_change_curr_request\n JOIN hms_room_change_curr_participant ON hms_room_change_curr_request.id = hms_room_change_curr_participant.request_id\n JOIN hms_hall_structure ON from_bed = hms_hall_structure.bedid\n WHERE\n term = :term AND\n hms_room_change_curr_request.state_name IN ($stateQuery) AND\n hms_hall_structure.floorid IN ($floorQuery)\n UNION\n\n SELECT hms_room_change_curr_request.* FROM hms_room_change_curr_request\n JOIN hms_room_change_curr_participant ON hms_room_change_curr_request.id = hms_room_change_curr_participant.request_id\n JOIN hms_hall_structure ON to_bed = hms_hall_structure.bedid\n WHERE\n term = :term AND\n hms_room_change_curr_request.state_name IN ($stateQuery) AND\n hms_hall_structure.floorid IN ($floorQuery)\";\n\n $stmt = $db->prepare($query);\n\n $params = array_merge(array(\n 'term' => $term\n ), $floorParams, $stateParams);\n\n $stmt->execute($params);\n\n return $stmt->fetchAll(PDO::FETCH_CLASS, 'RoomChangeRequestRestored');\n }", "title": "" }, { "docid": "1e5b6a01af81f2821c7ea2bcf24304c6", "score": "0.5125395", "text": "public function floor() {\n return $this->belongsTo('App\\Models\\Floor', 'floor', 'id');\n }", "title": "" }, { "docid": "2952a853a54ee4946e133b1e05663534", "score": "0.5085743", "text": "public function getDoors();", "title": "" }, { "docid": "78dcd3501997ea5a0c33c1b1db79df3e", "score": "0.5080408", "text": "public function getHouses() {\n $toReturn = [];\n $query = SQL::select(self::HOUSES_LINK_TABLE, [\"user_id\" => $this->id]);\n while ($result = $query->fetch(PDO::FETCH_ASSOC)) {\n $toReturn[] = new House($result[\"house_id\"]);\n }\n return $toReturn;\n }", "title": "" }, { "docid": "42c39412bc3aaad1ccdba199a066bfb5", "score": "0.50762784", "text": "public function get_building_rooms($building_id){\n $this->db->where('building_id',$building_id);\n $this->db->order_by(\"name\",\"asc\");\n $result = $this->db->get('room');\n return $result->result_array();\n }", "title": "" }, { "docid": "ccbf0d3b944c449695ff5018c0bdd20c", "score": "0.50739574", "text": "public function gestions($id)\n {\n $edificio = Building::findOrFail($id);\n return view('gestions.showByBuilding', compact('edificio'));\n }", "title": "" }, { "docid": "36cbc715bcda1569d26163ddb07088ca", "score": "0.50657773", "text": "public function run()\n {\n $rooms = [\n ['name' => 'UB10103', 'building' => 1, 'floor' => 1, 'seats' => 40],\n ['name' => 'UB10102', 'building' => 1, 'floor' => 1, 'seats' => 40],\n ['name' => 'UB10101', 'building' => 1, 'floor' => 1, 'seats' => 40],\n ['name' => 'UB10201', 'building' => 1, 'floor' => 2, 'seats' => 40],\n ['name' => 'UB10202', 'building' => 1, 'floor' => 2, 'seats' => 40],\n ['name' => 'UB10203', 'building' => 1, 'floor' => 2, 'seats' => 40],\n ['name' => 'UB20301', 'building' => 2, 'floor' => 3, 'seats' => 40],\n ['name' => 'UB20302', 'building' => 2, 'floor' => 3, 'seats' => 40],\n ['name' => 'UB20303', 'building' => 2, 'floor' => 3, 'seats' => 40],\n ['name' => 'UB40701', 'building' => 4, 'floor' => 7, 'seats' => 40],\n ['name' => 'UB40702', 'building' => 4, 'floor' => 7, 'seats' => 40],\n ['name' => 'UB40703', 'building' => 4, 'floor' => 7, 'seats' => 40],\n ['name' => 'UB30501', 'building' => 3, 'floor' => 5, 'seats' => 40],\n ['name' => 'UB30502', 'building' => 3, 'floor' => 5, 'seats' => 40],\n ['name' => 'UB30503', 'building' => 3, 'floor' => 5, 'seats' => 40],\n ['name' => 'UB21310', 'building' => 2, 'floor' => 13, 'seats' => 40],\n ['name' => 'UB21311', 'building' => 2, 'floor' => 13, 'seats' => 40],\n ['name' => 'UB21312', 'building' => 2, 'floor' => 13, 'seats' => 40],\n ];\n foreach ($rooms as $key => $room) {\n Room::create($room);\n }\n }", "title": "" }, { "docid": "12a8a648181e2cbfa14aaa824284144b", "score": "0.50646657", "text": "function goofs() {\n if (empty($this->goofs)) {\n if (empty($this->page[\"Goofs\"])) $this->openpage(\"Goofs\");\n if ($this->page[\"Goofs\"] == \"cannot open page\") return array(); // no such page\n $tag_s = strpos($this->page[\"Goofs\"],'<ul class=\"trivia\">');\n $tag_e = strrpos($this->page[\"Goofs\"],'<ul class=\"trivia\">'); // maybe more than one\n $tag_e = strrpos($this->page[\"Goofs\"],\"</ul>\");\n $goofs = substr($this->page[\"Goofs\"],$tag_s,$tag_e - $tag_s);\n if (preg_match_all(\"/<li><b>(.*?)<\\/b>(.*?)<br><br><\\/li>/\",$goofs,$matches)) {\n $gc = count($matches[1]);\n for ($i=0;$i<$gc;++$i) $this->goofs[] = array(\"type\"=>$matches[1][$i],\"content\"=>$matches[2][$i]);\n }\n }\n return $this->goofs;\n }", "title": "" }, { "docid": "e4de9248285783763815eead8566d3aa", "score": "0.50459886", "text": "public function index()\n {\n $buildings = Building::orderBy('id', 'desc')->paginate(15);\n return BuildingResource::collection($buildings);\n }", "title": "" }, { "docid": "296b920c9ec4a2d460bf2d4007897abe", "score": "0.5045376", "text": "public function getDistinctRooms($building = null, $floor = null)\n {\n $items = $this->createUniqFlatDistinct('storage_parts', 'room', 'room', true);\n return $items;\n }", "title": "" }, { "docid": "9340f7c5d3f4f59f71cfb9c340c8ee0c", "score": "0.5043906", "text": "public static function building()\n {\n return self::$building;\n }", "title": "" }, { "docid": "f081cf417d80d47ffe5a994d936c9285", "score": "0.50349575", "text": "public function getWheres();", "title": "" }, { "docid": "d32d4cd929b72214be4c75e07b7ebe4a", "score": "0.5031524", "text": "public function getFloor()\n {\n return $this->hasOne(Floor::class, ['id' => 'product_floor']);\n }", "title": "" }, { "docid": "e8a267a9e83e2628769e7d30e3819f86", "score": "0.5022826", "text": "protected function getListQuery()\n\t{\n\t\t$db = $this->getDbo();\n\t\t$query = $db->getQuery(true);\n\t\t$user = JFactory::getUser();\n\n\t\t// Select the required fields from the table.\n\t\t$query->select(\n\t\t\t$db->quoteName(\n\t\t\t\texplode(', ', $this->getState(\n\t\t\t\t\t'list.select', 'v.id, f.building_id, v.suite, v.available_space, v.pdf, p.name, b.name, f.floor_level'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t\t\n\t\t$query->from($db->quoteName('#__parkway_vacancies', 'v'));\n \n //join over the floor plan table\n $query->select($db->quoteName('f.title', 'floor_title'), 'f.building_id', 'f.floor_level')\n\t\t\t->join(\n\t\t\t\t'LEFT',\n\t\t\t\t$db->quoteName('#__parkway_floorplans', 'f') . ' ON ' . $db->quoteName('f.id') . ' = ' . $db->quoteName('v.floorplan_id')\n\t\t\t);\n\n // Join over the building name and property id from the buildings table.\n\t\t$query->select($db->quoteName('b.name', 'building_name'), $db->quoteName('b.property_id','property_id') )\n\t\t\t->join(\n\t\t\t\t'LEFT',\n\t\t\t\t$db->quoteName('#__parkway_buildings', 'b') . ' ON ' . $db->quoteName('b.id') . ' = ' . $db->quoteName('f.building_id')\n\t\t\t);\n\t\t\t\n\t\t// Join over the property name.\n\t\t\n $query->select($db->quoteName('p.name', 'property_name'), $db->quoteName('p.id','id') )\n\t\t\t->join(\n\t\t\t\t'LEFT',\n\t\t\t\t$db->quoteName('#__parkway_properties', 'p') . ' ON ' . $db->quoteName('p.id') . ' = ' . $db->quoteName('b.property_id')\n\t\t\t);\n\t\t\t\n\t\t\n \n\n\n //Filter by properties \n $property = $this->getState('filter.property');\n \n if (!empty( $property )){\n \n $query->where(\n\t\t\t\t\t'(' . $db->quoteName('b.property_id') . ' = ' . intval($property ). ')'\n\t\t\t\t);\n \n }\n \n //Filter by Building\n $building = $this->getState('filter.building');\n \n \n \n if (!empty( $building )){\n \n $query->where(\n\t\t\t\t\t'(' . $db->quoteName('f.building_id') . ' = ' . intval($building ). ')'\n\t\t\t\t);\n \n }\n\n //Filter by available space.\n $space = $this->getState('filter.space');\n \n \n \n if (!empty($space['min']) && !empty($space['max']))\n\t\t{\n \n \n\t\t\t\t$query->where(\n\t\t\t\t\t'(' . $db->quoteName('v.available_space') . ' BETWEEN ' . intval($space['min'] ) . ' AND ' . intval($space['max'] ). ')'\n\t\t\t\t);\n \n \n \n }else if (empty($space['min']) && !empty($space['max'])){\n \n \n \n \n\t\t\t\t$query->where(\n\t\t\t\t\t'(' . $db->quoteName('v.available_space') . ' BETWEEN 0 AND ' . intval($space['max'] ). ')'\n\t\t\t\t);\n \n \n \n }else if (!empty($space['min']) && empty($space['max'])){\n \n \n \n\t\t\t\t$query->where(\n\t\t\t\t\t'(' . $db->quoteName('v.available_space') . ' BETWEEN ' . intval($space['min']) . ' AND 999999999 )'\n\t\t\t\t);\n \n \n }\n \n \n // Filter by search in name.\n\t\t$search = $this->getState('filter.search');\n\n\t\tif (!empty($search))\n\t\t{\n\t\t\tif (stripos($search, 'id:') === 0)\n\t\t\t{\n\t\t\t\t$query->where('v.id = ' . (int) substr($search, 3));\n\t\t\t}\n\t\t\telseif (stripos($search, 'author:') === 0)\n\t\t\t{\n\t\t\t\t$search = $db->quote('%' . $db->escape(substr($search, 7), true) . '%');\n\t\t\t\t$query->where(\n\t\t\t\t\t'(' . $db->quoteName('uc.name') . ' LIKE ' . $search . ' OR ' . $db->quoteName('uc.username') . ' LIKE ' . $search . ')'\n\t\t\t\t);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$search = $db->quote('%' . str_replace(' ', '%', $db->escape(trim($search), true) . '%'));\n\t\t\t\t$query->where(\n\t\t\t\t\t'(' . $db->quoteName('b.name') . ' LIKE ' . $search . ' OR ' . $db->quoteName('v.keywords') . ' LIKE ' . $search . ')'\n\t\t\t\t);\n\t\t\t}\n\t\t}\n // Add the list ordering clause.\n\t\t$orderCol = $this->state->get('list.ordering', 'f.building_id');\n\t\t$orderDirn = $this->state->get('list.direction', 'asc');\n\n\t\tif ($orderCol == 'a.ordering' || $orderCol == 'category_title')\n\t\t{\n\t\t\t$orderCol = $db->quoteName('c.title') . ' ' . $orderDirn . ', ' . $db->quoteName('a.ordering');\n\t\t}\n\n\t\t$query->order($db->escape($orderCol . ' ' . $orderDirn));\n\n\t\treturn $query;\n \n \n return $query ;\n }", "title": "" }, { "docid": "bc4e237ea3ef294ed733efc9966cb730", "score": "0.49907035", "text": "public function getFilteredContents(\n\t $hotelCheckbox, $hotel,\n\t\t $roomNameCheckbox, $roomName,\n\t\t\t\t\t\t\t\t\t\t$bedTypeCheckbox, $bedType,\n\t\t\t\t\t\t\t\t\t\t$roomCategoriesCheckbox, $roomCategories,\n\t\t\t\t\t\t\t\t\t\t$maxOccupancyCheckbox, $maxOccupancy,\n\t\t\t\t\t\t\t\t\t\t$roomCodeCheckbox, $roomCode,\n\t\t\t\t\t\t\t\t\t\t$roomIdCheckbox, $roomId,\n\t\t\t\t\t\t\t\t\t\t$roomDescriptionCheckbox, $roomDescription\n\t\t\t\t\t\t\t\t\t\t)\n\t{\n\t\t \n\t // LEVEL 1 STARTS \n\t\t // HOTELNAME ONLY STARTS \n\t\t if($hotelCheckbox==1 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t { \t\n\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t \n\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t->where('m.property = :pro') \n\t\t\t\t\t\t->setParameter('pro', $hotel);\n\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t goto exitRoutrine; \n\t\t }\n\t\t // HOTELNAME ONLY ENDS \n\t\t \n\t\t // ROOMNAME ONLY STARTS \n\t\t if($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t { \t\n\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t \n\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t->where('m.name = :rn') \n\t\t\t\t\t\t->setParameter('rn', $roomName);\n\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t goto exitRoutrine; \n\t\t }\n\t\t // ROOMNAME ONLY ENDS\t \n\n\t\t // BEDTYPE ONLY STARTS \n\t\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t { \t\n\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t \n\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t->where('m.bedType = :bedTy') \n\t\t\t\t\t\t->setParameter('bedTy', $bedType);\n\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t goto exitRoutrine; \n\t\t }\n\t\t // BEDTYPE ONLY ENDS\t\n\n\t\t // ROOMCAREGORY ONLY STARTS \n\t\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t { \t\n\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t \n\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t->where('m.category = :rmCat') \n\t\t\t\t\t\t->setParameter('rmCat', $roomCategories);\n\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t goto exitRoutrine; \n\t\t }\n\t\t // ROOMCATEGORY ONLY ENDS\t\n\n\t\t // MAXOCCUPANCY ONLY STARTS \n\t\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t { \t\n\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t \n\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t->where('m.maxOccupancy = :mxOcu') \n\t\t\t\t\t\t->setParameter('mxOcu', $maxOccupancy);\n\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t goto exitRoutrine; \n\t\t }\n\t\t // MAXOCCUPANCY ONLY ENDS\t \n\t\t\t\t\t\t \n\t\t // ROOMCODE ONLY STARTS \n\t\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t { \t\n\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t \n\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t->where('m.code = :roomCod') \n\t\t\t\t\t\t->setParameter('roomCod', $roomCode);\n\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t goto exitRoutrine; \n\t\t }\n\t\t // ROOMCODE ONLY ENDS\n\n\t\t // ROOMID ONLY STARTS \n\t\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t\t { \t\n\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t \n\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t->where('m.id = :rmId') \n\t\t\t\t\t\t->setParameter('rmId', $roomId);\n\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t goto exitRoutrine; \n\t\t }\n\t\t // ROOMID ONLY ENDS\n\n\t\t // ROOMDESCRIPTION ONLY STARTS \n\t\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t { \t\n\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t->orwhere('m.name = :par2') \n\t\t\t\t\t\t->orwhere('m.code = :par3') \n\t\t\t\t\t\t->orwhere('m.categories = :par4')\n\t\t\t\t\t\t->orwhere('m.bedType = :par5')\n\t\t\t\t\t\t->orwhere('m.description like :par6') \n\t\t\t\t\t\t->setParameter('par1', $roomDescription)\t\t\t \n\t\t\t\t\t\t->setParameter('par2', $roomDescription)\n\t\t\t\t\t\t->setParameter('par3', $roomDescription)\n\t\t\t\t\t\t->setParameter('par4', $roomDescription)\t\t\t\t\t\n\t\t\t\t\t\t->setParameter('par5', $roomDescription)\n\t\t\t\t\t\t->setParameter('par6', '%'.$roomDescription.'%')\n\t\t\t\t\t\t;\t\t\t\n\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t goto exitRoutrine; \n\t\t }\n\t\t // ROOMDESCRIPTION ONLY ENDS\n // LEVEL 1 ENDS \n\n\n // LEVEL 2 STARTS \t \n\t // HOTELNAME AND ROOMNAME ONLY STARTS \n\t if($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.property = :par1') \n ->andwhere('m.name = :par2') \n ->setParameter('par1', $hotel)\t\t\t \n\t\t\t\t\t->setParameter('par2', $roomName);\t\t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // HOTELNAME AND ROOMNAME ONLY STARTS \n\t \n\t // HOTELNAME AND BEDTYPE ONLY STARTS \n\t if($hotelCheckbox==1 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.property = :par1') \n ->andwhere('m.bedType = :par2') \n ->setParameter('par1', $hotel)\t\t\t \n\t\t\t\t\t->setParameter('par2', $bedType);\t\t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // HOTELNAME AND BEDTYPE ONLY STARTS \n\t \n\t // HOTELNAME AND ROOMCATEGORY ONLY STARTS \n\t if($hotelCheckbox==1 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.category,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.property = :par1') \n ->andwhere('m.category = :par2') \n ->setParameter('par1', $hotel)\t\t\t \n\t\t\t\t\t->setParameter('par2', $roomCategories);\t\t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // HOTELNAME AND ROOMCATEGORY ONLY STARTS \n\t \n\t // HOTELNAME AND MAXOCCUPANCY ONLY STARTS \n\t if($hotelCheckbox==1 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.property = :par1') \n ->andwhere('m.maxOccupancy = :par2') \n ->setParameter('par1', $hotel)\t\t\t \n\t\t\t\t\t->setParameter('par2', $maxOccupancy);\t\t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // HOTELNAME AND MAXOCCUPANCY ONLY STARTS \n\t \n\t // HOTELNAME AND ROOMCODE ONLY STARTS \n\t if($hotelCheckbox==1 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.property = :par1') \n ->andwhere('m.code = :par2') \n ->setParameter('par1', $hotel)\t\t\t \n\t\t\t\t\t->setParameter('par2', $roomCode);\t\t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // HOTELNAME AND ROOMCODE ONLY STARTS\n\t \n\t // HOTELNAME AND ROOMID ONLY STARTS \n\t if($hotelCheckbox==1 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.property = :par1') \n ->andwhere('m.id = :par2') \n ->setParameter('par1', $hotel)\t\t\t \n\t\t\t\t\t->setParameter('par2', $roomId);\t\t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // HOTELNAME AND ROOMID ONLY STARTS\n\t \t \n\t // HOTELNAME AND ROOMDESCRIPTION ONLY STARTS \n\t if($hotelCheckbox==1 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.property = :par1') \n ->andwhere('m.description like :par6') \n ->setParameter('par1', $hotel)\t\t\n\t\t\t\t\t->setParameter('par6', '%'.$roomDescription.'%');\t\t\t\t\t\t\t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // HOTELNAME AND ROOMDESCRIPTION ONLY ENDS\n\t \t \n\t // ROOMNAME AND BEDTYPE ONLY STARTS \n\t if($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.name = :par1') \n ->andwhere('m.bedType = :par2') \n ->setParameter('par1', $roomName)\t\t\t \n\t\t\t\t\t->setParameter('par2', $bedType);\t\t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // ROOMNAME AND BEDTYPE ONLY STARTS \n\t \n\t // ROOMNAME AND ROOMCATEGORIES ONLY STARTS \n\t if($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.category,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.name = :par1') \n ->andwhere('m.category = :par2') \n ->setParameter('par1', $roomName)\t\t\t \n\t\t\t\t\t->setParameter('par2', $roomCategories);\t\t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // ROOMNAME AND ROOMCATEGORIES ONLY STARTS\n\t \n\t // ROOMNAME AND MAXOCCUPANCY ONLY STARTS \n\t if($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.name = :par1') \n ->andwhere('m.maxOccupancy = :par2') \n ->setParameter('par1', $roomName)\t\t\t \n\t\t\t\t\t->setParameter('par2', $maxOccupancy);\t\t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // ROOMNAME AND MAXOCCUPANCY ONLY STARTS\n\t \n\t // ROOMNAME AND ROOMCODE ONLY STARTS \n\t if($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.category,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.name = :par1') \n ->andwhere('m.code = :par2') \n ->setParameter('par1', $roomName)\t\t\t \n\t\t\t\t\t->setParameter('par2', $roomCode);\t\t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // ROOMNAME AND ROOMCODE ONLY STARTS\n\t \n\t // ROOMNAME AND ROOMID ONLY STARTS \n\t if($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.name = :par1') \n ->andwhere('m.id = :par2') \n ->setParameter('par1', $roomName)\t\t\t \n\t\t\t\t\t->setParameter('par2', $roomId);\t\t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // ROOMNAME AND ROOMID ONLY STARTS\n\t \n\t // ROOMNAME AND ROOMDESCRIPTION ONLY STARTS \n\t if($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.name = :par1') \t\t\t\t\n ->andwhere('m.description like :par2')\n ->setParameter('par1', $roomName) \t\t\t\t\n\t\t\t\t\t->setParameter('par2', '%'.$roomDescription.'%'); \t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // ROOMNAME AND ROOMDESCRIPTION ONLY STARTS \n\t \n\t // ROOMID AND ROOMDESCRIPTION ONLY STARTS \n\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.id = :par1') \t\t\t\t\n ->andwhere('m.description like :par2')\n ->setParameter('par1', $roomId) \t\t\t\t\n\t\t\t\t\t->setParameter('par2', '%'.$roomDescription.'%'); \t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // ROOMID AND ROOMDESCRIPTION ONLY STARTS \n\t \n\t // ROOMCODE AND ROOMDESCRIPTION ONLY STARTS \n\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.code = :par1') \t\t\t\t\n ->andwhere('m.description like :par2')\n ->setParameter('par1', $roomCode) \t\t\t\t\n\t\t\t\t\t->setParameter('par2', '%'.$roomDescription.'%'); \t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // ROOMCODE AND ROOMDESCRIPTION ONLY STARTS \n\t \n\t // ROOMCODE AND ROOMID ONLY STARTS \n\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.code = :par1') \t\t\t\t\n ->andwhere('m.id = :par2')\n ->setParameter('par1', $roomCode) \t\t\t\t\n\t\t\t\t\t->setParameter('par2', $roomId); \t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // ROOMCODE AND ROOMID ONLY STARTS \n\t \n\t // MAXOCCUPANCY AND ROOMDESCRIPTION ONLY STARTS \n\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.maxOccupancy = :par1') \t\t\t\t\n ->andwhere('m.description like :par2')\n ->setParameter('par1', $maxOccupancy) \t\t\t\t\n\t\t\t\t\t->setParameter('par2', '%'.$roomDescription.'%'); \t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // MAXOCCUPANCY AND ROOMDESCRIPTION ONLY STARTS\n\t \n\t // MAXOCCUPANCY AND ROOMID ONLY STARTS \n\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.maxOccupancy = :par1') \t\t\t\t\n ->andwhere('m.id = :par2')\n ->setParameter('par1', $maxOccupancy) \t\t\t\t\n\t\t\t\t\t->setParameter('par2', $roomId); \t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // MAXOCCUPANCY AND ROOMID ONLY STARTS\n\t \n\t // MAXOCCUPANCY AND ROOMCODE ONLY STARTS \n\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.maxOccupancy = :par1') \t\t\t\t\n ->andwhere('m.code = :par2')\n ->setParameter('par1', $maxOccupancy) \t\t\t\t\n\t\t\t\t\t->setParameter('par2', $roomCode); \t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // MAXOCCUPANCY AND ROOMCODE ONLY STARTS\n\t \n\t // BEDTYPE AND ROOMCATEGORIES ONLY STARTS \n\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.category,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.bedType = :par1') \t\t\t\t\n ->andwhere('m.category = :par2')\n ->setParameter('par1', $bedType) \t\t\t\t\n\t\t\t\t\t->setParameter('par2', $roomCategories); \t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // BEDTYPE AND ROOMCATEGORIES ONLY STARTS\n\t \n\t // BEDTYPE AND MAXOCCUPANCY ONLY STARTS \n\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.bedType = :par1') \t\t\t\t\n ->andwhere('m.maxOccupancy = :par2')\n ->setParameter('par1', $bedType) \t\t\t\t\n\t\t\t\t\t->setParameter('par2', $maxOccupancy); \t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // BEDTYPE AND MAXOCCUPANCY ONLY STARTS\n\t \n\t // BEDTYPE AND ROOMCODE ONLY STARTS \n\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.bedType = :par1') \t\t\t\t\n ->andwhere('m.code = :par2')\n ->setParameter('par1', $bedType) \t\t\t\t\n\t\t\t\t\t->setParameter('par2', $roomCode); \t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // BEDTYPE AND ROOMCODE ONLY STARTS\n\t \t \n\t // BEDTYPE AND ROOMID ONLY STARTS \n\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.bedType = :par1') \t\t\t\t\n ->andwhere('m.id = :par2')\n ->setParameter('par1', $bedType) \t\t\t\t\n\t\t\t\t\t->setParameter('par2', $roomId); \t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // BEDTYPE AND ROOMID ONLY STARTS\n\t \n\t // BEDTYPE AND ROOMDESCRIPTION ONLY STARTS \n\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.bedType = :par1') \n ->andwhere('m.description like :par2')\t \n ->setParameter('par1', $bedType) \t\t\t\t\n\t\t\t\t ->setParameter('par2', '%'.$roomDescription.'%'); \t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // BEDTYPE AND ROOMDESCRIPTION ONLY STARTS\n\t \n\t // ROOMCATEGORIES AND ROOMDESCRIPTION ONLY STARTS \n\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.category,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.category = :par1') \n ->andwhere('m.description like :par2')\t \n ->setParameter('par1', $roomCategories) \t\t\t\t\n\t\t\t\t ->setParameter('par2', '%'.$roomDescription.'%'); \t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // ROOMCATEGORIES AND ROOMDESCRIPTION ONLY STARTS\n\t \n\t // ROOMCATEGORIES AND ROOMCODE ONLY STARTS \n\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.category,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.category = :par1') \t\t\t\t\n ->andwhere('m.code = :par2')\n ->setParameter('par1', $roomCategories) \t\t\t\t\n\t\t\t\t\t->setParameter('par2', $roomCode); \t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // ROOMCATEGORIES AND ROOMCODE ONLY STARTS\n\t \t \n\t // ROOMCATEGORIES AND ROOMID ONLY STARTS \n\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.category,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.category = :par1') \t\t\t\t\n ->andwhere('m.id = :par2')\n ->setParameter('par1', $roomCategories) \t\t\t\t\n\t\t\t\t\t->setParameter('par2', $roomId); \t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // ROOMCATEGORIES AND ROOMID ONLY STARTS\n\t \n\t // ROOMCATEGORIES AND MAXOCCUPANCY ONLY STARTS \n\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t { \t\n $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.categories,m.category,m.featured,m.status')\n ->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t->where('m.category = :par1') \t\t\t\t\n ->andwhere('m.maxOccupancy = :par2')\n ->setParameter('par1', $roomCategories) \t\t\t\t\n\t\t\t\t\t->setParameter('par2', $maxOccupancy); \t\t\n\t $result = $queryString->getQuery()->getResult();\t\n\t goto exitRoutrine; \n\t }\n\t // ROOMCATEGORIES AND MAXOCCUPANCY ONLY STARTS\t \t \t \n // LEVEL 2 ENDS \t \n\n\t // LEVEL 3 STARTS\t \n\t\t// PROPERTYNAME, ROOMNAME AND BEDTYPE ONLY STARTS \n\t if($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType);\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \t\t\t\n\t // PROPERTYNAME, ROOMNAME AND BEDTYPE ONLY ENDS\n\t\t\n\t\t// PROPERTYNAME, ROOMNAME AND ROOMCATEGORIES ONLY STARTS \n\t if($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories);\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \t\t\t\n\t // PROPERTYNAME, ROOMNAME AND ROOMCATEGORIES ONLY ENDS\n\t \n\t\t// PROPERTYNAME, ROOMNAME AND MAXOCCUPANCY ONLY STARTS \n\t\tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy);\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// PROPERTYNAME, ROOMNAME AND MAXOCCUPANCY ENDS \n\t\t\n\t\t// PROPERTYNAME, ROOMNAME AND ROOMCODE ONLY STARTS \n\t\tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode);\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// PROPERTYNAME, ROOMNAME AND ROOMCODE ENDS \n\t\t\n\t\t// PROPERTYNAME, ROOMNAME AND ROOMID ONLY STARTS \n\t\tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par7', $roomId);\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// PROPERTYNAME, ROOMNAME AND ROOMID ENDS \n\t\t\n\t\t// PROPERTYNAME, ROOMNAME AND KEYWORDS ONLY STARTS \n\t\tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// PROPERTYNAME, ROOMNAME AND KEYWORDS ENDS \n\t\t\n\t\t// PROPERTYNAME, ROOMNAME AND KEYWORDS ONLY STARTS \n\t\tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// PROPERTYNAME, ROOMNAME AND KEYWORDS ENDS \n\t\t\n\t\t// ROOMNAME, BEDTYPE AND ROOMCATEGORIES ONLY STARTS \n\t\tif($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->where('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories);\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// ROOMNAME, BEDTYPE AND ROOMCATEGORIES ONLY ENDS \n\t\t\n\t\t// ROOMNAME, BEDTYPE AND MAXOCCUPANCY ONLY STARTS \n\t\tif($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->where('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy);\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// ROOMNAME, BEDTYPE AND MAXOCCUPANCY ONLY ENDS \n\t\t\n\t\t// ROOMNAME, BEDTYPE AND ROOMCODE ONLY STARTS \n\t\tif($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->where('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode);\t\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// ROOMNAME, BEDTYPE AND ROOMCODE ONLY ENDS \n\t\t\t\t\n\t\t// ROOMNAME, BEDTYPE AND ROOMID ONLY STARTS \n\t\tif($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->where('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par7', $roomId);\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// ROOMNAME, BEDTYPE AND ROOMID ONLY ENDS \n\t\t\n\t\t// ROOMNAME, BEDTYPE AND KEYWORDS ONLY STARTS \n\t\tif($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->where('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// ROOMNAME, BEDTYPE AND KEYWORDS ONLY ENDS \n\t\t\n\t\t// BEDTYPE, ROOM CATEGORIES AND MAX OCCUPANCY ONLY STARTS \n\t\tif($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy);\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// BEDTYPE, ROOM CATEGORIES AND MAX OCCUPANCY ONLY ENDS \n\t\t\n\t\t// BEDTYPE, ROOM CATEGORIES AND ROOM CODE ONLY STARTS \n\t\tif($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t \n\t\t\t\t\t\t\t->where('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode);\t\t\t\t\t\t\t\t\t \n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// BEDTYPE, ROOM CATEGORIES AND ROOM CODE ONLY ENDS \n\t\t\n\t\t// BEDTYPE, ROOM CATEGORIES AND ROOMID ONLY STARTS \n\t\tif($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t \n\t\t\t\t\t\t\t->where('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par7', $roomId);\t\t\t\t\t\t\t \n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// BEDTYPE, ROOM CATEGORIES AND ROOMID ONLY ENDS \n\t\t\n\t\t// BEDTYPE, ROOM CATEGORIES AND KEYWORDS ONLY STARTS \n\t\tif($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t \n\t\t\t\t\t\t\t->where('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t \n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// BEDTYPE, ROOM CATEGORIES AND KEYWORDS ONLY ENDS \n\t\t\n\t\t// ROOM CATEGORIES, MAX OCCUPANCY AND ROOM CODE ONLY STARTS \n\t\tif($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t \n\t\t\t\t\t\t\t->where('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode);\t\t\t\t\t\t\t\t\t\t \n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// ROOM CATEGORIES, MAX OCCUPANCY AND ROOM CODE ONLY ENDS \n\t\t\n\t\t// ROOM CATEGORIES, MAX OCCUPANCY AND ROOM ID ONLY STARTS \n\t\tif($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t \n\t\t\t\t\t\t\t->where('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par7', $roomId);\t\t\t\t\t\t\t\t \n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// ROOM CATEGORIES, MAX OCCUPANCY AND ROOM ID ONLY ENDS \n\t\t\n\t\t// ROOM CATEGORIES, MAX OCCUPANCY AND KEYWORDS ONLY STARTS \n\t\tif($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t \n\t\t\t\t\t\t\t->where('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t \n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// ROOM CATEGORIES, MAX OCCUPANCY AND KEYWORDS ONLY ENDS \n\t\t\n\t\t// ROOM CODE, ROOM ID AND KEYWORDS ONLY STARTS \n\t\tif($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t \n\t\t\t\t\t\t\t->where('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t \n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// ROOM CODE, ROOM ID AND KEYWORDS ONLY ENDS \n\t\t\n\t\t// MAXOCCUPANCY, ROOM CODE AND KEYWORDS ONLY STARTS \n\t\tif($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t \n\t\t\t\t\t\t\t->where('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t \n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// MAXOCCUPANCY, ROOM CODE AND KEYWORDS ONLY ENDS \n\t\t\n\t\t// MAXOCCUPANCY, ROOM CODE AND ROOMID ONLY STARTS \n\t\tif($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t \n\t\t\t\t\t\t\t->where('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId);\t\t\t\t\t\t\t\t\t \n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// MAXOCCUPANCY, ROOM CODE AND ROOMID ONLY ENDS \n\t\t\n\t\t// HOTELNAME, BEDTYPE, MAXOCCUPANCY ONLY STARTS\n\t\t\t if($hotelCheckbox==1 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy);\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // HOTELNAME, BEDTYPE, MAXOCCUPANCY ONLY ENDS\n\t\t\n\t\t// HOTELNAME, BEDTYPE, ROOMID ONLY STARTS\n\t\t\t if($hotelCheckbox==1 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n ->setParameter('par7', $roomId);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // HOTELNAME, BEDTYPE, ROOMID ONLY ENDS\n\t\t\n\t\t// HOTELNAME, BEDTYPE, ROOMCODE ONLY STARTS\n\t\t\t if($hotelCheckbox==1 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\t\n ->andwhere('m.code = :par6')\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // HOTELNAME, BEDTYPE, ROOMCODE ONLY ENDS\n\t\t\n\t\t// HOTELNAME, BEDTYPE, KEYWORDS ONLY STARTS\n\t\t\t if($hotelCheckbox==1 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\t\n ->andwhere('m.description like :par8')\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\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 $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // HOTELNAME, BEDTYPE, KEYWORDS ONLY ENDS\n\t\t\n\t\t// HOTELNAME, BEDTYPE, CATEGORIES ONLY STARTS\n\t\t\t if($hotelCheckbox==1 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\t\n ->andwhere('m.category = :par4')\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories);\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // HOTELNAME, BEDTYPE, CATEGORIES ONLY ENDS\n\t\t\n\t\t// HOTELNAME, BEDTYPE, ROOMNAME ONLY STARTS\n\t\t\t if($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n ->andwhere('m.name = :par2')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\t \t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n ->setParameter('par2', $roomName) \t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par3', $bedType);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // HOTELNAME, BEDTYPE, ROOMNAME ONLY ENDS\n\t\t\n\t\t// KEYWORDS, ROOMCODE, ROOMCATEGORIES ONLY STARTS\n\t\t\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t\t\t\t\t \n\t\t\t\t\t\t\t->where('m.category = :par4')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%'); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // KEYWORDS, ROOMCODE, ROOMCATEGORIES ONLY ENDS\n\t\t\n\t // ROOMID, ROOMCODE, ROOMCATEGORIES ONLY STARTS\n\t\t\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t\t\t\t\t \n\t\t\t\t\t\t\t->where('m.category = :par4')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n ->andwhere('m.id = :par7')\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\t\t\n ->setParameter('par7', $roomId);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // ROOMID, ROOMCODE, ROOMCATEGORIES ONLY ENDS\n\t\t\n\t\t// HOTELNAME, ROOMCODE, ROOMCATEGORIES ONLY STARTS\n\t\t\t if($hotelCheckbox==1 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\n ->where('m.property = :par1') \t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.code = :par6') \n ->setParameter('par1', $hotel)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // HOTELNAME, ROOMCODE, ROOMCATEGORIES ONLY ENDS\n\t\t\t\n\t\t// ROOMCODE, BEDTYPE, KEYWORDS ONLY STARTS\n\t\t\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\n ->where('m.bedType = :par3') \t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.code = :par6') \n \t\t->andwhere('m.description like :par8')\t\n ->setParameter('par3', $bedType)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%'); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // ROOMCODE, BEDTYPE, KEYWORDS ONLY ENDS\n\t\t\n\t\t// ROOMNAME, ROOM CODE AND KEYWORDS ONLY STARTS \n\t\tif($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n ->where('m.name = :par2')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t \n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// ROOMNAME, ROOM CODE AND KEYWORDS ONLY ENDS\n\t\t\n\t\t// HOTELNAME, ROOM CODE AND KEYWORDS ONLY STARTS \n\t\t if($hotelCheckbox==1 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n ->setParameter('par1', $hotel)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t \n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t// HOTELNAME, ROOM CODE AND KEYWORDS ONLY ENDS\n\t\t\n\t\t// ROOMCODE, ROOMCATEGORIES, KEYWORDS ONLY STARTS\n\t\t\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm') \t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->where('m.category = :par4')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.code = :par6') \n ->andwhere('m.description like :par8')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n ->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // ROOMCODE, ROOMCATEGORIES, KEYWORDS ONLY ENDS\n\t\t\t\n\t \n\t // LEVEL 3 ENDS \n\t \n\t // LEVEL 4 STARTS \n\t // HOTELNAME, ROOMNAME, BEDTYPE, CATEGORY ONLY STARTS\n\t\t\t if($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories);\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // HOTELNAME, ROOMNAME, BEDTYPE, CATEGORY ONLY ENDS\n\t\t\n\t\t// HOTELNAME, ROOMNAME, BEDTYPE, MAX OCCUPANCY ONLY STARTS\n\t\t\t if($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy);\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // HOTELNAME, ROOMNAME, BEDTYPE, MAX OCCUPANCY ONLY ENDS\n\t\t\n\t\t// HOTELNAME, ROOMNAME, BEDTYPE, ROOM CODE ONLY STARTS\n\t\t\t if($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode);\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // HOTELNAME, ROOMNAME, BEDTYPE, ROOM CODE ONLY ENDS\n\t\t\t\t\n\t\t// HOTELNAME, ROOMNAME, BEDTYPE, ROOM ID ONLY STARTS\n\t\t\t if($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\t\t\t\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par7', $roomId);\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // HOTELNAME, ROOMNAME, BEDTYPE, ROOM ID ONLY ENDS\n\t\t\n\t\t// HOTELNAME, ROOMNAME, BEDTYPE, KEYWORDS ONLY STARTS\n\t\t\t if($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // HOTELNAME, ROOMNAME, BEDTYPE, KEYWORDS ONLY ENDS\n\t\t\n\t\t// HOTELNAME, ROOMNAME, BEDTYPE, KEYWORDS ONLY STARTS\n\t\t\t if($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // HOTELNAME, ROOMNAME, BEDTYPE, KEYWORDS ONLY ENDS\n\t\t\n\t\t// ROOMNAME, BEDTYPE, CATGORIES, MAXOCCUPANCY ONLY STARTS\n\t\t\t if($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->where('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy);\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // ROOMNAME, BEDTYPE, CATEGORIES, MAXOCCUPANCY ONLY ENDS\n\t\t\t\t\n\t\t// ROOMNAME, BEDTYPE, CATEGORIES, ROOMCODE ONLY STARTS\n\t\t\t if($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->where('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode);\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // ROOMNAME, BEDTYPE, CATEGORIES, ROOMCODE ONLY ENDS\n\t\t\n\t\t// ROOMNAME, BEDTYPE, CATEGORIES, ROOMID ONLY STARTS\n\t\t\t if($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->where('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\t\n ->setParameter('par7', $roomId);\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // ROOMNAME, BEDTYPE, CATEGORIES, ROOMID ONLY ENDS\n\t\t\n\t\t// ROOMNAME, BEDTYPE, CATEGORIES, KEYWORDS ONLY STARTS\n\t\t\t if($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->where('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\t\n ->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // ROOMNAME, BEDTYPE, CATEGORIES, KEYWORDS ONLY ENDS\n\t\t\n\t\t// BEDTYPE, ROOMCATEGORIES, MAXOCCUPANCY, ROOMCODE ONLY STARTS\n\t\t\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->where('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode);\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // BEDTYPE, ROOMCATEGORIES, MAXOCCUPANCY, ROOMCODE ONLY ENDS\n\t\t\n\t\t// BEDTYPE, ROOMCATEGORIES, MAXOCCUPANCY, ROOMID ONLY STARTS\n\t\t\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t\t\t\t\t\n\t\t\t\t\t\t\t//->where('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId);\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 $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // BEDTYPE, ROOMCATEGORIES, MAXOCCUPANCY, ROOMID ONLY ENDS\n\t\t\n\t\t// BEDTYPE, ROOMCATEGORIES, MAXOCCUPANCY, KEYWORDS ONLY STARTS\n\t\t\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t\t\t\t\t\n\t\t\t\t\t\t\t//->where('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // BEDTYPE, ROOMCATEGORIES, MAXOCCUPANCY, KEYWORDS ONLY ENDS\n\t\t\n\t\t//\n\t\t\n\t\t// ROOMCATEGORIES, MAXOCCUPANCY, ROOMID, ROOMCODE ONLY STARTS\n\t\t\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->where('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId);\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 $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // ROOMCATEGORIES, MAXOCCUPANCY, ROOMID, ROOMCODE ONLY ENDS\n\t\t\n\t\t// ROOMCATEGORIES, MAXOCCUPANCY, ROOMCODE, KEYWORDS ONLY STARTS\n\t\t\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->where('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n ->setParameter('par6', $roomCode)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // ROOMCATEGORIES, MAXOCCUPANCY, ROOMCODE, KEYWORDS ONLY ENDS\n\t\t\n\t\t// MAXOCCUPANCY, ROOMCODE, ROOMID, KEYWORDS ONLY STARTS\n\t\t\t if($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->where('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\t\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\t\t\t\t\t\t\t\n ->setParameter('par6', $roomCode)\n ->setParameter('par7', $roomId)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // MAXOCCUPANCY, ROOMCODE, ROOMID, KEYWORDS ONLY ENDS\n\t\t \n\t // LEVEL 4 ENDS \n\t \n\t \n\t // LEVEL 5 STARTS \n\t \n\t // HOTELNAME, ROOMNAME, BEDTYPE, CATEGORIES, MAXOCCUPANCY ONLY STARTS\n\t\t\t if($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy);\t\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // HOTELNAME, ROOMNAME, BEDTYPE, CATEGORIES, MAXOCCUPANCY ONLY ENDS\n\t\t\n\t\t// HOTELNAME, ROOMNAME, BEDTYPE, CATEGORIES, ROOMCODE ONLY STARTS\n\t\t\t if($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode);\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // HOTELNAME, ROOMNAME, BEDTYPE, CATEGORIES, ROOMCODE ONLY ENDS\n\t\t\n\t\t// HOTELNAME, ROOMNAME, BEDTYPE, CATEGORIES, ROOMID ONLY STARTS\n\t\t\t if($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par7', $roomId);\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // HOTELNAME, ROOMNAME, BEDTYPE, CATEGORIES, ROOMID ONLY ENDS\n\t\t\n\t\t// HOTELNAME, ROOMNAME, BEDTYPE, CATEGORIES, KEYWORDS ONLY STARTS\n\t\t\t if($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // HOTELNAME, ROOMNAME, BEDTYPE, CATEGORIES, KEYWORDS ONLY ENDS\n\t \n\t \n\t\t// HOTELNAME, ROOMNAME, BEDTYPE, CATEGORIES, KEYWORDS ONLY STARTS\n\t\t\t if($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t//->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t//->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t//->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t//->setParameter('par5', $maxOccupancy);\n\t\t\t\t\t\t\t//->setParameter('par6', $roomCode);\n\t\t\t\t\t\t\t//->setParameter('par7', $roomId);\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // HOTELNAME, ROOMNAME, BEDTYPE, CATEGORIES, KEYWORDS ONLY ENDS\t\t\n\t\t\n\t \n\t // LEVEL 5 ENDS \n\t \n\t \n\t // LEVEL 6 STARTS \n\t\t // FOR ALL PARAMATERS EXCEPT ROOMID AND KEYWORDS STARTS\n\t\t\t\tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t\t&& $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==0)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode);\t\t\t\t\t\t\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT ROOMID AND KEYWORDS ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT ROOMCODE AND KEYWORDS STARTS\n\t\t\t\tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t\t&& $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId);\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT ROOMCODE AND KEYWORDS ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT MAXOCCUPANCY AND KEYWORDS STARTS\n\t\t\t\tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t\t&& $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId);\t\t\t\t\t\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT MAXOCCUPANCY AND KEYWORDS ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT ROOMCAREGORY AND KEYWORDS STARTS\n\t\t\t\tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t\t&& $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId);\t\t\t\t\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT ROOMCATEGORY AND KEYWORDS ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT BEDTYPE AND KEYWORDS STARTS\n\t\t\t\tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t\t\t\t&& $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId);\t\t\t\t\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT BEDTYPE AND KEYWORDS ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT ROOMNAME AND KEYWORDS STARTS\n\t\t\t\tif($hotelCheckbox==1 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t\t&& $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId);\t\t\t\t\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT ROOMNAME AND KEYWORDS ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT HOTELNAME AND KEYWORDS STARTS\n\t\t\t\tif($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t\t&& $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId);\t\t\t\t\t\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT HOTELNAME AND KEYWORDS ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT ROOMID AND ROOMCODE STARTS\n\t\t\t\tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t\t&& $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT ROOMID AND ROOMCODE ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT ROOMID AND MAXOCCUPANCY STARTS\n\t\t\t\tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t\t&& $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT ROOMID AND MAXOCCUPANCY ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT ROOMID AND ROOMCATEGORY STARTS\n\t\t\t\tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t\t&& $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT ROOMID AND ROOMCATEGORY ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT ROOMID AND BEDTYPE STARTS\n\t\t\t\tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t\t\t\t&& $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT ROOMID AND BEDTYPE ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT ROOMID AND ROOMNAME STARTS\n\t\t\t\tif($hotelCheckbox==1 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t\t&& $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT ROOMID AND ROOMNAME ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT ROOMID AND HOTELNAME STARTS\n\t\t\t\tif($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t\t&& $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT ROOMID AND HOTELNAME ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT ROOMCODE AND MAXOCCUPANCY STARTS\n\t\t\t\tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t\t&& $maxOccupancyCheckbox==0 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT ROOMCODE AND MAXOCCUPANCY ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT ROOMCODE AND ROOMCATEGORY STARTS\n\t\t\t\tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t\t&& $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT ROOMCODE AND ROOMCATEGORY ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT ROOMCODE AND BEDTYPE STARTS\n\t\t\t\tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t\t\t\t&& $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT ROOMCODE AND BEDTYPE ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT ROOMCODE AND ROOMNAME STARTS\n\t\t\t\tif($hotelCheckbox==1 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t\t&& $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT ROOMCODE AND ROOMNAME ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT ROOMCODE AND HOTELNAME STARTS\n\t\t\t\tif($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t\t&& $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t\t\t\t\t \n\t\t\t\t\t\t\t->where('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT ROOMCODE AND HOTELNAME ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT MAXOCCUPANCY AND ROOMCATEGORIES STARTS\n\t\t\t\tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t\t&& $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT MAXOCCUPANCY AND ROOMCATEGORIES ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT MAXOCCUPANCY AND BEDTYPE STARTS\n\t\t\t\tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t\t\t\t&& $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t ->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT MAXOCCUPANCY AND BEDTYPE ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT MAXOCCUPANCY AND ROOMNAME STARTS\n\t\t\t\tif($hotelCheckbox==1 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t\t&& $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT MAXOCCUPANCY AND ROOMNAME ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT MAXOCCUPANCY AND HOTELNAME STARTS \n\t\t\t\tif($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t\t&& $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT MAXOCCUPANCY AND HOTELNAME ENDS\n\t\t\t\n\t\t // FOR ALL PARAMATERS EXCEPT ROOMCATEGORIES AND BEDTYPE STARTS \n\t\t\t\tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==0\n\t\t\t\t&& $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2') \t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT ROOMCATEGORIES AND BEDTYPE ENDS \n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT ROOMCATEGORIES AND ROOMNAME STARTS \n\t\t\t\tif($hotelCheckbox==1 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t\t&& $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT ROOMCATEGORIES AND ROOMNAME ENDS \n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT ROOMCATEGORIES AND HOTELNAME STARTS \n\t\t\t\tif($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t\t&& $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->where('m.name = :par2') \n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT ROOMCATEGORIES AND HOTELNAME ENDS \n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT BEDTYPE AND ROOMNAME STARTS \n\t\t\t\tif($hotelCheckbox==1 && $roomNameCheckbox==0 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t\t\t\t&& $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT BEDTYPE AND ROOMNAME ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT BEDTYPE AND HOTELNAME STARTS \n\t\t\t\tif($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t\t\t\t&& $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.name = :par2') \n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT BEDTYPE AND HOTELNAME ENDS\n\t\t\t\n\t\t\t// FOR ALL PARAMATERS EXCEPT ROOMNAME AND HOTELNAME STARTS \n\t\t\t\tif($hotelCheckbox==0 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t\t&& $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t\t{ \t \n\t\t\t\t$queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t\t$queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t->where('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t\t$result = $queryString->getQuery()->getResult();\t\n\t\t\t\tgoto exitRoutrine; \n\t\t\t\t} \n\t\t // FOR ALL PARAMATERS EXCEPT ROOMNAME AND HOTELNAME ENDS\t\t\n\t // LEVEL 6 ENDS \n\t \t \n\t // LEVEL 7 STARTS \n\t\t\t// FOR ALL THE PARAMATERS EXCEPT KEYWORDS STARTS \n \tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==0)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId);\t\t\t\t\t\t\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // FOR ALL THE PARAMATERS EXCEPT KEYWORDS ENDS\n\t\t\t\n\t\t\t// FOR ALL THE PARAMATERS EXCEPT ROOMID STARTS \n \tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==0 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // FOR ALL THE PARAMATERS EXCEPT ROOMID ENDS\n\t\t\t\t \n\t\t\t// FOR ALL THE PARAMATERS EXCEPT ROOMCODE STARTS \n \tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==0 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // FOR ALL THE PARAMATERS EXCEPT ROOMCODE ENDS\n\t\t\t\n\t\t\t// FOR ALL THE PARAMATERS EXCEPT MAXOCCUPANCY STARTS \n \tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==0 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // FOR ALL THE PARAMATERS EXCEPT MAXOCCUPANCY ENDS\n\t\t\t\n\t\t\t// FOR ALL THE PARAMATERS EXCEPT ROOMCATEGORY STARTS \n \tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==0\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // FOR ALL THE PARAMATERS EXCEPT ROOMCATEGORY ENDS\n\t\t\t\n\t\t\t// FOR ALL THE PARAMATERS EXCEPT BEDTYPE STARTS \n \tif($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==0 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // FOR ALL THE PARAMATERS EXCEPT BEDTYPE ENDS\n\t\t\t\n\t\t\t// FOR ALL THE PARAMATERS EXCEPT ROOMNAME STARTS \n \tif($hotelCheckbox==1 && $roomNameCheckbox==0 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \t\t\t\t\t\t\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // FOR ALL THE PARAMATERS EXCEPT ROOMNAME ENDS\n\t\t\t\n\t\t\t// FOR ALL THE PARAMATERS EXCEPT HOTELNAME STARTS \n \tif($hotelCheckbox==0 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t // FOR ALL THE PARAMATERS EXCEPT HOTELNAME ENDS\n\t\t\t\n\t // LEVEL 7 ENDS \n \n\t \n\t // LEVEL 8 STARTS \n\t // FOR ALL PARAMATERS SELECTED BY THE USER STARTS\n\t\t\t if($hotelCheckbox==1 && $roomNameCheckbox==1 && $bedTypeCheckbox==1 && $roomCategoriesCheckbox==1\n\t\t\t && $maxOccupancyCheckbox==1 && $roomCodeCheckbox==1 && $roomIdCheckbox==1 && $roomDescriptionCheckbox==1)\n\t\t\t { \t \n\t\t\t $queryString = $this->getDefaultEntityManager()->createQueryBuilder(); \t\n\t\t\t $queryString->select('m.id,m.code,m.name,m.description,m.bedType,m.maxOccupancy,m.category,m.featured,m.status')\n\t\t\t\t\t\t\t->from('ContentFilter\\Entity\\PhoenixContentFilter', 'm')\n\t\t\t\t\t\t\t->where('m.property = :par1') \n\t\t\t\t\t\t\t->andwhere('m.name = :par2')\n\t\t\t\t\t\t\t->andwhere('m.bedType = :par3')\n\t\t\t\t\t\t\t->andwhere('m.category = :par4')\n\t\t\t\t\t\t\t->andwhere('m.maxOccupancy = :par5')\n\t\t\t\t\t\t\t->andwhere('m.code = :par6')\n\t\t\t\t\t\t\t->andwhere('m.id = :par7')\n\t\t\t\t\t\t\t->andwhere('m.description like :par8')\n\t\t\t\t\t\t\t->setParameter('par1', $hotel)\n\t\t\t\t\t\t\t->setParameter('par2', $roomName)\n\t\t\t\t\t\t\t->setParameter('par3', $bedType)\n\t\t\t\t\t\t\t->setParameter('par4', $roomCategories)\n\t\t\t\t\t\t\t->setParameter('par5', $maxOccupancy)\n\t\t\t\t\t\t\t->setParameter('par6', $roomCode)\n\t\t\t\t\t\t\t->setParameter('par7', $roomId)\t\t\t\t\t\n\t\t\t\t\t\t\t->setParameter('par8', '%'.$roomDescription.'%');\t\t\t\n\t\t\t $result = $queryString->getQuery()->getResult();\t\n\t\t\t goto exitRoutrine; \n\t\t\t } \n\t\t\t// FOR ALL PARAMATERS SELECTED BY THE USER STARTS\n\t // LEVEL 8 ENDS \n\t \n\t exitRoutrine:\t\t\n\t return $result;\t\n\t// QUERY FIRES BASED ON USER SELECTIONS ENDS \n\t\t\t\n\t\t\n\t\t \n\t}", "title": "" }, { "docid": "5e26ce303936ed40f9bac8b208f12a56", "score": "0.49906728", "text": "function getFathers($id) {\r\n\t\t$fathers = array();\r\n\t\r\n\t\t$m = $this->getMother( $id);\r\n\t\t$f = $this->getFather( $id);\r\n\t\t$s = $this->getSpouses( $id);\r\n\r\n\t\tif ( $f == false && $m == false && count( $s) == 0) {\r\n\t\t\treturn $fathers;\r\n\t\t}\r\n\r\n\t\tif ( $f != false) {\r\n\t\t\t$fathers[] = $f;\r\n\t\t\tif ( @!in_array( $f, $fathers)) {\r\n\t\t\t\t$fathers[] = $f;\r\n\t\t\t}\r\n\t\t\t$x = $this->getFathers( $f);\r\n\t\t\tif ( count( $x) > 0) {\r\n\t\t\t\tforeach( $x as $k => $v) {\r\n\t\t\t\t\tif ( @!in_array( $v, $fathers))\r\n\t\t\t\t\t$fathers[] = $v;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif ( $m != false) {\r\n\t\t\t$x = $this->getFathers( $m);\r\n\t\t\tforeach( $x as $k => $v) {\r\n\t\t\t\tif ( @!in_array( $v, $fathers)) {\r\n\t\t\t\t\t$fathers[] = $v;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$x = $this->getSpouses( $m);\r\n\t\t\tif ( count( $x) > 0) {\r\n\t\t\t\tforeach( $x as $k => $v) {\r\n\t\t\t\t\tif ( @!in_array( $v, $fathers)) {\r\n\t\t\t\t\t\t$fathers[] = $v;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$y = $this->getFathers( $v);\r\n\t\t\t\t\tif ( count( $y) > 0) {\r\n\t\t\t\t\t\tforeach( $y as $k2 => $v2) {\r\n\t\t\t\t\t\t\tif ( @!in_array( $v2, $fathers)) {\r\n\t\t\t\t\t\t\t\t$fathers[] = $v2;\r\n\t\t\t\t\t\t\t}\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}\r\n\t\tif ( $s != false) {\r\n\t\t\tforeach ( $s as $k1 => $v1) {\r\n\t\t\t\t$y = $this->getIndexFather( $v1);\r\n\t\t\t\tif ( $y != false) {\r\n\t\t\t\t\tif ( @!in_array( $y, $fathers)) {\r\n\t\t\t\t\t\t$fathers[] = $y;\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 $fathers;\r\n\t}", "title": "" }, { "docid": "0505bf302896ca3c8154db56caff6fd7", "score": "0.49822322", "text": "function get_neighborhoods() {\n\t\t\n\t\t$borough = isset($_REQUEST['borough']) ? htmlentities($_REQUEST['borough']) : null;\n\t\t$city = isset($_REQUEST['city']) ? htmlentities($_REQUEST['city']) : null;\n\t\t$state = isset($_REQUEST['state']) ? htmlentities($_REQUEST['state']) : null;\n\t\tif (($borough == null) && ($city == null) && ($state == null)) return;\n\t\t\n\t\t$query = \"\n\t\t\tSELECT\n\t\t\t\t id\n\t\t\t\t, bounds\n\t\t\t\t, borough\n\t\t\t\t, city\n\t\t\t\t, ST_AsGeoJSON(geom) as geojson\n\t\t\t\t, neighbrhd\n\t\t\t\t, state\n\t\t\tFROM \tpublic.neighborhoods\n\t\t\tWHERE \t(1 = 1)\n\t\t\tAND \t(neighbrhd IS NOT NULL)\n\t\t\";\n\t\tif ($borough != null) $query .= \" AND (borough ILIKE '$borough')\";\n\t\tif ($city != null) $query .= \" AND (city ILIKE '$city')\";\n\t\tif ($state != null) $query .= \" AND (state ILIKE '$state')\";\n\t\t$query .= ' ORDER BY neighbrhd ASC';\n\t\t\n\t\t$conn = get_postgresql_db_connection();\n\n\t\t$result = pg_query($conn, $query)\n\t\t\tor die ('Error: ' + pg_last_error($conn) + '\\n');\n\t\t\n\t\t$neighborhoods = array();\n\t\twhile ($row = pg_fetch_row($result)) {\n\t\t\t$neighborhoods[] = array(\n\t\t\t\t'Id' => $row[0],\n\t\t\t\t'Bounds' => $row[1],\n\t\t\t\t'Borough' => $row[2],\n\t\t\t\t'City' => $row[3],\n\t\t\t\t'GeoJSON' => $row[4],\n\t\t\t\t'Name' => $row[5],\n\t\t\t\t'State' => $row[6]\n\t\t\t);\n\t\t}\n\t\t\n\t\t// Close connection to postgreSQL DB\n\t\tpg_close($conn);\n\t\t\n\t\techo json_encode($neighborhoods);\t\n\t}", "title": "" }, { "docid": "c192b4fb8fd856023fafc42faa4f073e", "score": "0.496344", "text": "function getGadgets($status) {\n $gadgets = $this->find('all', array('conditions' => array('Gadget.status =' => $status)));\n return $gadgets; \n\t}", "title": "" }, { "docid": "f00954b983cea635fc6908d4566f3cab", "score": "0.4962149", "text": "function GB_garage($what)\n\t{\n\n\t\t$return = array();\n\t\t$n = 0;\n\t\t$return['0']['vehicle'] = $n;\n\t\t$return['0']['id'] = 0 ;\n\t\t$html = '';\n\n\t\t$GBSQL = \"SELECT _obj FROM objects WHERE _set = 'itemName' AND _val = 'garage_finished'\" ;\n\t\t$result = $this->_GBUser->query($GBSQL);\n\t\t$Objectbuildings = $result->fetchAll();\n\t\tif ($result->numRows() == 0)\n\t\t{\n\t\t\t$html .= 'No garage found on the farm<br>';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$html .= '<br><b>Garage found on farm</b> <br>';\n\t\t\t// Get the data from this object.\n\t\t\t$GBSQL = \"SELECT _set,_val FROM objects WHERE _obj = '\". $Objectbuildings['0']['_obj']. \"'\" ;\n\t\t\t$query = $this->_GBUser->query($GBSQL);\n\t\t\twhile ($entry = $query->fetch(SQLITE_ASSOC))\n\t\t\t{\n\t\t\t\t$TargetObject[$entry['_set']] = $entry['_val'] ;\n\t\t\t\tif($entry['_set'] == 'contents') {$TargetObject[$entry['_set']] = unserialize($entry['_val']) ;}\n\t\t\t\tif($entry['_set'] == 'expansionParts') {$TargetObject[$entry['_set']] = unserialize($entry['_val']) ;}\n\t\t\t\tif($entry['_set'] == 'position') {$TargetObject[$entry['_set']] = unserialize($entry['_val']) ;}\n\t\t\t}\n\t\t\tif(!array_key_exists('isFullyBuilt', $TargetObject)){$TargetObject['isFullyBuilt'] = \"N\";}\n\t\t\tif( $TargetObject['isFullyBuilt'] == \"1\" )\n\t\t\t{\n\t\t\t\t$return['0']['id'] = $TargetObject['id'] ;\n\t\t\t\tforeach($TargetObject['contents'] as $vehicle )\n\t\t\t\t{\n\t\t\t\t\t$n++;\n\t\t\t\t\t$return['0']['vehicle'] = $n;\n\t\t\t\t\t$Vneedmax = 32;\n\t\t\t\t\tif($vehicle['numParts'] >= $Vneedmax)\n\t\t\t\t\t{\n\t\t\t\t\t\t$html .= 'Garage contains ' . $vehicle['itemCode'] . ' fully upgraded ('. $vehicle['numParts'] .' parts)<br>';\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$html .= 'Garage contains ' . $vehicle['itemCode'] . ' With ' . $vehicle['numParts'] . ' vehicle parts. Need ' . ($Vneedmax-$vehicle['numParts']) . ' more parts<br>';\n\t\t\t\t\t\t$return[$n] = array('itemCode'=> $vehicle['itemCode'], 'numParts' => $vehicle['numParts'] , 'need' => ($Vneedmax-$vehicle['numParts']));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$html .= 'No garage is not fully build<br>';\n\t\t\t\t$return['vehicle'] = 0;\n\t\t\t}\n\n\t\t}\n\t\tif ($what == 'html' )\n\t\t{\n\t\t\treturn $html;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $return;\n\t\t}\n\n\t}", "title": "" }, { "docid": "af5d1e79cfcdde4225613319708b5001", "score": "0.49616307", "text": "public function getList(BuildingRequest $request)\n {\n $zoneId = $request->input(\"zoneId\");\n $search = $request->input(\"search\");\n\n $where = null;\n if(!empty($zoneId)) {\n $where[] = ['zone_id', '=', $zoneId];\n }\n if(!empty($search)) {\n $where[] = ['name', 'like', \"%\". $search . \"%\"];\n }\n $data = $this->building->page($where);\n\n return $this->response->send($data);\n }", "title": "" }, { "docid": "a7c7f0e33632bb031ddb52ca3cc6c864", "score": "0.49613005", "text": "public function findAllBoons()\n {\n // connects to DB\n $pdo = new PDO('mysql:host=localhost;dbname=hades', 'Nico', 'Ereul9Aeng');\n\n // SQL query\n $sql = \"SELECT *\n FROM `boons` \n ORDER BY `boons`.`name` ASC\n \";\n // execute the query and set the result as a PDOStatement object\n $pdoStatement = $pdo->query($sql);\n\n // get results in an array and send them\n $boons = $pdoStatement->fetchAll(PDO::FETCH_CLASS, 'Boon');\n\n return $boons;\n }", "title": "" }, { "docid": "6652746fabe679f583e07c9313c50757", "score": "0.49604106", "text": "public function gestiones(){\n return $this->belongsToMany('App\\Building');\n }", "title": "" }, { "docid": "de03e19dc753b993a8edba755d1a93f2", "score": "0.49517545", "text": "public function buildRelations()\n\t{\n $this->addRelation('Dyplomy', 'Dyplomy', RelationMap::ONE_TO_MANY, array('id' => 'pupil', ), null, null);\n $this->addRelation('Grupy', 'Grupy', RelationMap::ONE_TO_MANY, array('id' => 'pupil', ), null, null);\n $this->addRelation('Lekcje', 'Lekcje', RelationMap::ONE_TO_MANY, array('id' => 'nauczyciel_id', ), null, null);\n $this->addRelation('Obecnosci', 'Obecnosci', RelationMap::ONE_TO_MANY, array('id' => 'pupil', ), null, null);\n $this->addRelation('OcenyRelatedByPupil', 'Oceny', RelationMap::ONE_TO_MANY, array('id' => 'pupil', ), null, null);\n $this->addRelation('OcenyRelatedByNauczycielId', 'Oceny', RelationMap::ONE_TO_MANY, array('id' => 'nauczyciel_id', ), null, null);\n $this->addRelation('Planlekcji', 'Planlekcji', RelationMap::ONE_TO_MANY, array('id' => 'nauczyciel_id', ), null, null);\n $this->addRelation('Usprawiedliwienie', 'Usprawiedliwienie', RelationMap::ONE_TO_MANY, array('id' => 'uzytkownik_id', ), null, null);\n $this->addRelation('Uwagi', 'Uwagi', RelationMap::ONE_TO_MANY, array('id' => 'pupil', ), null, null);\n\t}", "title": "" }, { "docid": "801408ca45a7324811b6cf565f85c61a", "score": "0.49507818", "text": "public function run()\n {\n $buildings = json_decode('[\n {\n \"name\": \"1\",\n \"latitude\": \"21.91358\",\n \"longitude\": \"-102.3139033\"\n },\n {\n \"name\": \"1A\",\n \"latitude\": \"21.9126107\",\n \"longitude\": \"-102.3124888\"\n },\n {\n \"name\": \"1B\",\n \"latitude\": \"21.9124566\",\n \"longitude\": \"-102.31507\"\n },\n {\n \"name\": \"2\",\n \"latitude\": \"21.9140716\",\n \"longitude\": \"-102.314275\"\n },\n {\n \"name\": \"3\",\n \"latitude\": \"21.9142333\",\n \"longitude\": \"-102.3140749\"\n },\n {\n \"name\": \"4\",\n \"latitude\": \"21.9146816\",\n \"longitude\": \"-102.3139016\"\n },\n {\n \"name\": \"5\",\n \"latitude\": \"21.9147016\",\n \"longitude\": \"-102.3140783\"\n },\n {\n \"name\": \"6\",\n \"latitude\": \"21.9156933\",\n \"longitude\": \"-102.3141033\"\n },\n {\n \"name\": \"6A\",\n \"latitude\": \"21.9151683\",\n \"longitude\": \"-102.3143316\"\n },\n {\n \"name\": \"7\",\n \"latitude\": \"21.915115\",\n \"longitude\": \"-102.3151983\"\n },\n {\n \"name\": \"8\",\n \"latitude\": \"21.9155966\",\n \"longitude\": \"-102.3143783\"\n },\n {\n \"name\": \"8A\",\n \"latitude\": \"21.9157883\",\n \"longitude\": \"-102.3140883\"\n },\n {\n \"name\": \"9\",\n \"latitude\": \"21.914295\",\n \"longitude\": \"-102.3145383\"\n },\n {\n \"name\": \"10\",\n \"latitude\": \"21.9145483\",\n \"longitude\": \"-102.3149566\"\n },\n {\n \"name\": \"11\",\n \"latitude\": \"21.9146633\",\n \"longitude\": \"-102.3143666\"\n },\n {\n \"name\": \"12\",\n \"latitude\": \"21.9153833\",\n \"longitude\": \"-102.3149833\"\n },\n {\n \"name\": \"13\",\n \"latitude\": \"21.91554\",\n \"longitude\": \"-102.3144899\"\n },\n {\n \"name\": \"14\",\n \"latitude\": \"21.915975\",\n \"longitude\": \"-102.3151716\"\n },\n {\n \"name\": \"15\",\n \"latitude\": \"21.9151399\",\n \"longitude\": \"-102.3158983\"\n },\n {\n \"name\": \"16\",\n \"latitude\": \"21.91554\",\n \"longitude\": \"-102.3155566\"\n },\n {\n \"name\": \"17\",\n \"latitude\": \"21.9158616\",\n \"longitude\": \"-102.3155683\"\n },\n {\n \"name\": \"18\",\n \"latitude\": \"21.9148366\",\n \"longitude\": \"-102.3156216\"\n },\n {\n \"name\": \"19\",\n \"latitude\": \"21.9152283\",\n \"longitude\": \"-102.3159433\"\n },\n {\n \"name\": \"20\",\n \"latitude\": \"21.9156266\",\n \"longitude\": \"-102.3164433\"\n },\n {\n \"name\": \"21\",\n \"latitude\": \"21.9156733\",\n \"longitude\": \"-102.3157866283\"\n },\n {\n \"name\": \"22\",\n \"latitude\": \"21.9157566\",\n \"longitude\": \"-102.3166016\"\n },\n {\n \"name\": \"24\",\n \"latitude\": \"21.9152216\",\n \"longitude\": \"-102.3169\"\n },\n {\n \"name\": \"25\",\n \"latitude\": \"21.9154416\",\n \"longitude\": \"-102.3168766\"\n },\n {\n \"name\": \"26\",\n \"latitude\": \"21.91519\",\n \"longitude\": \"-102.3171833\"\n },\n {\n \"name\": \"27\",\n \"latitude\": \"21.9151933\",\n \"longitude\": \"-102.31709\"\n },\n {\n \"name\": \"28\",\n \"latitude\": \"21.915075\",\n \"longitude\": \"-102.3170333\"\n },\n {\n \"name\": \"29\",\n \"latitude\": \"21.9148849\",\n \"longitude\": \"-102.3173283\"\n },\n {\n \"name\": \"30\",\n \"latitude\": \"21.9143649\",\n \"longitude\": \"-102.3167699\"\n },\n {\n \"name\": \"31\",\n \"latitude\": \"21.9141483\",\n \"longitude\": \"-102.3165733\"\n },\n {\n \"name\": \"32\",\n \"latitude\": \"21.9155416\",\n \"longitude\": \"-102.3168266\"\n },\n {\n \"name\": \"33\",\n \"latitude\": \"21.914645\",\n \"longitude\": \"-102.3177099\"\n },\n {\n \"name\": \"34\",\n \"latitude\": \"21.9154816\",\n \"longitude\": \"-102.3176933\"\n },\n {\n \"name\": \"35\",\n \"latitude\": \"21.9149666\",\n \"longitude\": \"-102.3173149\"\n },\n {\n \"name\": \"36\",\n \"latitude\": \"21.9147716\",\n \"longitude\": \"-102.3173016\"\n },\n {\n \"name\": \"37\",\n \"latitude\": \"21.9142299\",\n \"longitude\": \"-102.3171266\"\n },\n {\n \"name\": \"38\",\n \"latitude\": \"21.9137349\",\n \"longitude\": \"-102.31724\"\n },\n {\n \"name\": \"39\",\n \"latitude\": \"21.9136716\",\n \"longitude\": \"-102.3162666\"\n },\n {\n \"name\": \"40\",\n \"latitude\": \"21.9152216\",\n \"longitude\": \"-102.31779\"\n },\n {\n \"name\": \"42\",\n \"latitude\": \"21.9151749\",\n \"longitude\": \"-102.317915\"\n },\n {\n \"name\": \"43\",\n \"latitude\": \"21.9145766\",\n \"longitude\": \"-102.3179083\"\n },\n {\n \"name\": \"44\",\n \"latitude\": \"21.9140466\",\n \"longitude\": \"-102.316825\"\n },\n {\n \"name\": \"45\",\n \"latitude\": \"21.9144716\",\n \"longitude\": \"-102.3177066\"\n },\n {\n \"name\": \"46\",\n \"latitude\": \"21.9137649\",\n \"longitude\": \"-102.3173099\"\n },\n {\n \"name\": \"47\",\n \"latitude\": \"21.9132533\",\n \"longitude\": \"-102.317395\"\n },\n {\n \"name\": \"48\",\n \"latitude\": \"21.9134166\",\n \"longitude\": \"-102.3173483\"\n },\n {\n \"name\": \"49\",\n \"latitude\": \"21.9131116\",\n \"longitude\": \"-102.3173\"\n },\n {\n \"name\": \"50\",\n \"latitude\": \"21.9129983\",\n \"longitude\": \"-102.3174016\"\n },\n {\n \"name\": \"51\",\n \"latitude\": \"21.9128516\",\n \"longitude\": \"-102.317235\"\n },\n {\n \"name\": \"52\",\n \"latitude\": \"21.9130983\",\n \"longitude\": \"-102.316935\"\n },\n {\n \"name\": \"53\",\n \"latitude\": \"21.9134266\",\n \"longitude\": \"-102.316375\"\n },\n {\n \"name\": \"54\",\n \"latitude\": \"21.9121133\",\n \"longitude\": \"-102.3153466\"\n },\n {\n \"name\": \"55\",\n \"latitude\": \"21.9135183\",\n \"longitude\": \"-102.3157933\"\n },\n {\n \"name\": \"56\",\n \"latitude\": \"21.9128416\",\n \"longitude\": \"-102.3154383\"\n },\n {\n \"name\": \"57\",\n \"latitude\": \"21.91259\",\n \"longitude\": \"-102.31646\"\n },\n {\n \"name\": \"58\",\n \"latitude\": \"21.912875\",\n \"longitude\": \"-102.3165816\"\n },\n {\n \"name\": \"59\",\n \"latitude\": \"21.9125616\",\n \"longitude\": \"-102.3169933\"\n },\n {\n \"name\": \"62\",\n \"latitude\": \"21.912305\",\n \"longitude\": \"-102.3147666\"\n },\n {\n \"name\": \"biblioteca\",\n \"latitude\": \"21.9128266\",\n \"longitude\": \"-102.3144583\"\n },\n {\n \"name\": \"221 (polivalente)\",\n \"latitude\": \"21.9115338\",\n \"longitude\": \"-102.3125019\"\n },\n {\n \"name\": \"214(DAFI)\",\n \"latitude\": \"21.9115917\",\n \"longitude\": \"-102.3141417\"\n },\n {\n \"name\": \"211 (CAADI)\",\n \"latitude\": \"21.9113865\",\n \"longitude\": \"-102.3142735\"\n },\n {\n \"name\": \"205\",\n \"latitude\": \"21.9114577\",\n \"longitude\": \"-102.3152088\"\n },\n {\n \"name\": \"209 (Alberca)\",\n \"latitude\": \"21.9114577\",\n \"longitude\": \"-102.3152088\"\n },\n {\n \"name\": \"TV UAA (206)\",\n \"latitude\": \"21.9111139\",\n \"longitude\": \"-102.3150553\"\n },\n {\n \"name\": \"207\",\n \"latitude\": \"21.9103253\",\n \"longitude\": \"-102.3153762\"\n },\n {\n \"name\": \"204-b\",\n \"latitude\": \"21.9103999\",\n \"longitude\": \"-102.3160186\"\n },\n {\n \"name\": \"204\",\n \"latitude\": \"21.910542\",\n \"longitude\": \"-102.3162775\"\n },\n {\n \"name\": \"203\",\n \"latitude\": \"21.9107219\",\n \"longitude\": \"-102.3165182\"\n },\n {\n \"name\": \"202\",\n \"latitude\": \"21.911038\",\n \"longitude\": \"-102.3162444\"\n },\n {\n \"name\": \"213\",\n \"latitude\": \"21.9110195\",\n \"longitude\": \"-102.3144851\"\n },\n {\n \"name\": \"212\",\n \"latitude\": \"21.9108106\",\n \"longitude\": \"-102.3144992\"\n },\n {\n \"name\": \"Cancha\",\n \"latitude\": \"21.9112805\",\n \"longitude\": \"-102.3143876\"\n },\n {\n \"name\": \"222\",\n \"latitude\": \"21.9114947\",\n \"longitude\": \"-102.312551\"\n },\n {\n \"name\": \"223\",\n \"latitude\": \"21.9110784\",\n \"longitude\": \"-102.3123403\"\n },\n {\n \"name\": \"Salon Usos Multiples (219)\",\n \"latitude\": \"21.9106818\",\n \"longitude\": \"-102.3125488\"\n }\n ]',true);\n\n DB::table('buildings')->insert($buildings);\n }", "title": "" }, { "docid": "8f70969ef0bcd19c32bec40374218504", "score": "0.49443802", "text": "public function index()\n {\n $buildings = Auth::user()->user_buildings()->with(['building','location'])->get();\n\n return view('buildings.index')->withBuildings($buildings);\n\n }", "title": "" }, { "docid": "2ef6782a20388517be1a5ce5ea6f04d7", "score": "0.49443525", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $buildings = $em->getRepository('AppBundle:Building')->findAll();\n\n return $this->render('building/index.html.twig', array(\n 'buildings' => $buildings,\n ));\n }", "title": "" }, { "docid": "9d78452c7869542107eb4019da883695", "score": "0.49306908", "text": "function Builders()\n\t\t{\n\t\t\tglobal $wpdb;\n\t\t\t$builders = $wpdb->get_results(\"SELECT *FROM {$wpdb->prefix}bd_builders\");\n\t\t\treturn $builders;\n\t\t}", "title": "" }, { "docid": "5c5de34920283bf940576d6d807b4c6a", "score": "0.49203718", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $typeOfFloorings = $em->getRepository('BrooterAdminBundle:TypeOfFlooring')->findAll();\n\n return $this->render('typeofflooring/index.html.twig', array(\n 'typeOfFloorings' => $typeOfFloorings,\n ));\n }", "title": "" }, { "docid": "9edb603df75bb20442b5ae1deb3ef2f9", "score": "0.49072924", "text": "function getFathersRel( $id) {\r\n\t\t$fathers = array( );\r\n\t\t\r\n\t\t\r\n\t\t$m = $this->getMother( $id);\r\n\t\t$f = $this->getFather( $id);\r\n\t\t$s = $this->getSpouses( $id);\r\n\r\n\t\tif ( $f == false && $m == false && count( $s) == 0) {\r\n\t\t\treturn $fathers;\r\n\t\t}\r\n\r\n\t\tif ( $f != false) {\r\n\t\t\tif ( @!in_array( $f, $fathers['id'])) {\r\n\t\t\t\t$fathers['id'][] = $f;\r\n\t\t\t\t$fathers['par'][] = $id;\r\n\t\t\t\t$fathers['debug'][] = 'Ffat1';\r\n\t\t\t}\r\n\t\t\t$xm = $this->getFathersRel($f);\r\n\t\t\t$x = $xm['id'];\r\n\t\t\tif ( count( $x) > 0) {\r\n\t\t\t\tfor ( $k = 0; $k < count( $x); $k++) {\r\n\t\t\t\t\tif ( @!in_array( $x[$k], $fathers['id'])) {\r\n\t\t\t\t\t\t$fathers['id'][] = $x[$k];\r\n\t\t\t\t\t\t$fathers['par'][] = $xm['par'][$k];\r\n\t\t\t\t\t\t$fathers['debug'][] = 'Ffat2';\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\tif ( $m != false) {\r\n\t\t\t$xm = $this->getFathersRel( $m);\r\n\t\t\t$x = $xm['id'];\r\n\r\n\t\t\tif ( count( $x) > 0) {\r\n\t\t\t\t\t/* fix bug\r\n\t\t\t\t\t * Incorrect: Maternal grandfather >> Son-in-law >> Grandson.\r\n\t\t\t\t\t * Correct: Maternal grandfather >> Daughter >> Grandson.\r\n \t\t\t\t\t*/\r\n\t\t\t\t$fathers['id'][] = $f; // Add father(as mother) to tree!\r\n\t\t\t\t$fathers['par'][] = $f;\r\n\t\t\t\t\r\n\t\t\t\tfor ( $k = 0; $k < count( $x); $k++) {\r\n\t\t\t\t\tif ( @!in_array( $x[$k], $fathers['id'])) {\r\n\t\t\t\t\t\t$fathers['id'][] = $x[$k];\r\n\t\t\t\t\t\t$fathers['par'][] = $xm['par'][$k];\r\n\t\t\t\t\t\t$fathers['debug'][] = 'Fmot1';\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t$x = $this->getSpouses( $m);\r\n\t\t\tif ( count( $x) > 0) {\r\n\t\t\t\tforeach( $x as $k => $v) {\r\n\t\t\t\t\tif ( @!in_array( $v, $fathers)) {\r\n\t\t\t\t\t\t$fathers['id'][] = $v;\r\n\t\t\t\t\t\t$fathers['par'][] = $id;\r\n\t\t\t\t\t\t$fathers['debug'][] = 'Fspo1';\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$ym = $this->getFathersRel( $v);\r\n\t\t\t\t\t$y = $ym['id'];\r\n\t\t\t\t\tif ( count( $y) > 0) {\r\n\t\t\t\t\t\tfor ( $k2 = 0; $k2 < count( $y); $k2++) {\r\n\t\t\t\t\t\t\tif ( @!in_array( $y[$k2], $fathers['id'])) {\r\n\t\t\t\t\t\t\t\t$fathers['id'][] = $y[$k2];\r\n\t\t\t\t\t\t\t\t$fathers['par'][] = $ym['par'][$k2];\r\n\t\t\t\t\t\t\t\t$fathers['debug'][] = 'Fspo2';\r\n\t\t\t\t\t\t\t}\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}\r\n\t\t// This is Father in LAW ! Need on Aunt/Uncle.\r\n\t\t// Why on getMothers this part does not exist ?!\r\n\t\tif ( $s != false) {\r\n\t\t\tforeach ( $s as $k1 => $v1) {\r\n\t\t\t\t$y = $this->getIndexFather( $v1);\r\n\t\t\t\tif ( $y != false) {\r\n\t\t\t\t\tif ( @!in_array( $y, $fathers)) {\r\n\t\t\t\t\t\t$fathers['id'][] = $y;\r\n\t\t\t\t\t\t$fathers['par'][] = $id;\r\n\t\t\t\t\t\t$fathers['debug'][] = 'FspoL';\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\treturn $fathers;\r\n\t}", "title": "" }, { "docid": "ae271c4d7843e7cff0026570506b3367", "score": "0.4900549", "text": "public function getDistinctShelfs($building = null, $floor = null, $room = null, $rows = null)\n {\n $items = $this->createUniqFlatDistinct('storage_parts', 'shelf', 'shelf', true);\n return $items;\n }", "title": "" }, { "docid": "acd301e60a57196b6d66ba578591d96a", "score": "0.48973477", "text": "function AM_farmGold($name,$building,$getFarm, $doHarvestBuilding=false) {\n\tif(isset($building['isFullyBuilt'])) {\n\t\tif($building['isFullyBuilt'] <> 1) {\n\t\t\techo \"You don\\'t have that building (\".$name.\")! \\r\\n\";\n\t\t\treturn false;\n\t\t}\n\t} else {\n\t\techo \"You don\\'t have that building (\".$name.\")! \\r\\n\";\n\t\treturn false;\n\t}\n\t$re = array();\n\t$IDs = array();\n\t$positions = array();\n\t$animalsInBuilding = AM_animalInBuilding($building);\n\t$cInBuilding = 0;\n\t$farm = $getFarm;\n\t$itemName = array();\n\n\tforeach($animalsInBuilding as $animal => $num) {\n\t\t$cInBuilding += $num;\n\t}\n\tif($cInBuilding == 0) return $farm;\n\n\t$saveInBuilding = $cInBuilding;\n\tAddLog2('ToolBox: Moving ' . $cInBuilding . ' Animals to Farm');\n\t$re = AM_farmGold_moveAnimalsToFarm($building, $cInBuilding, $farm);\n\tif($re == false) {\n\t\treturn false;\n\t} else {\n\t\tif(@is_array($re['farm']) && @is_array($re['IDs']) && (@is_array($re['itemName']) && @is_array($re['positions']))) {\n\t\t\t$farm = $re['farm'];\n\t\t\t$IDs = $re['IDs'];\n\t\t\t$itemName = $re['itemName'];\n\t\t\t$positions = $re['positions'];\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}\n\t//harves\n\tAddLog2('ToolBox: Harvesting ' . ($saveInBuilding-1) . ' Animals on Farm');\n\tAM_farmGold_harvestWithoutFirst($IDs, $itemName, $positions);\n\t//move one in\n\n\tAddLog2('ToolBox: Moving ' . ($saveInBuilding - 1) . ' Animals into Building');\n\t$re = AM_farmGold_moveAnimalsToBuilding($building, ($saveInBuilding - 1), $farm, $IDs, $itemName, $positions);\n\tif(@is_array($re)) $farm = $re;\n\telse return false;\n\t//delet first chicken\n\tfor ($x = 0; $x < $saveInBuilding - 1; $x++)\n\t{\n\t\tunset($IDs[$x]);\n\t\tunset($itemName[$x]);\n\t\tunset($positions[$x]);\n\t}\n\t$IDs = array_values($IDs);\n\t//\n\t$itemName = array_values($itemName);\n\t//\n\t$positions = array_values($positions);\n\t//moving rest in\n\tAddLog2('ToolBox: Moving Final Animal into Building');\n\t$re = AM_farmGold_moveAnimalsToBuilding($building, 1, $farm, $IDs, $itemName, $positions);\n\tif(@is_array($re)) $farm = $re;\n\telse return false;\n\n\t//=================================================================\n\t// n0m mod: to skip stables harvesting (if 1 cycle set in FarmGold)\n\tif($doHarvestBuilding){\n\t\tAddLog2('ToolBox: Harvesting Building');\n\t\tDo_Farm_Work(array($building), 'harvest');\n\t}else{\n\t\tAddLog2('ToolBox: SKIPPED Harvesting Building');\n\t}\n\t//=================================================================\n\n\tAM_farmGold_deletIDs();\n\treturn $farm;\n}", "title": "" }, { "docid": "185453b890d3ff1616ce4e21fb6b4303", "score": "0.4890576", "text": "abstract protected function getPartBuilders(): array;", "title": "" }, { "docid": "86bc906ff6d1144b222c46fa708411f4", "score": "0.48899934", "text": "abstract public function getBranches();", "title": "" }, { "docid": "7104158c2361f3d826a110b3ee5e6ba4", "score": "0.48891193", "text": "function neighboursInfo($building_id,$today, $lastweek,$quantity)\n{\n\t//option 1: -compare to numbers of surrounding buildings\n\t//\t\t\t-set var: Quantity = 3 surrounding buildings\n\t//return an 2d array including: building name(string) and energy consumption(float)\n\t$neighbour_list= array();\n\t$neighbour_info = array();\n\t$result = mysql_query(\"SELECT * FROM building_neighbour WHERE building_id = '\".$building_id.\"'\");\n\tif(!$result)\n\t{\n\t\tdie('Invalid query: ' .mysql_error().'<br>');\n\t}\n\twhile($var = mysql_fetch_assoc($result)) \n\t{\n\t\t$id = intval($var['neighbour_id']);\n\t\tarray_push($neighbour_list, $id);\n\t}\n\t$neighbour_list = rand_generator($neighbour_list, $quantity);\n\tfor($z = 0; $z < count($neighbour_list); $z++)\n\t{\n\t\t\n\t\t$bid_info = buildingInfo($neighbour_list[$z],$today, $lastweek);\n\t\t$bid_info = array('name' => $bid_info[0],'energy_usage'=>$bid_info[1]);\n\t\tarray_push($neighbour_info, $bid_info);\n\t\t\n\t}\n\treturn $neighbour_info;\n\t/*\n\t//option 2: compare to the same type buildings\n\telse{}\n\t*/\n\t//return array($neighbour_name, $energy_usage_in_percentage);\n}", "title": "" }, { "docid": "28394c5904f5bf584dad9c35da1258cf", "score": "0.48513356", "text": "public function getBuildingIds()\n {\n return $this->BuildingIds;\n }", "title": "" }, { "docid": "6677f199aea7f7344dbb85e478db0559", "score": "0.48426434", "text": "function getWormholes()\n {\n if ($this->wormholes === null)\n $this->wormholes = \\scanning\\model\\Wormhole::getWormholesByChain($this->id);\n\n return $this->wormholes;\n }", "title": "" }, { "docid": "18de6f0fc8a03b86b3d9d80412ca86f1", "score": "0.48407766", "text": "public function showShojo() {\n $req = $this->db->query('SELECT `id` FROM `manga_collection` WHERE id_genre = 2');\n $collections = [];\n while ($collection = $req->fetch()) {\n // on retourne l'id de la collection dans la class Collection\n $collections[] = new Collection($collection->id);\n }\n return $collections;\n }", "title": "" }, { "docid": "5e8d56b55a96b4d9a1ba16bd42c1a11e", "score": "0.48363262", "text": "public function getRooms()\n {\n return $this->hasMany(Room::className(), ['floorid' => 'floorid']);\n }", "title": "" }, { "docid": "0b3f9af60266e78f0ad931ba88a0d680", "score": "0.4833234", "text": "public function run()\n {\n $lanes = \\App\\Lane::join('floors', 'lanes.floor_id', 'floors.id')\n ->join('blocks', 'floors.block_id', 'blocks.id')\n ->select('lanes.id as lane_id', 'lanes.name as lane_name', 'floors.number as floor_number', 'blocks.name as block_name')\n ->get();\n $rooms = [];\n foreach ($lanes as $lane) {\n if (in_array($lane->block_name, ['Pavillon A', 'Pavillon B', 'Pavillon C','Pavillon D', 'Pavillon E', 'Pavillon F'])) {\n $rooms_count_start = 1;\n $rooms_count_end = 0;\n if ($lane->floor_number === 0 && $lane->lane_name === 'Droite') {\n $rooms_count_start = 1;\n $rooms_count_end = 14;\n }\n else if ($lane->floor_number === 0 && $lane->lane_name === 'Gauche') {\n $rooms_count_start = 15;\n $rooms_count_end = 28;\n }\n else if ($lane->floor_number === 1 && $lane->lane_name === 'Droite') {\n $rooms_count_start = 29;\n $rooms_count_end = 42;\n }\n else if ($lane->floor_number === 1 && $lane->lane_name === 'Gauche') {\n $rooms_count_start = 43;\n $rooms_count_end = 56;\n }\n for ($i = $rooms_count_start; $i <= $rooms_count_end; $i++) {\n $room = [\n 'number' => $i,\n 'lane_id' => $lane->lane_id,\n 'created_at' => now(),\n 'updated_at' => now()\n ];\n array_push($rooms, $room);\n }\n }\n if (in_array($lane->block_name, ['Pavillon A', 'Pavillon B', 'Pavillon C','Pavillon D', 'Pavillon E'])) {\n $rooms_count_start = 1;\n $rooms_count_end = 0;\n if ($lane->floor_number === 2 && $lane->lane_name === 'Droite') {\n $rooms_count_start = 57;\n $rooms_count_end = 70;\n }\n else if ($lane->floor_number === 2 && $lane->lane_name === 'Gauche') {\n $rooms_count_start = 71;\n $rooms_count_end = 84;\n }\n for ($i = $rooms_count_start; $i <= $rooms_count_end; $i++) {\n $room = [\n 'number' => $i,\n 'lane_id' => $lane->lane_id,\n 'created_at' => now(),\n 'updated_at' => now()\n ];\n array_push($rooms, $room);\n }\n }\n if (in_array($lane->block_name, ['Pavillon A', 'Pavillon B', 'Pavillon C'])) {\n $rooms_count_start = 1;\n $rooms_count_end = 0;\n if ($lane->floor_number === 3 && $lane->lane_name === 'Droite') {\n $rooms_count_start = 85;\n $rooms_count_end = 98;\n }\n else if ($lane->floor_number === 3 && $lane->lane_name === 'Gauche') {\n $rooms_count_start = 99;\n $rooms_count_end = 112;\n }\n for ($i = $rooms_count_start; $i <= $rooms_count_end; $i++) {\n $room = [\n 'number' => $i,\n 'lane_id' => $lane->lane_id,\n 'created_at' => now(),\n 'updated_at' => now()\n ];\n array_push($rooms, $room);\n }\n }\n }\n DB::table('rooms')->insert($rooms);\n }", "title": "" }, { "docid": "4b31cb9e6529129fe125d5c830c31157", "score": "0.483264", "text": "public function actionCreate()\n\t{\n\t\tif (!Yii::app()->user->checkAccess('createBuilding', Yii::app()->user->id))\n\t\t{\n\t\t\tthrow new CHttpException(403,'You are not authorized to perform this action.');\n\t\t}\n\t\t$model=new Building;\n\t\t$floors=array();\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t$this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Building']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Building'];\n\t\t\t$model->map_image = CUploadedFile::getInstance($model,'map_image');\n\t\t\t$model->street_image = CUploadedFile::getInstance($model,'street_image');\n\t\t\tif($model->save()) {\n\t\t\t\t\t\n\t\t\t\t// check for basement\n\t\t\t\t$floorStart = 1;\n\t\t\t\tif (isset($_POST['basement']))\n\t\t\t\t\t$floorStart = 0;\n\t\t\t\t\n\t\t\t\t// Create floors and link to building\t\t\t\t\n\t\t\t\t// Rework the $_FILES array\t\t\t\t\n\t\t\t\tfor ($floorNum = $floorStart; $floorNum <= $_POST['floorNum']; $floorNum++)\n\t\t\t\t{\n\t\t\t\t\t// Create Floor object\n\t\t\t\t\t$floor = new Floor;\n\t\t\t\t\tYii::trace('BuildingController::New Floor object instantiated.');\n\t\t\t\t\t\n\t\t\t\t\t$floor->level = $floorNum;\n\t\t\t\t\t$floor->building_id = $model->id;\n\t\t\t\t\t\n\t\t\t\t\tif (isset($_FILES['Floor']['name'][$floorNum]['map_image']))\n\t\t\t\t\t{\n\t\t\t\t\t\tif ($_FILES['Floor']['name'][$floorNum]['map_image'] != '')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// Create CUploadedFile for floor model\n\t\t\t\t\t\t\t$name = $_FILES['Floor']['name'][$floorNum]['map_image'];\n\t\t\t\t\t\t\t$tempName = $_FILES['Floor']['tmp_name'][$floorNum]['map_image'];\n\t\t\t\t\t\t\t$type = $_FILES['Floor']['type'][$floorNum]['map_image'];\n\t\t\t\t\t\t\t$size = $_FILES['Floor']['size'][$floorNum]['map_image'];\n\t\t\t\t\t\t\t$error = $_FILES['Floor']['error'][$floorNum]['map_image'];\n\t\t\t\t\t\t\t$map_image = new CUploadedFile($name, $tempName, $type, $size, $error);\n\t\t\t\t\t\t\tYii::trace('BuildingController::actionCreate->CUploadedFile object: '.$map_image->__toString());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$floor->map_image = $map_image;\n\t\t\t\t\t\t} // end if\n\t\t\t\t\t} // end if\n\t\t\t\t\t\n\t\t\t\t\tif ($floor->save())\n\t\t\t\t\t\tYii::trace('BuildingController::floor object saved');\n\t\t\t\t\telse \n\t\t\t\t\t{\n\t\t\t\t\t\tYii::trace('BuildingController::error in saving floor object');\n\t\t\t\t\t\tforeach($floor->getErrors() as $error)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tforeach($error as $value=>$key)\n\t\t\t\t\t\t\t\tYii::trace('BuildingController::ERROR: '.$value.'=>'.$key);\n\t\t\t\t\t\t}\n\t\t\t\t\t} // end if\n\t\t\t\t\t\n\t\t\t\t\t$floors[] = $floor;\n\t\t\t\t} // end for\n\t\t\t\t\n\t\t\t\t// Check if there were any errors in creation.\n\t\t\t\t$errors = false;\n\t\t\t\tforeach ($floors as $floor)\n\t\t\t\t\tif ($floor->hasErrors())\n\t\t\t\t\t\t$errors = true;\n\t\t\t\t// if no errors, finish, else, bring back to create page\n\t\t\t\tif (!$errors)\n\t\t\t\t\t$this->redirect(array('admin'));\n\t\t\t} // end if model->save\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t\t'floors'=>$floors,\n\t\t));\n\t}", "title": "" }, { "docid": "c46eb1f5e976c13e35cb7e27b3e87d0f", "score": "0.4822857", "text": "function getRoomListByBuildingIndex($parameter)\r\n\t {\r\n\t $DBObject = new DBOperations(); // Create Data Base Operations Object\r\n // Connect to data Base\r\n if($DBObject->connect_DataBase() == false)\r\n {\r\n\t echo \"Error: Could not connect to database. please try again later.\";\r\n\t }\r\n\t else\r\n\t {\r\n\t\t$getBldgIdx = $DBObject->getBuildingIndex($parameter); // Get Building Index\r\n\t\t$result = $DBObject->getRoomListByBuildingIndex($getBldgIdx); // Get Room List by Building Index\r\n \r\n\t // Read the recordset\t\t \r\n\t while ($row=$result->fetch_array()) \r\n\t {\r\n\t $registro = $row['room_name'];\r\n \t echo \"<option>\".$registro.\"</option>\"; \r\n }\r\n\t \r\n\t } \r\n $DBObject->disconnect_DataBase();\r\n\t }", "title": "" }, { "docid": "73590da2a5beb12b5ffa1b3bb4e69a33", "score": "0.48136753", "text": "public function getFloor( $floorId, $deleted = false )\r\n {\r\n return $this->filter(\r\n function ( ElementBuildingModel $model ) use($floorId, $deleted )\r\n {\r\n return $model->getFloorId() == $floorId && (!$deleted ? !$model->getDeleted() : true);\r\n } );\r\n }", "title": "" }, { "docid": "c178db800c0707f0477067bbdbe5d8b6", "score": "0.48084056", "text": "public function brochures()\n {\n return $this->hasMany(Brochure::class);\n }", "title": "" }, { "docid": "9db074c4b5d4f5cf4e3549719dd58701", "score": "0.4799402", "text": "function getBedrooms () {\n \t$a = array();\n \t$a[0] = \"Studio\";\n \t$a[1] = \"1 Bedroom\";\n \t$a[2] = \"2 Bedrooms\";\n \t$a[3] = \"3 Bedrooms\";\n \t$a[4] = \"4 Bedrooms\";\n \t$a[5] = \"5 Bedrooms\";\n \t$a[6] = \"6 Bedrooms\";\n \t$a[7] = \"7+ Bedrooms\";\n \t$a[20] = \"Room for Rent\";\n \t$a[21] = \"Parking Space\";\n \treturn $a;\n }", "title": "" }, { "docid": "678cd27b82bd37a0685fe5b3a0628c4d", "score": "0.47890475", "text": "function get_by_faction_hyper($faction_id)\r\n {\r\n return $this->db->query('SELECT planets.*, factions.name AS faction_name FROM planets '\r\n . 'LEFT JOIN factions ON factions.faction_id=planets.faction_id '\r\n . 'WHERE type=\"hyper\"')->result();\r\n }", "title": "" }, { "docid": "2016e183b8281091cc08db81fe257ad4", "score": "0.47787726", "text": "public function show($id)\n {\n $age = Age::pluck('short', 'id');\n $building = Building::find($id);\n $boosts = Boost::pluck('image', 'id');\n\t\t\t\n return view('buildings.building', [ 'building' => $building, 'age' => $age, 'boost' => $boosts]);\n\n // return view('buildings');\n }", "title": "" }, { "docid": "063b89d26dd0c8a850820f06ec7532ff", "score": "0.47713152", "text": "function getBuildings($coords = null)\n{\n if(defined(\"HANDLER_MODE\"))\n {\n $laRow = gigraDB::db_open()->getOne(\"SELECT k1,k2,k3,k4,k5,k6,k7,k8,k9,k10,k11,k12,k13,k14,k15,k16,k17,k18,k19,k20,k21 FROM gebaeude WHERE coords = '$coords'\");\n return $laRow;\n }\n if($coords == null)\n $coords = $_SESSION[\"coords\"];\n if(!isset($_SESSION[\"k\"]))\n $_SESSION[\"k\"] = array();\n if(!isset($_SESSION[\"k\"][$coords]))\n {\n $laRow = gigraDB::db_open()->getOne(\"SELECT k1,k2,k3,k4,k5,k6,k7,k8,k9,k10,k11,k12,k13,k14,k15,k16,k17,k18,k19,k20,k21 FROM gebaeude WHERE coords = '$coords'\");\n $_SESSION[\"k\"][$coords] = $laRow;\n }\n else\n $laRow = $_SESSION[\"k\"][$coords];\n \n return $laRow;\n}", "title": "" }, { "docid": "1a769efd151136e7e1ee2e4db5f9dce1", "score": "0.47619167", "text": "function getVehicles($depots)\n {\n\n $this->vehicles = $this->ladeLeitWartePtr->vehiclesPtr->getVehiclesVariantsStationsForDepots($depots);\n if (empty($this->vehicles))\n $this->vehicles = array();\n\n $sts_pool = $this->ladeLeitWartePtr->depotsPtr->getStsPoolDepot();\n $pool_depot_id = $sts_pool['depot_id'];\n $production_locations = $this->ladeLeitWartePtr->divisionsPtr->newQuery()\n ->where('production_location', '=', 't')\n ->where('name', 'NOT ILIKE', '%Düren%')\n -> // uncomment to allow Düren to be selected too\n join('depots', 'depots.division_id=divisions.division_id', 'INNER JOIN')\n ->orderBy('divisions.division_id')\n ->get('depot_id');\n $production_depots = array_column($production_locations, 'depot_id');\n\n if (! empty($production_depots))\n $finished_vehicles = $this->ladeLeitWartePtr->vehiclesPtr->getVehiclesVariantsStationsForDepots($production_depots, true);\n if (! empty($finished_vehicles))\n $this->vehicles = array_merge($this->vehicles, $finished_vehicles);\n\n $this->stations = $this->ladeLeitWartePtr->stationsPtr->getStationsForDepots($depots);\n $this->freestations = $this->ladeLeitWartePtr->stationsPtr->getFreeStationsForDepot($depots);\n\n $prostations = array();\n foreach ($this->stations as $station) {\n if (! empty($station['restriction_id2']) && ! empty($station['restriction_id3']))\n $stationame = $station['name'] . ' (3-phasig)';\n else\n $stationame = $station['name'] . ' (1-phasig)';\n\n if ($station['deactivate'] == 'f')\n $prostations[$station['station_id']] = $stationame;\n else\n $prostations[$station['station_id']] = $stationame . ' (deaktiviert)';\n }\n unset($station); // just a reset so its safe for the next loop\n\n $profreestations = array();\n foreach ($this->freestations as $station) {\n if (! empty($station['restriction_id2']) && ! empty($station['restriction_id3']))\n $stationame = $station['name'] . ' (3-phasig)';\n else\n $stationame = $station['name'] . ' (1-phasig)';\n\n if ($station['deactivate'] == 'f')\n $profreestations[$station['station_id']] = $stationame;\n else\n $profreestations[$station['station_id']] = $stationame . ' (deaktiviert)';\n }\n\n $DepotsWithOnlyFreeStations = $this->getDepotsWithOnlyFreeStationsForRole();\n $allowedDepots = $this->getDepotsWithFreeStationsForRole();\n\n if (is_numeric($depots))\n $div = $this->ladeLeitWartePtr->depotsPtr->getDivision($depots);\n\n /*\n * $otherDivisions = $this->ladeLeitWartePtr->depotsPtr->getOtherDivisionsAusstehendeZuweisung($except_div);\n * $listOtherDivs = make_map ($otherDivisions, 'depot_id', 'name');\n */\n\n /*\n * $DepotsWithOnlyFreeStations[]=['depot_id'=>'-', 'name'=>'-'];\n * $DepotsWithOnlyFreeStations[]=['depot_id'=>'nl', 'name'=>'&gt;&gt; Abgabe andere NL...'];\n */\n\n $allowedDepots[] = $this->ladeLeitWartePtr->depotsPtr->getDepotAustehendeZuweisung($div);\n $allowedDepots[] = $this->ladeLeitWartePtr->depotsPtr->getStsPoolDepot();\n $allowedDepots[] = $this->ladeLeitWartePtr->depotsPtr->getFleetPoolDepot($div);\n\n $this->qform_vehicle_mgmt = new QuickformHelper($this->displayHeader, \"qform_vehicle_mgmt\");\n $this->qform_vehicle_mgmt->getVehicleMgmt($this->vehicles, array_column($allowedDepots, 'name', 'depot_id'), $prostations, $profreestations, $this->zsp, $this->vehicle_variants, $listOtherDivs, array_column($DepotsWithOnlyFreeStations, 'name', 'depot_id'));\n\n $this->treestructure = $this->ladeLeitWartePtr->restrictionsPtr->generateTreeStructureForDepot($this->zsp);\n\n }", "title": "" }, { "docid": "ea8fe1b2c82ecd8bfe76dc7f14ffda9c", "score": "0.47582784", "text": "public function index( $projectId ) {\n $project = $this->projectRepository->getProjectById( $projectId );\n \n $phases = $project->projectPhase()->lists( 'id' );\n $buildings = Building::whereIn( 'phase_id', $phases )->get();\n \n return view( 'admin.project.building.list' )\n ->with( 'project', $project->toArray() )\n ->with( 'buildings', $buildings )\n ->with( 'current', '' );\n }", "title": "" }, { "docid": "b68601978f3f648b0ef640b43362838f", "score": "0.47509623", "text": "public function get_herb_farms($herb_id) {\n if ($herb_id != '') {\n $this->db->select('farm.id,farm.name,farm.logo_path,farm.country_iso,country.nicename as cname,farm.account_id,farm_herb.price_per_kilo_usd as ppk,farm_herb.in_stock_volume_kilo as isv');\n $this->db->join('farm','farm_herb.farm_id=farm.id','inner');\n $this->db->join('country','country.iso=farm.country_iso');\n $this->db->where(\"farm_herb.herb_id=$herb_id\");\n $farms = $this->db->get('farm_herb')->result_array();\n\n return $farms;\n }\n\n return null;\n }", "title": "" }, { "docid": "55956666672ce7aadcf73027ff48cc37", "score": "0.47495323", "text": "protected function fromH3mBuildings(AObject $obj, array $buildings) {\n // multiple potential buildings but from different town types, i.e. that\n // cannot be erected together. Need to map them to actual Building->$id-s.\n $res = [];\n\n foreach ($buildings as $bit => $building) {\n $names = $this->knownValue('built', $building, null);\n\n if ($names === 'horde4') {\n // SoD has no buildings that boost growth of 4th level creatures so\n // building or disabling it in the editor does essentially nothing.\n } elseif (isset($names)) {\n // Remove generic building names found in random town's configuration,\n // as long as they are accompanied by town-specific names.\n $names = preg_replace('/^(horde\\d|dwelling\\dU?) /', '', $names);\n $potential = $this->filterBuildingsByTown($obj->subclass, $names);\n\n if (!$potential) {\n // Most likely a bug in HeroWO or h3m2json.php.\n $this->warning('no matching HeroWO buildings for $built bit %d of Town #%d: %s, ignoring',\n $bit, $obj->id, $names);\n } elseif (!isset($obj->subclass)) {\n mergeInto($res, $potential);\n } else {\n if (count($potential) > 1) {\n // Most likely a bug in HeroWO or h3m2json.php.\n $this->warning('H3M specifies multiple potential buildings per one $built bit %d of Town #%d, using the first one: %s; %s',\n $bit, $obj->id, $names, join(' ', $potential));\n }\n\n $res[] = $potential[0];\n }\n }\n }\n\n // Town->$built and TownEvent->$build include unupgraded forms. The former goes straight to town_buildings (except for Random town) which should not include inferior buildings. The latter we could ignore since H3.Rules takes care of removing them when applying event effects, but we filter the list anyway to slightly improve the run-time performance. Not filtering if town is random since we don't know which buildings will be erected and therefore which buildings are unupgraded.\n if (isset($obj->subclass)) {\n $upgraded = [];\n\n foreach ($res as $id) {\n mergeInto($upgraded, $this->buildings->atCoords($id, 0, 0, 'upgrade') ?: []);\n }\n\n $res = array_filter($res, function ($id) use ($upgraded) {\n return !in_array($id, $upgraded);\n });\n }\n\n return $res;\n }", "title": "" }, { "docid": "72de34c6684842e973f8d5189121e566", "score": "0.4747511", "text": "public function index(Request $request)\n {\n $building = Building::orderBy('id','DESC')->paginate(100);\n return view('admin.building.index',compact('building'))\n \n ->with('i', ($request->input('page', 1) - 1) * 5);\n /*\n DB::table('users')\n ->join('contacts', function ($join) {\n $join->on('users.id', '=', 'contacts.user_id')\n ->where('contacts.user_id', '>', 5);\n })\n ->get();*/\n /*$building=DB::table('buildings')->join('compounds',function($join){\n $join->on('buildings.compound_id','=','compounds.id');\n }) ->select('*','buildings.id as b_id')->get();*/\n \n }", "title": "" }, { "docid": "e3c0178a199d72327067e07bce2b00ad", "score": "0.47466248", "text": "public function building()\n {\n return $this->belongsTo(Building::class,'building_id');\n }", "title": "" }, { "docid": "c27c5ece72f560a2f8ddc81d1be81385", "score": "0.47454867", "text": "public function get_buildings_district()\n\t{\n\t\t$id = $this->input->post('client_id');\n\t\t$dist = $this->input->post('district_id');\n\t\t\n\t\t$bidds = $this->building_model->get_building_list_clientt( $id );\n\t\t$bids = $bidds->assigned_buildings;\n\t\t$list_building = $this->building_model->get_building_list_clientt_dis( $dist, $bids );\n\t\t\t\t\n\t\t$d = '';\n\t\t\n\t\tif( !empty( $list_building ) )\n\t\t{\n\t\t\tforeach( $list_building as $list_buildings ) \n\t\t\t{\n\t\t\t\t\n\t\t\t\t$d .= '<option value=\"'.$list_buildings->id.'\">'.$list_buildings->building_name.'</option>';\n\t\t\t}\n\t\t}\n\t\t$d;\n\t\t\n\t\t$e = '';\n\t\t\n\t\tif( !empty( $list_building ) )\n\t\t{\n\t\t\tforeach( $list_building as $list_buildings ) \n\t\t\t{\n\t\t\t\t\n\t\t\t\t$e .= $list_buildings->id.',';\n\t\t\t}\n\t\t\t$es = rtrim($e,',');\n\t\t\t$ess = '<input type=\"hidden\" name=\"building_ids\" id=\"building_ids\" value=\"'.$es.'\">';\n\t\t}\n\t\t$ess;\n\t\techo json_encode(array(\"d\"=>$d,\"e\"=>$ess));\n\t\t\n\t}", "title": "" }, { "docid": "437e2ff7fddfe0b8830f3aa81ec23fa2", "score": "0.47244942", "text": "public function all()\n {\n // Fecthing all the buildings from the database\n $buildings = Building::all();\n\n // Returning the list of buildings to the user with response code 200.\n return response()->json($buildings, 200);\n }", "title": "" }, { "docid": "8aac33f36df9a36e365bf39a3c75992d", "score": "0.4721368", "text": "public static function getPhotographes($actif = true){\n\t\t$daoPhotographe = new PhotographeDAO();\n\t\treturn $daoPhotographe->getPhotographes($actif);\n\t}", "title": "" }, { "docid": "73960421d63a5fa23d98094eb22e79f8", "score": "0.47082505", "text": "protected function getListQuery()\n\t{\n\t\t$db = $this->getDbo();\n\t\t$query = $db->getQuery(true);\n\t\t$user = JFactory::getUser();\n\n\t\t// Select the required fields from the table.\n\t\t$query->select(\n\t\t\t$db->quoteName(\n\t\t\t\texplode(', ', $this->getState(\n\t\t\t\t\t'list.select', 'v.id, v.floorplan_id, b.property_id, v.suite, v.available_space, v.divisible, v.market_rent, v.date_available, v.pdf, p.name'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t\t\n\t\t$query->from($db->quoteName('#__parkway_vacancies', 'v'));\n \n \n // Join over the floorplan.\n\t\t\n $query->select($db->quoteName('f.floor_level') )\n\t\t\t->join(\n\t\t\t\t'LEFT',\n\t\t\t\t$db->quoteName('#__parkway_floorplans', 'f') . ' ON ' . $db->quoteName('f.id') . ' = ' . $db->quoteName('v.floorplan_id')\n\t\t\t);\n\n // Join over the building name and property id from the buildings table.\n\t\t\n $query->select($db->quoteName('b.name', 'building_name'), $db->quoteName('b.property_id','property_id') )\n\t\t\t->join(\n\t\t\t\t'LEFT',\n\t\t\t\t$db->quoteName('#__parkway_buildings', 'b') . ' ON ' . $db->quoteName('b.id') . ' = ' . $db->quoteName('f.building_id')\n\t\t\t);\n \n // Join over the property name.\n\t\t\n $query->select($db->quoteName('p.name', 'property_name'), $db->quoteName('p.id','id') )\n\t\t\t->join(\n\t\t\t\t'LEFT',\n\t\t\t\t$db->quoteName('#__parkway_properties', 'p') . ' ON ' . $db->quoteName('p.id') . ' = ' . $db->quoteName('b.property_id')\n\t\t\t);\n\n\n //Filter by properties \n $property = $this->getState('filter.property');\n \n if (!empty( $property )){\n \n // $query->where('(' . $db->quoteName('b.property_id') . ' = ' . intval($property ). ')');\n \n }\n \n //Filter by Building\n $building = $this->getState('filter.building');\n \n \n \n if (!empty( $building )){\n \n $query->where(\n\t\t\t\t\t'(' . $db->quoteName('f.building_id') . ' = ' . intval($building ). ')'\n\t\t\t\t);\n \n }\n\n //Filter by available space.\n $space = $this->getState('filter.space');\n \n \n $session = JFactory::getSession();\n if ($session->get( 'max')){\n //TODO max isnt set anywhere....\n $space['max'] = (int) $session->get( 'max', $max );\n }\n \n \n if (!empty($space['min']) && !empty($space['max']))\n\t\t{\n \n \n\t\t\t\t$query->where(\n\t\t\t\t\t'(' . $db->quoteName('v.available_space') . ' BETWEEN ' . intval($space['min'] ) . ' AND ' . intval($space['max'] ). ')'\n\t\t\t\t);\n \n \n \n }else if (empty($space['min']) && !empty($space['max'])){\n \n \n \n \n\t\t\t\t$query->where(\n\t\t\t\t\t'(' . $db->quoteName('v.available_space') . ' BETWEEN 0 AND ' . intval($space['max'] ). ')'\n\t\t\t\t);\n \n \n \n }else if (!empty($space['min']) && empty($space['max'])){\n \n \n \n\t\t\t\t$query->where(\n\t\t\t\t\t'(' . $db->quoteName('v.available_space') . ' BETWEEN ' . intval($space['min']) . ' AND 999999999 )'\n\t\t\t\t);\n \n \n }\n \n \n // Filter by search in name.\n\t\t$search = $this->getState('filter.search');\n\n\t\tif (!empty($search))\n\t\t{\n\t\t\tif (stripos($search, 'id:') === 0)\n\t\t\t{\n\t\t\t\t$query->where('v.id = ' . (int) substr($search, 3));\n\t\t\t}\n\t\t\telseif (stripos($search, 'author:') === 0)\n\t\t\t{\n\t\t\t\t$search = $db->quote('%' . $db->escape(substr($search, 7), true) . '%');\n\t\t\t\t$query->where(\n\t\t\t\t\t'(' . $db->quoteName('uc.name') . ' LIKE ' . $search . ' OR ' . $db->quoteName('uc.username') . ' LIKE ' . $search . ')'\n\t\t\t\t);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$search = $db->quote('%' . str_replace(' ', '%', $db->escape(trim($search), true) . '%'));\n\t\t\t\t$query->where(\n\t\t\t\t\t'(' . $db->quoteName('b.name') . ' LIKE ' . $search . ' OR ' . $db->quoteName('v.keywords') . ' LIKE ' . $search . ')'\n\t\t\t\t);\n\t\t\t}\n\t\t}\n // Filter by published status\n \n $query->where(\n '(' . $db->quoteName('v.published') . ' = 1 )'\n );\n \n // Add the list ordering clause.\n\t\t$orderCol = $this->state->get('list.ordering', 'f.floor_level');\n\t\t$orderDirn = $this->state->get('list.direction', 'asc');\n\n\t\tif ($orderCol == 'a.ordering' || $orderCol == 'category_title')\n\t\t{\n\t\t\t$orderCol = $db->quoteName('c.title') . ' ' . $orderDirn . ', ' . $db->quoteName('a.ordering');\n\t\t}\n\n\t\t$query->order('f.floor_level','asc');\n $query->order('v.suite','asc');\n \n return $query ;\n }", "title": "" }, { "docid": "44e3672c14455f44bbe0d19acd79a62f", "score": "0.47027457", "text": "public function index()\n {\n // returning building infor\n\n return DB::select('SELECT md5(BldgID) BldgID,BldgName,BldgCoordinates,created_at FROM buildings ORDER BY BldgName ASC');\n }", "title": "" }, { "docid": "bafedeb3f88c6539d4e690f26a0bea59", "score": "0.46992046", "text": "public function getMonies();", "title": "" }, { "docid": "1f4d1d24b1257c3f7f46fb6551a9b440", "score": "0.46988064", "text": "public function actionIndex()\n {\n $floorList = (new CommonFunction())->getAllFloor();\n return $this->render('index', [\n 'floorList' => $floorList,\n ]);\n }", "title": "" }, { "docid": "3b8946474e618a33c8456d7882f16a6c", "score": "0.46925855", "text": "public function getOngoingProjects(){\n //$projects = WonBy::with('won_by_id', Auth::user()->id)->get();\n\n $projects = DB::table('won_by')\n ->join('job', 'won_by.job_id', '=', 'job.job_id')\n ->join('bid', 'job.job_id', '=', 'bid.job_id')\n ->select('*')->where('complete',0)\n ->get();\n return $projects;\n }", "title": "" }, { "docid": "7afb40c8e02e0c368706af569a1ca2f8", "score": "0.4691998", "text": "public function farms()\n {\n return $this->hasMany(Farm::class);\n }", "title": "" }, { "docid": "7049142d95e2fac00b63f32eb7bb3096", "score": "0.46916002", "text": "public function getChoferesDisponibles()\n {\n $choferes = Chofer::find()->asArray()->all();\n $items = ArrayHelper::map($choferes, 'ID', 'CEDULA');\n return $items;\n }", "title": "" }, { "docid": "d5bbdddcbb053c3ce6d29ffe1032491b", "score": "0.4682174", "text": "public function neighborhoods()\n {\n return $this->hasMany('App\\Neighborhood');\n }", "title": "" }, { "docid": "99ef2894eecb1d53764a5a54058bdfb6", "score": "0.46755797", "text": "public static function parseBuildings(City &$city, simple_html_dom $html): City\n {\n $building = new simple_html_dom_node($html);\n $buildingType = 'House';\n foreach ($html->firstChild()->childNodes() as $child) {\n if (self::isBuildingID($child) || $child->tag == 'br') {\n if (self::isBuildingID($building->firstChild())) {\n $city->addBuilding(self::parseBuilding($building, $buildingType));\n } else {\n if ($building->lastChild()->tag == 'img') {\n if (BaseFunctions::endsWith($building->lastChild()->getAttribute('src'), 'wtown_01.jpg')) {\n $buildingType = 'House';\n } elseif (BaseFunctions::endsWith($building->lastChild()->getAttribute('src'), 'wtown_02.jpg')) {\n $buildingType = 'Ruler';\n } elseif (BaseFunctions::endsWith($building->lastChild()->getAttribute('src'), 'wtown_03.jpg')) {\n $buildingType = 'Guardhouse';\n } elseif (BaseFunctions::endsWith($building->lastChild()->getAttribute('src'), 'wtown_04.jpg')) {\n $buildingType = 'Church';\n } elseif (BaseFunctions::endsWith($building->lastChild()->getAttribute('src'), 'wtown_05.jpg')) {\n $buildingType = 'Bank';\n } elseif (BaseFunctions::endsWith($building->lastChild()->getAttribute('src'), 'wtown_06.jpg')) {\n $buildingType = 'Merchant';\n } elseif (BaseFunctions::endsWith($building->lastChild()->getAttribute('src'), 'wtown_07.jpg')) {\n $buildingType = 'Guild';\n }\n }\n }\n $building = new simple_html_dom_node($html);\n }\n $building->appendChild($child);\n }\n return $city;\n }", "title": "" }, { "docid": "bbdffe4be04b13ed82df285ce44c6886", "score": "0.46749878", "text": "public static function getRoomQueues($floor_id = null, $room_id = null, $doctor_id = null)\n {\n $orderStatus = 'DESC';\n\n if (!is_null($doctor_id)){\n $roomQueues = self::where('doctor_id', $doctor_id)\n ->where('created_at', 'like', \"%\".date('Y-m-d').\"%\")\n// ->orderBy('id', $orderStatus)\n ->orderBy('queue_number' , $orderStatus)\n ->get();\n\n if(!$roomQueues){\n $roomQueues = self::where('floor_id', $floor_id)\n ->where('room_id', $room_id)\n ->where('created_at', 'like', \"%\".date('Y-m-d').\"%\")\n// ->orderBy('id', 'DESC')\n ->orderBy('queue_number' , $orderStatus)\n ->get();\n }\n }else{\n $roomQueues = self::where('floor_id', $floor_id)\n ->where('room_id', $room_id)\n ->where('created_at', 'like', \"%\".date('Y-m-d').\"%\")\n// ->orderBy('id', $orderStatus)\n ->orderBy('queue_number' , $orderStatus)\n ->get();\n }\n\n return $roomQueues;\n }", "title": "" }, { "docid": "76b73268e01004cc4acc87c06043355f", "score": "0.46718207", "text": "public function showShonen() {\n $req = $this->db->query('SELECT `id` FROM `manga_collection` WHERE id_genre = 1');\n $collections = [];\n while ($collection = $req->fetch()) {\n // on retourne l'id de la collection dans la class Collection\n $collections[] = new Collection($collection->id);\n }\n return $collections;\n }", "title": "" }, { "docid": "a8d40edbf03def167a4d6b67eacf221c", "score": "0.46703982", "text": "public function getBuilding($x,$y)\n {\n return count($this->_map[$y][$x]->buildings) ? $this->_map[$y][$x]->buildings[0] : false;\n }", "title": "" }, { "docid": "559beff39cc3b1c8abb6ea263e5ea828", "score": "0.46678632", "text": "public function depense()\n {\n return $this->hasMany('App\\Depense', 'Building_id', 'id');\n }", "title": "" }, { "docid": "224133f3004fd801c4f1830c35282dc6", "score": "0.4664644", "text": "function restaurantsForPrinterWithOpenings($printerId) {\n $printerId = (integer) $printerId;\n if (!$printerId) {\n return \"\";\n }\n\n try {\n $printer = Yourdelivery_Model_Printer_Abstract::factory ($printerId);\n }\n catch (Yourdelivery_Exception_Database_Inconsistency $e) {\n return \"\";\n }\n\n $html = array();\n $day = date('w');\n $restaurants = $printer->getRestaurants();\n foreach ($restaurants as $restaurant) {\n $openings = array();\n foreach ($restaurant->getOpeningsForDay($day) as $opening) {\n $openings[] = sprintf('%s - %s', substr($opening->from, 0, -3), substr($opening->until, 0, -3));\n }\n $html[] = '<a href=\"/administration_service_edit/index/id/' . $restaurant->getId() . '\">' . $restaurant->getName() . '</a>' .\n ((empty($openings))? '': (' <small>[' . implode(', ', $openings) . ']</small>'));\n }\n return implode(\"<br />\", $html);\n}", "title": "" }, { "docid": "f5efc6639372ec163d9d28930be28204", "score": "0.46641335", "text": "public function findAllPassives()\n {\n // connects to DB\n $pdo = new PDO('mysql:host=localhost;dbname=hades', 'Nico', 'Ereul9Aeng');\n\n // SQL query\n $sql = \"SELECT *\n FROM `boons` \n WHERE `boons`.`type` = 'passive'\n ORDER BY `boons`.`name` ASC\n \";\n // execute the query and set the result as a PDOStatement object\n $pdoStatement = $pdo->query($sql);\n\n // get results in an array and send them\n $boons = $pdoStatement->fetchAll(PDO::FETCH_CLASS, 'Boon');\n\n return $boons;\n }", "title": "" }, { "docid": "ae8d818ccf4f5ea16948598c2b1aff94", "score": "0.466001", "text": "public function indexBuildingFloor($id, $building_id, $floor)\n {\n $types = Type::all();\n $type = Type::find($id);\n $buildings = Building::all();\n $rooms = Room::get()->where('type_id', $type->id)->where('building_id', $building_id)->where('floor', $floor);\n $building = Building::find($building_id);\n return view('rooms.index', [\n 'types' => $types,\n 'rooms' => $rooms,\n 'buildings' => $buildings,\n 'building' => $building,\n 'selected_type' => $type,\n 'selected_floor' => $floor\n ]);\n }", "title": "" }, { "docid": "9c3243ba4cf5d64b3f30eed206b5d354", "score": "0.4657708", "text": "public function getFleets()\n {\n return $this->fleets;\n }", "title": "" }, { "docid": "c8c31e75807635df5bb3bfa9b970416e", "score": "0.46476313", "text": "public function getBuilding()\n {\n return $this->getParameter('building');\n }", "title": "" }, { "docid": "888cc6970c75d3f42922dd61a5add7a8", "score": "0.46475318", "text": "public function test_FilterHouseWith3Floors()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/house')\n ->type('#floorsFrom','3')\n ->click('#search')\n ->pause(5000)\n ->assertSee('Продам трехэтажный дом');\n });\n }", "title": "" }, { "docid": "bb655932d18d1b9b191a3fa81ed7af1f", "score": "0.46470314", "text": "function GB_BuildingParts4()\n\t{\n\t\tif (array_key_exists('ExclConstr' , $this->GB_Setting) )\n\t\t{\n\t\t\t$ExclConstr = unserialize($this->GB_Setting['ExclConstr']) ;\n\t\t} else{$ExclConstr = array();}\n\n\t\t//empty the database table.\n\t\t$GBSQL =\"DELETE FROM BuildingParts\";\n\t\t$this->_GBUser->query($GBSQL);\n\n\t\t// first check if all the building parts are in the table\n\t\t$GBSQL = \"SELECT * FROM StorageConfig WHERE _part = 'true'\";\n\t\t$query = $this->_GBMain->query($GBSQL);\n\t\t$buildingParts = $query->fetchAll();\n\t\tforeach($buildingParts as $buildingPart)\n\t\t{\n\t\t\t$GBSQL = \"INSERT OR REPLACE INTO BuildingParts(_name, _itemName, _itemCode, _need, _part) \";\n\t\t\t$GBSQL .= \" VALUES (\".$this->Qs($buildingPart['_name']).\",\".$this->Qs($buildingPart['_itemName']).\",\".$this->Qs($buildingPart['_itemCode']).\",\".$this->Qs($buildingPart['_need']).\",\".$this->Qs($buildingPart['_part']).\");\";\n\t\t\t$result = $this->_GBUser->query($GBSQL);\n\t\t}\n\t\t// fill the Unit part. _UnitBuildCode, _UnitBuildName,\n\t\t// first look for all building that could contain building part\n\t\t$GBSQL = \"SELECT DISTINCT _name FROM BuildingParts\";\n\t\t$query = $this->_GBUser->query($GBSQL);\n\t\t$UnitNames = $query->fetchAll();\n\t\tforeach($UnitNames as $UnitName)\n\t\t{\n\t\t\t$GBSQL = \"SELECT DISTINCT _code,_name,_storageType_itemClass FROM units WHERE _storageType_itemClass = '\".$UnitName['_name'].\"'\";\n\t\t\t$query = $this->_GBMain->query($GBSQL);\n\t\t\t$UnitInfo = $query->fetchAll();\n\t\t\t//got the info, now write into datebase\n\t\t\t$GBSQL =\"UPDATE BuildingParts SET _UnitBuildCode=\".$this->Qs(@$UnitInfo['0']['_code']).\",_UnitBuildName=\".$this->Qs(@$UnitInfo['0']['_name']).\" WHERE _name = \".$this->Qs(@$UnitInfo['0']['_storageType_itemClass']);\n\t\t\t$query = $this->_GBUser->query($GBSQL);\n\t\t}\n\t\t// now check the objects on the farm. For now only 1 of each can be in construction.\n\t\t$GBSQL = \"SELECT DISTINCT _UnitBuildName FROM BuildingParts\";\n\t\t$query = $this->_GBUser->query($GBSQL);\n\t\t$UnitBuildNames = $query->fetchAll();\n\t\tforeach($UnitBuildNames as $UnitBuildName)\n\t\t{\n\t\t\t$ObjDatas = array();\n\t\t\t$GBSQL =\"SELECT _set,_val FROM objects WHERE _obj IN (SELECT _obj FROM objects WHERE _set = 'itemName' AND _val = '\". $UnitBuildName['_UnitBuildName'] .\"')\";\n\t\t\t$query = $this->_GBUser->query($GBSQL);\n\t\t\t// check if there was a building\n\t\t\tif ($query->numRows() > 0){ $contineu = \"ok\";} else { continue;} //skip if there was no object.\n\t\t\t// now put this into array\n\t\t\twhile ($entry = $query->fetch(SQLITE_ASSOC))\n\t\t\t{\n\t\t\t\t$ObjDatas[$entry['_set']] = $entry['_val'] ;\n\t\t\t\tif($entry['_set'] == 'contents') {$ObjDatas[$entry['_set']] = unserialize($entry['_val']) ;}\n\t\t\t\tif($entry['_set'] == 'expansionParts') {$ObjDatas[$entry['_set']] = unserialize($entry['_val']) ;}\n\t\t\t\t//if($entry['_set'] == 'position') {$GB_result[$entry['_set']] = unserialize($entry['_val']) ;}\n\t\t\t}\n\t\t\t//check the content of the object.\n\t\t\tif(is_array($ObjDatas['contents']))\n\t\t\t{ // the contents\n\t\t\t\tforeach($ObjDatas['contents'] as $Content)\n\t\t\t\t{ //_ObjHave, _ObjId, _ObjState\n\t\t\t\t\t$GBSQL =\"UPDATE BuildingParts SET _ObjHave=\".$this->Qs($Content['numItem']).\" WHERE _UnitBuildName = \".$this->Qs($ObjDatas['itemName']).\" AND _itemCode = \".$this->Qs($Content['itemCode']);\n\t\t\t\t\t$query = $this->_GBUser->query($GBSQL);\n\t\t\t\t}// end contents\n\t\t\t\t$GBSQL =\"UPDATE BuildingParts SET _ObjId=\".$this->Qs($ObjDatas['id']).\",_ObjState=\".$this->Qs($ObjDatas['state']).\" WHERE _UnitBuildName = \".$this->Qs($ObjDatas['itemName']);\n\t\t\t\t$query = $this->_GBUser->query($GBSQL);\n\n\t\t\t}\n\t\t\t// check if horsestablewhite is level 5, than do not add more parts.\n\t\t\t$DoConstruct = 'Y';\n\t\t\tif (array_key_exists('expansionLevel' , $ObjDatas) )\n\t\t\t{\n\t\t\t\tif( $ObjDatas['expansionLevel'] >= 5){ $DoConstruct = 'N';}\n\t\t\t}\n\n\t\t\t// now check if there is any building part in the database,\n\t\t\t// if so, that means it is a construction building :-)\n\t\t\t$GBSQL = \"select sum(_ObjHave) AS total FROM BuildingParts WHERE _UnitBuildName = \".$this->Qs($ObjDatas['itemName']);\n\t\t\t$query = $this->_GBUser->query($GBSQL);\n\t\t\t$TotalBuildingParts = $query->fetchAll() ;\n\t\t\tif($TotalBuildingParts['0']['total'] > 0 && $DoConstruct == 'Y')\n\t\t\t{\n\t\t\t\t$GBSQL =\"UPDATE BuildingParts SET _action='construction' WHERE _UnitBuildName = \".$this->Qs($ObjDatas['itemName']);\n\t\t\t\t$query = $this->_GBUser->query($GBSQL);\n\n\t\t\t}\n\t\t\t// now check if the building is on the Eclude list\n\t\t\tif (array_key_exists($ObjDatas['itemName'] , $ExclConstr) )\n\t\t\t{\n\t\t\t\tif($ExclConstr[$ObjDatas['itemName']] == 'Exclude')\n\t\t\t\t{\n\t\t\t\t\t$GBSQL =\"UPDATE BuildingParts SET _action='Exclude' WHERE _UnitBuildName = \".$this->Qs($ObjDatas['itemName']);\n\t\t\t\t\t$query = $this->_GBUser->query($GBSQL);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "fbe78d0c7736171dd4be8c4eed72013e", "score": "0.46403596", "text": "function Divisions()\n\t\t{\n\t\t\tglobal $wpdb;\n\t\t\t$divisons = $wpdb->get_results(\"SELECT *FROM {$wpdb->prefix}bd_divison\");\n\t\t\treturn $divisons;\n\t\t}", "title": "" }, { "docid": "e916a86063adfa1c408b712483c7adfd", "score": "0.4630805", "text": "public function listDetalhes();", "title": "" }, { "docid": "0ee575add4ff3a796af5e7d6cb2636a8", "score": "0.46264398", "text": "public function showOneBuilding(Request $request, int $id, int $bid)\n {\n $user = User::find($request->auth->id);\n $language = $user->language;\n\n $building = Building::where('id', $bid)->first();\n\n //building info\n $res = [\n 'id' => $building->id,\n 'name' => $building->i18n($user->language)->name,\n 'image' => imagePath($building),\n 'description' => $building->i18n($user->language)->description,\n 'type' => $building->type,\n 'race' => $building->race,\n ];\n\n $planet = Planet::find($id);\n if (empty($planet)) {\n return response()->json(['status' => 'error', 'message' => MessagesController::i18n('planet_not_found', $language)], 200);\n }\n\n if (empty($planet->owner_id)) {\n return response()->json(['status' => 'success',\n 'message' => MessagesController::i18n('planet_uninhabited', $language)], 200);\n }\n\n $ref = $this->refreshPlanet($request, $planet);\n //fresh buildings data\n $buildingAtUser = $planet->buildings->find($bid);\n\n $resources = [];\n\n if (empty($buildingAtUser->pivot->level)) {\n $level = 1;\n } else {\n $level = $buildingAtUser->pivot->level;\n }\n\n if (!empty($building->resources) || !empty($building->requirements) || !empty($building->upgrades)) {\n $resources = app('App\\Http\\Controllers\\ResourceController')\n ->parseAll($user, $building, $level, $id);\n }\n\n $res['resources'] = [\n 'current' => $resources['cost'],\n 'energy' => $resources['production']['energy'],\n 'current_per_hour' => [\n 'metal' => $resources['production']['metal'],\n 'crystal' => $resources['production']['crystal'],\n 'gas' => $resources['production']['gas'],\n ],\n 'upgrades' => $resources['upgradesCurrent'],\n ];\n\n //actual building at planet\n if (!empty($buildingAtUser)) {\n $res['level'] = $buildingAtUser->pivot->level;\n $res['startTime'] = $buildingAtUser->pivot->startTime;\n $res['timeToBuild'] = $buildingAtUser->pivot->timeToBuild;\n $res['destroying'] = $buildingAtUser->pivot->destroying;\n $res['updated_at'] = $buildingAtUser->pivot->updated_at;\n }\n return response()->json($res);\n }", "title": "" }, { "docid": "3db4d06b082bf79d135de96b9013ce8b", "score": "0.46202555", "text": "public function listing()\n {\n\t$wargear = Wargear::all()->sortBy('name'); \n\t\n return view('wargear.list', ['wargear' => $wargear, 'renow_levels' => $this->renow_levels]);\n }", "title": "" }, { "docid": "abfb82ef9da6cf2ba53345ad8fdb2d97", "score": "0.46160287", "text": "public function show($id)\n {\n $edificio = Building::findOrFail($id);\n\n return view('buildings.show', compact('edificio'));\n }", "title": "" } ]
9fe16e3f9a641ca6db4e51bcb8d39707
OneToMany (owning side) Add TesourariaDote
[ { "docid": "5198915dbbfac3d79a7b11d11e8b49d5", "score": "0.0", "text": "public function addFkTesourariaDotes(\\Urbem\\CoreBundle\\Entity\\Tesouraria\\Dote $fkTesourariaDote)\n {\n if (false === $this->fkTesourariaDotes->contains($fkTesourariaDote)) {\n $fkTesourariaDote->setFkTesourariaUsuarioTerminal($this);\n $this->fkTesourariaDotes->add($fkTesourariaDote);\n }\n \n return $this;\n }", "title": "" } ]
[ { "docid": "9ced59131033e5aa64432653e8a25a79", "score": "0.6579498", "text": "public function addAction()\n {\n \n $commentaire = new \\Thami\\Bundle\\ExerciseBundle\\Entity\\Commentaires();\n \n $commentaire->setCommentaire('very great!!!');\n $commentaire->setCreated(new \\DateTime);\n $commentaire->setUpdated(new \\DateTime);\n \n // Pour l'auteur\n // 1. On utilise doctrine;\n $doctrine = $this->getDoctrine();\n\n // 2. On récupére le dêpot des utilisateurs\n $entityRepository = $doctrine->getRepository('ThamiExerciseBundle:Users');\n\n // 3. On récupére l'utilisateur avec l'id 1\n $user = $entityRepository->find(1);\n\n // 4. On renseigne la propriété concernant l'auteur\n $commentaire->setUsers($user);\n \n // 2. On récupére le dêpot des utilisateurs\n $entityRepository_post = $doctrine->getRepository('ThamiExerciseBundle:Posts');\n\n // 3. On récupére l'utilisateur avec l'id 1\n $post = $entityRepository_post->find(1);\n\n // 4. On renseigne la propriété concernant l'auteur\n $commentaire->setPosts($post);\n\n // Enfin, on récupére le gestionnaire d'entités de doctrine\n $entityManager = $doctrine->getManager();\n // Voir : http://www.doctrine-project.org/api/orm/2.5/class-Doctrine.ORM.EntityManager.html\n\n // On ajouter cet article à la liste des entités à créer/modifier\n $entityManager->persist($commentaire);\n\n\n // On \"demande\" à doctrine de repércuter sur la base de données\n $entityManager->flush();\n\n\n //return $this->render('SamisoftExercice1Bundle:Default:add.html.twig');\n \n return $this->render('ThamiExerciseBundle:Commentaire:add.html.twig');\n }", "title": "" }, { "docid": "81c7ecde492be0c807171878efc14766", "score": "0.62328184", "text": "public function add() {\n\t\n\t\t$CategoriaArray = $this->Categoria->find('all');\n\t\t$this->set('CategoriaArray', $CategoriaArray);\n\t\t\n\t\tif($this->request->is('post')) {\n\t\t\t$this->Tipordene->create();\n\t\t\t\n\t\t//\tdebug($this->request->data);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tif ($this->Tipordene->saveAll($this->request->data)) {\n\t\t\t\t\t$this->Session->setFlash('El Tipo de orden ha sido creado satisfactoriamente','flash_custom');\n\t\t\t\t\t$this->redirect(array('action' => '/index'));\n\t\t\t\t} else {\n\t\t\t\t\t$this->Session->setFlash('El Tipo de orden no pudo ser creado Intente nuevamente', 'flash_error');\n\t\t\t\t} \n\t\t}\n\t\n\t}", "title": "" }, { "docid": "0e329eb86bc6150df76cd63bb86fb6f3", "score": "0.61053854", "text": "public function postulaciones()\n {\n return $this->belongsToMany('App\\Candidato','postulacions');\n }", "title": "" }, { "docid": "4621af49d49c44f8306b4dd626da6baa", "score": "0.6022148", "text": "public function Dominios(){\n\n return $this -> belongsToMany(Dominio::class, 'detalle_maestro_dominio','IdMaestro','IdDominio')->withTimestamps();\n\n }", "title": "" }, { "docid": "3e1340b3239e6e879acb34f549009502", "score": "0.6012015", "text": "public function add() {\n $user = $this->_db->prepare(\"INSERT INTO \n pedidos (referencia, id_usuario) \n VALUES \n (:referencia, :usuario)\");\n \n $referencia = static::getRef();\n\n $datos = filter_input_array(INPUT_POST, $_POST);\n $user->bindParam(':referencia', $referencia, PDO::PARAM_STR);\n $user->bindParam(':usuario', $datos['usuario'], PDO::PARAM_INT);\n $user->execute();\n $this->id = $this->_db->lastInsertId();\n }", "title": "" }, { "docid": "44afb85dfa4dae4b52faa1356b027cbc", "score": "0.59692097", "text": "public function save() {\n //$content->name = \"secondo contenuto\";\n //$content->content = \"gfh fhgfh gfhg gfh dggfh \";\n //$content->save();\n\n //$content = Content::find(2);\n //$tag1 = new Tag(); // creo un oggetto Tag\n //$tag1->name = 'tag-2';\n //$tag2 = new Tag(); // creo un oggetto Tag\n //$tag2->name = 'tag-3';\n //$content->tags()->save($tag); // salva il tag e lo associa a content\n //$tag = Tag::find(2);\n\n $comment->content()->save($comment); // salva il commento e lo associa a content\n\n\n //$comment1 = new Comment(); // creo un oggetto commento\n //$comment1->body = 'sec commento!';\n //$content->comments()->save($comment); // salva il commento e lo associa a content\n //$comment2 = new Comment(); // creo un oggetto commento\n //$comment2->body = 'terz commento!';\n //$content->comments()->saveMany([$comment1,$comment2]); // salva più commenti\n //$content->comments()->createMany([['body' => 'quint comment'],['body' => 'sest comment']]);\n //$comment = Comment::find(2);\n //dd(Content::find(1)->comments());\n\n }", "title": "" }, { "docid": "48300d9436158c0c9205169d1e243056", "score": "0.58381283", "text": "public function poste() {\n return $this->belongsTo('\\App\\Poste', 'poste_id', 'poste_id');\n }", "title": "" }, { "docid": "16d29c7b571c11eb1b74895bffcfbf44", "score": "0.5782744", "text": "public function store(Request $request){\n //cadastro no bd\n $doacao = new Doacao($request->all());\n\n $doador = Doador::find($request->doador_id);\n\n $doador->doacoes()->save($doacao);\n\n $necessita = Necessita::find($request->necessita_id);\n\n $necessita->doacao()->save($doacao);\n\n return \"Cadastro concluido\";\n }", "title": "" }, { "docid": "74d97b6b7fa1ab927139f99142fb6e5d", "score": "0.5774071", "text": "public function store()\n {\n // Armazena o próprio objeto\n parent::store();\n \n parent::saveComposite('Mensagem', 'conversa_id', $this->id, $this->mensagens);\n parent::saveAggregate('Integrante', 'conversa_id', 'usuario_id', $this->id, $this->usuarios);\n }", "title": "" }, { "docid": "b84149829990b54557df4d769742c917", "score": "0.5760501", "text": "public function negeri(){\n return $this->belongsTo('App\\Models\\Negeri','Kod_Negeri','Kod_Negeri');\n }", "title": "" }, { "docid": "534d76becc7b5d7d389f1fc89170fd17", "score": "0.575744", "text": "public function paquetes(){\n return $this\n ->belongsToMany(Paquete::class,'paquete_traslados','id_traslado','id_paquete')->withTimestamps(); \n }", "title": "" }, { "docid": "c42d1d5c34b4b8197b3acb3cde5c0a67", "score": "0.5728418", "text": "function _saveAttachedObjects() {\n\t\t// pega os relacionamentos many-to-many\n\t\t$fks = $this->oTable->getForeignKeys();\n\t\tforeach($fks as $fk => $prop) {\n\t\t\tif($prop['type'] == 'many-to-many') {\n\t\t\t\t// verifica se está setada, se é um array e se contém itens para salvar\n\t\t\t\tif(isset($this->$fk) && is_array($this->$fk) && count($this->$fk) > 0) {\n\t\t\t\t\t// pegamos os dados do campo deste objeto\n\t\t\t\t\t$field = $this->oTable->getFieldProperties($fk['linkOn']);\n\t\t\t\t\t// se o campo deste objeto estiver vazio e not-null está definido como true\n\t\t\t\t\tif($field) {\n\t\t\t\t\t\tif(!isset($this->$field['name']) && $this->$field['name'] == '' && (isset($field['not-null']) && ($field['not-null'] || $field['not-null'] == 'true'))) {\n\t\t\t\t\t\t\t// passa para o próximo item\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// ok, tem itens para salvar, então fazemos um foreach\n\t\t\t\t\t\n\t\t\t\t\tforeach($this->$fk as $item) {\n\t\t\t\t\t\t// verificamos se é um objeto LumineBase\n\t\t\t\t\t\tif(is_a($item,'LumineBase')) {\n\t\t\t\t\t\t\t// pega a chave primaria do elemento que acabou de ser salvo\n\t\t\t\t\t\t\t$key = $item->oTable->sequence_key;\n\t\t\t\t\t\t\tif($key == '') {\n\t\t\t\t\t\t\t\t$k = $item->oTable->getPrimaryKeys();\n\t\t\t\t\t\t\t\t$key = $k[0];\n\t\t\t\t\t\t\t\tif($key=='') {\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$p = $item->oTable->getFieldProperties($key);\n\t\t\t\t\t\t\tif($item->$key == '') {\n\t\t\t\t\t\t\t\t$item->save();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// verifica se já existe um objeto no relacionamento gravado com os códigos de ambos\n\t\t\t\t\t\t\t$tp = $this->oTable->getFieldProperties($prop['linkOn']);\n\t\t\t\t\t\t\t$ip = $item->oTable->getFieldProperties($key);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$v1 = $item->$key == '' ? NULL : is_numeric($item->$key) ? $item->$key : \"'\" . $this->escape($item->$key) . \"'\";\n\t\t\t\t\t\t\t$v2 = $this->$prop['linkOn'] == '' ? NULL : is_numeric($this->$prop['linkOn']) ? $this->$prop['linkOn'] : \"'\".$this->escape($this->$prop['linkOn']).\"'\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$sql = \"SELECT * FROM {$prop['table']} WHERE {$ip['column']} \".($v1 === NULL?'is null':'='.$v1).\" and {$tp['column']} \" . ($v2 === NULL?'is null':'='.$v2);\n\t\t\t\t\t\t\tLumineLog::logger(1,'Verificando se este itens não estão salvos:'. $sql,__FILE__,__LINE__);\n\t\t\t\t\t\t\t// efetua a consulta\n\t\t\t\t\t\t\t$rs = $this->conn->Execute( $this->parseSQL($sql) );\n\t\t\t\t\t\t\t// se o numero de linhas for = 0, salva o registro\n\t\t\t\t\t\t\tif($rs->NumRows() == 0) {\n\t\t\t\t\t\t\t\t$sql = \"INSERT INTO {$prop['table']} ({$ip['column']}, {$tp['column']}) values ({$item->$key}, {$this->$prop['linkOn']})\";\n\t\t\t\t\t\t\t\tLumineLog::logger(1,'Salvando os itens:'. $sql,__FILE__,__LINE__);\n\t\t\t\t\t\t\t\t$this->conn->Execute( $this->parseSQL($sql) );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//se for somente os códigos\n\t\t\t\t\t\t} else { \n\t\t\t\t\t\t\t//armazena o valor\n\t\t\t\t\t\t\t$valor = sprintf('%d',$item);\n\t\t\t\t\t\t\t// pega a classe de referencia\n\t\t\t\t\t\t\t$item = Util::Import($prop['class']);\n\n\t\t\t\t\t\t\t// pega a chave primaria do elemento que acabou de ser salvo\n\t\t\t\t\t\t\t$key = $item->oTable->sequence_key;\n\t\t\t\t\t\t\tif($key == '') {\n\t\t\t\t\t\t\t\t$k = $item->oTable->getPrimaryKeys();\n\t\t\t\t\t\t\t\t$key = key($k);\n\t\t\t\t\t\t\t\tif($key=='') {\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// propriedades\n\t\t\t\t\t\t\t$ip = $item->oTable->getFieldProperties( $key );\n\t\t\t\t\t\t\t$tp = $this->oTable->getFieldProperties( $prop['linkOn'] );\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t$sql = \"SELECT * FROM {$prop['table']} WHERE {$ip['column']} = $valor and {$tp['column']} = \" . $this->$prop['linkOn'];\n\t\t\t\t\t\t\tLumineLog::logger(1,'Verificando se este itens não estão salvos:'. $sql,__FILE__,__LINE__);\n\t\t\t\t\t\t\t// efetua a consulta\n\t\t\t\t\t\t\t$rs = $this->conn->Execute( $this->parseSQL($sql) );\n\t\t\t\t\t\t\t// se o numero de linhas for = 0, salva o registro\n\t\t\t\t\t\t\tif($rs->NumRows() == 0) {\n\t\t\t\t\t\t\t\t$sql = \"INSERT INTO {$prop['table']} ({$ip['column']}, {$tp['column']}) values ($valor, {$this->$prop['linkOn']})\";\n\t\t\t\t\t\t\t\tLumineLog::logger(1,'Salvando os itens:'. $sql,__FILE__,__LINE__);\n\t\t\t\t\t\t\t\t$this->conn->Execute( $this->parseSQL($sql) );\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\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// se for do tipo on-to-many\n\t\t\tif($prop['type'] == 'one-to-many') {\n\t\t\t\t// tenta pegar a lista de objetos\n\t\t\t\t$list = $this->$fk;\n\n\t\t\t\t// se for um array e se tiver itens\n\t\t\t\tif(is_array($list) && count($list) > 0) {\n\t\t\t\t\t// para cada item no array\n\t\t\t\t\tforeach($list as $item) {\n\t\t\t\t\t\t// verifica se é um objeto e se tem o método salvar\n\t\t\t\t\t\tif(is_object($item) && method_exists($item, 'save')) {\n\t\t\t\t\t\t\t// pega o nome da coluna\n\t\t\t\t\t\t\t$fp = $item->oTable->getFieldProperties( $prop['linkOn'] );\n\t\t\t\t\t\t\t// se tiver valor na PROPRIEDADE\n\t\t\t\t\t\t\tif(isset($this->{$fp['linkOn']})) {\n\t\t\t\t\t\t\t\t// pega o valor\n\t\t\t\t\t\t\t\t$value = $this->{$fp['linkOn']};\n\t\t\t\t\t\t\t// do contrário, se encontrar a coluna igual a do elemento\n\t\t\t\t\t\t\t} else if( ($p = $this->oTable->getColumnProperties($fp['linkOn'])) && isset($this->{$p['name']})) {\n\t\t\t\t\t\t\t\t// pega o valor pelo nome \n\t\t\t\t\t\t\t\t$value = $this->{$p['name']};\n\t\t\t\t\t\t\t// do contrário\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// não achou nada\n\t\t\t\t\t\t\t\t$value = null;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t$lp = $item->oTable->getColumnProperties($prop['linkOn']);\n\t\t\t\t\t\t\t$item->{$lp['name']} = $value;\n\t\t\t\t\t\t\t// chama o método salvar\n\t\t\t\t\t\t\t$item->save();\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\n\t\t\t// se for do tipo many-to-one\n\t\t\tif($prop['type'] == 'many-to-one') {\n\t\t\t\t// pega o item\n\t\t\t\t$obj = $this->$fk;\n\t\t\t\t// se for um objeto e tiver o método save\n\t\t\t\tif(is_object($obj) && method_exists($obj, 'save')) {\n\t\t\t\t\t// tenta salvar\n\t\t\t\t\t$obj->save();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "395d228995038660a42a93824c633c34", "score": "0.57184505", "text": "function add($obj) {\n \n if ($this->manytomany) {\n if($obj instanceof Dormio_Model) {\n $obj->save();\n $pk = $obj->ident();\n } else {\n $pk = $obj;\n }\n \n $intermediate = new Dormio_Manager($this->_through, $this->_db, $this->dialect);\n $fields = array($this->_map_parent_field, $this->_map_self_field);\n $stmt = $intermediate->insert($fields);\n $stmt->execute(array($this->_parent->ident(), $pk));\n \n } else {\n if ($obj->_meta->model != $this->_meta->model)\n throw new Dormio_Manager_Exception('Can only add like objects');\n// update the foreign key on the supplied object\n $obj->__set($this->_field, $this->_parent->ident());\n $obj->save();\n }\n }", "title": "" }, { "docid": "775ae24080b1eee5c3e172c099d4152d", "score": "0.56785905", "text": "public function addpost(){\n\t\t$seek = $this->Travel->findByid($this->request->data[\"Travel\"][\"id\"]);\n\n\t\t//si l'utilisateur tape l'url sans passer par le formulaire, le renvoyer\n\t\tif (!$this->Travel->findByid($this->request->data[\"Travel\"][\"id\"])) {\n\t\t\t$this->redirect(\"/travels/index_travel\");\n\t\t\tdie();\n\t\t}\n\n\t\t//Transformer les données de Travel à Post\n\t\t$this->request->data[\"Post\"][\"user_id\"] = $this->Auth->user(\"id\");\n\t\t$this->request->data[\"Post\"][\"travel_id\"] = $this->request->data[\"Travel\"][\"id\"];\n\t\t$this->request->data[\"Post\"][\"content\"] = $this->request->data[\"Travel\"][\"content\"];\n\n\t\t//Créer dans posts et rediriger vers le mur du voyage\n\t\t$this->Travel->Post->create();\n\t\tif ($this->Travel->Post->save($this->request->data)) {\n\t\t\t$this->redirect(\n array('controller' => 'travels', 'action' => 'page' , $this->request->data[\"Travel\"][\"id\"]));\n\t\t}\n\t}", "title": "" }, { "docid": "400ab2d57c927972403d3a98a87e8df3", "score": "0.566673", "text": "public function posiciones() {\n\n return $this->hasMany('App\\Models\\Bodega\\Posicion','bodega_id');\n }", "title": "" }, { "docid": "5e5ca15eb9bf6ccb6d1148e8bdaa63e1", "score": "0.5665762", "text": "public function negeri()\n {\n return $this->belongsTo(Negeri::class, 'negeri_id');\n }", "title": "" }, { "docid": "6aba981fb4934930ee404672278b6d08", "score": "0.5663519", "text": "public function coordinador()\n {\n return $this->hasOne('App\\Admin\\Coordinadores','cord_idUsuario','id' ); \n }", "title": "" }, { "docid": "e5c1c7250d9ad8590f1831abf4d89675", "score": "0.56543076", "text": "public function etudiants(){\n\n \n return $this->hasMany('App\\Etudiant');\n \n }", "title": "" }, { "docid": "7ea7a81d553cef86bdb8260b24d28c98", "score": "0.5652558", "text": "public function addMensajesManyChild($idMensajes,$idpadre\n , $descripcionMensajes\n , $asuntoMensajes\n ,$idViaje\n ){\n \t // file contents \n $con = Propel::getWriteConnection(ViajeTableMap::DATABASE_NAME);\n \n \t $con->beginTransaction();\n \n try{\n $mensajes = new Mensajes(); \n if(!$mensajes->exists($idMensajes) && !is_null ($idMensajes)){\n $mensajes = $mensajes ->get($idMensajes);\n \t }\n else{\n \n $mensajes= $mensajes->add($idMensajes,$idpadre\n , $descripcionMensajes\n , $asuntoMensajes\n ,$idViaje\n );\n }\n \n $this->addMensajes($mensajes);\n $this->save($con);\n $con->commit();\n return $this;\n \t }catch (Exception $e) {\n \t\n \t\t $con->rollback(); //en caso de que se produzca alguna excepcion la transacci�n ser� cancelada\n \t\t //throw $e;\n return false;\n \t\t}\n \t // End of user code\n }", "title": "" }, { "docid": "d55e91bfa97e9ff7437c5c94b069c4a6", "score": "0.5638016", "text": "public function addarticle() {\n\n # Récupération des Catégories\n $categories = $this->getDoctrine()\n ->getRepository(Categorie::class)\n ->findAll();\n\n # Création d'un nouvel article\n $article = new Article();\n\n # Récupération d'un Auteur de l'article\n $auteur = $this->getDoctrine()\n ->getRepository(Auteur::class)\n ->find(1);\n\n $article->setAuteur($auteur);\n\n # Créer le formuaire permettant l'ajout d'un article\n $form = $this->createFormBuilder($article)\n\n ->add('titre', TextType::class, [\n 'required' => true,\n 'label' => false,\n 'attr' => [\n 'class' => 'form-control',\n 'placeholder' => 'Titre de l\\'Article'\n ]\n ])\n\n ->add('categorie', EntityType::class, [\n 'class' => Categorie::class,\n 'choice_label' => 'libelle',\n 'required' => true,\n 'expanded' => false,\n 'multiple' => false,\n 'attr' => [\n 'class' => 'form-control'\n ]\n ])\n\n ->add('contenu', TextareaType::class, [\n 'required' => true,\n 'label' => false,\n 'attr' => [\n 'class' => 'form-control'\n ]\n ])\n\n ->add('featuredimage', FileType::class, [\n 'required' => false,\n 'label' => false,\n 'attr' => [\n 'class' => 'dropify'\n ]\n ])\n\n ->add('special', CheckboxType::class, [\n 'required' => false,\n 'label' => false,\n ])\n\n ->add('spotlight', CheckboxType::class, [\n 'required' => false,\n 'label' => false,\n ])\n\n ->add('submit', SubmitType::class, [\n 'label' => 'Publier',\n 'attr' => [\n 'class' => 'btn btn-primary'\n ]\n ])\n\n ->getForm();\n\n # Affichage du Formulaire dans la Vue\n return $this->render('article/ajouterarticle.html.twig', [\n 'form' => $form->createView()\n ]);\n\n }", "title": "" }, { "docid": "212ea1b0821333a89e274fadf7dd97b5", "score": "0.5627547", "text": "public function inventarios(){\n return $this->hasMany('App\\Models\\Detalleprestamo');\n }", "title": "" }, { "docid": "ec5c25bbedd9891aadaf4805ae5679ec", "score": "0.56200004", "text": "function add($tareaspresupuestocliente_id) {\n $this->layout = 'ajax';\n if (!empty($this->data)) {\n $this->Materiale->create();\n if ($this->Materiale->save($this->data)) {\n $this->Session->setFlash(__('El material ha sido añadido', true));\n $this->redirect($this->referer());\n } else {\n $this->flashWarnings(__('El material no se pudo añadir. Prueba de nuevo.', true));\n }\n }\n $tareaspresupuestocliente = $this->Materiale->Tareaspresupuestocliente->find('first',array('contain' => 'Presupuestoscliente','conditions' => array('Tareaspresupuestocliente.id' => $tareaspresupuestocliente_id)));\n $this->set(compact('tareaspresupuestocliente_id','tareaspresupuestocliente'));\n }", "title": "" }, { "docid": "b4821edd0601a8be76a9e21fb7addfcf", "score": "0.5609649", "text": "public function tipoTarjetas()\n {\n return $this->hasMany('app\\tipoTarjeta');\n }", "title": "" }, { "docid": "391b4d707f1349acad4c6045d489b0cb", "score": "0.5605131", "text": "private function salvar($p_nombre) {\n $em = $this->getDoctrine()->getManager();\n $tipoEnchape = new TipoEnchape($p_nombre); \n $em->persist($tipoEnchape);\n $em->flush();\n }", "title": "" }, { "docid": "862bc449fa0ec2fbe1221ee8c7d55ff1", "score": "0.5597704", "text": "public function dias(){\n return $this->hasMany(Dia::class,'asesoria_id');\n }", "title": "" }, { "docid": "8ed403a6b91f3df2a3570d330888df6c", "score": "0.55894166", "text": "function Pase()\n {\n return $this->hasOne('App\\Centros', 'id', 'centro_origen_id');\n\n\t// Logica correcta con nuevo modelo Pases\n //return $this->hasOne('App\\Pases', 'inscripcion_id', 'id');\n }", "title": "" }, { "docid": "5fd038b63c822236de1b711cca00f236", "score": "0.55808055", "text": "public function initialize()\n\t\n\t{\n $this->has_many('estudiante'); // tiene muchos \n \n }", "title": "" }, { "docid": "0230ff8ccb6eb64d8018a24847903acd", "score": "0.5580313", "text": "function add(Notas $objeto) {\n $campos = self::_getCampos($objeto);\n unset($campos['idNotas']);\n \n $r = $this->db->insertParameters(self::TABLA, $campos, false);\n $r = $this->db->getId();\n \n if($r!=-1){\n $campos['idNotas'] = $this->db->getId();\n Self::_createBackup($campos);\n \n }\n \n return $r;\n }", "title": "" }, { "docid": "6469cab871283409a9bfd5103f08e9a7", "score": "0.5579577", "text": "public function save() {\n\n parent::save();\n\n //RECALCULAR EL PRESUPUESTO\n $this->getIDPsto()->save();\n }", "title": "" }, { "docid": "7e008266e55ebd8b46eb6e1f29b23086", "score": "0.5576684", "text": "public function add(){\n\n\t\t$data = $this->request->data;\n\n\t\tif($this->request->is('post') && !empty($data)){\n\n\t\t\t//Add palestrante\n\t\t\tif($this->Palestrante->save($data)){\n\t\t\t\t$this->Session->setFlash('Palestrante e Palestra salvas com sucesso!','sucesso');\n\t\t\t\t$this->redirect(array('action'=>'index'));\n\t\t\t}else{\n\t\t\t\t$this->Session->setFlash('Erro ao adicionar! Tente novamente.','erro');\n\t\t\t}\n\n\t\t}\t\n\t}", "title": "" }, { "docid": "fedbea0d3dafadacb0ce82879df0eeb9", "score": "0.5570905", "text": "public function antecedentes(){\n return $this->hasOne(Antecedente::class);\n }", "title": "" }, { "docid": "161177ca6e1d72bd8dc88a6ee9dd90c2", "score": "0.55637157", "text": "public function postAjoutAnnonce(){\n\n //Validation de la requete\n Request()->validate([\n 'titre' => ['required', 'max:60'],\n 'description' => ['required'],\n 'pieces' => ['required'],\n 'type' => ['required'],\n 'ameublement' => ['required'],\n 'nbcoloc' => ['required'],\n 'ville' => ['required'],\n 'cp' => ['required'],\n 'surface' => ['required'],\n 'prix' => ['required'],\n 'photo1' => ['required', 'image'],\n 'photo2' => ['required', 'image'],\n 'photo3' => ['required', 'image'],\n ]);\n \n //Enregistrer l'image sur notre serveur et récuperer le chemin de l'image\n $img1 = Request('photo1')->store('annonces');\n $img2 = Request('photo2')->store('annonces');\n $img3 = Request('photo3')->store('annonces');\n\n //Récuperer les données de la requête\n $logement = new Logement;\n $logement->Titre = Request('titre');\n $logement->Type = Request('type');\n $logement->Superficie = Request('surface');\n $logement->NbPieces = Request('pieces');\n $logement->Ville = Request('ville');\n $logement->CP = Request('cp');\n $logement->NbLocataire = Request('nbcoloc');\n $logement->Prix = Request('prix');\n $logement->Description = Request('description');\n $logement->Ameublement = Request('ameublement');\n $logement->Image_1 = $img1;\n $logement->Image_2 = $img2;\n $logement->Image_3 = $img3;\n\n //Enregistrer la publication dans la BDD\n $logement->save();\n\n $log = auth()->user()->Login;\n\n //Récuperer l'ID de l'utilisateur et de son logement publié\n $idUtilisateur = Utilisateur::select('IdUtilisateur')->where('Login', $log)->get();\n $idLogement = Logement::select('IdLogement')->where('Image_1', $img1)->get();\n\n $location = new Location;\n\n //Inscrire les ID dans la table \"Location\"\n $location->IdUtilisateur = $idUtilisateur[0]->IdUtilisateur;;\n $location->IdLogement = $idLogement[0]->IdLogement;\n\n //Sauvegarder les ID \n $location->save();\n\n sleep(3);\n \n return redirect(\"/boncoloc/monAnnonce\"); \n }", "title": "" }, { "docid": "3b04d4fbdd5793cd846596bce2380009", "score": "0.556163", "text": "function add() {\n\t\t$this->CantineRegular->create();\n\t\t$this->CantineRegular->save(null, false);\n\t\t$this->setAction('edit', $this->CantineRegular->getID());\n\t}", "title": "" }, { "docid": "84811a8ea942df0309660ece91324612", "score": "0.55395246", "text": "function grabar(){\n\t\tforeach ($this->get_recibos() as $key => $recibo) {\t\t\t\n\t\t\tforeach ($recibo->get_conceptos() as $key => $concepto) {\t\t\t\t\n\t\t\t\t$concepto->save();\n\t\t\t}\n\t\t}\n\t\t$this->save();\n\t}", "title": "" }, { "docid": "a87bd13e40d7466b5f8f5462c7497cf6", "score": "0.55355906", "text": "public function Sesion(){\n return $this->hasMany('App\\Models\\Sesion', 'id_cliente');\n }", "title": "" }, { "docid": "4b225dd72345f18f223015d8c6c38a20", "score": "0.55306315", "text": "public function add($id = NULL)\n {\n if (!is_null($id)) {\n $societes = $this->Societes->get($id);\n } else $societes = $this->Societes->newEntity($this->request->getData());\n\n // Si la requête est de type post ou put, alors nous traitons les données reçues du formulaire\n if ($this->request->is(['post',\n 'put'])\n ) {\n if (!is_null($id))\n $this->Societes->patchEntity($societes, $this->request->getData()); else\n $societes = $this->Societes->newEntity($this->request->getData());\n\n // on vérifie si les mots de passe sont identiques\n if ($this->Societes->save($societes)) {\n // on créé le compte comptable associé\n // récupération du compte parent rattaché au type de tiers\n $this->Flash->success(__('Société enregistrée'));\n\n } else {\n $this->Flash->error(__('Erreur dans la sauvegarde'));\n }\n return $this->redirect(['action' => 'index']);\n }\n $this->set(compact('societes'));\n }", "title": "" }, { "docid": "abcd7af00564dc90c17fee4feb540343", "score": "0.5499726", "text": "public function ouvrirVote(){\n //les réponses s'affichent dans la table réponse\n\n}", "title": "" }, { "docid": "b5b834a67da7ff3ef90f29211dbbed7a", "score": "0.5488338", "text": "public function add($titulo, $comentario, $entrevista, $foto, $data, $entrevistado, $reporter, $ativo){\n \t try \n {\n $dados = array(\n 'titulo' => $titulo,\n 'comentario' => $comentario,\n 'entrevista' => $entrevista,\n 'foto' => $foto,\n 'data' => $data,\n 'entrevistado'=> $entrevistado,\n 'reporter' => $reporter,\n \t\t 'ativo' \t => $ativo);\n \t parent::insert($dados);\n }\n catch (Exception $e)\n {\n echo 'Opa... algum problema aconteceu.';\n }\n }", "title": "" }, { "docid": "6ee11f83acf0c475342a559acff7e99c", "score": "0.54825443", "text": "public function usuariovista()\n {\n return $this->hasmany('App\\Admin\\UsuarioVista','usvis_IdUsuario','id' ); \n }", "title": "" }, { "docid": "1b573bc7e56789caa526de96d23e5a0d", "score": "0.5481327", "text": "public function save( Entity $acordo )\n\t{\n\t\t//TODO Validar se todos os dados da entidade estão preenchidos antes de salvar\t\t\t\n\t\t$numero_gerador = new Gera_Numero_Acordo();\n\t\t\t\t\t\t\n\t\t$numero_acordo = $numero_gerador->gerarNumeroAcordo();\n\t\t\n\t\t$dados_para_salvar = Array(\n\t\t\t\t\t\t\t\t\t\"numero\" => $numero_acordo,\n\t\t\t\t\t\t\t\t\t\"sentido\" => $acordo->getSentido(),\n\t\t\t\t\t\t\t\t\t\"observacoes_internas\" => $acordo->getObservacao(),\n\t\t\t\t\t\t\t\t\t\"data_inicial\" => $acordo->getInicio()->format(\"Y-m-d\"),\n\t\t\t\t\t\t\t\t\t\"validade\" => $acordo->getValidade()->format(\"Y-m-d\"),\n\t\t\t\t\t\t\t\t\t\"registro_ativo\" => \"S\",\n\t\t);\n\t\t\n\t\t$acordo_salvo = $this->db->insert(\"CLIENTES.acordos_taxas_locais_globais\", $dados_para_salvar);\n\t\t\t\t\t\t\n\t\tif( ! $acordo_salvo )\n\t\t{\n\t\t\t$message = \"Não foi possível salvar o acordo de taxas locais\";\n\t\t\tlog_message('error',$message);\n\t\t\tthrow new Exception($message);\n\t\t}\t\n\t\t\n\t\t$id_acordo_salvo = $this->db->insert_id();\n\t\t$acordo->setId((int)$id_acordo_salvo);\n\t\t\n\t\t/** Salva os cliente do acordo de taxas **/\n\t\t$this->load->model(\"Taxas_Locais_Acordadas/clientes_acordos_taxas_model\");\n\t\t$this->load->model(\"Taxas_Locais_Acordadas/cliente_acordo_entity\");\n\t\t\n\t\tforeach( $acordo->getClientes() as $cliente )\n\t\t{\t\t\t\n\t\t\t$acordo_cliente = new Cliente_Acordo_Entity();\n\t\t\t$acordo_cliente->setIdAcordo($id_acordo_salvo);\n\t\t\t$acordo_cliente->setIdCliente((int)$cliente->getId());\n\t\t\t\n\t\t\t$acordo_cliente_model = new Clientes_Acordos_Taxas_Model();\n\t\t\t$acordo_cliente_model->save($acordo_cliente);\n\t\t}\t\n\t\t\n\t\t/** Salvar os portos dos acordos **/\n\t\t//TODO Criar às classes para salvar os portos dos acordos\n\t\t\n\t\t/** Salva às taxas do acordo **/\n\t\t$model_taxas = new Taxa_Acordo_Model();\n\t\t\n\t\tforeach( $acordo->getTaxas() as $taxa )\n\t\t{\n\t\t\t$taxa->setId((int)$id_acordo_salvo);\n\t\t\t$model_taxas->save($taxa);\n\t\t}\t\n\t\t\n\t\treturn $id_acordo_salvo;\n\t\t\n\t}", "title": "" }, { "docid": "70be36de13b617504ae602c10d0fca74", "score": "0.54758835", "text": "public function secciones(){\n return $this->hasMany(Seccione::class);\n }", "title": "" }, { "docid": "6327b215bbc983dd96f8bc64cde197be", "score": "0.54753006", "text": "private function test2()\r\n {\r\n \r\n // WARNING:\r\n // Guarda en cascada por el belongsTo de M010_Persona\r\n $persona = new M010_Persona(\r\n array(\r\n \"nombre\" => \"Isabel de York\",\r\n \"hijos\" => array(\r\n new M010_Persona( // hijo\r\n array(\r\n \"nombre\" => \"Enrique VIII\",\r\n \"hijos\" => array(\r\n new M010_Persona( // nieto\r\n array(\r\n \"nombre\" => \"Elizabeth I\"\r\n )\r\n ),\r\n new M010_Persona( // nieto\r\n array(\r\n \"nombre\" => \"Eduardo VI\"\r\n )\r\n )\r\n )\r\n )\r\n )\r\n )\r\n )\r\n );\r\n \r\n if (!$persona->save())\r\n {\r\n Logger::struct( $persona->getErrors(), \"Falla test m010\" );\r\n }\r\n else\r\n {\r\n echo \"Guarda Ok<br/>\";\r\n }\r\n }", "title": "" }, { "docid": "b08019876928622ccde29de11bc5920a", "score": "0.5471917", "text": "public function addposteAction()\n {\n\n\t\t$sessionutilisateur = new Zend_Session_Namespace('utilisateur');\n\t\t//$this->_helper->layout->disableLayout();\n \t\t$this->_helper->layout()->setLayout('layoutpublicesmcadmin');\n\t\t\n\tif (!isset($sessionutilisateur->login)) {$this->_redirect('/administration/login');}\nif($sessionutilisateur->confirmation != \"\"){$this->_redirect('/administration/confirmation');}\n\n\tif (isset($_POST['ok']) && $_POST['ok']==\"ok\") {\n\tif (isset($_POST['poste_utilisateur']) && $_POST['poste_utilisateur']!=\"\" && isset($_POST['poste_tache']) && count($_POST['poste_tache']) > 0) {\n\t\t\n\t\t\t\t\tfor($i = 0; $i < count($_POST['poste_tache']); $i++){\n $poste_mapper = new Application_Model_EuPosteMapper();\n $poste = new Application_Model_EuPoste();\n\t\t\t\t\t\n\t\t\t\t\t\t\t$poste_compteur = $poste_mapper->findConuter() + 1;\t\t\t\t\t\n\t\t\t\t\t\n $poste->setPoste_id($poste_compteur)\n ->setPoste_tache($_POST['poste_tache'][$i])\n ->setPoste_utilisateur($_POST['poste_utilisateur'])\n\t\t\t\t\t\t\t ;\n $poste_mapper->save($poste);\n }\n\t\t\t\n\n\t\t$this->_redirect('/administration/listposte');\n\t\t} else { $this->view->error = \"Champs * obligatoire ...\"; } \n\t\t}\n\t\t\n }", "title": "" }, { "docid": "43c20f9d60b3050129ff0f2683964387", "score": "0.54628533", "text": "public function save() {\n \n parent::save();\n $oDaoAcordoMovimentacao = new cl_acordomovimentacao;\n $oDaoAcordo = new cl_acordo;\n \n /**\n * Acerta movimentacao corrente para alterar um movimento anterior\n */\n $sCampos = \"ac10_sequencial, ac10_acordomovimentacaotipo, \";\n $sCampos .= \"ac10_acordo, ac09_acordosituacao \";\n $sWhere = \"ac10_sequencial = {$this->iCodigo} \";\n $sOrderBy = \"ac10_sequencial desc limit 1 \";\n $sSqlAcordoMovimentacao = $oDaoAcordoMovimentacao->sql_query_acertaracordo(null, $sCampos, $sOrderBy, $sWhere);\n \n $rsSqlAcordoMovimentacao = $oDaoAcordoMovimentacao->sql_record($sSqlAcordoMovimentacao);\n $iNumRowsAcordoMovimentacao = $oDaoAcordoMovimentacao->numrows;\n if ($iNumRowsAcordoMovimentacao > 0) {\n \n /**\n * Altera situacao do movimento\n */\n $oAcordoMovimentacao = db_utils::fieldsMemory($rsSqlAcordoMovimentacao, 0);\n $oDaoAcordo->ac16_sequencial = $oAcordoMovimentacao->ac10_acordo;\n $oDaoAcordo->ac16_acordosituacao = $oAcordoMovimentacao->ac09_acordosituacao;\n $oDaoAcordo->alterar($oDaoAcordo->ac16_sequencial);\n if ($oDaoAcordo->erro_status == 0) {\n throw new Exception($oDaoAcordo->erro_msg);\n }\n }\n return $this;\n }", "title": "" }, { "docid": "0b5e61f266c5147eeb92574e5df82fac", "score": "0.5457502", "text": "public function buildRelations()\n {\n $this->addRelation('Inventario', '\\\\Inventario', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':idtienda',\n 1 => ':idtienda',\n ),\n), null, null, 'Inventarios', false);\n }", "title": "" }, { "docid": "797df99a20ed0793754e76aa591fce88", "score": "0.5448388", "text": "public function sottoclasse()\n {\n return $this->belongsToMany('App\\Sottoclasse', \"EsercentiSclassi\", \"id_domanda_esercente\", \"id_sottoclasse\");\n }", "title": "" }, { "docid": "e80debd52d59ae67d84d7b0baebc37f9", "score": "0.5446427", "text": "public function inserir() \n {\n $dadosForm = [\n 'situacao' => 'Ativo',\n 'acordo' => 'REQUERENTE',\n 'numero' => '1234',\n ];\n\n $processo = Processo::create($dadosForm);\n\n echo \"<hr><b>SITUAÇÃO DO PROCESSO:</b> $processo->situacao <br>\n <b>ACORDO:</b> $processo->acordo <br>\n <b>NUMERO:</b> $processo->numero <br><br>\";\n\n $processo->advogados()->sync([1,2]);\n\n $advogados = $processo->advogados;\n\n echo \"<b>Advogados do processo</b><br>\";\n\n foreach ($advogados as $advogado) {\n echo \"Nome: $advogado->nome <br>\n Celular: $advogado->celular <br>\n OAB: $advogado->oab <br>\";\n }\n }", "title": "" }, { "docid": "ee0e9ab12a0981b431672bffd1545fab", "score": "0.54404", "text": "public function savePadresAction()\n {\n try {\n $dbm = new DbmAdmisiones($this->get(\"db_manager\")->getEntityManager());\n $content = trim(file_get_contents(\"php://input\"));\n $data = json_decode($content, true);\n\n $SolicitudEntity = $dbm->getRepositorioById('Solicitudadmision', 'solicitudadmisionid', $data['solicitudadmisionid']);\n\n if (empty($SolicitudEntity)) {\n return new View(\"Error no se encontro ninguna solicitud\" . $data['solicitudadmisionid'], Response::HTTP_NOT_FOUND);\n }\n\n $Familiar = $data['idtutor'] ? $dbm->getRepositorioById('Padresotutores', 'padresotutoresid', $data['idtutor']) : new Padresotutores();\n $Familiar->setSolicitudadmisionid($SolicitudEntity);\n $Familiar->setNombre($data['nombre']);\n $Familiar->setApellidopaterno($data['apellidopaterno']);\n $Familiar->setApellidomaterno($data['apellidomaterno']);\n $Familiar->setCelular($data['celular']);\n $Familiar->setCorreo($data['correo']);\n $Familiar->setTutorid($dbm->getRepositorioById('Tutor', 'tutorid', $data['parentesco']));\n $Familiar->setAlumnoinstituto($data['alumnoInstituto']);\n $Familiar->setExlux($data['exalumno'] ? $data['exalumno'] : 0);\n $Familiar->setGeneracionid($data['generacion'] ? $dbm->getRepositorioById('Generacion', 'generacionid', $data['generacion']) : null);\n $Familiar->setEspecificaralumno($data['especificarAlumnoInstituto']);\n $dbm->saveRepositorio($Familiar);\n\n $padresotutores = $dbm->getRepositoriosById('Padresotutores', 'solicitudadmisionid', $data['solicitudadmisionid']);\n $padres = array();\n foreach ($padresotutores as $p) {\n array_push($padres, array(\n \"padre\" =>$p, \"nacionalidad\" => $dbm->getRepositoriosById('Nacionalidadporpadresotutores', 'padresotutoresid', $p->getPadresotutoresid())\n ));\n }\n return new View(array(\"solicitud\" => $SolicitudEntity, \"padres\" => $padres), Response::HTTP_OK);\n } catch (\\Exception $e) {\n return new View($e->getMessage(), Response::HTTP_BAD_REQUEST);\n }\n }", "title": "" }, { "docid": "e83f0d79a09fb765cde7ea750284e7b6", "score": "0.5439578", "text": "public function representante()\n\t{\n return $this->belongsTo('App\\Models\\Representante','representante_id');\n }", "title": "" }, { "docid": "579b8204da0dfb05c8cc10565ada55c6", "score": "0.5438111", "text": "public function troca1(){\n return $this->hasMany('App\\Troca', 'usuario_id1');\n }", "title": "" }, { "docid": "874d1998009e599eed7da48c142f9b04", "score": "0.54302776", "text": "public function Trafico()\n {\n return $this->hasMany('App\\Trafico_tarea');\n }", "title": "" }, { "docid": "8100b98841a02b9a33190fd762d2304d", "score": "0.5424066", "text": "public function troca2(){\n return $this->hasMany('App\\Troca', 'usuario_id2');\n }", "title": "" }, { "docid": "a6e87e00e1a75312541f00754b20c90b", "score": "0.54161334", "text": "public function entrevistadores()//buena relacion\r\n {\r\n return $this->belongsToMany('avaa\\User','becarios_entrevistadores','becario_id','entrevistador_id');\r\n }", "title": "" }, { "docid": "c8f3940914567768e5f7356906231371", "score": "0.54106325", "text": "public function discos()\n {\n //Hasmany: parametros\n //1. Modelo a relacionar\n //2. Clave foranea del artista (papá) en los discos (hijos)\n return $this->hasMany('App\\Disco', 'ArtistId');\n }", "title": "" }, { "docid": "3c7560b87acf2b0a9b7d8f7c6bc037a3", "score": "0.5410552", "text": "public function refeicaos() \n {\n return $this->belongsToMany(Refeicao::class);\n \n }", "title": "" }, { "docid": "f6de322545f59b427b80617b33707559", "score": "0.5407892", "text": "public function temperaturas()\n {\n return $this->hasMany('App\\Temperatura', 'comuna', 'id');\n }", "title": "" }, { "docid": "6d2b28f43dd3e8265fe49628b2fbd389", "score": "0.5407818", "text": "public function negara(){\n return $this->belongsTo('App\\Models\\Negara','Kod_Negara','Kod_Negara');\n }", "title": "" }, { "docid": "7b4782d6c4c03e8160c24f8467c5e4f2", "score": "0.5405398", "text": "public function add() {\t\n\t\t$this->loadModel('Serie');\n\t\tif ($this->request->is('post')) {\n $this->Serie->create();\n\t\t\t// stockage du $session dans une variable\n\t\t\t$lieuDirection = $this->Session->read('Lieu.direction');\n if ($this->Serie->save($this->request->data)) {\n $this->Session->setFlash(__('La serie a ete sauvegarde'));\n\t\t\t\t\t// test redirection après création d'une série\n\t\t\t\t\treturn $this->redirect(array('controller' => 'tournaments', 'action' => 'index'));\n } else {\n $this->Session->setFlash(__('La serie n\\'a pas ete sauvegardee. Merci de reessayer.'));\n }\n }\n }", "title": "" }, { "docid": "53b273eb77434cb0b19cdd60d7657e34", "score": "0.5398342", "text": "public function direcciones(){\n\t\treturn $this->hasMany('App\\DireccionActual', 'DiA_ID_Pais');\n\t}", "title": "" }, { "docid": "de0b1d86d0da8295f76c8f973e926c26", "score": "0.53941894", "text": "public function docente(){\n return $this->hasOne('sice\\Models\\Docente');\n }", "title": "" }, { "docid": "14c3296fc08accc135e76f484ca40542", "score": "0.53924495", "text": "public function addAction(){\n\t\t\t$this->setResponse('view');\n\t\t\t$con = new DetalleConsecutivos();\n\t\t\t$con2 = new DetalleConsecutivos();\n\t\t\t//cargamos el objeto mediantes los metodos setters\n\t\t\t$con->id = '0';\n\t\t\t$con->empresa_id = Session::get(\"id_empresa\");\n\t\t\t$con->descripcion = $_REQUEST[\"descripcion\"];\n\t\t\t$con->prefijo = $_REQUEST[\"prefijo\"];\n\t\t\t$con->desde = $_REQUEST[\"desde\"];\n\t\t\t$con->hasta = $_REQUEST[\"hasta\"];\n\t\t\t$con->resolucion_dian = $_REQUEST[\"resolucion_dian\"];\n\t\t\t$con->fecha = $_REQUEST[\"fecha\"];\n\t\t\t$con->tipo_documento_id = $_REQUEST[\"tipo_documento_id\"];\n\t\t\t$con->activo = $_REQUEST['activo'];\n\t\t\t\n\t\t\tif($con2->count(\"activo = '0' and tipo_documento_id = '$con->tipo_documento_id'\")==0){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tif($con->save()){\n\t\t\t\t\t\tFlash::success(\"Se insertó correctamente el registro\");\n\t\t\t\t\t\t/*echo \"<script>jQuery('#consecutivos_add').reset();</script>\";*/\n\t\t\t\t\t}else{\n\t\t\t\t\t\tFlash::error(\"Error: No se pudo insertar registro\");\t\n\t\t\t\t\t\tforeach($con->getMessages() as $mensajes){\n\t\t\t\t\t\t\tFlash::error(\"$mensajes\");\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t\n\t\t\t\tFlash::error(\"YA SE ENCUENTRA ACTIVO ESTE TIPO DE DOCUMENTO \");\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\n\t }", "title": "" }, { "docid": "ac2d5fb255288d31c74a5fde51963578", "score": "0.539229", "text": "public function addUsuarioMany($idUsuario,$idPerfil , $informacionPerfil\n , $gustosPerfil\n , $nacimientoPerfil\n \n , $passwordUsuario\n , $nombreUsuario\n , $apellidosUsuario\n , $avatarUsuario\n , $emailUsuario\n ){\n \t // file contents \n $con = Propel::getWriteConnection(ViajeTableMap::DATABASE_NAME);\n \n \t $con->beginTransaction();\n \n try{\n $usuario = new Usuario(); \n if(!$usuario->exists($idUsuario) && !is_null ($idUsuario)){\n $usuario = $usuario ->get($idUsuario);\n \t }\n else{\n \n $usuario= $usuario->add($idUsuario,$idPerfil , $informacionPerfil\n , $gustosPerfil\n , $nacimientoPerfil\n \n , $passwordUsuario\n , $nombreUsuario\n , $apellidosUsuario\n , $avatarUsuario\n , $emailUsuario\n );\n }\n \n $this->addUsuario($usuario);\n $this->save($con);\n $con->commit();\n return $this;\n \t }catch (Exception $e) {\n \t\n \t\t $con->rollback(); //en caso de que se produzca alguna excepcion la transacci�n ser� cancelada\n \t\t //throw $e;\n return false;\n \t\t}\n \t // End of user code\n }", "title": "" }, { "docid": "ff86ee2930d667eafb430dd8d1400e95", "score": "0.5392075", "text": "public function pedido()\n {\n return $this->belongsToMany(Pedido::class, 'PedidoItem', 'idPedido', 'idProduto');\n }", "title": "" }, { "docid": "e853095234430b802f1ae353021619bc", "score": "0.5390162", "text": "function asignar_obj_poa($poa_id){\n $data['dato_poa'] = $this->mpoa->dato_poa($poa_id,$this->gestion);\n //lista de pbjetivos estrategicos filtrado por poa_id\n $data['lista_obje']=$this->mpoa->get_list_objetivos_estrategicos($poa_id);\n $ruta = 'mantenimiento/vasignar_obje_poa';\n $this->construir_vista($ruta, $data);\n }", "title": "" }, { "docid": "392a495f2bbdbd0ef9c1640b730fc00e", "score": "0.53893083", "text": "public function tipo(){\n return $this->hasOne('Modules\\Admin\\Entities\\Gym\\TipoMembresia','id','tipo_id');\n \n }", "title": "" }, { "docid": "34d4043656e9304530f19dd00d184cdd", "score": "0.53891134", "text": "public function insertarComentario($cContenido, $cTemaID, $cUsuarioID)\n{\n $nueva = new Comentario;\n $nueva->contenido = $cContenido;\n $nueva->temaid = $cTemaID;\n $nueva->usuarioid = $cUsuarioID;\n $nueva->fecha = date('Y-m-d H:i:s');\n $nueva->save();\n}", "title": "" }, { "docid": "2dae54e38860328e585ec9ff2f7963aa", "score": "0.5388505", "text": "public function save() {\r\n //daca NU se face INSERT\r\n if($this->getId() == true){\r\n $this->update();\r\n }else {\r\n $this->insert();\r\n }\r\n }", "title": "" }, { "docid": "269ca6463e7aff46ec09f98e68bb29cc", "score": "0.5383637", "text": "public function productos(){\n return $this->hasMany('\\App\\Producto'); \n }", "title": "" }, { "docid": "4ad9cfb521736411e0888d4cd2b7b2f6", "score": "0.53818196", "text": "public function generoSerie()\n {\n return $this->hasManyThrough(\n GeneroSerie::class,\n Genero::class,\n 'campeonato_id', // Foreign key on Genero table...\n 'genero_id', // Foreign key on GeneroSerie table...\n 'id', // Local key on countries table...\n 'id' // Local key on users table...\n );\n }", "title": "" }, { "docid": "5ad77373c2cf95845359a8d62f063647", "score": "0.537668", "text": "public function peliculas()\n {\n return $this->belongsToMany('App\\Trafico', 'pelicula_trafico','id_trafico','id_pelicula');\n }", "title": "" }, { "docid": "1ec51aff2433b9b89b64d265c449d244", "score": "0.5373785", "text": "public function plantillacliente()\n {\n return $this->hasMany(PlantillaClientes::class, 'plantilla_jugada_id', 'id');\n }", "title": "" }, { "docid": "e6ca41032ad228d8ce6d2f98814e75bd", "score": "0.53691393", "text": "public function documentos()\n {\n return $this->belongsToMany('Documento','id_user', 'documento_usuario');\n }", "title": "" }, { "docid": "c6366603505cbee26776aad6c3e0608f", "score": "0.53665745", "text": "function NuevaAsistencia($id_usuario, $fecha, $observacion, $pausaActiva)\n{\n $reloj = reloj();\n $Asistencia = new Int_control_asistencia;\n $Asistencia->user_id = $id_usuario;\n $Asistencia->fecha = $fecha;\n $Asistencia->hora_entrada = $reloj['thora'];\n $Asistencia->hora_salida_almuerzo = '';\n $Asistencia->hora_entrada_almuerzo = '';\n $Asistencia->hora_salida = '';\n $Asistencia->evento = 'Entrada/';\n $Asistencia->observaciones = $observacion;\n $Asistencia->hora_diaria = '';\n $Asistencia->pausa_activa = $pausaActiva;\n $Asistencia->save();\n}", "title": "" }, { "docid": "d09d94e58c4f1bdcec37eb6927fd6ad6", "score": "0.5363103", "text": "public function traslado(){\n return $this->hasMany(Traslado::class,'compra_id');\n }", "title": "" }, { "docid": "70b6d03524e140f78fb5a6d082e75ac0", "score": "0.53621304", "text": "public function idioma(){\n\n return $this->hasMany('App\\Idioma','id_tipo_idioma','id_tipo_idioma');\n\n }", "title": "" }, { "docid": "c9eaf122785c57192a225b7a064b119e", "score": "0.5357769", "text": "public function pedido(){\n return $this->hasOne(Pedido::class);\n }", "title": "" }, { "docid": "0b2c6f82f58ac6ead804f8bce3651d84", "score": "0.53558177", "text": "public function auxiliar()\n {\n return $this->hasOne('App\\Models\\Auxiliar', 'cod_persona', 'id');\n }", "title": "" }, { "docid": "3a20d62f24cf41418a86ef8471d860bd", "score": "0.53506666", "text": "function addRelationship( $original, $new ) {\n\t\t// Check if not the same element\n\t\tif ( !$original || !$new )\n\t\t\treturn false;\n\t\t\n\t\t// Add the post_meta between the original and the transalted element\n\t\t$this->addPostMeta( $original, '_translation_of', $new );\n\t\t$this->addPostMeta( $new, '_translation_of', $original );\n\t\n\t\t// check if there is more element to save or not\n\t\t$also_translation_of = get_post_meta( $original, '_translation_of' );\n\t\t\n\t\t// If this is an array, so add the link with all the other elements between them\n\t\tif ( is_array( $also_translation_of ) ) {\n\t\t\tforeach ( $also_translation_of as $a ) {\n\t\t\t\t// check not same elements\n\t\t\t\tif ( $a == $new )\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\t$this->addPostMeta( $new, '_translation_of', $a );\n\t\t\t\t$this->addPostMeta( $a, '_translation_of', $new );\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "76f41c3c0a19a07812d55beacf9775dd", "score": "0.5350095", "text": "public function lider()\n {\n return $this->hasOne('App\\Admin\\Lideres','lid_idUsuario','id' ); \n }", "title": "" }, { "docid": "a446bda510f0432d719aaf84058a2d8d", "score": "0.53499794", "text": "public function addOther() {\n\t\tif ($this->request->is('post')) {\n\n\t\t\t$this->loadModel('Annuaire');\n\n\t\t\t\n\t\t\t\n\t\t\t// ON vérifie si un participant a déja été inscrit par cet utilisateur\n\t\t\t$participants_deja = $this->Pratiquant->find('all', array(\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'user_create_id' => $this->request->data['Pratiquant']['user_create_id'],\n\t\t\t\t\t'event_id' => $this->request->data['Pratiquant']['event_id']\n\t\t\t\t)\n\t\t\t));\n\n\t\t\t// ON vérifie si une delegation a déja été créée par cet utilisateur\n\t\t\t$this->loadModel('Delegation');\n\t\t\t$delegations_deja = $this->Delegation->find('first', array(\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'user_create_id' => $this->request->data['Pratiquant']['user_create_id'],\n\t\t\t\t\t'event_id' => $this->request->data['Pratiquant']['event_id']\n\t\t\t\t)\n\t\t\t));\n\n\t\t\t$this->loadModel('EventsPrestation');\n\t\t\t$eventsP = $this->EventsPrestation->find('all', array('conditions' => array('event_id' =>$this->request->data['Pratiquant']['event_id'])));\n\n\n\t\t\n\t\n\t\t\tif(count($participants_deja) != 0 and count($delegations_deja) == 0){\n\t\t\t\t$this->request->data['Delegation']['num'] = $this->Formatage->genererNumDelegation($this->request->data['Pratiquant']['event_id']);\n\t\t\t\t$this->request->data['Delegation']['user_create_id'] = $this->request->data['Pratiquant']['user_create_id'];\n\t\t\t\t$this->request->data['Delegation']['user_modify_id'] = $this->request->data['Pratiquant']['user_create_id'];\n\t\t\t\t$this->request->data['Delegation']['event_id'] = $this->request->data['Pratiquant']['event_id'];\n\t\t\t\t$this->request->data['Delegation']['name'] = 'JNH-'.$this->Session->read('Auth.User.username');\n\t\t\t\t$this->request->data['Delegation']['engagement'] = 1;\n\t\t\t\t\n\t\t\t\t// Création DELEGATION\n\t\t\t\t$this->Delegation->create();\n\t\t\t\t$this->Delegation->save($this->request->data);\n\n\t\t\t\t$delegation_id = $this->Delegation->getLastInsertId();\n\n\t\t\t} else{\n\t\t\t\t$delegation_id = $delegations_deja['Delegation']['id'];\n\t\t\t}\n\n\t\t\t\n\n\n\t\t\tif($this->request->data['Pratiquant']['personne_id'] != ''){\n\n\n\n\n\t\t\t\tif($this->Verif->verifAnnuaire($this->request->data['Pratiquant']['personne_id']) != 'no_found'){\n\t\t\t\t\t$this->request->data['Pratiquant']['annuaire_id'] = $this->Formatage->verifTbAnnuaire($this->request->data['Pratiquant']['personne_id']);\n\t\t\t\t} else {\n\n\t\t\t\t\t$this->loadModel('Personne');\n\t\t\t\t\t$personne = $this->Personne->find('first', array('conditions' => array('id' => $this->request->data['Pratiquant']['personne_id'])));\n\n\t\t\t\t\t$this->request->data['Annuaire']['personne_id'] = $this->request->data['Pratiquant']['personne_id'];\n\t\t\t\t\t$this->request->data['Annuaire']['controller_origin'] = 'participants';\n\t\t \t\t\t$this->request->data['Annuaire']['action_origin'] = 'addOther';\n\t\t \t\t\tif($personne['Personne']['PersonneCivilite'] == 'M'){\n\t\t\t\t\t\t$this->request->data['Annuaire']['photo_thumb'] = '/img/uploads/annuaire_img/img_thumb/man.png';\n\t\t\t\t\t\t$this->request->data['Annuaire']['photo_view'] = '/img/uploads/annuaire_img/img_view/man.png';\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->request->data['Annuaire']['photo_thumb'] = '/img/uploads/annuaire_img/img_thumb/woman.png';\n\t\t\t\t\t\t$this->request->data['Annuaire']['photo_view'] = '/img/uploads/annuaire_img/img_view/woman.png';\n\t\t\t\t\t}\n\n\t\t\t\t\t$this->Annuaire->create();\n\t\t\t\t\t$this->Annuaire->save($this->request->data);\n\t\t\t\t\t$this->request->data['Pratiquant']['annuaire_id'] = $this->Annuaire->getLastInsertId();\n\t\t\t\t}\n\n\t\t\t\tif(\n\t\t\t\t\t$this->Formatage->verifTbPratiquant(\n\t\t\t\t\t\t$this->request->data['Pratiquant']['personne_id'], \n\t\t\t\t\t\t$this->request->data['Pratiquant']['event_id']\n\t\t\t\t\t) == 'no_found'\n\t\t\t\t){\n\n\t\t\t\t\t$this->request->data['Pratiquant']['personne_id'] = $this->request->data['Pratiquant']['personne_id'];\t\t\t\t\t\t\t\n\t\t\t\t\t$this->request->data['Pratiquant']['delegation_id'] = $delegation_id;\n\n\t\t\t\t} else {\n\t\t\t\t\t$this->Session->setFlash('La personne que vous tentez d\\'ajouter est déjà inscrite ou en cours d\\'inscription !', 'msg_false');\n\t\t\t\t\t$this->redirect(array('controller' => 'events', 'action' => 'accueil'));\n\n\t\t\t\t}\n\n\t\t\t} else {\n\n\t\t\t\tif(\n\n\t\t\t\t\t$this->Formatage->verifTbPersonne(\n\t\t\t\t\t\t$this->request->data['Personne']['PersonneNom'], \n\t\t\t\t\t\t$this->Formatage->dateFRtoUS($this->request->data['Personne']['PersonneDdn'])\n\t\t\t\t\t) == 'no_found'\n\t\t\t\t\t\t){\n\n\t\t\t\t\t$datas = array (\n\t\t\t\t\t\t'PersonneCivilite' => $this->request->data['Personne']['PersonneCivilite'],\n\t\t\t\t\t\t'PersonneNom' => $this->request->data['Personne']['PersonneNom'],\n\t\t\t\t\t\t'PersonnePrenom' => $this->request->data['Personne']['PersonnePrenom'],\n\t\t\t\t\t\t'PersonneDdn' => $this->Formatage->dateFRtoUS($this->request->data['Personne']['PersonneDdn']),\n\t\t\t\t\t\t'PersonneNationalite' => '100', // Table: Nationalite\n\t\t\t\t\t\t'PersonnePays' => 'FR',\n\t\t\t\t\t\t'AdressePays' => 'FR'\n\t\t\t\t\t);\n\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tini_set('soap.wsdl_cache_enabled', 0);\n\t\t\t\t\t\tini_set('soap.wsdl_cache_ttl', 0);\n\t\t\t\t\t\tif(DB == 'preproduction'){$wsdl = 'http://ffh.ex-alto.com/soap/RequestFederation.wsdl';}\nif(DB == 'production'){$wsdl = 'https://licences.handisport.org/soap/RequestFederation.wsdl';}\n\t\t\t\t\t\t$options = array( 'compression' => true, 'exceptions' => false, 'trace' => true );\n\t\t\t\t\t\t$client = new SoapClient( $wsdl, $options );\n\t\t\t\t\t\t// On ajoute la personne, le tableau est applati pour la transmission; le résultat est dans la variable résultat\n\t\t\t\t\t\t$resultat = $client->ajouterPersonne ( serialize( $datas ) );\n\t\t\t\t\t\t$rs = @unserialize( $resultat );\n\t\t\t\t\t\t$this->request->data['Pratiquant']['personne_id'] = $rs['ok']['PersonneId'];\n\t\t\t\t\t\t$this->request->data['Pratiquant']['ws_exalto'] = 1;\n\n\n\t\t\t\t\t\t// ALERT EMAIL\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t$event = $this->Pratiquant->Event->findById($this->request->data['Pratiquant']['event_id']);\n\t\t\t\t\t\t$personne = $this->Pratiquant->Personne->findById($this->request->data['Pratiquant']['personne_id']);\t\t\t\t\t\n\t\t\t\t\t\t$email = new CakeEmail();\n\t\t\t\t\t\t$email->from(array($this->Auth->user('email') => 'Extranet Handisport'));\n\t\t\t\t\t\t$email->to('s.ginot@handisport.org');\n\t\t\t\t\t\t$email->viewVars(array(\n\t\t\t\t\t\t\t\t'personne_id' => $this->request->data['Pratiquant']['personne_id'],\n\t\t\t\t\t\t\t\t'personne' => $personne['Personne']['NF'].' né(e) le'.$personne['Personne']['PersonneDdn'],\n\t\t\t\t\t\t\t\t'event_libelle' => $event['Event']['name'],\n\t\t\t\t\t\t\t\t'user' => $this->Session->read('nom_prenom_user'),\n\t\t\t\t\t\t));\n\t\t\t\t\t\t$email->subject('WS EXALTO | Evenement - add Pratiquant Other JNH 2017 -'.$event['Event']['name'].' | '.$this->request->data['Pratiquant']['personne_id'].' | '.$personne['Personne']['NF'].' | Personne insérée - add Other');\n\t\t\t\t\t\t$email->template('ws_exalto','default');\n\t\t\t\t\t\t$email->emailFormat('html');\n\t\t\t\t\t\tif(alerteEmail){$email->send();}\n\n\t\t\t\t\t} catch (SoapFault $fault) {\n\t\t\t\t\t\ttrigger_error(\"SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})\", E_USER_ERROR);\n\t\t\t\t\t} \n\n\t\t\t\t\t$this->request->data['Pratiquant']['delegation_id'] = $delegation_id;\n\t\t\t\n\t\t\t\t\t$this->request->data['Annuaire']['controller_origin'] = 'participants';\n\t\t\t \t\t$this->request->data['Annuaire']['action_origin'] = 'addOther';\n\t\t\t \t\tif($personne['Personne']['civilite'] == 'M'){\n\t\t\t\t\t\t$this->request->data['Annuaire']['photo_thumb'] = '/img/uploads/annuaire_img/img_thumb/man.png';\n\t\t\t\t\t\t$this->request->data['Annuaire']['photo_view'] = '/img/uploads/annuaire_img/img_view/man.png';\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->request->data['Annuaire']['photo_thumb'] = '/img/uploads/annuaire_img/img_thumb/woman.png';\n\t\t\t\t\t\t$this->request->data['Annuaire']['photo_view'] = '/img/uploads/annuaire_img/img_view/woman.png';\n\t\t\t\t\t}\n\t\t\t\n\t\t\t\t\t$this->Annuaire->create();\n\t\t\t\t\t$this->request->data['Annuaire']['personne_id'] = $this->request->data['Pratiquant']['personne_id'];\n\t\t\t\t\t$this->Annuaire->save($this->request->data);\n\t\t\t\t\t$this->request->data['Pratiquant']['annuaire_id'] = $this->Annuaire->getLastInsertId();\n\n\t\t\t\t\t\n\n\t\t\t\t} else {\n\n\t\t\t\t\tif($this->Formatage->verifTbAnnuaire($this->Formatage->verifTbPersonne($this->request->data['Personne']['PersonneNom'], $this->Formatage->dateFRtoUS($this->request->data['Personne']['PersonneDdn']))) != 'no_found'){\n\t\t\t\t\t\t$this->request->data['Pratiquant']['annuaire_id'] = $this->Formatage->verifTbAnnuaire($this->Formatage->verifTbPersonne($this->request->data['Personne']['PersonneNom'], $this->Formatage->dateFRtoUS($this->request->data['Personne']['PersonneDdn'])));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->request->data['Annuaire']['controller_origin'] = 'participants';\n\t\t\t \t\t\t$this->request->data['Annuaire']['action_origin'] = 'addOther';\n\t\t\t\t\t\t$this->Annuaire->create();\n\t\t\t\t\t\t$this->Annuaire->save($this->request->data);\n\t\t\t\t\t\t$this->request->data['Pratiquant']['annuaire_id'] = $this->Annuaire->getLastInsertId();\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif(\n\t\t\t\t\t\t$this->Formatage->verifTbPratiquant(\n\t\t\t\t\t\t\t$this->Formatage->verifTbPersonne($this->request->data['Personne']['PersonneNom'], $this->Formatage->dateFRtoUS($this->request->data['Personne']['PersonneDdn'])), \n\t\t\t\t\t\t\t$this->request->data['Pratiquant']['event_id']\n\t\t\t\t\t\t) == 'no_found'\n\t\t\t\t\t){\n\n\t\t\t\t\t\t$this->request->data['Pratiquant']['personne_id'] = $this->Formatage->verifTbPersonne($this->request->data['Personne']['PersonneNom'], $this->Formatage->dateFRtoUS($this->request->data['Personne']['PersonneDdn']));\t\t\t\t\t\t\t\n\t\t\t\t\t\t$this->request->data['Pratiquant']['delegation_id'] = $delegation_id;\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->Session->setFlash('La personne que vous tentez d\\'ajouter est déjà inscrite ou en cours d\\'inscription !', 'msg_false');\n\t\t\t\t\t\t$this->redirect(array('controller' => 'events', 'action' => 'accueil'));\n\n\t\t\t\t\t}\n\n\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\n\n\t\t\t$this->loadModel('Convoque');\n\t\t\t$fiche_convoque = $this->Convoque->find('count', array('conditions' => array('personne_id' => $this->request->data['Pratiquant']['personne_id'])));\n\t\t\tif($fiche_convoque == 1){\n\t\t\t\t$this->request->data['Pratiquant']['convoque'] = 1;\n\t\t\t}\n\n\t\t\t\n\n\t\t\t$this->Pratiquant->create();\n\t\t\tif ($this->Pratiquant->save($this->request->data)) {\n\n\t\t\t\t\tforeach($eventsP as $key => $row){\n\t\t\t\t\t\t\t$this->Pratiquant->PratiquantsPrestation->create();\n\t\t\t\t\t\t\t$dataEP = array(\n\t\t\t\t\t\t\t\t'participant_id' => $this->Pratiquant->id,\n\t\t\t\t\t\t\t\t'event_id' => $this->request->data['Pratiquant']['event_id'],\n\t\t\t\t\t\t\t\t'events_prestation_id' => $row['EventsPrestation']['id']\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t$this->Pratiquant->PratiquantsPrestation->save($dataEP);\n\t\t\t\t\t}\n\n\t\t\t\t\t$this->Pratiquant->PratiquantsTransport->create();\n\t\t\t\t\t$dataPT = array(\n\t\t\t\t\t\t'participant_id' => $this->Pratiquant->id,\n\t\t\t\t\t\t'event_id' => $this->request->data['Pratiquant']['event_id']\n\t\t\t\t\t);\n\t\t\t\t\t$this->Pratiquant->PratiquantsTransport->save($dataPT);\n\n\t\t\t\t\t$this->Pratiquant->updateAll(\n\t\t\t\t\t\tarray('delegation_id' => $this->request->data['Pratiquant']['delegation_id']),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'Pratiquant.user_create_id' => $this->Session->read('Auth.User.id'),\n\t\t\t\t\t\t\t'Pratiquant.event_id' => $this->request->data['Pratiquant']['event_id']\n\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\n\n\t\t\t\t\t$this->loadModel('EventsGestionnaire');\n\t\t\t\t\t$gestionnaires = $this->EventsGestionnaire->find('list', array('fields' => array('user_id'), 'conditions' => array('event_id' => $this->request->data['Pratiquant']['event_id'])));\n\t\t\t\t\t$this->loadModel('User');\n\t\t\t\t\t$destinataires = $this->User->ProfilR->find('list', array(\n\t\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t\t'ProfilR.module_id' => $this->Session->read('module_id'),\n\t\t\t\t\t\t\t'ProfilR.user_id' => $gestionnaires\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'contain' => array('User'),\n\t\t\t\t\t\t'fields' => array('User.email'),\n\t\t\t\t\t\t'group' => array('User.email')\n\t\t\t\t\t));\t\n\n\t\t\t\t\t// ALERT EMAIL\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t$event = $this->Pratiquant->Event->findById($this->request->data['Pratiquant']['event_id']);\n\t\t\t\t\t\t$this->Pratiquant->contain('Annuaire', 'Personne');\n\t\t\t\t\t\t$participant = $this->Pratiquant->findById($this->Pratiquant->id);\n\n\t\t\t\t\t\t$email = new CakeEmail();\n\t\t\t\t\t\t$email->from(array($this->Auth->user('email') => 'Extranet Handisport'));\n\t\t\t\t\t\t$email->to($destinataires);\n\t\t\t\t\t\t$email->viewVars(array(\n\t\t\t\t\t\t\t\t'user' => $participant['Personne']['NF'],\n\t\t\t\t\t\t\t\t'event_libelle' => $event['Event']['name']\n\t\t\t\t\t\t));\n\t\t\t\t\t\t$email->subject('Extranet Handisport | '.$event['Event']['short_name'].' | '.$participant['Personne']['NF'].' | Nouvelle inscription démarée (Autre personne dans délégation)');\n\t\t\t\t\t\t$email->template('begin_engagement_jnh','default');\n\t\t\t\t\t\t$email->emailFormat('html');\n\t\t\t\t\t\tif(alerteEmail){$email->send();}\n\n\t\t\t\t\t$this->Session->setFlash('L\\'inscription a démarrée avec succès !', 'msg_add');\t\t\n\t\t\t\t\t$this->redirect(array('action' => 'view',$this->Pratiquant->id));\t\t\n\t\t\t} else {\n\t\t\t\t$this->Session->setFlash('L\\'inscription n\\'a pas démarrée !', 'msg_false');\n\t\t\t\t$this->redirect(array('controller' => 'event', 'action' => 'accueil'));\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "3ea5a3b8873aa7c582d3528ca56a2121", "score": "0.53486556", "text": "public function coordinadoriglesias()\n { \n /*Un alumno esta relacion con un Usuario*/\n return $this->hasMany('App\\Admin\\CoordinadoresIglesias', 'cordigle_idCoordinador', 'cord_Id' ); \n }", "title": "" }, { "docid": "0428b70d3a7af079f070e3dc90dd5bd5", "score": "0.53454024", "text": "public function fiche() {\n return $this->hasMany(\"App\\Models\\Plantea\", \"id\");\n }", "title": "" }, { "docid": "b24f2f24d2e0051672747d91beb635a7", "score": "0.53426164", "text": "public function lineaspedido(){\n return $this->hasMany(LineaPedido::class);\n }", "title": "" }, { "docid": "31bdc6e701419ac92b8e230ffa71630c", "score": "0.53418785", "text": "public function ventes()\n {\n return $this->hasMany('App\\Vente');\n }", "title": "" }, { "docid": "417b57eb74dc7d4755911fcb076b825c", "score": "0.53406894", "text": "public function listePaniers(){ \n return $this->belongsToMany('App\\Panier', 'revue_panier'); /*Les paniers par revue*/ \n }", "title": "" }, { "docid": "bb6cb18bb5d599eaa1fe210232373536", "score": "0.5340262", "text": "public function CreaOrdine($em, $unOrdine){\n $unOrdine->setGraficaId(0);\n $data= new \\DateTime(\"now\");\n $unOrdine->setData($data);\n $unOrdine->setSconto(0);\n $em->persist($unOrdine);\n $em->flush();\n //inserisco stato nella tabella possedere\n $unoStato= new \\AppBundle\\Entity\\Possedere();\n $unoStato->setData($data);\n $unoStato->setOrdineId($unOrdine->getId());\n $unoStato->setStatoId(8);//stato 8 => ordine completato\n $em->persist($unoStato);\n $em->flush();\n //inserisco fase di produzione non avviata in tabella stato produzione\n $unaProduzione=new \\AppBundle\\Entity\\StatoProduzione();\n $unaProduzione->setFaseProduzioneId(0);\n $unaProduzione->setOperatoreId(0);\n $unaProduzione->setOrdineId($unOrdine->getId());\n $em->persist($unaProduzione);\n $em->flush();\n }", "title": "" }, { "docid": "419414e72ded641a0816fb3eb95b662c", "score": "0.53382283", "text": "public function departamentoJefe(){\n /* En una relacion 1:1 'hasOne' es la parte\n a la cual le pertenece un departamento */\n return $this->hasOne('App\\Departamento','jefe_id');\n }", "title": "" }, { "docid": "e3359b6dbca4c224860b551f4d07c008", "score": "0.53356344", "text": "function agregar_Ponencia($ip_id, $año, $titulo, $nombre_evento, $lugar, $te_id)\n\t\t{\n\t\t\t$this->sql = \"insert into ponencia(ip_id, pp_año, pp_titulo, pp_nombre_evento, pp_lugar, te_id) \";\n\t\t\t$this->sql .= \"values($ip_id, $año, '$titulo', '$nombre_evento', '$lugar', $te_id)\";\n\n\t\t\tparent::ejecutaQUERY();\n\t\t}", "title": "" }, { "docid": "9382aea75b61f578eee0aebf4bac5c74", "score": "0.53296626", "text": "public function registroEstudianteAction() {\n\n\n $peticion = $this->getRequest();\n $em = $this->getDoctrine()->getManager();\n\n $estudiante = new Estudiante();\n\n //$estudiante->setCedula($cedu);\n\n $formulario = $this->createForm(new EstudianteType(), $estudiante);\n\n $formulario->handleRequest($peticion);\n\n $periodo = $em->getRepository('administrativoBundle:Periodo')->findOneBy(array(\n 'estado' => 1\n ));\n\n if (!$periodo) {\n $this->get('session')->getFlashBag()->add('Info', 'Periodo académico no activo');\n return $this->redirect($this->generateUrl('_portada'));\n }\n\n $req = $em->getRepository('administrativoBundle:Requisito')->findBy(array('estado' => 1));\n\n\n\n\n\n if ($formulario->isValid()) {\n $em->getConnection()->beginTransaction(); // suspend auto-commit\n try {\n //inserto el nuevo estudiante \n //$estudiante->upload();\n $estudiante->setEstado(1);\n $em->persist($estudiante);\n $em->flush();\n\n\n $inscripcion = new Inscripcion();\n\n $inscripcion->setEstudiante($estudiante);\n $inscripcion->setEstado(0);\n $inscripcion->setPeriodo($periodo);\n\n //le iscribo en el periodo actual al estudiante\n $em->persist($inscripcion);\n $em->flush();\n\n\n //lleno la tabla cumplerequisito\n foreach ($req as $req1) {\n $cumplerequisito = new CumpleRequisito();\n $cumplerequisito->setEstado(0);\n $cumplerequisito->setInscripcion($inscripcion);\n $cumplerequisito->setRequisito($req1);\n\n $em->persist($cumplerequisito);\n $em->flush();\n }\n $em->getConnection()->commit();\n } catch (Exception $e) {\n $em->getConnection()->rollback();\n $this->get('session')->getFlashBag()->add('Info', 'Transacción no se hizo verifique la red o los valores que esta ingresando');\n $url = explode(\"?\", $_SERVER['HTTP_REFERER']);\n $redir = $url[0];\n\n return $this->redirect($redir);\n }\n\n $this->get('session')->getFlashBag()->add('Info', 'Éxito! Estudiante inscrito'\n );\n //llamo al la vista requisito estudiante\n return $this->redirect($this->generateUrl('estudiante_requisito', array('cedula' => $estudiante->getCedula())));\n }\n\n $niveles = $em->getRepository('academicoBundle:Matricula')->getTodosNiveles();\n return $this->render('academicoBundle:Default:registroestudiante.html.twig', array(\n 'periodo' => $periodo,\n 'niveles' => $niveles,\n 'formulario' => $formulario->createView())\n );\n }", "title": "" }, { "docid": "c0a85f87ad7c0bf609b374f348dc5811", "score": "0.53280306", "text": "public function pedidos(){\n return $this->hasMany(Pedido::class);\n }", "title": "" }, { "docid": "d6c04e89a5aaefe96bd8438a5a49ea72", "score": "0.5324633", "text": "public function adeudos(){\n return $this->hasMany(Adeudo::class);\n }", "title": "" }, { "docid": "c863770487f4dedf15a8af956283a524", "score": "0.53228486", "text": "public function competencias(){\n return $this->hasMany(Competencia::class,'dia_id');\n }", "title": "" }, { "docid": "cec2a684a5ae3952630516ac7a943e19", "score": "0.53203493", "text": "public function datosPersonales(){\n return $this->hasMany('App\\DatosPersonales', 'pk_centro');\n }", "title": "" }, { "docid": "08caad0deda50f9a916ca489378c909b", "score": "0.5319604", "text": "public function estadistica()\n {\n return $this->belongsTo('App\\Entities\\Estadistica', 'id', 'detalle_escuela_id');\n }", "title": "" }, { "docid": "81421f1f02a52f558245461cd3369b12", "score": "0.5315816", "text": "public function docentes()\n {\n return $this->hasMany('App\\Docente');\n }", "title": "" }, { "docid": "36da3a44d1549b4150533da0bc13a260", "score": "0.53112066", "text": "public function empleado()\n {\n return $this->hasOne('App\\Admin\\Empleados','emple_idUsuario','id' ); \n }", "title": "" }, { "docid": "02d0f7e5fd4c62134c6f881371e2ce75", "score": "0.53102535", "text": "public function addGrupoMany($idGrupo , $informacionGrupo\n , $nombreGrupo\n ){\n \t // file contents \n $con = Propel::getWriteConnection(ViajeTableMap::DATABASE_NAME);\n \n \t $con->beginTransaction();\n \n try{\n $grupo = new Grupo(); \n if(!$grupo->exists($idGrupo) && !is_null ($idGrupo)){\n $grupo = $grupo ->get($idGrupo);\n \t }\n else{\n \n $grupo= $grupo->add($idGrupo , $informacionGrupo\n , $nombreGrupo\n );\n }\n \n $this->addGrupo($grupo);\n $this->save($con);\n $con->commit();\n return $this;\n \t }catch (Exception $e) {\n \t\n \t\t $con->rollback(); //en caso de que se produzca alguna excepcion la transacci�n ser� cancelada\n \t\t //throw $e;\n return false;\n \t\t}\n \t // End of user code\n }", "title": "" }, { "docid": "f10e548158db11c12b9dfb6335dee15b", "score": "0.53100044", "text": "function registrarAlmuerzo($Asistencia, $reloj, $observaciones)\n{\n $Asistencia->hora_entrada_almuerzo = $reloj;\n $Asistencia->evento = $Asistencia->evento . ' Entrada Almuerzo/ ';\n $Asistencia->observaciones = $Asistencia->observaciones . $observaciones;\n $Asistencia->save();\n}", "title": "" }, { "docid": "7d67ccb3fdddc3d3e1027bbe0a2745bd", "score": "0.5307001", "text": "public function estudiante() {\n return $this->hasOne('App\\Estudiante');\n }", "title": "" }, { "docid": "e40566f653016bc56070bbc418024f84", "score": "0.530671", "text": "public function departamentos(){\n return $this->belongsToMany(\"App\\Models\\Departamento\",'produto_departamento');\n //digitado nome da tabela pois convesao laravel pedi ordem alfabetica\n }", "title": "" }, { "docid": "51459c6462a290a570153a43a7a13b4b", "score": "0.5306398", "text": "public function agregarLote()\n\t{\n\t\t$rei = $_POST['remate'];\n\t\t$car = (int) $_POST['cardinal_re'];\n\t\t$ord = $car + 1;\n\t\t$fec = $_POST['fecha'];\n\t\t$nlo = $_POST['numerolote'];\n\t\t$prv = $_POST['provincia'];\n\t\t$lok = $_POST['municipio'];\n\t\t$cat = $_POST['categoria'];\n\t\t$sub = $_POST['subcategoria'];\n\t\t$cab = $_POST['cabezas'];\n\t\t$raz = $_POST['raza1'].$_POST['raza2'];\n\t\t$pes = $_POST['peso'];\n\t\t$prc = $_POST['precio'];\n\t\t$plz = $_POST['plazo'];\n\t\t$nos = $_POST['ctr'].$_POST['str'].$_POST['cex'].$_POST['sco'].$_POST['csv'].$_POST['nsc'].$_POST['cmi'].$_POST['cgr'].$_POST['notas'];\n\n\n\n\t\t$sql = \"INSERT INTO lotes (fecha_lo, provincia_lo, localidad_lo, categoria_lo, subcategoria, cabezas, raza, peso, precio, plazo, notas, remate_id, num_lo, orden_lo) VALUES (:fec, :prv, :lok, :cat, :sub, :cab, :raz, :pes, :prc, :plz, :nos, :rei, :nlo, :ord)\";\n\t\ttry\n\t\t{\n\t\t\t$stmt = $this->_db->prepare($sql);\n\t\t\t$stmt->bindParam(':fec', $fec, PDO::PARAM_INT);\n\t\t\t$stmt->bindParam(':prv', $prv, PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(':lok', $lok, PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(':cat', $cat, PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(':sub', $sub, PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(':cab', $cab, PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(':raz', $raz, PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(':pes', $pes, PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(':prc', $prc, PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(':plz', $plz, PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(':nos', $nos, PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(':rei', $rei, PDO::PARAM_INT);\n\t\t\t$stmt->bindParam(':nlo', $nlo, PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(':ord', $ord, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t\t$stmt->closeCursor();\n\n\t\t\t}\n\t\tcatch(PDOException $e)\n\t\t{\n\t\t\treturn $e->getMessage();\n\t\t}\n\n\t\t$c = $this->cardinalRemate($ord, $rei);\n\t}", "title": "" } ]
17070b06221bde21d6152c9f5fdf3f17
When the project path configuration is not set then throw exception.
[ { "docid": "9cbb7bbae196cba2a5883ceebe0d41aa", "score": "0.798347", "text": "public function testWhenTheProjectPathConfigurationIsNotSetThenThrowException()\n {\n $app = new Application();\n $app->addTask(Task::SCAN_FILES);\n $app->run();\n }", "title": "" } ]
[ { "docid": "97b5eb01bee1e1e3b46d9c2dfff65b2a", "score": "0.6348303", "text": "public function testConfigFileException()\n {\n $this->expectException(\\InvalidArgumentException::class);\n Framework::config('.this-file-does-not-exist');\n }", "title": "" }, { "docid": "d6453186c707aa715c541589eb4dcb58", "score": "0.60011774", "text": "protected function _init() {\n\t\tparent::_init();\n\t\tif (!is_dir($this->_config['path'])) {\n\t\t\t$message = \"Gettext directory does not exist at path `{$this->_config['path']}`.\";\n\t\t\tthrow new ConfigException($message);\n\t\t}\n\t}", "title": "" }, { "docid": "e557d95a6f4a64e4243a0ab21fbe1984", "score": "0.5981831", "text": "abstract protected function getInvalidConfigPath();", "title": "" }, { "docid": "3a91d34580dba31072fcf8ae3c6d6568", "score": "0.5915947", "text": "public function testConfigFileNotFoundExceptionThrown()\n {\n $this->setExpectedException('Aurex\\Framework\\Config\\ConfigNotFoundException');\n\n $this->parser->parseConfig('/fileNotFound');\n }", "title": "" }, { "docid": "f169dd3d7283d8e011d3112983d21cb1", "score": "0.58941555", "text": "public function testConfigTypeException()\n {\n $this->expectException(\\InvalidArgumentException::class);\n Framework::config('badconfig', __DIR__ . \"/config\");\n }", "title": "" }, { "docid": "0a1466a7a2b18427f379e73e84f51159", "score": "0.58086354", "text": "static public function getProjectPath()\n {\n $project_path = realpath(Argument::get('P', 'path', getcwd()));\n if (!is_file($project_path.'/symfony'))\n {\n throw new Exception('Not in a symfony project');\n }\n\n return $project_path;\n }", "title": "" }, { "docid": "c0c72189e6d147a291e90781a97c635e", "score": "0.5697432", "text": "private function __checkFilePath() {\n\t\tclearstatcache ();\n\t\tif (! file_exists ( $this->path )) {\n\t\t\tthrow new Exception ( \"File not found at $this->path\" );\n\t\t}\n\t}", "title": "" }, { "docid": "d0e9c38b486d3991b2de39722875fbec", "score": "0.5685871", "text": "public function __construct() \n {\n if (!$v = $this->getManagedApp()) \n {\n throw new sfException(\"Managed app config not present\");\n }\n \n if (!is_array($this->getAvailableModules())) \n {\n throw new sfException(\"Available modules not set\");\n }\n \n if (!is_array($this->getSite())) \n {\n throw new sfException(\"Site definition not set\");\n }\n }", "title": "" }, { "docid": "5d64f3e7251d76598a9ecdfe183606b9", "score": "0.5681672", "text": "private function check() {\n if(empty($this->_config['fields']))\n throw new RuntimeException('Configuration missing for UploadableBehavior');\n }", "title": "" }, { "docid": "fa466342831ac3137517c8989b8e0b95", "score": "0.56598234", "text": "public function testConnectWithWrongProjectId()\n {\n $connector = new GcPubSubConnector;\n $config = $this->getConfig();\n $config['project_id'] = '';\n\n $this->expectException(\\InvalidArgumentException::class);\n $this->expectExceptionMessage('The Google PubSub project id is missing');\n\n $connector->connect($config);\n }", "title": "" }, { "docid": "ccac52eced3d0da901926b20c92c749a", "score": "0.56299347", "text": "function project_path($path = '')\n {\n return realpath(base_path('resources/projects/'.config('custom_app.http_host')));\n }", "title": "" }, { "docid": "2380005f4fbdcac36f2a919e4e392cfd", "score": "0.5624345", "text": "public function testConfigurationFileHasError()\n {\n $di = new DIFactoryConfig();\n $di->loadServices(ANAX_INSTALL_PATH . \"/config/di\");\n\n $cfg = new Configuration();\n $cfg->setBaseDirectories([ANAX_INSTALL_PATH . \"/config\"]);\n $cfg->setMapping(\"router\", ANAX_INSTALL_PATH . \"/test/config/router_error.php\");\n $di->set(\"configuration\", $cfg);\n\n $di->get(\"router\");\n }", "title": "" }, { "docid": "aa9930c2f4dd8a93a36c74cd709899d7", "score": "0.56131434", "text": "public function testValidateProject()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "173b4e0d5be8bfa0ce08d9de4180c88b", "score": "0.5596571", "text": "public function testProjectFile()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "45c8c37899438bb25cd10b8c9931a425", "score": "0.55819225", "text": "protected static function getFilePath()\n {\n throw new \\Exception('You need to specify the stub file path.');\n }", "title": "" }, { "docid": "547c449d1f3549da9d56f2e380d516f3", "score": "0.55704266", "text": "private function getProjectFromArgs()\n {\n\n if ((isset($GLOBALS['argv'])) && (count($GLOBALS['argv']) > 1) && (file_exists($GLOBALS['argv'][1]))) {\n return $this->createProject($GLOBALS['argv'][1]);\n } else {\n throw new ConfigException('Cannot determine project path from argument ' . $GLOBALS['argv'][1]);\n }\n\n }", "title": "" }, { "docid": "ee1321df496ff8a95bd4cfad462d4da2", "score": "0.55520093", "text": "public function testInvalidModulePath()\n {\n array_push(Yii::$app->params['moduleAutoloadPaths'], '/dev/null');\n\n try {\n ModuleAutoLoader::locateModules();\n $this->fail('no expection when invalid path for moduleAutoloadPaths');\n } catch (\\ErrorException $e) {\n }\n\n array_pop(Yii::$app->params['moduleAutoloadPaths']);\n }", "title": "" }, { "docid": "35eff9908f1606fa9f697c5590443fc2", "score": "0.55456644", "text": "public function accessDeniedProject()\n\t{\n\t\t$this->error['title'] = 'ACCESS DENIED';\n\t\t$this->error['msg'] = 'You are not allowed to work on this project!';\n\t}", "title": "" }, { "docid": "2d46f976a1781db286b28e4a474cee6e", "score": "0.55123043", "text": "private function verifyApp()\n {\n if (!class_exists('App\\Config'))\n throw new Exception('App\\Config class not found.');\n }", "title": "" }, { "docid": "e738722c388e5b9c6d8eb6b146613b9c", "score": "0.55107147", "text": "public function __construct($config_path = NULL, PlatformInterface $platform = NULL) {\n\n $this->config_path = $this->locatePrimaryConfigFile($config_path);\n if (empty($this->config_path)) {\n\n throw new Exception('Unable to locate configuration file.');\n }\n\n if (empty($platform)) {\n\n $platform = (new PlatformController())->getCurrent();\n }\n\n $this->platform = $platform;\n $this->loadConfig();\n }", "title": "" }, { "docid": "c55ec59f697347c4c90654ce6f0523df", "score": "0.55094206", "text": "public function validate()\n {\n Validate::checkExecutable($this->phpcs, '\\Gasp\\Exception');\n\n if (!count($this->paths)) {\n throw new Exception('Cannot run sniff task without any paths defined.');\n }\n }", "title": "" }, { "docid": "7977c2a0d50372c64af8cf543f1a92cf", "score": "0.54804903", "text": "public function validate()\n {\n Validate::checkExecutable($this->php, '\\Gasp\\Exception');\n\n if (!count($this->paths)) {\n throw new Exception('Cannot run lint task without any paths defined.');\n }\n }", "title": "" }, { "docid": "99afbf4d4835733c2f7a6f9f3c90a697", "score": "0.5479545", "text": "public function testConstructWithBadConfigFile()\n {\n chdir(\\constant('ZEPHIRPATH').'/unit-tests/fixtures/badconfig');\n new Config();\n }", "title": "" }, { "docid": "4a907ec554790df97816455c3dc7e5a1", "score": "0.54523957", "text": "public function __construct($path) {\r\n if (!file_exists(\"$path/config.php\")) {\r\n throw new VDE_Project_Exception(\"No project found at $path\");\r\n }\r\n \r\n $this->_path = $path;\r\n require(\"$path/config.php\");\r\n \r\n $this->id = $config['id'];\r\n $this->active = isset($config['active']) ? $config['active'] : 1;\r\n $this->encoding = $config['encoding'] ? $config['encoding'] : 'ISO-8859-1';\r\n \r\n $this->meta = array(\r\n 'title' => $config['title'],\r\n 'description' => $config['description'],\r\n 'url' => $config['url'],\r\n 'versionurl' => $config['versionurl'],\r\n 'version' => $config['version'],\r\n 'author' => $config['author']\r\n );\r\n \r\n $this->buildPath = $config['buildpath']; \r\n $this->files = $config['files'];\r\n $this->_dependencies = $config['dependencies'];\r\n }", "title": "" }, { "docid": "a3c9685864c3c8be51bca2de02e0cbd7", "score": "0.5442871", "text": "public function testConfigNotFound()\n {\n $parser = $this->getMockForAbstractClass('\\Backend\\Interfaces\\ParserInterface');\n $config = Config::getNamed($parser, 'no_such_file');\n }", "title": "" }, { "docid": "d00530d17a3373038c2a3cc00c0351fe", "score": "0.5433356", "text": "public function testProject()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "d8b8510b59d86279d78961cb01ba7270", "score": "0.54205775", "text": "public function testThrowingException()\n {\n $this->expectException(Exception::class);\n ServiceRegister::getConfigService();\n }", "title": "" }, { "docid": "7a680dd9ae07fb0d1990dd81649dbc41", "score": "0.5413713", "text": "public function testLoadOfInvalidFilePath()\n {\n $error = false;\n $loader = $this->getLoader();\n\n try {\n $loader->load($this->getInvalidConfigPath());\n } catch (InvalidFileException $e) {\n $error = true;\n }\n\n $this->assertTrue($error);\n }", "title": "" }, { "docid": "d8e9eb4e29c5f1fcb6b468cc33249264", "score": "0.5404948", "text": "private function checkPaths()\n\t{\n\t\t// check if the location is right\n\t\tif($this->location != 'frontend' && $this->location != 'backend')\n\t\t{\n\t\t\t$error = \"Please specify if you want to create this action in the frontend or backend. \\n\";\n\t\t\tFT::error($error);\n\t\t}\n\n\t\t// get the working dir\n\t\t$this->getWorkingDir();\n\n\t\t// check if the module is set\n\t\tif(!is_dir($this->workingDir . $this->module))\n\t\t{\n\t\t\t$error = \"This is not an existing module. \\n\";\n\t\t\tFT::error($error);\n\t\t}\n\t}", "title": "" }, { "docid": "2916c477888f2f2bbe21fb202f626e5d", "score": "0.5370947", "text": "public static function load($configPath=null)\n {\n // look for a configuration file\n $configFilePath = (($configPath !== null) ? $configPath : '').self::$_configFile;\n\n // see if we have a config file option on the command line\n $path = \\Usher\\Lib\\Console::getOption('configFilePath');\n if ($path !== null) {\n $configFilePath = $path;\n }\n\n if (is_file($configFilePath)) {\n self::$_currentConfig \n = self::$_wholeConfig \n = json_decode(file_get_contents($configFilePath));\n if (self::$_currentConfig == null) {\n throw new \\Exception(\n 'Error parsing configuration file \"'.self::$_configFile.'\"!'\n );\n }\n \n if (is_array(self::$_currentConfig)) {\n self::$_currentConfig = false;\n \n $project = \\Usher\\Lib\\Console::getOption('selectedProject');\n if (!$project) {\n throw new \\Exception(\"No project was selected.\");\n }\n \n foreach (self::$_wholeConfig as $conf) {\n if ($conf->project->name == $project) {\n self::$_currentConfig = $conf;\n break;\n }\n }\n \n if (!self::$_currentConfig) {\n throw new \\Exception(\n \"No project named {$project} in config file.\"\n );\n }\n }\n \n } else {\n throw new \\Exception('No config file found!');\n }\n }", "title": "" }, { "docid": "f22d8537bcf9b56eb7feafac78068e5a", "score": "0.5351752", "text": "public function pathNotExists($path){\n\t\tif(!file_exists('src'.$path.'.php') && $path !== '/' && !isset($_GET['part']))\n\t\t{\n\t\t\tthrow new \\Exception($path. ' not found');\n\t\t}\n\t}", "title": "" }, { "docid": "77b657fbdcde76abe75537ebc593947c", "score": "0.5333673", "text": "public static function initialImportPathInvalid($path): self\n {\n return new self(\n \"Couldn't open initial-import file \\\"$path\\\". \"\n . \"Please review the \\\"build_sources.initial_imports\\\" config setting\"\n );\n }", "title": "" }, { "docid": "82b8ffa375d895a3c8161d441546c408", "score": "0.5325243", "text": "public function testFilePathInvalidArgumentExceptionIsInvalidArgumentException()\n {\n self::expectException(InvalidArgumentException::class);\n self::expectExceptionMessage('This is a FilePathInvalidArgumentException.');\n\n throw new FilePathInvalidArgumentException('This is a FilePathInvalidArgumentException.');\n }", "title": "" }, { "docid": "37bcf6cb2d7d0aedbc46e43cb1a0fc29", "score": "0.5310897", "text": "public function testCreateProject()\n {\n\n }", "title": "" }, { "docid": "37bcf6cb2d7d0aedbc46e43cb1a0fc29", "score": "0.5310897", "text": "public function testCreateProject()\n {\n\n }", "title": "" }, { "docid": "df3c806fdc9ee84250a25288c65ef684", "score": "0.53051126", "text": "abstract protected function getValidConfigPath();", "title": "" }, { "docid": "4bcac3b8fa2becb9a41b2e3799d3e975", "score": "0.5295687", "text": "private function setBasePath($path)\n {\n $class = new \\ReflectionClass($this);\n $basePath = realpath(dirname($class->getFileName()) . DIRECTORY_SEPARATOR . '..');\n\n if ($basePath !== false && is_dir($basePath)) {\n $this->basePath = $basePath;\n } else {\n throw new \\Exception('The directory does not exist:\\n' . $basePath);\n }\n }", "title": "" }, { "docid": "0c72fb775b16c1cf3d6729b4757e4c60", "score": "0.5295034", "text": "public function testEmptyStoragePath()\n {\n $this->expectException(ErrorException::class);\n $this->expectExceptionMessage(\"Storage path not set for path generator.\");\n new PathGenerator(\"\");\n }", "title": "" }, { "docid": "090d5a9c66370b146a53542384e2371b", "score": "0.52945745", "text": "private static function fileCheckFilePath(): void\n {\n /**\n * If there is no remaining URL nodes, and if the debug parameter 'displayErrors' is true,\n * then an exception is thrown with an error message.\n *\n * However, if the debug parameter is false, then the framework will return error 404.\n */\n if (empty(Route::getUrlArray())) {\n if (Parameters::getDisplayErrors()) {\n throw new Exception(self::UNDEFINED_FILE_PATH[1], self::UNDEFINED_FILE_PATH[0]);\n }\n\n self::return404();\n }\n\n self::fileCheckFileExtension();\n }", "title": "" }, { "docid": "f9802ee07ac3d4f08c3cd317c41c891f", "score": "0.5293092", "text": "public function testInvalidFile()\n {\n $parser = $this->getMockForAbstractClass('\\Backend\\Interfaces\\ParserInterface');\n $config = new Config($parser);\n $config->setAll(__FILE__);\n }", "title": "" }, { "docid": "ceacb295f86815017e2c78242b4febd4", "score": "0.5289344", "text": "public function setPath(string $path): void\n {\n if (!is_dir($path)) {\n throw new ConfigException('Configuration directory is not exists');\n }\n $this->path = rtrim($path, '/');\n }", "title": "" }, { "docid": "3d6c852433d88364969855577b7ccd33", "score": "0.5282692", "text": "private function __construct()\n {\n $path = CONF_ROOT . \"env.yml\";\n if (false === file_exists($path)) {\n throw new CoreException(\"Le fichier $path n'existe pas.\");\n }\n\n static::$config = yaml_parse_file($path);\n }", "title": "" }, { "docid": "3127e71d34c9c0bfed2b099ddc58bb49", "score": "0.5246672", "text": "private function misconfigured()\n {\n }", "title": "" }, { "docid": "da155d240aa4c9156aa3c1facaaeba0a", "score": "0.5233168", "text": "public function init()\n {\n include_once 'creole/Creole.php';\n if (!class_exists('Creole')) {\n throw new Exception(\"Creole task depends on Creole classes being on include_path. (i.e. include of 'creole/Creole.php' failed.)\");\n }\n }", "title": "" }, { "docid": "ea4242d0739a2664d95c4d8a6f9bc249", "score": "0.5226242", "text": "public function test_getEnvironmentFail()\n\t{\n\t\t$this->setExpectedException(\"Wasp\\Exceptions\\Application\\UnknownEnvironment\");\n\n\t\t$app = new Application;\n\t\t$app->getEnvironment(\"None\");\n\t}", "title": "" }, { "docid": "5cb41ae84970a4f2a5ad2a891b8b35d5", "score": "0.52255857", "text": "private function validateConfig() {\n\t\t\t$log = $this->config( 'source' );\n\t\t\tif( null === $log ) {\n\t\t\t\tthrow new Exception( '[config::source] is not defined', 409 );\n\t\t\t}\n\t\t\t\n\t\t\tif( null !== $this->config( 'copy-to' )) {\n\t\t\t\t$target = $this->config( 'copy-to' );\n\t\t\t\tif( !is_dir( $target ) ) {\n\t\t\t\t\t$rc = mkdir( $target, 0770, true );\n\t\t\t\t\tif( false === $rc ) {\n\t\t\t\t\t\tthrow new Exception( 'failed to create the [config::copy-to] directory', 409 );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "f8ca4dd781e3d3083eca2a35eb99f133", "score": "0.52252173", "text": "private static function fileCheckBaseFolder(): void\n {\n if (empty($baseFolder = Parameters::getBaseFolder())) {\n throw new Exception(self::UNDEFINED_BASE_FOLDER[1], self::UNDEFINED_BASE_FOLDER[0]);\n }\n\n self::$baseFolder = $baseFolder;\n\n self::fileCheckFilePath();\n }", "title": "" }, { "docid": "b4dabe71e6c6f07674cf43a486d5e1a7", "score": "0.5219065", "text": "public static function cannotLoadEnvTestingFile(): self\n {\n return new self(\"The \" . Settings::LARAVEL_ENV_TESTING_FILE . \" file could not be loaded\");\n }", "title": "" }, { "docid": "0962a5069451615ae0135c47a864714b", "score": "0.5218696", "text": "public function it_should_not_throw_an_exception()\n {\n try {\n $api_instance = new VserversserverNamevhostsApi($this->apiClient);\n $result = $api_instance->getVHostsConfig(Configuration::$DEFAULT_SERVER);\n } catch (ApiException $notExpected) {\n $this->fail();\n echo $notExpected->getMessage();\n }\n\n $this->assertTrue(TRUE);\n\n }", "title": "" }, { "docid": "b0af7c1afb230475a5596560b66d9400", "score": "0.52052003", "text": "public function testAppBundleConfigNoInjection()\n {\n $this->setExpectedException('Symfony\\Component\\Filesystem\\Exception\\IOException');\n\n $this->bundleManager->loadAppBundleConfig();\n }", "title": "" }, { "docid": "cffa190db79dac20ad6e88385d6e55bc", "score": "0.5182363", "text": "public function testProcessInboundBadConfig() {\n $config_factory = $this->prophesize(ConfigFactoryInterface::class);\n $config = $this->prophesize(ImmutableConfig::class);\n $config_factory->get('system.site')\n ->willReturn($config->reveal());\n $config->get('page.front')\n ->willReturn('');\n $processor = new PathProcessorFront($config_factory->reveal());\n $this->expectException(NotFoundHttpException::class);\n $processor->processInbound('/', new Request());\n }", "title": "" }, { "docid": "ec72c260a7e4522d668a8d977d9e7b0d", "score": "0.5173077", "text": "public function init()\n\t{\n \tif (Yii::getAlias(\"platform\") === false) {\n \t\tYii::setAlias(\"platform\", realpath(dirname(__FILE__)));\n \t}\n\n \tif (is_null($this->config_file)) {\n \t\tthrow new CooperationException('Platform config_file can not be null');\n \t}\n \tinclude(__DIR__.\"/error.php\");\n\n \tif (is_null($this->config_path)) {\n \t\t$this->config_path = dirname($this->config_file);\n \t}\n\n \t$this->loadConfig();\n\n \tparent::init();\n\t}", "title": "" }, { "docid": "8278fe9b25a9647aa2b4b4b5c772c3b8", "score": "0.5143075", "text": "private static function check()\n {\n if (empty(static::$table_name)) {\n throw new \\Exception(\"TablePrefix not set\");\n }\n\n if (empty(static::$settings_prefix)) {\n throw new \\Exception(\"SettingsPrefix not set\");\n }\n }", "title": "" }, { "docid": "1af630fa5e4b5e31ca1e73a7cbcbaa35", "score": "0.5137801", "text": "public function testFindPathsValidation()\n\t{\n\t\t$adapter = new MogileFS_File_Mapper_Adapter_Tracker();\n\t\ttry {\n\t\t\t$adapter->findPaths(new Exception()); // Not valid value\n\t\t} catch (MogileFS_Exception $exc) {\n\t\t\t$this->assertLessThan(200, $exc->getCode(), 'Got unexpected exception code');\n\t\t\t$this->assertGreaterThanOrEqual(100, $exc->getCode(), 'Got unexpected exception code');\n\t\t\treturn;\n\t\t}\n\t\t$this->fail('Did not get MogileFS_Exception exception');\n\t}", "title": "" }, { "docid": "02d16c2728dab334182c8198ad68050f", "score": "0.5120725", "text": "public function configPath($path = '');", "title": "" }, { "docid": "a613111cff182796108ab77eda9a3e79", "score": "0.5116649", "text": "public function throwExceptionIfNotExistsProcess ($processUid)\n {\n try {\n\n if ( !$this->processExists ($processUid) )\n {\n throw new \\Exception (\"ID_PROJECT_DOES_NOT_EXIST\");\n }\n } catch (\\Exception $e) {\n throw $e;\n }\n }", "title": "" }, { "docid": "eeae6973287aedc928a1598fae6f3307", "score": "0.51048386", "text": "public function testReadProject()\n {\n\n }", "title": "" }, { "docid": "06697f5b03779f1dbaad104e374a3bea", "score": "0.5104678", "text": "public function testInvalid() {\n $reader = new JsonReader($this->path);\n $this->expectException('ConfigureException');\n $config = $reader->read('test_invalid');\n }", "title": "" }, { "docid": "fecdfa66a47523a6f5bee2a026d3926d", "score": "0.50987583", "text": "public function getProjectConf()\n {\n if (null !== $this->projectIdentifier) {\n\n $conf = $this->getConf();\n $projectConf = BDotTool::getDotValue('projects.' . $this->projectIdentifier, $conf);\n if (null !== $projectConf) {\n\n if (array_key_exists('root_dir', $projectConf)) {\n if (array_key_exists('ssh_config_id', $projectConf)) {\n if (array_key_exists('remote_root_dir', $projectConf)) {\n\n\n if (false === array_key_exists('map-conf', $projectConf)) {\n $projectConf['map-conf'] = [];\n }\n\n if (false === array_key_exists('ignoreName', $projectConf['map-conf'])) {\n $projectConf['map-conf']['ignoreName'] = [];\n }\n\n if (false === array_key_exists('ignorePath', $projectConf['map-conf'])) {\n $projectConf['map-conf']['ignorePath'] = [];\n }\n\n if (false === array_key_exists('ignoreHidden', $projectConf['map-conf'])) {\n $projectConf['map-conf']['ignoreHidden'] = 1;\n }\n return $projectConf;\n } else {\n throw new DeployException(\"<b>remote_root_dir</b> configuration key missing for project <b>\" . $this->projectIdentifier . \"</b>.\");\n }\n } else {\n throw new DeployException(\"<b>ssh_config_id</b> configuration key missing for project <b>\" . $this->projectIdentifier . \"</b>.\");\n }\n } else {\n throw new DeployException(\"<b>root_dir</b> configuration key missing for project <b>\" . $this->projectIdentifier . \"</b>.\");\n }\n } else {\n throw new DeployException(\"Project <b>\" . $this->projectIdentifier . \"</b> was not defined in the configuration file.\");\n }\n\n } else {\n throw new DeployException(\"The project identifier is not defined.\");\n }\n }", "title": "" }, { "docid": "dcd0e7a1fe96291bda80e55ce1940ffa", "score": "0.50911075", "text": "public function createEmptyProject() {\n }", "title": "" }, { "docid": "fd144da8f356908278435609dd6789aa", "score": "0.5076469", "text": "public function testCreateProject()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "9fd749e0fcf7c4067b97f704dda83de9", "score": "0.50727254", "text": "private function ensureForce() : void\n {\n if ($this->config->isLoadedFromFile() && !$this->force) {\n throw new \\RuntimeException('Configuration file exists, use -f to overwrite, or -e to extend');\n }\n }", "title": "" }, { "docid": "5c076043a611b0a3804d8502286f31f3", "score": "0.506612", "text": "protected function _checkDirectories()\n {\n $this->_sourceDir = $this->getArg('source');\n\n if (!is_dir($this->_sourceDir)) {\n throw new Exception('The source dir could not be found.');\n }\n }", "title": "" }, { "docid": "4e348ca670153ca37204461dd0fc9135", "score": "0.5042834", "text": "public function testFileNotFoundException()\n {\n $this->setExpectedException('InvalidArgumentException');\n Journey::loadJson('data/nothing.json');\n }", "title": "" }, { "docid": "d3262aa96ff67a5a796581bf5e3e8959", "score": "0.50306064", "text": "private function shouldWeThrowSth()\n\t{\n\t\tif( empty($this->name) ) {\n\t\t\tthrow new Exception('I can`t get files without name expression!');\n\t\t} \n\n\t\tif( empty($this->directory) ) {\n\t\t\tthrow new Exception('I can`t get files without directory path!');\n\t\t} \n\n\t\tif( empty( $this->amount) or $this->amount < 1 or !is_int( $this->amount ) ) {\n\t\t\tthrow new LogicException(\"Invalid amount supplied: \" . $this->amount);\n\t\t}\n\n\t}", "title": "" }, { "docid": "4136e008a04e00a1646fd79162b36fc2", "score": "0.5022235", "text": "public function isValidForProject()\n {\n return is_file('bootstrap/start.php');\n }", "title": "" }, { "docid": "7112e46dffd0867def30f7c5084a3f27", "score": "0.50108564", "text": "protected function initConfig()\n {\n $fileName = APP_PATH . '/app/config/config.php';\n if (true !== file_exists($fileName)) {\n throw new \\Exception('Configuration file not found');\n }\n\n $configArray = require_once($fileName);\n $config = new PhConfig($configArray);\n $this->diContainer->setShared('config', $config);\n }", "title": "" }, { "docid": "5bd03cd53cd9dc15807da0f756655241", "score": "0.501007", "text": "public function testFailedImport()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "252468cac9f2815fbf01aeaa66eb08a3", "score": "0.49918014", "text": "public function ensureFileIsReadable()\n {\n if (!is_readable($this->filePath) || !is_file($this->filePath)) {\n throw new InvalidPathException(sprintf('Unable to read the environment file at %s.', $this->filePath));\n }\n }", "title": "" }, { "docid": "1d787ad95d4cc5267f3ddb4409b93ff8", "score": "0.49676144", "text": "protected function assertValidUploadPath()\n {\n $uploadPath = $this->pathFor($this['uploadPath']);\n\n if (!file_exists($uploadPath)) {\n $this->logger->debug(sprintf(\n '[%s] Upload directory [%s] does not exist; attempting to create path',\n [ get_called_class().'::'.__FUNCTION__ ],\n $uploadPath\n ));\n\n mkdir($uploadPath, 0777, true);\n }\n\n if (!is_writable($uploadPath)) {\n throw new Exception(sprintf(\n 'Upload directory [%s] is not writeable',\n $uploadPath\n ));\n }\n }", "title": "" }, { "docid": "e9b722fdde13fcbf31a4f10b4980a5c1", "score": "0.4966345", "text": "private static function raiseEnvironmentVariableNotSet()\r\n\t{\t\t//\r\n\t\t// if (static::logAvailable())\r\n\t\t// {\r\n\t\t// \t// throw new EnvironmentVariableNotSet(\"Environment variable not set: $variable\");\r\n\t\t// }\r\n\t\t// else\r\n\t\t// {\r\n\t\t// \tdd(\"Environment variable not set: $variable\");\r\n\t\t// }\r\n\t}", "title": "" }, { "docid": "d2ea24e2573815a77d313e43d893d7c5", "score": "0.49643987", "text": "public function testRunnerThrowsRuntimeExceptionForInvalidSourceDirectory()\n {\n $runner = $this->createTextUiRunner();\n $runner->setSourceArguments(array('foo/bar'));\n $runner->run();\n }", "title": "" }, { "docid": "c99e55423951cb9c6104ac6866c2f798", "score": "0.49643844", "text": "public function testImportIndexException()\n {\n $service = new ImportService();\n $output = $this->getMock('Symfony\\Component\\Console\\Output\\NullOutput');\n\n $service->importIndex(null, '', false, $output);\n }", "title": "" }, { "docid": "5883e8f27a46535fddd8d63d9b674c5e", "score": "0.496126", "text": "public function testWhenNoFilesAreFoundThenThrowException()\n {\n $applicationPath = '/project/Dokra/sample/application';\n\n $storage = \\Mockery::mock('FileStorage')->makePartial();\n $storage->shouldReceive('files')->with($applicationPath)->once()->andReturn([]);\n\n /** @var \\Dokra\\Application $app */\n $app = \\Mockery::mock(Application::class)->makePartial();\n\n $app->setConfig(Application::STORAGE, $storage);\n $app->setConfig(Application::PROJECT_PATH, $applicationPath);\n\n $app->addTask(Task::SCAN_FILES);\n $app->run();\n }", "title": "" }, { "docid": "497284b5a67f58c67fa2d90fab5b4357", "score": "0.49567816", "text": "public function testGetItemRelativePathException()\n {\n $this->expectException(PathNotFoundException::class);\n\n $this->session->getItem('tests_general_base');\n }", "title": "" }, { "docid": "92800feaa107a45c198a416df286c44d", "score": "0.49567354", "text": "private function checkProjectName()\n {\n if (is_dir($this->projectDir) && !$this->isEmptyDirectory($this->projectDir)) {\n throw new \\RuntimeException(sprintf(\n \"There is already a '%s' project in this directory (%s).\\n\".\n \"Change your project name or create it in another directory.\",\n $this->projectName, $this->projectDir\n ));\n }\n\n return $this;\n }", "title": "" }, { "docid": "9b7b0daabcb3b79e1534bb5b83073ce3", "score": "0.49556845", "text": "public function testFailingBuild() {\n $this->setExpectedException('\\notifyy\\Exception', \\notifyy\\Exception::UNKNOWN_ADAPTER);\n Builder::build('test');\n }", "title": "" }, { "docid": "eb3fb96d01f8bede0558d2f72ba9dd72", "score": "0.49350774", "text": "public function testFromFolderMissingAppEnv()\n {\n $config = ConfigLoader::fromFolder(__DIR__ . \"/Fixture\");\n\n $this->assertNotNull($config);\n\n // Make sure a property only set in devel.php is not set\n $this->assertNull($config->development_property);\n }", "title": "" }, { "docid": "07768e9cc048bce56c0e7f705da29847", "score": "0.49345714", "text": "protected function _checkConfigFile() {\n\t\tif (file_exists(APPLICATION_PATH . '/Application/config/app.ini')) {\n\t\t\theader(\"Location: /\");\n\t\t\texit();\n\t\t}\n\t}", "title": "" }, { "docid": "7cf631b912666ba8074420379ffac6b9", "score": "0.49338388", "text": "public function testSetException() {\n $compiler = new SettingsPHPGenerator();\n $compiler->set('foo', 'bar');\n }", "title": "" }, { "docid": "9645621a36aa2b39a00ea73234fa7df6", "score": "0.49338216", "text": "public function testGetValueWithNonExistentCode(): void\n {\n $actual = 'foo';\n $expected = 'foo is not a code set in settings repository.';\n\n self::expectExceptionMessage($expected);\n $this->settingsService->getValue($actual);\n }", "title": "" }, { "docid": "a02446e900c17ab9e818aae9a2785f50", "score": "0.4921603", "text": "public function __construct()\n {\n parent::__construct(\"The path to the file is incorrect, or the file does't exist.\");\n }", "title": "" }, { "docid": "0e4b4bc2eff351e5f4ae055edaf47d92", "score": "0.49178186", "text": "function setConfigFileWithPath($path=null){\n\t\tif ($path){\n\t\t\t$this->_configfileWithPath = $path;\n\t\t} else {\n//\t\t\techo bfCompat::getAbsolutePath() . DS . 'components' .DS . $this->_component . DS . 'etc' . DS . $this->_configfileName;\n\t\t\tif (file_exists(bfCompat::getAbsolutePath() . DS . 'components' .DS . $this->_component . DS . 'etc' . DS . $this->_configfileName)){\n\t\t\t\t$this->_configfileWithPath = bfCompat::getAbsolutePath() . DS . 'components' .DS . $this->_component . DS . 'etc' . DS . $this->_configfileName;\n\t\t\t} else {\n\t\t\t\techo bfText::_('Could not locate a configuration file!, I looked at: ' . bfCompat::getAbsolutePath() . DS . 'components' .DS . $this->_component . DS . 'etc' . DS . $this->_configfileName);\n\n\t\t\t\t// Cannot use bfError in xAJAX - yet!\n\t\t\t\t//bfError::raiseError('404',bfText::_('Could not locate a configuration file!'));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "317f7798c7b97994786f18e6babe69f8", "score": "0.49160314", "text": "protected function _validatePath()\n {\n $io = new Varien_Io_File();\n $realPath = $io->getCleanPath(Mage::getBaseDir() . '/' . $this->_getCatalogFilePath());\n\n /**\n * Check path is allow\n */\n if (!$io->allowedPath($realPath, Mage::getBaseDir())) {\n Mage::throwException($this->_helper->__('Please define correct path'));\n }\n /**\n * Check exists and writeable path\n */\n if (!$io->fileExists($realPath, false)) {\n Mage::throwException(\n $this->_helper->__(\n 'Please create the specified folder \"%s\" before saving the sitemap.',\n Mage::helper('core')->escapeHtml($this->_getCatalogFilePath())\n )\n );\n }\n\n if (!$io->isWriteable($realPath)) {\n Mage::throwException($this->_helper->__('Please make sure that \"%s\" is writable by web-server.', $this->_getCatalogFilePath()));\n }\n /**\n * Check allow filename\n */\n if (!preg_match('#^[a-zA-Z0-9_\\.]+$#', $this->_getGravityCatalogFilename())) {\n Mage::throwException(\n $this->_helper->__(\n 'Please use only letters (a-z or A-Z), numbers (0-9) or underscore (_) in the filename. No spaces or other characters are allowed.'\n )\n );\n }\n }", "title": "" }, { "docid": "a50cdc3a885aec0514a7bc6cf7ccedf1", "score": "0.49152407", "text": "protected function _checkConfiguration() \n {\n if(!isset($this->_configuration['service_api']))\n throw new CException('Please set \"service_api\" in configuration');\n \n if(!isset($this->_configuration['session_guid']))\n throw new CException('Please set \"session_guid\" in configuration'); \n \n if(!isset($this->_configuration['currency']))\n throw new CException('Please set \"currency\" in configuration'); \n \n return true;\n }", "title": "" }, { "docid": "51ff38f012a960731abcec35ec11500b", "score": "0.49130002", "text": "public function throwIfRequested();", "title": "" }, { "docid": "5f88e6a5cf3ed3f6b28363e8bbe02290", "score": "0.4895656", "text": "public function error()\n {\n throw new \\MyApp\\Exception('Invalid Command');\n }", "title": "" }, { "docid": "f5bd2fc2fbb5554694d5eeb37c126201", "score": "0.48926756", "text": "public function it_should_throw_an_exception()\n {\n\n $this->setExpectedException(ApiException::class);\n\n $api_instance = new VserversserverNamevhostsApi();\n\n $result = $api_instance->getVHostsConfig(Configuration::$DEFAULT_SERVER);\n\n }", "title": "" }, { "docid": "02458c18566eee373697bfea548c3b68", "score": "0.4891376", "text": "protected function _throwDispatchException(){ }", "title": "" }, { "docid": "669bdfe3f492eb75fbe2b63346e1822a", "score": "0.48891836", "text": "public function testFileDoesNotExistException()\n {\n $this->setExpectedException('\\\\FurryBear\\\\Common\\\\Exception\\\\FileDoesNotExistException');\n new \\FurryBear\\Something();\n }", "title": "" }, { "docid": "eec67aa78e17800c1e5c2e49718d753d", "score": "0.48861742", "text": "public function shouldThrowException();", "title": "" }, { "docid": "14313b6cfa0a3e153dffdbae66ed2abf", "score": "0.48745337", "text": "public function testMigrateThrowsException3() {\n\t\t$this->Migrations->migrate(array(\n\t\t\t'direction' => 'up',\n\t\t\t'scope' => 'NotLoadedPlugin'\n\t\t));\n\t}", "title": "" }, { "docid": "b7637afdbfd5dbd5c9569802a83dee74", "score": "0.48720893", "text": "public function setPath($path)\n {\n if (file_exists($path)) {\n $this->path = $path;\n } else {\n throw new InvalidPathException('File or Folder does not exist.');\n }\n }", "title": "" }, { "docid": "b879a3992c0cb3d45862b7474ead6360", "score": "0.48699766", "text": "public function testShouldThrowExceptionWhenModuleDoesntExist()\n {\n $this->expectException(\\InvalidArgumentException::class);\n $this->command->getMagentoModuleName('Some_Module_That_Will_Never_Exist');\n }", "title": "" }, { "docid": "98385fbca96a312ff6662b82bf34af24", "score": "0.48698577", "text": "public function testException()\n {\n $this->object->createParser('NotExistingParserObject');\n\n }", "title": "" }, { "docid": "12040947651ad7fd31713119ffae05a9", "score": "0.48693672", "text": "public static function load() {\n self::$xml = simplexml_load_file(ROOT . self::$path);\n \n // When the xml object is false an error has occurred.\n if (self::$xml === false) {\n throw new ConfigException(\"Failed to load the configuration flle.\");\n }\n }", "title": "" }, { "docid": "0998a0e58d38010b77ce4a71f35a3bb4", "score": "0.48682183", "text": "public function It_should_throw_an_exception_when_file_at_specified_path_is_inaccessible()\n\t{\n\t\t$filepath = Prb_IO_Tempfile::generatePath().Prb::Time()->getSeconds();\n\t\t\n\t\ttry\n\t\t{\n\t\t\t$file = Prb_IO::withFile( $filepath, Prb_IO_File::NO_CREATE_READ );\n\t\t}\n\t\tcatch ( Prb_Exception_System_ErrnoENOENT $e1 ) {};\n\t\t\n\t\tif ( isset( $e1 ) )\n\t\t\t$this->assertRegExp( '/file not found for no-create open/', $e1->getMessage() );\n\t\telse\n\t\t\t$this->fail( \"Excpected exception on no-create IO instantiation when file doesn't exist.\" );\n\t}", "title": "" }, { "docid": "91f664721779b8cf441133fea17eead6", "score": "0.4865239", "text": "private function _projectCheck($name) {\n // Check for existent project\n $project = $this->Source->Project->getProject($name);\n if ( empty($project) ) throw new NotFoundException(__('Invalid project'));\n $this->Source->Project->id = $project['Project']['id'];\n\n $user = $this->Auth->user('id');\n\n // Lock out those who are not guests\n if ( !$this->Source->Project->hasRead($user) ) throw new ForbiddenException(__('You are not a member of this project'));\n\n $this->Source->init();\n\n $this->set('project', $project);\n $this->set('isAdmin', $this->Source->Project->isAdmin($user));\n\n return $project;\n }", "title": "" }, { "docid": "47d17ec3dba9cb330df3d04f4bea9c6d", "score": "0.4860466", "text": "public function testInvalidConfigValue()\n {\n $parser = $this->getMockForAbstractClass(\n '\\Backend\\Interfaces\\ParserInterface'\n );\n $config = new Config($parser, true);\n }", "title": "" }, { "docid": "b86865136f2761cd1dfaaf1839ab246c", "score": "0.48580652", "text": "public function testConstructionFileNotExists()\n {\n $this->expectException(\\Qis\\CloverCoverageReportException::class);\n $this->expectExceptionMessage(\"not found or is not readable\");\n $this->_object = new CloverCoverageReport('nofile.xml');\n }", "title": "" } ]
2ab3745cb751a92c2e5f151abbcb94f3
Get terms of service URL
[ { "docid": "b38314e75a59e9ec3f3aad78bd736df0", "score": "0.7696161", "text": "public function getTermsOfServiceUrl()\n\t{\n\t\t$this->setUpDirectory();\n\t\treturn $this->directory['meta']['termsOfService'];\n\t}", "title": "" } ]
[ { "docid": "c8ce82a7c8c323ee98c54bc177bebb54", "score": "0.6614604", "text": "function get_terms() {\n\t}", "title": "" }, { "docid": "c2cd5d3d57d6f4701820b52824fb79cb", "score": "0.6528889", "text": "public function getTerms(){\n return $this->getParameter('terms');\n }", "title": "" }, { "docid": "fde299597cb44b59441a9218c4785ad1", "score": "0.63017845", "text": "public function getMerchantTermsUri(): string\n {\n return $this->getConfigValue('terms_url') ? $this->getConfigValue('terms_url') : \"\";\n }", "title": "" }, { "docid": "7260f2a898e4d027bd02404fd27fac01", "score": "0.6121146", "text": "protected function get_terms()\n {\n }", "title": "" }, { "docid": "d11371ffbe2b1da4dd74f41d9c373a7c", "score": "0.60262275", "text": "function curlInfo($term, $url, $accessToken, $type) {\n\t$ch = curl_init(); \n\t$url = $url.\"access_token=\".$accessToken.\"&type=\".$type.\"&q=\".$term.\"&limit=150\";\n\tcurl_setopt($ch, CURLOPT_URL, $url); \n\t// curl_setopt($ch, CURLOPT_HEADER, 0); \n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\t$data = curl_exec($ch); \n\tcurl_close($ch); \n\treturn $data;\n}", "title": "" }, { "docid": "7869181eb2a0bbe47d535212af31489f", "score": "0.60107243", "text": "function zen_check_url_get_terms() {\n global $db;\n return false;\n $zp_sql = \"select * from \" . TABLE_GET_TERMS_TO_FILTER;\n $zp_filter_terms = $db->Execute($zp_sql);\n $zp_result = false;\n while (!$zp_filter_terms->EOF) {\n if (isset($_GET[$zp_filter_terms->fields['get_term_name']]) && zen_not_null($_GET[$zp_filter_terms->fields['get_term_name']])) $zp_result = true;\n $zp_filter_terms->MoveNext();\n }\n return $zp_result;\n}", "title": "" }, { "docid": "7dee4437329b2def98cf4afe1556b8c8", "score": "0.5856397", "text": "public function terms()\n {\n return $this->show(__('Terms Of Service'), 'terms');\n }", "title": "" }, { "docid": "aa3efa9682d3d87f20c8c338ad32cbf0", "score": "0.57675207", "text": "function sem_extract_terms($context = null) {\r\n\tglobal $YT_CACHE_PATH, $YT_CACHE_TIMEOUT;\r\n\t\r\n\tif (empty($context))\r\n\t\treturn;\r\n\r\n\t// Clean up context\r\n\t$context = preg_replace( \"/\\r/\", \"\", $context );\r\n\t$context = trim( strip_tags( $context ) );\r\n\r\n\t$vars = array(\r\n\t\t\"appid\" => \"WordPress/Extract Terms Plugin (http://www.semiologic.com)\",\r\n\t\t\"context\" => $context,\r\n\t\t\"query\" => $query);\r\n\r\n\r\n\t// Generate cache file name\r\n\t$cache_file = $YT_CACHE_PATH . \"yt-\". md5( $context );\r\n\tclearstatcache(); // reset file cache status, in case of multiple calls\r\n\r\n\t// Retrieve and cache the results if they do not exist\r\n\tif(@file_exists($cache_file) && (@filemtime($cache_file) + $YT_CACHE_TIMEOUT) > time()){\r\n\t\t$xml = file_get_contents( $cache_file );\r\n\t} else {\r\n\t\t// Process content\r\n\t\tforeach($vars as $key => $value){\r\n\t\t\t$content .= urlencode($key) .\"=\". urlencode($value) . ((++$i < sizeof($vars)) ? \"&\" : \"\");\r\n\t\t}\r\n\t\t\r\n\t\t$content_length = strlen($content);\r\n\t\r\n\t\t// Build header\r\n\t\t$headers = \"POST /ContentAnalysisService/V1/termExtraction HTTP/1.1\r\nAccept: */*\r\nContent-Type: application/x-www-form-urlencoded; charset=\". get_settings('blog_charset') .\"\r\nUser-Agent: WordPress/Extract Terms Plugin (http://www.semiologic.com)\r\nHost: api.search.yahoo.com\r\nConnection: Keep-Alive\r\nCache-Control: no-cache\r\nContent-Length: \". $content_length .\"\r\n\r\n\";\r\n\t\r\n\t\t// Open socket connection\r\n\t\t$fp = fsockopen( \"api.search.yahoo.com\", 80 );\r\n\t\t\r\n\t\t// Discard the call if it times out\r\n\t\tif ( !$fp )\r\n\t\t\treturn;\r\n\t\r\n\t\t// Send headers and content\r\n\t\tfputs($fp, $headers);\r\n\t\tfputs($fp, $content);\r\n\t\r\n\t\t// Retrieve the result\r\n\t\t$xml = '';\r\n\t\t\r\n\t\twhile(!feof($fp)){\r\n\t\t\t$xml .= fgets( $fp, 1024 );\r\n\t\t}\r\n\t\t\r\n\t\tfclose( $fp );\r\n \r\n\t\t// Clean up the result\r\n\t\t$xml = preg_replace(\"/^[^<]*|[^>]*$/\", \"\", $xml);\r\n\t\r\n\t\t// Cache the result\r\n\t\t$res_file = fopen($cache_file, \"w+\"); \r\n\t\tfwrite($res_file, $xml);\r\n\t\tfclose($res_file);\r\n\t}\r\n\r\n\t// Parse the XML\r\n\r\n\tif($xml)\r\n\t\t$dom = domxml_open_mem($xml);\r\n\r\n\r\n\t// Bypass the call if there is nothing to fetch\r\n\tif(!$dom)\r\n\t\treturn;\r\n\r\n\t// Traverse the dom and fetch the terms\r\n\t$terms = array();\r\n\r\n\t$root = $dom->document_element();\r\n\t$node = $root->first_child();\r\n\r\n\tif($node->tagname == 'Result'){ // don't process errors\r\n\t\twhile($node){\r\n\t\t\t$terms[] = $node->get_content();\r\n\t\t\t$node = $node->next_sibling();\r\n\t\t}\r\n\t}\r\n\t\r\n\treturn $terms;\r\n}", "title": "" }, { "docid": "5813cd5a83d657744dac9145d544ae28", "score": "0.5695132", "text": "public function getTerms(): array\n {\n return $this->getLocalParameters()->getTerms();\n }", "title": "" }, { "docid": "6876a576e865d0dcb12032cb608584f1", "score": "0.5679708", "text": "function curl_get_taxinfo($url)\n {\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_HEADER, 0);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);\n $raw = curl_exec($ch);\n //print_r(curl_getinfo($ch));\n curl_close($ch);\n return $raw;\n }", "title": "" }, { "docid": "dd1a55e82fb9a0be91ce08f2161a3b90", "score": "0.565208", "text": "function curl_get_taxinfo($url)\n {\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_HEADER, 0);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);\n $raw = curl_exec($ch);\n print_r(curl_getinfo($ch));\n curl_close($ch);\n return $raw;\n }", "title": "" }, { "docid": "a2895f97c2819ec06f48511eb0a4de77", "score": "0.5635877", "text": "public function testSeeServiceTerm()\n {\n $response = $this->get('/terms/sign-up');\n\n $response->assertStatus(200)\n ->assertSee('服務條款');\n }", "title": "" }, { "docid": "8bf415e6d44f3667650431f72a445e11", "score": "0.56193113", "text": "public function getTerms () {\n\t$preValue = $this->preGetValue(\"terms\"); \n\tif($preValue !== null && !Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->terms;\n\treturn $data;\n}", "title": "" }, { "docid": "8c28323918462278254a63169bf91b77", "score": "0.55510575", "text": "function ec_the_terms($glue = '', $prefix = '', $suffix = '', $taxo)\n{\n\techo ec_get_the_terms($glue, $prefix, $suffix, $taxo);\n}", "title": "" }, { "docid": "477e8e155ff8dd19cd8411b2d649f945", "score": "0.5529768", "text": "public function getPaymentTermsDetailsURI()\n {\n return $this->paymentTermsDetailsURI;\n }", "title": "" }, { "docid": "6620deebc5687c18fe79cf0e175d2f1b", "score": "0.5488813", "text": "public function getPaymentTermsRelativeTo(): string;", "title": "" }, { "docid": "43a9d45154c238ec91c3fb8651fb1961", "score": "0.5444461", "text": "public function termsAndConditions()\n {\n $info = Information::where('key' , '=', config('const.info_keys.terms'))->first();\n if (! $info) {\n return response()->json([\n 'error' => true,\n 'error-code' => config('const.error.not_found'),\n 'error-description' => 'could not retrieve information',\n ], Response::HTTP_NOT_FOUND);\n }\n\n return response()->json([\n 'error' => false,\n 'error-code' => config('const.error.success'),\n 'error-description' => 'successfully retrieved information',\n 'data' => $info,\n ]);\n }", "title": "" }, { "docid": "6fefad23261009f989f5ab8e1f68c1a7", "score": "0.5426294", "text": "protected function getCategoryTermDescriptionService()\n {\n }", "title": "" }, { "docid": "e54c76e2dab8cd15e899063ce22e3909", "score": "0.5409424", "text": "function get_search_url() \n {\n if ($this->use_identica) {\n return \"http://identi.ca/api/search\";\n }\n else {\n //TODO: Change Twtter API to 1.1\n return \"https://search.twitter.com/search\";\n }\n }", "title": "" }, { "docid": "8267a17b351f7ef1283ff1493c5d1945", "score": "0.5407387", "text": "public function getServiceUrl();", "title": "" }, { "docid": "d869dfecd2c6279028416df40f56d5a5", "score": "0.53422666", "text": "private function retrieve_term_description()\n {\n }", "title": "" }, { "docid": "dc220c51d8ae45f5d65533b0cd35b4fe", "score": "0.5338886", "text": "function getAddTermURL($homepage, $namespace)\n {\n $result = \"\";\n $namespace_url = $homepage . $namespace;\n\n // ok\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $namespace_url);\n curl_setopt($ch, CURLOPT_COOKIEFILE, COOKIE_FILE);\n\n // disable output\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\n $html = curl_exec($ch);\n curl_close($ch);\n\n // parse HTML\n $doc = new DOMDocument();\n @$doc->loadHTML($html); // symbol '@' is to ignore warning message due to the original HTML code\n\n // get tag <a> elements\n $a_links = $doc->getElementsByTagName(\"a\");\n\n // find link\n foreach ($a_links as $link) {\n if ($link->nodeValue == \"Add new property\") {\n $result = dirname($homepage) . $link->getAttribute(\"href\");\n break;\n }\n }\n\n return $result;\n }", "title": "" }, { "docid": "4637c5a0047b5641a5e22485f4ee0e4f", "score": "0.5321142", "text": "public function getDisplayTerms()\n\t{\n\t\treturn self::_request(\"/displaynames\", 'GET');\n\t}", "title": "" }, { "docid": "f8618a6856ad68eddca4df99ae417941", "score": "0.53056765", "text": "public static function getTerms_documentation() {\n $conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\n $st = $conn->prepare( \"SELECT term_short_desc, term_desc FROM crm_term_lookup where sales_division_code = 'ID' and term_type = 'documentation' order by term_desc\");\n\t $st->execute();\n\t\n\t$list = array();\n\n while ( $row = $st->fetch() ) {\n $list[] = new crm_dropdown( $row );\n }\n\n $conn = null;\n return $list;\n\t}", "title": "" }, { "docid": "9eca5a6deaa3972abf496434e8ec25eb", "score": "0.53015524", "text": "public static function get()\n\t{\n\t\treturn \\lib\\db\\config::public_get('terms', ...func_get_args());\n\t}", "title": "" }, { "docid": "c581b0fd8306d399201f23aef7f881ee", "score": "0.5297393", "text": "public function getSearchTerms()\n {\n return $this->search_terms;\n }", "title": "" }, { "docid": "fc40fdf58b7ce33f2c69d220f54cb520", "score": "0.5274472", "text": "public function getLegalTerms() {\n try {\n if ($this->_legalTerms === null && !$this->is(ADMIN))\n $this->_legalTerms = $this->getTermMapper()->findByRole($this->getRole());\n return $this->_legalTerms;\n } catch (Zend_Exception $e) {\n throw new Site_Service_Exception(\"Method error\",'getLegalTerms', 2009, $e);\n }\n }", "title": "" }, { "docid": "818771b35f01e1a02f276d7915beeb29", "score": "0.5248995", "text": "function erp_rec_get_terms( ) {\n $terms = array();\n\n global $wpdb;\n\n $query = \"SELECT term.id, term.name, term.slug\n FROM {$wpdb->prefix}erp_application_terms as term\n ORDER BY term.name\";\n\n if ($all != true) {\n $query .= \"\";\n }\n\n $rows = $wpdb->get_results( $query, ARRAY_A );\n\n foreach ( $rows as $row ) {\n $terms[$row['slug']] = $row['name'];\n }\n\n return $terms;\n}", "title": "" }, { "docid": "1f126d7477f243dbfbee821756eea247", "score": "0.52254426", "text": "function getTerms()\n {\n try\n {\n $dbObj = new Database();\n $db = $dbObj->getConnection();\n $query = \"Select Term From Courses \"\n . \"Group By Term\";\n $statement = $db->prepare($query);\n $statement->execute();\n $terms = $statement->fetchAll();\n $statement->closeCursor();\n\n return $terms;\n } catch (PDOException $e)\n {\n //$error_message = $e->getMessage();\n //error_log($error_message, (int)0,\"./error.txt\");\n return \"Could not retrieve list of terms\";\n }\n }", "title": "" }, { "docid": "1f126d7477f243dbfbee821756eea247", "score": "0.52254426", "text": "function getTerms()\n {\n try\n {\n $dbObj = new Database();\n $db = $dbObj->getConnection();\n $query = \"Select Term From Courses \"\n . \"Group By Term\";\n $statement = $db->prepare($query);\n $statement->execute();\n $terms = $statement->fetchAll();\n $statement->closeCursor();\n\n return $terms;\n } catch (PDOException $e)\n {\n //$error_message = $e->getMessage();\n //error_log($error_message, (int)0,\"./error.txt\");\n return \"Could not retrieve list of terms\";\n }\n }", "title": "" }, { "docid": "8d03dcb08e9f98af4ecb8d140f1e79ee", "score": "0.5222858", "text": "public function getSearchTerms()\n {\n return $this->searchTerms;\n }", "title": "" }, { "docid": "5d977115c3969e35cd170f921ab446a9", "score": "0.51281583", "text": "public static function ToTermsAdmin()\r\n {\r\n $link = 'Page=Terms';\r\n return self::ToAdmin($link);\r\n }", "title": "" }, { "docid": "a3d452f8819455d9b04ae47ff3364512", "score": "0.510982", "text": "function wpdocs_custom_taxonomies_terms_links() {\r\n // Get post by post ID.\r\n $post = get_post( $post->ID );\r\n\r\n // Get post type by post.\r\n $post_type = $post->post_type;\r\n\r\n // Get post type taxonomies.\r\n $taxonomies = get_object_taxonomies( $post_type, 'objects' );\r\n\r\n $out = array();\r\n\r\n foreach ( $taxonomies as $taxonomy_slug => $taxonomy ){\r\n\r\n // Get the terms related to post.\r\n $terms = get_the_terms( $post->ID, $taxonomy_slug );\r\n\r\n if ( ! empty( $terms ) ) {\r\n\r\n foreach ( $terms as $term ) {\r\n $out[] = sprintf( '<a class=\"chip orange white-text z-depth-1-half nocanto1\" href=\"%1$s\">%2$s</a>',\r\n esc_url( get_term_link( $term->slug, $taxonomy_slug ) ),\r\n esc_html( $term->name )\r\n );\r\n }\r\n\r\n }\r\n }\r\n return implode( '', $out );\r\n}", "title": "" }, { "docid": "eeb50232ec6eb60595265a41115c50a3", "score": "0.5102084", "text": "function forge_list_terms($taxonomy, $format = \"link\", $postID = NULL ){\n\n\tif($postID == NULL){\n\t\t$postID = $post->ID;\n\t}\n\t$terms = get_the_terms( $postID, $taxonomy ); \n\tif ( $terms && ! is_wp_error( $terms ) ) { \n\n\t\t$term_output = array();\n\t\n\t\tforeach ( $terms as $term ) {\n\t\t\t\n\t\t\tif($format == 'name'){\n\t\t\t\t$term_output[] = $term->name;\t\t\t\n\n\t\t\t}\n\t\t\telseif($format == 'link'){\n\t\t\t\t$term_output[] = \"<a href='\".get_term_link($term->slug, $taxonomy).\"' class='term-link'>\".$term->name.\"</a>\";\n\n\t\t\t}else{\n\t\t\t\t$term_output[0] = \"The format provided is not supported. \";\n\t\t\t}\n\n\t\t\n\t\t}\n\t\t\t\t\t\t\t\n\t\t$theTerms = join( \", \", $term_output );\n\t\t\n\t}\n\treturn \t$theTerms;\t\t\t\t\t\t\t\n\n}", "title": "" }, { "docid": "512eb0b8b354ce6ed2ab176c54927893", "score": "0.5093955", "text": "public function terms()\n {\n return view('home.legal.terms-of-use');\n }", "title": "" }, { "docid": "0a045974fbfa0aaabc6eed9f354f540a", "score": "0.5089352", "text": "public function listAction () {\n\t\tif ($this->_getParam('catalog')) {\n\t\t\t$catalogId = $this->_helper->osidId->fromString($this->_getParam('catalog'));\n\t\t\t$lookupSession = $this->_helper->osid->getCourseManager()->getTermLookupSessionForCatalog($catalogId);\n\t\t\t$this->view->title = 'Terms in '.$lookupSession->getCourseCatalog()->getDisplayName();\n\t\t} else {\n\t\t\t$lookupSession = $this->_helper->osid->getCourseManager()->getTermLookupSession();\n\t\t\t$this->view->title = 'Terms in All Catalogs';\n\t\t}\n\t\t$lookupSession->useFederatedCourseCatalogView();\n\t\t\n\t\t$this->view->terms = $lookupSession->getTerms();\n\t\t\n\t\t$this->setSelectedCatalogId($lookupSession->getCourseCatalogId());\n\t\t$this->view->headTitle($this->view->title);\n\t\t\n\t\t$this->view->menuIsTerms = true;\n\t}", "title": "" }, { "docid": "8b8ae12114ff33552436bf8bcf911740", "score": "0.50816035", "text": "public function index_term_links()\n {\n }", "title": "" }, { "docid": "42a9569dca104b5dab0e259f3d2b0f3d", "score": "0.50800353", "text": "public static function getServiceDocs();", "title": "" }, { "docid": "6755e4be142bdaa70d4024d503a6e8a8", "score": "0.5067337", "text": "function wpv_shortcode_wpv_tax_url($atts){\r\n \r\n global $WP_Views;\r\n \r\n $term = $WP_Views->get_current_taxonomy_term();\r\n \r\n if ($term) {\r\n return get_term_link($term);\r\n } else {\r\n return '';\r\n }\r\n \r\n}", "title": "" }, { "docid": "756521add0febb2e4c360357b0181366", "score": "0.5056068", "text": "public function getServiceUrl()\n\t{\n\t\tif($this->casLocal != FALSE)\n\t\t\treturn $this->casLocal;\n\t\telse\n\t\t\treturn $this->serviceUrl;\n\t}", "title": "" }, { "docid": "5d495caf5efec5ab5094f1136a43156a", "score": "0.50448865", "text": "public function &getWordList() {\n \treturn $this->terms;\n }", "title": "" }, { "docid": "ed15d2d5e1eb42152dae91bd2f4ccef9", "score": "0.5026245", "text": "function ttrust_get_terms( $id = '' ) {\r\n global $post;\r\n\r\n if ( empty( $id ) )\r\n $id = $post->ID;\r\n\r\n if ( !empty( $id ) ) {\r\n $post_taxonomies = array();\r\n $post_type = get_post_type( $id );\r\n $taxonomies = get_object_taxonomies( $post_type , 'names' );\r\n\r\n foreach ( $taxonomies as $taxonomy ) {\r\n $term_links = array();\r\n $terms = get_the_terms( $id, $taxonomy );\r\n\r\n if ( is_wp_error( $terms ) )\r\n return $terms;\r\n\r\n if ( $terms ) {\r\n foreach ( $terms as $term ) {\r\n $link = get_term_link( $term, $taxonomy );\r\n if ( is_wp_error( $link ) )\r\n return $link;\r\n $term_links[] = '<li><span><a href=\"'.$link.'\">' . $term->name . '</a></span></li>';\r\n }\r\n }\r\n\r\n $term_links = apply_filters( \"term_links-$taxonomy\" , $term_links );\r\n $post_terms[$taxonomy] = $term_links;\r\n }\r\n return $post_terms;\r\n } else {\r\n return false;\r\n }\r\n}", "title": "" }, { "docid": "246a1fdcd88de1074b27430c21805814", "score": "0.5018057", "text": "private function getServiceUrl()\n {\n return $this->_protocol . $this->serviceUrl;\n }", "title": "" }, { "docid": "6afede4b919d65ea5380793e7f4419e1", "score": "0.5017144", "text": "public function getUrl()\n {\n return Yii::$app->urlManagerFront->createAbsoluteUrl(['/term/view', 'id' => $this->id]);\n }", "title": "" }, { "docid": "79f3c1cb2b8fb4a904b172df55a08a13", "score": "0.5013978", "text": "function getOntologyTermsByOntology( $ontology ) {\n\t try {\n\t\t\t $terms = [];\n\t\t\t $dbr = wfGetDB( DB_SLAVE );\n\t\t\t $res = $dbr->select(\n\t\t\t\t\t 'ontology',\n\t\t\t\t\t [ '*' ],\n\t\t\t\t\t [ 'ontology = ' . $dbr->addQuotes( $ontology ) ]\n\t\t\t );\n\n\t\t\t $terms = [];\n\t\t\t $count = 0;\n\t\t\t while ( $row = $dbr->fetchObject( $res ) ) {\n\t\t\t\t\t $term = new WSOntologyTerm();\n\t\t\t\t\t $term->id = $row->term_id;\n\t\t\t\t\t $term->name = $row->term;\n\t\t\t\t\t $term->ontology = $row->ontology;\n\t\t\t\t\t $terms[] = $term;\n\t\t\t\t\t $count++;\n\t\t\t }\n\t\t\t $dbr->freeResult( $res );\n\n\t\t\t $termObjects = [];\n } catch ( Exception $e ) {\n\t\t\t throw new WSFault( \"Receiver\", \"Unable to get ontology\nterms: \" . $e );\n\t }\n return [ \"terms\" => $terms ];\n}", "title": "" }, { "docid": "3cb818f95afdec341416e81beed91e97", "score": "0.5009196", "text": "function getLicenseAgreementUrl() {\n return 'http://www.activecollab.com/docs/manuals/licensing/license-agreement';\n }", "title": "" }, { "docid": "1cd19c62a5a8747a102e10fe540db000", "score": "0.5006148", "text": "function ajax_get_term_keyword_usage()\n {\n }", "title": "" }, { "docid": "fd59a7cbb5982c3264c01173506f673d", "score": "0.49897692", "text": "function care_mci_get_term_links( $postID, $termname ) {\n\t$term_list = wp_get_post_terms( $postID, $termname ); \n\t$i = 0;\n\t$len = count( $term_list );\n\tforeach( $term_list as $term ) {\n\t\tif( $i++ >= 0 && $i < $len) {\n\t\t\t$sep = ',';\n\t\t}\n\t\telse if( $i >= $len ) {\n\t\t\t$sep = '';\n\t\t}\n\t\t$lnk = get_term_link( $term );\n\t\tif( is_wp_error( $lnk ) ) {\n\t\t\t$mess = $lnk->get_error_message();\n\t\t\techo \"<span>$mess</span>$sep\";\n\t\t}\n\t\telse {\n\t\t\techo \"<a href='$lnk'>$term->name</a>$sep\";\n\t\t}\n\t}\n}", "title": "" }, { "docid": "a5b68ef5cb937de9c475ced499840aba", "score": "0.49815857", "text": "function thesaurus_get ($theQuery,$theKey,$isAPI) {\n $name = \"wikisaurus\";\n $url = \"http://thesaurus.altervista.org/thesaurus/v1?word=\".$theQuery.\"&output=json&language=en_US&key=\".$theKey;\n $link = \"http://en.wiktionary.org/wiki/\".$theQuery.\"#Synonyms\";\n $obj = json_decode(file_get_contents($url));\n if ($isAPI) {\n return thesaurus_json($name,$link,$obj);\n } else {\n return thesaurus_html($name,$link,$obj);\n }\n}", "title": "" }, { "docid": "33dce4b5efc7bf3a1e9e30b7c915f2cf", "score": "0.49767518", "text": "function operationSearchByCsvTerms($terms)\n {\n // set parameters\n $homepage = $this->config->website;\n $class_name = \"namespace-uri\"; // http://view-source beforehand\n\n $namespace_link_list = $this->getHtmlLinkListByClassName($homepage, $class_name);\n\n // set delimiters and load CSV\n $delimiters = \", \"; // CSV format (comma-separated)\n $term = strtok($terms, $delimiters);\n\n // parse and search URIs\n while ($term != false) {\n // variables\n $return_array = null;\n $return_array['URI'] = array();\n\n // search from all namespaces\n foreach ($namespace_link_list as $namespace_link) {\n // get URIs\n $uri_list = $this->getURIsByNamespaceLink($namespace_link);\n\n // extract terms to compare\n foreach ($uri_list as $uri) {\n // http://somewhere/example#term -> term\n $extracted_term = trim(strstr($uri, \"#\"), \"#\");\n\n // get it!!\n if ($extracted_term == $term) {\n array_push($return_array['URI'], $uri);\n }\n }\n }\n\n // add response information\n if (count($return_array['URI']) > 0) {\n $return_array['TERM'] = $term;\n $return_array['STATUS'] = SUCCESS;\n } else {\n $return_array['TERM'] = $term;\n $return_array['NAMESPACE'] = null;\n $return_array['STATUS'] = FAILURE;\n $return_array['FAILURE_MESSAGE'] = \"Cannot find any URI for the term $term\";\n }\n\n // append information for response\n array_push($this->response_array, $return_array);\n\n // get next token\n $term = strtok(\", \");\n }\n\n // report\n $this->responseReoprtByJSON(OPERATION_SEARCH, $this->response_array);\n }", "title": "" }, { "docid": "806fe02db54129384fd77cbd450e4050", "score": "0.496391", "text": "public abstract function get_service_content();", "title": "" }, { "docid": "fe620776843fc10b0c2e0fd19e5d6518", "score": "0.4961024", "text": "abstract protected function getTokenUrl();", "title": "" }, { "docid": "983c1ce513f3c073a32e3252b99d198a", "score": "0.49525914", "text": "public function index_terms()\n {\n }", "title": "" }, { "docid": "a3cf8823ba7d4d10ddd0df009fd01526", "score": "0.49519002", "text": "private function search_url()\n {\n }", "title": "" }, { "docid": "a3cf8823ba7d4d10ddd0df009fd01526", "score": "0.49518275", "text": "private function search_url()\n {\n }", "title": "" }, { "docid": "a7297a72994c320a80fe85cc6688e0ba", "score": "0.4950235", "text": "public static function accept_terms_of_service() {\n update_option('shareaholic_has_accepted_tos', true);\n\n ShareaholicUtilities::log_event(\"AcceptedToS\");\n\n echo \"{}\";\n\n die();\n }", "title": "" }, { "docid": "d42506c9ac41817b6e93665fd33fc6a4", "score": "0.49477512", "text": "public function getURL();", "title": "" }, { "docid": "2974b3beed7e65decfdba05586161dae", "score": "0.4935813", "text": "public function term()\n\t{\n\t\treturn $this->contract->term;\n\t}", "title": "" }, { "docid": "a877616f4dffd53560c275d264ebf4e0", "score": "0.49337983", "text": "public static function getCommercialTerms() {\n $conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\n $st = $conn->prepare( \"SELECT shortdesc as codevalue, shortdesc FROM crm_lookup where codegroup = 'LG' and codeid = 'CommercialTerms' order by sortorder\");\n\t $st->execute();\n\t\n\t$list = array();\n\n while ( $row = $st->fetch() ) {\n $list[] = new crm_dropdown( $row );\n }\n\n $conn = null;\n return $list;\n\t}", "title": "" }, { "docid": "d80683092f2a3dbda7c376655611113c", "score": "0.4929957", "text": "public function extractAdvancedTerms()\n {\n $terms = array();\n foreach ($this->searchTerms as $current) {\n if (isset($current['lookfor'])) {\n $terms[] = $current['lookfor'];\n } else if (isset($current['group']) && is_array($current['group'])) {\n foreach ($current['group'] as $subCurrent) {\n if (isset($subCurrent['lookfor'])) {\n $terms[] = $subCurrent['lookfor'];\n }\n }\n }\n }\n return implode(' ', $terms);\n }", "title": "" }, { "docid": "f810376f0d7944b175dcba85cd83ee9d", "score": "0.49269903", "text": "public function getServiceUrl()\n {\n return $this->service_url;\n }", "title": "" }, { "docid": "f810376f0d7944b175dcba85cd83ee9d", "score": "0.49269903", "text": "public function getServiceUrl()\n {\n return $this->service_url;\n }", "title": "" }, { "docid": "69956862cb709fad308755e91fbe8f3e", "score": "0.49216366", "text": "public function setTerms($value){\n return $this->setParameter('terms', $value);\n }", "title": "" }, { "docid": "74ff5d8215adbe0e4d36df9b18ba4dba", "score": "0.4913664", "text": "function serviceByCsvTerms($operation, $namespace, $terms)\n {\n if ($operation == OPERATION_CREATE) {\n // create URIs\n $this->operationCreateByCsvTerms($namespace, $terms);\n } else if ($operation == OPERATION_DELETE) {\n // TODO\n $this->responseError(\"TODO operation.\");\n } else if ($operation == OPERATION_SEARCH) {\n // search URIs\n $this->operationSearchByCsvTerms($terms);\n } else {\n // response error\n $this->responseError(\"operation not supported yet.\");\n }\n }", "title": "" }, { "docid": "d152401f97a31cebcf0b90303c7b6b98", "score": "0.4905254", "text": "function content_query_term() {\n\t\t$the_query = urlencode( Mage::helper( 'catalogsearch' )->getQueryText() );\n\t\treturn $the_query;\n\t}", "title": "" }, { "docid": "de2685bb102c777d0724dda66b4a6889", "score": "0.49042523", "text": "public function getAll()\n\t{\n\t\treturn $this->client\n\t\t\t->TermOfPayment_GetAll()\n\t\t\t->TermOfPayment_GetAllResult\n\t\t\t->TermOfPaymentHandle;\n\t}", "title": "" }, { "docid": "13afc5f1120200cf60a36a588d87c801", "score": "0.48906866", "text": "function getOntologyTermsByPathway( $pwId ) {\n\t try {\n\t\t\t $pw = new Pathway( $pwId );\n\t\t\t $terms = [];\n\t\t\t $dbr = wfGetDB( DB_SLAVE );\n\t\t\t $res = $dbr->select(\n\t\t\t\t\t 'ontology',\n\t\t\t\t\t [ '*' ],\n\t\t\t\t\t [ 'pw_id = ' . $dbr->addQuotes( $pwId ) ]\n\t\t\t );\n\n\t\t\t $terms = [];\n\t\t\t $count = 0;\n\t\t\t while ( $row = $dbr->fetchObject( $res ) ) {\n\t\t\t\t\t $term = new WSOntologyTerm();\n\t\t\t\t\t $term->id = $row->term_id;\n\t\t\t\t\t $term->name = $row->term;\n\t\t\t\t\t $term->ontology = $row->ontology;\n\t\t\t\t\t $terms[] = $term;\n\t\t\t\t\t $count++;\n\t\t\t }\n\t\t\t $dbr->freeResult( $res );\n\n\t\t\t $termObjects = [];\n } catch ( Exception $e ) {\n\t\t\t throw new WSFault( \"Receiver\", \"Unable to get ontology\nterms: \" . $e );\n\t }\n return [ \"terms\" => $terms ];\n}", "title": "" }, { "docid": "970f92d46254032ec2b4739b5e18f8bd", "score": "0.48848385", "text": "public function getToc($url){\n\t\t// ...\n\t}", "title": "" }, { "docid": "58dca37d08a1c9b326230595443802d9", "score": "0.48828992", "text": "public function getWebsite();", "title": "" }, { "docid": "5025f0c04b8fa918d3d39b4a42897b77", "score": "0.4873268", "text": "public function extract_terms(){\n $words = preg_split('/\\s+/', $this->content, -1, PREG_SPLIT_NO_EMPTY);\n $nTerms = array();\n foreach($words as $word) {\n if (!isset($nTerms[$word])) {\n $nTerms[$word] = 0;\n }\n $nTerms[$word]++;\n }\n \n $sTermCount = array(); // Now we find the stems of the terms.\n $oTerms = array_keys($nTerms);\n $limit = count($oTerms);\n $stemmer = new Stemmer();\n $maxTermCount = 0;\n $this->length = 0;\n for($i = 0; $i < $limit; $i++) {\n $stem = $stemmer->stem($oTerms[$i]);\n if(!empty($stem)){\n if(!isset($sTermCount[$stem])) {\n $sTermCount[$stem] = 0;\n }\n $sTermCount[$stem] += $nTerms[$oTerms[$i]];\n $this->length += $nTerms[$oTerms[$i]];\n if ($sTermCount[$stem] > $maxTermCount) {\n \t$maxTermCount = $sTermCount[$stem];\n }\n }\n }\n $this->terms = $sTermCount;\n \n $sTerms = array_keys($sTermCount);\n $limit = count($sTerms);\n $idf = array();\n for($i = 0; $i < $limit; $i++) {\n $idf[$sTerms[$i]] = ($maxTermCount > 0) ? ($sTermCount[$sTerms[$i]] / $maxTermCount) : 0;\n }\n $this->inverseDocumentFrequency = $idf;\n }", "title": "" }, { "docid": "4c0adf0a8c48659caff098c9d21f161b", "score": "0.48641124", "text": "public static function getTerms_payment() {\n $conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\n $st = $conn->prepare( \"SELECT term_desc as term_short_desc, term_desc FROM crm_term_lookup where sales_division_code = 'ID' and term_type = 'payment' order by term_desc\");\n\t $st->execute();\n\t\n\t$list = array();\n\n while ( $row = $st->fetch() ) {\n $list[] = new crm_dropdown( $row );\n }\n\n $conn = null;\n return $list;\n\t}", "title": "" }, { "docid": "0188d1453d9412a78d71f51f71341c20", "score": "0.48543537", "text": "function GET() {\r\n require $this->sRessourcesFile;\r\n $this->aFields = $this->getFields($this->aProperties['schema_vm4ms'], 'v_private_wms_service', 'wmsservice_id');\r\n $this->aFields['wms_service_url'] = $this->aProperties[\"ms_cgi_url\"] . '/private/[token]';\r\n }", "title": "" }, { "docid": "8d56f45b9d6660c630e4c7a1b3728294", "score": "0.4836033", "text": "public function terms(string $key = '', array $terms = [], callable $callback = null);", "title": "" }, { "docid": "7c34be0f50509a52ce2e1f2fb90688af", "score": "0.48359755", "text": "function ctools_terms_from_node_context($context, $conf) {\n // If unset it wants a generic, unfilled context, which is just NULL.\n if (empty($context->data)) {\n return ctools_context_create_empty('terms', NULL);\n }\n\n // Collect all terms for the chosen vocabulary and concatenate them.\n $node = $context->data;\n $terms = array();\n \n $fields = field_info_instances('node', $node->type);\n foreach ($fields as $name => $info) {\n $field_info = field_info_field($name);\n if ($field_info['type'] == 'taxonomy_term_reference' && (empty($conf['vocabulary']) || !empty($conf['vocabulary'][$field_info['settings']['allowed_values'][0]['vocabulary']]))) {\n $items = field_get_items('node', $node, $name);\n if (is_array($items)) {\n foreach ($items as $item) {\n $terms[] = $item['tid'];\n }\n }\n }\n }\n \n if (!empty($terms)) {\n $all_terms = ctools_break_phrase(implode($conf['concatenator'], $terms));\n return ctools_context_create('terms', $all_terms);\n }\n}", "title": "" }, { "docid": "a579deded4211eb33d741685eb97cc30", "score": "0.4813645", "text": "function getTimesRecipe($url){\n\t\n}", "title": "" }, { "docid": "f703aa938dd1c29510590f9ac8a3a427", "score": "0.48106727", "text": "function custom_taxonomies_terms_links() {\n\n\tglobal $post, $post_id;\n\n\t// get post by post id\n\n\t$post = &get_post($post->ID);\n\n\t// get post type by post\n\n\t$post_type = $post->post_type;\n\n\t// get post type taxonomies\n\n\t$taxonomies = get_object_taxonomies($post_type);\n\n\tforeach ($taxonomies as $taxonomy) {\n\n\t\t// get the terms related to post\n\n\t\t$terms = get_the_terms( $post->ID, $taxonomy );\n\n\t\tif ( !empty( $terms ) ) {\n\n\t\t\t$out = array();\n\n\t\t\tforeach ( $terms as $term )\n\n\t\t\t\t$out[] = '<a href=\"' .get_term_link($term->slug, $taxonomy) .'\">'.$term->name.'</a>';\n\n\t\t\t$return = join( ', ', $out );\n\n\t\t}\n\n\t\treturn $return;\n\n\t}\n\n}", "title": "" }, { "docid": "869e153c41434ef8ac8a2eba2a9fc63f", "score": "0.4809519", "text": "public function getSsrUrl(): string;", "title": "" }, { "docid": "0ff8b201ebcf01f148244c21ded534a7", "score": "0.4805179", "text": "function getXML($searchterms,$start)\r\n\t\t{\r\n\t\t\t$cseNumber = 'REPLACE ME WITH YOUR cseNumber THAT GOOGLE PROVIDE YOU WITH'; // CHANGE ME!!!!!! this won't work otherwise\r\n\t\t\t\r\n\t\t\t$xmlfile = 'http://www.google.com/search?cx='.$cseNumber.'&client=google-csbe&start='.$start.'&num=10&output=xml_no_dtd&q='.$searchterms;\r\n\t\t\t$xml = new SimpleXMLElement(file_get_contents($xmlfile));\r\n\t\t\t\r\n\t\t\treturn $xml;\r\n\t\t}", "title": "" }, { "docid": "a98084169f544f4ae964bd5adcb75969", "score": "0.4802476", "text": "function returnShortUrlServicesRegExpr(){\n $shortUrlServices = $this->shortUrlServices;\n foreach($shortUrlServices AS $key => $value){\n $shortUrlServices[$key] = preg_quote($value, '/');\n }\n $shortUrlServices = implode(\"|\", $shortUrlServices);\n return '/https?:\\/\\/(w{3}\\.)?('.$shortUrlServices.')/i';\n }", "title": "" }, { "docid": "b9b1a04cff0d754bc667d70a6eaf3dea", "score": "0.4785336", "text": "public function urban_lookup($term) \n {\n\t$url = 'http://api.urbandictionary.com/v0/define?term='.$term;\n\t$ch = curl_init();\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\tcurl_setopt($ch, CURLOPT_URL, $url);\n\t$data = curl_exec($ch);\n\tcurl_close($ch);\n\t$results = json_decode($data);\n\treturn $results;\n }", "title": "" }, { "docid": "900246c0e76c782b96aa8593d9f45258", "score": "0.4784316", "text": "public function terms()\n {\n return view('frontend/terms');\n }", "title": "" }, { "docid": "5ac6be84cf4768593fff0a50bf005238", "score": "0.47837722", "text": "public function terms(){\n\n $title = 'Terms & Privacy Policies - AfriHow';\n\n $navbar_title = 'Terms & Privacy Policies';\n\n return view('pages.public.terms')->with(['title'=> $title, 'navbar'=>$navbar_title]);\n }", "title": "" }, { "docid": "ee2a95af86f0926aa067c297b97e9041", "score": "0.47817075", "text": "function domain()\n{\n $url = Vuzit_Service::getServiceUrl();\n return substr($url, 7, strlen($url) - 7);\n}", "title": "" }, { "docid": "d553ffb20d9cca970a9708cc2a25ce87", "score": "0.47784057", "text": "public static function getTerms_price_desc() {\n $conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\n $st = $conn->prepare( \"SELECT term_short_desc, term_desc FROM crm_term_lookup where sales_division_code = 'ID' and term_type = 'price_desc' order by term_desc\");\n\t $st->execute();\n\t\n\t$list = array();\n\n while ( $row = $st->fetch() ) {\n $list[] = new crm_dropdown( $row );\n }\n\n $conn = null;\n return $list;\n\t}", "title": "" }, { "docid": "dc79d09ca0802997d1d1a767ba7ba18b", "score": "0.47778666", "text": "public function getServiceDocumentation()\r\n {\r\n return $this->service_documentation;\r\n }", "title": "" }, { "docid": "9c0443b414df893b716d8cf81523ed86", "score": "0.4775775", "text": "public function testGetTerms()\n {\n }", "title": "" }, { "docid": "2580ff8405351df5c6f224163557b6a7", "score": "0.47716936", "text": "public static function has_accepted_terms_of_service() {\n return get_option('shareaholic_has_accepted_tos');\n }", "title": "" }, { "docid": "a21281f3d7017b8b1d5abb8d4b2149b8", "score": "0.4769419", "text": "public function listTerms($retinaName, $startIndex = null, $maxResults = null, $getFingerprint = null) \n {\n $params = [\n 'retina_name' => $retinaName,\n ];\n if ($startIndex !== null) {\n $params['start_index'] = (int)$startIndex;\n }\n if ($maxResults !== null) {\n $params['max_results'] = (int)$maxResults;\n }\n if ($getFingerprint !== null) {\n $params['get_fingerprint'] = $getFingerprint === true ? 'true' : 'false';\n }\n return $this->getClient()->get('terms', $params);\n }", "title": "" }, { "docid": "206f128e88f05e4c464347f314ec8840", "score": "0.47633344", "text": "function importTermsFromRdfSource(){\n global $base_url;\n $vocabMachineName = variable_get('insideout_rdf_vocabulary_machine_name');\n $vocab = taxonomy_vocabulary_machine_name_load($vocabMachineName);\n $uri = 'http://dati.gov.it/onto/controlledvocabulary/InteractivityLevel';\n\n // Load rdf_format.inc file from the taxonomy_xml module.\n module_load_include('inc','taxonomy_xml','formats/rdf_format');\n\n // Import rdf file data to a php string.\n $rdfString = file_get_contents($uri);\n // Get An array set of triples.\n $result = taxonomy_xml_rdf_parse_data_into_index($rdfString,$uri);\n\n $count = 0;\n // specify each skos feature value, save them as key value pairs, in order to easily save them as terms.\n foreach ($result as $key => $value) {\n //skip ConceptScheme and loop through the remaining Concepts.\n if($key != $uri){\n $term = array();\n $term['uri'] = $key;\n foreach ($value as $key => $innerValue) {\n @list($resource_url, $anchor) = explode('#', $key);\n // if anchor is empty, get feature name from url.\n if(empty($anchor)){\n $anchor = end((explode('/', $resource_url)));\n }\n // here is where i can't specify the language. because parser doesn't declare the language. i think i need to write my own parser !.\n $term[$anchor] = $innerValue[0];\n }\n // Save new term.\n create_rdf_taxonomy_term( $vocab->vid, $term);\n $count++;\n }\n }\n // Give user feedback.\n drupal_set_message( $count . t(' Terms imported successfully, you can edit them ') . '<a href=\"'.$base_url.'/admin/structure/taxonomy/'.$vocabMachineName.'\">'.t('here').'</a>');\n}", "title": "" }, { "docid": "d8fb61bf916c789c6389d43065204b51", "score": "0.47610542", "text": "public function getUrls();", "title": "" }, { "docid": "f7aad5b1bcdd0a86d98d6a9e9e6d05df", "score": "0.4757873", "text": "function getTerms()\r\n {\r\n $SQL = new SQLAdmin();\r\n $return = $SQL->getTerms();\r\n return $return;\r\n }", "title": "" }, { "docid": "0d7dd98654e713e92cee4f3420d74a7b", "score": "0.47575966", "text": "function wpv_get_term_by_url_parameter( $atts ) {\n $a = shortcode_atts( array(\n 'field' => '',\n 'taxonomy' => '',\n 'url_parameter' => '',\n 'display' => '',\n ), $atts );\n\n $term = get_term_by($a['field'], $_GET[$a['url_parameter']], $a['taxonomy']);\n\n return $term->$a['display'];\n}", "title": "" }, { "docid": "171b940d2b03037dc2e6e00c61b77db4", "score": "0.47545505", "text": "public function fcpoGetRatepayAgreementLink() {\n\n $sLink = 'https://www.ratepay.com/legal-payment-terms';\n\n return $sLink;\n }", "title": "" }, { "docid": "7636eeb1510e0e4a8eebf1d4342f41ad", "score": "0.47495452", "text": "function listPurposereferral()\n {\n $apiUrl=$this->source.'/purposes';\n $curl = new curl\\Curl();\n $token= 'Authorization: Bearer '.$_SESSION['usertoken'];\n $curl->setOption(CURLOPT_HTTPHEADER, ['Content-Type: application/json' , $token]);\n $curl->setOption(CURLOPT_CONNECTTIMEOUT, 180);\n $curl->setOption(CURLOPT_TIMEOUT, 180);\n $curl->setOption(CURLOPT_SSL_VERIFYPEER, false);\n $list = Json::decode($curl->get($apiUrl));\n return $list?$list:[];\n }", "title": "" }, { "docid": "202b01dbbd06c653e0601309e72c2fd8", "score": "0.4747294", "text": "public static function getTerms_installation() {\n $conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\n $st = $conn->prepare( \"SELECT term_short_desc, term_desc FROM crm_term_lookup where sales_division_code = 'ID' and term_type = 'installation' order by term_desc\");\n\t $st->execute();\n\t\n\t$list = array();\n\n while ( $row = $st->fetch() ) {\n $list[] = new crm_dropdown( $row );\n }\n\n $conn = null;\n return $list;\n\t}", "title": "" }, { "docid": "d65ec9fcc52703c3a3344462f251a1e8", "score": "0.47431147", "text": "public function get_service() {\n\t\t\t$response = wp_remote_get(\n\t\t\t\t\\GTO\\Framework\\Util\\String::vnsprintf( self::ENDPOINT_SERVICE, array( 'hub' => \\Ekko\\URI_HUB ) ),\n\t\t\t\tarray(\n\t\t\t\t\t'redirection' => 0,\n\t\t\t\t\t'headers' => array(\n\t\t\t\t\t\t'Accept' => 'text/plain'\n\t\t\t\t\t),\n\t\t\t\t)\n\t\t\t);\n\t\t\treturn ( $response[ 'body' ] );\n\t\t}", "title": "" }, { "docid": "59825b28b261770325b2e07410c4acc1", "score": "0.4741187", "text": "public static function getServiceURL() {\r\n\t\tglobal $PHPCAS_CLIENT;\r\n\t\tif (!is_object($PHPCAS_CLIENT)) {\r\n\t\t\tphpCAS :: error('this method should only be called after ' . __CLASS__ . '::proxy()');\r\n\t\t}\r\n\t\treturn ($PHPCAS_CLIENT->getURL());\r\n\t}", "title": "" }, { "docid": "89c734e304e14c869eb97d6894298388", "score": "0.47379214", "text": "function buscaSecInterna($url){\n\t\t$partesURL = explode('/', $url);\n\n\t\tglobal $mt;\n\t\t$importantURL = $partesURL[0];\n\t\t$resultado = $mt->getSec($importantURL);\n\t\treturn $resultado;\n\t}", "title": "" }, { "docid": "4c27f492b16c39ace06cbed9add3dce1", "score": "0.4735167", "text": "public function getServiceUrl() {\n return $this->serviceUrl;\n }", "title": "" }, { "docid": "2097a684e9a7d5e0a7e28fc734d304df", "score": "0.47253358", "text": "function exact_term ($term){\n\t\t$term_url = 'http://api.urbandictionary.com/v0/define?term=' . str_replace(' ', '+', $term);\n\t\t$term_json = file_get_contents($term_url);\n\t\t$term_array = json_decode($term_json, true);\n\t\tif (count($term_array['list']) == 0) {\n\t\t\t$term_return = no_result_text();\n\t\t} else {\n\t\t\t$random_array_number = rand(0,count($term_array['list'])-1);\n\t\t\t$term_return = format_return_text($term_array, $random_array_number, count($term_array['list']));\n\t\t}\n\t\treturn $term_return ;\n\t}", "title": "" } ]
cb46db6b99e2b4bf125f3d8e2f0dfb5e
Validate a field with the blacklist patterns
[ { "docid": "2acacb8b9e6cfda22101c26e648eab84", "score": "0.5119524", "text": "function validate()\r\n {\r\n \t//get data model's name\r\n \t$modelName = $this->getModelNameForValidation();\r\n\r\n \t\t//validate each field\r\n \t\tforeach($this->data[$modelName] as $modelField=>$modelValue)\r\n \t\t{\r\n \t\t\t//do we have rules for this field?\r\n \t\t\tif(array_key_exists($modelField, $this->patterns))\r\n \t\t\t{\r\n \t\t\t\t//match each pattern with this field\r\n \t\t\t\tforeach($this->patterns[$modelField] as $pattern)\r\n \t\t\t\t{\r\n \t\t\t\t\t//if matched, the data is SPAM\r\n \t\t\t\t\tif(ereg($pattern, $this->data[$modelName][$modelField]))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\t//add the field to $this->invalidFields\r\n \t\t\t\t\t\t$this->invalidFields[] = $modelField;\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\t//now we just check $this->invalidFields, if it had any elements, the data must be SPAM\r\n \t\treturn count($this->invalidFields()) ? false : true;\r\n }", "title": "" } ]
[ { "docid": "f18d6528c1093ff29055256fa8500ebf", "score": "0.6328533", "text": "public function isAllowedPattern();", "title": "" }, { "docid": "fceb6a9060a36bcbfec346ad6e62f7e3", "score": "0.5985387", "text": "public function isValid(): bool\n {\n $value = $this->field->getValue();\n\n if (is_array($value) || is_object($value)) {\n throw new Exception(\"This validator only works on scalar types!\");\n }\n\n // required but not given\n if ($this->required && $value == null) {\n return false;\n } // if the field is not required and the value is empty, then it's also valid\n elseif (!$this->required && $value == \"\") {\n return true;\n }\n\n // now, walk all chars and check if they are in the blacklist\n for ($i = 0; $i < strlen($value); $i++) {\n if (in_array(strval($value[$i]), $this->blacklist, true)) {\n // not in the blacklist!\n return false;\n }\n }\n\n // if here, everything is ok!\n return true;\n }", "title": "" }, { "docid": "69be0f60add8181b9fef27fea90469c0", "score": "0.5811806", "text": "public function testValidatorRejectsValueThatEndsWithComparedValue()\r\n {\r\n $this->assertFalse($this->validator->isValid('hello world', 'world'));\r\n }", "title": "" }, { "docid": "7d431ed2cf8b134cbea46b76a4057057", "score": "0.57254946", "text": "public function validateField($field) \n {\n $success = true;\n foreach ($field as $key => $value) {\n if (!preg_match($value, $key)) {\n $success = false;\n } else {\n $success = true;\n }\n }\n\n return $success;\n }", "title": "" }, { "docid": "5085607b35cf8df73fd191aea311478e", "score": "0.5694964", "text": "protected function validates_exclusion_of($field, $list, $params = array())\n {\n if (is_string($params)) {\n $params = Util::getParams(func_get_args());\n }\n $this->_validates['exclusion_of'][$field] = $params;\n $this->_validates['exclusion_of'][$field]['list'] = $list;\n }", "title": "" }, { "docid": "3273abc0f852ad170cae33e5cf132dff", "score": "0.5662488", "text": "public function testValidatorRejectsValueThatStartsWithComparedValue()\n {\n $this->assertFalse($this->validator->isValid('hello world', 'hello'));\n }", "title": "" }, { "docid": "a830fe9fd993617a0cd8c3bb52cb637d", "score": "0.5633952", "text": "public function testValidatorRejectsValueThatContainsComparedValue()\r\n {\r\n $this->assertFalse($this->validator->isValid('hello world', 'lo wo'));\r\n }", "title": "" }, { "docid": "82e9d63f73c9ced307a461689c5798c6", "score": "0.5613698", "text": "function remove_blacklist($input) {\n\telgg_deprecated_notice('remove_blacklist() was deprecated!', 1.8);\n\n\tglobal $CONFIG;\n\n\tif (!is_array($CONFIG->wordblacklist)) {\n\t\treturn $input;\n\t}\n\n\tif (strlen($input) < 3 || in_array($input, $CONFIG->wordblacklist)) {\n\t\treturn false;\n\t}\n\n\treturn true;\n}", "title": "" }, { "docid": "a8503340363a071c4eda3df968982a6b", "score": "0.5598553", "text": "public function rules()\n {\n return [\n 'user_name' => 'required|min:8|max:12|alpha_num|unique:users',\n\t\t \t\t\t'user_email' => 'required|email|unique:user_profiles',\n\t\t\t'user_password' => 'required|min:8|max:12|bannedUserwords|different:user_name|regex:/^(?=.*[A-Za-z])(?=.*\\d)(?=.*[$@$!%*#?&])[A-Za-z\\d$@$!%*#?&]{8,}$/',\n\t\t\t'confirm_password' => 'required|same:user_password'\n ];\n }", "title": "" }, { "docid": "6da62f23150bfdd69ff28d4af5e3e3b3", "score": "0.5563499", "text": "public function validateRegex()\n { \n if ($this->getPattern() \n && !preg_match($this->getPattern(), $this->getValue())\n ) {\n throw new APIException(\n sprintf(\n '`%s` in %s fails regex pattern %s',\n $this->getValue(),\n $this->getField(),\n $this->getPattern()\n ),\n -1,\n 400\n );\n }\n }", "title": "" }, { "docid": "6c9f626ec478993c5fb3c93121383020", "score": "0.55362236", "text": "public function rules()\n {\n return [\n 'name' => 'required|unique:accounts|between:1,255|regex:/^[A-Z][0-9A-Za-z*.-]*$/',\n ];\n }", "title": "" }, { "docid": "c7375ba2205cee027e27c622abcb2f51", "score": "0.5528349", "text": "public function testValidatorAcceptsValueThatDoesNotContainComparedValue()\n {\n $this->assertTrue($this->validator->isValid('hello world', 'universe'));\n }", "title": "" }, { "docid": "4c1948923abead9acd7a4a95045d6eb9", "score": "0.5519486", "text": "public function testBlacklist() {\n\t\t$data = [\n\t\t\t'name' => 'foo',\n\t\t\t'x' => 'y',\n\t\t\t'z' => 'yes'\n\t\t];\n\t\t$this->User->set($data);\n\t\t$this->User->blacklist(['x']);\n\t\t$this->assertEquals(['name', 'z'], array_keys($this->User->data['User']));\n\t}", "title": "" }, { "docid": "0623cf993a7c0d4b945c87bce4209342", "score": "0.55168194", "text": "function edit_validate_field($usernew) {\n $errors = array();\n $regex = isset($this->field->param1) ? $this->field->param1 : '/^.*$/';\n $regex = preg_match(\"/^\\/.*\\/$/\", $regex) ? $regex : \"/\".$regex.\"/\";\n if(!preg_match($regex, $usernew->{$this->inputname})) {\n $errors[$this->inputname] = get_string('format_error', 'profilefield_textwithregex');\n return $errors;\n }\n return $errors;\n }", "title": "" }, { "docid": "86f5a6becfefcd8879bc0689cece0e25", "score": "0.54866236", "text": "function name_with_dotdash_validator($field_value) {\n\n // here * is used so blank is a valid data\n if (!preg_match('/^[a-zA-Z .-]*$/', $field_value)) {\n //set the field vaues given by user\n $this->CI->form_validation->set_value($field_value);\n $this->CI->form_validation->set_message('name_with_dotdash_validator', '%s is not a valid Name');\n return false;\n } else {\n return true;\n }\n }", "title": "" }, { "docid": "666fd6b115054348d87d25dc1de6ecdb", "score": "0.5485876", "text": "protected function validates_exclusion_of($campo, $list){\n\t\t$this->connect();\n\t\tif(!is_array($this->validates_exclusion)){\n\t\t\t$this->validates_exclusion = array();\n\t\t}\n\t\t$this->validates_exclusion[$campo] = $list;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "001b3292a13ea8bbb639d7c552cf84ed", "score": "0.54797417", "text": "public function rules()\n {\n return [\n 'listId' => array(\n \"required\",\n \"regex:/((ls)|(ur))\\d{1,12}/\"\n )\n ];\n }", "title": "" }, { "docid": "2913c624b2c10314013274c72d137c2b", "score": "0.5464756", "text": "private function checkRulesField($rules, $field, $logger) {\r\n foreach ($rules as $nameRule => $rule){\r\n\r\n $acceptedPattern = $rule->getAcceptedPattern();\r\n\r\n if ($acceptedPattern != NULL && strlen($acceptedPattern) > 0) {\r\n if (!preg_match($acceptedPattern, $field->getData())) {\r\n\r\n $field->addError(new FormError('HDIV Validation.'.$rule->getName().'. Invalid Characters.'));\r\n $logger->log('INVALID_EDITABLE_VALUE', null, $_SERVER['REMOTE_ADDR'], $field->getName(), null, $field->getData(), $rule->getName());\r\n return;\r\n }\r\n }\r\n $rejectedPattern = $rule->getRejectedPattern();\r\n\r\n if ($rejectedPattern != NULL && strlen($rejectedPattern) > 0) {\r\n if (preg_match($rejectedPattern, $field->getData())) {\r\n\r\n $field->addError(new FormError('HDIV Validation.'.$rule->getName().'. Invalid Characters.'));\r\n $logger->log('INVALID_EDITABLE_VALUE', null, $_SERVER['REMOTE_ADDR'], $field->getName(), null, $field->getData(), $rule->getName());\r\n return;\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "8314666a6d49394db5b11e6235524972", "score": "0.5463789", "text": "public function rules()\n {\n return [\n 'company_name' => 'required|alpha_num',\n 'email' => ['regex:/^((?!@gmail\\.com|@yahoo\\.com).)*$/'],\n 'mobile'=> 'required|digits:10',\n 'hr_name'=> 'required|alpha_num',\n 'user_password'=> 'required'\n ];\n }", "title": "" }, { "docid": "06dbccfd2d5ac2b462e30745a342e9c0", "score": "0.5448084", "text": "function gf_emailblacklist_validation($validation_result) {\n\t\t\t//collect form results\n\t\t\t$form = $validation_result['form'];\n\t\t\t//loop through results\n\t\t\tforeach($form['fields'] as &$field) {\n\n\t\t\t\t// if this is not an email field, skip\n\t\t\t\tif(RGFormsModel::get_input_type($field) != 'email')\n\t\t\t\t\tcontinue;\n\n\t\t\t\t//get the domain from user enterd email\n\t\t\t\t$email = explode('@', rgpost(\"input_{$field['id']}\"));\n\t\t\t\t$domain = strtolower(rgar($email, 1));\n\n\t\t\t\t//collect banned domains from backend and clean up\n\t\t\t\t$ban_domains = explode(',',$field[\"email_blacklist\"]);\n\t\t\t\t$ban_domains = array_map(array($this, 'gf_emailblacklist_clean'),$ban_domains);\n\n\t\t\t\t// if domain is valid OR if the email field is empty, skip\n\t\t\t\tif(!in_array($domain, $ban_domains) || empty($domain))\n\t\t\t\t\tcontinue;\n\n\t\t\t\t$validation_result['is_valid'] = false;\n\t\t\t\t$field['failed_validation'] = true;\n\n\t\t\t\t//set the validation message or use the default\n\t\t\t\tif( empty($field[\"email_blacklist_validation\"]) ) {\n\t\t\t\t\t$field['validation_message'] = sprintf(__('Sorry, <strong>%s</strong> email accounts are not eligible for this form.'), $domain);\n\t\t\t\t}else{\n\t\t\t\t\t$field['validation_message'] = $field[\"email_blacklist_validation\"];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$validation_result['form'] = $form;\n\t\t\treturn $validation_result;\n\t\t}", "title": "" }, { "docid": "9189eb36cfa6494ac671700df4c0f522", "score": "0.54374987", "text": "public function rules()\n {\n return [\n 'name' => 'required|max:30|regex:(^[0-9a-zA-Zá-úÁ-Ú\\s\\#\\-]+$)',\n ];\n }", "title": "" }, { "docid": "ae4696bbf593a8ad4634a4f708bbea8f", "score": "0.54350907", "text": "public function rules()\n {\n $validation = [\n 'all_space' => 'accepted',\n 'new_pw' => 'required|min:4|max:8|regex:/^[a-zA-Z0-9]+$/'\n ];\n return $validation;\n }", "title": "" }, { "docid": "614a70f827e52af00ca8f72358a086ec", "score": "0.5424561", "text": "public function rules() {\n return array(\n array('password, repeatPassword', 'required'),\n array('repeatPassword', 'compare', 'compareAttribute' => 'password', 'message' => \"Passwords don't match\"),\n );\n }", "title": "" }, { "docid": "d7b20a52cb81163f9f5f7ea5547488d7", "score": "0.5393539", "text": "private function exclusion_of ($field, $user_opts = array()) {\n\t\t$opts = array(\n\t\t\t'message' => '%s is reserved',\n\t\t\t'in' => array() // this should be overwritten by the rule in the DB class\n\t\t);\n\t\t$opts = array_merge($opts, $user_opts);\n\n\t\t$lc = (function_exists('mb_strtolower')) ? 'mb_strtolower' : 'strtolower';\n\t\t$value = trim((string)$this->dbo->$field);\n\n\t\t// exclusion list not an array or an empty array\n\t\tif (!is_array($opts['in']) || (is_array($opts['in']) && count($opts['in'])==0) || $value == '') {\n\t\t\treturn;\n\t\t}\n\n\t\t$opts['in'] = array_map($lc, (array)$opts['in']);\n\n\t\tif (in_array($lc($value), $opts['in'])) {\n\t\t\t$this->failures[] = array(\n\t\t\t\t'type' => __FUNCTION__,\n\t\t\t\t'field' => $field,\n\t\t\t\t'message' => sprintf($opts['message'], trim((string) $value), Fu_Inflector::humanize($field))\n\t\t\t);\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "34d11d830995096c6be9906f43a357cd", "score": "0.5374153", "text": "public function validate($field) { return preg_match(self::REGEX_PHONE, $field); }", "title": "" }, { "docid": "d2db37b6497d511ca4010faf41008790", "score": "0.5349506", "text": "function checkPattern($pattern, $value){\r\n return !preg_match($pattern, $value);\r\n}", "title": "" }, { "docid": "e0a2f54cf4957c8b832b995dca094abe", "score": "0.53421533", "text": "public function rules()\n {\n return [\n 'email' => ['required', 'email:rfc,dns', 'max:255', 'filled'],\n 'password' => ['required', 'string', 'min:8', 'max:255', 'regex:/^(?=.*\\d)(?=.*[A-Z])(?!.*[^a-zA-Z0-9@#$^+=])(.{8,255})$/'],\n ];\n }", "title": "" }, { "docid": "18aad96f46ae74ef8ffc2428386979c3", "score": "0.53159523", "text": "public function rules()\n {\n return [\n 'title' => 'required|min:10|max:25',\n 'body' => 'required|min:10',\n 'category' => ['regex:/\\bProgramming\\b|\\bFun\\b|\\bCannot think of category\\b/', 'max:25', 'required'],\n 'tags' => 'required|min:3|max:100'\n ];\n }", "title": "" }, { "docid": "dbed1186197609238c5ac4cfb748fae3", "score": "0.5315497", "text": "public function rules()\n {\n return [\n 'amount' => 'required|gt:0|max:22|regex:/^-?[0-9]+(?:\\.[0-9]{1,2})?$/',\n 'description' => 'required|string'\n ];\n }", "title": "" }, { "docid": "9b85b931f36763cbf264634093da5024", "score": "0.5311941", "text": "function passwordDisallowed($password) {\n $platitude = true;\n for ($i = 1; $i < strlen($password); ++$i) {\n if ($password[$i] !== $password[0])\n $platitude = false;\n }\n if ($platitude)\n return true;\n\n // disallow certain patterns\n $disallowList = array(\n \"123456\", \"password\", \"qwerty\"\n );\n foreach ($disallowList as $test)\n if ($test === $password)\n return true;\n\n return false;\n}", "title": "" }, { "docid": "4ee9c134f75aa0f2a9670785a2771c5a", "score": "0.5300406", "text": "public function blacklist(Array $list) {\n\t\t$this->filter($list, TRUE);\n\t}", "title": "" }, { "docid": "3f6ee6a5a3def4ebbcca165e83a5fb97", "score": "0.5295739", "text": "protected function passwordValidation()\n {\n return ['required', 'string', 'confirmed', 'min:8'];\n }", "title": "" }, { "docid": "83808d4d81f4f8826b9fbdb03991296d", "score": "0.52940357", "text": "public function rules()\n {\n return [\n 'mobile' => 'bail|required|regex:/^1[34578]{1}\\d{9}$/',\n 'password' => 'bail|required|between:32,32',\n 'openid' => 'bail|required',\n 'type' => 'bail|required|in:sina,qq,wechat',\n ];\n }", "title": "" }, { "docid": "2cf36152ba95a9dc8efb37b1799e44e4", "score": "0.5289088", "text": "function is_valid_attrb($attrb)\n {\n return preg_match(\"/^[_a-zA-Z0-9\\-\\:\\.]+$/\", $attrb);\n }", "title": "" }, { "docid": "81b7ff3196fe049d7a741fceca92e7f1", "score": "0.52858055", "text": "public function rules()\n {\n return [\n 'body' => 'required|spamfree'\n ];\n }", "title": "" }, { "docid": "42e212e10b241ed40dbe9f4ab1ba5837", "score": "0.5282983", "text": "public function canBeValidated();", "title": "" }, { "docid": "25ce42cdc9fcfa07459f1c5bc115b72d", "score": "0.52709997", "text": "public function rules()\n {\n return [\n 'nome' => 'required|max:60',\n 'cpf' => array(\n 'required',\n 'regex:/([0-9]{3}\\.?[0-9]{3}\\.?[0-9]{3}\\-?[0-9]{2})/'\n )\n ];\n }", "title": "" }, { "docid": "0f03ae741d3efab96550ec86f00d7743", "score": "0.52706975", "text": "public function testValidatorRejectsValuesThatDiffer()\n {\n $this->assertFalse($this->validator->isValid(7, 42));\n }", "title": "" }, { "docid": "08da07f988d60fc4d89a9c98b4393042", "score": "0.5270534", "text": "function wysiwyg_filter_filter_wysiwyg_settings_validate($form, &$form_state) {\n $values =& $form_state['values']['filters']['wysiwyg']['settings'];\n\n // *** validate valid_elements ***\n // Check elements against hardcoded backlist.\n $elements_blacklist = wysiwyg_filter_get_elements_blacklist();\n $valid_elements = trim($values['valid_elements']);\n $valid_elements = wysiwyg_filter_parse_valid_elements($valid_elements);\n $forbidden_elements = array();\n foreach (array_keys($valid_elements) as $element) {\n if (in_array($element, $elements_blacklist)) {\n $forbidden_elements[] = $element;\n }\n }\n if (!empty($forbidden_elements)) {\n form_set_error('valid_elements', t('The following elements cannot be allowed: %elements.', array('%elements' => implode(', ', $forbidden_elements))));\n }\n\n // *** validate nofollow_domains ***\n foreach (wysiwyg_filter_get_advanced_rules() as $rule_key => $rule_info) {\n $field_name = \"rule_$rule_key\";\n $expressions = array_filter(explode(',', preg_replace('#\\s+#', ',', trim($values[$field_name])))); // form2db\n $errors = array();\n foreach ($expressions as $expression) {\n if (preg_match('`[*?]\\*|\\*\\?`', $expression)) {\n $errors[] = t('Invalid expression %expression. Please, do not use more than one consecutive asterisk (**) or one that is next to a question mark wildcard (?* or *?).', array('%expression' => $expression));\n }\n if (!preg_match($rule_info['validate_regexp'], $expression)) {\n $errors[] = t('Invalid expression %expression. Please, check the syntax of the %field field.', array('%expression' => $expression, '%field' => $rule_info['title']));\n }\n }\n if (!empty($errors)) {\n form_set_error($field_name, implode('<br />', $errors));\n }\n }\n\n // *** validate nofollow_domains ***\n $nofollow_domains = array_filter(explode(',', preg_replace('#\\s+#', ',', $values['nofollow_domains']))); // form2db\n foreach ($nofollow_domains as $nofollow_domain) {\n if (!preg_match('#^([a-z0-9]([-a-z0-9]*)?\\.)+([a-z]+)$#i', $nofollow_domain)) {\n form_set_error('nofollow_domains', t('Invalid domain %domain. Please, enter a comma separated list of valid domain names.', array('%domain' => $nofollow_domain)));\n }\n }\n}", "title": "" }, { "docid": "0c132f8ea8f9d1aabd7e85116e534d32", "score": "0.5265942", "text": "public function rules()\n {\n return [\n 'body' => 'required|spamfree',\n ];\n }", "title": "" }, { "docid": "685fbb4c782cc49ee82dd9273eedd342", "score": "0.5259572", "text": "public function rules()\n {\n return [\n 'ten_linh_vuc' => 'required | unique:linh_vuc|max:30|min:2|bail'\n ];\n }", "title": "" }, { "docid": "04851ff69d91ce56282037e79d532abd", "score": "0.5257191", "text": "private function validation() { \n\t\tif (preg_match('/[^0-9*+-\\/^.apiconstreqb\\s\\t\\(\\)]/i', $this->expression)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "1daecf1b1623a4c5f89c58b4a6f447e7", "score": "0.52540904", "text": "public function validate(string $attribute, mixed $value, \\Closure $fail): void\n {\n $blackLists = config('urlhub.domain_blacklist');\n $longUrl = rtrim($value, '/');\n $bool = true;\n\n foreach ($blackLists as $blackList) {\n $blackList = Helper::urlDisplay($blackList, scheme: false);\n $segment1 = '://'.$blackList.'/';\n $segment2 = '://www.'.$blackList.'/';\n\n if (strstr($longUrl, $segment1) || strstr($longUrl, $segment2)) {\n $bool = false;\n }\n }\n\n if ($bool === false) {\n $fail('Sorry, the URL you entered is on our internal blacklist. '.\n 'It may have been used abusively in the past, or it may link to another URL redirection service.');\n }\n }", "title": "" }, { "docid": "986e2e3f3a85c6349c0c29d48b0d4bc2", "score": "0.5252528", "text": "public function getRegexForPlateValidation();", "title": "" }, { "docid": "548a6fd27f99e32db3c54b3f594cef55", "score": "0.52474153", "text": "private function _setValidationRules ()\n\t{\t\n\t\tforeach ($this->_rules as $field => $rule) \n\t\t{\n\t\t\t$this->_rules[$field] = explode('|', $rule);\n\t\t\t\t\n\t\t}\n\n\t\tforeach ($this->_rules as $field => $rules) \n\t\t{\n\t\t\tforeach ($rules as $rule) \n\t\t\t{\n\t\t\t\tif (strpos($rule, ':')) {\n\t\t\t\t\t$rulename = substr($rule, 0, strpos($rule, ':'));\n\t\t\t\t} else {\n\t\t\t\t\t$rulename = substr($rule, 0);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$formField = $this->get($field);\n\t\t\t\t\n\t\t\t\tswitch ($rulename) {\n\n\t\t\t\t\tcase 'required':\n\t\t\t\t\t\t$formField->addValidator(new PresenceOf (array (\n\t\t\t\t\t\t\t'message' => \"The field {$field} is required.\"\n\t\t\t\t\t\t)));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'identical':\n\t\t\t\t\t\t$formField->addValidator(new Identical (array (\n\t\t\t\t\t\t\t'message' => \"The field {$field} has to be identical to .\",\n\t\t\t\t\t\t\t'value' => $this->getRuleArgs($rule)[0]\n\t\t\t\t\t\t)));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'email':\n\t\t\t\t\t\t$formField->addValidator(new Email (array (\n\t\t\t\t\t\t\t'message' => \"The field {$field} is not a valid email.\"\n\t\t\t\t\t\t)));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'exclusion':\n\t\t\t\t\t\t$formField->addValidator(new ExclusionIn (array (\n\t\t\t\t\t\t\t'message' => \"The field {$field} must not be A or B.\",\n\t\t\t\t\t\t\t'domain' => $this->getRuleArgs($rule)\n\t\t\t\t\t\t)));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'inclusion':\n\t\t\t\t\t\t$formField->addValidator(new InclusionIn (array (\n\t\t\t\t\t\t\t'message' => \"The field {$field} must be A or B.\",\n\t\t\t\t\t\t\t'domain' => $this->getRuleArgs($rule)\n\t\t\t\t\t\t)));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'regex':\n\t\t\t\t\t\t$formField->addValidator(new Regex (array (\n\t\t\t\t\t\t\t'message' => \"The field {$field} is invalid.\",\n\t\t\t\t\t\t\t'pattern' => $this->getRuleArgs($rule)[0] \n\t\t\t\t\t\t)));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'strlen':\n\t\t\t\t\t\t$formField->addValidator(new StringLength (array (\n\t\t\t\t\t\t\t'min' => intval ($this->getRuleArgs($rule) [0]),\n\t\t\t\t\t\t\t'max' => intval ($this->getRuleArgs($rule) [1]),\n\t\t\t\t\t\t\t'messageMinimum' => 'We want more than just their initials',\n\t\t\t\t\t\t\t'messageMaximum' => 'We don\\'t like really long names'\n\t\t\t\t\t\t)));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'between':\n\t\t\t\t\t\t$formField->addValidator(new Between (array (\n\t\t\t\t\t\t\t'minimum' => intval ($this->getRuleArgs($rule) [0]),\n\t\t\t\t\t\t\t'maximum' => intval ($this->getRuleArgs($rule) [1]),\n\t\t\t\t\t\t\t'message' => 'The price must be between 0 and 100'\n\t\t\t\t\t\t)));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'confirmed':\n\t\t\t\t\t\t$formField->addValidator(new Confirmation (array (\n\t\t\t\t\t\t\t'message' => 'Password doesn\\'t match confirmation.',\n\t\t\t\t\t\t\t'with' => $this->getRuleArgs($rule) [0]\n\t\t\t\t\t\t)));\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'datetime':\n\t\t\t\t\t\t$formField->addValidator(new DateTime (array (\n\t\t\t\t\t\t\t'message' => \"The field {$field} is not a valid datetime.\",\n\t\t\t\t\t\t\t'format' => trim($this->getRuleArgs($rule)[0], '\"')\n\t\t\t\t\t\t)));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'unique':\n\n\t\t\t\t\t\t$formField->addValidator(new Uniqueness (array (\n\t\t\t\t\t\t\t'message' => \"The field {$field} is already taken.\",\n\t\t\t\t\t\t\t'table' => $this->getRuleArgs($rule)[0],\n\t\t\t\t\t\t\t'column' => $this->getRuleArgs($rule)[1]\n\t\t\t\t\t\t)));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'file':\n\t\t\t\t\t\t$formField->addValidator(new File (array (\n\t\t\t\t\t\t\t'message' => \"The file is of a required type.\",\n\t\t\t\t\t\t\t'mimes' => $this->getRuleArgs($rule)\n\t\t\t\t\t\t)));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'maxsize':\n\t\t\t\t\t\t$args = $this->getRuleArgs($rule)[0];\n\t\t\t\t\t\t$formField->addValidator(new Maxsize (array (\n\t\t\t\t\t\t\t'message' => 'The file is too big and cannot exceed a size of ' . $args . ' bytes .',\n\t\t\t\t\t\t\t'maxsize' => $args\n\t\t\t\t\t\t)));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tthrow new \\Exception(\"No validator exists for the specified rule {$rule}.\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "f8ab16ffe125f3e34a90a1da7ed3b24f", "score": "0.5244372", "text": "protected function validarApellidos(){\n return 'required|string|regex:/^[A-Za-z0-9]*$/|max:15';\n }", "title": "" }, { "docid": "a3acc76e512746163b748828e8b1acdf", "score": "0.524078", "text": "function is_bad_input($val, $f_type) {\n $res = FALSE;\n if ($f_type == \"phone\") {\n $val = substr($val, 0, 20);\n $regx_phone_loose = '/^[0-9 \\-\\+]{7,20}$/i';\n if (! preg_match($regx_phone_loose, $val)) {\n $res = TRUE;\n }\n }\n else if ($f_type == \"email\") {\n if (! filter_var($val, FILTER_VALIDATE_EMAIL)) {\n $res = TRUE;\n }\n }\n return $res;\n}", "title": "" }, { "docid": "be01e381fa471a7b1a0a5845c38a051e", "score": "0.52368265", "text": "public function testNotInWildcard() {\n $list = ['10.0.0.*'];\n $this->rule->set('list', $list);\n\n $result = $this->rule->assert();\n $this->assertFalse($result);\n }", "title": "" }, { "docid": "129dd0ff45e8f92201042949f5a52be7", "score": "0.52356946", "text": "public function rules()\n {\n return [\n 'currency' => 'required|max:255|string',\n 'amount' => 'required|regex:/^\\d*(\\.\\d{1,8})?$/|min:0.00000001',\n 'captcha' => 'required|captcha',\n ];\n }", "title": "" }, { "docid": "5506ee43fb1df623849d0e0b612ce45b", "score": "0.5234627", "text": "public function rules()\n {\n return [\n 'nickname' => 'required|regex_alpha_num|max:32|isset_nickname', //nicknameに重複していないか確認\n 'display_name' => 'required|no_ctrl_chars|max:32',\n 'password' => 'required|min:6',\n\n ];\n }", "title": "" }, { "docid": "06dcc779ad0ab719690d24f70f866550", "score": "0.5232419", "text": "function filterNames($field){\n //sanitize\n $field = filter_var(trim($field), FILTER_SANITIZE_STRING);\n //validate\n if(filter_var($field, FILTER_VALIDATE_REGEXP, array(\"options\"=>array(\"regexp\"=>\"/^[a-zA-Z\\s]+$/\")))) {\n return $field;\n } else {\n return FALSE;\n }\n }", "title": "" }, { "docid": "4f032733b2e9a1c21bad434042b5cd94", "score": "0.5232172", "text": "function jjbos_cloudflare_redirects_validate($element, &$form_state, $form) {\n $values = list_extract_allowed_values($element['#value'], 'list_text', FALSE);\n\n foreach ($values as $key => $value) {\n if (empty($key) || empty($value)) {\n form_error($element, t('Some codes or URLs are empty in the field.'));\n break;\n }\n if (!valid_url($value, TRUE)) {\n form_error($element, t('The field contains invalid URL to redirect.'));\n break;\n }\n if (!empty($key) && ((bool) preg_match('/[a-z]/', $key))) {\n form_error($element, t('Country codes must only contain uppercase characters.'));\n break;\n }\n }\n}", "title": "" }, { "docid": "d5761328ab6f9687df4069b9e7ca2364", "score": "0.5229594", "text": "public function __validate();", "title": "" }, { "docid": "b574f987da794024b41feffc67c95ff0", "score": "0.5227828", "text": "public function rules() //check the form field\n {\n return [\n 'name' => 'required|string|max:10',\n 'message' => 'required|string|min:10'\n ];\n }", "title": "" }, { "docid": "9a2aef8521a01fb891de0750ecd499b8", "score": "0.5218043", "text": "public function rules()\n {\n return [\n 'name' => 'required|min:2|max:30',\n 'email' => 'required|unique:users|email',\n 'pass' => 'required|min:8|max:20|regex:[^(?=.*[A-Za-z])(?=.*\\d)[A-Za-z\\d]{8,}$]',\n 're_pass' => 'required|same:pass'\n ];\n }", "title": "" }, { "docid": "36c5ac71c50fe55bd62d65e24559b316", "score": "0.5212464", "text": "public function testValidatorRejectsNonUrlString()\n {\n $this->assertFalse($this->validator->isValid('Hello world!'));\n }", "title": "" }, { "docid": "5fec09f456062c7ea38fc3d561c8d2e9", "score": "0.5212013", "text": "public function rules()\n {\n return [\n\t\t\t['region', 'required'],\n\t\t\t['group_id', 'required'],\n\t\t\t['region', 'checkRegion'],\n ['usernames', 'filter', 'filter' => 'trim'],\n ['usernames', 'required'],\n ];\n }", "title": "" }, { "docid": "33e313ee6679441416e012afd86d81f4", "score": "0.5195038", "text": "function validate_field($value, $formatKey){\n \n $format = [];\n $format['nome']['pattern'] = '/^([a-zA-zÀ-úà-ú]+\\s[a-zA-zÀ-úà-ú]+)*$/';\n $format['nome']['error'] = 'nome inválido [ é necessário no mínimo duas palavras ]';\n\n $format['data_nascimento']['pattern'] = '/^(0[1-9]|[12]\\d|3[01])[\\/]+(0?[1-9]|1[012])[\\/]+(19|20)\\d{2}$/';\n $format['data_nascimento']['error'] = 'formato de data de nascimento inválida';\n\n $format['email']['pattern'] = '/^\\S+@\\S+\\.\\S+$/';\n $format['email']['error'] = 'formato de e-mail inválido';\n\n $format['telefone']['pattern'] = '/^\\([0-9]{2}\\)+\\s[9][0-9]{4}\\-[0-9]{4}$/';\n $format['telefone']['error'] = 'formato de telefone inválido';\n\n\n if(preg_match($format[$formatKey]['pattern'], $value, $result)){\n return true;\n }\n else {\n return $format[$formatKey]['error'];\n }\n }", "title": "" }, { "docid": "96ee44841ad2b3c813eb4f9ecc7a1073", "score": "0.5193295", "text": "public function testValidateActionOnlyAcceptRegex()\n {\n $this->setExpectedException(ValidationException::class);\n MessageValidator::validateAction(\"wrongformat.nothing\");\n }", "title": "" }, { "docid": "01a45ae17a4ee10615085966a708536c", "score": "0.5180982", "text": "public function rules()\n {\n return [\n 'userName' => 'required|alpha_dash|min:5|max:16|exists:admin_user,userName',\n 'passWord' => 'required|min:6',\n ];\n }", "title": "" }, { "docid": "38b7cb7e19ca1c03a1fe5f70697e8dda", "score": "0.51786983", "text": "public function rules()\n {\n return [\n 'current_password' => 'required|string',\n 'password' => 'required|string|confirmed|min:8|regex:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{6,}$/'\n ];\n }", "title": "" }, { "docid": "cef81c76790340f88f504eb787a227d3", "score": "0.51760775", "text": "public function myValidation($attribute,$params)\n\t{\n\t // $pattern = '/^(?=.*[a-zA-Z0-9]).{5,}$/'; \n\t // elseif ($params['strength'] === self::STRONG)\n\t // $pattern = '/^(?=.*\\d(?=.*\\d))(?=.*[a-zA-Z](?=.*[a-zA-Z])).{5,}$/'; \n\t \t//$pattern = '/[a-z]*[.,_][a-z]*[@][a-z]*[.com]/';\n\t \t$pattern = '/^[_a-zA-Z0-9-]+(\\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-zA-Z]{2,4})$/';\n\t \tif(!preg_match($pattern, $this->$attribute))\n\t \t{\n\t $this->addError($attribute, 'Please Enter a Valid E-mail!');\n\t\t}\n\t}", "title": "" }, { "docid": "087081cfd2b160f07d65f7ba88d0f3fb", "score": "0.51715165", "text": "public function rules()\n {\n return [\n 'name' => ['required', 'max:32', 'unique:pixels,name,null,id,user_id,'.$this->user()->id, new PixelLimitGateRule($this->user())],\n 'type' => ['required', 'in:' . implode(',', array_keys(config('pixels')))],\n 'value' => ['required', 'alpha_dash', 'max:255', new ValidatePixelValueRule($this->input('type'))]\n ];\n }", "title": "" }, { "docid": "ca11cc42c0b5fb2ee241c96b832358c0", "score": "0.51680976", "text": "public function rules()\n {\n return [\n 'password_nuevo' => array('required', 'regex:/^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{6,15}$/'),\n 'password_repetir' => array('required','same:password_nuevo'),\n 'password_anterior'=>'required'\n ];\n }", "title": "" }, { "docid": "2440e6edfaac0cf61b8f7f21133cefd6", "score": "0.51617515", "text": "function containsProhibited($str)\n {\n $blacklist = array(\"CREATE\", \"ALTER\", \"DROP\", \"BACKUP\", \"INSERT\");\n foreach($blacklist as $a) {\n if (stripos($str,$a) !== false) return true;\n }\n return false;\n }", "title": "" }, { "docid": "5509b96b2f6de1abc80f03e01f02cad5", "score": "0.5161235", "text": "public function extendValidationRules(): void\n {\n Validator::extend('no_spaces', function ($attribute, $value, $parameters, $validator) {\n return preg_match('/^\\S*$/u', $value);\n }, 'String should not contain space.');\n }", "title": "" }, { "docid": "f21eeda53793e90f98ed34ebaa17b3fe", "score": "0.5160703", "text": "public function rules()\n {\n return [\n 'nombre_completo' => 'required|regex:/^[a-zA-Z ]+$/u',\n 'correo' => 'required',\n 'telefono' => 'required|digits:8',\n ];\n }", "title": "" }, { "docid": "b2ed83bdde0836051b258b2217d3e1de", "score": "0.5160197", "text": "function validation_email($field, $data, $table) {\n $pattern = \"/^([_a-zA-Z0-9-']+(\\.[_a-zA-Z0-9-']+)*@[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*(\\.[a-zA-Z]{2,4}))/si\"; \n return preg_match($pattern, $data[$field]);\n}", "title": "" }, { "docid": "83e9c752d0d320480a7ca703494fd357", "score": "0.51534045", "text": "public function validate($value);", "title": "" }, { "docid": "83e9c752d0d320480a7ca703494fd357", "score": "0.51534045", "text": "public function validate($value);", "title": "" }, { "docid": "943e19517b4334cb9cb164e1f491d708", "score": "0.51533496", "text": "public function rules()\n {\n return [\n 'email' => 'required|email',\n 'spam_not' => 'max:0',\n 'cod_input' => 'required|same:cod_gen|size:4'\n ];\n }", "title": "" }, { "docid": "27fb1a0352215a89f24d38989530dce6", "score": "0.51517135", "text": "public function rules()\n {\n return [\n 'oldPassword' => 'required|min:6|max:20',\n 'passWord' => 'required|min:6|max:20|different:oldPassword',\n 'rePassword' => 'required|same:passWord',\n ];\n }", "title": "" }, { "docid": "fb4391ce4e7276e4c969f51de4cabaf1", "score": "0.5148445", "text": "public function rules()\n {\n return [\n 'name' => 'required|max:50',\n 'email' =>'required|email',\n 'mobile_number' => ['required','regex:/(05|5)(5|0|3|6|4|9|1|8|7)([0-9]{7})/'],\n 'content'=>'required|max:255'\n ];\n }", "title": "" }, { "docid": "514f464f92ac757c157e895974041d27", "score": "0.5146312", "text": "function ValidField($field) {\n global $mc_bTRUE, $mc_bFALSE, $mc_szDatabasePath, $mc_szFormsPath, $m_bOnlyOneHint, $m_szHintsPrinted, $m_bFirstPageView;\n if (isset($_REQUEST[$field['szName']])) {\n $szValue = $_REQUEST[$field['szName']];\n } else {\n $szValue = '';\n }\n\n # If the field is not required, an empty field is\n # considered valid\n if($field['bRequired'] == $mc_bFALSE && $szValue == \"\") {\n return $mc_bTRUE;\n }\n\n # If a minimum length has been specified\n # check if the field is shorter than the minimum length\n if(isset($field['intMin']) && $field['intMin'] > 0 && strlen($szValue) < $field['intMin']) {\n return $mc_bFALSE;\n }\n\n # If a maximum length has been specified\n # check if the field is longer than the maximum length\n if(isset($field['intMax']) && $field['intMax'] > 0 && strlen($szValue) > $field['intMax']) { \n return $mc_bFALSE;\n }\n\n # If a custom Domain has been specified, check the field against it\n if(isset($field['regDomain'])) { \n if (!preg_match($field['regDomain'], $szValue)) {\n return $mc_bFALSE;\n }\n return $mc_bTRUE;\n }\n\n if(isset($field['szValidationType'])) {\n # Check the field with the appropriate validation type\n if($field['szValidationType'] == \"name\") {\n if (!preg_match(\"/^[^\\t\\n\\f\\d!@#$%^\\*\\(\\)]*$/\", $szValue)) {\n return $mc_bFALSE;\n }\n } elseif($field['szValidationType'] == \"zipcode\") {\n if (!preg_match(\"/^[a-z\\d ]+$/i\", $szValue)) {\n return $mc_bFALSE;\n }\n } elseif($field['szValidationType'] == \"number\") {\n if (!preg_match(\"/^[\\d.]+$/\", $szValue)) {\n return $mc_bFALSE;\n }\n } elseif($field['szValidationType'] == \"companyname\") {\n if (!preg_match(\"/^[\\w\\d]+[\\.]?([\\- ']?[\\w\\d]+[\\.]?)*$/\", $szValue)) {\n return $mc_bFALSE;\n }\n } elseif($field['szValidationType'] == \"emailaddress\") {\n if (!preg_match(\"/^[a-zA-Z][\\w\\d]*([\\.\\-_]?[\\w\\d]+)*@([\\w\\d\\-]+[\\.])+[\\w\\d\\-]+$/\", $szValue)) {\n return $mc_bFALSE;\n }\n } elseif($field['szValidationType'] == \"postaladdress\") {\n if (!preg_match(\"/^[\\w\\.]*\\s*(((\\d+\\w?)|(\\w+))\\s*)+$/m\", $szValue)) {\n return $mc_bFALSE;\n }\n } elseif($field['szValidationType'] == \"text\") {\n if (!preg_match(\"/^(\\S+\\s*)+$/m\", $szValue)) {\n if (!preg_match(\"/\\b/\", $szValue)) {\n return $mc_bFALSE;\n }\n }\n } elseif($field['szValidationType'] == \"phonenumber\") {\n if (!preg_match(\"/^[+]?\\d+([ ]*([(]\\d+[)]|[-]?\\d+|\\d+[-]?))*$/\")) {\n return $mc_bFALSE;\n }\n } elseif($field['szValidationType'] == \"login\") {\n if (!preg_match(\"/^[a-z][\\w\\d\\-_]+?$/i\", $szValue)) {\n return $mc_bFALSE;\n }\n } \n }\n return $mc_bTRUE;\n}", "title": "" }, { "docid": "4b56f7e33e12474c750e0d78f32fdb0a", "score": "0.51410586", "text": "public function rules()\n {\n return [\n \"uid\" => \"required|numeric\",\n \"passwd\" => \"required|string\",\n \"passwd1\" => [\"required\",\"same:passwd\"],\n ];\n }", "title": "" }, { "docid": "3f2e8d24ad4261b223f80a1e598c76b6", "score": "0.5133087", "text": "public function action_wp_blacklist_check($author, $email, $url, $text, $ip, $user_agent){}", "title": "" }, { "docid": "3b924e4f99d9698b8392ea7e2f5b8ac2", "score": "0.51310134", "text": "public function testValidatorRejectsValueThatEqualsComparedValue()\r\n {\r\n $this->assertFalse($this->validator->isValid('hello world', 'hello world'));\r\n }", "title": "" }, { "docid": "b5de8f6f265093bf2328cf4f7d95a95c", "score": "0.5130616", "text": "public function testInvalid(): void\n {\n $validator = new LowercaseValidator();\n\n $this->assertFalse($validator->validate('aac123')->isValid());\n $this->assertFalse($validator->validate('XyZ')->isValid());\n }", "title": "" }, { "docid": "af665a5b209885527c65f9c5535636b4", "score": "0.5120957", "text": "public function rules()\n {\n return [ \n 'email' => 'required|email',\n 'password_1' => ['required',\"regex:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[$@$!%*?&])([A-Za-z\\d$@$!%*?&]|[^ ]){8,15}$/\"],\n 'password_2' => ['required',\"regex:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[$@$!%*?&])([A-Za-z\\d$@$!%*?&]|[^ ]){8,15}$/\"],\n ];\n }", "title": "" }, { "docid": "4b78d32f386bafc5b46cc7b9eedf010a", "score": "0.5116857", "text": "function invalidAttributeValue($value)\n {\n \t\n \t\n foreach($this->badAttrValues as $v) // global list because a bad value is bad regardless of the attribute it's in. ;-)\n {\n if(preg_match('/'.$v.'/i',$value)==true)\n {\n\t\t\t\t$this->removedList['blacklist'][]\t= \"Match found for '{$v}' in '{$value}'\";\n \t\n return true; \n } \n \n }\n \n return false; \n }", "title": "" }, { "docid": "1e6ea76570fa1312e18bd91298d6637b", "score": "0.5113659", "text": "public function testUnsetValuePasses(): void\n {\n $rule = new Forbidden();\n $this->assertTrue($rule->passes(null));\n $this->assertTrue($rule->passes(''));\n }", "title": "" }, { "docid": "f30c6373864078a6b6d62f9bb9fa30d5", "score": "0.5113176", "text": "public function rules() {\n return array(\n #array('maxLength, alphaNumOnly', 'safe'),\n );\n }", "title": "" }, { "docid": "ad0371f0f7e441cc465e063dcbde4890", "score": "0.5110895", "text": "function name_validator($field_value) {\n\n// here * is used so blank is a valid data\n if (!preg_match('/^[a-zA-Z ]*$/', $field_value)) {\n//set the field vaues given by user\n $this->CI->form_validation->set_value($field_value);\n $this->CI->form_validation->set_message('name_validator', '%s is not a valid');\n return false;\n } else {\n return true;\n }\n }", "title": "" }, { "docid": "f50e305fab66ca327c634388024cf320", "score": "0.5107657", "text": "public function testValidatorRejectsUrlWhoseHostnameDoesNotMatchWildcard()\n {\n $this->validator->setAllowedHostnames(array('*.github.com'));\n $this->assertFalse($this->validator->isValid('http://blog.google.com'));\n }", "title": "" }, { "docid": "ba198542d4a2b50e6ea2262a017af761", "score": "0.5105974", "text": "public function rules()\n {\n return [\n 'id'=>'required|numeric|exists:segmentation.bbdd_lists,id',\n 'action'=>[\"required\",Rule::in(['register', 'unsub'])],\n \"data\" => \"array|required|between:1,1000\",\n \"data.*\" => \"required|numeric|min:1\",//|exists:segmentation.bbdd_users,id \n \n\n ];\n }", "title": "" }, { "docid": "989dc6779baeb87663503bee8b5d3f98", "score": "0.51057476", "text": "public function rules()\n {\n return [\n 'url' => 'unique:url|required|min:5|regex:^([\\- \\w]+\\.)+\\w{2,3}(\\/ [%\\-\\w]+(\\.\\w{2,})?)*$^',\n 'descricao' => 'required'\n ];\n }", "title": "" }, { "docid": "78f5521718a20fde203252571e205a04", "score": "0.51031226", "text": "abstract protected function _validate($value);", "title": "" }, { "docid": "0f780e87bdb1bbc4f9e2389638f8e9d8", "score": "0.51023245", "text": "function validate_no_numbers(string $field_value, array &$field)\n{\n if (!ctype_digit($field_value)) {\n return true;\n }\n $field['error'] = 'negali būti skaičių';\n return false;\n}", "title": "" }, { "docid": "2fdacbce12584e0f67d306e8f0e2a390", "score": "0.5098861", "text": "public function testNotInList() {\n $list = ['10.0.0.1'];\n $this->rule->set('list', $list);\n\n $result = $this->rule->assert();\n $this->assertFalse($result);\n }", "title": "" }, { "docid": "7a929819a3c49f2a3d147e7c602e65d9", "score": "0.509884", "text": "private function _check_blacklisting()\n\t{\n\n\t\t//\n\t\t// First check if the ip_address s blosed\n\t\t//\n\t\tforeach ($this->_blocked_ips as $blacklisted) \n\t\t{\n\t\t\tif($blacklisted->value == $this->_input_data['ip_address'] )\n\t\t\t{\n\t\t\t\t$this->_blacklisted = TRUE;\n\t\t\t\t$this->_add_message('TrustScore-IP', 'Users IP address is blocked: ' . $blacklisted->value );\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\n\t\tforeach ($this->_blocked_emails as $blacklisted) \n\t\t{\n\t\t\tif($blacklisted->value == $this->_shipping_address->email )\n\t\t\t{\n\t\t\t\t$this->_blacklisted = TRUE;\n\t\t\t\t$this->_add_message('TrustScore-Email', 'Users Email address is blocked: ' . $blacklisted->value );\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\n\t\tforeach ($this->_blocked_emails as $blacklisted) \n\t\t{\n\t\t\tif($blacklisted->value == $this->_billing_address->email )\n\t\t\t{\n\t\t\t\t$this->_blacklisted = TRUE;\n\t\t\t\t$this->_add_message('TrustScore-Email', 'Users Email address is blocked: ' . $blacklisted->value );\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "cde792dedab932a5bed2929272352dad", "score": "0.5097887", "text": "public function rules()\n {\n return [\n 'nama_barang_gudang' => 'required|string',\n 'harga_barang_gudang' => 'required|integer',\n 'stok_barang_gudang' => 'required|regex:/^\\d*(\\.\\d{2})?$/'\n ];\n }", "title": "" }, { "docid": "3d9c6651747c845e0a8897b4c9f5494b", "score": "0.50958407", "text": "function validate($value) {\n\t\tif ($this->regex && !preg_match($this->regex, $value)) {\n\t\t\treturn False;\n\t\t}\n\t\treturn True;\n\t}", "title": "" }, { "docid": "1704ce010f25bcc7021325c6eea8537e", "score": "0.509368", "text": "public function rules()\n {\n return [\n 'abre_subg' => 'nullable|min:1|max:1|regex:/^[a-zA-ZáéíóúàèìòùäëïöüñÁÉÍÓÚÄËÏÖÜÑ\\'\\s]+$/i',\n 'cant_estu' => 'required|numeric|max:100',\n 'grado_id' => 'required|string|exists:grados,id',\n ];\n }", "title": "" }, { "docid": "648e405eb23f859e5b2f13a6696f6567", "score": "0.5093658", "text": "public function password_check($str) {\n $string = strtolower($str);\n $badPasswords = $this->badPasswords;\n foreach ($badPasswords as $key => $val) {\n if (strlen(strstr($string, \"$val\")) > 0) {\n $this->form_validation->set_message('password_check', 'Your password is too similar to your name or email address or other common/simple passwords.');\n return FALSE;\n } else {\n return TRUE;\n }\n }\n }", "title": "" }, { "docid": "4f3edb7f3a379a8b277347e6c6d7f1eb", "score": "0.5090049", "text": "public function rules()\n {\n return [\n \"firstname\" => \"alpha|min:2|max:20|regex:/^[A-ZČĆŽŠĐ][a-zčćžšđ]{1,20}(\\s[A-ZČĆŽŠĐ][a-zčćžšđ]{1,20})*$/\",\n \"lastname\" => \"alpha|min:2|max:30|regex:/^[A-ZČĆŽŠĐ][a-zčćžšđ]{1,30}(\\s[A-ZČĆŽŠĐ][a-zčćžšđ]{1,30})*$/\",\n \"email\" => \"email\",\n \"userRole\" => \"exists:roles,id\"\n ];\n }", "title": "" }, { "docid": "a1db9baf455baa77b90b6894a0ad355e", "score": "0.508889", "text": "public function rules()\n\t{\n\t\treturn [\n\t\t\t'auction_id' => 'required|integer',\n\t\t\t'bid' => 'required|numeric|min:0|max:9999999999999.99|regex:/^\\d*(\\.\\d{2})?$/'\n\t\t];\n\t}", "title": "" }, { "docid": "0efa574c177b69f984273079b6f3615c", "score": "0.5088438", "text": "public function testInvalid()\n {\n $rule = new Rule;\n $result = $rule->validate('foo', ['foo' => '']);\n $this->assertFalse($result);\n }", "title": "" }, { "docid": "6cb31e41d094a05d3e201112e528f77f", "score": "0.5087383", "text": "protected function rules()\n {\n // パスワードルール変更 #1524\n return [\n 'token' => 'required',\n 'email' => 'required|email',\n 'password' => ['required', 'confirmed', 'min:6', 'max:100', 'regex:/^[0-9a-zA-Z-]*$/'],\n ];\n }", "title": "" }, { "docid": "ab1b5f13827fb8d47fd1bdd35213f9ba", "score": "0.5086585", "text": "public function rules()\n {\n return [\n 'number' => array('required', 'regex:/((^7|^\\+7|^8)(\\d{6,16}))|(.?(^\\d{3,5}))/'),\n 'name' => 'required|string|min:2|max:255',\n ];\n }", "title": "" }, { "docid": "03144631524af43649e31fd0522637f8", "score": "0.5084302", "text": "public function rules() {\n return [\n 'firstName' => 'required|max:50',\n 'lastName' => 'required|max:50',\n 'email' => 'required|email',\n 'address' => 'required|max:100',\n 'city' => 'required|max:50',\n 'country' => [ 'required', 'exists:country,id' ],\n 'postcode' => array (\n 'required',\n 'regex:/^[a-zA-Z]{1,2}([0-9]{1,2}|[0-9][a-zA-Z])\\s*[0-9][a-zA-Z]{2}$/'\n )\n ];\n }", "title": "" } ]
3c0825c1393eb885c0e305c1e92fd862
it must be the same when you encrypt and decrypt
[ { "docid": "796ff6c92973cfa81b6f1e62dbb9e319", "score": "0.0", "text": "protected function getIV() { \n return $this->iv;\n }", "title": "" } ]
[ { "docid": "f65e245aee4fcc206ac8e77817600e2d", "score": "0.71668214", "text": "public function getEncrypted();", "title": "" }, { "docid": "e41495b9a01f437e2b399d93ecfc89bd", "score": "0.7050651", "text": "private function encryption() { \n\t\t\n\t\t\t//do nothing\n\t\t}", "title": "" }, { "docid": "60f64af4adc3594feb7e743419d2d016", "score": "0.67497593", "text": "function myDecrypt1($Cypher, $EncryptionKey, $encryptedStr ) {\r\n\t\r\n\treturn $decrypted;\r\n}", "title": "" }, { "docid": "7ffe8085d8d89d65d85f7ec209fdefea", "score": "0.67445725", "text": "function my_simple_crypt( $string, $action = 'e' ) {\r\n $secret_key ='453r';\r\n $secret_iv = '6ygf';\r\n $output = false;\r\n $encrypt_method = \"AES-256-CBC\";\r\n $key = hash( 'sha256', $secret_key );\r\n $iv = substr( hash( 'sha256', $secret_iv ), 0, 16 );\r\n if( $action == 'e' ) {\r\n $output = base64_encode( openssl_encrypt( $string, $encrypt_method, $key, 0, $iv ) );\r\n }\r\n else if( $action == 'd' ){\r\n $output = openssl_decrypt( base64_decode( $string ), $encrypt_method, $key, 0, $iv );\r\n }\r\n return $output;\r\n}", "title": "" }, { "docid": "4a90524f35b002262e82e18d81eb8942", "score": "0.6649197", "text": "public function decrypt($data);", "title": "" }, { "docid": "4e23d042d19c40bc4e735b5f57aedc8d", "score": "0.6640004", "text": "function myEncrypt1($Cypher, $EncryptionKey, $str ) {\r\n\r\n\r\n\treturn $encryptedStr;\r\n\t\r\n}", "title": "" }, { "docid": "05e18c7e4c8cc204fc263617af45b3be", "score": "0.6547387", "text": "public function testRoundRobinEncryption()\n\t{\n\t\t$rc4 = new Crypt_RC42();\n\t\t$rc4->key = $this->_key;\n\t\t$message = $rc4->encrypt($this->_message);\n\t\t$message = $rc4->decrypt($message);\n\t\t$this->assertEquals($this->_message, $message);\n\t}", "title": "" }, { "docid": "088a61b6ca0c9f382d258f956754699c", "score": "0.6535936", "text": "public function encender();", "title": "" }, { "docid": "d8491a69ec1fbbe087842c47b244d3b8", "score": "0.64820707", "text": "function mcrypt_decrypt($cipher, $key, $data, $mode, $iv = NULL)\n{\n}", "title": "" }, { "docid": "334cc8a70792a776df43d84d452c3156", "score": "0.64743835", "text": "function decrypt ($cadena, $new_key = \"\") {\n\n\treturn $cadena;\n\n}", "title": "" }, { "docid": "933c07f879f8b5943cc9c9da77a33d6d", "score": "0.64393014", "text": "function myDecrypt2($Cypher, $EncryptionKey, $encryptedStr ) {\r\n\t\r\n\treturn $decrypted;\r\n}", "title": "" }, { "docid": "42f05d592951bb5b0317b369c7bef332", "score": "0.6408811", "text": "function encrypt($text, $key)\n{\n $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB);\n $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n return base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $text, MCRYPT_MODE_ECB, $iv));\n}", "title": "" }, { "docid": "44926b26ed810412f1b37fa27999e1c4", "score": "0.6406781", "text": "function decrypt_text($value, $key1, $key2)\n{\n if(!$value || !$key1 || !$key2) return false;\n \n $crypttext = base64_decode($value);\n $decrypttext = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $key1, $crypttext, MCRYPT_MODE_ECB, $key2);\n return trim($decrypttext);\n}", "title": "" }, { "docid": "a0edd9d3cf223c571342765c5e076eff", "score": "0.63958037", "text": "function encrypt_decrypt($action, $string, $secret_key, $secret_iv) {//Credits to some website which isn't up right now\n $output = false;\n\n $encrypt_method = \"AES-256-CBC\";\n\n $key = hash('sha256', $secret_key);\n \n $iv = substr(hash('sha256', $secret_iv), 0, 16);\n\n if( $action == 'encrypt' ) {\n $output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv);\n $output = base64_encode($output);\n }\n else if( $action == 'decrypt' ){\n $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);\n }\n\n return $output;\n}", "title": "" }, { "docid": "6deb0f5710b54847de5e7ead2db6a69f", "score": "0.6365812", "text": "function returnCipher() { \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t//PDO sql insert statement to store record for this public key\n\t\ttry {\n\t\t\t//insert keyhash, publickey, nickname and loginstring if its a duplicate key just update nick and loginstring\n\t\t\t$stmt = $this->db->prepare(\"INSERT INTO publickeys(keyhash,publickey,nick,loginstring) VALUES(:keyhash,:publickey,:nick,:loginstring) \n\t\t\t\tON DUPLICATE KEY UPDATE nick= VALUES(nick), loginstring= VALUES(loginstring)\");\n\t\t\t$stmt->execute(array(':keyhash' => $this->keyhash,':publickey' => $this->publickey, ':nick' => $this->nick, ':loginstring' => $this->loginstring));\n\t\t\t\t\t\t\n\t\t} catch(PDOException $ex) {\n\t\t\techo \"An SQL Error occured!\"; \n\t\t\treturn NULL;\n\t\t}\n\t\t\t\t\t\t\n\t\t// Return our cipertext\n\t\treturn $this->ciphertext;\n\t}", "title": "" }, { "docid": "f811f4e58f746e12fcff523ee1fe8429", "score": "0.635305", "text": "function encryptAES($str,$key) {\t\t\n\t\t$str = $this->pkcs5_pad($str); \n\t\t$encrypted = openssl_encrypt($str, $this->AES_METHOD, $key, OPENSSL_ZERO_PADDING, $this->AES_IV);\n\t\t$encrypted = base64_decode($encrypted);\n\t\t$encrypted = unpack('C*', ($encrypted));\n\t\t$encrypted = $this->byteArray2Hex($encrypted);\n\t\t$encrypted = urlencode($encrypted);\n\t\treturn $encrypted;\n\t}", "title": "" }, { "docid": "ec6ec3b2d5e7f09a4ffc39568b66ab80", "score": "0.63458264", "text": "function keyED($txt,$encrypt_key)\t\t{\n\t$encrypt_key = md5($encrypt_key);\n\t$ctr=0;\n\t$tmp = \"\";\n\tfor ($i=0;$i<strlen($txt);$i++){\n\t\tif ($ctr==strlen($encrypt_key)) $ctr=0;\n\t\t$tmp.= substr($txt,$i,1) ^ substr($encrypt_key,$ctr,1);\n\t\t$ctr++;\n\t}\n\treturn $tmp;\n}", "title": "" }, { "docid": "b2e64fb90a11d8d01a191cb5344acd76", "score": "0.6337574", "text": "function encrypt_decrypt($action, $string) {\n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $secret_key = '@Secrety key PMS';\n $secret_iv = '@Secrety key PMS iv';\n // hash\n $key = hash('sha256', $secret_key);\n \n // iv - encrypt method AES-256-CBC expects 16 bytes - else you will get a warning\n $iv = substr(hash('sha256', $secret_iv), 0, 16);\n if ( $action == 'encrypt' ) {\n $output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv);\n $output = base64_encode($output);\n } else if( $action == 'decrypt' ) {\n $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);\n }\n return $output;\n}", "title": "" }, { "docid": "d8f07ffdfaf3fbd0810dd9b6826f690a", "score": "0.6306357", "text": "public function testReverse()\r\n {\r\n $privKey = new PrivateKey(PrivateKey::generate());\r\n $pubKey = new PublicKey($privKey->exportPublicKey());\r\n\r\n //generate a very long example message\r\n $message = openssl_random_pseudo_bytes(5 * $privKey()['byteLength']);\r\n\r\n //encrypt and decrypt\r\n $enc_message = Cryptography::encryptReverse($pubKey, $message);\r\n $this->assertEquals($message, Cryptography::decryptReverse($privKey, $enc_message));\r\n }", "title": "" }, { "docid": "073b37c8bec86f5caf18da705f0b47a1", "score": "0.6306105", "text": "function my_simple_crypt( $string, $action = 'd') {\n $secret_key = 'my_simple_secret_key';\n $secret_iv = 'my_simple_secret_iv';\n \n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $key = hash( 'sha256', $secret_key );\n $iv = substr( hash( 'sha256', $secret_iv ), 0, 16 );\n \n if( $action == 'e' ) {\n $output = base64_encode( openssl_encrypt( $string, $encrypt_method, $key, 0, $iv ) );\n }\n else if( $action == 'd' ){\n $output = openssl_decrypt( base64_decode( $string ), $encrypt_method, $key, 0, $iv );\n }\n \n return $output;\n }", "title": "" }, { "docid": "073b37c8bec86f5caf18da705f0b47a1", "score": "0.6306105", "text": "function my_simple_crypt( $string, $action = 'd') {\n $secret_key = 'my_simple_secret_key';\n $secret_iv = 'my_simple_secret_iv';\n \n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $key = hash( 'sha256', $secret_key );\n $iv = substr( hash( 'sha256', $secret_iv ), 0, 16 );\n \n if( $action == 'e' ) {\n $output = base64_encode( openssl_encrypt( $string, $encrypt_method, $key, 0, $iv ) );\n }\n else if( $action == 'd' ){\n $output = openssl_decrypt( base64_decode( $string ), $encrypt_method, $key, 0, $iv );\n }\n \n return $output;\n }", "title": "" }, { "docid": "12423ea443bc20247c202d7288ff0e7f", "score": "0.62976354", "text": "function my_simple_crypt( $string, $action = 'e' ) {\n $secret_key = 't+m:*meo6h}b?{~';\n $secret_iv = '*[Py49<>n@-VYr1';\n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $key = substr( hash( 'sha256', $secret_key ), 0 ,32);\n $iv = substr( hash( 'sha256', $secret_iv ), 0, 16 );\n if( $action == 'e' ) {\n $output = base64_encode( openssl_encrypt( $string, $encrypt_method, $key, 0, $iv ) );\n }\n else if( $action == 'd' ){\n $output = openssl_decrypt( base64_decode( $string ), $encrypt_method, $key, 0, $iv );\n }\n return $output;\n }", "title": "" }, { "docid": "30b0ad327a1bd99fd7909a68b16f0fc8", "score": "0.62858284", "text": "function decrypt($encrypted_string, $encryption_key) {\n $iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB);\n $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n $decrypted_string = mcrypt_decrypt(MCRYPT_BLOWFISH, $encryption_key, $encrypted_string, MCRYPT_MODE_ECB, $iv);\n return $decrypted_string;\n\n\n\n}", "title": "" }, { "docid": "7ffe98b02ed866ff19ac653cd9f5b4df", "score": "0.62743294", "text": "function decrypt($text) \n { \n $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB); \n $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); \n $decrypttext = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, SALT, $text, MCRYPT_MODE_ECB, $iv); \n return trim($decrypttext); \n }", "title": "" }, { "docid": "1dce79fd4972b4f26e1a6ec799910830", "score": "0.62728965", "text": "public function decrypt_key()\n {\n $toEncrypt = date(\"c\");\n // JSON encode the timestamp, both encrypted and unencrypted\n echo json_encode(\n array(\n \"encrypted\" => AesCtr::encrypt($toEncrypt, $this->CI->jencryptcicookie->userdata('key'), 256),\n \"unencrypted\" => $toEncrypt\n )\n );\n }", "title": "" }, { "docid": "50cb21d3875c13c1a99aca17d25aa1e4", "score": "0.62595236", "text": "function cipher($plaintext, $key, $action = 'e' ) {\n if($action == 'e'){\n $output = my_encrypt($plaintext, $key);\n }\n else{\n $output = my_decrypt($plaintext, $key);\n }\n \n return $output;\n }", "title": "" }, { "docid": "72d49565bb7c85b6a396e9c0bab448ce", "score": "0.625634", "text": "function safeEncrypt($string, $key)\r\n{\r\n\tglobal $cipher;\r\n\t\r\n\t//serialize string\r\n\t$string = serialize($string);\r\n\t\r\n\t//generate random initialization vector for algorithm\r\n\t$iv_size = mcrypt_get_iv_size($cipher, MCRYPT_MODE_CFB);\r\n\t$iv = mcrypt_create_iv($iv_size, MCRYPT_DEV_URANDOM);\r\n\t\r\n\t//generates signature based on string and key\r\n\t$signature = hash_hmac('sha256', $string, substr(bin2hex($key), -20, 16));\r\n\t\r\n\t//add signature to string and then encrypt\r\n\t$encoded = mcrypt_encrypt($cipher, $key, $string.$signature, MCRYPT_MODE_CFB, $iv);\r\n\t\r\n\t//concatenate string and iv\r\n\t$final = base64_encode($encoded).'|'.base64_encode($iv);\r\n\t\r\n\treturn $final;\r\n}", "title": "" }, { "docid": "082a874071c0f7c9d44610b7ba348d50", "score": "0.6255771", "text": "function encrypt($str)\r\n {\r\n return crypt($str, 'm3m0ry7r33');\r\n }", "title": "" }, { "docid": "1d891a326ab08b53daa1940edca9109e", "score": "0.6239282", "text": "public function encrypt($value);", "title": "" }, { "docid": "213d6c8620334ddf3f19dc6caa1799b6", "score": "0.6232145", "text": "function safeDecrypt($enc, $key)\r\n{\r\n\tglobal $cipher;\r\n\t\r\n\t//disassemble into string and iv\r\n\t$decrypt = explode('|', $enc);\r\n\t$decoded = base64_decode($decrypt[0]);\r\n\t$iv = base64_decode($decrypt[1]);\r\n\tif (strlen($iv)!=mcrypt_get_iv_size($cipher, MCRYPT_MODE_CFB)) return false;\r\n\t\r\n\t//decrypt string\r\n\t$string = trim(mcrypt_decrypt($cipher, $key, $decoded, MCRYPT_MODE_CFB, $iv));\r\n\t\r\n\t//disassemble again into actual string and signature\r\n\t$strsign = substr($string, -64);\r\n\t$string = substr($string, 0, -64);\r\n\t\r\n\t//calculate signature again\r\n\t$realsign = hash_hmac('sha256', $string, substr(bin2hex($key), -20, 16));\r\n\t\r\n\t//validate signatures\r\n\tif($realsign!==$strsign){ return false; }\r\n\t\r\n\t//unserialize and return\r\n\treturn unserialize($string);\r\n}", "title": "" }, { "docid": "18726331cb0e43309f79bdf975b91243", "score": "0.62239194", "text": "function mf_simetical_crypt_2($smer,$ulaz)\n{\n\t//$string = ' string to be encrypted '; // note the spaces\n\t$key = 'ljkhkhadhluzozztzgdzu8444y';\n\t//$string = 'goran andab'; // note the spaces\n\t$string=$ulaz;\n switch($smer){\n case \"en\":\n \t\t\t\t$encrypted = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $string, MCRYPT_MODE_CBC, md5(md5($key))));\n \t\t\t\t$izlaz=$encrypted;\n \t\t\t\tbreak;\n case \"de\":\n \t\t\t\t$encrypted=$ulaz;\n\t\t\t\t\t$decrypted = rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($key), base64_decode($encrypted), MCRYPT_MODE_CBC, md5(md5($key))), \"\\0\");\n \t\t\t\t$izlaz=$decrypted;\n \t\t\t\tbreak; \t\t\t\t\n }\n return $izlaz;\n}", "title": "" }, { "docid": "17eabfd6e29406ae888bc23215240b0c", "score": "0.62215847", "text": "function encrypt_decrypt($strAction, $strEncryptionMethod, $strInput, $strClearKey, $strClearInitializationVector) {\n\t\t$strResult = false;\n\n\t\t$strSecretKey = hash('sha256', $strClearKey);\n\t\t$strSecretInitializationVector = substr(hash('sha256', $strClearInitializationVector), 0, 16);\n\n\t\tif ( $strAction === 'encrypt' ) {\n\t\t\t$strResult = base64_encode(openssl_encrypt($strInput, $strEncryptionMethod, $strSecretKey, 0, $strSecretInitializationVector ));\n\t\t}\n\t\telse if( $strAction === 'decrypt' ) {\n\t\t\t$strResult = openssl_decrypt(base64_decode($strInput), $strEncryptionMethod, $strSecretKey, 0, $strSecretInitializationVector );\n\t\t}\n\t\treturn $strResult;\n\t}", "title": "" }, { "docid": "dc16d06bab04f43ca7c3c83091855027", "score": "0.62110853", "text": "static function simple_encrypt($text){\n\n\t$pass = 'qwertyuiopasdfgh';\n\t$method = 'aes128';\n\n\t$chars='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' ;\n\t$iv=substr( str_shuffle( $chars ), 0, 16 );\n\t\n\t$cipher=urlencode(openssl_encrypt ($text, $method, $pass,0, $iv) . ':::' . $iv)\t;\n\treturn $cipher;\n}", "title": "" }, { "docid": "eb76438fc4e69ae057176dda9a77a9ab", "score": "0.62003195", "text": "function aes_encrypt($val)\n{\n\t$key = mysql_aes_key($GLOBALS['key']);\n\t$pad_value = 16-(strlen($val) % 16);\n\t$val = str_pad($val, (16*(floor(strlen($val) / 16)+1)), chr($pad_value));\n\treturn mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $val, MCRYPT_MODE_ECB, mcrypt_create_iv( mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB), MCRYPT_DEV_URANDOM));\n}", "title": "" }, { "docid": "b778748bbd4fcbc67598767c38c47ffb", "score": "0.6186061", "text": "function encrypt_decrypt($action, $string) {\n $output = false;\n\n $encrypt_method = \"AES-256-CBC\";\n $secret_key = 'This is my secret key';\n $secret_iv = 'This is my secret iv';\n\n // hash\n $key = hash('sha256', $secret_key);\n \n // iv - encrypt method AES-256-CBC expects 16 bytes - else you will get a warning\n $iv = substr(hash('sha256', $secret_iv), 0, 16);\n\n if( $action == 'encrypt' ) {\n $output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv);\n $output = base64_encode($output);\n }\n else if( $action == 'decrypt' ){\n $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);\n }\n\n return $output;\n}", "title": "" }, { "docid": "3a26ba46783bd1bc2f8a712b401041d2", "score": "0.6181889", "text": "public function test_decrypt_invalid()\n\t{\n\t\t$encrypt = Encrypt::instance();\n\t\t$this->assertNull($encrypt->decode(':/invalid?1'));\n\t\t$this->assertNull($encrypt->decode(base64_encode('asdasd')));\n\t}", "title": "" }, { "docid": "a2378440e3fd01689787c770dedc36f7", "score": "0.61692595", "text": "function encrypt($plainText, $privateKey) { \r\n $publicKey = genPublicKey(); \r\n $textArray = str_split($plainText); \r\n \r\n $shiftKeyArray = array(); \r\n for($i=0;$i<ceil(sizeof($textArray)/40);$i++) array_push($shiftKeyArray,sha1($privateKey.$i.$publicKey)); \r\n \r\n $cipherTextArray = array(); \r\n for($i=0;$i<sizeof($textArray);$i++) \r\n { \r\n\t\t$cipherChar = ord(\r\n\t\t$textArray[$i]\r\n\t\t) + \r\n\t\tord(\r\n\t\t$shiftKeyArray[$i]\r\n\t\t); \r\n\t\t\r\n\t\t$cipherChar -= floor($cipherChar/255)*255; \r\n\t\t$cipherTextArray[$i] = dechex($cipherChar);\r\n } \r\n print_r($shiftKeyArray);\r\n unset($textarray); \r\n unset($shiftKeyArray); \r\n unset($cipherChar); \r\n \r\n $cipherStream = implode(\"\",$cipherTextArray).\":\".$publicKey; \r\n \r\n unset($publicKey); \r\n unset($cipherTextArray); \r\n \r\n return $cipherStream; \r\n}", "title": "" }, { "docid": "6b7b159f8957e3f2ab97192e8e7ddb3c", "score": "0.61640495", "text": "function encrypt($plainText) { \n\t\t$textArray = str_split($plainText); \n\t\t$shiftKeyArray = array();\n\t\tfor($i=0;$i<ceil(sizeof($textArray)/40);$i++) array_push($shiftKeyArray,sha1($this->privateKey.$i.$this->publicKey));\n\t\t\n\t\t$cipherTextArray = array();\n\t\tfor($i=0;$i<sizeof($textArray);$i++)\n\t\t{\n\t\t\t$cipherChar = ord($textArray[$i]) + ord($shiftKeyArray[$i]);\n\t\t\t$cipherChar -= floor($cipherChar/255)*255;\n\t\t\t$cipherTextArray[$i] = dechex($cipherChar);\n\t\t}\n\t\t\n\t\tunset($textarray);\n\t\tunset($shiftKeyArray);\n\t\tunset($cipherChar);\n\t \n\t\t//$cipherStream = implode(\"\",$cipherTextArray).\":\".$this->publicKey; //commented by Mahipal\n\t\t$cipherStream = implode(\"\",$cipherTextArray); //added by Mahipal\n\t\t\n\t\t//unset($publicKey);\n\t\tunset($cipherTextArray);\n\t\t\n\t\treturn $cipherStream;\n\t}", "title": "" }, { "docid": "f8e36c28a3eb7a30439fa46877eb731a", "score": "0.6157408", "text": "public function create_aes_encryptiuon_key(){\n\n\t\t$cipher =\"AES-256-CBC\";\n \n $findKey = $this->generateRandomString();\n $secFirstKey = $this->generateRandomString();\n $var = session(['enc_key' => $findKey,'ivText' => $secFirstKey]);\n $key = session('enc_key');\n $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length($cipher));\n $ivText = base64_encode($iv);\n\n $result = [\n \t \"enc_key\" => $key,\n \t \"ivText\" => $secFirstKey\n ];\n\n\t\treturn $result; \n \n }", "title": "" }, { "docid": "28f182642671232642cf80875ba0556e", "score": "0.61467564", "text": "function decrypt($text, $key)\n{\n if (!$text)\n return \"\";\n $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB);\n $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n return rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $key, base64_decode($text), MCRYPT_MODE_ECB, $iv), \"\\0\");\n}", "title": "" }, { "docid": "bb8e18983fe7252be3ad31ecfadf9944", "score": "0.6142524", "text": "function myEncryption($str,$salt)\n\t\t{\n\t\t\t$str = md5(sha1($str.$salt));\n\t\t\t$str = sha1(md5($str.$salt));\n\t\t\treturn $str;\n\t\t}", "title": "" }, { "docid": "02de470323a967343215cb9cded992d6", "score": "0.613129", "text": "public function isSecretKey();", "title": "" }, { "docid": "5fd63954fd4d3167fb838b249d326691", "score": "0.6130862", "text": "function encrypt($cadena, $new_key = \"\") {\n\treturn $cadena;\n}", "title": "" }, { "docid": "6604332911e1cc4e01082a2d49578b99", "score": "0.6128641", "text": "function my_simple_crypt( $string, $action = 'e' ) {\r\n $secret_key = '4n9*^%%$3n^&4v&%7@!90&$$3c3x$^*$m8a456#@tgf%$$c'; // 4n9*^%%$3n^&4v&%7@!90&$$3c3x$^*$m8a456#@tgf%$$c\r\n $secret_iv = 'cXpYEjhvzuVXOV7ltEQSAq8dvNQTWLar';\r\n\r\n $output = false;\r\n $encrypt_method = \"AES-256-CBC\";\r\n $key = hash( 'sha256', $secret_key );\r\n $iv = substr( hash( 'sha256', $secret_iv ), 0, 16 );\r\n\r\n if( $action == 'e' ) {\r\n $output = base64_encode( openssl_encrypt( $string, $encrypt_method, $key, 0, $iv ) );\r\n }\r\n else if( $action == 'd' ){\r\n $output = openssl_decrypt( base64_decode( $string ), $encrypt_method, $key, 0, $iv );\r\n }\r\n return $output;\r\n }", "title": "" }, { "docid": "6e689f5766aea4659b1077b80fc42547", "score": "0.6111024", "text": "function encrypt_decrypt($action, $string, $secret_key) {\n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $secret_iv = 'This is my secret iv';\n // hash\n $key = hash('sha256', $secret_key);\n\n // iv - encrypt method AES-256-CBC expects 16 bytes - else you will get a warning\n $iv = substr(hash('sha256', $secret_iv), 0, 16);\n if ( $action == 'encrypt' ) {\n $output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv);\n $output = base64_encode($output);\n } else if( $action == 'decrypt' ) {\n $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);\n }\n return $output;\n }", "title": "" }, { "docid": "10c6a67ef78745fbab676aeb7418a3e0", "score": "0.61075217", "text": "public function isEncryptionKey();", "title": "" }, { "docid": "b04f2186d983a66e5b3b472949286372", "score": "0.60676455", "text": "public function encryption($encryption);", "title": "" }, { "docid": "6733c9ee348fcd584b9f5a123f63a4fb", "score": "0.6063669", "text": "function Decrypt($txt,$key)\n{\n\t$txt = keyED(base64_decode($txt),$key);\n\t$tmp = \"\";\n\tfor ($i=0;$i<strlen($txt);$i++){\n\t\t$md5 = substr($txt,$i,1);\n\t\t$i++;\n\t\t$tmp.= (substr($txt,$i,1) ^ $md5);\n\t}\n\treturn $tmp;\n}", "title": "" }, { "docid": "5f13f79edddfabff1161b9ac099dc6c9", "score": "0.6061491", "text": "function encrypt($text, $SALT=null) {\n\t// .....................\n //return base64_encode($text);\n\t$key = '!QWERTY123';\n\treturn base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $text, MCRYPT_MODE_CBC, md5(md5($key))));\n\n\n}", "title": "" }, { "docid": "039eec0bc11884cd55e4bcdb4ff5b412", "score": "0.6055796", "text": "function myEncrypt2($Cypher, $EncryptionKey, $str ) {\r\n\t\r\n\r\n\treturn array($encryptedStr, $EncryptionKey);\r\n\t\r\n}", "title": "" }, { "docid": "ac4b41cd0d14527d6e9e2e7e851c940f", "score": "0.602675", "text": "function checkDecrypt() {\n\t\t\t\n\t\t// PDO sql select statement to get record for this public key\n\t\ttry {\n\t\t\t$stmt = $this->db->prepare(\"SELECT * FROM publickeys WHERE keyhash = :keyhash LIMIT 1\");\n\t\t\t$stmt->execute(array(':keyhash' => $this->keyhash));\n\t\t\t$keyrow = $stmt->fetchAll();\n\t\t\t\n\t\t\t// Return only the first match\n\t\t\t// We do not allow duplicate keys so unless there is a hash collision should never be more than one match\n\t\t\t$loginstring = $keyrow[0][\"loginstring\"];\n\t\t\t\t\t\t\t\t\n\t\t} catch(PDOException $ex) {\n\t\t\t\techo \"An SQL Error occured!\"; \n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Compare the stored authentication string to the decrypted one\n\t\tif($this->decmessage === $loginstring) { \n\t\t\treturn true; \n\t\t} else { \n\t\t\treturn false;\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "685e3b1c259b9c601d0d126fdb28a8aa", "score": "0.60212296", "text": "function Encrypt($txt,$key) {\n\tsrand((double)microtime()*1000000);\n\t$encrypt_key = md5(rand(0,32000));\n\t$ctr=0;\n\t$tmp = \"\";\n\tfor ($i=0;$i<strlen($txt);$i++)\t{\n\t\tif ($ctr==strlen($encrypt_key)) $ctr=0;\n\t\t$tmp.= substr($encrypt_key,$ctr,1) .\n\t\t(substr($txt,$i,1) ^ substr($encrypt_key,$ctr,1));\n\t\t$ctr++;\n\t}\n\t\n\treturn base64_encode(keyED($tmp,$key));\n}", "title": "" }, { "docid": "0e0b7d13b0d4cab6d01368a526cdcee9", "score": "0.60146993", "text": "function encrypt($txt,$key)\n\t{\n\tsrand((double)microtime()*1000000);\n\t$encrypt_key = md5(rand(0,32000));\n\t$ctr=0;\n\t$tmp = \"\";\n\tfor ($i=0;$i<strlen($txt);$i++)\n\t{\n\tif ($ctr==strlen($encrypt_key)) $ctr=0;\n\t$tmp.= substr($encrypt_key,$ctr,1) .\n\t(substr($txt,$i,1) ^ substr($encrypt_key,$ctr,1));\n\t$ctr++;\n\t}\n\treturn Util::keyED($tmp,$key);\n\t}", "title": "" }, { "docid": "40ec1b0c791865d7f606edf8d0775621", "score": "0.6004423", "text": "public function getEncrypted($key);", "title": "" }, { "docid": "cec4b4f639b93c02bf1968ad33114c69", "score": "0.60028815", "text": "function encrypt($str, $key)\n{\n $zeroPack = pack('i*', 0);\n $iv = str_repeat($zeroPack, 4);\n mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC), MCRYPT_RAND);\n $encryptedStr = mcrypt_encrypt(\n MCRYPT_RIJNDAEL_128,\n hex2bin(md5($key)),\n pkcs5_pad($str, mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC)),\n MCRYPT_MODE_CBC,\n $iv)\n ;\n return bin2hex($encryptedStr);\n}", "title": "" }, { "docid": "3676e9e9411cfd9a05f412e394c82900", "score": "0.60027915", "text": "function enkripsi_plain2($algoritma,$mode,$secretkey,$fileplain){\n\n\t/* Membuka Modul untuk memilih Algoritma & Mode Operasi */\n\t$td = mcrypt_module_open($algoritma, '', $mode, '');\n\n\t/* Inisialisasi IV dan Menentukan panjang kunci yang digunakan*/\n\t$iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td), MCRYPT_RAND);\n\t$ks = mcrypt_enc_get_key_size($td);\n\n\t/* Menghasilkan Kunci */\n\t$key = $secretkey;\n\t//echo \"kuncinya : \". $key. \"<br>\";\n\n\t/* Inisialisasi */\n\tmcrypt_generic_init($td, $key, $iv);\n\n\t/* Enkripsi Data, dimana hasil enkripsi harus di encode dengan base64.\\\n Hal ini dikarenakan web browser tidak dapat membaca karakter-karakter\\\n ASCII dalam bentuk simbol-simbol */\n\t$buffer = $fileplain;\n\t$encrypted = mcrypt_generic($td, $buffer);\n\t$encrypted1=base64_encode($iv).\";\".base64_encode($encrypted);\n\t$encrypted2=base64_encode($encrypted1);\n\t$filecipher=$encrypted2;\n\n\t/* Menghentikan proses enkripsi dan menutup modul */\n\tmcrypt_generic_deinit($td);\n\tmcrypt_module_close($td);\n\n \n return $filecipher;\n\n}", "title": "" }, { "docid": "f10b9678b22b73f8766ea34e4b5d0270", "score": "0.59942156", "text": "function JEncrypt($string,$operation='E'){ \r\n $key = md5('JingJian'); \r\n $key_length = strlen($key); \r\n $string = $operation == 'D' ? base64_decode($string) : substr(md5($string.$key),0,8).$string; \r\n $string_length = strlen($string); \r\n $rndkey = $box = array(); \r\n $result = ''; \r\n for($i = 0;$i <= 255;$i++){ \r\n $rndkey[$i] = ord($key[$i%$key_length]); \r\n $box[$i] = $i; \r\n } \r\n for($j = $i = 0;$i < 256;$i++){ \r\n $j = ($j+$box[$i]+$rndkey[$i])%256; \r\n $tmp = $box[$i]; \r\n $box[$i] = $box[$j]; \r\n $box[$j] = $tmp; \r\n } \r\n for($a = $j = $i = 0;$i<$string_length;$i++){ \r\n $a = ($a+1)%256; \r\n $j = ($j+$box[$a])%256; \r\n $tmp = $box[$a]; \r\n $box[$a] = $box[$j]; \r\n $box[$j] = $tmp; \r\n $result .= chr(ord($string[$i])^($box[($box[$a]+$box[$j])%256])); \r\n } \r\n if($operation == 'D'){ \r\n if(substr($result,0,8) == substr(md5(substr($result,8).$key),0,8)){ \r\n return substr($result,8); \r\n }else{ \r\n return''; \r\n } \r\n }else{ \r\n return str_replace('=','',base64_encode($result)); \r\n } \r\n}", "title": "" }, { "docid": "1646b4b2279e29f8b505d90c1e3fd782", "score": "0.5991371", "text": "public function testSimpleDecryption()\n\t{\n\t\t$rc4 = new Crypt_RC42();\n\t\t$rc4->key($this->_key);\n\t\t$this->assertEquals('PEAR Rulez!', $rc4->decrypt(base64_decode('4kwQ6uYzPplnt0Q=')));\n\t}", "title": "" }, { "docid": "8ce4564bae9ca83e5154ee94df287610", "score": "0.59861493", "text": "function my_encrypt($data , $key) {\n $encryption_key = base64_decode($key);\n // Generate an initialization vector\n $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length('aes-256-cbc'));\n // Encrypt the data using AES 256 encryption in CBC mode using our encryption key and initialization vector.\n $encrypted = openssl_encrypt($data, 'aes-256-cbc', $encryption_key, 0, $iv);\n // The $iv is just as important as the key for decrypting, so save it with our encrypted data using a unique separator (::)\n return base64_encode($encrypted . '::' . $iv);\n}", "title": "" }, { "docid": "1859eb6db5ff70918f751a46bffa6a88", "score": "0.59841317", "text": "function decryptData($data, $key) {\r\n\t\t$method = \"des-ede\";\r\n\t\t//echo \" Data before encode:\".$data.\"\\n\";\r\n\t\t//print_r(\" Data before encode:\".$data.\"\\n\");\r\n\t\t$data = base64_encode($data);\r\n\t\t//echo \" Data after encode:\".$data.\"\\n\";\r\n\t\t// print_r(\" Data after encode:\".$data.\"\\n\");\r\n\t\t$data = openssl_decrypt($data, $method , $key);\r\n\t\t\t//echo \" Data After Decryption:\".$data.\"\\n\";\r\n\t\t//print_r(\" Data After Decryption\".$data.\"\\n\");\r\n\t\t//$data = openssl_decrypt($data,'des-ede', $key, OPENSSL_RAW_DATA | OPENSSL_ZERO_PADDING);\r\n\t\t\r\n\t\t//$block = mcrypt_get_block_size ( 'tripledes', 'ecb' );\r\n\t\t//$len = strlen ( $data );\r\n\t\t//$pad = ord ( $data [$len - 1] );\r\n\t\t$decr = substr ( $data, 0, strlen ( $data ));\r\n\t\treturn $decr;\r\n\t}", "title": "" }, { "docid": "fa2432d691d032ea9d3f9534815c071d", "score": "0.59812707", "text": "public function testEncryption()\n {\n $user = User::find(1);\n\n $this->assertNotEquals('123456', $user->password);\n }", "title": "" }, { "docid": "e508f34b661fd4e846d06720fa393ced", "score": "0.5979048", "text": "static function simple_decrypt($text){\t\n\t$text=urldecode($text);\n\t$pieces=explode(':::',$text);\n\tif(count($pieces)!=2)return '';\t\n\t$pass = 'qwertyuiopasdfgh';\n\t$method = 'aes128';\t\n\treturn openssl_decrypt ($pieces[0], $method, $pass,0,$pieces[1])\t;\n}", "title": "" }, { "docid": "55b479a793ba1698af64786ef51076da", "score": "0.59708905", "text": "function rc4decrypt($key, $ct) {\r\n return rc4encrypt($key, $ct);\r\n}", "title": "" }, { "docid": "e55a2d1ddba0decf5a81efc51bf733b9", "score": "0.5965883", "text": "function demcrypt_data($input) {\n $key1 = \"ShareSpark\";\n $key2 = \"Org\";\n $key = $key1 . $key2;\n $decrypted = rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($key), base64_decode($input), MCRYPT_MODE_CBC, md5(md5($key))), \"\\0\");\n return $decrypted;\n }", "title": "" }, { "docid": "e55a2d1ddba0decf5a81efc51bf733b9", "score": "0.5965883", "text": "function demcrypt_data($input) {\n $key1 = \"ShareSpark\";\n $key2 = \"Org\";\n $key = $key1 . $key2;\n $decrypted = rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($key), base64_decode($input), MCRYPT_MODE_CBC, md5(md5($key))), \"\\0\");\n return $decrypted;\n }", "title": "" }, { "docid": "e7b44d6dd2fc2cb43e002c4781bf3fa6", "score": "0.59636337", "text": "public function decrypt($payload);", "title": "" }, { "docid": "61ed61863e9753b2cc8b983edb17a726", "score": "0.5961895", "text": "function rc4Decrypt($key, $ct)\r\n{\r\n return rc4Encrypt($key, $ct);\r\n}", "title": "" }, { "docid": "8934d0516b1f5581d21364462b696bf7", "score": "0.5951088", "text": "function encrypt_a_chunk($chunk, $key)\n{\n // Add your code here\n\n // echo strlen($chunk) . \" .. \" . strlen($key) . \"<br/>\";\n if (strlen($chunk) > strlen($key)) {\n // $diff_in_length = strlen($chunk) - strlen($key);\n // $key .= str_repeat(\"*\", $diff_in_length);\n $key = str_pad($key, strlen($chunk), \"*\");\n\n } elseif (strlen($key) > strlen($chunk)) {\n $key = substr($key, 0, strlen($chunk));\n }\n echo \"<hr/>\";\n echo \"Chunk : \" . $chunk . \"<br/>\";\n echo \"Key : \" . $key . \"<br/>\";\n\n return base64_encode($chunk ^ $key);\n}", "title": "" }, { "docid": "b334e245340f2679d675fb37eba216d3", "score": "0.5950302", "text": "abstract protected function encrypt($iv, $plaintext);", "title": "" }, { "docid": "ca42f27b146e38c89e194daf500fc4cb", "score": "0.59430283", "text": "function decrypt_v1($encrypted)\n {\n if (! isset($encrypted) || empty($encrypted)) {\n return '';\n }\n\n // Cipher method to AES with 256-bit key\n $cipher = strtolower(CIPHER_METHOD);\n\n if ($cipher == 'aes-256-gcm') {\n list($version, $ciphertext, $iv, $tag, $salt_key) = explode('::', $encrypted);\n $ciphertext = base64_decode($ciphertext);\n $iv = base64_decode($iv);\n $tag = base64_decode($tag);\n $salt_key = base64_decode($salt_key);\n\n // Derive encryption key\n $key = hash_pbkdf2('sha256', PASS_PHRASE, $salt_key, 10000);\n\n $plaintext = openssl_decrypt($ciphertext, $cipher, $key, $options=0, $iv, $tag);\n\n // GCM authentication\n if ($plaintext !== false) {\n return $plaintext;\n } else {\n exit('<strong>Warning: </strong>Please verify authenticity of ciphertext.');\n }\n } else {\n list($version, $ciphertext, $hash, $iv, $salt_key, $salt_hmac) = explode('::', $encrypted);\n $ciphertext = base64_decode($ciphertext);\n $hash = base64_decode($hash);\n $iv = base64_decode($iv);\n $salt_key = base64_decode($salt_key);\n $salt_hmac = base64_decode($salt_hmac);\n\n // Derive encryption key\n $key = hash_pbkdf2('sha256', PASS_PHRASE, $salt_key, 10000);\n // Derive HMAC key\n $key_hmac = hash_pbkdf2('sha256', PASS_PHRASE, $salt_hmac, 10000);\n\n $digest = hash_hmac('sha256', $ciphertext, $key_hmac);\n\n // HMAC authentication\n if (hash_equals($hash, $digest)) {\n return openssl_decrypt($ciphertext, $cipher, $key, $options=0, $iv);\n } else {\n exit('<strong>Warning: </strong>Please verify authenticity of ciphertext.');\n }\n }\n }", "title": "" }, { "docid": "1d53518eb0c1fbe20e078e11221d8beb", "score": "0.59273565", "text": "function my_decrypt($data , $key) {\n $encryption_key = base64_decode($key);\n // To decrypt, split the encrypted data from our IV - our unique separator used was \"::\"\n list($encrypted_data, $iv) = explode('::', base64_decode($data), 2);\n return openssl_decrypt($encrypted_data, 'aes-256-cbc', $encryption_key, 0, $iv);\n}", "title": "" }, { "docid": "045a455904d0a7bb16249b1ff9024a47", "score": "0.5922289", "text": "public function encrypt()\n {\n $encrypted = \"\";\n $keys = array();\n $public[] = openssl_get_publickey($this->public);\n $res = openssl_seal($this->plain, $encrypted, $keys, $public);\n $this->key = isset($keys[0]) ? $keys[0] : \"\";\n $this->encrypted = $encrypted;\n return $res;\n }", "title": "" }, { "docid": "7a9486ed612704310cba67561daa4644", "score": "0.5912862", "text": "function TripleDesEncrypt($buffer,$key,$iv) {\n $cipher = mcrypt_module_open(MCRYPT_3DES, '', 'cbc', '');\n $buffer.='___EOT';\n // get the amount of bytes to pad\n $extra = 8 - (strlen($buffer) % 8);\n // add the zero padding\n if($extra > 0) {\n for($i = 0; $i < $extra; $i++) {\n $buffer .= '_';\n }\n }\n mcrypt_generic_init($cipher, $key, $iv);\n $result = mcrypt_generic($cipher, $buffer);\n mcrypt_generic_deinit($cipher);\n return base64_encode($result);\n }", "title": "" }, { "docid": "4c69bd782494da0b9cdb6b8ea64d537c", "score": "0.59116125", "text": "function cryptare($text, $crypt, $key = 'encytotpGrahmmmmm', $alg ='blowfish')\n{\n\n// Parameters:\n// $text = The text that you want to encrypt.\n// $key = The key you're using to encrypt.\n// $alg = The algorithm.\n// $crypt = 1 if you want to crypt, or 0 if you want to decrypt. \n $encrypted_data=\"\";\n switch($alg)\n {\n case \"3des\":\n $td = mcrypt_module_open('tripledes', '', 'ecb', '');\n break;\n case \"cast-128\":\n $td = mcrypt_module_open('cast-128', '', 'ecb', '');\n break; \n case \"gost\":\n $td = mcrypt_module_open('gost', '', 'ecb', '');\n break; \n case \"rijndael-128\":\n $td = mcrypt_module_open('rijndael-128', '', 'ecb', '');\n break; \n case \"twofish\":\n $td = mcrypt_module_open('twofish', '', 'ecb', '');\n break; \n case \"arcfour\":\n $td = mcrypt_module_open('arcfour', '', 'ecb', '');\n break;\n case \"cast-256\":\n $td = mcrypt_module_open('cast-256', '', 'ecb', '');\n break; \n case \"loki97\":\n $td = mcrypt_module_open('loki97', '', 'ecb', '');\n break; \n case \"rijndael-192\":\n $td = mcrypt_module_open('rijndael-192', '', 'ecb', '');\n break;\n case \"saferplus\":\n $td = mcrypt_module_open('saferplus', '', 'ecb', '');\n break;\n case \"wake\":\n $td = mcrypt_module_open('wake', '', 'ecb', '');\n break;\n case \"blowfish-compat\":\n $td = mcrypt_module_open('blowfish-compat', '', 'ecb', '');\n break;\n case \"des\":\n $td = mcrypt_module_open('des', '', 'ecb', '');\n break;\n case \"rijndael-256\":\n $td = mcrypt_module_open('rijndael-256', '', 'ecb', '');\n break;\n case \"xtea\":\n $td = mcrypt_module_open('xtea', '', 'ecb', '');\n break;\n case \"enigma\":\n $td = mcrypt_module_open('enigma', '', 'ecb', '');\n break;\n case \"rc2\":\n $td = mcrypt_module_open('rc2', '', 'ecb', '');\n break; \n default:\n $td = mcrypt_module_open('blowfish', '', 'ecb', '');\n break; \n }\n \n $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td), MCRYPT_RAND);\n $key = substr($key, 0, mcrypt_enc_get_key_size($td));\n mcrypt_generic_init($td, $key, $iv);\n \n if($crypt)\n {\n $encrypted_data = mcrypt_generic($td, $text);\n }\n else\n {\n $encrypted_data = mdecrypt_generic($td, $text);\n }\n \n mcrypt_generic_deinit($td);\n mcrypt_module_close($td);\n \n return $encrypted_data;\n}", "title": "" }, { "docid": "fb3ee59b3b718d53a55994552b16fba5", "score": "0.5909822", "text": "public function Encrypt($ssl){\n\n $output=openssl_encrypt($ssl, $this->METHOD, $this->SECRET_KEY, 0, $this->SECRET_IV); \n $output=base64_encode($output); \n return $output;\n\n }", "title": "" }, { "docid": "f3e19ed64d0ac902f67fc16bbeca79b9", "score": "0.5909753", "text": "public function crypt($value)\n {\n $ciphering = \"AES-128-CTR\"; // Store the cipher method\n $iv_length = openssl_cipher_iv_length($ciphering); // Use OpenSSl Encryption method\n $iv = '1234567887654321'; // Non-NULL Initialization Vector for encryption\n $key = \"key0123456789\"; // Store the encryption key \n\n $encryption = openssl_encrypt($value, $ciphering, $key, 0, $iv); // Use openssl_encrypt() function to encrypt the data \n\n echo \"Encrypted String: \" . $encryption . \"\\n\"; // Display the encrypted string \n\n // Use openssl_decrypt() function to decrypt the data \n $decryption=openssl_decrypt ($encryption, $ciphering, $key, 0, $iv); \n\n echo \"Decrypted String: \" . $decryption; // Display the decrypted string \n }", "title": "" }, { "docid": "c0bc3566c84d3aa105fba1b3b4bdc11b", "score": "0.589856", "text": "function encrypt($plaintext)\n{\n function encrypt_v1($plaintext)\n {\n\n // Version\n $version = 'enc-v1';\n \n // Cipher method to AES with 256-bit key\n $cipher = strtolower(CIPHER_METHOD);\n // Salt for encryption key\n $salt_key = random_bytes(16);\n // Derive encryption key\n $key = hash_pbkdf2('sha256', PASS_PHRASE, $salt_key, 10000);\n // Initialization vector\n $iv = random_bytes(16);\n\n if ($cipher == 'aes-256-gcm') {\n $ciphertext = openssl_encrypt($plaintext, $cipher, $key, $options=0, $iv, $tag);\n return $version . '::' . base64_encode($ciphertext) . '::' . base64_encode($iv) . '::' . base64_encode($tag) . '::' . base64_encode($salt_key);\n } else {\n\n // Salt for HMAC key\n $salt_hmac = random_bytes(16);\n // Derive HMAC key\n $key_hmac = hash_pbkdf2('sha256', PASS_PHRASE, $salt_hmac, 10000);\n\n $ciphertext = openssl_encrypt($plaintext, $cipher, $key, $options=0, $iv);\n $hash = hash_hmac('sha256', $ciphertext, $key_hmac);\n return $version . '::' . base64_encode($ciphertext) . '::' . base64_encode($hash) . '::' . base64_encode($iv) . '::' . base64_encode($salt_key) . '::' . base64_encode($salt_hmac);\n }\n }\n\n /** Version-based Encryption */\n // Default encryption function\n return encrypt_v1($plaintext);\n}", "title": "" }, { "docid": "0bae12b87005d51b77edec7e9f3196ee", "score": "0.58896303", "text": "function encryptIt($value) {\n\t\t// The encodeKey MUST match the decodeKey\n\t\t$encodeKey = 'DvHtl3CGp4QLuuOEtBQ2AS';\n\t\t$encoded = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($encodeKey), $value, MCRYPT_MODE_CBC, md5(md5($encodeKey))));\n\n\t\treturn($encoded);\n\t}", "title": "" }, { "docid": "3851ff7745a583c9426c5c7d7c1b7bb4", "score": "0.5886248", "text": "function decryptString($encryption){\n $ciphering = \"AES-128-CTR\";\n\n// Use OpenSSl Encryption method\n $iv_length = openssl_cipher_iv_length($ciphering);\n $options = 0;\n $decryption_iv = '1234567891011121';\n\n// Store the decryption key\n $decryption_key = \"JenguCovidTestKit\";\n\n// Use openssl_decrypt() function to decrypt the data\n $decryption=openssl_decrypt ($encryption, $ciphering,\n $decryption_key, $options, $decryption_iv);\n\n// Display the decrypted string\n //echo \"Decrypted String: \" . $decryption;\n return $decryption;\n}", "title": "" }, { "docid": "c14a48c0be566330f716cedf48101440", "score": "0.5876916", "text": "public function testMCryptEncryptDecrypt() {\n if (function_exists('mcrypt_encrypt')) {\n $this->stageTest();\n\n // Run encrypt test.\n $srv = \\Drupal::service('encryption');\n $random = $this->randomString(10);\n $encrypted = $srv->encrypt($random, 'testing_profile');\n\n // Test that the original value does not equal the encrypted value (i.e. that the data is actually being encrypted).\n $this->assertNotEqual($random, $encrypted, t('MCrypt: A value, encrypted, does not equal itself.'));\n\n $decrypted = $srv->decrypt($encrypted, 'testing_profile');\n $this->assertEqual($random, $decrypted, t('MCrypt: A value, decrypted, equals itself.'));\n\n }\n else {\n debug('MCrypt extension not present. Skipping tests.');\n }\n }", "title": "" }, { "docid": "cf76bfcfa0e0557a5de12ae4aea3302e", "score": "0.5873885", "text": "static function encrypt($key, $iv, $data) {\n\t\t//se la lunghezza della chiave è inferiore alla lunghezza accettata dal cifrario, si applica del padding\n\t\t//se la lunghezza è maggiore si tronca a 16n bytes\n if (strlen($key) < PHP_AES_Cipher::$CIPHER_KEY_LEN) {\n $key = str_pad(\"$key\", PHP_AES_Cipher::$CIPHER_KEY_LEN, \"0\"); //padding, aggiunta di zeri\n } else if (strlen($key) > PHP_AES_Cipher::$CIPHER_KEY_LEN) {\n $key = substr($str, 0, PHP_AES_Cipher::$CIPHER_KEY_LEN); //troncato a 16 bytes\n }\n\n\t\t//codifica in base 64, si fa l'encryption prendendo come parametrr: la stringa, il cifrario, la chiave, l'iv\n $encodedEncryptedData = base64_encode(openssl_encrypt($data, PHP_AES_Cipher::$OPENSSL_CIPHER_NAME, $key, OPENSSL_RAW_DATA, $iv));\n \n\t\t//OPENSSL_RAW_DATA dice a openssl_encrypt () di restituire un cipherText come dati non elaborati. \n\t\t//Per default, lo restituisce con codifica Base64.\n\n\t\t//codifica in base 64 dell'iv\n\t\t$encodedIV = base64_encode($iv);\n $encryptedPayload = $encodedEncryptedData.\":\".$encodedIV;\n\n return $encryptedPayload;\n }", "title": "" }, { "docid": "749f01f9e101108f3b7cbf37af8963e9", "score": "0.58719033", "text": "private function _encrypt($plaintext) {\n $cfg = Factory::getConfig();\n return ($cfg->getValue('debug') ? \n $plaintext : Utility::encrypt($plaintext, &$this->encryption));\n }", "title": "" }, { "docid": "7a71fdd9c4e93f83c9162e370eac9a56", "score": "0.5871085", "text": "function encripta ($cad) {\n\t\tsrand((double)microtime()*1000000);\n\t\t$aleatorio = md5(rand(0,32000));\n\t\t$lonx_clave = strlen($this->clave);\n\t\t$lonx_cad = strlen($cad);\n\t\t$cnt = 0;\n\t\t$resultado = '';\n\n\t\tfor ($i=0; $i < $lonx_cad; $i++){\n\t\t\t$cnt = ($cnt == $lonx_clave)?0:$cnt;\n\t\t\t$resultado .= substr($aleatorio, $cnt, 1).(substr($cad, $i, 1) ^ substr($aleatorio, $cnt, 1));\n\t\t\t$cnt++;\n\t\t}\n\n\t\treturn base64_encode($this->keyED($resultado));\n\t}", "title": "" }, { "docid": "7b39e594ebd35883c2e9db021afea7f4", "score": "0.58622473", "text": "function decrypt($text, $SALT=null) {\n\t// .....................\n\t//return base64_decode($text);\n\t$key = '!QWERTY123';\n\treturn rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($key), base64_decode($text), MCRYPT_MODE_CBC, md5(md5($key))), \"\\0\");;\t\n}", "title": "" }, { "docid": "b5807c73af0474758ff616029d6b67eb", "score": "0.5855279", "text": "function mcrypt_data($input) {\n $key1 = \"TeachersApp\";\n $key2 = \"StudentsApp\";\n $key = $key1 . $key2;\n $encrypted = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $input, MCRYPT_MODE_CBC, md5(md5($key))));\n //var_dump($encrypted);\n return $encrypted;\n }", "title": "" }, { "docid": "e1350b78609393bbd5cc06633754372e", "score": "0.58506095", "text": "function decrypt($encrypted_string, $encryption_key) {\n $iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB);\n $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n $decrypted_string = mcrypt_decrypt(MCRYPT_BLOWFISH, $encryption_key, $encrypted_string, MCRYPT_MODE_ECB, $iv);\n return $decrypted_string;\n}", "title": "" }, { "docid": "1ebf3a13f317077cafe1427a16b5976a", "score": "0.58422697", "text": "public function testDecryptWithValidMessage() {\n\n $IbmPwSec_Decryptor_3des = new IbmPwSec_Decryptor_3des('secretPassphrase');\n\n $message = urldecode('AAAACMrKHyzL7Jew16wPyxo%2FXTg0Albex7ATyB022%2FxaPntVS%2FEGeflDZYDBjSOzsvtZWmtC3lRi2t8mFGmj%2BotnaRUgYzSmVkzL52Ox72U1D8CFTTqbYU%2BWHIns28p7HxHprV830i5sONg%2BI6Pz70knGH7YDOaF1vIn0GBAPmI%2F94MS%2FdH4xOaEvUqqGAzAUcaxpuMFiSizAswKvPkQBPzknXCIRA7rAn1TvlEI9%2FNRJ47aW1O4vbTL2WipWgGTA%2BU2u%2FUJUXLMQh5qEwFi5k7k2HO2Yy9DO3737SDP%2FUUFdsUvL26vMmaH235iD%2FK3lwz%2FPFPa7m49rqm1c5eBmzziippBZqSAIaMbdbJtHXyGtlKBDJAO1Zg8d3emzUs5PuCVIchMKW9ALJH%2BXD857JlV9Nnaipsz7GvWGidjOW8H8XGW0PpY78orMDgAQ3gjUSe4Tipps4RRqHx0ovqwgFejsy6N8PqZ7XZa9N3fJPueoMQssyHGO6peYC70oi4qlEhop35XjsT1gy8h%2FzEewrDM9eWhLv5DHO6K3Jj9tTzxRbz38Tri6lazKGTJ0L4SIZ46JRIhTHnH7Dwhm2O5Gi%2Fk%2BvYn7P3n2HAzDNJ%2BKbT4gxLXi73w1tkCLsC25M0WAXbaW%2F6%2B3oKF6XLDvlZni3oL59fToHLbZh6s%2FZM%2FDPb6K3FH2b5jz7%2BhIPJT%2BsXjwU1Z6gM5kjk%2Flkhm6ZjMAaFAb%2FEu4JSVVFT5utbqw%2F3KbvnLMdvnyIMn%2BLXb8jPurAw6No9MkeK20JvXRZlZw2X3VxKBx9O04qjm5izywQOekCdtBfoRzZITT88jKxxtzl4AaDnaWMGXc4xkUhytrfmUsmiynFiaeVKWCqwUWwRAVXMK');\n\n $actual = $IbmPwSec_Decryptor_3des->decrypt($message);\n\n $expected = '<SignonRequest vendor=\"ibm_pw_vendorcode\"><LoggedOnUser><Name><PrimeSurname>Case 1</PrimeSurname><FirstName>Test</FirstName></Name><UniqueId>T000000101</UniqueId><Email>testcase1@nowhere.com</Email><Telephone>1-800-555-1212</Telephone><CountryOfResidence>US</CountryOfResidence><PreferredLanguageCode>en</PreferredLanguageCode></LoggedOnUser><PartnerDetails><CompanyId>1</CompanyId><TradeStyleName>Test Case 1</TradeStyleName></PartnerDetails><SignonRequestDetails><Timestamp>2010-08-13 14:40:13 GMT</Timestamp><Expiration>2015-08-13 14:43:13 GMT</Expiration><SessionID>BvxSsarsQhdxJm2KgTkbuoK</SessionID></SignonRequestDetails></SignonRequest>';\n\n $this->assertEquals($expected, $actual);\n\n }", "title": "" }, { "docid": "670586c3df1adcdfc0dc0b94dce9c872", "score": "0.58394575", "text": "function encrypt($data, $cypher = '') {\n\t\n/*\tif ($cypher == '')\t$cypher = $GLOBALS['DB_ENCRYPT_KEY'];\n\t$data\t= addslashes(serialize($data));\n\tlist($code) = @mysql_fetch_row(@mysql_query(\"select hex(aes_encrypt('$data', '$cypher'))\"));\n\treturn $code;\n*/\n\tif ($cypher == '')\t$cypher = $GLOBALS['DB_ENCRYPT_KEY'];\n\t$cypher\t.=\t\"dzrkelr\";\n\n\t$data\t= serialize($data);\n\t$code\t= _encryption_convert($data, $cypher);\n\t$_code\t= '';\n\tfor ($i=0; $i < strlen($code); $i++) {\n\t\t$_code\t.= padding(dechex(ord($code{$i})), 2);\n\t}\n\treturn $_code;\n}", "title": "" }, { "docid": "2d3ee04cb52097c7b6e09964babbbc7f", "score": "0.5836443", "text": "function TripleDesEncrypt($buffer,$key,$iv) {\n\n\t\t\t$cipher = mcrypt_module_open(MCRYPT_3DES, '', 'cbc', '');\n\t\t\t$buffer.='___EOT';\n\t\t\t// get the amount of bytes to pad\n\t\t\t$extra = 8 - (strlen($buffer) % 8);\n\t \t\t// add the zero padding\n\t\t\tif($extra > 0) {\n\t\t\tfor($i = 0; $i < $extra; $i++) {\n\t\t\t\t$buffer .= '_';\n\t\t\t\t}\n\t\t\t}\n\t \t mcrypt_generic_init($cipher, $key, $iv);\n\t\t $result = mcrypt_generic($cipher, $buffer);\n\t\t mcrypt_generic_deinit($cipher);\n\t\treturn base64_encode($result);\n\t}", "title": "" }, { "docid": "69b10bcea2df6c6bc026bed6223089c0", "score": "0.5834616", "text": "public function encrypt($message){\n\n $ivsize = openssl_cipher_iv_length(self::METHOD);\n $iv = openssl_random_pseudo_bytes($ivsize);\n //$iv = \"+\u000bÁ@4–`\u0007À\u001bàãS\u0017º§\";//hard coded the vector to see how it behaves\n\n // print($iv);\n // echo '<br/>';\n\n $ciphertext = openssl_encrypt($message,self::METHOD,$this->key,OPENSSL_RAW_DATA,$iv);\n $encrypted_data = base64_encode($iv.$ciphertext);\n //add a MAC to this function\n $encrypted_data_hash = hash_hmac(\"sha256\", $encrypted_data,$this->hashkey);\n\n //return $iv.$ciphertext;\n return $encrypted_data_hash.$encrypted_data;\n\n }", "title": "" }, { "docid": "82394d96cb56c823810ca5498eb46694", "score": "0.5834492", "text": "public function encrypt($plain_string) \n { \n return base64_encode(mcrypt_generic($this->_crypto, $plain_string)); \n }", "title": "" }, { "docid": "14d5de266c1023acbbb7832b211d4a1d", "score": "0.58242077", "text": "function my_decrypt($data, $key) {\n $encryption_key = base64_decode($key);\n // To decrypt, split the encrypted data from our IV - our unique separator used was \"::\"\n list($encrypted_data, $iv) = explode('::', base64_decode($data), 2);\n return openssl_decrypt($encrypted_data, 'aes-128-cbc', $encryption_key, 0, $iv);\n }", "title": "" }, { "docid": "dbe088536eed8ae579a857a2093a38aa", "score": "0.58098614", "text": "function encrypt($string, $key) {\r\n\r\n\t\t$string = rtrim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $string, MCRYPT_MODE_ECB)));\r\n\t\treturn $string;\r\n\t}", "title": "" }, { "docid": "c067fabe5571120d4f47d6966a33ef4d", "score": "0.580798", "text": "function encrypt_string($value, $key) {\r\n\tif (woo2m_is_base64($key)) {\r\n\t\t$encryption_key = base64_decode($key);\r\n\t} else {\r\n\t\t$encryption_key = $key;\r\n\t}\r\n\t$iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length('aes-256-cbc'));\r\n\t$encrypted = openssl_encrypt($value, 'aes-256-cbc', $encryption_key, 0, $iv);\r\n\t$result = str_replace(array('+','/','='),array('-','_',''),base64_encode($encrypted . '::' . $iv));\r\n\treturn $result;\r\n}", "title": "" }, { "docid": "412ffa2dddf6024b61b61c34f69134ab", "score": "0.58041066", "text": "function _get_cipher()\n\t{\n\t\tif ($this->_mcrypt_cipher == '')\n\t\t{\n\t\t\t$this->_mcrypt_cipher = MCRYPT_RIJNDAEL_256;\n\t\t}\n\n\t\treturn $this->_mcrypt_cipher;\n\t}", "title": "" }, { "docid": "fc841c2d0c67adbc080800b69c07f850", "score": "0.57983166", "text": "function decrypt($encrypted)\n{\n function decrypt_v1($encrypted)\n {\n\n // Return empty if $encrypted is not set or empty.\n if (! isset($encrypted) || empty($encrypted)) {\n return '';\n }\n\n // Cipher method to AES with 256-bit key\n $cipher = strtolower(CIPHER_METHOD);\n\n if ($cipher == 'aes-256-gcm') {\n list($version, $ciphertext, $iv, $tag, $salt_key) = explode('::', $encrypted);\n $ciphertext = base64_decode($ciphertext);\n $iv = base64_decode($iv);\n $tag = base64_decode($tag);\n $salt_key = base64_decode($salt_key);\n\n // Derive encryption key\n $key = hash_pbkdf2('sha256', PASS_PHRASE, $salt_key, 10000);\n\n $plaintext = openssl_decrypt($ciphertext, $cipher, $key, $options=0, $iv, $tag);\n\n // GCM authentication\n if ($plaintext !== false) {\n return $plaintext;\n } else {\n exit('<strong>Warning: </strong>Please verify authenticity of ciphertext.');\n }\n } else {\n list($version, $ciphertext, $hash, $iv, $salt_key, $salt_hmac) = explode('::', $encrypted);\n $ciphertext = base64_decode($ciphertext);\n $hash = base64_decode($hash);\n $iv = base64_decode($iv);\n $salt_key = base64_decode($salt_key);\n $salt_hmac = base64_decode($salt_hmac);\n\n // Derive encryption key\n $key = hash_pbkdf2('sha256', PASS_PHRASE, $salt_key, 10000);\n // Derive HMAC key\n $key_hmac = hash_pbkdf2('sha256', PASS_PHRASE, $salt_hmac, 10000);\n\n $digest = hash_hmac('sha256', $ciphertext, $key_hmac);\n\n // HMAC authentication\n if (hash_equals($hash, $digest)) {\n return openssl_decrypt($ciphertext, $cipher, $key, $options=0, $iv);\n } else {\n exit('<strong>Warning: </strong>Please verify authenticity of ciphertext.');\n }\n }\n }\n\n $version = explode('::', $encrypted)[0];\n\n /** Version-based Decryption */\n // Return $encrypted if no encryption detected.\n switch ($version) {\n case 'enc-v1':\n return decrypt_v1($encrypted);\n break;\n default:\n return $encrypted;\n }\n}", "title": "" }, { "docid": "cfda3b5b58676d2c56290d730f135614", "score": "0.5793306", "text": "function encrypt ( $data, $CRYPT_ENCODER = null, $CRYPT_DECODER = null, $CRYPT_KEY = null, $CRYPT_CIPHER = null, $CRYPT_MODE = null, $CRYPT_SOURCE = null ) {\r\n\t\tif ( !$CRYPT_ENCODER )\r\n\t\t\t$CRYPT_ENCODER = CRYPT_ENCODER;\r\n\t\tif ( !$CRYPT_DECODER )\r\n\t\t\t$CRYPT_DECODER = CRYPT_DECODER;\r\n\t\tif ( !$CRYPT_KEY )\r\n\t\t\t$CRYPT_KEY = CRYPT_KEY;\r\n\t\tif ( !$CRYPT_CIPHER )\r\n\t\t\t$CRYPT_CIPHER = CRYPT_CIPHER;\r\n\t\tif ( !$CRYPT_MODE )\r\n\t\t\t$CRYPT_MODE = CRYPT_MODE;\r\n\t\tif ( !$CRYPT_SOURCE )\r\n\t\t\t$CRYPT_SOURCE = CRYPT_SOURCE;\r\n\t\t\r\n\t\t$key = call_user_func($CRYPT_DECODER, $CRYPT_KEY);\r\n\t\t\r\n\t\t$size = mcrypt_get_iv_size($CRYPT_CIPHER, $CRYPT_MODE);\r\n\t\t$iv = mcrypt_create_iv($size, $CRYPT_SOURCE);\r\n\t\t\r\n\t\t$result = mcrypt_encrypt($CRYPT_CIPHER, $key, $data, $CRYPT_MODE, $iv);\r\n\t\t\r\n\t\t$result = call_user_func($CRYPT_ENCODER, $result);\r\n\t\t\r\n\t\treturn $result;\r\n\t}", "title": "" }, { "docid": "f4f52ca25e1fd75882286f80bfbe4b5f", "score": "0.57914555", "text": "public function testMessage()\r\n {\r\n $message = 'mL84hPpR+nmb2UuWDnhiXnpMDxzQT0NMPXT.dY.*?ImTrO86Dt';\r\n\r\n //generate two keys\r\n $privateKey = new PrivateKey(PrivateKey::generate());\r\n $publicKey = new PublicKey($privateKey->exportPublicKey());\r\n\r\n //check if the private key has been loaded correctly\r\n $this->assertTrue($privateKey->isLoaded());\r\n\r\n //perform the encryption and decryption\r\n $encrytpion_result = Cryptography::encrypt($privateKey, $message);\r\n $decryption_result = Cryptography::decrypt($publicKey, $encrytpion_result);\r\n\r\n //test the return value\r\n $this->assertEquals($message, $decryption_result);\r\n }", "title": "" }, { "docid": "20819b13ee10b8b0b4918c250886a102", "score": "0.57893175", "text": "public function testSameOutputForSameInput()\n {\n $firstTry = UriGeller::encode($this->decoded, $this->secret);\n $secondTry = UriGeller::encode($this->decoded, $this->secret);\n $this->assertEquals($firstTry, $secondTry);\n }", "title": "" }, { "docid": "85a0aba0ffa35d057f9c52e2aaa26986", "score": "0.5786717", "text": "function decrypt($value, $key = 0) \n{\n\tglobal $setting;\n\t\n\tif ($anahtar == 0)\n\t\t$key = $setting['crypto_key'];\n\t\n\t$result = '';\n\t$value = base64_decode($value);\n\tfor($i=0; $i<strlen($value); $i++) {\n \t$char \t\t= substr($value, $i, 1);\n \t$key_char \t= substr($key, ($i % strlen($key))-1, 1);\n \t$char\t\t\t= chr(ord($char)-ord($key_char));\n \t$result .= $char;\n\t}\n\t// dencypted value\n\treturn $result; \n}", "title": "" }, { "docid": "a0ed0faad5510eb17c11fc906f92ca3b", "score": "0.5786616", "text": "function getFixedIv8Byte()\r\n{\r\n return \"\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\";}", "title": "" } ]
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "5b5f3697ab0b5b141cb8d1e4c4d65d6f", "score": "0.0", "text": "public function edit($id)\n {\n return View::make('admin.careersfair.edit')\n ->with('stand', CareersFairStand::findOrFail($id));\n }", "title": "" } ]
[ { "docid": "a6688716096de732ac676d2606652404", "score": "0.7856558", "text": "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', ['resource' => $resource]);\n }", "title": "" }, { "docid": "5781a2d120285a71e7e85b5a66be6d25", "score": "0.7830662", "text": "public function edit(Resource $resource)\n {\n return view('resources.edit')->with('resource', $resource);\n }", "title": "" }, { "docid": "aa97beee62e2049b01f82b2c70781d18", "score": "0.7470908", "text": "public function edit(Resource $resource)\n {\n if (session()->has('index-referer-url')) {\n session()->keep('index-referer-url');\n }\n\n return view('resources.edit')->with('resource', $resource);\n }", "title": "" }, { "docid": "06fbfb28b57b10ad3e552f17914cc366", "score": "0.7398984", "text": "public function edit(Request $request, $resource)\n { \n return view($this->editView)\n ->withForm($this->form()->setModel($resource))\n ->withName($this->name())\n ->withTitle($this->title())\n ->withActions($this->getActions())\n ->withRouteParameters(\n (array) $this->routeParameters('create', $resource)\n );\n }", "title": "" }, { "docid": "04c9b7d4ef866f36e89d6540166ef493", "score": "0.72184443", "text": "public function edit($resource, $action)\n {\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n abort(404, 'There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n }\n\n return view('resource-edit', [\n 'pageTitle' => 'Edit ' . ucwords($resource) . ' ' . ucwords($action) . ' Settings | TEvo Harvester',\n 'harvest' => $harvest,\n ]);\n }", "title": "" }, { "docid": "58505837b719ae51ea23d0844976dedc", "score": "0.71861386", "text": "public function editButton()\n {\n $entity = $this->entity;\n $resource = $this->entity->getResourceName();\n\n return new HtmlString(\n view(\n 'layouts.dashboard.presenters.resource.edit',\n compact('entity', 'resource')\n )->render()\n );\n }", "title": "" }, { "docid": "fd7d6fa05564d94ddfe2439eb1a68e36", "score": "0.7140102", "text": "public function edit($id)\r\n {\r\n $obj = $this->model->getObject($id);\r\n $formView = parent::getFormView(array($id));\r\n $formView->setPost($obj); \r\n $formView->show(); \r\n }", "title": "" }, { "docid": "b0265d02f79c0a87495c917bcb066d03", "score": "0.7116956", "text": "public function showeditAction()\r\n {\r\n $this->render('edit');\r\n }", "title": "" }, { "docid": "77b52a1680fa491d92522682bb1dab03", "score": "0.7105944", "text": "public function edit($id)\n {\n $resource = Resource::find($id);\n\n return view('resource.edit', compact('resource'));\n }", "title": "" }, { "docid": "dc519a1d109593cfac33c1ecb77b69d6", "score": "0.70873076", "text": "public function edit($id)\n {\n $resource = Resource::findorfail($id);\n return view('resources.edit', ['resource'=>$resource]);\n }", "title": "" }, { "docid": "0181f4ab3b675f1e32e7436eec8db0b2", "score": "0.7083681", "text": "public function edit()\n {\n return view('management::edit');\n }", "title": "" }, { "docid": "839bff7657627eb0e9f3c735e392600c", "score": "0.7049019", "text": "public function editAction(){\n // Current PO to show.\n $currentSupplier = $this->request->getQuery('supplier', 'int');\n // Pass the general parameters to the view.\n $this->view->setVar('title', 'Supplier #' . $currentSupplier);\n $this->view->setVar('subtitle', 'dat dat dat');\n // @todo::: Define controls.\n $this->view->setVar('show_submit', TRUE);\n $this->view->setVar('submit_text', 'Submit');\n $this->view->setVar('show_cancel', TRUE);\n $this->view->setVar('cancel_text', \"Cancel\");\n $this->view->setVar('main_form_id', '');\n $this->view->setVar('exit_to', $this->url->getBaseUri() . 'po/search');\n }", "title": "" }, { "docid": "23425e32ade1f142faf8d64875349c14", "score": "0.7039342", "text": "function edit( $resource ){\n\n $order = get( 'orders', $resource );\n\n return view( 'admin/order/add_order', compact( 'order' ) );\n}", "title": "" }, { "docid": "eb85fc5f08fd4d7f2735a44b666998b1", "score": "0.7027145", "text": "public function renderEditForm()\n {\n // Take id from $_GET, fetch record, pass on record as $vars in array\n if (isset($_GET['book_id']) && (int)$_GET['book_id'] > 0 && !is_null(BookModel::get($_GET['book_id']))) {\n $book = BookModel::get($_GET['book_id']);\n return View::render(\n 'edit-book',\n [\n 'book' => $book\n ]\n );\n }\n }", "title": "" }, { "docid": "6102774974292f3760289857daf62d5e", "score": "0.6999957", "text": "public function editAction($id)\n {\n $entity = $this->findOr404($this->repository,array('id'=>$id));\n\n\n $editForm = $this->createForm($this->form, $entity);\n\n return $this->render($this->path_template.':edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'route_prefix' => $this->route_prefix\n ));\n }", "title": "" }, { "docid": "9fa88f8a8c6146d7915873c2976a0c19", "score": "0.6978198", "text": "public function edit(Resform $resform)\n {\n //\n }", "title": "" }, { "docid": "38b4c2bcc5d6f933f82442e502068ae3", "score": "0.6945275", "text": "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "title": "" }, { "docid": "38b4c2bcc5d6f933f82442e502068ae3", "score": "0.6945275", "text": "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "title": "" }, { "docid": "5528e9d735a1d9a4a8c37629a76211ee", "score": "0.6944128", "text": "public function show_editform() {\n $this->item_form->display();\n }", "title": "" }, { "docid": "14ceb6f06e6f144fe7b54f8bae8bbe21", "score": "0.6914022", "text": "public function edit()\n {\n return view('superadmin::edit');\n }", "title": "" }, { "docid": "901ccd53ce97c5a7d1966359f57043a4", "score": "0.69117606", "text": "public function edit()\n {\n return view('inpatient::edit');\n }", "title": "" }, { "docid": "901ccd53ce97c5a7d1966359f57043a4", "score": "0.69117606", "text": "public function edit()\n {\n return view('inpatient::edit');\n }", "title": "" }, { "docid": "f60e724dc93ad65b7bd2e7142b16eabc", "score": "0.68976134", "text": "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "title": "" }, { "docid": "9197e5f6646ab8a602e1ff00b9e41fb5", "score": "0.68819606", "text": "public function edit() {\n\t\tglobal $tpl;\n\n\t\t$this->initForm(\"edit\");\n\t\t$this->getValues();\n\n\t\t$tpl->setContent($this->form->getHTML());\n\t}", "title": "" }, { "docid": "be7762755fcfeef213c7106eb19a722a", "score": "0.68687415", "text": "public function edit()\n {\n return view('frontend::edit');\n }", "title": "" }, { "docid": "51a9f359ceb6df3625a9742305229a9b", "score": "0.6864925", "text": "public function action_edit()\n {\n if (!empty($this->m_partial)) {\n $this->partial($this->m_partial);\n\n return;\n }\n\n $node = $this->m_node;\n\n $record = $this->getRecord();\n\n if ($record === null) {\n $location = $node->feedbackUrl('edit', self::ACTION_FAILED, $record);\n $node->redirect($location);\n }\n\n // allowed to edit record?\n if (!$this->allowed($record)) {\n $this->renderAccessDeniedPage();\n\n return;\n }\n\n $record = $this->mergeWithPostvars($record);\n\n $this->notify('edit', $record);\n $res = $this->invoke('editPage', $record);\n\n $page = $this->getPage();\n $page->addContent($node->renderActionPage('edit', $res));\n }", "title": "" }, { "docid": "f4908ef32054735fdce9f1476c5fed8c", "score": "0.6861221", "text": "public function edit()\n {\n return view('hethong::edit');\n }", "title": "" }, { "docid": "cb9340a304c83c3a9a371e60993460e3", "score": "0.6859833", "text": "public function edit()\n {\n $data['individual'] = $this->getIndividualSeminar();\n $this->load->view('Dashboard/header');\n $this->load->view('Seminar/edit', $data);\n $this->load->view('Dashboard/footer');\n }", "title": "" }, { "docid": "8848eef52013ec9c31efa5d9e1d9581d", "score": "0.6849593", "text": "public function edit()\n {\n //\n return view('editProfessor');\n }", "title": "" }, { "docid": "326743aa2b21211a1afd860fcd859372", "score": "0.6813494", "text": "public function edit($id)\n\t{ \n\t\treturn $this->respondTo(\n\t\t\tarray('html'=> function()\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t $this->layout->nest('content', $this->view, ['user' => $this->resource]);\n\t\t\t\t \t\t\t},\n\t\t\t\t 'js' => function()\n\t\t\t\t \t\t {\n\t\t\t\t \t\t \t $form = View::make($this->form, array('user' => $this->resource))->render(); \n\t\t\t\t \t\t \t return View::make('admin.shared.modal', array('body' => $form))->render();\n\t\t\t\t \t\t }\n\t\t\t\t )\n\t\t);\n\t}", "title": "" }, { "docid": "a66e6ee3bd0d4fa614c8f657ecc1c30e", "score": "0.68047357", "text": "public function edit(Form $form)\n {\n //\n }", "title": "" }, { "docid": "926dd112a4ef916660ebcc2f8108ad0c", "score": "0.6804118", "text": "public function edit($id)\n {\n $page = Page::find($id);\n $pageTitle = trans(config('dashboard.trans_file').'edit');\n $submitFormRoute = route('pages.update', $id);\n $submitFormMethod = 'put';\n return view(config('dashboard.resource_folder').$this->controllerResource.'form', compact('page', 'pageTitle', 'submitFormRoute', 'submitFormMethod'));\n }", "title": "" }, { "docid": "b2548057b424e6a5cacb6db19ee658ae", "score": "0.68022823", "text": "public function edit()\n {\n return view('api::edit');\n }", "title": "" }, { "docid": "e3fad094d4252fd72e2502d403dfc367", "score": "0.67960227", "text": "public function edit()\n {\n return view('product::edit');\n }", "title": "" }, { "docid": "56ed8b2cfb426d64dc8a271149d4a6c5", "score": "0.67934597", "text": "public function edit($id)\n\t{\n\t\t$signatures = Signature::get();\n\t\t$teachers = Teacher::get();\n\t\t$resource = Resource::findOrFail($id);\n\n\t\treturn view('resource.edit', compact('resource', 'signatures', 'teachers'));\n\n\t}", "title": "" }, { "docid": "231882e93a58215aa3b11a974a66292d", "score": "0.6791791", "text": "public function edit()\n {\n return view('admin::edit');\n }", "title": "" }, { "docid": "231882e93a58215aa3b11a974a66292d", "score": "0.6791791", "text": "public function edit()\n {\n return view('admin::edit');\n }", "title": "" }, { "docid": "9ef91ee9f6a8dcb15ea27096aa56e4fb", "score": "0.67820024", "text": "public function edit($id)\n\t{\n\t\t//\n\t\t$product = Product::find($id);\n\n\t\t// show the edit form and pass the nerd\n\t\treturn View::make('admin.product.edit')\n\t\t\t->with('product', $product);\n\t}", "title": "" }, { "docid": "2761e36b6aa51ebff28c1747bd1a9924", "score": "0.67802674", "text": "public function edit()\n {\n return view('datamemory::edit');\n }", "title": "" }, { "docid": "deba4f5487a02e79ef9e2e2bfde73c6a", "score": "0.6779438", "text": "public function edit($id)\n {\n $this->isEditing = true;\n $this->patient = Patient::find($id);\n $this->user = $this->patient->user;\n return $this->cView(\"form\");\n }", "title": "" }, { "docid": "95eb405d84481bce79c5b504d5687466", "score": "0.67751205", "text": "public function edit()\n {\n return view('tendermaster::edit');\n }", "title": "" }, { "docid": "76e1df6d2666fcc9e5012bf26b397bee", "score": "0.6772748", "text": "public function formEditar($id) {\n $product = Product::find($id);\n\n /*### SE NÃO LOCALIZAR, ABORTA ###*/\n if(!$product) {\n\n abort(404);\n }\n /*### SE NÃO LOCALIZAR, ABORTA ###*/\n\n //ABRE A VIEW DE EDIÇÃO\n return view('products.edit', compact('product'));\n\n }", "title": "" }, { "docid": "ec74296c4873a04773215f9df3ec56e8", "score": "0.6763203", "text": "public function edit()\n {\n return view('product::edit');\n }", "title": "" }, { "docid": "ac23622c3fc5df8461dba597a28f8bcb", "score": "0.6760426", "text": "public function edit()\n {\n $product = Product::findBy('id', $_GET['id']);\n\n return view('admin/product/edit', compact('product'));\n }", "title": "" }, { "docid": "1c2a145885cc53fe0f501d19a56a5bc0", "score": "0.67547786", "text": "public function edit($id) {\n\t\t$this->authorize('update', $this->repo->model());\n\t\tif ($this->request->ajax()) {\n\t\t\t$model = $this->repo->findOrFail($id);\n\t\t\treturn view($this->view . 'form', compact('model'));\n\t\t} else {\n\t\t\treturn abort(404);\n\t\t}\n\t}", "title": "" }, { "docid": "af1ae147b46a5dbc0c8b9ec58527eeb0", "score": "0.67458534", "text": "public function edit()\n {\n return view('catalog::edit');\n }", "title": "" }, { "docid": "057b48bb7cf2107466c426e2c9e428fe", "score": "0.67443407", "text": "public function edit(form $form)\n {\n //\n }", "title": "" }, { "docid": "f45c32e1819279bea701d7e847e50be1", "score": "0.673551", "text": "public function edit($id) //Mostra o formulário de Editar \n {\n return \"Formulário para Editar Cliente com ID \" .$id;\n }", "title": "" }, { "docid": "13b220d1119b9c3b276a10c0422ad486", "score": "0.67310643", "text": "public function editAction($id);", "title": "" }, { "docid": "58c30f85a70f88f1e9b28e838f77705f", "score": "0.67289406", "text": "public function edit($id){\n $product = Product::find($id);\n \n //load form view\n return view('product.edit', ['product' => $product]);\n }", "title": "" }, { "docid": "58c30f85a70f88f1e9b28e838f77705f", "score": "0.67289406", "text": "public function edit($id){\n $product = Product::find($id);\n \n //load form view\n return view('product.edit', ['product' => $product]);\n }", "title": "" }, { "docid": "0db52b14d5721483125f9c0f73da2a71", "score": "0.6722934", "text": "public function editAction()\n {\n $personCatalog = PersonCatalog::getInstance();\n $idPerson = $this->getRequest()->getParam('idPerson');\n $person = $personCatalog->getById($idPerson);\n $post = array(\n 'id_person' => $person->getIdPerson(),\n 'name' => $person->getName(),\n 'middle_name' => $person->getMiddleName(),\n 'last_name' => $person->getLastName(),\n 'birthdate' => $person->getBirthdate(),\n 'ssn' => $person->getSsn(),\n 'genre' => $person->getGenre(),\n 'marital_status' => $person->getMaritalStatus(),\n 'curp' => $person->getCurp(),\n 'nationality' => $person->getNationality(),\n 'id_fiscal_entity' => $person->getIdFiscalEntity(),\n );\n $this->view->post = $post;\n $this->setTitle('Edit Person');\n }", "title": "" }, { "docid": "36e81b336316946d6eebd6bc3678ef52", "score": "0.67227334", "text": "public function edit($id)\r\n {\r\n return view('superadmin::edit');\r\n }", "title": "" }, { "docid": "b75fe06b66440ec2bc0b1975839b9db3", "score": "0.6722275", "text": "public function edit($id)\n {\n $item = $this->model::findOrFail($id);\n\n SEO::setTitle('Edit ' . title_case($this->singular) . ': ' . $item->label);\n SEO::setDescription('Edit ' . title_case($this->singular) . ': ' . $item->label);\n\n $fields = $this->getFieldsFromRules(new $this->formRequest);\n\n $viewPrefix = request()->is('admin*') ? 'admin.' : '';\n\n return view(\n $viewPrefix.'crud.edit',\n [\n 'item' => $item,\n 'model' => $this->model,\n 'slug' => $this->slug,\n 'fields' => $fields,\n ]\n );\n }", "title": "" }, { "docid": "3edbba277d97d5405287bfc7a96bbf56", "score": "0.6716605", "text": "public function edit($id)\n {\n $form = Form::find($id);\n return view('forms.edit', compact('form', 'id'));\n }", "title": "" }, { "docid": "51f89c5d5d1bd15cea7d45cabafe8e6f", "score": "0.6708793", "text": "public function edit()\n\t{\n\t\t$this->view->assignmentOptions = $this->getAssignmentOptions();\n\t\t$this->view->roles = $this->getRoles();\n\t\t$this->view->gender = $this->getGender();\n\t\t$this->view->areas = PresenterFactory::getInstance('Reports')->getArea(true);\n\t\treturn $this->view('edit');\n\t}", "title": "" }, { "docid": "b79b901144374465ebd3d31441a9b2e5", "score": "0.67067266", "text": "public function edit(Entity $entity)\n {\n return $this->form($entity);\n }", "title": "" }, { "docid": "b06d58ea5570ba05f85ba7ffb36e67e7", "score": "0.6695534", "text": "public function edit($id)\n {\n return $this->view('edit');\n }", "title": "" }, { "docid": "6431a5588c915992cb19d3e7612bc296", "score": "0.66943496", "text": "public function edit($id)\n {\n $form = Forms::findOrFail($id);\n\n return view('formbuilder::admin.forms.edit', compact('form'));\n }", "title": "" }, { "docid": "2ec8c313c533a6f5842b628922d6a1a0", "score": "0.6692071", "text": "public function edit()\n {\n $company = Company::first();\n return view(config('laravel-company-module.views.company.edit'), compact('company'));\n }", "title": "" }, { "docid": "f14d9738fc54a55b925b94b3252a0061", "score": "0.66892755", "text": "public function edit($id)\n {\n $this->crud->hasAccessOrFail('update');\n\n $this->data['entry'] = $this->crud->getEntry($id);\n\n\n $this->data['crud'] = $this->crud;\n $this->data['saveAction'] = $this->getSaveAction();\n $this->data['fields'] = $this->crud->getUpdateFields($id);\n $this->data['title'] = trans('base::crud.edit').' '.$this->crud->entity_name;\n $this->data['id'] = $id;\n\n return view($this->crud->getEditView(), $this->data);\n }", "title": "" }, { "docid": "b459e42451a6fb5dac4372c9f2cf88a1", "score": "0.6682118", "text": "public function edit (Request $request)\n {\n $model = $this->resource->model();\n $this->authorize('update', $model);\n\n $form = $this->getForm($request, $model);\n\n return $this->render('edit', compact('model', 'form'), $request);\n }", "title": "" }, { "docid": "1deb6920d550e3550137d6f49a6d7aeb", "score": "0.6681447", "text": "public function edit($id)\n {\n $model = Suplier::find($id);\n return view('backend.suplier.form',['model'=>$model,'update'=>1]);\n }", "title": "" }, { "docid": "8811651512fbad624a5342b1c61e6ef3", "score": "0.66781336", "text": "public function edit($id)\n {\n $model = Supplier::findOrFail($id);\n return view('admin.supplier.form', compact('model'));\n }", "title": "" }, { "docid": "d58aeddc51a32d8c85adcbf8fc206a39", "score": "0.66662043", "text": "public function editAction($id)\n {\n $this->initializeScaffolding();\n\n $this->beforeRead();\n $this->view->record = $this->scaffolding->doRead($id);\n $this->afterRead();\n\n $this->beforeEdit();\n $this->view->form = $this->scaffolding->getForm($this->view->record);\n $this->afterEdit();\n }", "title": "" }, { "docid": "98c3057a696eb14943e7e5fea5851c0b", "score": "0.6665287", "text": "public function edit($id)\n {\n return $this->showForm($id);\n }", "title": "" }, { "docid": "58fa8a98152b59c2e07c439335e492b4", "score": "0.6664993", "text": "public function edit($id)\n {\n return view('web::edit');\n }", "title": "" }, { "docid": "6f15f8f92121a2bdd5d391d8e067cce6", "score": "0.66632175", "text": "public function edit($id)\n {\n \t$emp = Employee::find($id);\n \t \n \t// show the view and pass the nerd to it\n \treturn View::make('adminlte::employee.edit')\n \t->with('employee', $emp);\n }", "title": "" }, { "docid": "52e52cdfc2de427528e31ab0f3380503", "score": "0.6662528", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('NumaDOADMSBundle:ListingForm')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find ListingForm entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('NumaDOADMSBundle:ListingForm:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "ade3e60125d3b02b74b68797e30c99f4", "score": "0.66524", "text": "public function edit($id)\n {\n $this->data['product'] = Product::findOrFail($id);\n $this->data['category'] = Category::arrForCategory();\n $this->data['mode'] = 'edit';\n\n return view('products.form', $this->data);\n }", "title": "" }, { "docid": "2144bb95c09393c12341bf4eb0e5d9e7", "score": "0.6651021", "text": "public function showEditForm($id){\n $post = $this->repo->byId($id);\n return view('create', [\n 'mode' => 'edit',\n 'published_at' => $post->published_at,\n 'is_published' =>$post->is_published,\n 'title' => $post->title,\n 'url' => $post->url,\n 'contents' => $post->contents,\n 'id' => $post->id\n ]);\n }", "title": "" }, { "docid": "23fa969743853cefd4974f048eebf67a", "score": "0.6641383", "text": "public function edit()\r\n {\r\n return view('user::edit');\r\n }", "title": "" }, { "docid": "6be4074acb7130903012aff787adc368", "score": "0.6633557", "text": "public function edit($id)\n {\n $model = User::find($id);\n return view('master.admin.form', ['model'=>$model, 'update'=>true]);\n }", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.6627662", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.6627662", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.6627662", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.6627662", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.6627662", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "6f1a413f5dd5aee349bb9b9db12fa70b", "score": "0.66263634", "text": "public function edit($id) { }", "title": "" }, { "docid": "7ea6d483a420134aa1b6a3947a002693", "score": "0.66259205", "text": "public function edit($id)\n {\n //\n return \"Se muestra formulario para editar Fabricante con id: $id\";\n }", "title": "" }, { "docid": "f39b9490d89d766f2a0fd47a32dc248b", "score": "0.6623563", "text": "public function edit($id)\n {\n return view(\"user_form\");\n }", "title": "" }, { "docid": "860b8d42962dd4f1751317b806b97d66", "score": "0.6615332", "text": "public function edit()\n {\n return view('reception::edit');\n }", "title": "" }, { "docid": "0fa42022ec77f2736c200c4b84f79316", "score": "0.6614158", "text": "public function edit($id)\n {\n $data = Merek::find($id);\n $data->page_title = 'Merek Edit';\n $data->h1 = 'Edit';\n $data->form_action = route('admin.merek.update');\n $data->page_type = 'edit';\n $data->button = 'Simpan';\n\n return view('backend.merek.form', [\n 'data' => $data,\n ]);\n }", "title": "" }, { "docid": "c8e6574baa7c09ee6dbb6a57608c40ce", "score": "0.66117525", "text": "public function editResourceAction($id, Request $request)\n {\n $resource = $this->getDoctrine()->getManager()\n ->getRepository('WBQbankBundle:Resources')\n ->find($id);\n\n if (!$resource) {\n throw $this->createNotFoundException(\n 'No resource found'\n );\n }\n\n // form\n $form = $this->createForm(new ResourcesType(), $resource);\n\n $form->handleRequest($request);\n\n if ($form->isSubmitted()) {\n\n $dir = $this->container->getParameter('resources-upload-path');\n $file = $resource->getFilename();\n \n //to keep the existing uploaded file location\n $filename_=$request->get('filename_');\n \n if (is_object($file)) {\n $resource->setFilesize($file->getSize());\n $filename = time() . $file->getClientOriginalName();\n $file->move($dir, $filename);\n $location = $dir . $filename;\n $resource->setFilename($location);\n }\n else if (trim($filename_)!=\"\"){\n $resource->setFilename($filename_);\n }\n\n $em = $this->getDoctrine()->getManager();\n\n $em->flush();\n\n return $this->redirect($this->generateUrl('resources'));\n }\n\n return $this->render('WBQbankBundle:Resources:editResource.html.twig', array(\n 'form' => $form->createView(),\n 'resourceId' => $id,\n 'active_button' => ActiveButtons::AdminResources\n ));\n }", "title": "" }, { "docid": "38e6dad01dfe51fa6f95805601cc8137", "score": "0.66082525", "text": "public function edit()\n\t{\n\t\tCRequest::setVar('view', $this->view_item);\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "a365c8fa77e729113252274bcd88baf6", "score": "0.66065085", "text": "public function edit($id)\n {\n $entity = Entity::findOrFail($id);\n\n if(Auth::user()->id != $entity->user_id){\n return view('error')->withErrors(['You don\\'t have permissions to access this resource.']);\n }\n\n return view('entities.edit', compact('entity'))->with('create', 0);\n }", "title": "" }, { "docid": "b3434b39a7041adf18b694988ccedbea", "score": "0.6604625", "text": "public function edit($id)\n\t{\n return View::make('cardapios.edit');\n\t}", "title": "" }, { "docid": "584d7649153a0da9f2d2848a6fd168fd", "score": "0.66026986", "text": "public function editAction()\n {\n $varName = $this->view->singularize($this->_helper->db->getDefaultModelName());\n\n $record = $this->_helper->db->findById();\n\n if ($this->_autoCsrfProtection) {\n $csrf = new Omeka_Form_SessionCsrf;\n $this->view->csrf = $csrf;\n }\n\n if ($this->getRequest()->isPost()) {\n if ($this->_autoCsrfProtection && !$csrf->isValid($_POST)) {\n $this->_helper->_flashMessenger(__('There was an error on the form. Please try again.'), 'error');\n $this->view->$varName = $record;\n return;\n }\n $record->setPostData($_POST);\n if ($record->save(false)) {\n $successMessage = $this->_getEditSuccessMessage($record);\n if ($successMessage != '') {\n $this->_helper->flashMessenger($successMessage, 'success');\n }\n $this->_redirectAfterEdit($record);\n } else {\n $this->_helper->flashMessenger($record->getErrors());\n }\n }\n\n $this->view->$varName = $record;\n }", "title": "" }, { "docid": "bb3d25c21124beddc757800cf8683cb4", "score": "0.66015565", "text": "public function edit(){\n\t\t//$this->common_data();\n\t\t$this->location = \"plataformas\";\n\t\t$this->plataforma = new plataforma($this->get('id'));\n\t\t$this->plataforma->read(\"id,nombre,empresa\");\n\t\t$this->include_theme(\"index\",\"edit\");\n\t}", "title": "" }, { "docid": "672a8990802aca7ec3bf156a475b97ab", "score": "0.6599844", "text": "public function edit($id)\n {\n // get the nerd\n $employee = employee::find($id);\n\n // show the edit form and pass the nerd\n return View::make('employees.edit')\n ->with('employee', $employee);\n }", "title": "" }, { "docid": "033e1e454bf02fa56620accb31e8cb8d", "score": "0.6599284", "text": "public function edit(Record $record)\n {\n return view('records.update', compact('record'));\n }", "title": "" }, { "docid": "2b5fb043a3c87778cf2cebbc780df3b7", "score": "0.659838", "text": "public function edit()\n\t{\n\t\tparent::edit();\n\t}", "title": "" }, { "docid": "2f50bec1a38d27b16fac719637b651c4", "score": "0.6595763", "text": "public function editViewAction($id)\n {\n $this->theme->setTitle('Redigera formulär');\n $this->theme->addStylesheet('css/form.css');\n \n $this->db->select()\n ->from('survey')\n ->where(\"id = $id\")\n ->execute();\n \n $survey = $this->db->fetchOne();\n \n $this->views->add('survey/edit', [\n 'title' => \"Redigera formulär\",\n 'survey' => $survey,\n 'id' => $id,\n ]);\n }", "title": "" }, { "docid": "db2529a46c0e35eb3c68886810761fc8", "score": "0.659226", "text": "public function edit($id)\n {\n return view('presensi::edit');\n }", "title": "" }, { "docid": "148f2b795f1a0e6fbe96ee1b1579717f", "score": "0.6588934", "text": "public function edit()\n {\n // return view('api::edit');\n }", "title": "" }, { "docid": "9e260dddc50926c0f371295c6cdff712", "score": "0.6585575", "text": "public function edit($id)\n {\n //\n $record = $this->record->findOrFail($id);\n\n return view('record.edit', ['record'=>$record]);\n }", "title": "" }, { "docid": "3ec00c8d29482613595774462fb85505", "score": "0.6585224", "text": "public function edit($id) {\n $item = Employee::find($id);\n return view('employees/update')->with(['item' => $item]);\n }", "title": "" }, { "docid": "cc0bb0b7f0592d72b552b09d7d5ca4ad", "score": "0.6578249", "text": "public function edit(){\n $id = $_GET['id'];\n $task = $this->taskModel->find($id);\n\n view('admin/edit_task', compact('task'));\n }", "title": "" }, { "docid": "23e944e596556730ad9998873ce62f6e", "score": "0.6574255", "text": "public function edit($id)\n {\n $this->authChecker();\n $item = $this->provider::findOrFail($id);\n $fields = $this->getFields();\n $fields[0]['value'] = $item->name;\n $fields[1]['value'] = $item->size;\n $fields[2]['value'] = $item->restoarea_id;\n\n $parameter = [];\n $parameter[$this->parameter_name] = $id;\n\n return view('general.form', ['setup' => [\n 'inrow'=>true,\n 'title'=>__('crud.edit_item_name', ['item'=>__($this->title), 'name'=>$item->name]),\n 'action_link'=>route($this->webroute_path.'index'),\n 'action_name'=>__('crud.back'),\n 'iscontent'=>true,\n 'isupdate'=>true,\n 'action'=>route($this->webroute_path.'update', $parameter),\n ],\n 'fields'=>$fields, ]);\n }", "title": "" }, { "docid": "b34cb7db16e9ac26b8ba6821e387fff9", "score": "0.6571698", "text": "public function edit($id)\n\t{\n\t\t$this->page_title = 'Edit User';\n\t\t$data = $this->rendarEdit($id);\n\t\treturn view('admin.crud.form',$data);\n\t}", "title": "" }, { "docid": "4bf2fed80355d3a19316f7291f47ee44", "score": "0.65655816", "text": "public function edit($id) \n // : StudentResource\n {\n $student = Student::find($id);\n return view('welcome', ['student' => $student]);\n\n // return new StudentResource($student);\n }", "title": "" } ]
e923086a0cfe5753662b7b0188361f80
Removes a member from the group
[ { "docid": "a853135fa1db9ec93a34afddebbef04c", "score": "0.66393536", "text": "function removeMember($id) {\r\n global $DB, $Controller, $USER;\r\n\r\n if(is_numeric($id)) {\r\n $obj = $Controller->get($id);\r\n }\r\n elseif(is_a($id, 'Base')) {\r\n $obj = $id;\r\n $id = $obj->ID;\r\n }\r\n else {\r\n return false;\r\n }\r\n\r\n if((in_array($this->GroupType, array('vol', 'volpre')) && $id == $USER->ID)\r\n || $this->mayI(EDIT)) {\r\n $this->loadMembers();\r\n if(in_array($id, $this->_MEMBERS) XOR $this->GroupType == 'volpre') {\r\n /*\r\n * Prevent deletion of the last administrator\r\n */\r\n if($this->ID === ADMIN_GROUP && count($this->_MEMBERS) == 1) return false;\r\n\r\n if($this->GroupType == 'volpre') {\r\n $DB->group_members->insert(array('user' => $id, 'group' => $this->ID), false, true, true);\r\n } else {\r\n $DB->group_members->delete(array('user' => $id, 'group' => $this->ID));\r\n }\r\n $this->_MEMBERS = arrayRemove($this->_MEMBERS, $id, true);\r\n Log::write('Removed member \\'' . $obj->Name . '\\' (id=' . $id . ') from group \\'' . $this->Name . '\\' (id=' . $this->ID . ')', 10);\r\n\r\n return true;\r\n } else return false;\r\n } else\r\n return false;\r\n }", "title": "" } ]
[ { "docid": "73dfdc41abbf9a020184410bd27f8ff8", "score": "0.72681457", "text": "public function removeGroupMember($groupName, $uid);", "title": "" }, { "docid": "7003f94019087d83893d5ca1f82f8d6e", "score": "0.7175847", "text": "function actionMemberRemove() {\n\t\t$this->_loadAndCheckTeam();\n\t\t\n\t\tif ($this->memberTeam->checkRights(5) || $GLOBALS['objUser']->checkAccess(19))\n\t\t{\n\t\t\t// can only be removed by team leaders and moderators\n\t\t\t// or if user is administrator\n\t\t\t\n\t\t\t$objEditItem = new MemberTeam();\n\t\t\t$objEditItem->initObjectProperties();\n\t\t\t$objEditItem->team->id = $this->team->id;\n\n\t\t\tif ($memberId = intval($_REQUEST['member'])) {\n\t\t\t\t$objEditItem->member->id = $memberId;\n\t\t\t\t$objEditItem->delete();\n\t\t\t\t\n\t\t\t\techo '<script type=\"text/javascript\">';\n\t\t\t\techo \"$('mbt_\".$objEditItem->member->id.\"').destroy();\";\n\t\t\t\techo '</script>';\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\texit;\n\t}", "title": "" }, { "docid": "0252484f67a094ac262e66042efadf85", "score": "0.7155183", "text": "public function removeFromGroup($group) {\n \t$this->groupMemberOf->detach($group->id);\n }", "title": "" }, { "docid": "1e1dce28e0168fce9c408d90e4feb2ec", "score": "0.71310407", "text": "public function removeMember(ZoneMemberInterface $member);", "title": "" }, { "docid": "d3448c660e017091ee98b753412c75fc", "score": "0.69078296", "text": "public function removeMember($gid,$uid){\n if($this->isGroup($gid)){\n $sql = 'DELETE FROM `'.$this->tableMember.'` WHERE `groupid` = ? \n AND `userid` = ?';\n $params = array($gid,$uid);\n $result = $this->execute($sql,$params);\n if($result>0){\n return true;\n }else{\n return false; \n }\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "131f07efde5fc306e818b8c3e81dd4d0", "score": "0.68993676", "text": "public function srem($key, $member);", "title": "" }, { "docid": "428d1fc51623ed9e02d024dc62456e0b", "score": "0.68796176", "text": "public function remove_member_from_group($member, $group_id)\n {\n $additional = $this->get_member_row_field($member, 'additionalGroups');\n if ($additional != '') {\n $usergroups = explode(',', $additional);\n } else {\n $usergroups = array();\n }\n $usergroups = array_diff($usergroups, array(strval($group_id)));\n $this->connection->query_update('members', array('additionalGroups' => implode(',', $usergroups)), array('ID_MEMBER' => $member));\n }", "title": "" }, { "docid": "6da2d6e80f1ffe6d5c37644bab67bc38", "score": "0.6787063", "text": "public function removeMember(string $email): void;", "title": "" }, { "docid": "b0fd3b86084c587f9558500837d101f0", "score": "0.67683715", "text": "public function deleteMember() {\n\t\t$rs = mq(\"update \" . DB_TBL_MEMBERS . \" set m_active='0' where mid='\" . $this->data['mid'] . \"'\");\n\t\t$_SESSION['_mtype'] = \"W\";\n\t\t$_SESSION['_msg'] = \"deletedmember\";\n\t}", "title": "" }, { "docid": "06ce48f210ef73d5276839e228346a50", "score": "0.67339015", "text": "function remove_member_from_board($data)\n\t{\n\t\t$members = $this->native_session->get('boardmembers')? $this->native_session->get('boardmembers'): array();\n\t\t\n\t\tif(!empty($data['userid']) && !empty($members))\n\t\t{\n\t\t\t# Get the member row key\n\t\t\t$rowId = get_row_from_list($members, 'member_id', $data['userid'], 'key');\n\t\t\t\n\t\t\tif(!empty($rowId) || $rowId == 0) unset($members[$rowId]);\n\t\t\t$this->native_session->set('boardmembers', $members);\n\t\t\t$msg = \"Member has been removed\";\n\t\t}\n\t\telse $msg = \"ERROR: We could not resolve the instruction\";\n\t\t\n\t\treturn $msg;\n\t}", "title": "" }, { "docid": "434c070b652cc39dbdad61b39a7341ba", "score": "0.67333823", "text": "public function removeMember($name, $cmp_id) {\n $mysqli = $this->connect();\n\n $query = \"DELETE FROM members USING members, sheets WHERE members.sheet=sheets.id AND sheets.name=? AND members.campaign=?\";\n $query = $mysqli->real_escape_string($query);\n\n $stmt = $mysqli->stmt_init();\n\n if(!$stmt->prepare($query)) {\n\tprintf(\"Failed to prepare statement!\");\n } else {\n\t$stmt->bind_param('si', $name, $cmp_id);\n\t$stmt->execute();\n }\n\n $stmt->close();\n $mysqli->close();\n }", "title": "" }, { "docid": "b960e29d48d8d32ae4d144673a078885", "score": "0.66620785", "text": "public function destroy(GroupMember $groupMember)\n {\n //\n }", "title": "" }, { "docid": "b0738903d226e8aa5059a43ae3393c11", "score": "0.6657119", "text": "function command_member_membership_delete () {\n global $esc_post;\n \n // Verify permissions\n if (!user_access('member_membership_edit')) {\n error_register('Permission denied: member_membership_edit');\n return 'index.php?q=members';\n }\n\n // Delete membership\n $sql = \"DELETE FROM `membership` WHERE `sid`='$esc_post[sid]'\";\n $res = mysql_query($sql);\n if (!$res) die(mysql_error());\n\n return 'index.php?q=members';\n}", "title": "" }, { "docid": "1b1ace9f4c1867eeb2709f470c127c70", "score": "0.6587821", "text": "public function testRemoveMemberSuccessfully(): void\n {\n if (!$this->createMailchimpListMember($list, $member)) {\n\t\t\tstatic::markTestSkipped('Member cannot be created successfully, test is skipped');\n }\n\n $this->delete($this->getMemberUri($list['list_id'], $member['member_id']));\n\n $this->assertResponseOk();\n self::assertEmpty(\\json_decode($this->response->content(), true));\n }", "title": "" }, { "docid": "938c1563474127a8a0eed5a3a395801d", "score": "0.6562666", "text": "function removeMember(Request $request)\n {\n PlMember::destroy($request->member);\n return redirect('all');\n }", "title": "" }, { "docid": "b49613c7e9261a254d5cf193b686b604", "score": "0.6538434", "text": "public function deleteMember() : bool\n {\n $lootChest = $this->getLootChest();\n\n $player = Server::getInstance()->getOfflinePlayer($this->member);\n if($player instanceof Player)\n {\n if(!is_null($lootChest)) InventoryHelper::transferToInventory($lootChest->getInventory(), $player->getInventory());\n }\n else {\n if(!InventoryQueue::isQueued($this->getMember())) InventoryQueue::add($this->getMember());\n }\n\n\n $id = $this->getId();\n $this->member = null;\n\n /** @var SQLite3Stmt $stmt */\n $stmt = Main::getDb()->prepare(\"UPDATE jails SET jail_member = NULL WHERE jail_id = :jail_id\");\n $stmt->bindParam(\"jail_id\", $id);\n $stmt->execute();\n $stmt->close();\n\n return true;\n }", "title": "" }, { "docid": "34c57909c8233d07ff99535ea0e88065", "score": "0.648837", "text": "public function destroy(Member $member)\n {\n //\n }", "title": "" }, { "docid": "34c57909c8233d07ff99535ea0e88065", "score": "0.648837", "text": "public function destroy(Member $member)\n {\n //\n }", "title": "" }, { "docid": "34c57909c8233d07ff99535ea0e88065", "score": "0.648837", "text": "public function destroy(Member $member)\n {\n //\n }", "title": "" }, { "docid": "b12fdd1c403b1587d0899084c101c1a2", "score": "0.64807117", "text": "public function removeFromGroup($uid,$cn){\n\n\t\tinclude('config.inc');\n\n\t\t// setup our path to the group we are modifying\n\t\t$dn = \"cn=$cn,$GIDBASE\";\n\n\t\t// fetch the member we are removing as an array\n\t\t$member = array(\"memberUid\" => array(\"uid=$uid\"));\n\n\t\t// modify group \n\t\tldap_mod_del($this->connection, $dn, $member);\n\t\t$this->checkErrors();\n\t}", "title": "" }, { "docid": "4d7519826f39fc059aeb1382a2b93125", "score": "0.6444137", "text": "public static function removeMemberInRoom($member_id)\r\n {\r\n $query = \" DELETE FROM room_members\r\n WHERE room_member_id = '{$member_id}'\";\r\n $result = @mysql_query($query) or die('removeMemberInRoom: ' . mysql_error());\r\n return $result;\r\n }", "title": "" }, { "docid": "7dfb33877ea6366d274efa73511efb43", "score": "0.6415378", "text": "public function deleteMemberAsMember(ApiTester $I)\n {\n $id = 2;\n $user_id = 1;\n $I->wantTo('Delete member as a member');\n $I->amAuthenticatedAsUser();\n $I->haveHttpHeader('Content-Type', 'application/json');\n $I->sendDelete($this->endpoint.\"/$id/people/$user_id\");\n $I->seeResponseCodeIs(200);\n }", "title": "" }, { "docid": "e00cc73c2897804b196e21105254bad6", "score": "0.63933897", "text": "public function removeGroup($group_id);", "title": "" }, { "docid": "6cf423be50d19486fe8694275514b76c", "score": "0.6340143", "text": "function bbp_remove_forum_id_from_group($group_id = 0, $forum_id = 0)\n{\n}", "title": "" }, { "docid": "4efb2cb3a541fa6092efe9b7b4ad5bab", "score": "0.6332829", "text": "function bbp_remove_group_id_from_forum($forum_id = 0, $group_id = 0)\n{\n}", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.63274664", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.63274664", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.63274664", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.63274664", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.63274664", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.63274664", "text": "public function remove();", "title": "" }, { "docid": "500e81a42623efe4f292ebe1aa144022", "score": "0.6326309", "text": "public function removeAllMemberFromGroup($gid){\n if($this->isGroup($gid)){\n $sql = 'DELETE FROM `'.$this->tableMember.'` WHERE `groupid` = ? ';\n $params = array($gid);\n $result = $this->execute($sql,$params);\n if($result>0){\n return true;\n }else{\n return false; \n }\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "23fd80129eba905347cdcb11b6091a93", "score": "0.627612", "text": "public function removeMember($group_id, $user_id)\n {\n // ->update(array('deleted_at' => DB::raw('NOW()')));\n $group_user = DB::table('group_user')->where('group_id', $group_id)->where('user_id', $user_id)->delete();\n\n $result = $group_user ? true : false;\n\n return $result;\n }", "title": "" }, { "docid": "4bbab1f020bec37eab2b3a4b6a763cee", "score": "0.62595856", "text": "public function remove_family_member_post() {\n try {\n\n $parent_user_id = !empty($this->post_data['parent_user_id']) ? trim($this->Common_model->escape_data($this->post_data['parent_user_id'])) : '';\n\n if (empty($parent_user_id)) {\n $this->bad_request();\n }\n\n $this->db->trans_start();\n\n //unmapped the family member\n $update_data = array(\n 'mapping_status' => 9,\n 'updated_at' => $this->utc_time_formated,\n 'updated_by' => $this->user_id\n );\n\n $update_where = array(\n 'parent_patient_id' => $parent_user_id,\n 'patient_id' => $this->user_id,\n 'mapping_status' => 1\n );\n $is_update = $this->User_model->update_family_member_map($update_data, $update_where);\n\n if ($is_update > 0) {\n $this->db->trans_commit();\n $this->my_response['status'] = true;\n $this->my_response['message'] = lang(\"member_removed\");\n \n } else {\n $this->my_response['status'] = false;\n $this->my_response['message'] = lang(\"mycontroller_invalid_request\");\n }\n\n $this->send_response();\n } catch (ErrorException $ex) {\n $this->error = $ex->getMessage();\n $this->store_error();\n }\n }", "title": "" }, { "docid": "a4f4b1f64af520dd8ef0f0ca9e7dbf35", "score": "0.62473845", "text": "function remove() {\n\t\t$this->_remove();\n\t\t$userGroupsCache = &UserGroup::getUserGroupsCache();\n\t\t$userGroupsCache = array_remove($userGroupsCache, $this->id);\n\t\tUser::buildUsersCache();\n\t}", "title": "" }, { "docid": "7c5f3f2021d29bc66263ccf011572c41", "score": "0.618244", "text": "public function hapus_member(){\n $query = \"delete from member where id_member = $this->id_member\";\n $this->db->query($query);\n }", "title": "" }, { "docid": "485d02bd50c045827a8d3945d45aa8fd", "score": "0.6173338", "text": "function removeUserFromGroupID($mysqli, $username, $groupID){\n $result = $mysqli->query(\"SELECT UID FROM User_ WHERE Username='\".$username.\"';\");\n\n if(is_bool($result) || mysqli_num_rows($result) == 0){\n return 'removeUserFromGroup: User with username '.$username.' was not found.';\n }\n $first_row = mysqli_fetch_row($result);\n\n $mysqli->query(\"DELETE FROM Is_Member_Group WHERE UID=\".$first_row[0].\" AND GroupID=\".$groupID.\";\");\n return 'removeUserFromGroup: '.$mysqli->error;\n }", "title": "" }, { "docid": "815828209b9ba4ea3e4d3e90f921659c", "score": "0.6170646", "text": "function ocs_admin_member_delete( $account_key)\n{\n db_set_active('ocsdb');\n\n $result = db_delete( 'ocs_group_member')\n ->condition( 'account_key', $account_key, '=')\n ->execute();\n\n dpm( $result, 'db_delete group member');\n\n return $result;\n}", "title": "" }, { "docid": "a14721f65f364d3e3693c6e655c34cc0", "score": "0.61070865", "text": "static function removeMember( $MemberID, $MemberType, $ProjectID = 0 ) {\n\t\tglobal $dbh;\n\n\t\t$MemberType = in_array( $MemberType, array( \"Device\", \"Cabinet\" ))?$MemberType:\"Device\";\n\n\t\tif ( $ProjectID > 0 ) {\n\t\t\t// Just like above - since we are using prepared statements, it is safe to send blind values\n\t\t\t$st = $dbh->prepare( \"delete from fac_ProjectMembership where ProjectID=:ProjectID and MemberType=:MemberType and MemberID=:MemberID\" );\n\t\t\treturn $st->execute( array( \":ProjectID\"=>$ProjectID, \":MemberType\"=>$MemberType, \":MemberID\"=>$MemberID ));\n\t\t} else {\n\t\t\t$st = $dbh->prepare( \"delete from fac_ProjectMembership where MemberType=:MemberType and MemberID=:MemberID\" );\n\t\t\treturn $st->execute( array( \":MemberType\"=>$MemberType, \":MemberID\"=>$MemberID ));\n\t\t}\n\t}", "title": "" }, { "docid": "293b740991bda2760c256afd4a2fa995", "score": "0.6071629", "text": "public function removeUserFromGroup(string $groupUuid, string $userUuid): MeshRequest;", "title": "" }, { "docid": "e24a8da2185cf275580016315ac8c0fe", "score": "0.60650903", "text": "public abstract function remove();", "title": "" }, { "docid": "9577fcd305bace538058e6919984b03a", "score": "0.60607165", "text": "function remove_member_post(){\n $user_id = '';\n $board_id = '';\n $data['ResponseCode'] = 500;\n $message = \"Invalid request.\"; \n $this->form_validation->set_rules('user_id', 'User Id', 'trim|required');\n $this->form_validation->set_rules('board_id', 'Board Id', 'trim|required');\n $this->form_validation->set_rules('member_id', 'Member Id', 'trim|required');\n if($this->form_validation->run() == TRUE){ \n $userId = $this->post('user_id');\n $boardId = $this->post('board_id');\n $member_id = $this->post('member_id');\n $boardInfo = $this->api_model->get_row('boards',array('id' =>$boardId, 'user_owner_id' =>$userId));\n $members ='';\n if(!empty($boardInfo))\n {\n \n if(!empty($member_id)){\n if($boardInfo->boards_users){\n $users = explode(\",\", $boardInfo->boards_users);\n $member_id = array(\"#\".$member_id.\"#\");\n $usersNews = array_diff($users, $member_id);\n if(!empty($usersNews)){\n $members = implode(',', $usersNews);\n }\n }\n }\n $update = $this->api_model->update('boards',array('boards_users' =>$members),array('id'=>$boardId)); \n $data['ResponseCode'] = 200;\n $data['message'] = \"Member removed successfully\";\n \n }else{\n $data['message'] = \"Please check board id and user id\";\n } \n \n } \n if($this->form_validation->error_array()) \n $data['error'] = $this->form_validation->error_array() ; \n $this->response($data);\n }", "title": "" }, { "docid": "40f5c2b25bfffc01428d8285704cfaba", "score": "0.603261", "text": "public function del($name) {\n\t\t$request = \"DELETE FROM contactgroup WHERE cg_name LIKE '\".htmlentities($name, ENT_QUOTES).\"'\";\n\t\t$DBRESULT =& $this->DB->query($request);\n\t\t$this->return_code = 0;\n\t\treturn;\n\t}", "title": "" }, { "docid": "a211bb755bfbc54c307797f2875f20bd", "score": "0.60293734", "text": "public function test_remove_members_from_existing_conversation() {\n $user1 = self::getDataGenerator()->create_user();\n $user2 = self::getDataGenerator()->create_user();\n\n $conversation = \\core_message\\api::create_conversation(\n \\core_message\\api::MESSAGE_CONVERSATION_TYPE_GROUP,\n [\n $user1->id,\n $user2->id\n ]\n );\n $conversationid = $conversation->id;\n\n $this->assertNull(\\core_message\\api::remove_members_from_conversation([$user1->id], $conversationid));\n $this->assertEquals(1,\n \\core_message\\api::count_conversation_members($conversationid));\n }", "title": "" }, { "docid": "d50d36b81369a7ae06fdacfc61dc5ad2", "score": "0.60253245", "text": "public function remote_delete($membership) {\n\t // get list and account\n\t $tl = TwitterList::model()->findByAttributes(array('id'=>$membership->list_id));\n\t $list_id = $tl['list_id'];\n\t // user id for twitter\n\t $member_id = $tl['member_id'];\n\t $account = Account::model()->findByPk($tl->account_id);\n\t $twitter = Yii::app()->twitter->getTwitterTokened($account['oauth_token'], $account['oauth_token_secret']); \n $remove= $twitter->post(\"lists/members/destroy\",array('list_id'=>$list_id,'user_id'=>$member_id)); \n\t}", "title": "" }, { "docid": "ad423027e33422799ce799d3d8fb9e45", "score": "0.6013546", "text": "function removeUserFromGroup($mysqli, $username, $groupName){\n $result = $mysqli->query(\"SELECT UID FROM User_ WHERE Username='\".$username.\"';\");\n if(is_bool($result) || mysqli_num_rows($result) == 0){\n return 'removeUserFromGroup: User with username '.$username.' was not found.';\n }\n $first_row = mysqli_fetch_row($result);\n\n $result2 = $mysqli->query(\"SELECT GroupID FROM Group_ WHERE GroupName='\".$groupName.\"';\");\n\n if(is_bool($result2) || mysqli_num_rows($result2) == 0){\n return 'removeUserFromGroup: Group with name '.$groupName.' was not found.';\n }\n\n $first_row_2 = mysqli_fetch_row($result2);\n\n $mysqli->query(\"DELETE FROM Is_Member_Group WHERE UID=\".$first_row[0].\" AND GroupID=\".$first_row_2[0].\";\");\n return 'removeUserFromGroup: '.$mysqli->error;\n }", "title": "" }, { "docid": "10b289aa866f1d58863d45ee9db48a0b", "score": "0.598717", "text": "function terminus_api_site_team_member_remove($site_uuid, $user_uuid) {\n $realm = 'site';\n $uuid = $site_uuid;\n $path = 'team/' . $user_uuid;\n $method = 'DELETE';\n\n return terminus_request($realm, $uuid, $path, $method);\n}", "title": "" }, { "docid": "a3c849e64c3ee28ebe0a4dbe904173d2", "score": "0.59734863", "text": "public function remove_group_id($gid) {\n\t\tglobal $I2_SQL;\n\n\t\t$I2_SQL->query('DELETE FROM podcast_permissions WHERE pid=%d AND '.\n\t\t 'gid=%d',$this->podcast_id,$gid);\n\t\tunset($this->gs[$gid]);\n\t}", "title": "" }, { "docid": "bb2634c59a00a9413f49806dc99a147d", "score": "0.597137", "text": "function _horde_removeGroup($name)\n{\n if (!Auth::isAdmin()) {\n return PEAR::raiseError(_(\"You are not allowed to delete groups.\"));\n }\n\n require_once 'Horde/Group.php';\n $groups = &Group::singleton();\n\n if (is_a($group = &$groups->getGroup($name), 'PEAR_Error')) {\n return $group;\n }\n\n if (is_a($result = $groups->removeGroup($group, true), 'PEAR_Error')) {\n return $result;\n }\n\n return true;\n}", "title": "" }, { "docid": "9a751b991ae54c51bdf827a77aababd4", "score": "0.5954524", "text": "public function deleteMember($id)\n {\n if ($id != null) {\n $this->firebase->delete('/users' . '/' . $id);\n }\n }", "title": "" }, { "docid": "3443a03690628d1f125f54e7bee618a0", "score": "0.5949301", "text": "public function removeuserfromgroupAction() {\n if ($this->getRequest()->isPost()) {\n $userId = $_POST['userId'];\n $groupId = $_POST['groupId'];\n $group = $this->_helper->db->getTable('InciteGroup')->findGroupById($groupId);\n\n //prevent non group owners from changing people's privilege levels to banned or added\n if (isset($group) && ($_SESSION['Incite']['USER_DATA']['id'] == $userId || $_SESSION['Incite']['USER_DATA']['id'] == $group['creator_id'])) {\n $groupuser = $this->_helper->db->getTable(\"InciteGroupsUsers\")->findGroupUserByUserAndGroupIds($userId, $groupId);\n if (isset($groupuser)) {\n $groupuser->delete();\n }\n echo json_encode('true');\n }\n else {\n echo \"false\";\n } \n }\n }", "title": "" }, { "docid": "303367fefd6795a52891739b4a0dbcc3", "score": "0.5934851", "text": "public function account_manager_remove_account_from_group() {\n \n // Remove account\n (new MidrubBaseUserAppsCollectionPlannerHelpers\\Groups)->remove_account();\n \n }", "title": "" }, { "docid": "d3815ee131f9dfff4e2b5327d4127dc9", "score": "0.5918233", "text": "public function delete() {\n\t\t$result = rex_sql::factory();\n\t\t$result->setQuery(\"DELETE FROM \". \\rex::getTablePrefix() .\"375_group WHERE id = \". $$this->id);\n }", "title": "" }, { "docid": "b8c78cd19161cf7966e7567365e984a3", "score": "0.5895219", "text": "public function remove(): void;", "title": "" }, { "docid": "10578441b0f02dce11f9e866fd4e5239", "score": "0.5880986", "text": "function _horde_removeUserFromGroup($name, $user)\n{\n if (!Auth::isAdmin()) {\n return PEAR::raiseError(_(\"You are not allowed to change groups.\"));\n }\n\n require_once 'Horde/Group.php';\n $groups = &Group::singleton();\n\n if (is_a($group = &$groups->getGroup($name), 'PEAR_Error')) {\n return $group;\n }\n\n if (is_a($result = $group->removeUser($user), 'PEAR_Error')) {\n return $result;\n }\n\n return true;\n}", "title": "" }, { "docid": "81bbb73d6e75cfa1b5e45d3646af292e", "score": "0.5853577", "text": "public function destroy($member)\n {\n $member =Member::find($member);\n $member->delete();\n\n\n\n return redirect('/Member/create')->with('success', 'Member has been deleted');\n }", "title": "" }, { "docid": "6b9c5da95ccc8283b19459ffd49611fb", "score": "0.58334225", "text": "public function removeuserfromgroupAction()\n {\n $this->disableLayout();\n $this->_helper->viewRenderer->setNoRender();\n\n if(!$this->logged)\n {\n throw new Zend_Exception('Must be logged in');\n }\n $groupId = $this->_getParam('groupId');\n $userId = $this->_getParam('userId');\n if(!isset($groupId))\n {\n throw new Zend_Exception('Must pass a groupId parameter');\n }\n if(!isset($userId))\n {\n throw new Zend_Exception('Must pass a userId parameter');\n }\n\n $group = $this->Group->load($groupId);\n $user = $this->User->load($userId);\n if(!$user || !$group)\n {\n throw new Zend_Exception('Invalid parameter');\n }\n $community = $group->getCommunity();\n\n if(!$this->Community->policyCheck($community, $this->userSession->Dao, MIDAS_POLICY_WRITE))\n {\n throw new Zend_Exception('Must be moderator or admin to manage groups');\n }\n if(!$this->Community->policyCheck($community, $this->userSession->Dao, MIDAS_POLICY_ADMIN) &&\n $this->Community->policyCheck($community, $user, MIDAS_POLICY_ADMIN))\n {\n echo JsonComponent::encode(array(false, 'Only admins can remove users with admin privileges'));\n return;\n }\n $this->Group->removeUser($group, $user);\n echo JsonComponent::encode(array(true, 'Removed user '.$user->getFullName().' from group '.$group->getName()));\n }", "title": "" }, { "docid": "900493d761890807564a8f6ff3e9b9be", "score": "0.582486", "text": "function remove_from_group($type, $id, $user_id_ary, $username_ary, &$group_name)\n{\n\tglobal $db;\n\n\t// Delete or demote individuals if data exists, else delete group\n\tif (is_array($user_id_ary) || is_array($username_ary))\n\t{\n\t\t$sql_where = ($user_id_ary) ? 'user_id IN (' . implode(', ', $user_id_ary) . ')' : 'username IN (' . implode(', ', $username_ary) . ')';\n\n\t\t$sql = 'SELECT user_id, username\n\t\t\tFROM ' . USERS_TABLE . \"\n\t\t\tWHERE $sql_where\";\n\t\t$result = $db->sql_query($sql);\n\n\t\t$usernames = array();\n\t\twhile ($row = $db->sql_fetchrow($result))\n\t\t{\n\t\t\t$username_ary[] = $row['username'];\n\t\t\t$user_id_ary[]\t= $row['user_id'];\n\t\t}\n\t\t$db->sql_freeresult($result);\n\n\t\tswitch ($type)\n\t\t{\n\t\t\tcase 'demote':\n\t\t\t\t$sql = 'UPDATE ' . USER_GROUP_TABLE . \"\n\t\t\t\t\tSET group_leader = 0\n\t\t\t\t\tWHERE $sql_where\";\n\t\t\t\t$db->sql_query($sql);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\t$sql = 'SELECT g.group_id, g.group_name, u.user_id\n\t\t\t\t\tFROM ' . USER_GROUP_TABLE . ' ug, ' . GROUPS_TABLE . ' g\n\t\t\t\t\tWHERE u.user_id IN ' . implode(', ', $user_id_ary) . \"\n\t\t\t\t\t\tAND ug.group_id <> $group_id\n\t\t\t\t\t\tAND g.group_type = \" . GROUP_SPECIAL . '\n\t\t\t\t\tGROUP BY u.user_id';\n\t\t\t\tbreak;\n\t\t}\n\t}\n\telse\n\t{\n\t}\n\n\tif (!function_exists('add_log'))\n\t{\n\t\tglobal $phpbb_root_path, $phpEx;\n\t\tinclude($phpbb_root_path . 'includes/functions_admin.'.$phpEx);\n\t}\n\n\t$log = ($action == 'demote') ? 'LOG_GROUP_DEMOTED' : (($action == 'deleteusers') ? 'LOG_GROUP_REMOVE' : 'LOG_GROUP_DELETED');\n\tadd_log('admin', $log, $name, implode(', ', $username_ary));\n\n\treturn false;\n}", "title": "" }, { "docid": "e41ccedda159cb2ce99c8868a77b36be", "score": "0.5812473", "text": "function bbp_remove_group_id_from_all_forums($group_id = 0)\n{\n}", "title": "" }, { "docid": "2d301a2da9f14632ec15299c1855d93a", "score": "0.5805835", "text": "public function removeGroup(&$item, $key): void {\n if ($key === '#group' && $item === 'advanced') {\n $item = NULL;\n }\n }", "title": "" }, { "docid": "de679e9df0bd1cf5133aea20eccc5ab1", "score": "0.5786561", "text": "function remove_member_from_keyring_policy($projectId, $ring, $member, $role, $location = 'global')\n{\n // Instantiate the client, authenticate using Application Default Credentials,\n // and add the scopes.\n $client = new Google_Client();\n $client->useApplicationDefaultCredentials();\n $client->addScope('https://www.googleapis.com/auth/cloud-platform');\n\n // Create the Cloud KMS client.\n $kms = new Google_Service_CloudKMS($client);\n\n // The resource name of the location associated with the KeyRing.\n $parent = sprintf('projects/%s/locations/%s/keyRings/%s',\n $projectId,\n $location,\n $ring\n );\n\n // Get the current IAM policy and remove the member from it.\n $policy = $kms->projects_locations_keyRings->getIamPolicy($parent);\n foreach ($policy->getBindings() as $binding) {\n if ($binding->getRole() == $role) {\n $members = $binding->getMembers();\n if (false !== $i = array_search($member, $members)) {\n unset($members[$i]);\n $binding->setMembers($members);\n break;\n }\n }\n }\n\n // Set the new IAM Policy.\n $request = new Google_Service_CloudKMS_SetIamPolicyRequest(['policy' => $policy]);\n $kms->projects_locations_keyRings->setIamPolicy(\n $parent,\n $request\n );\n\n printf('Member %s removed from policy for keyring %s' . PHP_EOL,\n $member,\n $ring);\n}", "title": "" }, { "docid": "01a8be3e01a04eed019964793db42cfc", "score": "0.57820565", "text": "public function test_remove_member($params_api)\n {\n //create data\n $this->user = new User_builder();\n $p_user['id'] = 'tester';\n $p_user['type'] = 'student';\n $p_user = $this->user->builder($p_user);\n $res_user = $this->user_model->create($p_user, ['return' => true]);\n $this->set_current_user($res_user->id);\n\n $p_user2['id'] = 'tester2';\n $p_user2['type'] = 'student';\n $p_user2 = $this->user->builder($p_user2);\n $this->user_model->create($p_user2);\n\n $this->group = new Group_builder();\n $p_group = $this->group->builder();\n $res_group = $this->group_model->create($p_group, ['return' => true]);\n\n $p_user_group['user_id'] = $res_user->id;\n $p_user_group['group_id'] = $res_group->id;\n $this->user_group = new User_group_builder();\n $p_user_group = $this->user_group->builder($p_user_group);\n $this->user_group_model->create($p_user_group);\n\n if (!isset($params_api['group_id'])) {\n\n $params_api['group_id'] = $res_group->id;\n\n }\n if (!isset($params_api['user_id'])) {\n\n $params_api['user_id'] = $res_user->id;\n\n }\n\n //Call API\n $res = $this->api->remove_member($params_api);\n\n //Check data\n if ($params_api['flag'] == 'invalid_params') {\n\n $this->assertTrue($res['success']);\n $this->assertFalse($res['submit']);\n\n } else if ($params_api['flag'] == 'bad_request') {\n\n $this->assertFalse($res['submit']);\n $this->assertFalse($res['success']);\n\n } else if ($params_api['flag'] == 'success') {\n\n $this->assertTrue($res['submit']);\n $this->assertTrue($res['success']);\n }\n\n }", "title": "" }, { "docid": "2f7bc8321dd8f51eea9c454205d984ad", "score": "0.5769368", "text": "public function remove($iTeamMemberId)\n {\n $this->database()->delete($this->_sTable, 'managersteam_id = ' . (int) $iTeamMemberId);\n }", "title": "" }, { "docid": "a08b162dfe046362e3f564882506d762", "score": "0.57689637", "text": "public function removePermissionFromGroup($permission, $group);", "title": "" }, { "docid": "14b0435ae7eb4303212bf03ab8cd205e", "score": "0.5768804", "text": "public function zDelete($key, $member)\n {\n $args = func_get_args();\n $args[0] = $this->keyEncode($args[0]);\n return call_user_func_array([$this->connection, 'zDelete'], $args);\n }", "title": "" }, { "docid": "821c2693eb60ed0cec51ecfd0ac5b76e", "score": "0.5768072", "text": "public function removeUserFromGroup(int $userId, $group);", "title": "" }, { "docid": "a29c4554647c2238322572670ee17852", "score": "0.57612294", "text": "public function team_member_delete() {\n\n // Get member_id's input\n $member_id = $this->CI->input->get('member_id');\n \n // Delete member\n $delete_member = $this->CI->base_teams->delete_member( $this->CI->user_id, $member_id );\n \n // Verify if the member was deleted\n if ( $delete_member ) {\n \n // Display success message\n $data = array(\n 'success' => TRUE,\n 'message' => $this->CI->lang->line( 'team_member_deleted' )\n );\n \n echo json_encode($data);\n \n } else {\n\n // Display error message\n $data = array(\n 'success' => FALSE,\n 'message' => $this->CI->lang->line( 'team_member_not_deleted' )\n );\n\n echo json_encode($data); \n\n }\n\n }", "title": "" }, { "docid": "7177b59b4f7fddd96a069be643277671", "score": "0.5751169", "text": "public function unjoinMemberByObj(array $member)\n {\n // build parameters\n $parameters = array();\n $parameters['member'] = $member;\n\n // make the call\n $response = $this->doCall('unjoinMemberByObj', $parameters);\n\n // validate\n if ($response == 0) {\n throw new CampaignCommanderMemberException('Invalid response');\n }\n\n // return the job ID\n return (string)$response;\n }", "title": "" }, { "docid": "0da7f6c14e6f473b08830b4846d05a4c", "score": "0.5745863", "text": "public function destroy()\n {\n\n $data = array(\n 'grpid' => $this->groupID\n );\n\n $ret = $this->callResource(self::DELETE, '/group/destroy', $data);\n\n // Best check it worked first :)\n // Make sure people can't continue treating the group as active...\n unset($this->numbers);\n unset($this->groupID);\n $this->numberCount = NULL;\n }", "title": "" }, { "docid": "db847320901ae53b8994870a7d2e773a", "score": "0.5737424", "text": "public function removeselectedgroupAction() {\n if ($this->getRequest()->isPost()) {\n $groupId = $_POST['groupId'];\n $group = getGroupInfoByGroupId($groupId);\n //prevent non group owners from changing people's privilege levels to banned or added\n if ($_SESSION['Incite']['USER_DATA']['id'] == $group['creator']['id']) {\n echo json_encode(removeGroup($groupId));\n }\n else {\n echo \"false\";\n }\n }\n }", "title": "" }, { "docid": "c1ada6c3b690b42ca7e35e1b03258424", "score": "0.57237667", "text": "public function destroy($id)\n {\n $member = Member::find($id);\n $member->delete();\n }", "title": "" }, { "docid": "192cf74f69267b03172ce0423b541e53", "score": "0.57191545", "text": "public function destroy(Membership $membership)\n {\n //\n }", "title": "" }, { "docid": "ef7e56712ff01f5345d6406a2db2815e", "score": "0.57142", "text": "public function deleteMember(\\DataContainer $dc)\n {\n if (!$dc->id) {\n return;\n }\n\n $groups = \\Database::getInstance()\n ->prepare(\n 'SELECT g.cr_group_id FROM tl_member_to_group AS mtg INNER JOIN tl_member_group g ON g.id=mtg.group_id WHERE mtg.member_id=? AND g.cr_sync=1'\n )\n ->execute($dc->id)\n ->fetchEach('cr_group_id');\n\n foreach ($groups as $group) {\n Groups::getInstance()->deleteReceiver($group, $dc->activeRecord->cr_receiver_id);\n }\n }", "title": "" }, { "docid": "43aca8ae6dcba539c889635336c20aca", "score": "0.5695042", "text": "public static function deleteMember($idMember) {\n // DELETE\n $pdo_options[PDO::ATTR_ERRMODE] = PDO::ERRMODE_EXCEPTION;\n $bdd = new PDO(DSN, DB_USERNAME, DB_PASSWORD, $pdo_options);\n\n $req = $bdd->prepare('DELETE FROM members WHERE id =' . $idMember);\n $req->execute();\n }", "title": "" }, { "docid": "6ac742e900524d2017dbfa1ccbd33006", "score": "0.56927603", "text": "public function deleteMemberGroup(\\DataContainer $dc)\n {\n if (!$dc->id || !$dc->activeRecord->cr_sync) {\n return;\n }\n\n $members = \\Database::getInstance()\n ->prepare(\n 'SELECT m.cr_group_id FROM tl_member AS m INNER JOIN tl_member_to_group mg ON m.id=mg.member_id WHERE mg.group_id=?'\n )\n ->execute($dc->id)\n ->fetchEach('cr_group_id');\n\n foreach ($members as $member) {\n Groups::getInstance()->deleteReceiver($dc->activeRecord->cr_group_id, $member);\n }\n }", "title": "" }, { "docid": "c18f7d09598a72ee33132f9712adfebe", "score": "0.568161", "text": "public function actionRemove()\n {\n $requestBody = Yii::$app->request->get();\n $id = $requestBody['id'];\n $user = $requestBody['user'];\n $secret = $requestBody['secret'];\n\n if (empty($id) || empty($user) || empty($secret)) {\n return $this->throwError('missing parameter');\n }\n\n if ($secret != $this->verifySecret($id, $user)) {\n return $this->throwError('access denied');\n }\n\n $settings = $this->getSettings();\n $url = 'https://api.twitter.com/1.1/lists/members/destroy.json';\n $requestMethod = 'POST';\n $postfields = array(\n 'screen_name' => $user\n );\n $twitter = new \\TwitterAPIExchange($settings);\n if ($twitter) {\n $twitter->buildOauth($url, $requestMethod)\n ->setPostfields($postfields)\n ->performRequest();\n } else {\n return $this->throwError('internal error');\n }\n\n }", "title": "" }, { "docid": "6973cb180019432929ca8d6683d254a5", "score": "0.5680903", "text": "public function unjoinMemberById($id)\n {\n // build parameters\n $parameters = array();\n $parameters['memberId'] = (string)$id;\n\n // make the call\n $response = $this->doCall('unjoinMemberById', $parameters);\n\n // validate\n if ($response == 0) {\n throw new CampaignCommanderMemberException('Invalid response');\n }\n\n // return the job ID\n return (string)$response;\n }", "title": "" }, { "docid": "3e4d1d1d81f7ad0782bc0b34e908f3b2", "score": "0.5675969", "text": "function deletegroupAction() {\n\n $groupId = $this->getRequest()->getParam('groupId');\n $em = Zend_Registry::getInstance()->entitymanager;\n if(isset($groupId) && $groupId != \"\") {\n $groupObj = $em->find('TGroup',$groupId);\n $em->remove($groupObj);\n $em->flush();\n $this->_helper->redirector('index');\n }\n\n }", "title": "" }, { "docid": "57be71c1de7a2afc70afc509587bbd3d", "score": "0.5672294", "text": "public function removeGroup($gid){\n if($this->isGroup($gid)){\n $this->removeAllMemberFromGroup($gid);\n $sql = 'DELETE FROM `'.$this->tableGroup.'` WHERE `groupid` = ?';\n $params = array($gid);\n $result = $this->execute($sql,$params) && $this->removeAllMemberFromGroup($gid);\n if($result>0){\n return true;\n }else{\n return false; \n }\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "de5c08086f80ab79581b982eb68672fe", "score": "0.56708306", "text": "function delete() {\r\n global $DB, $USER, $Controller;\r\n if(!in_array($this->ID, array(ADMIN_GROUP, EVERYBODY_GROUP, MEMBER_GROUP))\r\n && $Controller->alias('adminGroups')->may($USER, DELETE)) {\r\n Log::write('Deleted group \\'' . $this->Name . '\\' (id=' . $this->ID . ')', 20);\r\n $DB->group_members->delete(array('group' => $this->ID));\r\n $DB->privileges->delete(array('beneficiary' => $this->ID));\r\n parent::delete();\r\n }\r\n }", "title": "" }, { "docid": "9bb1e5148f718c57d58e90b001cec2e9", "score": "0.5662319", "text": "public function removeAllGroupMembers(Git_RemoteServer_GerritServer $server, $group_name) {\n $sql_query = \"DELETE FROM account_group_members WHERE group_id=(SELECT group_id FROM account_groups WHERE name='\". $group_name .\"')\";\n $this->executeQuery($server, $sql_query);\n $this->flushGerritCacheAccounts($server);\n }", "title": "" }, { "docid": "8ece1c005d57b9cc6fd895efc6e72aef", "score": "0.5660944", "text": "public function test_remove_members_for_no_existing_user() {\n $user1 = self::getDataGenerator()->create_user();\n $user2 = self::getDataGenerator()->create_user();\n\n $conversation = \\core_message\\api::create_conversation(\n \\core_message\\api::MESSAGE_CONVERSATION_TYPE_GROUP,\n [\n $user1->id,\n $user2->id\n ]\n );\n $conversationid = $conversation->id;\n\n $this->assertNull(\\core_message\\api::remove_members_from_conversation([0], $conversationid));\n $this->assertEquals(2,\n \\core_message\\api::count_conversation_members($conversationid));\n }", "title": "" }, { "docid": "7686c751f9c3d7ab46b536b18040e25e", "score": "0.56547993", "text": "public function remove( )\n {\n }", "title": "" }, { "docid": "52847efc677c676692fb7ffaac0c0664", "score": "0.56514627", "text": "function hapus_data_member($id_member){\n\t\t$this->db->where($this->id_member, $id_member);\n\t\t$this->db->delete($this->table_member);\n\t}", "title": "" }, { "docid": "36839327a1389045ea2b7f4af8c8f6e4", "score": "0.56494856", "text": "public function removeElement();", "title": "" }, { "docid": "95ce502fb232f794cc29b519eed179d0", "score": "0.56301457", "text": "function remove_member_from_cryptokey_policy($projectId, $ring, $key, $member, $role, $location = 'global')\n{\n // Instantiate the client, authenticate, and add scopes.\n $client = new Google_Client();\n $client->useApplicationDefaultCredentials();\n $client->addScope('https://www.googleapis.com/auth/cloud-platform');\n\n // Create the Cloud KMS client.\n $kms = new Google_Service_CloudKMS($client);\n\n // The resource name of the KeyRing associated with the CryptoKey.\n $parent = sprintf('projects/%s/locations/%s/keyRings/%s/cryptoKeys/%s',\n $projectId,\n $location,\n $ring,\n $key\n );\n\n // Get the current IAM policy and remove the member from it.\n $policy = $kms->projects_locations_keyRings_cryptoKeys->getIamPolicy($parent);\n foreach ($policy->getBindings() as $binding) {\n if ($binding->getRole() == $role) {\n $members = $binding->getMembers();\n if (false !== $i = array_search($member, $members)) {\n unset($members[$i]);\n $binding->setMembers($members);\n break;\n }\n }\n }\n\n // Set the new IAM Policy.\n $request = new Google_Service_CloudKMS_SetIamPolicyRequest(['policy' => $policy]);\n $kms->projects_locations_keyRings_cryptoKeys->setIamPolicy(\n $parent,\n $request\n );\n\n printf('Member %s removed from policy for key %s in keyring %s' . PHP_EOL,\n $member,\n $key,\n $ring);\n}", "title": "" }, { "docid": "078963fc30eebd48d9482a307f098b15", "score": "0.5622527", "text": "public function remove() {\r\n\t }", "title": "" }, { "docid": "dea88b58e663fcfee31cde8f3f71dc56", "score": "0.56161124", "text": "public function removeUser($id) {\n\t\tif($this->hasPermission(\"admin_user\")) {\n\n\t\t\t$user = $this->getUserModel($id);\n\t\t\t$rowCount = $user->update(array(\n\t\t\t\t\"group_id\" => $this->getId()\n\t\t\t));\n\t\t\tif($rowCount <= 0) {\n\t\t\t\tthrow new DbOperationException(\"Remove user from group fail.\", 1);\t\t\t\t\n\t\t\t}\t\t\t\n\n\t\t\t$this->enforceRemoveUserPermission($id);\t\t\t\n\t\t}\n\t\telse {\n\t\t\tthrow new AuthorizationException(\"Actor haven't permission to remove user from group permission in \" . $this->getTable(), 1);\t\t\n\t\t}\t\n\t}", "title": "" }, { "docid": "f3f97d4e3cf1b3a67ba9f7ceb51f8d72", "score": "0.5615499", "text": "public function destroy(RemoveTeamMemberRequest $request, $team, $member)\n {\n $team->users()->detach($member->id);\n\n event(new TeamMemberRemoved($team, $member));\n }", "title": "" }, { "docid": "60a97833273f8704905ffe4645668e63", "score": "0.56149954", "text": "public function removeFriend($username, $friend);", "title": "" }, { "docid": "4942cdbda6e35847c8afe5161f4fc501", "score": "0.5612005", "text": "function remove($suggest = false) {\n\n global $vanshavali, $user;\n\n $hasAccess = $vanshavali->hasAccess($user->user['id'], $this->id);\n if ($suggest && !$hasAccess) {\n return parent::remove_suggest($this->data['id']);\n } else {\n //Remove the member completely\n global $db;\n\n //Prepare the sql\n if (!$db->get(\"Update member set dontshow=1 where id=\" . $this->data['id'])) {\n trigger_error(\"Cannot delete member. Error Executing the query\");\n return false;\n }\n }\n\n //If reached here, then the operations is complete\n return true;\n }", "title": "" }, { "docid": "d06c058d55e230c27fda98feea0f889f", "score": "0.5611282", "text": "public function remove($username);", "title": "" }, { "docid": "3cd65db5bb2391a7e9b3835dc42322df", "score": "0.56041026", "text": "public static function delete()\r\n {\r\n if(!self::user()->hasPerm('groups_delete'))\r\n Json::printError('You are not allowed for the requested action!');\r\n $val = \\CAT\\Helper\\Validate::getInstance();\r\n $id = $val->sanitizePost('id');\r\n if(!\\CAT\\Helper\\Groups::exists($id))\r\n Json::printError('No such group!');\r\n $group = \\CAT\\Groups::getInstance()->getGroup($id);\r\n if($group['builtin']=='Y')\r\n Json::printError('Built-in elements cannot be removed!');\r\n $res = \\CAT\\Helper\\Groups::removeGroup($id);\r\n Base::json_result($res,($res?'':'Failed!'),($res?true:false));\r\n }", "title": "" }, { "docid": "fdca4d7a2bff33a8158b2722eb43f845", "score": "0.55908835", "text": "public function removeMember($list_id, $email) {\n $tokens = [\n 'list_id' => $list_id,\n 'subscriber_hash' => md5(strtolower($email)),\n ];\n\n return $this->request('DELETE', '/lists/{list_id}/members/{subscriber_hash}', $tokens);\n }", "title": "" }, { "docid": "786b0d4a17667217debb6c9d9896befd", "score": "0.5586146", "text": "public static function member_removed(\\local_relationship\\event\\relationshipgroup_member_removed $event) {\n if (!enrol_is_enabled('relationship')) {\n return true;\n }\n $trace = new null_progress_trace();\n enrol_relationship_remove_member_groups($trace, NULL, $event->relateduserid, $event->objectid);\n enrol_relationship_unenrol_users($trace, NULL, $event->relateduserid);\n return true;\n }", "title": "" }, { "docid": "99191f10ea4b85d619cc210edb0d034f", "score": "0.55833364", "text": "function nt_delete_group( $thisgroup ) {\n\tglobal $wpdb;\n\n\tglobal$debug;\n\tif ( ! $debug ){\n\t\t\techo \"[nt_delete_group] \";\n\t\t\techo \"<pre>\"; print_r( $thisgroup ); echo \"</pre>\";\n\t}\n\n\t$table_name = $wpdb->prefix . constant( \"GROUP_TABLE_NAME\" );\n\t$rows_affected = $wpdb->delete( $table_name, $thisgroup );\n\treturn $rows_affected;\n}", "title": "" }, { "docid": "960b314ce46a63961f09e6ed61c0e1af", "score": "0.558213", "text": "public function destroy()\n\t{\n\t\tforeach ($this->members()->rows() as $member)\n\t\t{\n\t\t\tif (!$member->destroy())\n\t\t\t{\n\t\t\t\t$this->addError($member->getError());\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn parent::destroy();\n\t}", "title": "" }, { "docid": "d2616a215f9656d53043ceb94302f6e9", "score": "0.5573752", "text": "function doRemoveMbrGroup( $kMbr )\r\n {\r\n // Remove from member Group\r\n if( ($raMbr = $this->validate( $kMbr, \"AccountExists\" )) === false ) {\r\n return( false );\r\n }\r\n\r\n // Remove the user from group 2 (this is safe if it isn't in group 2)\r\n SEEDSessionAuthStatic::Init( $this->kfdb1, $this->sess->GetUID() );\r\n $bOk = SEEDSessionAuthStatic::RemoveUserFromGroup( $kMbr, 2 );\r\n\r\n return( $bOk );\r\n }", "title": "" }, { "docid": "44c56544ab0a0a0f72a76998952ae8f2", "score": "0.5571302", "text": "private function removeMCGroup($userEmail, $listId, $groupingId, $groupName)\n\t{\n\t\t$userMCInfo = $this->mcApi->listMemberInfo($listId, $userEmail);\n\t\t$userMCData = $userMCInfo['data'][0];\n\t\t$userMergeVars = $userMCData['merges'];\n\t\tif(isset($userMergeVars['GROUPINGS']) && is_array($userMergeVars['GROUPINGS'])) {\n\t\t\t$groupings = $userMergeVars['GROUPINGS'];\n\t\t\tforeach($groupings as $key => $grouping) {\n\t\t\t\tif($groupingId == $grouping['id']) {\n\t\t\t\t\t$newGroups = array();\n\t\t\t\t\t$groupsChanged = false;\n\t\t\t\t\t$existingGroupsString = $grouping['groups'];\n\t\t\t\t\t$existingGroupsArray = $this->mcGroupsToArray($existingGroupsString);\n\t\t\t\t\tforeach($existingGroupsArray as $existingGroup) {\n\t\t\t\t\t\t$existingGroup = trim($existingGroup);\n\t\t\t\t\t\tif($existingGroup != $groupName) {\n\t\t\t\t\t\t\t// If this is not the group to be removed, add it again\n\t\t\t\t\t\t\t$newGroups[] = $existingGroup;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// The group that needs to be removed is there\n\t\t\t\t\t\t\t$groupsChanged = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($groupsChanged) {\n\t\t\t\t\t\t// Update MailChimp using the new groups\n\t\t\t\t\t\tif(empty($newGroups)) {\n\t\t\t\t\t\t\t$newGroupsString = '';\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$newGroupsString = implode(\",\", $newGroups);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$userMergeVars['GROUPINGS'][$key]['groups'] = $newGroupsString;\n\t\t\t\t\t\t$this->mcApi->listUpdateMember($listId, $userEmail, $userMergeVars);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "bd85a6f5852b46557ff73207d4ce6252", "score": "0.55616915", "text": "public function removeFromGroup()\n\t{\n\t\t$arrayResponse = array();\n\n\t\ttry \n\t\t{ \t\n\t\t\tif($this->tokenData)\n\t\t\t{ \n\t\t\t\t//--Get param\n\t\t\t\t$joinData['join_grp_id'] = isset($this->requestData->grpId)?$this->requestData->grpId:\"\";\n\t\t\t\t$joinData['join_usr_id'] = $this->tokenData['usr_id'];\n\t\t\t\t$joinData['join_createdate'] = strtotime(gmdate('Y-m-d h:i:s a').' UTC');\n\t\t\t\t\n\t\t\t\tif(empty($joinData['join_grp_id']))\n\t\t\t\t{\n\t\t\t\t\t$arrayResponse = array('success' => false, 'message' => 'Group id is required');\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//--Call model function for get help\n\t\t\t\t\t$response = $this->UserModel->deleteData('comm_groupJoin',array('join_grp_id' => $joinData['join_grp_id'],'join_usr_id' =>$joinData['join_usr_id']));\n\n\t\t\t\t\tif ($response)\n\t\t\t\t\t{\n\t\t\t\t\t\t$arrayResponse = array('success' => true, 'data' => $response, 'message' => 'Removed successfully');\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$arrayResponse = array('success' => false, 'message' => 'Error! in Removing data please try again.');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$arrayResponse = array(\"success\" => false, \"message\" => \"Your session has timed out, please login again.\");\n\t\t\t}\n\n\t\t\tif(empty($arrayResponse))\n\t\t\t{\n\t\t\t\tthrow new Exception('Server Error, please try again.');\n\t\t\t}\n\t\t} \n\t\tcatch (Exception $e) \n\t\t{\n\t\t\t$arrayResponse = array('success' => false, 'message' => $e->getMessage());\n\t\t}\n\n\t\t//--Convert Response to json\n\t\t$this->getJsonData($arrayResponse);\n\t}", "title": "" } ]
db2aaa4e23a7ccadeec7ff5321520b53
Parse response headers into a array
[ { "docid": "a7a3ab7bab1d876b6e1bc14479981725", "score": "0.7498322", "text": "private function _parseResponseHeaders($header) \n\t{\n $headers = array();\n $h = explode(\"\\r\\n\", $header);\n foreach ($h as $header) \n\t\t {\n if (strpos($header, ':') !== false) \n\t\t\t {\n list($type, $value) = explode(\":\", $header, 2);\n if (isset($headers[$type])) \n\t\t\t\t {\n if (is_array($headers[$type])) \n\t\t\t\t\t {\n $headers[$type][] = trim($value);\n }\n else \n\t\t\t\t\t {\n $headers[$type] = array($headers[$type], trim($value));\n }\n\t\t\t\t }\n else \n\t\t\t\t {\n $headers[$type] = trim($value);\n }\n }\n }\n return $headers;\n }", "title": "" } ]
[ { "docid": "c567ceeab5a1ec52f75df70048cab34d", "score": "0.8004725", "text": "public function getResponseHeaders(): array {\r\n\t\t$text = file_get_contents ( stream_get_meta_data ( $this->response_headers_file_handle ) ['uri'] );\r\n\t\t// ...\r\n\t\treturn $this->splitHeaders ( $text );\r\n\t}", "title": "" }, { "docid": "8d4329d793d327feddcc2862a1fb9d05", "score": "0.7884692", "text": "private function parseHeader(array $response): array\n {\n return $response[0];\n }", "title": "" }, { "docid": "db7d7f402b217eab1ba3540603dfc2f3", "score": "0.7773443", "text": "function parseHeaders( $headers ){\n\t\t\t$head = array();\n\t\t\tforeach( $headers as $k=>$v ){\n\t\t\t\t$t = explode( ':', $v, 2 );\n\t\t\t\tif( isset( $t[1] ) )\n\t\t\t\t\t$head[ trim($t[0]) ] = trim( $t[1] );\n\t\t\t\telse{\n\t\t\t\t\t$head[] = $v;\n\t\t\t\t\tif( preg_match( \"#HTTP/[0-9\\.]+\\s+([0-9]+)#\",$v, $out ) )\n\t\t\t\t\t\t$head['reponse_code'] = intval($out[1]);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $head;\n\t\t}", "title": "" }, { "docid": "b20c89ceb5af68038f76ff00dd414867", "score": "0.77319664", "text": "function getHeaders() {\n\t\t// First, split the header chunk into lines\n\t\t$lines = explode(\"\\r\\n\", $this->headers);\n\n\t\t// Remove the response line and treat it specially\n\t\t$response = array_shift($lines);\n\t\t$returner = array('response' => $response);\n\n\t\t// For the rest of the lines, split into associative array\n\t\tforeach ($lines as $line) {\n\t\t\t$i = strpos($line, ':');\n\t\t\t$returner[trim(substr($line, 0, $i))] = trim(substr($line, $i+2));\n\t\t}\n\t\treturn $returner;\n\t}", "title": "" }, { "docid": "4916fe3c97d9f86a6618c5a61da59721", "score": "0.76248246", "text": "public function getResponseHeaders() {\n $headerStrings = headers_list();\n header_remove();\n $headers = [];\n foreach ($headerStrings as $header) {\n list($name, $value) = explode(':', $header, 2);\n $headers[trim($name)] = trim($value);\n }\n return $headers;\n }", "title": "" }, { "docid": "b8f2716ec73f55421cbb0028e504d9fd", "score": "0.7543266", "text": "public function getResponseHeaders() {\n if ($this->_responseHeaderStr == '') {\n return array();\n }\n if (empty($this->_responseHeaders)) {\n $this->parseResponseString();\n }\n return $this->_responseHeaders;\n }", "title": "" }, { "docid": "cdc395b53daa484ef51308c879889616", "score": "0.74958336", "text": "function get_headers_from_curl_response($response)\n{\n $headers = array();\n foreach (explode(\"\\r\\n\", $response) as $i => $line)\n if ($i === 0)\n $headers['http_code'] = $line;\n else\n {\n list ($key, $value) = explode(': ', $line);\n\n $headers[$key] = $value;\n }\n\n return $headers;\n}", "title": "" }, { "docid": "fa4bbf92215e4c2286a2482f8a2246c0", "score": "0.7478895", "text": "protected function parseHeaders()\n {\n $retVal = array();\n $fields = explode(\"\\r\\n\", preg_replace('/\\x0D\\x0A[\\x09\\x20]+/', ' ', $this->_headerString));\n foreach( $fields as $field ) {\n if( preg_match('/([^:]+): (.+)/m', $field, $match) ) {\n $match[1] = preg_replace_callback('/(?<=^|[\\x09\\x20\\x2D])./', \n create_function ('$matches', 'return strtoupper($matches[0]);'), \n strtolower(trim($match[1]))\n );\n if( isset($retVal[$match[1]]) ) {\n $retVal[$match[1]] = array($retVal[$match[1]], $match[2]);\n } else {\n $retVal[$match[1]] = trim($match[2]);\n }\n }\n }\n $this->_header=$retVal;\n }", "title": "" }, { "docid": "35cb345efe268684bcecf7da3d76179d", "score": "0.74095607", "text": "private function getHeaders($response)\n {\n $ret = array();\n $headers = $response->headers->all();\n foreach ($headers as $header => $values) {\n $ret[] = $header;\n $ret[] = implode(';', $values);\n }\n return $ret;\n }", "title": "" }, { "docid": "f815c704615d45b519b63de57848358f", "score": "0.738784", "text": "private function getHeadersFromCurlResponse($response) {\n $headers = [];\n\n $header_text = substr($response, 0, strpos($response, \"\\r\\n\\r\\n\"));\n while (!empty($header_text)) {\n $response = substr($response, strlen($header_text) + 4);\n\n foreach (explode(\"\\r\\n\", $header_text) as $i => $line) {\n if ($i === 0) {\n $headers['http_code'] = $line;\n } else {\n list ($key, $value) = explode(': ', $line);\n\n $headers[$key] = $value;\n }\n }\n\n $header_text = substr($response, 0, strpos($response, \"\\r\\n\\r\\n\"));\n }\n\n return $headers;\n }", "title": "" }, { "docid": "3c0c6986249220acbb4ee67d48b7dbd9", "score": "0.73798496", "text": "function _separateHeadersFromData($response) {\n\t\t$separator = \"\\r\\n\\r\\n\";\n\t\t$i = strpos($response, $separator);\n\t\tif (!$i) return $response; // If no separator was found, it's all data\n\t\treturn array(\n\t\t\tsubstr($response, 0, $i),\n\t\t\tsubstr($response, $i+strlen($separator))\n\t\t);\n\t}", "title": "" }, { "docid": "d4c48a76d8516c1846344d3a5a307f49", "score": "0.7378119", "text": "function get_headers_from_curl_response($response)\n{\n $headers = array();\n $header_text = substr($response, 0, strpos($response, \"\\r\\n\\r\\n\"));\n\n foreach (explode(\"\\r\\n\", $header_text) as $i => $line)\n if ($i === 0)\n $headers['http_code'] = $line;\n else\n {\n list ($key, $value) = explode(': ', $line);\n $headers[$key] = $value;\n }\n return $headers;\n}", "title": "" }, { "docid": "666b417f50d758e928a11b84e3e49a58", "score": "0.7375714", "text": "public function extractResponseHeadersAndBody()\n {\n $parts = explode(\"\\r\\n\\r\\n\", $this->rawResponse);\n $rawBody = array_pop($parts);\n $rawHeaders = implode(\"\\r\\n\\r\\n\", $parts);\n\n return [trim($rawHeaders), trim($rawBody)];\n }", "title": "" }, { "docid": "fbea0e742298cfbcb2f074df6a277393", "score": "0.7370128", "text": "private function parseHeaders(array $headers) {\n return $this->response->parseHeaders($headers);\n }", "title": "" }, { "docid": "03728ad524187564a3352cef043c2845", "score": "0.7365427", "text": "public function headers(): array\n {\n return $this->response->getHeaders();\n }", "title": "" }, { "docid": "6020a9600da17833c60ade556fa57ad1", "score": "0.7325843", "text": "private function _parseHeaders($headers) {\n\t\t$head = [\"status_code\" => 200];\n\n\t\tforeach($headers as $k=>$v) {\n\t\t\t$h = explode(\":\", $v, 2);\n\n\t\t\tif(isset($h[1])) {\n\t\t\t\t$head[trim($h[0])] = trim( $h[1] );\n\t\t\t} else {\n\t\t\t\t$head[] = $v;\n\t\t\t\tif(preg_match(\"/HTTP\\/[0-9\\.]+\\s+([0-9]+)/is\", $v, $out)) {\n\t\t\t\t\t$head[\"status_code\"] = intval($out[1]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $head;\n\t}", "title": "" }, { "docid": "6188e0392ddc2c81d0ac5d09f768081d", "score": "0.7299693", "text": "protected function parseHeader($responseHeader)\n {\n\n $filtered = [];\n\n foreach ((array)$responseHeader as $header) {\n if (stripos($header, 'http/')) {\n $filtered = [];\n }\n $filtered[] = $header;\n }\n\n return $filtered;\n }", "title": "" }, { "docid": "ef531f9fee439ae4a44f3d88eeadebff", "score": "0.7271696", "text": "public function getHeaders(): array;", "title": "" }, { "docid": "ef531f9fee439ae4a44f3d88eeadebff", "score": "0.7271696", "text": "public function getHeaders(): array;", "title": "" }, { "docid": "ef531f9fee439ae4a44f3d88eeadebff", "score": "0.7271696", "text": "public function getHeaders(): array;", "title": "" }, { "docid": "ef531f9fee439ae4a44f3d88eeadebff", "score": "0.7271696", "text": "public function getHeaders(): array;", "title": "" }, { "docid": "e79f115785778df8a224e69904a572f1", "score": "0.7181268", "text": "static function parseHttpHeaders($headers) {\n\t\t$retVal = array ();\n\t\t$fields = explode ( \"\\r\\n\", preg_replace ( '/\\x0D\\x0A[\\x09\\x20]+/', ' ', $headers ) );\n\t\tforeach ( $fields as $field ) {\n\t\t\tif (preg_match ( '/([^:]+): (.+)/m', $field, $match )) {\n\t\t\t\t$match [1] = preg_replace ( '/(?<=^|[\\x09\\x20\\x2D])./e', 'strtoupper(\"\\0\")', strtolower ( trim ( $match [1] ) ) );\n\t\t\t\tif (isset ( $retVal [$match [1]] )) {\n\t\t\t\t\t$retVal [$match [1]] = array (\n\t\t\t\t\t\t\t$retVal [$match [1]],\n\t\t\t\t\t\t\t$match [2] \n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\t$retVal [$match [1]] = trim ( $match [2] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $retVal;\n\t}", "title": "" }, { "docid": "52c59f3f09efc5ab6693627e52c8d28f", "score": "0.7180425", "text": "protected function parseHeaders($headerArray) {\n $ret = array_shift($headerArray);\n $responseLine = preg_split('/\\s/', $ret);\n\n $count = count($headerArray);\n $this->protocol = $responseLine[0];\n $this->code = (int) $responseLine[1];\n $this->message = $responseLine[2];\n\n // A CONTINUE response means that we will get\n // a second HTTP status code. Since we have\n // shifted it off, we recurse. Note that \n // only CURL returns the 100. PHP's stream\n // wrapper eats the 100 for us.\n if ($this->code == 100) {\n return $this->parseHeaders($headerArray);\n }\n\n $buffer = array();\n //syslog(LOG_WARNING, $ret);\n //syslog(LOG_WARNING, print_r($headerArray, TRUE));\n\n for ($i = 0; $i < $count; ++$i) {\n list($name, $value) = explode(':', $headerArray[$i], 2);\n $name = filter_var($name, FILTER_SANITIZE_STRING);\n $value = filter_var(trim($value), FILTER_SANITIZE_STRING);\n $buffer[$name] = $value;\n }\n\n return $buffer;\n }", "title": "" }, { "docid": "297707d839e1554a6c7fafaf2e013f95", "score": "0.71769696", "text": "public function getResponsesHeaders(): array {\r\n\t\t// var_dump($this->getStdErr());die();\r\n\t\t// CONSIDER https://bugs.php.net/bug.php?id=65348\r\n\t\t$Cr = \"\\x0d\";\r\n\t\t$Lf = \"\\x0a\";\r\n\t\t$CrLf = \"\\x0d\\x0a\";\r\n\t\t$stderr = $this->getStdErr ();\r\n\t\t$responses = [ ];\r\n\t\twhile ( FALSE !== ($startPos = strpos ( $stderr, $Lf . '<' )) ) {\r\n\t\t\t$stderr = substr ( $stderr, $startPos + strlen ( $Lf ) );\r\n\t\t\t$endPos = strpos ( $stderr, $CrLf . \"<\\x20\" . $CrLf );\r\n\t\t\tif ($endPos === false) {\r\n\t\t\t\t// ofc, curl has ths quirk where the specific message \"* HTTP error before end of send, stop sending\" gets appended with LF instead of the usual CRLF for other messages...\r\n\t\t\t\t$endPos = strpos ( $stderr, $Lf . \"<\\x20\" . $CrLf );\r\n\t\t\t}\r\n\t\t\t// var_dump(bin2hex(substr($stderr,279,30)),$endPos);die(\"HEX\");\r\n\t\t\t// var_dump($stderr,$endPos);die(\"PAIN\");\r\n\t\t\tassert ( $endPos !== FALSE ); // should always be more after this with CURLOPT_VERBOSE.. (connection left intact / connecton dropped /whatever)\r\n\t\t\t$headers = substr ( $stderr, 0, $endPos );\r\n\t\t\t// $headerscpy=$headers;\r\n\t\t\t$stderr = substr ( $stderr, $endPos + strlen ( $CrLf . $CrLf ) );\r\n\t\t\t$headers = preg_split ( \"/((\\r?\\n)|(\\r\\n?))/\", $headers ); // i can NOT explode($CrLf,$headers); because sometimes, in the middle of recieving headers, it will spout stuff like \"\\n* Added cookie reg_ext_ref=\"deleted\" for domain facebook.com, path /, expire 1457503459\"\r\n\t\t\t // if(strpos($headerscpy,\"report-uri=\")!==false){\r\n\t\t\t // //var_dump($headerscpy);die(\"DIEDS\");\r\n\t\t\t // var_dump($headers);\r\n\t\t\t // //var_dump($this->getStdErr());die(\"DIEDS\");\r\n\t\t\t // }\r\n\t\t\tforeach ( $headers as $key => &$val ) {\r\n\t\t\t\t$val = trim ( $val );\r\n\t\t\t\tif (! strlen ( $val )) {\r\n\t\t\t\t\tunset ( $headers [$key] );\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif ($val [0] !== '<') {\r\n\t\t\t\t\t// static $r=0;++$r;var_dump('removing',$val);if($r>1)die();\r\n\t\t\t\t\tunset ( $headers [$key] ); // sometimes, in the middle of recieving headers, it will spout stuff like \"\\n* Added cookie reg_ext_ref=\"deleted\" for domain facebook.com, path /, expire 1457503459\"\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$val = trim ( substr ( $val, 1 ) );\r\n\t\t\t}\r\n\t\t\tunset ( $val ); // references can be scary..\r\n\t\t\t$responses [] = $headers;\r\n\t\t}\r\n\t\tunset ( $headers, $key, $val, $endPos, $startPos );\r\n\t\treturn $responses;\r\n\t}", "title": "" }, { "docid": "d007c9e73abdaac5f97ad8bab7aba256", "score": "0.71616817", "text": "function getResponseHeaders() {\r\n\t\tglobal $instanceSimpleHTTP;\r\n\t\treturn (isset($instanceSimpleHTTP))\r\n\t\t? $instanceSimpleHTTP->responseHeaders\r\n\t\t: array();\r\n\t}", "title": "" }, { "docid": "517439460851a0196d49a2d726c72253", "score": "0.7084059", "text": "public function getResponseHeaders();", "title": "" }, { "docid": "517439460851a0196d49a2d726c72253", "score": "0.7084059", "text": "public function getResponseHeaders();", "title": "" }, { "docid": "e643560f014b91c1b1734e5fbb76baff", "score": "0.70839673", "text": "public function getResponseHeaders() : array\n {\n return $this->headers;\n }", "title": "" }, { "docid": "1ea7a450c60cf3e8639448a26e8b08bc", "score": "0.70457417", "text": "public static function parseHeaders( $header )\n\t{\n\t\t$retVal = array();\n\t\t$fields = explode(\"\\r\\n\", preg_replace('/\\x0D\\x0A[\\x09\\x20]+/', ' ', $header));\n\t\tforeach( $fields as $field ) {\n\t\t\tif( preg_match('/([^:]+): (.+)/m', $field, $match) ) {\n\t\t\t\t$match[1] = preg_replace('/(?<=^|[\\x09\\x20\\x2D])./e', 'strtoupper(\"\\0\")', strtolower(trim($match[1])));\n\t\t\t\tif( isset($retVal[$match[1]]) ) {\n\t\t\t\t\t$retVal[$match[1]] = array($retVal[$match[1]], $match[2]);\n\t\t\t\t} else {\n\t\t\t\t\t$retVal[$match[1]] = trim($match[2]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(preg_match(\"/GET (.*) HTTP/\" ,$header,$match)){\n\t\t\t$retVal['GET'] = $match[1]; \n\t\t}\n\t\t\n\t\treturn $retVal;\n\t}", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.69914883", "text": "public function getHeaders();", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.69914883", "text": "public function getHeaders();", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.69914883", "text": "public function getHeaders();", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.69914883", "text": "public function getHeaders();", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.69914883", "text": "public function getHeaders();", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.69914883", "text": "public function getHeaders();", "title": "" }, { "docid": "73b6d0ddf21632f61a0c7e5854e1b0f7", "score": "0.69880843", "text": "protected function parseHeader($header)\n {\n $return = array(\n 'raw_headers' => null,\n 'response_code' => null,\n 'response_label' => null,\n 'content_type' => null,\n );\n\n $return['raw_headers'] = explode(\"\\r\\n\", $header);\n $matchs_response = array();\n if (preg_match('@HTTP/[0-9.]*\\s([0-9]*)\\s(.*)@i', $header, $matchs_response)) {\n $return['response_code'] = (int) $matchs_response[1];\n $return['response_label'] = trim($matchs_response[2]);\n }\n $match_content_type = array();\n if (preg_match('@Content-Type:\\s(.*)@i', $header, $match_content_type)) {\n $return['content_type'] = trim($match_content_type[1]);\n }\n\n return $return;\n }", "title": "" }, { "docid": "63f1e5e95a3495c0eb044689687443ff", "score": "0.6972637", "text": "function parse_headers($message) {\n $head_end = strpos($message, DOUBLE_ENTER);\n $headers = $this->get_headers_x(substr($message,0,\n $head_end + strlen(DOUBLE_ENTER)));\n if(!is_array($headers) || empty($headers)){\n return null;\n }\n if(!preg_match('%[HTTP/\\d\\.\\d] (\\d\\d\\d)%', $headers[0], $status_code)) {\n return null;\n }\n switch( $status_code[1] ) {\n case '200':\n $parsed = $this->parse_headers(substr($message,\n $head_end + strlen(DOUBLE_ENTER)));\n return is_null($parsed)?$headers:$parsed;\n break;\n default:\n return $headers;\n break;\n }\n }", "title": "" }, { "docid": "f1160196d7e895bfed6a18298736bef6", "score": "0.6967978", "text": "public function getHeaders(): array\n {\n return [];\n }", "title": "" }, { "docid": "a5c77ebf34275e357ba5e8e36cdb4300", "score": "0.6962003", "text": "public function getHeaders(): array\n {\n return [];\n }", "title": "" }, { "docid": "c14d1c94be737ebf0f17d3da65f4d7be", "score": "0.69543767", "text": "private static function extractHeaders(&$responseString)\n {\n $headers = array();\n \n // First, split body and headers\n $parts = preg_split('|(?:\\r?\\n){2}|m', $responseString, 2);\n if (! $parts[0]) return $headers;\n \n // Split headers part to lines\n $lines = explode(\"\\n\", $parts[0]);\n unset($parts);\n $last_header = null;\n\n foreach($lines as $line) {\n $line = trim($line, \"\\r\\n\");\n if ($line == \"\") break;\n\n if (preg_match(\"|^([\\w-]+):\\s+(.+)|\", $line, $m)) {\n unset($last_header);\n $h_name = strtolower($m[1]);\n $h_value = $m[2];\n\n if (isset($headers[$h_name])) {\n if (! is_array($headers[$h_name])) {\n $headers[$h_name] = array($headers[$h_name]);\n }\n\n $headers[$h_name][] = $h_value;\n } else {\n $headers[$h_name] = $h_value;\n }\n $last_header = $h_name;\n } elseif (preg_match(\"|^\\s+(.+)$|\", $line, $m) && $last_header !== null) {\n if (is_array($headers[$last_header])) {\n end($headers[$last_header]);\n $last_header_key = key($headers[$last_header]);\n $headers[$last_header][$last_header_key] .= $m[1];\n } else {\n $headers[$last_header] .= $m[1];\n }\n }\n }\n \n return $headers;\n }", "title": "" }, { "docid": "1cb79326f6522bfd20c8a091a91c3b24", "score": "0.69476587", "text": "private function get_headers(): array {\n $headers = [];\n $headers[] = get_string('status');\n $headers[] = get_string('gradenoun');\n $headers[] = get_string('attemptedon', 'report_embedquestion');\n return $headers;\n }", "title": "" }, { "docid": "d6c89d21b9ccd2b982737cb9d527b5d1", "score": "0.6898402", "text": "abstract public function getHeaders();", "title": "" }, { "docid": "6a02052d668a14449a16a3b62740ceef", "score": "0.6864036", "text": "public function headers_array()\n {\n $collection = [];\n foreach ($this->service_headers as $header) {\n $collection[] = [\n 'key' => $header->key,\n 'value' => $header->value\n ];\n }\n return $collection;\n }", "title": "" }, { "docid": "889e4b2a68a8a75b48334a5a05af0b4d", "score": "0.6855926", "text": "function getResponseHeaders($options = array()){\n\t\t$options = array_merge(array(\n\t\t\t\"as_hash\" => false,\n\t\t\t\"lowerize_keys\" => false\n\t\t),$options);\n\n\t\t$this->fetchContent();\n\n\t\t$out = $this->_ResponseHeaders;\n\n\t\tif($options[\"as_hash\"]){\n\t\t\t$headers = explode(\"\\n\",$out);\n\t\t\t$out = array();\n\t\t\tforeach($headers as $h){\n\t\t\t\tif(preg_match(\"/^([^ ]+):(.*)/\",trim($h),$matches)){\n\t\t\t\t\t$key = $options[\"lowerize_keys\"] ? strtolower($matches[1]) : $matches[1];\n\t\t\t\t\t$out[$key] = trim($matches[2]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $out;\n\t}", "title": "" }, { "docid": "472876245e51d69b208c415c1cedb066", "score": "0.6832614", "text": "public function headers() {\n return [];\n }", "title": "" }, { "docid": "73d46e760277c1494898dcf3e1959f35", "score": "0.68256414", "text": "public function getHeaders() {\n return [];\n }", "title": "" }, { "docid": "73d46e760277c1494898dcf3e1959f35", "score": "0.68256414", "text": "public function getHeaders() {\n return [];\n }", "title": "" }, { "docid": "43333770b737d0afa2bdfae564978bcf", "score": "0.6788517", "text": "private function formatResponseHeaders (\\Zend_Controller_Response_Abstract $response) {\n $headers = array();\n foreach ($response->getHeaders() as $header) {\n $name = $header['name'];\n if (array_key_exists($name, $headers)) {\n if ($header['replace']) {\n $headers[$name] = $header['value'];\n }\n } else {\n $headers[$name] = $header['value'];\n }\n }\n return $headers;\n }", "title": "" }, { "docid": "d675580dd6c71be769053666f7965b79", "score": "0.67859036", "text": "public function headers() : array\n {\n return $this->headers;\n }", "title": "" }, { "docid": "4bef7882c6d38149d272b81de95abd71", "score": "0.6775522", "text": "public function fetchHeaders():array {\n return $this->headers;\n }", "title": "" }, { "docid": "94bfae9373332d3c358e0978e8120694", "score": "0.6768688", "text": "public static function processHeaders($headers) {\n\t\t// split headers, one per array element\n\t\tif ( is_string($headers) ) {\n\t\t\t// tolerate line terminator: CRLF = LF (RFC 2616 19.3)\n\t\t\t$headers = str_replace(\"\\r\\n\", \"\\n\", $headers);\n\t\t\t// unfold folded header fields. LWS = [CRLF] 1*( SP | HT ) <US-ASCII SP, space (32)>, <US-ASCII HT, horizontal-tab (9)> (RFC 2616 2.2)\n\t\t\t$headers = preg_replace('/\\n[ \\t]/', ' ', $headers);\n\t\t\t// create the headers array\n\t\t\t$headers = explode(\"\\n\", $headers);\n\t\t}\n\n\t\t$response = array('code' => 0, 'message' => '');\n\n\t\t// If a redirection has taken place, The headers for each page request may have been passed.\n\t\t// In this case, determine the final HTTP header and parse from there.\n\t\tfor ( $i = count($headers)-1; $i >= 0; $i-- ) {\n\t\t\tif ( !empty($headers[$i]) && false === strpos($headers[$i], ':') ) {\n\t\t\t\t$headers = array_splice($headers, $i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t$cookies = array();\n\t\t$newheaders = array();\n\t\tforeach ( (array) $headers as $tempheader ) {\n\t\t\tif ( empty($tempheader) )\n\t\t\t\tcontinue;\n\n\t\t\tif ( false === strpos($tempheader, ':') ) {\n\t\t\t\t$stack = explode(' ', $tempheader, 3);\n\t\t\t\t$stack[] = '';\n\t\t\t\tlist( , $response['code'], $response['message']) = $stack;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tlist($key, $value) = explode(':', $tempheader, 2);\n\n\t\t\tif ( !empty( $value ) ) {\n\t\t\t\t$key = strtolower( $key );\n\t\t\t\tif ( isset( $newheaders[$key] ) ) {\n\t\t\t\t\tif ( !is_array($newheaders[$key]) )\n\t\t\t\t\t\t$newheaders[$key] = array($newheaders[$key]);\n\t\t\t\t\t$newheaders[$key][] = trim( $value );\n\t\t\t\t} else {\n\t\t\t\t\t$newheaders[$key] = trim( $value );\n\t\t\t\t}\n\t\t\t\tif ( 'set-cookie' == $key )\n\t\t\t\t\t$cookies[] = new EasyHttp_Cookie( $value );\n\t\t\t}\n\t\t}\n\n\t\treturn array('response' => $response, 'headers' => $newheaders, 'cookies' => $cookies);\n\t}", "title": "" }, { "docid": "119b2fcd8909fb40049d772c59d30384", "score": "0.67639774", "text": "protected static function parseResponseHeaders($rawHeaders)\n {\n $headers = array();\n $key = '';\n\n foreach (explode(\"\\n\", $rawHeaders) as $headerRow) {\n if (trim($headerRow) === '') {\n break;\n }\n $headerArray = explode(':', $headerRow, 2);\n\n if (isset($headerArray[1])) {\n if (!isset($headers[$headerArray[0]])) {\n $headers[trim($headerArray[0])] = trim($headerArray[1]);\n } elseif (is_array($headers[$headerArray[0]])) {\n $headers[trim($headerArray[0])] = array_merge($headers[trim($headerArray[0])], array(trim($headerArray[1])));\n } else {\n $headers[trim($headerArray[0])] = array_merge(array($headers[trim($headerArray[0])]), array(trim($headerArray[1])));\n }\n\n $key = $headerArray[0];\n } else {\n if (substr($headerArray[0], 0, 1) === \"\\t\") {\n $headers[$key] .= \"\\r\\n\\t\" . trim($headerArray[0]);\n } elseif (!$key) {\n $headers[0] = trim($headerArray[0]);\n }\n }\n }\n\n return $headers;\n }", "title": "" }, { "docid": "86a4af9ca19b868798a7ea7dd04eedad", "score": "0.67575264", "text": "function getHeaders($headerName = false) {\n $res = array();\n foreach ($this->items as $k => $strItem) {\n list($header, $value) = $this->parseHeader($strItem);\n $res[$header][$k] = $value;\n }\n if ($headerName !== false) {\n $headerName = strtolower($headerName);\n if (isset($res[$headerName])) $res = $res[$headerName];\n else $res = array();\n }\n return $res;\n }", "title": "" }, { "docid": "eee37561cf368bf1ff3b20d8610c69b3", "score": "0.6745602", "text": "private function getHeaders()\n {\n $result = [];\n foreach ($this->headers as $name => $value) {\n $result[] = sprintf(\"%s: %s\", $name, $value);\n }\n\n return $result;\n }", "title": "" }, { "docid": "6b50429dc3924a27c208f288709487b9", "score": "0.6740285", "text": "private function parseHeaders($headers)\n {\n $parsed = [];\n\n foreach ($headers as $key => $header) {\n if (is_array($header) && 1 === count($header)) {\n $parsed[$key] = $header[0];\n } else {\n $parsed[$key] = $header;\n }\n }\n\n return $parsed;\n }", "title": "" }, { "docid": "82e68bd26001c57bc629225fb53fe9e3", "score": "0.6738554", "text": "public function headers(): array\n {\n return $this->headers;\n }", "title": "" }, { "docid": "c78d232711906b2fa3a4ac4d7e70adda", "score": "0.6710726", "text": "public function getHeaders() \n {\n return $this->response['headers'];\n }", "title": "" }, { "docid": "969c10f43a716200b884643108d8a00b", "score": "0.6710606", "text": "public function parseHeaders(){\n\t\t$arResult = array();\n\t\t#\n\t\t$strFields = $this->arProfile['PARAMS']['CUSTOM_EXCEL']['FIELDS'];\n\t\tif(is_null($strFields)){\n\t\t\t$strFields = $this->getDefaultFields();\n\t\t}\n\t\tif(strlen($strFields)){\n\t\t\t$arResult = explode(\"\\n\", $strFields);\n\t\t\tforeach($arResult as $key => $strItem){\n\t\t\t\t$strItem = trim($strItem);\n\t\t\t\tif(strlen($strItem)){\n\t\t\t\t\t$arResult[$key] = $strItem;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tunset($arResult[$key]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$arResult = array_unique($arResult);\n\t\t#\n\t\t$arResultTmp = array();\n\t\tforeach($arResult as $strItem){\n\t\t\t$strCode = \\CUtil::translit($strItem, LANGUAGE_ID, array(\n\t\t\t\t'max_len' => 255,\n\t\t\t\t'change_case' => 'U',\n\t\t\t\t'replace_space' => '_',\n\t\t\t\t'replace_other' => '_',\n\t\t\t\t'delete_repeat_replace' => true,\n\t\t\t));\n\t\t\t$arResultTmp[$strCode] = $strItem;\n\t\t}\n\t\t$arResult = $arResultTmp;\n\t\tunset($arResultTmp);\n\t\t#\n\t\treturn $arResult;\n\t}", "title": "" }, { "docid": "167b4161ccef98e89aa6695ffb5d6c8e", "score": "0.6686077", "text": "private function parseHeaders($ch) {\n $headers = new stdClass();\n $headers->code = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n return $headers;\n }", "title": "" }, { "docid": "dd3783a0a9bc8cc4203f40341957fb1b", "score": "0.66604906", "text": "public function getHeaders($response)\n {\n $statuses = $response->getStatuses();\n if (empty($statuses)) {\n return [];\n }\n\n $limits = [];\n\n foreach ($statuses as $s) {\n $reqPerUnit = $reqUnit = $reqRemaining = 0;\n\n $currentLimit = $s->getCurrentLimit();\n if (!empty($currentLimit)) {\n $reqPerUnit = (int) $currentLimit->getRequestsPerUnit();\n $reqUnit = $currentLimit->getUnit();\n }\n\n $limitRemaining = $s->getLimitRemaining();\n if (!empty($limitRemaining)) {\n $reqRemaining = (int) $limitRemaining;\n }\n\n // Calculate how close each limit is to an overage on a percentage basis:\n // (Remaining / Limit) * 100\n $pctRemaining = ($reqPerUnit > 0)\n ? number_format(($reqRemaining / $reqPerUnit) * 100.0, 2)\n : 100.0;\n\n $limits[] = [\n 'limit' => $reqPerUnit,\n 'remaining' => $reqRemaining,\n 'remaining_pct' => $pctRemaining,\n // 'reset' => 'TBD',\n ];\n } // close $statuses\n\n // Sort the results by increasing remaining_pct.\n // The implementing client will need to decide how to present the results when\n // more than one is present.\n ksort($limits);\n\n $output = [];\n\n foreach ($limits as $l) {\n // The reset timestamp is not part of the normal response yet.\n // see https://github.com/lyft/ratelimit/pull/56\n $output[] = [\n $this->settings['header'] . '-Limit' => $l['limit'],\n $this->settings['header'] . '-Remaining' => $l['remaining'],\n // $this->settings['header'] . '-Reset' => $l['reset'],\n ];\n }\n\n return $output;\n }", "title": "" }, { "docid": "316452db8afc2edeee3640a72d8befb0", "score": "0.66443115", "text": "public function getHeaders() {\n\t\t$headers = [];\n\t\tforeach ($this->headers as $name => $values) {\n\t\t\tforeach ($values as $value) {\n\t\t\t\t$headers[] = strtolower($name) . ': ' . $value;\n\t\t\t}\n\t\t}\n\t\t$headers[] = self::HEADER_KEY_CONTENT_LENGTH . ': ' . strlen($this->getBody());\n\t\treturn $headers;\n\t}", "title": "" }, { "docid": "1d0b9a00358cac2491f9ea7f85a682f4", "score": "0.66367084", "text": "private static function getAuthFromHeaders() {\n $headers = getallheaders();\n if (!empty($headers['Authorization'])) {\n if (preg_match('/IndiciaTokens (?<auth_token>[a-z0-9]+(:\\d+)?)\\|(?<nonce>[a-z0-9]+)/', $headers['Authorization'], $matches)) {\n return [\n 'auth_token' => $matches['auth_token'],\n 'nonce' => $matches['nonce'],\n ];\n }\n }\n hostsite_access_denied();\n }", "title": "" }, { "docid": "6170f92b24eeba1cc4fa6dbad79d13c0", "score": "0.6624103", "text": "protected function parseHeaders($rawHeaders)\n {\n $headers = array();\n\n $lines = explode(\"\\r\\n\", preg_replace('/\\x0D\\x0A[\\x09\\x20]+/', ' ', $rawHeaders));\n foreach ($lines as $header) {\n if (preg_match('/([^:]+): (.+)/m', $header, $match)) {\n if (!isset($headers[$match[1]])) {\n $headers[$match[1]] = trim($match[2]);\n } elseif (is_array($headers[$match[1]])) {\n $headers[$match[1]][] = trim($match[2]);\n } else {\n $headers[$match[1]] = array($headers[$match[1]], trim($match[2]));\n }\n }\n }\n\n return $headers;\n }", "title": "" }, { "docid": "d44e76b6b0c322bb6c1b46c84aa5dc35", "score": "0.6622795", "text": "protected function getHeaders()\n {\n return [\n 'Host' => 'data.usajobs.gov',\n 'Authorization-Key' => $this->get('AuthorizationKey'),\n 'User-Agent' => null, // This prevents Guzzle from setting a user agent, which causes the API call to fail\n ];\n }", "title": "" }, { "docid": "4fd659f3b9f975cd661e47a1bc54d0ec", "score": "0.66172296", "text": "public function getHeaders(): array\r\n {\r\n return $this->headers;\r\n }", "title": "" }, { "docid": "aeca889ed5e97604864734492d04c1fb", "score": "0.6611731", "text": "function parseHeaders( $headerString ) {\n\t\t$retVal = array();\n\t\t$fields = explode(\"\\r\\n\", preg_replace('/\\x0D\\x0A[\\x09\\x20]+/', ' ', $headerString ));\n\t\tforeach( $fields as $field ) {\n\t\t\tif( preg_match('/([^:]+): (.+)/m', $field, $match) ) {\n\t\t\t\t$retVal[$match[1]] = trim($match[2]);\n\t\t\t}\n\t\t}\n\t\treturn $retVal;\n\t}", "title": "" }, { "docid": "fd12d1b542aee8c5dc8d694c2c23c671", "score": "0.660803", "text": "public static function getall_headers()\n{ \n\n $headers = array();\n foreach ($self::$http_headers_keys as $key => $orig) { \n $headers[$orig] = self::$http_headers[$key];\n }\n return $headers;\n}", "title": "" }, { "docid": "7acecd8546d372f8979e29ac7f7d0ac0", "score": "0.6574857", "text": "private function getHeadersAsArray($headersAsString)\n {\n $headers = array();\n \n foreach (explode(\"\\r\\n\", $headersAsString) as $i => $line) {\n if ($i === 0) { // HTTP code\n continue;\n }\n \n $line = trim($line);\n if (empty($line)) {\n continue;\n }\n \n list($key, $value) = explode(': ', $line);\n \n if ($key == 'Link') {\n $value = array_merge(\n array('_raw' => $value),\n $this->getLinkHeaderAsArray($value)\n );\n }\n \n $headers[$key] = $value;\n }\n\n return $headers;\n }", "title": "" }, { "docid": "a1d270dc4f075238a9c223f24f2313ba", "score": "0.6573957", "text": "public static function _header($key) { \n $key = strtolower($key);\n return self::$http_headers[$key] ?? array();\n}", "title": "" }, { "docid": "41dc9f7a893e7155c296018d93734b17", "score": "0.65521085", "text": "public static function headers();", "title": "" }, { "docid": "c7dea8ceeb2108ab60fc85b12acc1fbc", "score": "0.6520304", "text": "protected function splitHeaders($rawHeaders)\n {\n $headers = array();\n\n $headerLines = explode(\"\\n\", $rawHeaders);\n $headers['HTTP'] = array_shift($headerLines);\n foreach ($headerLines as $line) {\n $header = explode(\":\", $line, 2);\n $headers[trim($header[0])] = trim($header[1]);\n }\n\n return $headers;\n }", "title": "" }, { "docid": "873b5e02ec49c07dccd2f4fa21d05bd1", "score": "0.65155596", "text": "function getAllHeaders();", "title": "" }, { "docid": "5113cad15aec5167fad4ade36b6ace68", "score": "0.6511433", "text": "public function getRawHeaders();", "title": "" }, { "docid": "f1dbff2b45b05b2c4838e518f809f7fe", "score": "0.65053844", "text": "public static function getHeaderToken()\n {\n return [];\n }", "title": "" }, { "docid": "d948b914a7ade992a49924ad4e80b975", "score": "0.6505255", "text": "public function getAllResponseHeaders()\n\t{\n\t\treturn $this->responseHeaders;\n\t}", "title": "" }, { "docid": "85797b795686da3f0f1c6d503e57aee8", "score": "0.6503319", "text": "public function getResponseHeaders() : ?array\n {\n return $this->responseHeaders;\n }", "title": "" }, { "docid": "85797b795686da3f0f1c6d503e57aee8", "score": "0.6503319", "text": "public function getResponseHeaders() : ?array\n {\n return $this->responseHeaders;\n }", "title": "" }, { "docid": "d1aabb3337a83f04dcdb41a814e437e8", "score": "0.64889234", "text": "function getParsedHeaders($msg_id)\r\n {\r\n $ret=$this->getRawHeaders($msg_id);\r\n\r\n $raw_headers = rtrim($ret);\r\n $raw_headers = preg_replace(\"/\\r\\n[ \\t]+/\", ' ', $raw_headers); // Unfold headers\r\n $raw_headers = explode(\"\\r\\n\", $raw_headers);\r\n foreach ($raw_headers as $value) {\r\n $name = substr($value, 0, $pos = strpos($value, ':'));\r\n $value = ltrim(substr($value, $pos + 1));\r\n if (isset($headers[$name]) AND is_array($headers[$name])) {\r\n $headers[$name][] = $value;\r\n } elseif (isset($headers[$name])) {\r\n $headers[$name] = array($headers[$name], $value);\r\n } else {\r\n $headers[$name] = $value;\r\n }\r\n }\r\n\r\n return $headers;\r\n }", "title": "" }, { "docid": "491711322b43438a132cb17171d2c7c8", "score": "0.6487736", "text": "public function get_headers() {\n return array_values($this->headers);\n }", "title": "" }, { "docid": "68fd749ef17c065dbeb75243067752d9", "score": "0.648652", "text": "public function getHeaders(): array\n {\n return $this->headers;\n }", "title": "" }, { "docid": "68fd749ef17c065dbeb75243067752d9", "score": "0.648652", "text": "public function getHeaders(): array\n {\n return $this->headers;\n }", "title": "" }, { "docid": "4c050739403815052e73a0f893ea3510", "score": "0.6486466", "text": "public static function parseHeaders($raw_headers)\n {\n if (function_exists('http_parse_headers')) {\n return http_parse_headers($raw_headers);\n } else {\n $key = '';\n $headers = array();\n $raw_headers = explode(\"\\n\", $raw_headers);\n foreach ($raw_headers as $i => $h) {\n $h = explode(':', $h, 2);\n if (isset($h[1])) {\n if (!isset($headers[$h[0]])) {\n $headers[$h[0]] = trim($h[1]);\n } elseif (is_array($headers[$h[0]])) {\n $headers[$h[0]] = array_merge($headers[$h[0]], array(trim($h[1])));\n } else {\n $headers[$h[0]] = array_merge(array($headers[$h[0]]), array(trim($h[1])));\n }\n $key = $h[0];\n } else {\n if (substr($h[0], 0, 1) == \"\\t\") {\n $headers[$key] .= \"\\r\\n\\t\" . trim($h[0]);\n } elseif (!$key) {\n $headers[0] = trim($h[0]);\n }\n }\n }\n return $headers;\n }\n }", "title": "" }, { "docid": "0fe0bdc8fe038ba8fff236e4bc878c5e", "score": "0.64763856", "text": "public function http_parse_headers($raw_headers)\n {\n $headers = array();\n $key = ''; // [+]\n\n foreach(explode(\"\\n\", $raw_headers) as $i => $h)\n {\n $h = explode(':', $h, 2);\n\n if (isset($h[1]))\n {\n if (!isset($headers[$h[0]]))\n $headers[$h[0]] = trim($h[1]);\n elseif (is_array($headers[$h[0]]))\n {\n // $tmp = array_merge($headers[$h[0]], array(trim($h[1]))); // [-]\n // $headers[$h[0]] = $tmp; // [-]\n $headers[$h[0]] = array_merge($headers[$h[0]], array(trim($h[1]))); // [+]\n }\n else\n {\n // $tmp = array_merge(array($headers[$h[0]]), array(trim($h[1]))); // [-]\n // $headers[$h[0]] = $tmp; // [-]\n $headers[$h[0]] = array_merge(array($headers[$h[0]]), array(trim($h[1]))); // [+]\n }\n\n $key = $h[0]; // [+]\n }\n else // [+]\n { // [+]\n if (substr($h[0], 0, 1) == \"\\t\") // [+]\n $headers[$key] .= \"\\r\\n\\t\".trim($h[0]); // [+]\n elseif (!$key) // [+]\n $headers[0] = trim($h[0]);trim($h[0]); // [+]\n } // [+]\n }\n\n return $headers;\n }", "title": "" }, { "docid": "59b67750f464049765a12efcced53dff", "score": "0.64757675", "text": "public static function getHeaders(): array\n {\n return self::$headers;\n }", "title": "" }, { "docid": "2b7a5e8cc7d21873ce1dedd04582a8f3", "score": "0.64741325", "text": "public function parseResponse()\n {\n $this->separateHeadersAndBody();\n\n $this->parseRawHeader();\n }", "title": "" }, { "docid": "71309b7e8c0823a911b6fcf8872ae80f", "score": "0.64564925", "text": "private function curlParseHeaders($message_headers)\n {\n $header_lines = preg_split(\"/\\r\\n|\\n|\\r/\", $message_headers);\n $headers = array();\n list(, $headers['http_status_code'], $headers['http_status_message']) = explode(' ', trim(array_shift($header_lines)), 3);\n foreach ($header_lines as $header_line)\n {\n list($name, $value) = explode(':', $header_line, 2);\n $name = strtolower($name);\n $headers[$name] = trim($value);\n }\n\n return $headers;\n }", "title": "" }, { "docid": "ea5926fe19af0e786373054065028e51", "score": "0.6455485", "text": "public function getResponseHeaders () {\n\t\treturn $this->responseHeaders;\n\t}", "title": "" }, { "docid": "7600edcaddef4496450e4abdd016f930", "score": "0.64529437", "text": "private function parseHeaders(string $headerContent): array\n {\n $headers = [];\n $headerParts = preg_split('/\\\\R/s', $headerContent, -1, PREG_SPLIT_NO_EMPTY);\n\n foreach ($headerParts as $headerPart) {\n if (strpos($headerPart, ':') === false) {\n continue;\n }\n\n [$headerName, $headerValue] = explode(':', $headerPart, 2);\n $headerName = strtolower(trim($headerName));\n $headerValue = trim($headerValue);\n\n if (strpos($headerValue, ';') === false) {\n $headers[$headerName] = $headerValue;\n } else {\n $headers[$headerName] = [];\n foreach (explode(';', $headerValue) as $part) {\n $part = trim($part);\n if (strpos($part, '=') === false) {\n $headers[$headerName][] = $part;\n } else {\n [$name, $value] = explode('=', $part, 2);\n $name = strtolower(trim($name));\n $value = trim(trim($value), '\"');\n $headers[$headerName][$name] = $value;\n }\n }\n }\n }\n\n return $headers;\n }", "title": "" }, { "docid": "5e9ed558c02bc8f430c5038971623b09", "score": "0.6450541", "text": "public function responseHeaders()\n {\n return $this->responseHeaders;\n }", "title": "" }, { "docid": "299cd5dec502730f24a8f9adcfb947d1", "score": "0.6448828", "text": "public function getHeaders(){\n\t\t// Define a headers array\n\t\t$headers = array();\n\t\tforeach ($this->server as $key => $value) {\n\t\t\t// Does our server attribute have our header prefix?\n\t\t\tif (self::hasPrefix($key, self::$http_header_prefix)) {\n\t\t\t\t// Add our server attribute to our header array\n\t\t\t\t$headers[substr($key, strlen(self::$http_header_prefix))] = $value;\n\t\t\t} elseif (in_array($key, self::$http_nonprefixed_headers)) {\n\t\t\t\t// Add our server attribute to our header array\n\t\t\t\t$headers[$key] = $value;\n\t\t\t}\n\t\t}\n\t\treturn $headers;\n\t}", "title": "" }, { "docid": "29d071cbdef5f27f96c493cc851fff15", "score": "0.6445442", "text": "public function getResponseHeaders()\r\n {\r\n return $this->fields['ResponseHeaders']['value'];\r\n }", "title": "" }, { "docid": "eaf7147587b9b41d923dafc44593965b", "score": "0.6438865", "text": "private function _processHeaders()\n {\n if ($this->options->HEADER) {\n if ($this->_response) {\n if ($this->info->HEADER_SIZE > 0) {\n $this->headers->process(substr($this->_response, 0, $this->info->HEADER_SIZE));\n\n if (!$this->options->NOBODY) {\n $this->_response = substr($this->_response, $this->info->HEADER_SIZE);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "1b101f82d2b377bb912775d8b19e4a38", "score": "0.6434116", "text": "public function parseHeaders($str)\n {\n $headers = array();\n\n // First, split body and headers\n $parts = preg_split('|(?:\\r?\\n){2}|m', $str, 2);\n if (!$parts[0]) {\n return $headers;\n }\n\n // Split headers part to lines\n $lines = explode(\"\\n\", $parts[0]);\n unset($parts);\n $last_header = null;\n\n foreach ($lines as $line) {\n $line = trim($line, \"\\r\\n\");\n if ($line == \"\") {\n break;\n }\n\n // Locate headers like 'Location: ...' and 'Location:...' (note the missing space)\n if (preg_match(\"|^([\\w-]+):\\s*(.+)|\", $line, $m)) {\n unset($last_header);\n $h_name = 'HTTP_' . str_replace('-', '_', strtoupper($m[1]));\n $h_value = $m[2];\n\n if (isset($headers[$h_name])) {\n if (!is_array($headers[$h_name])) {\n $headers[$h_name] = array($headers[$h_name]);\n }\n\n $headers[$h_name][] = $h_value;\n } else {\n $headers[$h_name] = $h_value;\n }\n $last_header = $h_name;\n } elseif (preg_match(\"|^\\s+(.+)$|\", $line, $m) && $last_header !== null) {\n if (is_array($headers[$last_header])) {\n end($headers[$last_header]);\n $last_header_key = key($headers[$last_header]);\n $headers[$last_header][$last_header_key] .= $m[1];\n } else {\n $headers[$last_header] .= $m[1];\n }\n }\n }\n\n return $headers;\n }", "title": "" }, { "docid": "a08f33a693acfa1829c776b059f0e214", "score": "0.64318985", "text": "public function getHeaders(): void;", "title": "" }, { "docid": "cba97c7d9c3574d2acaaa54aff6dac9a", "score": "0.64228946", "text": "public function getRequestHeaders()\n {\n return [];\n }", "title": "" }, { "docid": "f2984a0a772ec6db00be3809c34177dd", "score": "0.6418911", "text": "protected function httpParseHeaders($raw_headers)\n {\n // ref/credit: http://php.net/manual/en/function.http-parse-headers.php#112986\n $headers = [];\n $key = '';\n\n foreach (explode(\"\\n\", $raw_headers) as $h) {\n $h = explode(':', $h, 2);\n\n if (isset($h[1])) {\n if (!isset($headers[$h[0]])) {\n $headers[$h[0]] = trim($h[1]);\n } elseif (is_array($headers[$h[0]])) {\n $headers[$h[0]] = array_merge($headers[$h[0]], [trim($h[1])]);\n } else {\n $headers[$h[0]] = array_merge([$headers[$h[0]]], [trim($h[1])]);\n }\n\n $key = $h[0];\n } else {\n if (substr($h[0], 0, 1) === \"\\t\") {\n $headers[$key] .= \"\\r\\n\\t\".trim($h[0]);\n } elseif (!$key) {\n $headers[0] = trim($h[0]);\n }\n trim($h[0]);\n }\n }\n\n return $headers;\n }", "title": "" }, { "docid": "72eae9c305d2a368b0ac92be843818f1", "score": "0.64170355", "text": "public function httpParseHeaders($rawHeaders)\n {\n if (is_array($rawHeaders)) {\n return $rawHeaders;\n }\n $headers = array();\n $key = '';\n\n foreach (explode(\"\\n\", $rawHeaders) as $header) {\n $header = explode(':', $header, 2);\n\n if (isset($header[1])) {\n if (!isset($headers[$header[0]]))\n $headers[$header[0]] = trim($header[1]);\n elseif (is_array($headers[$header[0]])) {\n $headers[$header[0]] = array_merge($headers[$header[0]], array(trim($header[1])));\n } else {\n $headers[$header[0]] = array_merge(array($headers[$header[0]]), array(trim($header[1])));\n }\n\n $key = $header[0];\n } else {\n if (substr($header[0], 0, 1) == \"\\t\")\n $headers[$key] .= \"\\r\\n\\t\" . trim($header[0]);\n elseif (!$key)\n $headers[0] = trim($header[0]);\n }\n }\n\n if (substr($headers[0], 0, 5) === 'HTTP/') {\n preg_match('/HTTP\\/([\\d.]+) ([0-9]+)(.*)/i', $headers[0], $matches);\n $this->protocolVersion = $matches[1];\n $this->code = (int) $matches[2];\n }\n return $headers;\n }", "title": "" }, { "docid": "a56c64885fe1c75a4e1d24e37e3d3853", "score": "0.6404322", "text": "public static function headers() {\n\t\tif ( function_exists( 'getallheaders' ) ) {\n\t\t\treturn getallheaders();\n\t\t}\n\t\t\n\t\t$headers = array();\n\t\t\n\t\tforeach( $_SERVER as $k => $v ) {\n\t\t\tif ( 0 === strpos( $k, 'HTTP_' ) ) {\n\t\t\t\t/**\n\t\t\t\t * Remove HTTP_ and turn turn '_' to spaces\n\t\t\t\t */\n\t\t\t\t$hd\t= str_replace( '_', ' ', substr( $k, 5 ) );\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * E.G. ACCEPT LANGUAGE to Accept-Language\n\t\t\t\t */\n\t\t\t\t$uw\t= ucwords( strtolower( $hd ) );\n\t\t\t\t$uw\t= str_replace( ' ', '-', $uw );\n\t\t\t\t\n\t\t\t\t$headers[ $uw ] = $v;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $headers;\n\t}", "title": "" }, { "docid": "a930a3ae369c5a08ee507bcb84fe0594", "score": "0.6390998", "text": "public static function get_headers() {\n\t\tif ( function_exists( 'apache_request_headers' ) ) {\n\t\t\t// We need this to get the actual Authorization header because apache tends\n\t\t\t// to tell us it doesn't exist.\n\t\t\t$headers = apache_request_headers();\n\n\t\t\t// Sanitize the output of apache_request_headers because we always want the\n\t\t\t// keys to be Cased-Like-This and arh() returns the headers in the same case\n\t\t\t// as they are in the request.\n\t\t\t$out = array();\n\t\t\tforeach ( $headers as $k => $v ) {\n\t\t\t\t$k = str_replace(\n\t\t\t\t\t' ',\n\t\t\t\t\t'-',\n\t\t\t\t\tucwords( strtolower( str_replace( '-', ' ', $k ) ) )\n\t\t\t\t);\n\t\t\t\t$out[$k] = $v;\n\t\t\t}\n\t\t} else {\n\t\t\t// Otherwise we don't have apache and are just going to have to hope that\n\t\t\t// $_SERVER actually contains what we need.\n\t\t\t$out = array();\n\t\t\tif ( isset( $_SERVER['CONTENT_TYPE'] ) )\n\t\t\t\t$out['Content-Type'] = $_SERVER['CONTENT_TYPE'];\n\t\t\tif ( isset( $_ENV['CONTENT_TYPE'] ) )\n\t\t\t\t$out['Content-Type'] = $_ENV['CONTENT_TYPE'];\n\n\t\t\tforeach ( $_SERVER as $k => $v ) {\n\t\t\t\tif ( substr( $k, 0, 5 ) == 'HTTP_' ) {\n\t\t\t\t\t// This is chaos, basically it is just there to capitalize the first\n\t\t\t\t\t// letter of every word that is not an initial HTTP and strip HTTP\n\t\t\t\t\t$k = str_replace(\n\t\t\t\t\t\t' ',\n\t\t\t\t\t\t'-',\n\t\t\t\t\t\tucwords( strtolower( str_replace( '_', ' ', substr( $k, 5 ) ) ) )\n\t\t\t\t\t);\n\t\t\t\t\t$out[$k] = $v;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $out;\n\t}", "title": "" }, { "docid": "8688b083839a90344b99115334d3872c", "score": "0.63908815", "text": "protected function getResponseHeaders($responseBody)\n {\n return [\n 'Cache-control' => 'no-store',\n 'Content-Type' => 'application/json; charset=UTF-8',\n 'Content-Length' => strlen($responseBody)\n ];\n }", "title": "" } ]
719e7b6b177a837fe1bff08146af9e56
Checks whether the given string is an integer number.
[ { "docid": "07f74c12c7b1137da6b4a3ebbd5d503d", "score": "0.7020774", "text": "public static function isInteger($value): bool\n {\n return filter_var($value, FILTER_VALIDATE_INT) !== false;\n }", "title": "" } ]
[ { "docid": "adc6a7d002393154c295f3c7c72da601", "score": "0.83347404", "text": "public static function is_integer($string)\n {\n return (preg_match(\"/^[0-9]+$/\", $string)) ? true : false;\n }", "title": "" }, { "docid": "1027ecc64a6502ac20aace73687bd247", "score": "0.8286623", "text": "function isInteger($input) {\n\treturn(ctype_digit(strval($input)));\n}", "title": "" }, { "docid": "626a7a7d2db18b284799cd2226333c73", "score": "0.80800533", "text": "public function Check_numbers($string){\n\t return preg_match( '/\\d/', $string );\n\t}", "title": "" }, { "docid": "970472df2c9c7cd87798cae8143fd229", "score": "0.80558085", "text": "public static function is_integer( $str ) {\n\n // todo: test if this check is necessary\n if ( ! $str ) {\n return $str === 0 || $str === \"0\";\n }\n\n // todo: test this...\n return ! preg_match( \"/[^0-9]/\", (string) $str );\n }", "title": "" }, { "docid": "021e3954612d75a195699c0f20eccda6", "score": "0.78998226", "text": "public static function isInteger($input){\n\t\t$pattern = \"/^[0-9]+$/\";\n\t\treturn preg_match($pattern,$input);\n\t}", "title": "" }, { "docid": "64efd757ca1373d9c1a628100b0d174a", "score": "0.75322485", "text": "function check_int($int){\n \n // First check if it's a numeric value as either a string or number\n if(is_numeric($int) === TRUE){\n \n // It's a number, but it has to be an integer\n if((int)$int == $int){\n\n return TRUE;\n \n // It's a number, but not an integer, so we fail\n }else{\n \n return FALSE;\n }\n \n // Not a number\n }else{\n \n return FALSE;\n }\n}", "title": "" }, { "docid": "684dd74724fb0a69908ff9cc5262466c", "score": "0.7471665", "text": "public static function isInteger($text)\n\t{\n\t\treturn ($text == \\strval(\\intval($text)));\n\t}", "title": "" }, { "docid": "c910b6f96459b62bac0e564341e5229f", "score": "0.7447842", "text": "function isAnInt( $n ) {\n\t\treturn is_numeric($n) and (string)(int)$n == (string)$n;\n\t}", "title": "" }, { "docid": "6935df8f97806e4f07a0eb2b4d9a0ec6", "score": "0.7400032", "text": "function isnumeric($str) {\n return (is_numeric($str));\n }", "title": "" }, { "docid": "4f486bcf14ee31ce2602648123e7fc0e", "score": "0.73790157", "text": "public static function isNumber($string) {\n\t\t// 123 or 123.456 or .123\n\t\treturn preg_match('/^(\\d+|(\\d*\\.\\d+))?$/', $string);\n\t}", "title": "" }, { "docid": "7386af56a14102301e65960b528bb9d3", "score": "0.73683965", "text": "public static function isNumericInt($value):bool{\n\t\treturn is_int($value) || is_string($value) && preg_match('#^-?[0-9]+\\z#',$value);\n\t}", "title": "" }, { "docid": "52811b758ca8e6c6deca8d7fedaeaca7", "score": "0.73548865", "text": "public function isInteger()\n {\n return $this->assertNullable(\n static function (string $value) {\n return \\ctype_digit($value);\n },\n 'is not an integer'\n );\n }", "title": "" }, { "docid": "ac64b23f0dba2d5b603f15dd9f55486d", "score": "0.73340213", "text": "private function is_num($string) {\n\n\t $american = '(-){0,1}([0-9]+)(,[0-9][0-9][0-9])*([.][0-9]){0,1}([0-9]*)';\n \t$world = '(-){0,1}([0-9]+)(.[0-9][0-9][0-9])*([,][0-9]){0,1}([0-9]*)';\n\n\t if(preg_match(\"/^($american)$|^($world)$/\",$string)) {\n \t return(true);\n\t } else {\n \t return(false);\n\t }\n \treturn(false);\n\t}", "title": "" }, { "docid": "14285e46d2399140826d1ec7dd9c238c", "score": "0.7320533", "text": "function IsInt($String){\n\t// @param $String - string to check\n\t// @return boolean - whether the string is an integer or not\n\treturn (string)(int)$String == $String;\n}", "title": "" }, { "docid": "989015c466d6b2d7831bb3105aca868d", "score": "0.73015624", "text": "function isInt($v): bool {\n\treturn is_int($v) ||\n\t\t(is_string($v) && preg_match('~^\\d+$~', $v) > 0);\n}", "title": "" }, { "docid": "b14fad4379237e2f4f291514894d36f9", "score": "0.7299196", "text": "private function is_integer($v) {\n return (strspn($v, \"0123456789-\") == strlen($v));\n }", "title": "" }, { "docid": "f854c435d9e31d91d17752e5268cc136", "score": "0.72480077", "text": "function isDigits($str)\n {\n $pattern = '/^[0-9]+$/';\n return preg_match($pattern, $str);\n }", "title": "" }, { "docid": "bf7e8eda3feff9a7f8b524418d11caed", "score": "0.7198137", "text": "function has_numbers($str) {\n\t\t$hasNum = false;\n\t\t$strArray = str_split($str);\n\t\tforeach ($strArray as $char) {\n\t\t\tif (is_numeric($char)) {\n\t\t\t\t$hasNum = true;\n\t\t\t}\n\t\t}\n\t\treturn $hasNum;\n\t}", "title": "" }, { "docid": "fefa9663391c6da6b868e825f5e3d89d", "score": "0.7159784", "text": "function has_integer($var){\n\tif(is_int($var))\n\t\treturn true;\n\telse if(is_string($var)){\n\t\tif(preg_match('/^[0-9]*$/', $var))\n\t\t\treturn true;\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "0177f0f8e7d0e046cca16eff070d1967", "score": "0.7141545", "text": "function hasNumber ($str) {\n\n if (preg_match('#[0-9]#',$str))\n return true;\n else\n return false;\n}", "title": "" }, { "docid": "4cb349b611f3daa7e0c79b3023932a98", "score": "0.71138215", "text": "public static function isInteger($value)\n {\n if (!is_scalar($value) || is_float($value)) {\n return false;\n }\n if (is_int($value)) {\n return true;\n }\n\n return (bool)preg_match('/^-?[0-9]+$/', $value);\n }", "title": "" }, { "docid": "68ff2d8eda8eee9ae2b9ea2892379efe", "score": "0.70960194", "text": "function parse_int($str_value)\n{\n $str_value = trim($str_value);\n\n // Make sure all digits\n if (preg_match(\"/^\\d+$/\", $str_value) === FALSE)\n {\n return FALSE;\n }\n\n // Make sure valid integer\n if (\n filter_var(\n $str_value,\n FILTER_VALIDATE_INT,\n array(\n 'options' => array(\n 'decimal' => TRUE,\n 'min_range' => PHP_INT_MIN,\n 'max_range' => PHP_INT_MAX\n )\n )\n ) === FALSE\n )\n {\n return FALSE;\n }\n\n return intval($str_value);\n}", "title": "" }, { "docid": "595a2f3435b95997b7f4c219ed9bae63", "score": "0.7003346", "text": "function validateInteger($value) {\n if (!$value || (is_string($value) && !trim($value))) {\n return true;\n }\n $integer = intval($value);\n $string = strval($integer);\n return $string == $value;\n }", "title": "" }, { "docid": "8140dc7d10dd6e6e83d6f5e2f47f62f2", "score": "0.69682807", "text": "function is_numeric ($var) {}", "title": "" }, { "docid": "65a5d8cfec7a1840816155f3b6ed9c92", "score": "0.6916653", "text": "function verifyNumeric ($testString) {\n\treturn (is_numeric ($testString));\n}", "title": "" }, { "docid": "3af852a3d574bdd411db3357c58e2da2", "score": "0.68960625", "text": "function parseInt($string) {\n//\treturn intval($string);\n\tif(preg_match('/(\\d+)/', $string, $array)) {\n\t\treturn $array[1];\n\t} else {\n\t\treturn 0;\n\t}\n}", "title": "" }, { "docid": "494bb8e78a291dd3544d647890e8af7a", "score": "0.6889811", "text": "function is_integer($var)\n{\n}", "title": "" }, { "docid": "1c8363b69f67aeb62a146687d79a89c8", "score": "0.6885303", "text": "function isStringContainsDigits($string)\n{\n $pattern = '/\\d/';\n preg_match($pattern, $string, $matches);\n if ($matches) {\n return true;\n }\n\n return false;\n}", "title": "" }, { "docid": "ada61a18638a0f41ade35969b951880b", "score": "0.68852293", "text": "function _numeric ( $str = '' )\n\t{\n\t\tif ( $str == '' OR preg_match( '/[^0-9]/', $str ) != 0 )\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "53024fc43f6f8da6ca14c3f7d6437c2a", "score": "0.68776035", "text": "public function isInteger(): bool\n {\n return \\is_int($this->value);\n }", "title": "" }, { "docid": "77f4069f58335eea19fd2bfe339442ef", "score": "0.6874351", "text": "public static function INT ($param) {return \\is_numeric($param);}", "title": "" }, { "docid": "a973058c53b9b48eb5f0314f1121736c", "score": "0.68066597", "text": "static function isInteger( $mx_value )\r\n {\r\n if(!DataValidator::isNumeric($mx_value))\r\n return false;\r\n \r\n if(preg_match('/[[:punct:]&^-]/', $mx_value) > 0)\r\n return false;\r\n return true;\r\n }", "title": "" }, { "docid": "7c8f9b87b17088c27a7c28b0289115e8", "score": "0.678667", "text": "function isInt($var)\n\t\t\t{\n\t\t\t\t// meant to be an analogy to PHP's is_numeric()\n\t\t\t\tif (is_int($var)) return TRUE;\n\t\t\t\tif (is_string($var) && $var === (string)(int) $var) return TRUE;\n\t\t\t\t//if (is_float($var) and $var === (float)(int) $var) return TRUE;\n\t\t\t\telse return FALSE;\n\t\t\t}", "title": "" }, { "docid": "647a46a5415a11095c3062489213d8af", "score": "0.6759571", "text": "private function validateNumeric($input)\n {\n return preg_match('/^[0-9]+$/', $input, $matches) > 0;\n }", "title": "" }, { "docid": "3348cc54696cdb35c46bc5b9a45cdefd", "score": "0.675577", "text": "function check_int($i) {\n\tif (@ereg(\"^[0-9]+[.]?[0-9]*$\", $i, $p))\n\treturn 1;\n\telse\n\treturn 0;\n}", "title": "" }, { "docid": "c442110209fb4c7d16ffe5ac86300a5b", "score": "0.6743703", "text": "function is_int ($var) {}", "title": "" }, { "docid": "fe5db605341ac8fd5f96a681eeb1ab14", "score": "0.6710449", "text": "protected static function canBeInterpretedAsInteger($var)\n {\n if ($var === '' || is_object($var) || is_array($var)) {\n return FALSE;\n }\n return (string)(int)$var === (string)$var;\n }", "title": "" }, { "docid": "23da0b582eb08a8fe3ce44f98bbe26fb", "score": "0.6702053", "text": "public static function Numeric($str) {\n return (is_numeric($str) && preg_match('/^[-0-9.]+$/D', (string) $str));\n }", "title": "" }, { "docid": "60cbdc3e9b51e5dfcca94d9a04507d97", "score": "0.66792303", "text": "function ctype_digit($text) {\n if(!is_string($text)) return false; #FIXME original treats between -128 and 255 inclusive as ASCII chars\n if(preg_match('/^\\d+$/', $text)) return true;\n return false;\n }", "title": "" }, { "docid": "8a1ab4ee82d99d0322bdb47aadf35809", "score": "0.6669058", "text": "public function isNumberOrDigit(string $text): bool\n {\n return \\is_string($text) && '' !== $text && !preg_match('/[^0-9]/', $text);\n }", "title": "" }, { "docid": "bab9330f5b9413004f83036a65510d66", "score": "0.6629544", "text": "function is_int($var)\n{\n}", "title": "" }, { "docid": "644a78181235df4240b21e7af68752ad", "score": "0.661781", "text": "public static function isNumber( $number )\n\t\t{\n\t\t\treturn ( true == preg_match( '/^\\d+$/', $number ) );\n\t\t}", "title": "" }, { "docid": "e52e1b05669239598564c5e96aad6e24", "score": "0.6590575", "text": "public function isAnInteger()\n {\n $this->failIf(!is_int($this->data[0]));\n }", "title": "" }, { "docid": "e62e54e7dabc2d86c0ecbcf4b4de442f", "score": "0.65802616", "text": "public function isInteger(): bool\n\t{\n\t\ttry {\n\t\t\t$this->_number->toScale(0);\n\n\t\t\treturn true;\n\t\t} catch (RoundingNecessaryException) {\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "270071782e730b7cebe17c116c29c4b1", "score": "0.6574494", "text": "protected function checkInt($field)\n {\n\t\tif (ctype_digit((string) $field['value']))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->reportError($field, 'value_is_not_integer');\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "2479930b95b41be58f9499b0f973ed77", "score": "0.6558075", "text": "public function isNumeric(): bool\n {\n return \\is_numeric($this->str);\n }", "title": "" }, { "docid": "8ad5c46d90a63c21d9908648b67c0e3f", "score": "0.6553073", "text": "public static function getIntegerValues(string $string): int\n {\n return (int) filter_var($string, FILTER_SANITIZE_NUMBER_INT);\n }", "title": "" }, { "docid": "3b31372fdee801660f4ea3607e1fa419", "score": "0.65398264", "text": "public function isInteger($possibleInteger)\n {\n if(preg_match('/^\\d+$/',$possibleInteger) == FALSE)\n {\n return FALSE;\n }\n return TRUE;\n }", "title": "" }, { "docid": "5aa89669dce23ae06585a4edc80cb090", "score": "0.6532987", "text": "function validateInt($supposedNumber)\n{\n return filter_var($supposedNumber, FILTER_SANITIZE_NUMBER_INT);\n}", "title": "" }, { "docid": "2b9c9778be01c09f49344ac96ce87d4c", "score": "0.6531453", "text": "public function isNumericData($data)\n { \n $errFlag = 1;\n if(preg_match('/^\\d+$/',$data))\n $errFlag = 0;\n return $errFlag;\n }", "title": "" }, { "docid": "b610b4157b46e79f6897e1c5567f370c", "score": "0.65265024", "text": "function onlyNumbers($string){\n //Esta função limpa a url e conserva apenas os numeros \n $string = preg_replace(\"/[^0-9]/\", \"\", $string); \n return (int) $string; \n }", "title": "" }, { "docid": "23e2643b6fd510d02abe902386163c53", "score": "0.6517689", "text": "protected function validateInt($value)\n {\n return is_numeric($value);\n }", "title": "" }, { "docid": "5eb6968977b672c8f32b19ff166bb65c", "score": "0.64482886", "text": "public static function containsInt($var)\n {\n return filter_var($var, FILTER_VALIDATE_INT) !== false;\n }", "title": "" }, { "docid": "54765b2f7a360a0619bf44d2e0eac06f", "score": "0.64351475", "text": "function verifyNum ($testString) {\r\n return (preg_match('/^([[:digit:]])+$/', $testString)); \r\n}", "title": "" }, { "docid": "a1ec5ca7bf8db1e9adf9df989db9d51e", "score": "0.6432369", "text": "function netpublish_is_intval ($val) {\n if (preg_match(\"/^(\\d+)?$/\", $val)) {\n return true;\n }\n\n // no floating point numbers\n if (preg_match(\"/^(\\d+)?\\.(\\d+)$/\", $val)) {\n return false;\n }\n // No letters\n if (preg_match(\"/^\\D+/\", $val)) {\n return false;\n }\n\n return false;\n\n}", "title": "" }, { "docid": "2b03cf915f617b5afa97b7f2e93bdb0d", "score": "0.6432351", "text": "function ValidateInt ($theint)\n {\n $theint = trim ($theint); // ensure no leading spaces etc.\n\n // look for leading sign\n if (strlen ($theint) > 0 && ($theint [0] == '+' || $theint [0] == '-'))\n $theint = substr ($theint, 1); // remove sign\n if (!strlen ($theint) || !preg_match (\"|^[0-9]+$|\", $theint))\n return \"Field must be numeric\";\n }", "title": "" }, { "docid": "d4a773f294da2870dd254be78d3850b2", "score": "0.6431303", "text": "public function is_natural($str)\n\t{\n\t\treturn (bool) preg_match( '/^[0-9]+$/', $str);\n\t}", "title": "" }, { "docid": "5b28f98f04cf10639d20f27e52ae8688", "score": "0.6424535", "text": "function intcheck($int)\n\t{\n\t\tif(is_numeric($int) === TRUE)\n\t\t{\n if((int)$int == $int)\n\t\t\t{\n\t\t\t\treturn 1;\n }\n\t\t\telse\n\t\t\t{\n\t\t\t\t\n return 0;\n }\n \n\t\t}\n\t\telse\n\t\t{\n \n return 0;\n }\n }", "title": "" }, { "docid": "f7f2c5a9a378af327a8dfcc1732cdd1b", "score": "0.6411809", "text": "protected function intCheck($integer)\n {\n if($integer == null || $integer == \"\"){\n $integer = -1;\n }\n return ((int)$integer);\n }", "title": "" }, { "docid": "fdb0b0e1b7333749d75cf5885b8b086c", "score": "0.64029676", "text": "function is_natural($str)\n\t{\n\t\treturn (bool) preg_match( '/^[0-9]+$/', $str);\n\t}", "title": "" }, { "docid": "4835992f8adf053d3d55a70f3551f226", "score": "0.6364528", "text": "function ctype_digit ($text) {}", "title": "" }, { "docid": "8741f6f3bd9f0405306306842b492e32", "score": "0.63589215", "text": "static function isInteger($mx_value) {\n\n self::$Data = $mx_value;\n\n if (!self::isNumeric(self::$Data))\n return false;\n\n if (preg_match('/[[:punct:]&^-]/', self::$Data) > 0)\n return false;\n return true;\n }", "title": "" }, { "docid": "eacf53b391f4ebe4f6313008d0b33374", "score": "0.6341192", "text": "public function isValidDigit($input)\n {\n return (bool) (! empty($input) && preg_match('/^[0-9]+$/', \"$input\"));\n }", "title": "" }, { "docid": "9ffb8142671fdd20e6a2544bc062cbc6", "score": "0.6334829", "text": "public function isInt($val, $prm=null) {\r\n\t\tif (!is_numeric($val) || $val != (int)$val) {\r\n\t\t\t$this->errors[] = sprintf($this->getMessage('int'), $this->cfg->label);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "74a242c517548b6c3b596e7aa491c1b0", "score": "0.6329913", "text": "private function isNumeric($number)\n {\n return is_numeric($number);\n }", "title": "" }, { "docid": "b8aa4b85976de468f867de4cbe62e150", "score": "0.6329588", "text": "function _is_natural($str)\n\t{ \n\t\treturn (bool)preg_match( '/^[0-9]+$/', $str);\n\t}", "title": "" }, { "docid": "39239341bb054abe517bed87ecbfbabf", "score": "0.63252", "text": "public static function numeric(string $str, string $encoding = null) : bool\n {\n return static::matchesPattern($str, '^[[:digit:]]*$', $encoding);\n }", "title": "" }, { "docid": "0b190b564cfe2107f7a89463aa6c205a", "score": "0.6322684", "text": "public function test_is_number() {\n $this->\n assert_true(Core_types::is_number($zero = 0))->\n assert_true(Core_types::is_number($zero_str = '0'))->\n assert_false(Core_types::is_number($str = '0a'));\n }", "title": "" }, { "docid": "793beeb841dcdb61c54a5962225ddc6e", "score": "0.6311573", "text": "function validateInt($input) {\n if (!is_array($input)) {\n $input = array($input);\n }\n\n $status = true;\n foreach ($input as $value) {\n $d = (is_numeric($value) && !empty($value));\n if (!$d) {\n $status = false;\n }\n }\n\n return $status;\n}", "title": "" }, { "docid": "63f42fd32e2cecdc9d2e13c02c982800", "score": "0.63052785", "text": "function testsocmt($s){\n $s=$s.\"\";\n for($i=0;$i<strlen($s);$i++){\n if(!is_numeric($s[$i])){\n return false;\n }\n }\n return true;\n}", "title": "" }, { "docid": "ede9e11a9929ba3646f4e584accc87b7", "score": "0.6301294", "text": "public function check($value) {\n\t\tif (!preg_match('/^[0-9]*$/',$value,$m) != 0) {\n\t\t\t$this->message = '\\''.$value.'\\' is not an integer';\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\t$this->message = \"\";\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "ceaf7978dd2ca655aef0214c5d8742f5", "score": "0.6288148", "text": "private function checkInt($item)\n {\n if($this->checkNumeric($item)){\n return is_int((int)$item);\n }\n return false;\n }", "title": "" }, { "docid": "da8422405ac7245364964d893d6d22ad", "score": "0.62825406", "text": "public static function checkNumber($data){\n foreach ($data as $datum)\n if (!is_numeric($datum)) return false;\n return true;\n }", "title": "" }, { "docid": "d2c0decde70b70d28cb0e87a0ed12d99", "score": "0.62805194", "text": "public static function oneNumber(?string $testSting): bool{\n return preg_match(\n \"/^.*[\\d].*$/\", // at least one number\n $testSting\n ); \n }", "title": "" }, { "docid": "8d28136e4a854b74d87869c1a09836cb", "score": "0.62743396", "text": "static function isNum($num) {\n\t\tif(!is_int($num)) {\n\t\t\tthrow new Exception(\"Argument must be of type integer\");\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "79e44532e794c54279d216df257ec303", "score": "0.62648827", "text": "public static function IsValidInt($int)\n {\n return is_int($int) || ((string)intval($int)) === $int;\n }", "title": "" }, { "docid": "8cdb5eaf500ab3cfb911184691503d15", "score": "0.6260181", "text": "public static function getInt()\n {\n /**\n * validating the string is integer or not\n */\n fscanf(STDIN,\"%s\",$integer); \n while (!is_numeric($integer) || $integer >(int) $integer )\n {\n echo \"invalid input\";\n fscanf(STDIN,\"%s\",$integer);\n }\n return $integer;\n }", "title": "" }, { "docid": "e091c5a08f3536309554d499172c4b48", "score": "0.6246764", "text": "private function isInteger($suspect) : bool\n {\n return is_int($suspect);\n }", "title": "" }, { "docid": "33d2815903e0357a2fb258d440f093fe", "score": "0.6214836", "text": "public static function isValidNumericId($id)\n {\n if (!is_numeric($id)) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "97695d7e476b55323fab83889937e66a", "score": "0.6198947", "text": "function is_natural($str)\n\t{ \n \t\treturn (bool)preg_match( '/^[0-9]+$/', $str);\n\t}", "title": "" }, { "docid": "8defcc8f59777f84c21d15c1b291bf4c", "score": "0.61921495", "text": "public static function isDigit($value){\n return self::Digit( $value );\n }", "title": "" }, { "docid": "05e3cae0c61dcfe85f50659ec892f2fc", "score": "0.61839277", "text": "protected static function hasNumber(string $field, string $value)\n {\n $result = false;\n\n foreach (str_split($value) as $symbol) {\n if (is_numeric($symbol)) {\n $result = true;\n }\n }\n\n if (!$result) {\n return $field . ' must contain at least one number.';\n }\n\n return false;\n }", "title": "" }, { "docid": "7fe8ce81cacc8cc43ae68ad80502fcd3", "score": "0.61751807", "text": "public function isDigit($var = null) {\n \treturn (is_int($var) || (is_string($var) && preg_match('/\\d+$/', $var)));\n }", "title": "" }, { "docid": "6245f4c77529dbf6f83e6144fa531304", "score": "0.61449015", "text": "public static function canBeInterpretedAsInteger($var) {\n\n\t\tif (class_exists('t3lib_utility_Math')) {\n\t\t\t$result = t3lib_utility_Math::canBeInterpretedAsInteger($var);\n\t\t} else {\n\t\t\t$result = t3lib_div::testInt($var);\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "92ace357e39b0fdf498c6db529d798a9", "score": "0.6144281", "text": "public function testSanitizeIntegerStringNumber()\n {\n $this->specify(\n \"sanitizing string number with int filter not correct\",\n function () {\n $this->sanitizer('int', '1000', '1000');\n }\n );\n }", "title": "" }, { "docid": "e53dff364a68512077ffca5c59e1c180", "score": "0.61410964", "text": "public static function isNatural($string)\n {\n return (bool)ctype_digit((string)$string);\n }", "title": "" }, { "docid": "bf5ceb0e3ca786adf516ee350fa8c2af", "score": "0.611775", "text": "public function test_json_parse_numeric(): void {\n\n $string = '123456789';\n\n $result = json_parse_numeric($string);\n\n self::assertIsInt($result);\n }", "title": "" }, { "docid": "367b1fa92cd37d744a49fcc9e730e5d2", "score": "0.611485", "text": "private function isDigit($value)\n {\n return is_numeric($value) ? intval($value) == $value : false;\n }", "title": "" }, { "docid": "2013d72116c9e87e9f8b1ee3bfb92bc6", "score": "0.6099", "text": "protected function is_digit($entry)\n {\n if (!ctype_digit($entry)) {\n $entry = -1;\n }\n return (int)$entry;\n }", "title": "" }, { "docid": "3227c5b4d1b551a10e8e2a24154bce6f", "score": "0.6087311", "text": "public function isInteger()\n {\n return (1 === $this->getDenominator());\n }", "title": "" }, { "docid": "cfd6ea4a2747d99004d01ac18ec9e8ea", "score": "0.608083", "text": "function isNumericCheck($num){\n\tif (is_numeric($num) && ((int)$num == $num)){\n\t\treturn true;\n\t}\n\telse{\n\t\techo '<h3>' .htmlspecialchars($num) . ' is an invalid query string</h3>';\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "0374a557026bd48c3858b30de8a7790f", "score": "0.6074683", "text": "public function getNumberFromString($str)\n {\n if (!$str) {\n return 0;\n }\n\n return (int)filter_var($str, FILTER_SANITIZE_NUMBER_INT);\n }", "title": "" }, { "docid": "3efee88f1586a36fd33235f74da1eb47", "score": "0.6071098", "text": "public static function validateNumber($p_input)\n\t{\n\t\tif (is_numeric($p_input)) {\n\t\t\treturn TRUE;\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "80af3e533f08d795eeff3c38c53fd29d", "score": "0.60706323", "text": "function int($s)\n {\n return preg_replace(\"/[^0-9]/\", '', $s); \n }", "title": "" }, { "docid": "ad856f88efb06d2236ee20ea1edbc8e5", "score": "0.6055036", "text": "public static function is_valid_decoded($string)\r\n {\r\n return ctype_digit($string) && !preg_match('/[2-9]+/', $string);\r\n }", "title": "" }, { "docid": "845431f6282616a3265dd1a5a02f4d25", "score": "0.6052784", "text": "public function isValid($value){\n return ctype_digit($value);\n }", "title": "" }, { "docid": "338aa7b2a421d712aa13dc3176b31baf", "score": "0.6041627", "text": "public function validateInteger($attribute, $value): bool\n {\n if (!filter_var($value, FILTER_VALIDATE_INT, ['options' => ['min_range' => 0]])) {\n throw new Exception(\"{$attribute} must be integer! {$value} defined!\");\n }\n\n return true;\n }", "title": "" }, { "docid": "dd6943d59795f47fa4a6c4298e0e69a1", "score": "0.6040494", "text": "function is_number($var): bool\n{\n return is_int($var) || is_float($var);\n}", "title": "" }, { "docid": "1340d73eeaa8e64636c9259699ec8bf6", "score": "0.6029392", "text": "public static function getInt()\n {\n /** validating the string is integer or not */\n fscanf(STDIN, \"%s\", $integer);\n while (!is_numeric($integer) || $integer > (int) $integer) {\n echo \"invalid input\";\n fscanf(STDIN, \"%s\", $integer);\n }\n /** returning the value. */\n return $integer;\n }", "title": "" }, { "docid": "32bdc3ce10ac15f9ce80aa9b2eaace04", "score": "0.60290194", "text": "public function checkForNumber($value)\n {\n if (!(is_int($value))) {\n return $value;\n }\n }", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "bda317dcbd6f4a00f739e4574a5ace45", "score": "0.0", "text": "public function show($id)\n {\n if (Gate::denies('ADVERTISER_COMPANIES')) {\n abort(403);\n }\n\n return view('admin.advertisercompanies.show')\n ->with([\n 'title' => 'Advertiser company',\n 'districts' => $this->districts_rep->getAllNoPagination(),\n 'countries' => $this->countries_rep->getAll(),\n 'article' => $this->advert_comp_rep->getCompanyById($id),\n 'industries' => $this->industries_advert_comp_rep->getAllNoPagination()\n\n ]);\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.81890994", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e5152a75698da8d87238a93648112fcf", "score": "0.7289603", "text": "function display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->fetch($resource_name, $cache_id, $compile_id, true);\n }", "title": "" }, { "docid": "03308cdf1f3eb0c47d8f3059a2a11231", "score": "0.70633125", "text": "public function show(Resource $resource)\n {\n app('App\\Http\\Controllers\\ViewsController')->resourceView($resource);\n\n return view('resources.show', compact('resource'));\n }", "title": "" }, { "docid": "d7820004a578ddc16d57dff08d715ef0", "score": "0.70199984", "text": "public function showResource()\n\t{\n\t\treturn view('resources.list')->with('resources', Resources::all());\n\t}", "title": "" }, { "docid": "426f9c78118dbbe009edc89fcf8571df", "score": "0.6746957", "text": "public function show(Resource $resource)\n {\n //\n\t\t\t\treturn response()->json($resource);\n }", "title": "" }, { "docid": "921410ad408e73391c76fba66fc4ab57", "score": "0.652826", "text": "function display() {\n global $CFG, $THEME, $USER;\n\n require_once($CFG->libdir.'/filelib.php');\n\n /// Set up generic stuff first, including checking for access\n parent::display();\n\n /// Set up some shorthand variables\n $cm = $this->cm;\n $course = $this->course;\n $resource = $this->resource;\n\n /// Fetch parameters\n $inpopup = optional_param('inpopup', 0, PARAM_BOOL);\n $page = optional_param('page', 0, PARAM_INT);\n $frameset= optional_param('frameset', '', PARAM_ALPHA);\n\n /// Init some variables\n $errorcode = 0;\n $buttontext = 0;\n $querystring = '';\n $resourcetype = '';\n $mimetype = mimeinfo(\"type\", $resource->reference);\n $pagetitle = strip_tags($course->shortname.': '.format_string($resource->name));\n\n $formatoptions = new object();\n $formatoptions->noclean = true;\n\n /// Cache this per request\n static $items;\n\n /// Check for errors\n $errorcode = $this->check4errors($resource->reference, $course, $resource);\n\n /// If there are any error, show it instead of the resource page\n if ($errorcode) {\n if (!has_capability('moodle/course:activityvisibility', get_context_instance(CONTEXT_COURSE, $course->id))) {\n /// Resource not available page\n $errortext = get_string('resourcenotavailable','resource');\n } else {\n /// Depending of the error, show different messages and pages\n if ($errorcode ==1) {\n $errortext = get_string('invalidfiletype','error', $resource->reference);\n } else if ($errorcode == 2) {\n $errortext = get_string('filenotfound','error', $resource->reference);\n } else if ($errorcode == 3) {\n $errortext = get_string('packagenotdeplyed','resource');\n } else if ($errorcode == 4) {\n $errortext = get_string('packagechanged','resource');\n } else if ($errorcode == 5) {\n $errortext = get_string('packagenotdeplyed','resource'); // no button though since from repository.\n }\n }\n /// Display the error and exit\n if ($inpopup) {\n print_header($pagetitle, $course->fullname.' : '.$resource->name);\n } else {\n print_header($pagetitle, $course->fullname, \"$this->navigation \".format_string($resource->name), \"\", \"\", true, update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm));\n }\n print_simple_box_start('center', '60%');\n echo '<p align=\"center\">'.$errortext.'</p>';\n /// If errors were 3 or 4 and isteacheredit(), show the deploy button\n if (has_capability('moodle/course:manageactivities', get_context_instance(CONTEXT_COURSE, $course->id)) && ($errorcode == 3 || $errorcode == 4)) {\n $link = 'type/ims/deploy.php';\n $options['courseid'] = $course->id;\n $options['cmid'] = $cm->id;\n $options['file'] = $resource->reference;\n $options['sesskey'] = $USER->sesskey;\n $options['inpopup'] = $inpopup;\n if ($errorcode == 3) {\n $label = get_string ('deploy', 'resource');\n } else if ($errorcode == 4) {\n $label = get_string ('redeploy', 'resource');\n }\n $method='post';\n /// Let's go with the button\n echo '<center>';\n print_single_button($link, $options, $label, $method);\n echo '</center>';\n }\n print_simple_box_end();\n /// Close button if inpopup\n if ($inpopup) {\n close_window_button();\n }\n\n print_footer();\n exit;\n }\n\n /// Load serialized IMS CP index to memory only once.\n if (empty($items)) {\n if (!$this->isrepository) {\n $resourcedir = $CFG->dataroot.'/'.$course->id.'/'.$CFG->moddata.'/resource/'.$resource->id;\n }\n else {\n $resourcedir = $CFG->repository . $resource->reference;\n }\n if (!$items = ims_load_serialized_file($resourcedir.'/moodle_inx.ser')) {\n error (get_string('errorreadingfile', 'error', 'moodle_inx.ser'));\n }\n }\n\n /// Check whether this is supposed to be a popup, but was called directly\n\n if (empty($frameset) && $resource->popup && !$inpopup) { /// Make a page and a pop-up window\n\n print_header($pagetitle, $course->fullname, \"$this->navigation \".format_string($resource->name), \"\", \"\", true, update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm));\n\n echo \"\\n<script type=\\\"text/javascript\\\">\";\n echo \"\\n<!--\\n\";\n echo \"openpopup('/mod/resource/view.php?inpopup=true&id={$cm->id}','resource{$resource->id}','{$resource->popup}');\\n\";\n echo \"\\n-->\\n\";\n echo '</script>';\n\n if (trim(strip_tags($resource->summary))) {\n print_simple_box(format_text($resource->summary, FORMAT_MOODLE, $formatoptions), \"center\");\n }\n\n $link = \"<a href=\\\"$CFG->wwwroot/mod/resource/view.php?inpopup=true&amp;id={$cm->id}\\\" target=\\\"resource{$resource->id}\\\" onclick=\\\"return openpopup('/mod/resource/view.php?inpopup=true&amp;id={$cm->id}', 'resource{$resource->id}','{$resource->popup}');\\\">\".format_string($resource->name,true).\"</a>\";\n\n echo \"<p>&nbsp;</p>\";\n echo '<p align=\"center\">';\n print_string('popupresource', 'resource');\n echo '<br />';\n print_string('popupresourcelink', 'resource', $link);\n echo \"</p>\";\n\n print_footer($course);\n exit;\n }\n\n\n /// No frames or framesets anymore, except iframe. in print_ims, iframe filled.\n /// needs callback to this file to display table of contents in the iframe so\n /// $frameset = 'toc' leads to output of toc and blank or 'ims' produces the\n /// iframe.\n if (empty($frameset) || $frameset=='ims') {\n\n /// Conditional argument to pass to IMS JavaScript. Need to be global to retrieve it from our custom javascript! :-(\n global $jsarg;\n $jsarg = 'false';\n if (!empty($this->parameters->navigationmenu)) {\n $jsarg = 'true';\n }\n /// Define $CFG->javascript to use our custom javascript. Save the original one to add it from ours. Global too! :-(\n global $standard_javascript;\n $standard_javascript = $CFG->javascript; // Save original javascript file\n $CFG->javascript = $CFG->dirroot.'/mod/resource/type/ims/javascript.php'; //Use our custom IMS javascript code\n\n /// moodle header\n if ($resource->popup) {\n //print_header($pagetitle, $course->fullname.' : '.$resource->name);\n print_header();\n } else {\n print_header($pagetitle, $course->fullname, \"$this->navigation \".format_string($resource->name), \"\", \"\", true, update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm, \"parent\"));\n }\n /// content - this produces everything else\n $this->print_ims($cm, $course, $items, $resource, $page);\n /// Moodle footer is back! Now using the DOMContentLoaded event (see resize.js) to trigger the resize\n /// no Moodle footer (because we cannot insert there the resize script).\n /// echo \"</div></div><script type=\\\"text/javascript\\\">resizeiframe($jsarg);</script></body></html>\";\n /// print_footer();\n echo \"</div></div></body></html>\";\n\n /// log it.\n add_to_log($course->id, \"resource\", \"view\", \"view.php?id={$cm->id}\", $resource->id, $cm->id);\n exit;\n }\n\n if ($frameset == 'toc') {\n print_header();\n $this->print_toc($items, $resource, $page);\n echo '</div></div></body></html>';\n exit;\n }\n }", "title": "" }, { "docid": "b08b6bb501370e4c42f069ea734388a0", "score": "0.6495431", "text": "public function get($resource);", "title": "" }, { "docid": "dd518b422828ccdfc7b932a34e62225d", "score": "0.62720305", "text": "public function show(Resource $resource)\n {\n return response()->json($resource);\n \n }", "title": "" }, { "docid": "51a1c3499847de81938cf22e3e336bf2", "score": "0.62216705", "text": "public function getAction()\n {\n \t/**\n \t * @todo handle error cases and return an error, return valid users ondly\n \t */\n \t$id = $this->_request->getParam('id');\n \t$result = $this->_table->find($id);\n \t$this->view->resource = $result->current();\n }", "title": "" }, { "docid": "04d35d47081d101fff17d30acb1f2178", "score": "0.6141725", "text": "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(SugarAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "title": "" }, { "docid": "556fa9c7c8b0bbfca3848834f795e687", "score": "0.61210257", "text": "public function displayAction($id)\n { }", "title": "" }, { "docid": "0243c17e457a131b89a485445f1cee26", "score": "0.6074994", "text": "public function show()\n {\n $this->getView($this->view_name);\n }", "title": "" }, { "docid": "f0d6bc8f87110dac3699808a11a93b8f", "score": "0.6055501", "text": "public function render()\n {\n $this->bindResource($this->resource);\n return parent::render();\n }", "title": "" }, { "docid": "02d611037299aac573636734fd64f517", "score": "0.5998371", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n ); \n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams());\n\n // test if input is valid\n // retrieve requested record\n // attach to view\n if ($input->isValid()) {\n $q = Doctrine_Query::create()\n ->from('Tripjacks_Model_League l')\n ->where('l.leagueid = ?', $input->id);\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->league = $result[0]; \n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404); \n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input'); \n }\n }", "title": "" }, { "docid": "7b8f897ba2297696b69f6d8202444107", "score": "0.59521806", "text": "public function displayAction()\n {\n $params = $this->dispatcher->getParams();\n if (isset($params[0]) && $firewall = Firewalls::findFirst(intval($params[0]) ? $params[0] : ['name=:name:', 'bind' => ['name' => $params[0]]])) {\n echo Las::display($firewall->name);\n }\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.59518087", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "89b549ed67b4702bbd94de618931239c", "score": "0.59511554", "text": "public function show()\n {\n echo $this->render();\n }", "title": "" }, { "docid": "d8bcb4a6a484fbd4595bf60c13751c5f", "score": "0.59199905", "text": "public function display()\n {\n $this->_getAdapter()->display();\n }", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.5908002", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.5908002", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "4e4b4802386aefba7de0e06d94dac1a8", "score": "0.5862339", "text": "public function viewResources($resourceid='')\n {\n $resourceid = db::escapechars($resourceid);\n \n $sql = \"SELECT * FROM kidschurchresources ORDER BY resourceName ASC\";\n $resources = db::returnallrows($sql);\n if(count($resources) > 0){\n $resourceOutput = \"<table class=\\\"memberTable\\\"><tr><th>ID</th><th>Name</th><th>Description</th><th>Type</th><th>Quantity</th><th>Task</th></tr>\";\n foreach($resources as $resource){\n if($resource['resourceID'] == $resourceid){\n $resourceOutput .= \"<tr class=\\\"highlight\\\">\";\n }\n else{\n $resourceOutput .= \"<tr>\";\n }\n $resourceOutput .= \"<td>\".$resource['resourceID'].\"</td>\";\n $resourceOutput .= \"<td>\".$resource['resourceName'].\"</td>\";\n $resourceOutput .= \"<td>\".$resource['resourceDescription'].\"</td>\";\n $resourceOutput .= \"<td>\".$resource['resourceType'].\"</td>\";\n $resourceOutput .= \"<td>\".$resource['resourceQuantity'].\"</td>\";\n $resourceOutput .= \"<td> \n <a href=\\\"index.php?mid=431&action=edit&resourceID=\".$resource['resourceID'].\"\\\" class=\\\"runbutton\\\">Edit</a>\n <a href=\\\"index.php?mid=430&action=remove&resourceID=\".$resource['resourceID'].\"\\\" class=\\\"delbutton\\\">Remove</a>\n </td>\";\n $resourceOutput .= \"<tr>\";\n }\n $resourceOutput .= \"</table>\";\n }\n else{\n $resourceOutput = \"<p>There are no resources stored at present.</p>\";\n }\n return $resourceOutput;\n }", "title": "" }, { "docid": "8c23114005d84f0741705b7da9ef9695", "score": "0.5852743", "text": "public function list_display($resource){\n\t\techo(\"<table border='1' >\\n<tr>\");\n\t\tforeach($this->list_headers as $head){\n\t\t\techo(\"<th>$head</th>\\n\");\n\t\t}\n\t\tif($this->ed_flag){\n\t\t\techo(\"<th colspan='2'>Admin</th>\\n\");\n\t\t}\n\t\techo(\"</tr>\");\n\t\twhile($row = mysql_fetch_array($resource)){\n\t\t\t\techo(\"<tr>\\n\");\n\t\t\t\tforeach($row as $key => $value) {\n\t\t\t\t$row[$key] = stripslashes($value);\n\t\t\t}\n\t\t\tforeach($this->list_table_cols as $val) {\n\t\t\t\techo(\"<td valign='top'>$row[$val]</td>\");\n\t\t\t}\n\t\t\tif($this->ed_flag){\n\t\t\t\techo(\"<td valign='top'><a href=attendance.php?id={$row[$this->ID]}>Edit</a></td>\\n\"); //Adds Edit button to end of display table\n\t\t\t\techo(\"<td valign='top'><a href=attendance.php?id={$row[$this->ID]}>Delete</a></td>\\n\"); //Adds Delete button to end of display table\n\t\t\t}\n\t\t}\n\t\techo(\"</tr>\\n</table>\");\n\t}", "title": "" }, { "docid": "bebff39922dfa3f37a3d7a6997a89e2f", "score": "0.5847328", "text": "function show()\n\t{\n\t\t$this->postObject->display();\n\t}", "title": "" }, { "docid": "c77fbba2f7b7f5018f4471f75871b57a", "score": "0.58421373", "text": "public function edit(Resource $resource)\n {\n return view(\n 'resources.edit', \n [\n 'resource' => $resource\n ]\n );\n }", "title": "" }, { "docid": "8aae95d60d936382831b42a40edb3397", "score": "0.58280504", "text": "public function show()\r\n\t{\r\n\t\techo $this->template;\r\n\t}", "title": "" }, { "docid": "7c5c6f9fff24e84ba0d3b00444a0acc7", "score": "0.5817148", "text": "public function resolveForDisplay($resource, $attribute = null)\n {\n if (empty($this->value)) {\n $this->value = null;\n }\n\n try {\n $file = new GenericFile($this->value);\n\n $path = FileCache::get($file, function ($file, $path) {\n return basename($path);\n });\n\n $url = vsprintf('%s/%s', [\n 'nova-vendor/skydiver/nova-cached-images',\n $path\n ]);\n\n $value = url($url);\n } catch (\\Throwable $th) {\n $value = 'remote image not found';\n }\n\n $this->value = $value;\n }", "title": "" }, { "docid": "d6af1b1d4946c54112fc9b7ca038cb20", "score": "0.5815869", "text": "public function display()\n\t{\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "58526873a63ddff4b306282ce5155a89", "score": "0.58109516", "text": "public static function output($resource)\r\n\t{\r\n\t\tif (isset(self::$_resources[$resource])) {\r\n\t\t\t$res =& self::$_resources[$resource];\r\n\r\n\t\t\tif (function_exists('getInternalResource') && $data = getInternalResource($res['data'])) {\r\n\t\t\t\t$filename = self::$embedding_file;\r\n\t\t\t} else {\r\n\t\t\t\t$filename = $res['data'];\r\n\t\t\t}\r\n\r\n\t\t\t// use last-modified time as etag; etag must be quoted\r\n\t\t\t$etag = '\"' . filemtime($filename) . '\"';\r\n\r\n\t\t\t// check headers for matching etag; if etag hasn't changed, use the cached version\r\n\t\t\tif (isset($_SERVER['HTTP_IF_NONE_MATCH']) && $_SERVER['HTTP_IF_NONE_MATCH'] == $etag) {\r\n\t\t\t\theader('HTTP/1.0 304 Not Modified');\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\theader('Etag: ' . $etag);\r\n\r\n\t\t\t// cache file for at most 30 days\r\n\t\t\theader('Cache-control: max-age=2592000');\r\n\r\n\t\t\t// output resource\r\n\t\t\theader('Content-type: ' . $res['mime']);\r\n\r\n\t\t\tif (isset($data)) {\r\n\t\t\t\tif (isset($res['base64'])) {\r\n\t\t\t\t\techo base64_decode($data);\r\n\t\t\t\t} else {\r\n\t\t\t\t\techo $data;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\treadfile($filename);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "426c72f34858b1f8fc0c2377d1350691", "score": "0.5810138", "text": "public function show()\n {\n $arguments = func_get_args()[0];\n $id = $arguments[0];\n\n echo \"Show $id\";\n // return $this->view('example.show');\n }", "title": "" }, { "docid": "baf449cd82447c0bffb577fe732c4f2b", "score": "0.5799135", "text": "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\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::add('error', 'msg_info', array('message' => Kohana::message('gw', 'event.view.not_allowed'), 'is_persistent' => FALSE, 'hash' => Text::random($length = 10)));\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}", "title": "" }, { "docid": "ecd6aa7074b9a655f317e213378a7ab9", "score": "0.5780958", "text": "public function show() {\n if (isset($_GET['name'])) {\n $this->view->source = $this->model::getByName($_GET['name']);\n }\n\n $this->view->setData($this->model::get($_GET));\n $this->view->setTemplate(SRC_SHOW);\n $this->view->setLayout(SHOW_LAYOUT);\n $this->view->render();\n }", "title": "" }, { "docid": "21604cc50e9ca2b999b8c59635c9346b", "score": "0.5775595", "text": "protected function _resource($data, $name)\r\n {\r\n $data = get_resource_type($data);\r\n $this->_renderNode('Resource', $name, $data);\r\n }", "title": "" }, { "docid": "e7bae91f4e998eac5e73657c932c48d7", "score": "0.5755341", "text": "public function show($id) {\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "e7bae91f4e998eac5e73657c932c48d7", "score": "0.5755341", "text": "public function show($id) {\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "e3b51ebfe04703c114ab39fc729ba43b", "score": "0.57525647", "text": "public function show(Entry $entry)\n {\n //\n }", "title": "" }, { "docid": "91b553cd446c5431be6377bad7d6e9b7", "score": "0.5747262", "text": "public function show($id)\n\t{\n\t\t//\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.57214445", "text": "public function show($id) {}", "title": "" }, { "docid": "cb9307a32f6d22a33b956aed56db49ba", "score": "0.57209593", "text": "public function show($id)\n\t{\n\t\t//\n\t\t\n\t}", "title": "" }, { "docid": "6c6591ff03468044c76e66dc3ecca033", "score": "0.57152736", "text": "public function display(): Response;", "title": "" }, { "docid": "6ad29c72212e149d40619613cbacfe13", "score": "0.5711208", "text": "protected function addResourceShow(string $name, string $base, string $controller, array $options): RouteContract\n {\n $uri = $this->getResourceUri($name, $options) . '/{' . $base . '}';\n\n $action = $this->getResourceAction($name, $controller, 'show', $options);\n\n return $this->router->get($uri, $action);\n }", "title": "" }, { "docid": "61a627e0c8c8b3a47cc8487387ee35b2", "score": "0.57093376", "text": "public function show($id)\n\t{\n\t\t//No need for showing\n\t}", "title": "" }, { "docid": "560ae0fd472bad5f1d21beeed5dfbbdd", "score": "0.57056946", "text": "public function show(){}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.5705454", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.5705454", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.5705454", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "98910c6c774dc1299639c448306ea157", "score": "0.56980354", "text": "public function show($id)\n {\n $this->crud->hasAccessOrFail('show');\n\n // set columns from db\n $this->crud->setFromDb();\n\n // cycle through columns\n foreach ($this->crud->columns as $key => $column) {\n // remove any autoset relationship columns\n if (array_key_exists('model', $column) && array_key_exists('autoset', $column) && $column['autoset']) {\n $this->crud->removeColumn($column['name']);\n }\n }\n\n // get the info for that entry\n $this->data['entry'] = $this->crud->getEntry($id);\n $this->data['crud'] = $this->crud;\n $this->data['title'] = trans('bcrud::crud.preview').' '.$this->crud->entity_name;\n\n // remove preview button from stack:line\n $this->crud->removeButton('preview');\n $this->crud->removeButton('delete');\n\n // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package\n return view($this->crud->getShowView(), $this->data);\n }", "title": "" }, { "docid": "690a36be877c22d14829a018fd5e04e9", "score": "0.5697465", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $information = $em->getRepository('ThiefaineReferentielBundle:Information')->find($id);\n\n if (!$information) {\n throw $this->createNotFoundException(\"Impossible de trouver l'information.\");\n }\n\n $showForm = $this->createShowForm($information);\n $twig = 'ThiefaineReferentielBundle:Information:show.html.twig';\n $paramTwig = array(\n 'information' => $information,\n 'show_form' => $showForm->createView(),\n );\n\n return $this->render($twig,$paramTwig);\n }", "title": "" }, { "docid": "851cd390daf8f79de66a294538711bfd", "score": "0.569425", "text": "public function view(HTTPRequest $request)\n {\n $id = $request->param('ID');\n if ($display = Display::get_by_id($id)) {\n return $this->renderPresentation($display);\n }\n\n return $this->httpError(404);\n }", "title": "" }, { "docid": "89380f02c69f1ed066b5443620b90407", "score": "0.569143", "text": "public function show($id)\n\t{ \n \t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" } ]
12340552405bed7a38673a6e06e8564e
Create a new project. If you specify projectrate or flatrate for bill_method, you must supply a rate. Billing Method Types: taskrate, flatrate, projectrate, staffrate
[ { "docid": "62ede380760ec8bacb1a814bb1be5a7d", "score": "0.51093835", "text": "function projectCreate(){\r\n\t\t$method='project.create';\r\n\t\tif($this->project){\r\n\t\t\t$tags=$this->project;\r\n\t\t}\r\n\t\tif(isset($this->tasks)){\r\n\t\t\tif(is_array($this->tasks)){\r\n\t\t\t\t$tasks='';\r\n\t\t\t\tforeach($this->tasks as $task){\r\n\t\t\t\t\t$tasks.='<task>'.$task.'</task>'.PHP_EOL;\r\n\t\t\t\t}\r\n\t\t\t\t$tags->tasks=$tasks;\r\n\t\t\t\t$this->tasks=array();\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t$response=$this->prepare_xml($method,$tags);\r\n\t\t$obj=$this->xml_obj($response, 'project_id');\r\n\t\t$this->project=new stdClass();\r\n\t\treturn $obj;\r\n\t}", "title": "" } ]
[ { "docid": "53133065b1bf2a2f71e2e22dde26a108", "score": "0.61796254", "text": "public function create($billable, $plan, array $options = []);", "title": "" }, { "docid": "b6d23a7a27253e0e92bc19f31a3bfd1a", "score": "0.61663395", "text": "function create_plan($product_id, $interval, $currency, $amount, $nickname=''){\n try{\n $plan = \\Stripe\\Plan::create([\n 'product' => $product_id,\n 'nickname' => $nickname,\n 'interval' => $interval,\n 'currency' => $currency,\n 'amount' => $amount, //amount in cents, for $1 it should be 100 cents\n ]);\n \n if(empty($plan))\n return array('status'=>false,'message'=>'Something went wrong');\n \n return array('status'=>true,'message'=>'Plan created successfully', 'data'=>$plan); //success\n \n }catch(Exception $e){\n $message = $e->getMessage();\n return array('status'=>false,'message'=>$message);\n }\n }", "title": "" }, { "docid": "33e6fe506bff0756007c0ec7c052983e", "score": "0.6078953", "text": "function auto_create_plan_get($sponsor, $amount, $system_code) {\n $sponsor = $sponsor;\n \n $status = 0;\n \n // tinh toan so tien co the get ve\n \n $meta = $this->get_setting();\n \n $num_days_pd_pending = $meta->num_days_pd_pending;\n $percent_rate_days = $meta->percent_rate_days;\n \n $receive_amount = $amount + ($amount * $num_days_pd_pending) * ($percent_rate_days / 100);\n \n $data = array(\n 'sponsor' => $sponsor,\n 'amount' => $receive_amount,\n 'system_code' => $system_code,\n 'status' => $status,\n 'created_by' => 1,\n 'created_at' => date('Y-m-d h:i:s')\n );\n \n $result = $this->planget_model->post($data);\n }", "title": "" }, { "docid": "491fa4f220d8a3b7ead719754bb0f394", "score": "0.57854795", "text": "public function create_project(){ \n\t\t// set the page title\t\t\n\t\t$this->set('title_for_layout', 'Create Project - Finance - My PDCA');\t\n\t\t// fetch the companies\n\t\t$comp_list = $this->TskProject->TskCustomer->find('list', array('fields' => array('id','company_name'), 'order' => array('company_name ASC'),'conditions' => array('is_deleted' => 'N')));\n\t\t$this->set('compList', $comp_list);\t\n\t\t// fetch the list of states\t\t\n\t\t$emp_list = $this->TskProject->Home->find('list', array('fields' => array('id','Home.full_name'), 'order' => array('Home.full_name ASC'),'conditions' => array('Home.status' => 1)));\n\t\t$this->set('empList', $emp_list);\n\t\t// fetch the company types\n\t\t$this->set_project_status();\n\t\tif ($this->request->is('post')){ \n\t\t\t// validates the form\n\t\t\t$this->TskProject->set($this->request->data);\n\t\t\tif ($this->TskProject->validates(array('fieldList' => array('tsk_company_id','project_name', 'proj_short_code','start_date','status','project_leader','member')))) {\n\t\t\t\t$this->request->data['TskProject']['created_by'] = $this->Session->read('USER.Login.id');\t\t\t\t\n\t\t\t\t$this->request->data['TskProject']['created_date'] = $this->Functions->get_current_date();\n\t\t\t\t// format the dates to save\n\t\t\t\t$this->request->data['TskProject']['start_date'] = $this->Functions->format_date_save($this->request->data['TskProject']['start_date']);\n\t\t\t\t\n\t\t\t\tif(!empty($this->request->data['TskProject']['target_finish'])){\n\t\t\t\t\t$this->request->data['TskProject']['target_finish'] = $this->Functions->format_date_save($this->request->data['TskProject']['target_finish']);\n\t\t\t\t}\n\t\t\t\t// save the data\n\t\t\t\tif($this->TskProject->save($this->request->data['TskProject'])) {\t\n\t\t\t\t\t// save project members\n\t\t\t\t\t$this->save_members($this->TskProject->id);\n\t\t\t\t\t// show the msg.\n\t\t\t\t\t$this->Session->setFlash('<button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>Project details created successfully', 'default', array('class' => 'alert alert-success'));\n\t\t\t\t\t$this->redirect('/tskprojects/');\n\t\t\t\t}else{\n\t\t\t\t\t$this->Session->setFlash('<button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>Problem in saving the data...', 'default', array('class' => 'alert alert-error'));\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$this->Session->setFlash('<button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>Problem in submitting the form. please check errors...', 'default', array('class' => 'alert alert-error'));\t\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "51c461682b94c6b7bd9e2d9dc7f00bc6", "score": "0.57567835", "text": "public function addProject(): void\n {\n $name = $_POST[\"name\"];\n $startDate = $_POST[\"startDate\"];\n $endDate = $_POST[\"endDate\"];\n $budget = $_POST[\"budget\"];\n $idEmployee = $_POST[\"employee\"];\n\n if (!is_numeric($budget) || !is_numeric($idEmployee)) {\n $_SESSION[\"message\"] = \"INVALID DATA!\";\n header(\"Location: /administrator/project\");\n return;\n }\n\n $user = new User();\n $result = $user->find([\"ID\" => $idEmployee]);\n if (is_bool($result) || $result->Function !== \"employee\") {\n $_SESSION[\"message\"] = \"THERE IS NO EMPLOYEE!\";\n header(\"Location: /administrator/project\");\n return;\n }\n\n $project = new Project();\n $project->new([\"Name\" => $name, \"StartDate\" => $startDate, \"EndDate\" => $endDate, \"Budget\" => $budget, \"Employee\" => $idEmployee]);\n $_SESSION[\"message\"] = \"OPERATION SUCCESSFULLY COMPLETED!\";\n header(\"Location: /administrator/project\");\n }", "title": "" }, { "docid": "d9a2b6d46505a97983844e0088407f55", "score": "0.5716215", "text": "public function create_plan_pd() {\n \n $meta = $this->get_setting();\n \n $num_commands_per_day = $meta->num_commands_per_day;\n \n // lay thong tin ma dau tu\n $data = array(\n 'system_code' => $this->system_code\n );\n \n $result = $this->sponsor_model\n ->get_sponsor_invest($data)\n ->body;\n \n $sponsors = $result->sponsors;\n \n $data = array();\n \n foreach($sponsors as $sponsor) {\n $obj = new stdClass;\n $obj->id = $sponsor->id;\n $obj->username = $sponsor->username;\n $obj->updated_at = $sponsor->updated_at_invest;\n $obj->upline = $sponsor->upline;\n \n $path = explode('>', $sponsor->path);\n $obj->path_len = count($path);\n $data []= $obj;\n }\n \n $data = json_decode(json_encode($data), true);\n \n $data = $this->sort_sponsors($data);\n \n $ret= $this->insert_plan_pd($data, $num_commands_per_day);\n \n }", "title": "" }, { "docid": "eac6f365da2c3fc0783699888b589a71", "score": "0.57038236", "text": "public function testCreateSubscriptionNewPlanAndNewCustomerAndNewBankAccount() {\n\t\n\t\tPayU::$apiLogin = PayUTestUtil::API_LOGIN;\n\t\tPayU::$apiKey = PayUTestUtil::API_KEY;\n\t\tEnvironment::setSubscriptionsCustomUrl(PayUTestUtil::SUBSCRIPTION_CUSTOM_URL);\n\t\n\t\t$parameters = array();\n\t\t//Crete the Customer\n\t\t$parameters = PayUTestUtil::buildSubscriptionParametersCustomer($parameters);\n\t\n\t\t// Subscription parameters\n\t\t$parameters[PayUParameters::QUANTITY] = \"5\";\n\t\t$parameters[PayUParameters::INSTALLMENTS_NUMBER] = \"2\";\n\t\t$parameters[PayUParameters::TRIAL_DAYS] = \"2\";\n\t\n\t\t// Plan parameters\n\t\t$parameters[PayUParameters::PLAN_DESCRIPTION] = \"Plan-SDK-PHP-Test\";\n\t\t$now = new DateTime();\n\t\t$parameters[PayUParameters::PLAN_CODE] = \"Plan-SDK-PHP-\" . $now->getTimestamp();\n\t\t$parameters[PayUParameters::PLAN_INTERVAL] = \"MONTH\";\n\t\t$parameters[PayUParameters::PLAN_INTERVAL_COUNT] = \"12\";\n\t\t$parameters[PayUParameters::PLAN_CURRENCY] = \"BRL\";\n\t\t$parameters[PayUParameters::PLAN_VALUE] = \"200\";\n\t\t$parameters[PayUParameters::PLAN_TAX] = \"10\";\n\t\t$parameters[PayUParameters::PLAN_TAX_RETURN_BASE] = \"30\";\n\t\t$parameters[PayUParameters::ACCOUNT_ID] = \"3\";\n\t\t$parameters[PayUParameters::PLAN_ATTEMPTS_DELAY] = \"2\";\n\t\t$parameters[PayUParameters::PLAN_MAX_PAYMENTS] = \"2\";\n\t\t$parameters[PayUParameters::PLAN_MAX_PENDING_PAYMENTS] = \"2\";\n\t\n\t\t// Bank account parameters\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_CUSTOMER_NAME] = \"User Test\";\n\t\t$parameters[PayUParameters::ACCOUNT_ID] = \"3\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_DOCUMENT_NUMBER] = \"78964874\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_DOCUMENT_NUMBER_TYPE] = \"CNPJ\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_BANK_NAME] = \"SANTANDER\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_TYPE] = \"CURRENT\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_NUMBER] = \"96325891\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_ACCOUNT_DIGIT] = \"2\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_AGENCY_DIGIT] = \"3\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_AGENCY_NUMBER] = \"4518\";\n\t\t$parameters[PayUParameters::COUNTRY] = \"BR\";\n\t\t$parameters[PayUParameters::TERMS_AND_CONDITIONS_ACEPTED] = TRUE;\n\t\n\t\t$response = PayUSubscriptions::createSubscription($parameters);\n\t\t$this->subscription = $response;\n\t\n\t\tprint_r($response);\n\t\t$this->assertNotNull($this->subscription);\n\t\t$this->assertNotNull($this->subscription->id);\n\t\t$this->assertEquals($parameters[PayUParameters::PLAN_CODE], $this->subscription->plan->planCode);\n\t\t$this->assertEquals($parameters[PayUParameters::PLAN_DESCRIPTION], $this->subscription->plan->description);\n\t\n\t\t$this->assertNotNull($this->subscription->customer->bankAccounts[0]->id);\n\t}", "title": "" }, { "docid": "4a4e73d6376e571ba46d1030b81892f1", "score": "0.5684872", "text": "public function create(Project $project)\n {\n return Inertia::render('ClientPayment/Create', ['project'=> $project]);\n }", "title": "" }, { "docid": "7b21c8d6efe2dfd617c1871e168c8d1b", "score": "0.5646559", "text": "public function createOrFindPlan($crowdifyPlan){\n\n $paypalPlan = $this->getPaypalPlan($crowdifyPlan);\n if($paypalPlan){\n $plan = Plan::get($paypalPlan->plan_id, $this->apiContext);\n if($plan){\n return $plan;\n }\n }\n $plan = new Plan();\n // # Basic Information\n // Fill up the basic information that is required for the plan\n $plan->setName($crowdifyPlan)\n ->setDescription(ucwords($crowdifyPlan).' Membership $'.$this->crowdifyPlans[$crowdifyPlan]['amount'].' Per Month.')\n ->setType('INFINITE');\n\n // # Payment definitions for this billing plan.\n $paymentDefinition = new PaymentDefinition();\n\n// The possible values for such setters are mentioned in the setter method documentation.\n// Just open the class file. e.g. lib/PayPal/Api/PaymentDefinition.php and look for setFrequency method.\n// You should be able to see the acceptable values in the comments.\n $paymentDefinition->setName('Regular Payments')\n ->setType('REGULAR')\n ->setFrequency('Month')\n ->setFrequencyInterval(\"1\")\n ->setCycles(\"0\")\n ->setAmount(new Currency(array('value' => $this->crowdifyPlans[$crowdifyPlan]['amount'], 'currency' => 'USD')));\n\n// Charge Models\n $chargeModel = new ChargeModel();\n $chargeModel->setType('SHIPPING')\n ->setAmount(new Currency(array('value' => 0, 'currency' => 'USD')));\n\n $paymentDefinition->setChargeModels(array($chargeModel));\n\n $merchantPreferences = new MerchantPreferences();\n// ReturnURL and CancelURL are not required and used when creating billing agreement with payment_method as \"credit_card\".\n// However, it is generally a good idea to set these values, in case you plan to create billing agreements which accepts \"paypal\" as payment_method.\n// This will keep your plan compatible with both the possible scenarios on how it is being used in agreement.\n $merchantPreferences->setReturnUrl($this->redirectUrls->getReturnUrl())\n ->setCancelUrl($this->redirectUrls->getCancelUrl())\n ->setAutoBillAmount(\"yes\")\n ->setInitialFailAmountAction(\"CANCEL\")\n ->setMaxFailAttempts(\"1\")\n ->setSetupFee(new Currency(array('value' => $this->crowdifyPlans[$crowdifyPlan]['setup_fee'], 'currency' => 'USD')));\n\n\n $plan->setPaymentDefinitions(array($paymentDefinition));\n $plan->setMerchantPreferences($merchantPreferences);\n\n\n// ### Create Plan\n try {\n $plan = $plan->create($this->apiContext);\n\n $this->createCrowdifyPlan($plan);\n\n } catch (Exception $ex) {\n $this->error = $ex->getMessage();\n return false;\n exit(1);\n }\n\n return $plan;\n }", "title": "" }, { "docid": "e22fd638f650b890ebb280ea34247573", "score": "0.5632402", "text": "public function actionCreate()\n\t{\n\t\t\n\t\t$model = new Project;\n\t\t$workcodes = \"\";\n\t\t$managementCost = array(\"\",\"\",\"\");\n\t\t$modelContract = array();\n\t\t$modelContractOld = array();\n\t\t$numContracts = 1;\n\t\t$modelPC = new ProjectContract;\n\t\tarray_push($modelContract, $modelPC);\n\t\t\n\t\t// $query = \"DROP TABLE if exists contract_approve_history_temp;\";\n\t // $query = \"CREATE TEMPORARY TABLE contract_approve_history_temp AS (SELECT * FROM contract_approve_history WHERE 1=2);\";\n\t\t// Yii::app()->db->createCommand($query)->execute();\n\n\t\tif(isset($_POST['Project']))\n\t\t{\n\t\t\t$model->setScenario('create');\n\t\t\t$model->attributes = $_POST['Project'];\n\t\t\t$model->pj_CA = $_POST['Project']['pj_CA'];\n\n\t\t\t$managementCost[0] = isset($_POST[\"expect_cost1\"]) ? $_POST[\"expect_cost1\"] : \"\";\n\t\t\t$managementCost[1] = isset($_POST[\"expect_cost2\"]) ? $_POST[\"expect_cost2\"] : \"\";\n\t\t\t$managementCost[2] = isset($_POST[\"expect_cost3\"]) ? $_POST[\"expect_cost3\"] : \"\";\n\n\n\t\t\tif (isset($_POST['ProjectContract']))\n {\n $model->contract = $_POST['ProjectContract']; \n $transaction=Yii::app()->db->beginTransaction();\n\t\t \ttry {\n\t\t\t //$model->attributes = $_POST['Project'];\n\t\t\t $model->pj_user_create = Yii::app()->user->ID;\n\t\t\t\t $model->pj_user_update = Yii::app()->user->ID;\n\t\t\t\t\n\t\t\t\t $model->pj_name = $_POST[\"pj_vendor_id\"];\n\n\t\t\t\t $model->pj_status = 1;\n\n //header('Content-type: text/plain');\n\t\t\t\t $workcodes = $_POST['workCode'];\n\t \t $workCodeArray = explode(\",\", $_POST['workCode']);\n\n\t \t foreach ($model->contract as $contracts => $contract) \n\t\t \t\t\t{\n\t\t \t\t\t\t //print_r($contract);\n\t\t \t\t\t\t\t \n\t\t \t\t\t\t $modelC = new ProjectContract(\"create\");\n\t\t \t\t\t\t //$modelC->setScenario('create');\n\t\t \t\t\t\t $modelC->attributes = $contract;\n\t\t \t\t\t\t $modelC->pc_details = $contract[\"pc_details\"];\n\t\t \t\t\t\t $modelC->pc_sign_date = $contract[\"pc_sign_date\"];\n\t\t \t\t\t\t $modelC->pc_end_date = $contract[\"pc_end_date\"];\n\t\t \t\t\t\t $modelC->pc_garantee_date = $contract[\"pc_garantee_date\"];\n\t\t \t\t\t\t $modelC->pc_PO = $contract[\"pc_PO\"];\n\t\t \t\t\t\t //$modelC->pc_vendor_id = $model->pj_vendor_id;\n\n\t\t \t\t\t\t array_push($modelContractOld, $modelC);\n\t\t \t\t\t}\t\n\n\t\t\t\t\t // header('Content-type: text/plain');\n // \t\t print_r($modelContractOld); \n // \t exit;\t\t \t\t\t\t\t\n \t\t\t\t\n \t\t\t\t//print_r($model->contract); \n\t\t\t\t if ($model->save()) {\n\n\n\t\t\t\t \t//save expect management cost\n $modelMCost = new ManagementCost(\"search\");\n $modelMCost->setScenario('create');\n $modelMCost->mc_type = 0;\n $modelMCost->mc_proj_id = $model->pj_id;\n $modelMCost->mc_cost = $_POST[\"expect_cost1\"];\n $modelMCost->mc_detail = \"เงินประมาณการค่าใช้จ่ายในการบริหารโครงการ\";\n $modelMCost->mc_date = (date(\"Y\")).date(\"-m-d\");\n\t\t\t\t $modelMCost->mc_user_update = Yii::app()->user->ID; \n\t\t\t\t $modelMCost->mc_in_project = 1;\n \n if(!$modelMCost->save())\n {\n \t\n }\n\n \t \n $modelMCost = new ManagementCost(\"search\");\n $modelMCost->mc_type = 0;\n $modelMCost->mc_proj_id = $model->pj_id;\n $modelMCost->mc_date = (date(\"Y\")).date(\"-m-d\");\n\t\t\t\t $modelMCost->mc_user_update = Yii::app()->user->ID; \n $modelMCost->mc_cost = $_POST[\"expect_cost2\"];\n $modelMCost->mc_detail = \"เงินประมาณการค่าใช้จ่ายด้านบุคลากร\";\n $modelMCost->mc_in_project = 2;\n $modelMCost->save();\n\n $modelMCost = new ManagementCost(\"search\");\n $modelMCost->mc_type = 0;\n $modelMCost->mc_proj_id = $model->pj_id;\n $modelMCost->mc_date = (date(\"Y\")).date(\"-m-d\");\n\t\t\t\t $modelMCost->mc_user_update = Yii::app()->user->ID; \n $modelMCost->mc_cost = $_POST[\"expect_cost3\"];\n $modelMCost->mc_detail = \"เงินประมาณการค่ารับรอง\";\n $modelMCost->mc_in_project = 3;\n $modelMCost->save();\n\n\t\t\t\t \t//end\n\n\t\t\t\t \tforeach ($workCodeArray as $key => $value) {\n\t\t\t \t\t$wk = new WorkCode;\n\t\t\t \t\t$wk->code = $value;\n\t\t\t \t\t$wk->pj_id = $model->pj_id;\n\t\t\t \t\t\n\t\t\t \t\t$wk->save();\t\n\t\t \t \t}\n\t\t\t\t \t$saveOK = 1;\n\t\t\t\t \t$index = 1;\n\n\t\t \t\t\t\tforeach ($model->contract as $contracts => $contract) \n\t\t \t\t\t\t{\n\t\t \t\t\t\t //print_r($contract);\n\t\t \t\t\t\t\t \n\t\t \t\t\t\t $modelC = new ProjectContract(\"create\");\n\t\t \t\t\t\t $modelC->setScenario('create');\n\t\t \t\t\t\t $modelC->attributes = $contract;\n\t\t \t\t\t\t $modelC->pc_details = $contract[\"pc_details\"];\n\t\t \t\t\t\t $modelC->pc_sign_date = $contract[\"pc_sign_date\"];\n\t\t \t\t\t\t $modelC->pc_end_date = $contract[\"pc_end_date\"];\n\t\t \t\t\t\t $modelC->pc_garantee_date = $contract[\"pc_garantee_date\"];\n\t\t \t\t\t\t $modelC->pc_PO = $contract[\"pc_PO\"];\n\t\t \t\t\t\t //$modelC->pc_vendor_id = $model->pj_vendor_id;\n\n\t\t \t\t\t\t array_push($modelContractOld, $modelC);\n\t\t \t\t\t\t //$modelC->pc_id = \"\";\n\t\t \t\t\t\t $modelC->pc_proj_id = $model->pj_id;\n\n\t\t \t\t\t\t \n\n\t\t \t\t\t\t $modelC->pc_last_update = (date(\"Y\")).date(\"-m-d H:i:s\");\n\t\t\t\t \t\t $modelC->pc_user_update = Yii::app()->user->ID;\n\n\t\t \t\t\t\t \n\t\t \t\t\t\t if($modelC->save())\n\t\t \t\t\t\t {\n\t\t \t\t\t\t \t//$saveOK = true;\n\t\t \t\t\t\t \t$modelTemps = Yii::app()->db->createCommand()\n\t\t\t\t\t\t ->select('*')\n\t\t\t\t\t\t ->from('contract_approve_history_temp')\n\t\t\t\t\t\t ->where('contract_id=:id AND type=1 AND u_id=:user', array(':id'=>$index,':user'=>Yii::app()->user->ID))\n\t\t\t\t\t\t ->queryAll();\n\t\t\t\t\t\t foreach ($modelTemps as $key => $mTemp) {\n\n\t\t\t\t\t\t // header('Content-type: text/plain');\n // \t\tprint_r($modelC); \n // \t exit;\n $modelApprove = new ContractApproveHistory;\n $modelApprove->setScenario('create');\n $modelApprove->attributes = $mTemp;\n $modelApprove->dateApprove = $mTemp['dateApprove'];\n $modelApprove->id = \"\";\n $modelApprove->contract_id = $modelC->pc_id;\n $modelApprove->type = 1;\n \n if($modelApprove->save())\n $msg = \"successful\";\n else{\n $model->addError('contract', 'กรุณากรอกข้อมูล \"สัญญาที่ \"'.$index.' ในช่องที่มีเครื่องหมาย (*) ให้ครบถ้วน.');\t\t\n\t\t \t\t\t\t \t $saveOK = 0;\n } \t\n\t\t\t\t\t\t } \n\t\t \t\t\t\t \t//$modelTemp = ContractApproveHistoryTemp::model()->findByAttributes(array('contract_id'=>$contract['pc_id']));\n\t\t \t\t\t\t \t\n\t\t \t\t\t\t \t$modelTemps = Yii::app()->db->createCommand()\n\t\t\t\t\t\t ->select('*')\n\t\t\t\t\t\t ->from('contract_change_history_temp')\n\t\t\t\t\t\t ->where('contract_id=:id AND type=1 AND u_id=:user', array(':id'=>$index,':user'=>Yii::app()->user->ID))\n\t\t\t\t\t\t ->queryAll();\n\t\t\t\t\t\t foreach ($modelTemps as $key => $mTemp) {\n\n $modelApprove = new ContractChangeHistory;\n\n $modelApprove->attributes = $mTemp;\n $modelApprove->id = '';\n $modelApprove->contract_id = $modelC->pc_id;\n $modelApprove->type = 1;\n \n if($modelApprove->save())\n {\n $msg = \"successful\";\n $mt = ContractChangeHistoryTemp::model()->findByPk($mTemp['id']);\n $mt->delete();\n }\t \n else{\n $model->addError('contract', 'กรุณากรอกข้อมูล \"สัญญาที่ \"'.$index.' ในช่องที่มีเครื่องหมาย (*) ให้ครบถ้วน.');\t\t\n\t\t \t\t\t\t \t $saveOK = 0;\n } \t\n\t\t\t\t\t\t } \n\t\t \t\t\t\t \t\n\t\t \t\t\t\t }else{\n\t\t \t\t\t\t \t$saveOK = 0;\t\n\t\t \t\t\t\t \tif($contract[\"pc_id\"]!=\"\")\n\t\t \t\t\t\t \t $modelC->pc_id = $contract[\"pc_id\"];\n\t\t \t\t\t\t \telse\n\t\t \t\t\t\t \t $modelC->pc_id = 1;\t\n\t\t \t\t\t\t }\n\n\t\t \t\t\t\t $index++;\n\n\t\t \t\t\t\t array_push($modelContract, $modelC); \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\t\n\n\t\t \t\t\t\tif($saveOK==1)\n\t\t \t\t\t\t{\n\t\t \t\t\t\t\t$transaction->commit();\n\t\t \t\t\t\t\t//$this->redirect(array('index'));\n\t\t \t\t\t\t\t$this->redirect(array('createOutsource', 'id' => $model->pj_id));\n\t\t \t\t\t\t\t// header('Content-type: text/plain');\n // \t\t//print_r($modelC);\n // \t\techo \"save\".$saveOK;\n // \texit;\n\t\t \t\t\t\t} \t\n\t\t \t\t\t\telse\n\t\t \t\t\t\t{\n\t\t \t\t\t\t\t$transaction->rollBack();\n\t\t \t\t\t\t\t$modelContract = $modelContractOld;\n\t\t \t\t\t\t $model->addError('contract', 'กรุณากรอกข้อมูล \"สัญญา\" ในช่องที่มีเครื่องหมาย (*) ให้ครบถ้วน.');\t\t\n\t\t \t\t\t\t}\n\n\t\t \t\t\t}\n\t\t \t\t\telse\n\t\t \t\t\t{\t\n\t\t \t\t\t\t$transaction->rollBack();\n\t\t \t\t\t\t$modelContract = $modelContractOld;\n\t\t \t\t\t\t//$model->addError('contract', 'Error occured while saving contracts.');\n\t\t \t\t\t}\t \n\t \t\t\t}\n\t \t\t\tcatch(Exception $e)\n\t \t\t\t{\n\t \t\t\t\t$transaction->rollBack();\t\n\t \t\t\t\t$model->addError('contract', 'Error occured while saving contracts.');\n\t \t\t\t\tYii::trace(CVarDumper::dumpAsString($e->getMessage()));\n\t \t \t//you should do sth with this exception (at least log it or show on page)\n\t \t \tYii::log( 'Exception when saving data: ' . $e->getMessage(), CLogger::LEVEL_ERROR );\n\t \n\t \t\t\t} \n\n \t\t\t\t//exit;\n }\n\n // if ($model->saveWithRelated('contract'))\n // {\n // \t$workcodes = $_POST['workCode'];\n\t \t // $workCodeArray = explode(\",\", $_POST['workCode']);\n\t \t // foreach ($workCodeArray as $key => $value) \n\t \t // {\n\t \t // \t\t$wk = new WorkCode;\n\t \t // \t\t$wk->code = $value;\n\t \t // \t\t$wk->pj_id = $model->pj_id;\n\t\t \t\t\n\t \t // \t\t$wk->save();\t\n\t \t // }\n // }\n // else\n // $model->addError('contract', 'Error occured while saving contracts.');\n\n\t\t\t// $modelContract = array();\n // $numContracts = $_POST['num'];\n\t\t // for($i=1;$i<$numContracts+1;$i++)\n\t\t // {\n\t\t // //if(isset($_POST['OutsourceContract'][$i]))\n\t\t // //{\n\t\t // $contracts = new ProjectContract;\n\t\t // $contracts->attributes = $_POST['ProjectContract'][$i];\n\t\t // $contracts->pj_user_create = Yii::app()->user->ID;\n\t\t // $contracts->pj_update_create = Yii::app()->user->ID;\n\t\t // $contracts->pj_name = $_POST[\"pj_vendor_id\"];\n\t\t // $contracts->oc_proj_id = $id;\n\t\t // $contracts->pc_sign_date = $_POST['OutsourceContract'][$i][\"pc_sign_date\"];//$_POST[$i.\"_oc_end_date\"];\n\t\t // $contracts->pc_details = $_POST['OutsourceContract'][$i][\"pc_details\"];\n\t\t // array_push($modelContract, $contracts);\n\t\t // //$contracts->validate();\n\t\t // $contracts->save();\n\t\t // //}\n\t\t // }\n\n\t\t\t// $valid=true;\n\t // foreach($modelOutsource as $i=>$item)\n\t // {\n\t // if(isset($_POST['OutsourceContract'][$i]))\n\t // $item->attributes=$_POST['OutsourceContract'][$i];\n\t // $valid=$item->validate() && $valid;\n\t // }\n\t\t}\n\t\telse{\n\t\t \n\t\t if (!Yii::app()->request->isAjaxRequest)\t\n\t\t {\n\t\t \t Yii::app()->db->createCommand('DELETE FROM contract_approve_history_temp WHERE u_id='.Yii::app()->user->ID)->execute();\n\t\t \t Yii::app()->db->createCommand('DELETE FROM contract_change_history_temp WHERE u_id='.Yii::app()->user->ID)->execute();\n\t\t\n\t\t }\t\n\t\t //Yii::app()->db->createCommand('TRUNCATE contract_approve_history_temp')->execute();\n\t\t\t\t\n\t\t\t$modelPC->pc_id = 1;\n \t\t//array_push($modelContract, $modelPC);\n\n\n\t\t\n\t\t}\n\n\t\t\n\t\t $this->render('create', array(\n 'model' => $model,'contract'=>$modelContract,'workcodes'=>$workcodes,'numContracts'=>$numContracts,'managementCost'=>$managementCost\n ));\n\t}", "title": "" }, { "docid": "f6cda01ee57847ef2ce5abdfd4089c96", "score": "0.5612389", "text": "public function create_plan($post)\n {\n $month = '+' . $post['month'] . ' months';\n $expire_month = date('Y-m-d', strtotime($month, strtotime(current_time())));\n $param = array(\n 'client_id' => $post['client_id'],\n 'plan_group_id' => $post['plan_group_id'],\n 'discount' => '0',\n 'auto_extend_flg' => $post['auto_extend_flg'],\n 'expire_month' => $expire_month,\n 'created' => current_time(),\n );\n return $this->Logic_plan->create_client_plan($param);\n }", "title": "" }, { "docid": "98b07a57c0ea58f03db46c3c7b1d42d5", "score": "0.55987966", "text": "public function create()\n {\n $this->authorize('create', Project::class);\n }", "title": "" }, { "docid": "ddfc956293ffa9fab8eae403a9d3b9d8", "score": "0.55893844", "text": "public function store(Request $request)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'amount' => 'required|numeric',\n 'clienttype' => 'required|not_in:0',\n 'deliverydate' => 'required',\n 'paymentmethod' => 'required||not_in:0'\n ]);\n\n $project = new Project;\n $project->projectname = $request->input('title');\n $project->amount = $request->input('amount');\n $project->projecttype = $request->input('clienttype');\n $project->deliverydate = $request->input('deliverydate');\n $project->paymentmethod = $request->input('paymentmethod');\n $project->status = 0;\n $clienttype = new ClientType;\n $clienttype->clientName = $request->input('clientName');\n $clienttype->contactNo = $request->input('contactNo');\n $clienttype->altContactNo = $request->input('altContactNo');\n $clienttype->email = $request->input('email');\n $clienttype->address = $request->input('address');\n\n $cash = new Cash;\n $cash->payableAmount = $request->input('payableAmount');\n\n $clienttype->save();\n $project->clientId = $clienttype->id;\n $project->save();\n $cash->project_id = $project->id;\n $cash->save();\n return redirect('/projects')->with('success', 'Project Created!');\n }", "title": "" }, { "docid": "59326823f920dc11a6fb89ac53ab2a15", "score": "0.55746245", "text": "public function addPlan(){\r\n $contractId = Input::get('contractId');\r\n $plan = Input::get('selectPlan');\r\n\r\n $contract = Contract::find($contractId);\r\n if($contract != null){\r\n $project = $contract->project;\r\n if($project != null){\r\n $plans = explode(',',$contract->ppaPlans);\r\n $aux_plans = array();\r\n if(!in_array($plan,$plans)) {\r\n\r\n $field = 'plan'.$plan;\r\n $amount = PpaPricesPlan::find($contract->ppapricesplan_id)->$field;\r\n $contract->price = $contract->price + $amount;\r\n\r\n //split plans like 1,3,5\r\n for ($i = 1; $i < 7; $i++) {\r\n if (in_array($i, $plans)) {\r\n $aux_plans[$i] = true;\r\n }\r\n elseif($i == $plan){\r\n $aux_plans[$i] = true;\r\n }\r\n else {\r\n $aux_plans[$i] = false;\r\n }\r\n }\r\n\r\n $planList = '';\r\n //add new plan like 1,3,'4',5\r\n for ($i = 1; $i < 7; $i++) {\r\n if ($aux_plans[$i] == true) {\r\n $planList .= strlen($planList) > 0 ? \",\" : \"\";\r\n $planList .= $i;\r\n }\r\n }\r\n\r\n //update PPA plans\r\n $contract->ppaPlans = $planList;\r\n $contract->save();\r\n\r\n //update PPA contract\r\n /*se kito pk ya los contracts son firmados en docusign y no podemos generarlo automatico y se agrego este transaction para saber que se hizo esta accion*/\r\n Transaction::createTransaction($project->consultant_id, $project->lead->id, '', 'CLIENT-ADD-PLAN-PPA', $field, '', $project->lead->email, '', '', $project->lead->phone, '');\r\n //End update PPA contract\r\n\r\n return view('omi.payment.index', array('project' => $project, 'contract' => $contract, 'client' => $this->client));\r\n }\r\n }\r\n }\r\n return view('omi.launch.index',array('client'=>$this->client,'showProfile' => 0,'showProject' => 0));\r\n }", "title": "" }, { "docid": "c4b8e98b6826120d6696f287235490d4", "score": "0.5551242", "text": "private function createPayment($pmtCreationObj, $bills, $paymentInfo, $isPrelease=false ){\t\t\n\t\t$pmtCreationObj->setPaymentType( $paymentInfo['paymentType'] );\n $pmtCreationObj->setTotalAmount( $paymentInfo['totalAmount'] ); \n $pmtCreationObj->setPayor( $paymentInfo['payor'] ); \n\t\t\n\t\t$accountLink = new Financial_Model_AccountLink();\n\t\t$debitAccountId=null;\n\t\t\n\t\tif( $isPrelease ){\n\t\t\t$debitAccountId = Applicant_Library_PaymentHelper::getPreleaseDebitAccountId();\n\t\t}\n\t\telse{\n\t\t\t$debitAccountId = Applicant_Library_PaymentHelper::getDebitAccountId();\n\t\t}\n\t\t\n\t\t$accountLink->setDebitAccountId( $debitAccountId ); // pull in setting\n\t\t\n\t\tforeach( $bills as $bill ){\t\t\t\t \n\t\t $accountLink->setCreditAccountId( $bill['debitAccountId'] ); // wipe off receivable \n $pmtCreationObj->setAccountLink($accountLink);\n $pmtCreationObj->setAmountPaid( $bill['currentAmountDue'] );\n $pmtCreationObj->setBillId( $bill['billId'] ); \t\t\t\t\n\t\t \t\t \t\t\n if( !$pmtCreationObj->postPayment() ) {\n\t $this->setMessageState( $pmtCreationObj->getMessageState() );\t\t\t\n\t throw new Exception();\n }\n else{\n return true; \n\t\t }\n\t\t} \n\t}", "title": "" }, { "docid": "4de716090559c18596f0c287327b2237", "score": "0.5545523", "text": "public function create()\n {\n $this->authorize('create', Cost::class);\n }", "title": "" }, { "docid": "9d01d23ce5394005aae9d283e9b88c09", "score": "0.54964894", "text": "function createProjectController(){\n\t\t\t//loads user model\n\t\t\t$this->load->model('User_model');\n\t\t\t\n\t\t\t//get posted values\n\t\t\t$userid = $_POST[\"userid\"];\n\t\t\t$projid = $_POST[\"pid\"];\n\t\t\t$projtitle = $_POST[\"projtitle\"];\n\t\t\t$projdesc = $_POST[\"projdesc\"];\n\t\t\t$projcat = $_POST[\"projcat\"];\n\t\t\t$projstartdate = $_POST[\"projstartdate\"];\n\t\t\t$projenddate = $_POST[\"projenddate\"];\n\t\t\t$projcreatedate = $_POST[\"projcreatedate\"];\n\t\t\t$projimagelink = $_POST[\"projimagelink\"];\n\t\t\t\n\t\t\t//calls method createProjectModel method from the model\n\t\t\t$success = $this->User_model->createProjectModel($userid, $projid, $projtitle, $projdesc, $projcat, $projstartdate, $projenddate, $projcreatedate, $projimagelink);\n\t\t\t$success1 = $this->User_model->User_model->addmemberModel($projid, $userid);\n\t\t\tif($success && $success1){\n\t\t\t\techo 'done';\n\t\t\t}\n\t\t\telse{\n\t\t\t\techo 'error';\t\n\t\t\t}\n\t\t\t\t\t\t \n\t\t}", "title": "" }, { "docid": "9c1ce992bce69bb73878b6eec29aafbb", "score": "0.54882705", "text": "public function testCreateSubscriptionNewPlanAndNewBankAccountAndExistingCustomer() {\n\t\n\t\tPayU::$apiLogin = PayUTestUtil::API_LOGIN;\n\t\tPayU::$apiKey = PayUTestUtil::API_KEY;\n\t\tEnvironment::setSubscriptionsCustomUrl(PayUTestUtil::SUBSCRIPTION_CUSTOM_URL);\n\t\n\t\t//Crete the Customer\n\t\t$customer = PayUCustomers::create(PayUTestUtil::buildSubscriptionParametersCustomer());\n\t\n\t\t$parameters = array();\n\t\t// Plan parameters\n\t\t//$parameters = PayUTestUtil::buildSuccessParametersPlan($parameters);\n\t\n\t\t// Subscription parameters\n\t\t$parameters[PayUParameters::QUANTITY] = \"5\";\n\t\t$parameters[PayUParameters::INSTALLMENTS_NUMBER] = \"2\";\n\t\t$parameters[PayUParameters::TRIAL_DAYS] = \"2\";\n\t\t$parameters[PayUParameters::TERMS_AND_CONDITIONS_ACEPTED] = \"true\";\n\t\t// Customer parameters\n\t\t$parameters[PayUParameters::CUSTOMER_ID] = $customer->id;\n\t\t// Plan parameters\n\t\t$parameters[PayUParameters::PLAN_DESCRIPTION] = \"Plan-SDK-PHP-Test\";\n\t\n\t\t$now = new DateTime();\n\t\t$parameters[PayUParameters::PLAN_CODE] = \"Plan-SDK-PHP-\" . $now->getTimestamp();\n\t\t$parameters[PayUParameters::PLAN_INTERVAL] = \"MONTH\";\n\t\t$parameters[PayUParameters::PLAN_INTERVAL_COUNT] = \"12\";\n\t\t$parameters[PayUParameters::PLAN_CURRENCY] = \"BRL\";\n\t\t$parameters[PayUParameters::PLAN_VALUE] = \"200\";\n\t\t$parameters[PayUParameters::PLAN_TAX] = \"10\";\n\t\t$parameters[PayUParameters::PLAN_TAX_RETURN_BASE] = \"30\";\n\t\t$parameters[PayUParameters::ACCOUNT_ID] = \"3\";\n\t\t$parameters[PayUParameters::PLAN_ATTEMPTS_DELAY] = \"2\";\n\t\t$parameters[PayUParameters::PLAN_MAX_PAYMENTS] = \"2\";\n\t\t$parameters[PayUParameters::PLAN_MAX_PENDING_PAYMENTS] = \"2\";\n\t\n\t\t// Bank account parameters\n\t\t$parameters[PayUParameters::CUSTOMER_ID] = $customer->id;\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_CUSTOMER_NAME] = \"User Test\";\n\t\t$parameters[PayUParameters::ACCOUNT_ID] = \"3\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_DOCUMENT_NUMBER] = \"78964874\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_DOCUMENT_NUMBER_TYPE] = \"CNPJ\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_BANK_NAME] = \"SANTANDER\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_TYPE] = \"CURRENT\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_NUMBER] = \"96325891\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_ACCOUNT_DIGIT] = \"2\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_AGENCY_DIGIT] = \"3\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_AGENCY_NUMBER] = \"4518\";\n\t\t$parameters[PayUParameters::COUNTRY] = \"BR\";\n\t\n\t\t$response = PayUSubscriptions::createSubscription($parameters);\n\t\n\t\t$this->assertNotNull($response->id);\n\t\t$this->assertEquals($parameters[PayUParameters::PLAN_CODE], $response->plan->planCode);\n\t\t$this->assertEquals($parameters[PayUParameters::PLAN_DESCRIPTION], $response->plan->description);\n\t\n\t\t$this->assertNotNull($response->customer->bankAccounts[0]->id);\n\t\n\t}", "title": "" }, { "docid": "5d388622e81f35042920b2303f611add", "score": "0.54817617", "text": "function createProject($idAnalyst, $idProject, $name, $description,$name_company) {\n include_once '../../BusinessObjects/Project.php';\n include_once '../../DataAccess/ProjectDAO.php';\n //It's created a new Project object and it is filled with function's args.\n $start_date = date(\"Y-m-d\");\n $newProject = new Project();\n $newProject->setIdAnalyst($idAnalyst);\n $newProject->setIdProject($idProject);\n $newProject->setName($name);\n $newProject->setDescription($description);\n $newProject->setStarDate($start_date);\n $newProject->setEndDate(\"\"); \n $newProject->setCompany_name($name_company);\n //We saved new Project object created.\n $ProjectDAO = new ProjectDAO();\n $ProjectDAO->saveProject($newProject);\n }", "title": "" }, { "docid": "632053489aee961745f934247b85b562", "score": "0.5479072", "text": "public function create( SubmitProjectRequest $request )\n {\n $project = new Project;\n $project->user_id = Auth::id();\n $project->name = $request->input( 'name' );\n $project->color = $request->input( 'color' );\n $project->assigned_to = $request->input( 'assigned_to' );\n $project->description = $request->input( 'description' );\n $project->ends_at = $request->input( 'ends_at' );\n\n if ( $project->save() ) {\n return response()->json( $this->successArray, $this->successStatus ); \n } else {\n return response()->json( $this->errorArray, $this->errorStatus );\n }\n }", "title": "" }, { "docid": "e4c2b88d9297356e9f41cbeeddc2b9fe", "score": "0.5427779", "text": "static function create(array $params) {\n\n // check required params\n if (!self::dataExists($params)) {\n CRM_Core_Error::fatal('Not enough data to create volunteer project object.');\n }\n\n // default to active unless explicitly turned off\n $params['is_active'] = CRM_Utils_Array::value('is_active', $params, TRUE);\n\n $project = new CRM_Volunteer_BAO_Project();\n $project->copyValues($params);\n\n $project->save();\n\n return $project;\n }", "title": "" }, { "docid": "24ec05044543a68f6cba7be3b6fcdeb9", "score": "0.5422658", "text": "public function store($account, Request $request)\n {\n $name = Input::get('name');\n $responsibleId = Input::get('project_manager');\n $typeId = Input::get('project_type');\n $tomorrow_timestamp = strtotime(\"+ 1 day\");\n $data = 'a:1:{s:4:\"data\";a:1:{i:0;a:10:{s:2:\"id\";s:1:\"1\";s:4:\"text\";s:'.strlen($name).':\"'.$name.'\";s:10:\"start_date\";s:16:\"'. date('d-m-Y'). ' 00:00\";s:8:\"duration\";s:1:\"4\";s:5:\"order\";s:2:\"10\";s:8:\"progress\";s:1:\"1\";s:4:\"open\";s:4:\"true\";s:8:\"end_date\";s:16:\"'. date('d-m-Y', $tomorrow_timestamp). ' 00:00\";s:6:\"parent\";s:1:\"0\";s:11:\"responsible\";s:'.strlen($responsibleId.'').':\"'.$responsibleId.'\";}}}';\n\n $plan = new ProjectPlan();\n $plan->account_id = Auth::user()->current_acc;\n $plan->user_id = $responsibleId;\n $plan->project_type_id = $typeId;\n $plan->name = $name;\n\n $plan->plan = $data;\n $plan->save();\n\n\n $request->session()->flash('alert-success', 'ProjectPlan : '.$name.' was successful created!');\n return Redirect::to($account . '/project-plan');\n }", "title": "" }, { "docid": "e7cc927398d159c6a318ce864751d614", "score": "0.54194325", "text": "public function create($planData)\n {\n \t$planPurchase \t\t\t\t = new PlanPurchase();\n\t\t$planPurchase->user_id \t\t = $this->user->id;\n\t\t$planPurchase->plan_id \t\t = $planData->plan_id;\n\t\t$planPurchase->country_code = $planData->country_code;\n\t\t$planPurchase->skeleton_keys = (int)$planData->skeleton_keys;\n\t\t$planPurchase->price \t\t = (float)$this->plan->price;\n\t\t$planPurchase->transaction_id = $planData->transaction_id;\n\t\t$planPurchase->save();\n\n \t/** Add skeleton keys in user's table **/\n \t$availableSkeletonKeys = (new UserRepository($this->user))->addSkeletonKeys($this->plan->skeleton_keys);\n \t\n /** Deduct User Gold **/\n $goldBalance = (new UserRepository($this->user))->deductGold($this->plan->gold_price);\n\n \t/** return the available skeleton keys **/\n \treturn ['available_skeleton_keys'=> $availableSkeletonKeys, 'available_gold_balance'=> $goldBalance];\n }", "title": "" }, { "docid": "e510841b4677d3af8834695f073b380a", "score": "0.5412555", "text": "function create() {\n\n $data = array();\n $data['city'] = $_POST['delivery_city'];\n $data['delivery_fee'] = $_POST['delivery_fee'];\n\n Logs::writeApplicationLog('Add Delivery Charge','Attemting',Session::get('userData')['email'],$data);\n $this->model->create($data);\n Logs::writeApplicationLog('Delivery Charge Added','Successfull',Session::get('userData')['email'],$data);\n\n\n header('location: ' . URL . 'deliveryCharges');\n }", "title": "" }, { "docid": "9e32e92511f53dccfe1a2971e898fe11", "score": "0.54046744", "text": "public function projectBidPayment()\n {\n // Disable layout and stop view rendering\n $this->_helper->layout->disableLayout();\n $this->_helper->viewRenderer->setNoRender(true);\n \n // Receive projectId and bidderUserId parameters\n $projectId = $this->getRequest()->getUserParam('projectId');\n $paymentCheck = $this->getRequest()->getUserParam('paymentCheck');\n \n if($paymentCheck == 'add') { \n redirect(BASEURL.'project/project-bid/'.$project_id);\n $this->_redirector->gotoSimple('project-bid', \n 'project', \n null, \n array('projectId' => $projectId));\n } else {\n\n }\n \n }", "title": "" }, { "docid": "7e0ad9f2dfbe65f2ba37a2109ef0b734", "score": "0.5398448", "text": "public function testCreatePlan()\n {\n $accept_language = 'es';\n $rq = new PlanRequest([\n 'amount' => 100\n ]);\n $result = self::$apiInstance->createPlan($rq, $accept_language);\n $this->assertNotEmpty($result, 'expected not empty result');\n }", "title": "" }, { "docid": "ad00efdb75229f21ed8477deec4d616f", "score": "0.5378759", "text": "public function testCreateSubscriptionNewPlanAndNewCustomerAndNewBankAccountAndTermsConditionsNotAccepted() {\n\t\n\t\tPayU::$apiLogin = PayUTestUtil::API_LOGIN;\n\t\tPayU::$apiKey = PayUTestUtil::API_KEY;\n\t\tEnvironment::setSubscriptionsCustomUrl(PayUTestUtil::SUBSCRIPTION_CUSTOM_URL);\n\t\n\t\t$parameters = array();\n\t\t//Crete the Customer\n\t\t$parameters = PayUTestUtil::buildSubscriptionParametersCustomer($parameters);\n\t\n\t\t// Subscription parameters\n\t\t$parameters[PayUParameters::QUANTITY] = \"5\";\n\t\t$parameters[PayUParameters::INSTALLMENTS_NUMBER] = \"2\";\n\t\t$parameters[PayUParameters::TRIAL_DAYS] = \"2\";\n\n\t\t// Plan parameters\n\t\t$parameters[PayUParameters::PLAN_DESCRIPTION] = \"Plan-SDK-PHP-Test\";\n\t\t$now = new DateTime();\n\t\t$parameters[PayUParameters::PLAN_CODE] = \"Plan-SDK-PHP-\" . $now->getTimestamp();\n\t\t$parameters[PayUParameters::PLAN_INTERVAL] = \"MONTH\";\n\t\t$parameters[PayUParameters::PLAN_INTERVAL_COUNT] = \"12\";\n\t\t$parameters[PayUParameters::PLAN_CURRENCY] = \"BRL\";\n\t\t$parameters[PayUParameters::PLAN_VALUE] = \"200\";\n\t\t$parameters[PayUParameters::PLAN_TAX] = \"10\";\n\t\t$parameters[PayUParameters::PLAN_TAX_RETURN_BASE] = \"30\";\n\t\t$parameters[PayUParameters::ACCOUNT_ID] = \"3\";\n\t\t$parameters[PayUParameters::PLAN_ATTEMPTS_DELAY] = \"2\";\n\t\t$parameters[PayUParameters::PLAN_MAX_PAYMENTS] = \"2\";\n\t\t$parameters[PayUParameters::PLAN_MAX_PENDING_PAYMENTS] = \"2\";\n\t\n\t\t// Bank account parameters\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_CUSTOMER_NAME] = \"User Test\";\n\t\t$parameters[PayUParameters::ACCOUNT_ID] = \"3\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_DOCUMENT_NUMBER] = \"78964874\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_DOCUMENT_NUMBER_TYPE] = \"CNPJ\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_BANK_NAME] = \"SANTANDER\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_TYPE] = \"CURRENT\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_NUMBER] = \"96325891\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_ACCOUNT_DIGIT] = \"2\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_AGENCY_DIGIT] = \"3\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_AGENCY_NUMBER] = \"4518\";\n\t\t$parameters[PayUParameters::COUNTRY] = \"BR\";\n\t\t//Terms and Conditions not accepted\n\t\t$parameters[PayUParameters::TERMS_AND_CONDITIONS_ACEPTED] = FALSE;\n\t\n\t\t$response = PayUSubscriptions::createSubscription($parameters);\n\t\n\t\t$this->assertNotNull($response->id);\n\t\t$this->assertEquals($parameters[PayUParameters::PLAN_CODE], $response->plan->planCode);\n\t\t$this->assertEquals($parameters[PayUParameters::PLAN_DESCRIPTION], $response->plan->description);\n\t\n\t\t$this->assertNotNull($response->customer->bankAccounts[0]->id);\n\t}", "title": "" }, { "docid": "9bcefd1cd32b6c58bc84dcff945e4b8d", "score": "0.53619534", "text": "public function store(Request $request)\n {\n $data = new Project;\n $data1 = new ProjectBudget;\n $data->project_name = $request->name;\n $data->project_description = $request->description;\n $data->project_team =implode(',', $request->teammembers);\n $data->project_file='';\n $data->project_status = $request->status;\n $data->client_company = $request->company;\n $data->project_leader = $request->leader;\n $data->save();\n $id=$data->id;\n //project_budget add\n $data1->project_id=$id;\n $data1->project_budget = $request->estimated_budget;\n $data1->amount_spent = $request->amount_spent;\n $data1->estimated_duration = $request->estimated_duration;\n \n $data1->save();\n\n return redirect()->route('projects.index')->with('success', 'Project created successfully.');\n }", "title": "" }, { "docid": "9f2876c76e2e713901ff1128fbb982e8", "score": "0.5361538", "text": "public function create()\r\n {\r\n $this->checkpermission('pr-create');\r\n $requestfps = Requestfp::all(); \r\n $suppliers = Supplier::all(); \r\n $purchase = Purchase::all();\r\n \r\n\r\n return view('backend.pr.create', compact('purchase','requestfps', 'suppliers','requestfps'));\r\n }", "title": "" }, { "docid": "81b4d5a6887c2aa3eb9806359b00abc3", "score": "0.53333795", "text": "public function newAction()\n\t{\n\n\t\t// Get payment methods\n\t\t$payment_methods = new PaymentMethods();\n\t\t$payment_methods_list = $payment_methods->listAll();\n\n\n\t\t// View configs\n\t\t$page_title = 'Nova cobrança';\n\t\t$page_content = PATH_VIEWS . 'charges/form.php';\n\t\t$page_vars = array(\n\n\t\t\t// Page h1\n\t\t\t'h1' => 'Adicionar cobrança',\n\n\t\t\t// Form action\n\t\t\t'form_action' => BASE_PATH . 'charges/create/',\n\n\t\t\t// Form action\n\t\t\t'send_button_label' => 'Adicionar cobrança',\n\n\t\t\t// Options to form\n\t\t\t'payment_methods_list' => $payment_methods_list,\n\n\t\t\t// Values for the input fields\n\t\t\t'values' => array(\n\n\t\t\t\t// Due date with 3 days more from today\n\t\t\t\t'due_date' => date('d/m/Y', strtotime('+3days'))\n\n\t\t\t)\n\t\t);\n\n\t\t// Loads the views\n\t\tLoader::setTitle($page_title);\n\t\tLoader::setVars($page_vars);\n\t\tLoader::loadView($page_content);\n\t}", "title": "" }, { "docid": "4d2c1684b24aace3f6f16d4c13d92a4a", "score": "0.5321574", "text": "public function create($params)\n {\n return $this->client->post('application_charges.json', 'application_charge', [\n 'application_charge' => $params,\n ]);\n }", "title": "" }, { "docid": "1298d2a1dfccd63304a1d3040d3b4fa3", "score": "0.53167784", "text": "public function testCreateSubscriptionNewPlanAndNewCustomerAndNewCreditCard() {\n\t\n\t\tPayU::$apiLogin = PayUTestUtil::API_LOGIN;\n\t\tPayU::$apiKey = PayUTestUtil::API_KEY;\n\t\tEnvironment::setSubscriptionsCustomUrl(PayUTestUtil::SUBSCRIPTION_CUSTOM_URL);\n\t\n\t\t$parameters = array();\n\t\t//Crete the Customer\n\t\t$parameters = PayUTestUtil::buildSubscriptionParametersCustomer($parameters);\n\t\n\t\t// Subscription parameters\n\t\t$parameters[PayUParameters::QUANTITY] = \"5\";\n\t\t$parameters[PayUParameters::INSTALLMENTS_NUMBER] = \"2\";\n\t\t$parameters[PayUParameters::TRIAL_DAYS] = \"2\";\n\t\n\t\t// Plan parameters\n\t\t$parameters[PayUParameters::ACCOUNT_ID] = \"1\";\n\t\t$parameters[PayUParameters::PLAN_DESCRIPTION] = \"Plan-SDK-PHP-Test-TC\";\n\t\t$now = new DateTime();\n\t\t$parameters[PayUParameters::PLAN_CODE] = \"Plan-SDK-PHP-\" . $now->getTimestamp();\n\t\t$parameters[PayUParameters::PLAN_INTERVAL] = \"MONTH\";\n\t\t$parameters[PayUParameters::PLAN_INTERVAL_COUNT] = \"12\";\n\t\t$parameters[PayUParameters::PLAN_CURRENCY] = \"COP\";\n\t\t$parameters[PayUParameters::PLAN_VALUE] = \"200\";\n\t\t$parameters[PayUParameters::PLAN_TAX] = \"10\";\n\t\t$parameters[PayUParameters::PLAN_TAX_RETURN_BASE] = \"30\";\n\t\t$parameters[PayUParameters::PLAN_ATTEMPTS_DELAY] = \"2\";\n\t\t$parameters[PayUParameters::PLAN_MAX_PAYMENTS] = \"2\";\n\t\t$parameters[PayUParameters::PLAN_MAX_PENDING_PAYMENTS] = \"2\";\n\t\n\t\t//Credit Card parameters\n\t\t$parameters[PayUParameters::CREDIT_CARD_NUMBER] = '4929577907116575';\n\t\t$parameters[PayUParameters::CREDIT_CARD_EXPIRATION_DATE] = '2015/01';\n\t\t$parameters[PayUParameters::PAYMENT_METHOD] = 'VISA';\n\t\t\t\n\t\t$parameters[PayUParameters::PAYER_NAME] = 'User Credit Card Test Name';\n\t\t$parameters[PayUParameters::PAYER_STREET] = 'CALLE 0 # 00-00';\n\t\t$parameters[PayUParameters::PAYER_CITY] = 'Arauca';\n\t\t$parameters[PayUParameters::PAYER_STATE] = 'Arauca';\n\t\t$parameters[PayUParameters::PAYER_COUNTRY] = PayUCountries::CO;\n\t\t$parameters[PayUParameters::PAYER_POSTAL_CODE] = '12345';\n\t\t$parameters[PayUParameters::PAYER_PHONE] = '123456789';\n\t\n\t\t$response = PayUSubscriptions::createSubscription($parameters);\n\t\t$this->subscription = $response;\n\t\n\t\t$this->assertNotNull($response->id);\n\t\t$this->assertEquals($parameters[PayUParameters::PLAN_CODE], $response->plan->planCode);\n\t\t$this->assertEquals($parameters[PayUParameters::PLAN_DESCRIPTION], $response->plan->description);\n\t\t$this->assertNotNull($this->subscription->customer->creditCards[0]->token);\n\t}", "title": "" }, { "docid": "8add09d05fdc3e0d11ecb27b726575b6", "score": "0.53106916", "text": "public function testCreatePlan(){\n\n\t\tPayU::$apiLogin = PayUTestUtil::API_LOGIN;\n\t\tPayU::$apiKey = PayUTestUtil::API_KEY;\n\t\tEnvironment::setSubscriptionsCustomUrl(PayUTestUtil::SUBSCRIPTION_CUSTOM_URL);\n\t\t\n\t\t$parameters = array();\n\t\t$parameters = PayUTestUtil::buildSuccessParametersPlan($parameters);\n\t\t\n\t\t$parameters[PayUParameters::PLAN_VALUE] = '50000';\n\t\t$parameters[PayUParameters::PLAN_TAX] = '10000';\n\t\t$parameters[PayUParameters::PLAN_TAX_RETURN_BASE] = '40000';\n\t\t$parameters[PayUParameters::PLAN_MAX_PAYMENT_ATTEMPTS] = '2';\n\t\t$parameters[PayUParameters::PLAN_MAX_PENDING_PAYMENTS] = '2';\n\t\t\n\t\t\n\t\t$response = PayUSubscriptionPlans::create($parameters);\n\t\t$this->assertNotNull($response->id);\n\t\t$this->assertEquals($parameters[PayUParameters::PLAN_CODE], $response->planCode);\n\t\t$this->assertEquals($parameters[PayUParameters::PLAN_DESCRIPTION], $response->description);\n\t\t$this->assertEquals($parameters[PayUParameters::PLAN_INTERVAL], $response->interval);\n\t\t$this->assertEquals($parameters[PayUParameters::PLAN_MAX_PENDING_PAYMENTS], $response->maxPendingPayments);\n\t\t$this->assertEquals($parameters[PayUParameters::PLAN_MAX_PAYMENT_ATTEMPTS], $response->maxPaymentAttempts);\n\t\t$this->assertEquals($parameters[PayUParameters::PLAN_MAX_PENDING_PAYMENTS], $response->maxPendingPayments);\n\t\t$this->assertCount(3, $response->additionalValues);\n\t\t\n\t}", "title": "" }, { "docid": "8fca4db5d6658e54423f77c18bfd1e85", "score": "0.530044", "text": "public function createPayable()\n {\n $isAdmin = $this->getIsAdmin();\n $list_company = $this->getListCompany();\n $list_model_type = Transaction::getListTypeOfTransaction();\n $transaction_type = Transaction::TYPE_PAYABLE;\n\n $title_transaction = 'Payable';\n $value_transaction_type = 1;\n $route_transaction_type = route('finance.transactions.payable.index');\n\n return view('finance.transaction.create', compact(\n 'isAdmin',\n 'list_company',\n 'transaction_type',\n 'list_model_type',\n 'title_transaction',\n 'value_transaction_type',\n 'route_transaction_type'\n ));\n }", "title": "" }, { "docid": "89110f9269f7eafa67b0a10dd3f2360b", "score": "0.53000754", "text": "public function create()\n \t{\n \t\t$insuranceCompany = InsuranceCompany::pluck('company_name','id');\n $plan=null;\n $edit=false;\n $disabled=\"\";\n \t\treturn view('plan::create_plan',compact(\n 'insuranceCompany',\n 'disabled',\n 'edit',\n 'plan')\n );\n \t}", "title": "" }, { "docid": "f070bcf9dccb4c106f887e715c4e7490", "score": "0.529788", "text": "public function actionCreate()\n {\n $model = new ProjectProposalYear();\n $model->date=date('Y-m-d H:i:s');\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n if (!empty(Yii::$app->session['model_items'])) {\n foreach (Yii::$app->session['model_items'] as $listprojects) {\n $proposal=new ProjectProposal;\n $proposal->project_proposal_year_id=$model->id;\n $proposal->project_name=$listprojects->project_name;\n $proposal->start_year=$listprojects->start_year;\n $proposal->end_year=$listprojects->end_year;\n $proposal->amount=$listprojects->amount;\n $proposal->code_old_project=$listprojects->code_old_project;\n $proposal->save();\n }\n unset(Yii::$app->session['model_items']);\n }\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "67a3e9940c0b8f847fa70bc64fa5a121", "score": "0.5295509", "text": "public function testCreateSubscriptionNewPlanAndNewCustomerAndTwoPaymentMethods() {\n\t\n\t\tPayU::$apiLogin = PayUTestUtil::API_LOGIN;\n\t\tPayU::$apiKey = PayUTestUtil::API_KEY;\n\t\tEnvironment::setSubscriptionsCustomUrl(PayUTestUtil::SUBSCRIPTION_CUSTOM_URL);\n\t\n\t\t$parameters = array();\n\t\t//Crete the Customer\n\t\t$parameters = PayUTestUtil::buildSubscriptionParametersCustomer($parameters);\n\t\n\t\t// Subscription parameters\n\t\t$parameters[PayUParameters::QUANTITY] = \"5\";\n\t\t$parameters[PayUParameters::INSTALLMENTS_NUMBER] = \"2\";\n\t\t$parameters[PayUParameters::TRIAL_DAYS] = \"2\";\n\t\n\t\t// Plan parameters\n\t\t$parameters[PayUParameters::PLAN_DESCRIPTION] = \"Plan-SDK-PHP-Test\";\n\t\t$now = new DateTime();\n\t\t$parameters[PayUParameters::PLAN_CODE] = \"Plan-SDK-PHP-\" . $now->getTimestamp();\n\t\t$parameters[PayUParameters::PLAN_INTERVAL] = \"MONTH\";\n\t\t$parameters[PayUParameters::PLAN_INTERVAL_COUNT] = \"12\";\n\t\t$parameters[PayUParameters::PLAN_CURRENCY] = \"BRL\";\n\t\t$parameters[PayUParameters::PLAN_VALUE] = \"200\";\n\t\t$parameters[PayUParameters::PLAN_TAX] = \"10\";\n\t\t$parameters[PayUParameters::PLAN_TAX_RETURN_BASE] = \"30\";\n\t\t$parameters[PayUParameters::ACCOUNT_ID] = \"3\";\n\t\t$parameters[PayUParameters::PLAN_ATTEMPTS_DELAY] = \"2\";\n\t\t$parameters[PayUParameters::PLAN_MAX_PAYMENTS] = \"2\";\n\t\t$parameters[PayUParameters::PLAN_MAX_PENDING_PAYMENTS] = \"2\";\n\t\n\t\t//Credit Card parameters\n\t\t$parameters[PayUParameters::CREDIT_CARD_NUMBER] = '4929577907116575';\n\t\t$parameters[PayUParameters::CREDIT_CARD_EXPIRATION_DATE] = '2015/01';\n\t\t$parameters[PayUParameters::PAYMENT_METHOD] = 'VISA';\n\t\t\t\t\t\n\t\t$parameters[PayUParameters::PAYER_NAME] = 'User Credit Card Test Name';\n\t\t$parameters[PayUParameters::PAYER_STREET] = 'CALLE 0 # 00-00';\n\t\t$parameters[PayUParameters::PAYER_CITY] = 'Leticia';\n\t\t$parameters[PayUParameters::PAYER_STATE] = 'Amazonas';\n\t\t$parameters[PayUParameters::PAYER_COUNTRY] = PayUCountries::CO;\n\t\t$parameters[PayUParameters::PAYER_POSTAL_CODE] = '12345';\n\t\t$parameters[PayUParameters::PAYER_PHONE] = '123456789';\n\t\t\n\t\t// Bank account parameters\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_CUSTOMER_NAME] = \"User Bank Account Test Name\";\n\t\t$parameters[PayUParameters::ACCOUNT_ID] = \"3\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_DOCUMENT_NUMBER] = \"78964874\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_DOCUMENT_NUMBER_TYPE] = \"CNPJ\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_BANK_NAME] = \"SANTANDER\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_TYPE] = \"CURRENT\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_NUMBER] = \"96325891\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_ACCOUNT_DIGIT] = \"2\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_AGENCY_DIGIT] = \"3\";\n\t\t$parameters[PayUParameters::BANK_ACCOUNT_AGENCY_NUMBER] = \"4518\";\n\t\t$parameters[PayUParameters::COUNTRY] = \"BR\";\n\t\t$parameters[PayUParameters::TERMS_AND_CONDITIONS_ACEPTED] = TRUE;\n\t\n\t\t$response = PayUSubscriptions::createSubscription($parameters);\n\t\n\t\t$this->assertNotNull($response->id);\n\t\t$this->assertEquals($parameters[PayUParameters::PLAN_CODE], $response->plan->planCode);\n\t\t$this->assertEquals($parameters[PayUParameters::PLAN_DESCRIPTION], $response->plan->description);\n\t\n\t\t$this->assertNotNull($response->customer->bankAccounts[0]->id);\n\t}", "title": "" }, { "docid": "a094729fc68492b1cbbe53a0205da51e", "score": "0.5294737", "text": "public function created(Project $project)\n {\n //\n }", "title": "" }, { "docid": "2b121e1c2e3adf25d1315fcf77b63d63", "score": "0.52724266", "text": "public function makeContractPayment($contractPaymentFields = [])\n {\n /** @var ContractPaymentRepository $contractPaymentRepo */\n $contractPaymentRepo = App::make(ContractPaymentRepository::class);\n $theme = $this->fakeContractPaymentData($contractPaymentFields);\n return $contractPaymentRepo->create($theme);\n }", "title": "" }, { "docid": "f6ff0c45c10029e7ebd0fa5e033c2cc1", "score": "0.52633226", "text": "public function create($amount, array $properties = array());", "title": "" }, { "docid": "5aeea15f87579e8528ec5ad4623e2c5e", "score": "0.5250081", "text": "public function create()\n {\n $projects = ['' => ''] + Project::pluck('name', 'id')->toArray();\n return view('recharges.create',compact('projects'));\n }", "title": "" }, { "docid": "52f14631df47e90498b718e557dd5e7e", "score": "0.52483225", "text": "public function testChargesCreate()\n {\n $checkoutsApi = new CheckoutsApi;\n $chargesApi = new ChargesApi;\n\n $req = $this->_payloadHelper->getCheckoutPayload();\n $checkout = $checkoutsApi->checkoutsCreate($req);\n\n $this->_payloadHelper->setCheckoutId($checkout->getId());\n\n $chargeReq = $this->_payloadHelper->getChargePayload();\n $response = $chargesApi->chargesCreate($chargeReq);\n }", "title": "" }, { "docid": "fbb0311e02f65f18a09d656892527376", "score": "0.5247751", "text": "public function createProject(Request $request)\n {\n $theRequest = $request->only([\n 'name',\n 'client_id',\n 'status',\n\n ]);\n\n $validator = Validator::make($theRequest,[\n 'name' =>'required',\n 'client_id' =>'required|exists:clients,id',\n 'status' =>'required|in:in-progress,in-active,hold'\n ]);\n\n\n if ($validator->errors()->any()) {\n return $this->ValidationError($validator, __('Validation Error'));\n }\n //$theRequest['staff_id'] = Auth::id();\n $theRequest['staff_id'] = 1;\n $project = Project::create($theRequest);\n if ($project)\n return $this->respondCreated($project);\n else {\n return $this->json(false,__('Can\\'t Add New Project'));\n }\n }", "title": "" }, { "docid": "16fe0bc75cb5c30a4f1131e8f88e2d48", "score": "0.5243852", "text": "public function create()\n {\n\n if (!$this->is_logged_in_as_organizer()) {\n redirect('/');\n }\n else\n {\n\n $this->form_validation->set_rules('package_name', 'package name', 'required');\n $this->form_validation->set_rules('package_price', 'package value', 'required|numeric');\n $this->form_validation->set_rules('package_number', 'package value', 'required|numeric');\n\n if ($this->form_validation->run() == TRUE) {\n\n $package_name = $this->security->xss_clean($this->input->post('package_name'));\n $package_price_in_dollars = $this->security->xss_clean($this->input->post('package_price'));\n $package_number = $this->security->xss_clean($this->input->post('package_number'));\n\n $this->prize_package->package_name = $package_name;\n $this->prize_package->package_price_in_dollars = $package_price_in_dollars;\n $this->prize_package->package_number = $package_number;\n\n $this->prize_package->create();\n\n redirect('catalog/all');\n }\n else\n {\n $this->load->view('global/header');\n\n if ($this->session->has_userdata('user')) {\n /**\n * TODO: Check permissions and show organizer options if appropriate.\n */\n $this->load->view('menu/user_menu');\n }\n else\n {\n $this->load->view('menu/default_menu');\n }\n\n $this->load->view('forms/add_prize_package');\n $this->load->view('global/footer');\n }\n }\n }", "title": "" }, { "docid": "58cdffc1765c5888c6daa42af3cd858b", "score": "0.52308637", "text": "public function create(array $options = [])\n {\n $payload = array_merge($this->buildPayload(), $options);\n\n if (! is_null($trialDays = $this->getTrialEndForPayload())) {\n // Razorpay not have trail option \n // we neet to manually\n $payload['start_at'] = now()->addDays($trialDays)->timestamp;\n }\n\n $payload['notes'] = array_merge($this->metadata, [\n 'subscription_name' => $this->name,\n ]);\n \n //$payload['plan_id'] = $this->plan;\n $payload['total_count'] = 999;\n \n return $this->billable->chargeProduct($this->plan, $payload);\n }", "title": "" }, { "docid": "e36dfc362cc0786e957045f378e2d017", "score": "0.5229852", "text": "function _erpal_projects_billable_update_project($node) {\n \n $billables = _erpal_projects_billable_billbales_by_subject_nid($node->nid, true);\n \n $billable_information = _erpal_projects_billable_subject_billable_information_subject($node);\n \n /*\n //now we have all information to create a billable from this project\n $price_mode = isset($billable_information['per_hour']) ? $billable_information['per_hour'] : 0;\n $price = isset($billable_information['price']) ? $billable_information['price'] : 0; \n $customer_node = $billable_information['customer'];\n\n //not a fixed price project, no customer or no price set? Skip!\n if (!($price_mode == 'fixed_price' && $price && $customer_node))\n return;\n */\n _erpal_billable_update_billable($node, 'update');\n \n}", "title": "" }, { "docid": "065e8852e5c14f11a6ea176ac3d6cc97", "score": "0.5229017", "text": "public function create()\n {\n //\n return view('dashboard.contributions.make-payment.create');\n }", "title": "" }, { "docid": "07e9f7dd685c2b76707efa50b95df539", "score": "0.5225789", "text": "public function create()\n {\n return view('website::plan.create');\n }", "title": "" }, { "docid": "b8b0dfb511e351b05c43b6d0211b0d1f", "score": "0.52210325", "text": "public function payBills( $paymentInfo, $bills, $preleaseBills ) {\t\t\t\t\t\n\t\t$db = Zend_Registry::get('db');\n\t\t$db->beginTransaction();\n\t\t\n\t\ttry{\n\t\t $pmtCreationObj = new Financial_Model_PaymentCreation( array( 'db'=>$db ) );\n\t\t $pmtCreationObj->setReuseDetailId(1);\n\t\t $result=false;\t\t\n\t\t\n\t\t if( $bills ){\t\t\t\t\n\t\t /**\n\t\t * 1. Place the below block into a helper class or smtg\n\t\t * 2. Take into account the accountLink\n\t\t */\n\t\t $result=false;\t\t\t\n\t\t $result = $this->createPayment( $pmtCreationObj, $bills, $paymentInfo );\t\t\t\n\t\t }\t\t\n\t\t \n\t\t if( $preleaseBills ){\t\t\t\t\n\t\t /**\n\t\t * 1. Place the below block into a helper class or smtg\n\t\t * 2. Take into account the accountLink\n\t\t */\n\t\t $result=false;\n\t\t $result = $this->createPayment( $pmtCreationObj, $preleaseBills, $paymentInfo, true );\n\t\t }\t\t \n\t\t $db->commit();\n\t\t return $result;\n\t\t}\n\t\tcatch ( Exception $e) {\t\t \n\t\t\t$db->rollback();\t\t\t\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "0542f8076dfa6547cc5a9a9af9e6e20c", "score": "0.52205783", "text": "public function addNewProject($payload){\n\n \t$days_default = 90;\n\n \t$api_key \t\t = \"C-\".rand(000, 999).rand(000, 999).rand(000, 999);\n \t$payload->status \t\t= \"active\";\n \t$payload->duration \t\t= Carbon::now()->addDays($days_default);\n \t$payload->last_update \t= \"none\";\n \t$payload->project_stage = \"development\";\n\n \t// body\n \t$new_project \t\t\t\t= new Project();\n \t$new_project->name \t\t\t= $payload->name;\n \t$new_project->sector \t\t= $payload->sector;\n \t$new_project->client \t\t= $payload->clients;\n \t$new_project->company \t\t= $payload->company;\n \t$new_project->app_key \t\t= $api_key;\n \t$new_project->status \t\t= $payload->status;\n \t$new_project->duration \t\t= $payload->duration;\n\t\t$new_project->last_update \t= $payload->last_update;\n\t\t$new_project->project_stage = $payload->project_stage;\n \tif($new_project->save()){\n \t\t$data = [\n \t\t\t'status' \t=> 'success',\n \t\t\t'message' \t=> $payload->name.' added successfully !'\n \t\t];\n \t}else{\n \t\t$data = [\n \t\t\t'status' \t=> 'error',\n \t\t\t'message' \t=> 'Failed to add new project!'\n \t\t];\n \t}\n\n \t// return\n \treturn $data;\n }", "title": "" }, { "docid": "46a21ab4952fea7550a0ff75147d8fea", "score": "0.52194214", "text": "public function create(Project $project){\n // not so elegant\n // Task::create([\n // 'project_id' => $project->id,\n // 'description' => request('description')\n // ]);\n\n // $project->addTask(request('description'));\n // logic encapsulation\n $project->addTask(\n request()->validate([\n 'description'=>'required'\n ]) // this returns an array of [ 'description' => $description ]\n );\n\n return back();\n }", "title": "" }, { "docid": "0bb23ee3bb12654c1964c9770c979a5c", "score": "0.5208819", "text": "public function create(Google_Service_CloudResourceManager_Project $postBody, $optParams = array())\n {\n $params = array('postBody' => $postBody);\n $params = array_merge($params, $optParams);\n return $this->call('create', array($params), \"Google_Service_CloudResourceManager_Operation\");\n }", "title": "" }, { "docid": "e88a7ac7af3f9ca3d5c6272654748fbf", "score": "0.51770616", "text": "public function store(Request $request)\n { \n $validator = Validator::make($request->all(), [\n 'name' => 'required',\n 'client_id' => 'required',\n 'billing_type' => 'required',\n 'status' => 'required',\n 'fixed_rate' => 'required_if:billing_type,fixed',\n 'hourly_rate' => 'required_if:billing_type,hourly',\n 'start_date' => 'required',\n ]);\n\n if ($validator->fails()) {\n if($request->ajax()){ \n return response()->json(['result' => 'error', 'message' => $validator->errors()->all()]);\n }else{\n return redirect()->route('projects.create')\n ->withErrors($validator)\n ->withInput();\n } \n }\n \n DB::beginTransaction();\n\n $project = new Project();\n $project->name = $request->input('name');\n $project->client_id = $request->input('client_id');\n $project->progress = $request->input('progress');\n $project->billing_type = $request->input('billing_type');\n $project->status = $request->input('status');\n $project->fixed_rate = $request->input('fixed_rate');\n $project->hourly_rate = $request->input('hourly_rate');\n $project->start_date = $request->input('start_date');\n $project->end_date = $request->input('end_date');\n $project->description = $request->input('description');\n $project->user_id = Auth::id();\n $project->company_id = company_id();\n\n $project->save();\n\n create_log('projects', $project->id, _lang('پروژه ساخته شد'));\n\n\n //Store Project Members\n if(isset($request->members)){\n foreach($request->members as $member){\n $project_member = new ProjectMember();\n $project_member->project_id = $project->id;\n $project_member->user_id = $member;\n $project_member->save();\n\n create_log('projects', $project->id, _lang('مربوط به').' '.$project_member->user->name);\n }\n }\n\n\n if($project->client->user->id != null){\n Notification::send($project->client->user, new ProjectCreated($project));\n }\n Notification::send($project->members, new ProjectCreated($project));\n\n DB::commit();\n\n\n if(! $request->ajax()){\n return redirect()->route('projects.create')->with('success', _lang('با موفقیت ذخیره شد'));\n }else{\n return response()->json(['result'=>'success','action'=>'store','message'=>_lang('با موفقیت ذخیره شد'), 'data'=>$project, 'table' => '#projects_table']);\n }\n \n }", "title": "" }, { "docid": "c15e9491f8c02d1ba914523da5dc8186", "score": "0.51761866", "text": "public function acceptProjectAction()\n {\n // Get logged in userId and username\n $sessionUserId = $this->_loginNamespace->session_user_id;\n $sessionUserName = $this->_loginNamespace->session_username;\n \n // Disable layout and stop view rendering\n $this->_helper->layout->disableLayout();\n $this->_helper->viewRenderer->setNoRender(true);\n \n // Receive projectId and bidderUserId parameters\n $projectId = $this->getRequest()->getUserParam('projectId');\n $bidderUserId = $this->getRequest()->getUserParam('bidderUserId');\n \n // If logged in user is not the bidder, stop him\n if ( $sessionUserId != $bidderUserId ) die('Hacking attempt');\n \n // Create mapper objects\n $projectBidMapper = new Application_Model_ProjectBidMapper();\n $projectMapper = new Application_Model_ProjectMapper();\n $messageMapper = new Application_Model_MessageMapper();\n $creditBalanceMapper = new Application_Model_CreditBalanceMapper();\n \n // Get project and project owner info\n $project = $projectMapper->getProject($projectId);\n \n // Get bidder bid amount\n $projectUserBidAmount = $projectBidMapper->getProjectUserBidAmount($projectId, $bidderUserId);\n \n // Prepare credit balance object of project owner\n $creditBalanceOwner = new Application_Model_CreditBalance();\n $creditBalanceOwner->setUserId($bidderUserId);\n $creditBalanceOwner->setTransactionForUserId($project->getProjectOwner()->getUserId());\n $creditBalanceOwner->setCreatedOn(date('Y-m-d H:i:s', time()));\n $creditBalanceOwner->setType('earned');\n $creditBalanceOwner->setBalance($projectUserBidAmount);\n $creditBalanceOwner->setStatus(1);\n \n // Prepare credit balance object of bidder\n $creditBalanceBidder = new Application_Model_CreditBalance();\n $creditBalanceBidder->setUserId($project->getProjectOwner()->getUserId());\n $creditBalanceBidder->setTransactionForUserId($bidderUserId);\n $creditBalanceBidder->setCreatedOn(date('Y-m-d H:i:s', time()));\n $creditBalanceBidder->setType('spend');\n $creditBalanceBidder->setBalance($projectUserBidAmount);\n $creditBalanceBidder->setStatus(1);\n \n // Prepare message object\n $message = new Application_Model_Message();\n $message->setProjectId($projectId);\n $message->setSenderUserId($bidderUserId);\n $message->setReceiverUserId($project->getProjectOwner()->getUserId());\n $message->setMessage('Your assign project has accepted by ' \n . $sessionUserName . '.To show details please ' \n . '<a href=\"' . $this->view->baseUrl('project/project-details') . '/' \n . $projectId . '/\">click here</a>');\n \n // Begin sql transaction to keep updates stable\n $bootstrap = $this->getInvokeArg('bootstrap');\n $bootstrap->bootstrap('db');\n $db = $bootstrap->getResource('db');\n $db->beginTransaction();\n \n try {\n // Update bid status to accepted\n $projectBidMapper->setBidAcceptDecline($projectId, $bidderUserId);\n // Update project status to closed\n $projectMapper->updateProjectClose($projectId, $bidderUserId);\n // Save project owner credit balance info\n $creditBalanceMapper->saveCreditBalance($creditBalanceOwner);\n // Save bidder credit balance info\n $creditBalanceMapper->saveCreditBalance($creditBalanceBidder);\n // Save message\n $messageMapper->saveMessage($message);\n // Commit all updates\n $db->commit();\n } catch (Exception $e) {\n // Rollback updates on failure\n $db->rollBack();\n echo $e->getMessage();\n }\n \n // Redirect to project details page\n $this->_redirector->gotoRoute(array('projectId' => $projectId), 'projectDetails');\n }", "title": "" }, { "docid": "099b9eb42add220628e21aca94f0ac24", "score": "0.5175429", "text": "function createProject(){\n\n}", "title": "" }, { "docid": "57c7549c33cea02c4021fc48b070572b", "score": "0.516478", "text": "public function actionCreateByProject($projectId) {\n $model = new UserProject();\n $model->rollon_date = date('Y-m-d');\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['UserProject'])) {\n $user_ids = $_POST['UserProject']['user_id'];\n unset($_POST['UserProject']['user_id']);\n foreach ($user_ids as $user_id) {\n $up = new UserProject;\n $up->attributes = $_POST['UserProject'];\n $up->project_id = $projectId;\n $up->user_id = $user_id;\n $up->save();\n }\n $this->sendAssociationNotification($user_ids, $projectId);\n $this->sendEmailAssociationNotification($user_ids, $projectId);\n $this->redirect(array('project/view', 'id' => $projectId));\n }\n\n $this->render('createByProject', array(\n 'model' => $model,\n 'projectId' => $projectId\n ));\n }", "title": "" }, { "docid": "2c89399669d9cdfc1ac0cc15e1ded863", "score": "0.51631457", "text": "public function actionCreate()\n {\n $model = new PlanForm();\n $modelUpload = new UploadForm();\n\n $cathedrlas = CathedraForm::find()->all();\n $speciality = SpecialityForm::find()->all();\n $subject = SubjectForm::find()->all();\n\n if ($model->load(Yii::$app->request->post())) {\n\n $modelUpload->file = UploadedFile::getInstance($modelUpload, 'file');\n $model->file = $modelUpload->upload();\n\n $file_type_query = TypeForm::findOne(['name' => $modelUpload->file_type]);\n $model->type_id = $file_type_query->id;\n\n $model->save();\n\n return $this->redirect(['plan/index']);\n }\n\n return $this->render('create', [\n 'model' => $model,\n 'modelUpload' => $modelUpload,\n 'cathedrlas' => $cathedrlas,\n 'speciality' => $speciality,\n 'subject' => $subject,\n ]);\n }", "title": "" }, { "docid": "7ac76838792f856a3824ff3dd8121ccc", "score": "0.5157208", "text": "public function store(Request $request)\n {\n //first, copy the needed data to initialize the project\n $Proposal_id = $_POST['proposal_id'];\n $info = CustomDB::getInstance()->query(\"SELECT title,posts.body as body, proposals.cost as cost, description_file, period, proposals.user_id as craftman, category, posts.id as post_id_original FROM proposals,posts WHERE posts.id = post_id and proposals.id = ?\",[$Proposal_id])->results();\n \n $title = $info[0]->title;\n $body = $info[0]->body;\n $cost = $info[0]->cost;\n $description_file = $info[0]->description_file;\n $period = $info[0]->period;\n //calculate suppose_to_finish date\n $created_at = Carbon::now('Africa/Cairo')->toDateTimeString();\n $info2 = CustomDB::getInstance()->query(\"SELECT DATE_ADD(?, INTERVAL ? day) AS DateAdd\",[$created_at,$period])->results();\n $suppose_to_finish = $info2[0]->DateAdd;\n $customer_id = Auth::id();\n $craftman_id = $info[0]->craftman;\n $category = $info[0]->category;\n\n $post_id_to_be_deleted = $info[0]->post_id_original;\n\n //second, take the points from the customer\n $user_id = Auth::id();\n $project_cost = (int)($cost);\n $customers_current_points = CustomDB::getInstance()->query(\"SELECT points FROM users WHERE id = ?\",[$user_id])->results();\n $customers_current_points = (int)($customers_current_points[0]->points);\n $customers_current_points = $customers_current_points - $project_cost;\n $sql = CustomDB::getInstance()->query(\"UPDATE users SET points = ? WHERE id = ?\",[$customers_current_points, $user_id])->results();\n\n //third, create the project\n\n $check = CustomDB::getInstance()->insert(\"projects\", array(\n 'title' => $title,\n 'body' => $body,\n 'cost' => $cost,\n 'description_file' => $description_file,\n 'suppose_to_finish' => $suppose_to_finish,\n 'craftman_id' => $craftman_id,\n 'customer_id' => $customer_id,\n 'category' => $category,\n 'created_at' => $created_at\n ))->e();\n\n $id = CustomDB::getInstance()->query(\"SELECT id FROM projects WHERE craftman_id = ? and customer_id = ? and created_at = ?\", [$craftman_id,$customer_id,$created_at])->results();\n $id = $id[0]->id;\n //finally, delete the post with its proposals\n $check1 = CustomDB::getInstance()->delete(\"posts\")->where(\"id = ?\", [$post_id_to_be_deleted])->e();\n\n if($check && $check1) {\n //notification porposal is accepted\n //type 1 proposal is sent, 2 porposal is accepted, 3 message \n CustomDB::getInstance()->insert(\"notifications\", array(\n 'user_id' => $craftman_id,\n 'project_id' => $id,\n 'type' => 2,\n 'created_at' => $created_at,\n ))->e();\n return redirect()->route('projects.show', $id)->with('success', 'Project Initiated Successfully');\n }\n return redirect()->route('projects.show', $id)->with('error', 'Project Initiation Unsuccessfull');\n }", "title": "" }, { "docid": "340435d300c3632f40c9ded8b3762643", "score": "0.5147956", "text": "public function store(Request $request)\n {\n $project = Project::findOrFail($request->project_id);\n $this->authorize('in-project', $project);\n\n // Depending on the users role in the project different validation occur\n $project->load('users');\n $role = $project->users->where('id', $request->user()->id)->first()->pivot->role;\n\n if ( $role === 'service' ) {\n $custom = [\n 'client_name' => 'required',\n 'client_identity' => 'required', \n 'contractor_name' => '',\n 'contractor_identity' => ''\n ];\n } else {\n $custom = [\n 'client_name' => '',\n 'client_identity' => '', \n 'contractor_name' => 'required',\n 'contractor_identity' => 'required'\n ];\n }\n \n $data = $this->validate($request, array_merge($custom, [\n 'project_id' => 'required|exists:projects,id', \n 'project_description' => 'required',\n 'contractor_dissuasion' => '', \n 'project_start' => 'required|date_format:Y-m-d|after_or_equal:today', \n 'project_end' => 'required|date_format:Y-m-d|after_or_equal:today', \n 'project_price' => 'required|numeric',\n 'project_price_specified' => '',\n 'payment_full' => '', \n 'payment_specified' => '', \n 'other' => ''\n ]));\n\n // Try and create the contract.\n $this->manager->byUser( $request->user() )\n ->forProject( $project )\n ->create( $data );\n\n // The contract could not be created.\n if ( $this->manager->hasError() ) {\n return response()->json(['message' => $this->manager->errorMessage()], $this->manager->errorCode());\n }\n\n return response()->json([\n 'message' => $this->manager->successMessage(),\n 'data' => [\n 'contract' => $this->manager->contract(),\n 'history' => $this->manager->history()\n ]\n ], $this->manager->successCode());\n }", "title": "" }, { "docid": "1136e7d6e4342ddc0f587b3a7251ec1f", "score": "0.5146636", "text": "public function create()\n {\n if (!Auth::user()->can('admin-projects-create')) {\n app()->abort(403);\n }\n\n $project = new Project();\n $form_data = array('route' => array('admin.projects.store'),\n 'method' => 'POST',\n 'id' => 'formData',\n 'class' => 'form-horizontal');\n $page_title = trans(\"timetracker::projects/admin_lang.new\");\n\n $customersList = Customer::pluck('name', 'id')->all();\n\n\n $statesList = ProjectState::all();\n $typesList = ProjectType::all();\n\n $invoicedList = InvoicedState::all();\n $responsableList = User::join('user_profiles', 'users.id', '=', 'user_profiles.user_id')\n ->select(\n 'users.id',\n DB::raw(\"CONCAT(first_name,' ',last_name) as nombre\")\n )\n ->orderBy('nombre', 'ASC')\n ->pluck('nombre', 'users.id')->all();\n\n $project->budget_number = $this->proponerNumeroOferta();\n $project->order_number = $this->proponerNumeroProyecto();\n $project->vat = 21;\n\n\n $tiempo_estimado = \"?\";\n return view(\n 'timetracker::projects.admin_edit',\n compact(\n 'page_title',\n 'project',\n 'form_data',\n 'customersList',\n 'statesList',\n 'invoicedList',\n 'typesList',\n 'tiempo_estimado',\n 'responsableList'\n )\n )\n ->with('page_title_icon', $this->page_title_icon);\n }", "title": "" }, { "docid": "fb62e4703a811b084e37e01fa61558c1", "score": "0.51424664", "text": "public function createAction(\\AmosCalamida\\Kzoreschedule\\Domain\\Model\\Project $project, \\AmosCalamida\\Kzoreschedule\\Domain\\Model\\Change $newChange)\n {\n $this->addFlashMessage('Die Verschiebung wurde gespeichert.', '', \\TYPO3\\CMS\\Core\\Messaging\\AbstractMessage::OK);\n $project->addChange($newChange);\n $this->projectRepository->update($project);\n $this->redirect(\"show\", \"Project\", NULL, array(\"project\" => $project));\n }", "title": "" }, { "docid": "daf48e4c6c23e1734ae0352e1e28cb6e", "score": "0.51405925", "text": "public function create()\n {\n $orders = \\App\\Order::all();\n JavaScript::put([\n 'user' => Auth::user(),\n 'projectsPostUrl' => route('projects.store'),\n 'orders' => \\App\\Order::with('client')->get(),\n 'clients' => \\App\\Client::all()\n ]);\n\n return view('project.create');\n }", "title": "" }, { "docid": "1552e241d628f3857674abd16b6308cc", "score": "0.51350296", "text": "public static function create_project($request) {\n $user = JWTAuth::parseToken()->toUser();\n\n /* create object of project for update project Detail */\n $createSingleProject = new Project;\n $createSingleProject->fill($request);\n\n /* Get current login user ID from JWT AUTH token */\n $createSingleProject->created_by = $user->id;\n if ($createSingleProject->save()) {\n $assignProjectDetails = array(\n \"project_id\" => $createSingleProject->id,\n \"user_id\" => $request[\"users\"],\n \"created_by\" => $user->id,\n );\n\n /* AFter saving project call function that will save assignees of project in database */\n $saveAssigneeStatus = self::save_project_assigness($request[\"users\"], $assignProjectDetails);\n if($saveAssigneeStatus){\n return $createSingleProject;\n } else {\n return false; \n }\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "9887685fe19bbeada5ec132f229eab35", "score": "0.5132979", "text": "public function create()\n {\n $data['benef_name'] = Benef::pluck('name','id');\n \n $data['activity'] = Activity::pluck('name','id');\n\n $data['projects'] = Project::pluck('project_code','id');\n\n // dd($data);\n return view('quotelab.create', $data);\n }", "title": "" }, { "docid": "ec49a9c1cc36fc2f0d9397a8a2a446a0", "score": "0.5132795", "text": "public function create()\n\t{\t\t\n\t\t$alcance = AlcanceProyecto::proyectosDisponibles();////////\n\t\t$costo = Costo::GetAlcanceId();///\n\t\t$this->layout->titulo = 'Crear costos';\n $this->layout->nest(\n 'content',\n 'costos.create',\n array( \n 'costos' => $costo,\n 'alcance' => $alcance \t \n )\n );\n\n\t}", "title": "" }, { "docid": "75b5fbbb35f9aa7db98ead0d644d0f51", "score": "0.51297456", "text": "protected function createProject() {\n\t\t$t_data = $this->generateProjectData();\n\t\t$t_response = $this->builder()->post( $this->endpoint, $t_data )->send();\n\t\t$this->assertEquals( HTTP_STATUS_CREATED, $t_response->getStatusCode() );\n\n\t\t$t_body = json_decode( $t_response->getBody() );\n\t\treturn $t_body->project;\n\t}", "title": "" }, { "docid": "646dc319619cbf0fa5e34a5da3dc6e91", "score": "0.5129439", "text": "public function actionCreate()\n {\n $model = new ProjectRecord();\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 }", "title": "" }, { "docid": "6a6dd3fbc8ff70c149f067c541ce363d", "score": "0.51264155", "text": "public function actionCreate()\r\n {\r\n $model = new BsCurrency();\r\n if ($model->load(Yii::$app->request->post())) {\r\n if ($model->save()) {\r\n return $this->success();\r\n } else {\r\n return $this->error();\r\n }\r\n } else {\r\n return $this->error();\r\n }\r\n }", "title": "" }, { "docid": "8cca841a5e36992bc9479475321a2e72", "score": "0.5126276", "text": "public function add(CreateChargeRateRequest $request, Client $client)\n {\n $request->store($client);\n }", "title": "" }, { "docid": "6a87a593e5b9f42677b53f2ff20988a6", "score": "0.5121866", "text": "public function actionCreate() {\n $model = new ResourceAllocationProjectWork;\n $dataProvider = new CActiveDataProvider('ResourceAllocationProjectWork');\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n\n if (isset($_POST['ResourceAllocationProjectWork'])) {\n $model->attributes = $_POST['ResourceAllocationProjectWork'];\n $model->modified_by = Yii::app()->session['login']['user_id'];\n $model->modified_at = date('Y-m-d H:i:s');\n if ($model->save())\n $this->redirect(array('view', 'id' => $model->id));\n }\n\n $getData = $model->projectStatus(); // Project Name and daily Status\n\n $this->render('create', array('model' => $model, 'data' => $getData, 'dataProvider' => $dataProvider));\n }", "title": "" }, { "docid": "0fe50287a547c666c565861f0d325f8f", "score": "0.51213056", "text": "public function create()\n\t{\n\t\treturn view(\"project.create\");\n\t}", "title": "" }, { "docid": "3d07ff071b92583622284b73af074639", "score": "0.511321", "text": "public function create()\n {\n Policy::canCreate(new PaymentMethod());\n\n return view('modules.company.payment.methods.create');\n }", "title": "" }, { "docid": "9e9a37375be5a9addfcf23e07b31bb2a", "score": "0.5111412", "text": "public function actionCreate()\n {\n $payment_methods = [\n 1 => 'Cash',\n 2 => 'Bank',\n ];\n\n return $this->render('create', [\n 'payment_methods' => $payment_methods,\n ]);\n }", "title": "" }, { "docid": "46305a3dcd471a3479a504a87f260be3", "score": "0.5110446", "text": "public function testAddBonusPlan()\n {\n \n $projBonusPlanData = new ProjBonusPlanData;\n $projBonusPlanData->add('KKC-BJ0006', 1000, 6000, 0.01, 1, 5, '2017-11-13 02:30:00', '2017-11-13 03:10:00', 3);\n die;\n // $BonusPlanData = new BonusPlanData;\n // // $BonusPlanData->executeBonusPlan('PBP2017110621162876271');\n // $data = new \\App\\Data\\Auth\\AccessToken;\n // $appid = $data->create_guid('appid');\n // dump($appid);\n // $appSe = DocNoMaker::getRandomString(16);\n // dump($appSe);\n // dump(md5($appid . md5($appid . $appSe)));\n // $applicationData = new \\App\\Data\\Sys\\ApplicationData;\n // dump($applicationData->add('微信', 0.01, '测试'));\n }", "title": "" }, { "docid": "5cb6d59901091726de620c65c6ff2e68", "score": "0.5108766", "text": "public function store(CreateProjectRequest $request)\n {\n \n $input = $request->all();\n\n $project = Project::create($input);\n\n $project->customers()->sync($request->cust_id);\n\n return redirect()->route('accounts');\n }", "title": "" }, { "docid": "b950d286faf360e61ab3ff6077b9a817", "score": "0.5107772", "text": "public function create()\n {\n $budget_type = Budget::getEnum('budget_type')['CAPITAL'];\n\n $user = Auth::user();\n $user->authorizeRoles('College Admin');\n $institution = $user->institution();\n $collegeName = $user->collegeName;\n\n $budgets = array();\n /** @var College $college */\n foreach ($institution->colleges as $college)\n if ($college->collegeName->id == $collegeName->id)\n if ($user->hasRole('College Super Admin'))\n foreach ($college->budgets as $budget)\n $budgets[] = $budget;\n else\n foreach ($college->budgets()->where('budget_type', $budget_type) as $budget)\n $budgets[] = $budget;\n\n $data = [\n 'budget_type' => 'CAPITAL',\n 'budget_types' => Budget::getEnum('budget_type'),\n 'budget_descriptions' => BudgetDescription::all(),\n 'budgets' => $budgets,\n\n 'has_modal' => 'yes',\n 'page_name' => 'budgets.budget.create'\n ];\n\n return view('budgets.budget.index')->with($data);\n }", "title": "" }, { "docid": "94991a4422708883c6f36edc9449ed97", "score": "0.5106279", "text": "public function create()\n {\n abort_if(Gate::denies('payment_create'),Response::HTTP_FORBIDDEN, '403');\n return view('admin.payment.create');\n }", "title": "" }, { "docid": "25bb321c96b2b8db44eacf0ce239f39a", "score": "0.5105236", "text": "public function create(Request $request)\n {\n $fields = $this->projectService->fillCreate();\n return View::make('project.plan.create')->with('users',$fields['users'])\n ->with('projectTypes',$fields['projectTypes']);\n }", "title": "" }, { "docid": "1f007060107d08aff9200a7dc9cb9206", "score": "0.5096126", "text": "public function create()\n {\n return view('plans.create');\n }", "title": "" }, { "docid": "98626d0f36c0abb1da2b76d48222baa4", "score": "0.5094703", "text": "public function run()\n {\n Plan::create([\n 'name' => 'Free',\n 'cost' => 0,\n ]);\n\n Plan::create([\n 'name' => 'Pro',\n 'cost' => 1500,\n ]);\n\n Plan::create([\n 'name' => 'Enterprise',\n 'cost' => 2900,\n ]);\n }", "title": "" }, { "docid": "045bc1811466b0480df54f494ec558e2", "score": "0.50918436", "text": "public function create()\n {\n return view('backend.pricing.create');\n }", "title": "" }, { "docid": "0a4df663db0c197b15a031b25c16ba5e", "score": "0.50903016", "text": "public function store(Request $request)\n {\n $request->validate([\n 'nop'=>'required|max:20|unique:projects,nop',\n 'customer_id'=>'required',\n 'spk' => 'required|max:20|unique:projects,spk',\n 'asal' => 'required|max:20',\n 'tujuan' => 'required|max:20',\n 'tarif'=>'required|numeric|max:100000000000000',\n 'qty' => 'required|numeric|max:1000000000',\n 'tarif_vendor' => 'required|numeric|max:100000000000000',\n 'biaya_lain' => 'nullable|numeric|max:100000000000000'\n ]);\n //CUSTOMER ID MASUKIN DI TABEL GABUNGAN\n $project = new Project([\n 'nop' => $request->get('nop'),\n 'customer_id' => $request->get('customer_id'),\n 'spk' => $request->get('spk'),\n 'asal' => $request->get('asal'),\n 'tujuan' => $request->get('tujuan'),\n 'tarif' => $request->get('tarif'),\n 'qty' => $request->get('qty'),\n 'tarif_vendor' => $request->get('tarif_vendor'),\n 'nilai_project' => $request->get('tarif') * $request->get('qty'),\n 'biaya_lain' => $request->get('biaya_lain')\n ]);\n $project->save();\n return redirect('/project')->with('success', 'Project has been added');\n }", "title": "" }, { "docid": "eeb153579c92bf52b3822d366c534f47", "score": "0.5083093", "text": "private function createProcurementPlan(array $attributes)\n {\n $this->procurementPlan = $this->procurementPlan::create($attributes);\n }", "title": "" }, { "docid": "d600655df183b3607420bb276f26eead", "score": "0.5079629", "text": "Public Function createAction ( Tx_MittwaldTimetrack_Domain_Model_Project $project,\n\t Tx_MittwaldTimetrack_Domain_Model_Timeset $timeset ) {\n\n\t\t\t# Get the user assignment and throw an exception if the current user is not a\n\t\t\t# member of the selected project.\n\t\t$user = $this->getCurrentFeUser();\n\t\t$assignment = $user ? $project->getAssignmentForUser($user) : NULL;\n\t\tIf($assignment === NULL) Throw New Tx_MittwaldTimetrack_Domain_Exception_NoProjectMemberException();\n\n\t\t\t# Add the new timeset to the project assingment. The $assignment property in\n\t\t\t# the timeset object is set automatically.\n\t\t$assignment->addTimeset($timeset);\n\t\t$timeset->getProject()->addAssignment($assignment);\n\n\t\t\t# Since the project is the aggregate root, update only the project to save\n\t\t\t# the new timeset.\n\t\t$this->projectRepository->update($timeset->getProject());\n\n\t\t\t# Print a success message and return to the project detail view.\n\t\t$this->flashMessages->add('Zeitbuchung erfolgt.');\n\t\t$this->redirect('show', 'Project', NULL, Array('project' => $timeset->getProject() ));\n\t}", "title": "" }, { "docid": "b5de5ab65517f3f1049d7610129bd26c", "score": "0.50759387", "text": "public function create()\n\t{\n\t\t$this->current['action'] = 'Crear';\n\t\t$plan = new Plan;\n\t\treturn view('admin.plans.create', [\n\t\t\t'current' => $this->current,\n\t\t\t'plan' => $plan\n\t\t]);\n\t}", "title": "" }, { "docid": "77452e584e904ccb509ceb510437aaca", "score": "0.50733185", "text": "public function paymentRequestCreate(array $data) \n {\n $response = $this->api_call('POST', 'payment-requests', $data); \n\n return $response;\n }", "title": "" }, { "docid": "9d17b65d2f233657014b3d29704e7360", "score": "0.5072164", "text": "public function create() {\r\n $planning_type = Planningtype::pluck('name', 'id')->prepend('Please select', '');\r\n $costing_type = Costingtype::pluck('name', 'id')->prepend('Please select', '');\r\n $collection_type = Collectiontype::pluck('name', 'id')->prepend('Please select', '');\r\n $view_type = Viewtype::pluck('name', 'id')->prepend('Please select', '');\r\n $buckets = Buckets::pluck(\"name\", \"id\")->prepend('Please select', '');\r\n $portfolio = Portfolio::pluck(\"name\", \"id\")->prepend('Please select', '');\r\n $Planningunit = Planningunit::pluck(\"name\", \"id\")->prepend('Please select', '');\r\n $Currencyunit = Currency::pluck(\"short_code\", \"id\");\r\n\r\n return view('admin.portfolioresourceplanning.create', compact('Currencyunit', 'portfolio', 'buckets', 'planning_type', 'costing_type', 'collection_type', 'view_type', 'Planningunit'));\r\n }", "title": "" }, { "docid": "fd7036944f574a4a1bc4f9b2b4da8e32", "score": "0.5063335", "text": "public function showCreate() {\n $roleHasOrdinary = Auth::user()->hasOrdinaryRole();\n $roleHasBudget = Auth::user()->hasBudgetRole();\n $roleHasAdministrator = Auth::user()->hasAdministratorRole();\n $roleHasDeveloper = Auth::user()->hasDeveloperRole();\n\n $empDivisionAccess = !$roleHasOrdinary ? Auth::user()->getDivisionAccess() :\n [Auth::user()->division];\n $payees = $roleHasOrdinary ?\n User::where('id', Auth::user()->id)\n ->orderBy('firstname')\n ->get() :\n User::where('is_active', 'y')\n ->whereIn('division', $empDivisionAccess)\n ->orderBy('firstname')->get();\n $mooeTitles = MooeAccountTitle::orderBy('order_no')->get();\n $signatories = Signatory::addSelect([\n 'name' => User::select(DB::raw('CONCAT(firstname, \" \", lastname) AS name'))\n ->whereColumn('id', 'signatories.emp_id')\n ->limit(1)\n ])->where('is_active', 'y')->get();\n\n foreach ($signatories as $sig) {\n $sig->module = json_decode($sig->module);\n }\n\n $projDat = new FundingProject;\n $_projects = FundingProject::orderBy('project_title');\n $projects = [];\n $tempFundSrcs = [];\n\n if (!$roleHasBudget && !$roleHasAdministrator && !$roleHasDeveloper) {\n $projectIDs = $projDat->getAccessibleProjects();\n\n $_projects = $_projects->where(function($qry) use ($projectIDs) {\n $qry->whereIn('id', $projectIDs);\n });\n }\n\n $_projects = $_projects->get();\n\n foreach ($_projects as $proj) {\n $directory = $proj->directory ? implode(' &rarr; ', unserialize($proj->directory)) : NULL;\n $projTitle = (strlen($proj->project_title) > 70 ?\n substr($proj->project_title, 0, 70).'...' :\n $proj->project_title);\n $projTitle = strtoupper($projTitle);\n $title = $directory ? \"$directory &rarr; $projTitle\" : $projTitle;\n\n if ($directory) {\n $tempFundSrcs['with_dir'][] = (object) [\n 'id' => $proj->id,\n 'project_title' => $title,\n ];\n } else {\n $tempFundSrcs['no_dir'][] = (object) [\n 'id' => $proj->id,\n 'project_title' => $title,\n ];\n }\n\n if (isset($tempFundSrcs['with_dir'])) {\n sort($tempFundSrcs['with_dir']);\n }\n }\n\n if (isset($tempFundSrcs['with_dir'])) {\n foreach ($tempFundSrcs['with_dir'] as $proj) {\n $projects[] = $proj;\n }\n }\n\n if (isset($tempFundSrcs['no_dir'])) {\n foreach ($tempFundSrcs['no_dir'] as $proj) {\n $projects[] = $proj;\n }\n }\n\n return view('modules.voucher.ors-burs.create', compact(\n 'signatories', 'payees', 'projects', 'mooeTitles'\n ));\n }", "title": "" }, { "docid": "2f2394582578d82566cbc83d27bb85f4", "score": "0.5061106", "text": "public function action_save()\n\t{\n\t\t$messages = array();\n\t\t$errors = array();\n\t\t$db = Database::instance();\n\t\t$db->begin();\n\t\ttry {\n\t\t\tif($_POST)\n\t\t\t{\n\t\t\t\t//get posted elements\n\t\t\t\t$planid \t\t= $_POST['planid'];\n\t\t\t\t$effectivedate\t= $_POST['effectivedate'];\n\t\t\t\t$effectivetill \t= $_POST['effectivetilldate'];\n\t\t\t\tif(isset($_POST['corporateid'])){\n\t\t\t\t\t$corporateid \t= $_POST['corporateid'];\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t $corporateid = null;\n\t\t\t\t }\n\t\t\t\t$userid \t\t= Auth::instance()->get_user()->id;\n\t\t\t\t//insert record in Billingplans table\n\t\t\t\t$objPlans = ORM::factory('Billingplan');\n\t\t\t\tif($planid != -1) // if user is creating new plan, planid will be -1, otherwise it will be + number.\n\t\t\t\t{\n\t\t\t\t\t$objPlans = $objPlans->where('id', '=',$planid)->mustFind();\n\t\t\t\t\tif($objPlans->loaded() == false){\n\t\t\t\t\t\tthrow new HTTP_Exception_500('objPlans object not loaded');\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t$objPlans->refplantypeid_c \t= $_POST['plantype'];\n\t\t\t\t}\n\t\t\t\t$objPlans->effectivedate_c \t\t= date( 'Y-m-d g:i:s',strtotime( $effectivedate) );\n\t\t\t\t$objPlans->effectivetilldate_c \t= date( 'Y-m-d g:i:s',strtotime($effectivetill));\n\t\t\t\t$objPlans->createddate_c \t\t= date('Y-m-d g:i:s a');\n\t\t\t\t$objPlans->createdby_c \t\t\t= $userid;\n\t\t\t\t$objPlans->approvedby_c \t\t= $userid;\n\t\t\t\t$objPlans->workflowstatus_c \t= 'approved'; //right now we are approving the plan automatically but plan will be created by other role and it will be approved by super admin.\n\t\t\t\t$objPlans->planstatus_c \t\t= 'active';\n\t\t\t\t$objPlans->updateddate_c \t\t= date('Y-m-d g:i:s a');\n\t\t\t\t$objPlans->updatedby_c \t\t\t= $userid;\n\t\t\t\t$objPlans->towhomcorporateid_c\t= $corporateid;\n\t\t\t\t$objPlans->saveRecord($_POST);\n\n\t\t\t\t//Insert records in Billingplancharges table\n\t\t\t\t$objPlanCharges = ORM::factory('Billingplancharge');\n\t\t\t\t$objPlanCharges->ref_planid_c \t= $objPlans->id;\n\t\t\t\tif($planid != -1)\n\t\t\t\t{\n\t\t\t\t\t$objPlanCharges = $objPlanCharges->where('ref_planid_c', '=',$objPlans->id)->mustFind();\n\t\t\t\t\tif($objPlanCharges->loaded() == false){\n\t\t\t\t\t\tthrow new HTTP_Exception_500('objPlanCharges object not loaded');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$objPlanCharges->createddate_c\t= date('Y-m-d g:i:s a');\n\t\t\t\t$objPlanCharges->updateddate_c \t= date('Y-m-d g:i:s a');\n\t\t\t\t$objPlanCharges->updatedby_c \t= $userid;\n\t\t\t\t$objPlanCharges->status_c \t\t= 'approved'; //right now we are approving the plan automatically but plan will be created by other role and it will be approved by super admin.\n\t\t\t\t$objPlanCharges->saveRecord($_POST);\n\t\t\t\t$db->commit();\n\t\t\t\t$messages['success'] = 'Plan will be effective from '.$effectivedate.' till '.$effectivetill.', if admin approves it.';\n\t\t\t\t$this->displayplans($errors, $messages);\n\t\t\t}else{\n\t\t\t\t$errors['saveplan'] = 'Could not save plan charges.';\n\t\t\t\t$this->displayplans($errors, $messages);\n\t\t\t}\n\t\t} catch (Exception $e) {\n\t\t\t$db->rollback();\n\t\t\tthrow new Exception($e);\n\t\t}\n\t}", "title": "" }, { "docid": "bccc8335edaf815e9c2de30a44979248", "score": "0.50550216", "text": "public function testCreateSubscriptionNewPlan() {\n\t\n\t\tPayU::$apiLogin = PayUTestUtil::API_LOGIN;\n\t\tPayU::$apiKey = PayUTestUtil::API_KEY;\n\t\tEnvironment::setSubscriptionsCustomUrl(PayUTestUtil::SUBSCRIPTION_CUSTOM_URL);\n\t\t\n\t\t// Subscription parameters\n\t\t$parameters = PayUTestUtil::buildSubscriptionParameters();\n\t\t\t\n\t\t// Customer parameters\n\t\t$customer = PayUCustomers::create(PayUTestUtil::buildSubscriptionParametersCustomer());\n\t\n\t\t// Plan parameters\n\t\t$parameters = PayUTestUtil::buildSuccessParametersPlan($parameters);\n\t\t\n\t\t// Credit card parameters\n\t\t$creditCardParams = array(PayUParameters::CUSTOMER_ID => $customer->id);\n\t\t$creditCard = PayUCreditCards::create(PayUTestUtil::buildSubscriptionParametersCreditCard($creditCardParams));\n\t\t\n\t\t$parameters[PayUParameters::CUSTOMER_ID] = $customer->id;\n\t\t$parameters[PayUParameters::TOKEN_ID] = $creditCard->token;\n\t\t\n\n\t\t$response = PayUSubscriptions::createSubscription($parameters);\n\t\t\n\t\t$this->assertNotNull($response->id);\n\t\t$this->assertEquals($parameters[PayUParameters::PLAN_CODE], $response->plan->planCode);\n\t\t$this->assertNotNull($response->plan->id);\n\t\t$this->assertNotNull($response->customer->id);\n\t\t$this->assertCount( 1, $response->customer->creditCards);\n\t\t$this->assertEquals($parameters[PayUParameters::INSTALLMENTS_NUMBER], $response->installments);\n\t\t$this->assertEquals($parameters[PayUParameters::QUANTITY], $response->quantity);\n\t\t\n\t}", "title": "" }, { "docid": "b2e8777e34ac2c6a709beb3c394ed739", "score": "0.50539917", "text": "public function actionCreate()\n {\n $model = new Proposal();\n\n $model->created_date = date('Y-m-d H:i:s');\n $model->created_by = Yii::$app->user->getId();\n if ($model->load(Yii::$app->request->post())) {\n\n $model->code = (new GlobalFunction)->GenerateDocumentID('proposal', 4);\n\n //Row Data\n $item_name = Yii::$app->request->post('item');\n $id_item = Yii::$app->request->post('item_id');\n $description = Yii::$app->request->post('description');\n $qty = Yii::$app->request->post('qty');\n $rate = Yii::$app->request->post('rate');\n $discount_type = Yii::$app->request->post('discount_type');\n $discount_amount = Yii::$app->request->post('discount');\n $amount = Yii::$app->request->post('amount');\n //End Row Data\n\n //Total Data\n $discount_overall = Yii::$app->request->post('discount_overall');\n $is_tax = Yii::$app->request->post('allow_tax');\n $discount_overall_amount = Yii::$app->request->post('discount_overall_amount');\n $discount_type_overall_hidden = Yii::$app->request->post('discount_type_overall_hidden');\n $sub_total_amount_hidden = Yii::$app->request->post('sub_total_amount_hidden');\n $total_tax_hidden = Yii::$app->request->post('total_tax_hidden');\n $grand_total_amount_hidden = Yii::$app->request->post('grand_total_amount_hidden');\n\n $transaction_exception = Yii::$app->db->beginTransaction();\n\n try\n {\n $model->id_discount = $discount_type_overall_hidden;\n $model->discount_amount = $discount_overall_amount;\n $model->id_tax = \\backend\\models\\Tax::findOne(1)->id;\n if(!empty($is_tax)){\n $model->is_tax = 1;\n }else{\n $model->is_tax = 0;\n }\n $model->id_tax = \\backend\\models\\Tax::findOne(1)->id;\n $model->tax_amount = $total_tax_hidden;\n $model->sub_total = $sub_total_amount_hidden;\n $model->grand_total = $grand_total_amount_hidden;\n $model->total = $grand_total_amount_hidden;\n\n if(!$model->save()) throw new Exception(\"Failed to Save!\");\n\n if(!empty($item_name)){\n foreach ($item_name as $key => $value) {\n $data = new ProposalData();\n $data->id_proposal = $model->id;\n $data->id_item = $id_item[$key];\n $data->item_name = $item_name[$key];\n $data->description = $description[$key];\n $data->qty = $qty[$key];\n $data->rate = $rate[$key];\n $data->discount_type = $discount_type[$key];\n $data->discount_amount = $discount_amount[$key];\n $data->amount = $amount[$key];\n if(!$data->save()) throw new Exception(\"Failed to Save Proposal Data!\");\n }\n }\n\n $transaction_exception->commit();\n Yii::$app->session->setFlash('success', \"Saved successful\");\n return $this->redirect(Yii::$app->request->referrer);\n }\n catch (Exception $ex)\n {\n Yii::$app->session->setFlash('warning', $ex->getMessage());\n $transaction_exception->rollBack();\n return $this->redirect(Yii::$app->request->referrer);\n }\n }\n\n return $this->renderAjax('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "542fd24a9660346a2328329777592da6", "score": "0.50534296", "text": "public function createBillingPlanForUser(User $user) {\n $population = $this->getPopulationCountForUser($user);\n return BillingPlan::CreateFromPopulation($population);\n }", "title": "" }, { "docid": "39f3a3123534eeb5d08d28e1edfa766f", "score": "0.5041141", "text": "public function create()\n\t{\n\t\tAuthorizationModel::mustAuthorized(PERMISSION_PAYMENT_TYPE_CREATE);\n\n\t\t$services = $this->service->getAll();\n\n\t\t$this->render('payment_type/create', compact('services'));\n\t}", "title": "" }, { "docid": "e908a076f20bfa4156106b5d7832b3cb", "score": "0.50404227", "text": "public function create()\n {\n return view('prepaid.create');\n }", "title": "" }, { "docid": "f0c885865a7d253452c0af0b91a6e031", "score": "0.5037877", "text": "public function create()\n {\n return view('admin.plans.create');\n }", "title": "" }, { "docid": "10d2f50f0bca8b07cf53d4ae3be0fbff", "score": "0.50354934", "text": "public function store(Request $request)\n {\n $request->validate([\n 'title' => 'required|unique:projects|max:255',\n 'body' => 'required',\n 'date_start' => 'required|date_format:d.m.Y',\n 'date_end' => 'required|date_format:d.m.Y',\n 'manager_id' => 'required|integer',\n 'customer_id' => 'required|integer',\n 'priority_id' => 'required|integer',\n ]);\n $date_start = explode('.', $request->get('date_start'));\n $date_start = Carbon::createFromDate($date_start[2], $date_start[1], $date_start[0]);\n $date_end = explode('.', $request->get('date_end'));\n $date_end = Carbon::createFromDate($date_end[2], $date_end[1], $date_end[0]);\n $project = new Project([\n 'title' => $request->get('title'),\n 'body' => $request->get('body'),\n 'date_start' => $date_start,\n 'date_end' => $date_end,\n 'manager_id' => $request->get('manager_id'),\n 'customer_id' => $request->get('customer_id'),\n 'priority_id' => $request->get('priority_id'),\n 'team_id' => 1\n ]);\n\n $project->save();\n\n return response()->json($project->toArray());\n }", "title": "" }, { "docid": "c28f34e69355cdb750c327ec1f73faa2", "score": "0.5035339", "text": "public function createPlan(Request $request)\n {\n $productNumber = $request->productNumber;\n $quantity = $request->quantity;\n $datePlan = $request->datePlan;\n $data=[$productNumber,$quantity,$datePlan];\n \n $counter = $this->forecast->createPlan($data);\n\n return response()->json($counter);\n }", "title": "" }, { "docid": "02d004fd9e0c4314b678fe21b52b6ffe", "score": "0.50306374", "text": "public function actionCreate()\n {\n $model = new Bill();\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 }", "title": "" }, { "docid": "fcb7879d6223325f1ddab02bae6beac8", "score": "0.50301754", "text": "public function instantiateNew()\n {\n return new RatePlan($this->mPackageId, $this->config);\n }", "title": "" }, { "docid": "45440de17bd1a06c07d870d808c1c639", "score": "0.5029481", "text": "public function create()\n {\t\n $user = $this->user;\n\t\t$interval = new IntervalAType;\n\t\t\n\t\t$config = Config::get('cashier');\n\t\t$plan\t= array_get($config, $this->plan);\n\t\t\n\t\t$instance = new Requester;\n $request = $instance->prepare(new ARBCreateSubscriptionRequest);\n\t\t\n\t\t// Subscription Type Info\n $subscription = new ARBSubscriptionType;\n $subscription->setName(array_get($plan, 'name'));\n\t\t\n $this->trialDays($trialNumDays = array_get($plan, 'trial_days'));\n $paymentSchedule = new PaymentScheduleType;\n\t\t\n $paymentStartDay = new DateTime(Carbon::now('America/Denver')\n\t\t\t->addDays($trialNumDays));\n \n\t\t$tax_percentage = floatval(sprintf(\n\t\t\t'1.%d', $this->getTaxPercentageForPayload()?? 0));\n\t\t\n\t\t$interval->setLength(array_get($plan, 'interval.length'))\n\t\t\t\t ->setUnit(array_get($plan, 'interval.unit'));\n\t\t\n\t\t$subscription->setPaymentSchedule($paymentSchedule\n\t\t\t\t->setInterval($interval)\n\t\t\t\t->setStartDate($paymentStartDay)\n\t\t\t\t->setTotalOccurrences(array_get($plan, 'total_occurances'))\n\t\t\t\t->setTrialOccurrences(array_get($plan, 'trial_occurances')));\n\t\t\n $subscription->setAmount(round( floatval(array_get($plan, 'amount')) * \n\t\t\t\t\t\t\t\t\t\t$tax_percentage));\n \n\t\t$subscription->setTrialAmount(array_get($plan, 'trial_amount'));\n $profile = new CustomerProfileIdType;\n\t\t\n\t\t$request->setSubscription($subscription);\n $controller = new ARBCreateSubscriptionController($request);\n \n $subscription->setProfile($profile\n\t\t\t->setCustomerProfileId($user->authorize_id)\n\t\t\t->setCustomerPaymentProfileId($user->authorize_payment_id));\n\t\t\n\t\t$response = $controller->executeWithApiResponse($instance->env);\n $message = $response->getMessages();\n\t\t\n\t\tif ($response && strcmp($message->getResultCode(), \"Ok\") === 0)\n\t\t{\n $carbon = $this->trialDays?\n\t\t\t\tCarbon::now()->addDays($this->trialDays):\n\t\t\t\tnull;\n\t\t\t\n\t\t\t$trialEndsAt = ($this->skipTrial)?\n null: $carbon;\n\t\t\t\n\t\t\treturn $this->user->subscriptions()->create([\n 'name' => $this->name,\n 'authorize_id' => $response->getSubscriptionId(),\n 'authorize_plan' => $this->plan,\n 'authorize_payment_id' => $this->user->authorize_payment_id,\n 'metadata' => json_encode([\n 'refId' => $requester->refId\n ]),\n 'quantity' => $this->quantity,\n 'trial_ends_at' => $trialEndsAt,\n 'ends_at' => null,\n ]);\n }\n\t\telse {\n\t\t\t$excMesg = array_get($message->getMessage(), 0);\n\t\t\t\n\t\t\tthrow new Exception(sprintf(\n\t\t\t\t'Payment Processor: %d: %s', $excMesg->getCode(), $excMesg->getText()), 1);\n }\n }", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "fdb7712d84a49558440db6da633b354e", "score": "0.0", "text": "public function store(UserRequest $request)\n {\n $input = $request->all();\n\n $input['password'] = bcrypt($request->password);\n\n User::create($input);\n\n return redirect()->route('users.index');\n }", "title": "" } ]
[ { "docid": "7e42fedef6bb33a605a9a912390eb1f7", "score": "0.72865677", "text": "public function store($data, Resource $resource);", "title": "" }, { "docid": "151a5a15a7c013546a09c2e74ab5ea61", "score": "0.7145327", "text": "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 }", "title": "" }, { "docid": "5123f91023f684f97559dacd499fac58", "score": "0.71325725", "text": "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 }", "title": "" }, { "docid": "a7fa3d3c4d35681d03532a282b2ef7d8", "score": "0.6640912", "text": "public function createStorage();", "title": "" }, { "docid": "f1bd5867e87bbf56aefbfc6de8693786", "score": "0.66209733", "text": "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 }", "title": "" }, { "docid": "0c03c39e441c2fe392d76d6370ae3ce2", "score": "0.65685713", "text": "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 }", "title": "" }, { "docid": "28d08bba4784cf6d55e31bc6ddef8362", "score": "0.652643", "text": "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 }", "title": "" }, { "docid": "0f8c1fe3e3b0c6572457ef33c35c6488", "score": "0.65095705", "text": "function storeAndNew() {\n $this->store();\n }", "title": "" }, { "docid": "5c131d35165031041eaca6bb37ecf0c2", "score": "0.64490104", "text": "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 }", "title": "" }, { "docid": "55b375ea7c339e8f0e9c38919b53b1db", "score": "0.637569", "text": "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "title": "" }, { "docid": "5088b0baaac4342bc47aa7ee8b774852", "score": "0.63736665", "text": "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" } ]
f379f8ea94fb81378b8a170bbc8374dc
Create request for operation 'placeOrder'
[ { "docid": "746174d6ed596dd3337956f703195edf", "score": "0.77293557", "text": "public function placeOrderRequest($order)\n {\n // verify the required parameter 'order' is set\n if ($order === null || (is_array($order) && count($order) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $order when calling placeOrder'\n );\n }\n\n $resourcePath = '/store/order';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = null;\n $multipart = false;\n\n\n\n\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/xml', 'application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/xml', 'application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($order)) {\n if ($headers['Content-Type'] === 'application/json') {\n $httpBody = json_encode(ObjectSerializer::sanitizeForSerialization($order));\n } else {\n $httpBody = $order;\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];\n foreach ($formParamValueItems as $formParamValueItem) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValueItem\n ];\n }\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = Query::build($formParams);\n }\n }\n\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $operationHost = $this->config->getHost();\n\n $uri = $this->createUri($operationHost, $resourcePath, $queryParams);\n\n return $this->createRequest('POST', $uri, $headers, $httpBody);\n }", "title": "" } ]
[ { "docid": "9639d6892f54e01723ca093469f85f53", "score": "0.6792681", "text": "public function callAPIPlaceOrder($session=null)\n {\n if (!$session) {\n $session = $sessionId = $this->currentSession->testStaffLogin();\n }\n $this->callAPISaveShippingMethod($session);\n $saveCart = $this->saveCart->callAPISaveCart($session);\n $serviceInfo = [\n 'rest' => [\n 'resourcePath' => self::RESOURCE_PATH . 'placeOrder?session='.$session.'',\n 'httpMethod' => RestRequest::HTTP_METHOD_POST,\n ]\n ];\n\n $requestData = [\n 'quote_data' => [\n 'customer_note' => ''\n ],\n 'website_id' => '1',\n 'order_comment' => 'place order comment',\n 'payment' => [\n 'method_data' => [\n [\n 'amount' => 51.75,\n 'base_real_amount' => 51.75,\n 'real_amount' => 51.75,\n 'is_pay_later' => false,\n 'reference_number' => '',\n 'code' => 'cashforpos',\n 'base_amount' => 51.75,\n 'additional_data' => [],\n 'shift_id' => 'session_1519723296717',\n 'title' => 'Web POS - Cash In'\n ]\n ],\n 'method' => 'cashforpos'\n ],\n 'integration' => [],\n 'shipping_method' => 'flatrate_flatrate',\n 'quoteId' => $saveCart['quote_init']['quote_id'],\n 'extension_data' => [\n [\n 'key' => 'pos_id',\n 'value' => '5'\n ], [\n 'key' => 'grand_total',\n 'value' => 51.75\n ], [\n 'key' => 'base_grand_total',\n 'value' => 51.75\n ], [\n 'key' => 'tax_amount',\n 'value' => 6.75\n ], [\n 'key' => 'base_tax_amount',\n 'value' => 6.75\n ], [\n 'key' => 'shipping_amount',\n 'value' => 0\n ], [\n 'key' => 'base_shipping_amount',\n 'value' => 0\n ], [\n 'key' => 'subtotal',\n 'value' => 45\n ], [\n 'key' => 'base_subtotal',\n 'value' => 45\n ], [\n 'key' => 'subtotal_incl_tax',\n 'value' => 45\n ], [\n 'key' => 'base_subtotal_incl_tax',\n 'value' => 45\n ], [\n 'key' => 'webpos_staff_id',\n 'value' => '1'\n ], [\n 'key' => 'webpos_staff_name',\n 'value' => 'admin1'\n ], [\n 'key' => 'webpos_shift_id',\n 'value' => 'session_1519723296717'\n ], [\n 'key' => 'location_id',\n 'value' => '1'\n ], [\n 'key' => 'created_at',\n 'value' => ''\n ], [\n 'key' => 'customer_fullname',\n 'value' => ''\n ], [\n 'key' => 'webpos_change',\n 'value' => 0\n ], [\n 'key' => 'webpos_base_change',\n 'value' => 0\n ]\n ],\n 'actions' => [\n 'create_shipment' => '1',\n 'create_invoice' => '1'\n ]\n ];\n\n $results = $this->_webApiCall($serviceInfo, $requestData);\n\n // Dump the result to check \"How does it look like?\"\n // \\Zend_Debug::dump($results);\n return $results;\n }", "title": "" }, { "docid": "b60f1e69c04184b5a268ba0be2f5db13", "score": "0.6600056", "text": "public static function create_order_endpoint()\n {\n register_rest_route('pxe-wc/v1', '/create-order/', array(\n 'methods' => 'POST',\n 'callback' => __CLASS__ . '::create_order',\n ));\n }", "title": "" }, { "docid": "8241fa499da0aa99bd2ad8cab0adc2a6", "score": "0.6421217", "text": "function commerce_dapi_orders_insert_order($data = array()) {\n\n $resource_path = 'ordini/inserimento-ordine';\n\n $variables = array(\n 'endpoint' => variable_get('commerce_dapi_orders_hostname', 'http://localhost/'),\n 'body' => $data,\n 'headers' => array(\n \"Content-Type\" => \"application/x-www-form-urlencoded\",\n ),\n );\n\n $response = restclient_post($resource_path, $variables);\n\n return $response;\n}", "title": "" }, { "docid": "43cdc737b3431a7eb0ceced318916925", "score": "0.6394536", "text": "public function placeCustomerOrder()\n {\n\n $orderDate = Input::get('orderDate');\n $requiredDate = Input::get('requiredDate');\n $shippedDate = Input::get('shippedDate');\n $status = Input::get('status');\n $comments = Input::get('comments');\n $customerNumber = Input::get('customernumber');\n $orderDate = Input::get('orderDate');\n\n $rndNumber = mt_rand(1000, 99999);\n //save order info\n $order = new Order();\n $order->orderNumber = $rndNumber;\n $order->orderDate = $orderDate;\n $order->requiredDate = $requiredDate;\n $order->shippedDate = $shippedDate;\n $order->status = $status;\n $order->comments = $comments;\n $order->customerNumber = $customerNumber;\n $order->orderDate = $orderDate;\n $order->save();\n\n // store order details info againt orderNumber\n\n $orderDetails = new OrderDetail();\n $orderDetails->orderNumber = $rndNumber;\n $orderDetails->productCode = Input::get('product');\n $orderDetails->quantityOrdered = Input::get('qurantity');\n $orderDetails->priceEach = Input::get('price');\n $orderDetails->save();\n\n $response_array = array('status' => 1, 'message' => 'Successfully Added');\n\n $response = Response::json($response_array);\n return $response;\n\n }", "title": "" }, { "docid": "1e2ed699053bf37a36a07bf767a87570", "score": "0.6276135", "text": "private function generatePlace()\n {\n $requiredAttributes = [\n 'purchase_country',\n 'purchase_currency',\n 'locale',\n 'order_amount',\n 'orderlines',\n 'merchant_urls',\n 'billing_address',\n 'shipping_address'\n ];\n\n /** @var \\Magento\\Quote\\Model\\Quote $quote */\n $quote = $this->getObject();\n $store = $quote->getStore();\n $address = $quote->isVirtual() ? $quote->getBillingAddress() : $quote->getShippingAddress();\n\n /**\n * Get customer addresses (shipping and billing)\n */\n $this->addBillingAddress($this->getAddressData($quote, Address::TYPE_BILLING));\n $this->addShippingAddress($this->getAddressData($quote, Address::TYPE_SHIPPING));\n\n $tax = $address->getBaseTaxAmount();\n if ($this->configHelper->isFptEnabled($store) && !$this->configHelper->getDisplayInSubtotalFpt($store)) {\n $fptResult = $this->rate->getFptTax($quote);\n $tax += $fptResult['tax'];\n }\n\n $this->requestBuilder->setPurchaseCountry($this->directoryHelper->getDefaultCountry($store))\n ->setPurchaseCurrency($quote->getBaseCurrencyCode())\n ->setLocale(str_replace('_', '-', $this->configHelper->getLocaleCode()))\n ->setOrderAmount((int)$this->dataConverter->toApiFloat($address->getBaseGrandTotal()))\n ->addOrderlines($this->getOrderLines($quote->getStore()))\n ->setOrderTaxAmount((int)$this->dataConverter->toApiFloat($tax))\n ->setMerchantUrls($this->processMerchantUrls())\n ->setMerchantReferences($this->getMerchantReferences($quote))\n ->validate($requiredAttributes, self::GENERATE_TYPE_PLACE);\n\n return $this;\n }", "title": "" }, { "docid": "b9a7d0f0b95bcbb1521b3e25e3b33d8a", "score": "0.62718755", "text": "protected function placeOrder()\n {\n /**\n * @var Order $order\n */\n $order = Order::get()->byID($this->owner->OrderID);\n if ($order && $order->exists()) {\n OrderProcessor::create($order)->placeOrder();\n }\n }", "title": "" }, { "docid": "fb3554d0edb937308b7455e9b2e3f7e9", "score": "0.62074864", "text": "function order_insert_request_to_kokolo( $order_num ) {\n $credentials = kokolo_credentials();\n\n $function = 'order_insert?order_num=' . $order_num;\n\n $request = array(\n 'id' => $credentials['id'],\n 'dt' => $credentials['date'],\n 'key' => $credentials['key'],\n 'version' => $credentials['version'],\n 'function' => $function,\n );\n\n $json = json_encode( $request );\n\n $result = send_request( $json );\n\n if ( $result['error'] == true ) {\n throw new Exception( (string) $result['desc'] );\n }\n}", "title": "" }, { "docid": "984c60c39aa2376c3592755a6e28f2c3", "score": "0.6120427", "text": "public function request(Order $order)\n {\n $reference = $order->getKey();\n $request = [\n 'payment' => [\n 'reference' => $reference,\n 'description' => 'Pago orden '.$reference,\n 'amount' => [\n 'currency' => 'COP',\n 'total' => $order->getAttribute('total'),\n ],\n ],\n 'expiration' => date('c', strtotime('+1 days')),\n 'returnUrl' => 'http://localhost:8000/orderPay/' . $reference,\n 'ipAddress' => '127.0.0.1',\n 'userAgent' => 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36',\n ];\n\n\n $response = $this->placetopay->request($request);\n return $response;\n }", "title": "" }, { "docid": "b0dbadd731f861e414357e36de442348", "score": "0.61148846", "text": "public function sendApiRequest(array $request, $type, OrderInterface $order = null);", "title": "" }, { "docid": "d46bf633c1f99a8bd123d4980c4c919e", "score": "0.6099643", "text": "public function placeOrder() {\r\n //pr($this->request->getData());die();\r\n\r\n if($this->request->session()->read('sessionId') != '') {\r\n $sessionId = $this->request->session()->read('sessionId');\r\n\r\n } \r\n\r\n if($sessionId != '') {\r\n\r\n //Cart Details\r\n $cartsDetails = $this->Carts->find('all', [\r\n 'conditions' => [\r\n 'session_id' => $sessionId,\r\n ]\r\n ])->hydrate(false)->toArray();\r\n\r\n $customerDetails = $this->Users->find('all', [\r\n 'conditions' => [\r\n 'id' => $this->Auth->user('id')\r\n ]\r\n ])->hydrate(false)->first();\r\n\r\n $restaurantDetails = $this->Restaurants->find('all', [\r\n 'conditions' => [\r\n 'id' => $this->request->session()->read('resid')\r\n ]\r\n ])->hydrate(false)->first(); \r\n\r\n //Voucher Section\r\n $offerMode = $this->request->session()->read('offer_mode');\r\n $offerValue = $this->request->session()->read('offer_value');\r\n $voucherCode = $this->request->session()->read('voucher_code');\r\n $voucherAmount = $this->request->session()->read('voucherAmount');\r\n\r\n //Offer Section\r\n $offerPercentage = $this->request->session()->read('offerPercentage');\r\n $offerAmount = $this->request->session()->read('offerAmount');\r\n $firstUser = $this->request->session()->read('firstUser');\r\n\r\n //Redeem Section\r\n $redeemPercentage = $this->request->session()->read('rewardPercentage');\r\n $redeemAmount = $this->request->session()->read('rewardPoint');\r\n\r\n $addressDetails = $this->AddressBooks->find('all', [\r\n 'conditions' => [\r\n 'id' => $this->request->getData('checkout_address')\r\n ]\r\n ])->hydrate(false)->first(); \r\n\r\n $deliveryCharge = 0;\r\n\r\n\r\n if($this->request->getData('order_type') == 'delivery') {\r\n\r\n if(SEARCHBY == 'Google') {\r\n\r\n $sourcelatitude = $addressDetails['latitude'];\r\n $sourcelongitude = $addressDetails['longitude'];\r\n\r\n\r\n if($sourcelatitude != '' && $sourcelongitude != '') {\r\n\r\n $final = array();\r\n $distance = array();\r\n $result = array();\r\n\r\n $latitudeTo = $restaurantDetails['sourcelatitude'];\r\n $longitudeTo = $restaurantDetails['sourcelongitude'];\r\n $unit='K';\r\n $distance = $this->Common->getDistanceValue($sourcelatitude,$sourcelongitude,$latitudeTo,$longitudeTo,\r\n $unit);\r\n\r\n $distance = str_replace(',','',$distance);\r\n list($deliveryCharge,$message) = $this->getDeliveryCharge($restaurantDetails['id'],$distance,$sourcelatitude,$sourcelongitude);\r\n\r\n if ($message == 'success') {\r\n $to_distance = $distance;\r\n $deliveryCharge = number_format($deliveryCharge,2);\r\n }else {\r\n $to_distance = $distance;\r\n }\r\n }\r\n\r\n }else {\r\n\r\n $stateName = $this->States->find('all', [\r\n 'fields' => [\r\n 'state_name'\r\n ],\r\n 'conditions' => [\r\n 'id' => $addressDetails['state_id']\r\n ]\r\n ])->hydrate(false)->first();\r\n\r\n $cityName = $this->Cities->find('all', [\r\n 'fields' => [\r\n 'city_name'\r\n ],\r\n 'conditions' => [\r\n 'id' => $addressDetails['city_id']\r\n ]\r\n ])->hydrate(false)->first();\r\n\r\n $locationName = $this->Locations->find('all', [\r\n 'fields' => [\r\n 'area_name',\r\n 'zip_code'\r\n ],\r\n 'conditions' => [\r\n 'id' => $addressDetails['location_id']\r\n ]\r\n ])->hydrate(false)->first();\r\n\r\n $deliveryDetails = $this->DeliveryLocations->find('all', [\r\n 'conditions' => [\r\n 'restaurant_id' => $this->request->session()->read('resid'),\r\n 'city_id' => $addressDetails['city_id'],\r\n 'location_id' => $addressDetails['location_id'],\r\n ]\r\n ])->hydrate(false)->first();\r\n\r\n if(!empty($deliveryDetails)) {\r\n $value['to_distance'] = '0.00';\r\n $deliveryCharge = number_format($deliveryDetails['delivery_charge'],2);\r\n }else {\r\n $value['to_distance'] = '0.00';\r\n }\r\n\r\n if(SEARCHBY == 'area') {\r\n $cityaddress = $locationName['area_name'].','.$cityName['city_name'].','.$stateName['state_name'];\r\n }else {\r\n $cityaddress = $cityName['city_name'].','.$locationName['zip_code'].','.$stateName['state_name'];\r\n }\r\n\r\n $address = $addressDetails['address'].','.$cityaddress;\r\n }\r\n\r\n }else {\r\n $address = '';\r\n }\r\n\r\n $subTotal = 0;\r\n $taxAmount = 0;\r\n if(!empty($cartsDetails)) {\r\n foreach($cartsDetails as $ckey => $cvalue) {\r\n $subTotal = $cvalue['total_price'] + $subTotal;\r\n }\r\n if($restaurantDetails['restaurant_tax'] > 0) {\r\n $taxAmount = ($subTotal * $restaurantDetails['restaurant_tax'])/100;\r\n }\r\n }\r\n\r\n if($this->request->getData('order_type') == 'delivery') {\r\n\r\n if(SEARCHBY == 'Google') {\r\n if($restaurantDetails['free_delivery'] > 0 && $restaurantDetails['free_delivery'] <= $subTotal && ($firstUser == 'No' || $firstUser == '')) {\r\n $deliveryCharge = 0.00;\r\n }\r\n }\r\n\r\n //echo $totalAmount;die();\r\n\r\n $totalAmount = $subTotal + $taxAmount + $deliveryCharge;\r\n\r\n if($offerAmount != '') {\r\n $totalAmount = $totalAmount - $offerAmount;\r\n }\r\n\r\n if($redeemAmount != '') {\r\n $totalAmount = $totalAmount - $redeemAmount;\r\n }\r\n\r\n\r\n if($voucherAmount == 'free') {\r\n $totalAmount = $totalAmount - $deliveryCharge;\r\n $voucherAmount = $deliveryCharge;\r\n }else if ($voucherAmount) {\r\n $totalAmount = $totalAmount - $voucherAmount;\r\n }\r\n\r\n $orderUpdate['delivery_charge'] = $deliveryCharge;\r\n\r\n if($redeemAmount >= 100) {\r\n $totalAmount = $deliveryCharge;\r\n }\r\n\r\n }else {\r\n $totalAmount = $subTotal + $taxAmount;\r\n\r\n if($offerAmount != '') {\r\n $totalAmount = $totalAmount - $offerAmount;\r\n }\r\n\r\n if($redeemAmount != '') {\r\n $totalAmount = $totalAmount - $redeemAmount;\r\n }\r\n\r\n \r\n } \r\n\r\n $orderEntity = $this->Orders->newEntity();\r\n\r\n $orderUpdate['customer_id'] = $this->Auth->user('id');\r\n $orderUpdate['restaurant_id'] = $this->request->session()->read('resid');\r\n $orderUpdate['customer_name'] = $customerDetails['first_name'];\r\n $orderUpdate['customer_email'] = $customerDetails['username'];\r\n $orderUpdate['customer_phone'] = $customerDetails['phone_number'];\r\n $orderUpdate['source_latitude'] = $restaurantDetails['sourcelatitude'];\r\n $orderUpdate['source_longitude'] = $restaurantDetails['sourcelongitude'];\r\n $orderUpdate['destination_latitude'] = $addressDetails['latitude'];\r\n $orderUpdate['destination_longitude'] = $addressDetails['longitude'];\r\n $orderUpdate['flat_no'] = $addressDetails['flat_no'];\r\n if(SEARCHBY == 'Google') {\r\n $orderUpdate['address'] = $addressDetails['address'];\r\n }else {\r\n $orderUpdate['address'] = $address;\r\n }\r\n\r\n $orderUpdate['assoonas'] = ($this->request->getData('deliverytime') == 'now') ? $this->request->getData('deliverytime') : '';\r\n $orderUpdate['order_description\t'] = $this->request->getData('order_description');\r\n\r\n $orderUpdate['tax_percentage'] = $restaurantDetails['restaurant_tax'];\r\n $orderUpdate['tax_amount'] = $taxAmount;\r\n $orderUpdate['order_type'] = $this->request->getData('order_type');\r\n\r\n\r\n $orderUpdate['order_description'] = $this->request->getData('order_description');\r\n $orderUpdate['voucher_code'] = $this->request->getData('voucher_code');\r\n $orderUpdate['order_sub_total'] = $subTotal;\r\n $orderUpdate['order_grand_total'] = $totalAmount;\r\n $orderUpdate['payment_method'] = $this->request->getData('payment_method');\r\n\r\n //Voucher Section\r\n $orderUpdate['voucher_code'] = $voucherCode;\r\n $orderUpdate['voucher_percentage'] = $offerValue;\r\n $orderUpdate['voucher_amount'] = $voucherAmount;\r\n\r\n $orderUpdate['offer_percentage'] = $offerPercentage;\r\n $orderUpdate['offer_amount'] = $offerAmount;\r\n\r\n $orderUpdate['order_point'] = $this->request->session()->read('orderPoint');\r\n\r\n if($redeemAmount != '' && $redeemPercentage != '') {\r\n $orderUpdate['reward_used'] = 'Y';\r\n $orderUpdate['reward_offer'] = $redeemAmount;\r\n $orderUpdate['reward_offer_percentage'] = $redeemPercentage;\r\n }\r\n\r\n $this->request->session()->write('offer_mode','');\r\n $this->request->session()->write('offer_value','');\r\n $this->request->session()->write('voucher_code','');\r\n $this->request->session()->write('voucherAmount','');\r\n\r\n $this->request->session()->write('offer_percentage','');\r\n $this->request->session()->write('offer_amount','');\r\n\r\n\r\n //Reward\r\n $this->request->session()->write('rewardPercentage','');\r\n $this->request->session()->write('rewardPoint','');\r\n\r\n if($this->request->getData('deliverytime') != 'now') {\r\n\r\n if($this->request->getData('delivery_time') != '') {\r\n $deliveryTime = explode(' ',$this->request->getData('delivery_time'));\r\n $deliveryTime = $deliveryTime[1].' '.$deliveryTime[2];\r\n\r\n $orderUpdate['delivery_date'] = $this->request->getData('delivery_date');\r\n $orderUpdate['delivery_time'] = $deliveryTime;\r\n\r\n }else {\r\n $this->Flash->error('Delivery Time Missing');\r\n return $this->redirect(BASE_URL.'checkouts');\r\n }\r\n\r\n }else {\r\n $orderUpdate['delivery_date'] = date('Y-m-d');\r\n $orderUpdate['delivery_time'] = date('h:i A');\r\n }\r\n\r\n $cardFee = $this->siteSettings['card_fee'];\r\n\r\n $orderPatch = $this->Orders->patchEntity($orderEntity,$orderUpdate); \r\n\r\n if($this->request->getData('payment_method') == 'cod' || $this->request->getData('paidFull') == 'Yes') {\r\n\r\n $orderSave = $this->Orders->save($orderPatch);\r\n if($orderSave) {\r\n\r\n $ordergenid = $this->Common->generateId($orderSave->id);\r\n $finalorderid = \"ORD00\".$ordergenid;\r\n\r\n if($this->request->getData('payment_wallet') == 'Yes') {\r\n\r\n $walletAmount = $customerDetails['wallet_amount'] - $totalAmount;\r\n\r\n if($walletAmount < 0) {\r\n $history['amount'] = $customerDetails['wallet_amount'];\r\n $orderUpdate['split_payment'] = 'Yes';\r\n $orderUpdate['wallet_amount'] = $customerDetails['wallet_amount'];\r\n $customerDetails['wallet_amount'] = 0;\r\n $orderUpdate['payment_method'] = 'cod';\r\n }else {\r\n $customerDetails['wallet_amount'] = $walletAmount;\r\n $orderUpdate['payment_status'] = 'P';\r\n $orderUpdate['payment_method'] = 'Wallet';\r\n $history['amount'] = $totalAmount;\r\n }\r\n // $history['amount'] = $totalAmount;\r\n\r\n //Update Wallet Amount\r\n $custEntity = $this->Users->newEntity();\r\n $amount['wallet_amount'] = $customerDetails['wallet_amount'];\r\n $custPatch = $this->Users->patchEntity($custEntity,$amount);\r\n $custPatch->id = $this->Auth->user('id');\r\n $saveCust = $this->Users->save($custPatch);\r\n\r\n //Add Wallet History\r\n $walletEntity = $this->WalletHistories->newEntity();\r\n $history['customer_id'] = $this->Auth->user('id');\r\n $history['purpose'] = \"Amount Paid\";\r\n $history['transaction_type'] = 'Debited';\r\n\r\n $history['transaction_details'] = $finalorderid;\r\n $walletPatch = $this->WalletHistories->patchEntity($walletEntity,$history);\r\n $saveWallet = $this->WalletHistories->save($walletPatch);\r\n\r\n }\r\n\r\n //$orderUpdate['payment_method'] = 'cod';\r\n $orderUpdate['order_number'] = $finalorderid;\r\n $orderUpdate['payment_wallet'] = $this->request->getData('payment_wallet');\r\n $orderUpdate['paid_full'] = $this->request->getData('paidFull');\r\n $orderUpdate['id'] = $orderSave->id;\r\n $leadsupdt = $this->Orders->patchEntity($orderEntity,$orderUpdate);\r\n $leadssave = $this->Orders->save($leadsupdt);\r\n\r\n //Update orderiD to Cart Table\r\n foreach($cartsDetails as $key => $value) {\r\n $cartEntity = $this->Carts->newEntity();\r\n $cartUpdate['order_id'] = $orderSave->id;\r\n $cartPatch = $this->Carts->patchEntity($cartEntity,$cartUpdate);\r\n $cartPatch->id = $value['id'];\r\n $cartSave = $this->Carts->save($cartPatch);\r\n }\r\n\r\n $this->request->session()->write('sessionId','');\r\n session_regenerate_id();\r\n\r\n $orderId = base64_encode($orderSave->id);\r\n\r\n\r\n /*$this->Flash->set(__('Your Order Placed Successful'));\r\n return $this->redirect(BASE_URL.'users/thanks/'.$orderId);*/\r\n }\r\n }else if($this->request->getData('payment_method') == 'stripe') {\r\n\r\n require_once(ROOT . DS . 'vendor' . DS . 'stripe' . DS . 'init.php');\r\n \\Stripe\\Stripe::setApiKey('sk_test_BQokikJOvBiI2HlWgH4olfQ2');\r\n\r\n\r\n $token = $this->request->getData('res-sp-token');\r\n $payableAmount = $totalAmount*100; \r\n \r\n\r\n if($this->request->getData('payment_wallet') == 'Yes') {\r\n\r\n $payableAmount = $totalAmount - $customerDetails['wallet_amount'];\r\n\r\n $payableAmount = $payableAmount * 100;\r\n\r\n }\r\n if($this->request->getData('credit_card_choose') == '') {\r\n\r\n // Create a Customer:\r\n $customer = \\Stripe\\Customer::create([\r\n \"email\" => $customerDetails['username'],\r\n \"source\" => $token,\r\n ]);\r\n \r\n // Charge the Customer instead of the card:\r\n $charge = \\Stripe\\Charge::create([\r\n \"amount\" => $payableAmount,\r\n \"currency\" => \"usd\",\r\n \"customer\" => $customer->id\r\n ]);\r\n //echo \"<pre>\";print_r($charge);die();\r\n //Save Stripe's Customer Details in Table\r\n $cardEntity = $this->StripeCustomers->newEntity();\r\n $cardInsert['customer_id'] = $this->Auth->user('id');\r\n $cardInsert['customer_name'] = $this->Auth->user('first_name');\r\n $cardInsert['stripe_customer_id'] = $customer->id;\r\n $cardInsert['stripe_token_id'] = $token;\r\n $cardInsert['card_id'] = $charge['source']['id'];\r\n $cardInsert['card_brand'] = $charge['source']['brand'];\r\n $cardInsert['card_type'] = $charge['source']['funding'];\r\n $cardInsert['card_number'] = $charge['source']['last4'];\r\n $cardInsert['exp_month'] = $charge['source']['exp_month'];\r\n $cardInsert['exp_year'] = $charge['source']['exp_year'];\r\n $cardInsert['client_ip'] = $charge['source']['client_ip'];\r\n $cardInsert['country'] = $charge['source']['country'];\r\n $cardInsert['card_email'] = $charge['source']['name'];\r\n $cardPatch = $this->StripeCustomers->patchEntity($cardEntity,$cardInsert);\r\n $saveCard = $this->StripeCustomers->save($cardPatch);\r\n\r\n $orderUpdate['stripe_customerid'] = $customer->id;\r\n\r\n\r\n }else {\r\n $stripeDetails = $this->StripeCustomers->find('all', [\r\n 'conditions' => [\r\n 'id' => $this->request->getData('credit_card_choose')\r\n ]\r\n ])->hydrate(false)->first(); \r\n\r\n if(!empty($stripeDetails)) { \r\n \r\n\r\n if($stripeDetails['stripe_customer_id'] == '') { \r\n\r\n $customer = \\Stripe\\Customer::create([\r\n \"email\" => $customerDetails['username'],\r\n \"source\" => $stripeDetails['stripe_token_id'],\r\n ]); \r\n\r\n $stripeDetails['stripe_customer_id'] = $customer->id;\r\n\r\n $cardEntity = $this->StripeCustomers->newEntity();\r\n\r\n $cardInsert['stripe_customer_id'] = $customer->id;\r\n $cardPatch = $this->StripeCustomers->patchEntity($cardEntity,$cardInsert);\r\n $cardPatch->id = $stripeDetails['id'];\r\n $saveCard = $this->StripeCustomers->save($cardPatch);\r\n }\r\n \r\n\r\n // YOUR CODE: Save the customer ID and other info in a database for later.\r\n\r\n // YOUR CODE (LATER): When it's time to charge the customer again, retrieve the customer ID.\r\n $charge = \\Stripe\\Charge::create([\r\n \"amount\" => $payableAmount, // $15.00 this time\r\n \"currency\" => \"usd\",\r\n \"customer\" => $stripeDetails['stripe_customer_id']\r\n ]);\r\n $orderUpdate['stripe_customerid'] = $stripeDetails['stripe_customer_id'];\r\n\r\n\r\n }\r\n } \r\n \r\n\r\n $orderSave = $this->Orders->save($orderPatch);\r\n $payableAmount = $totalAmount;\r\n\r\n if($orderSave) {\r\n\r\n $ordergenid = $this->Common->generateId($orderSave->id);\r\n $finalorderid = \"ORD00\".$ordergenid;\r\n\r\n if($this->request->getData('payment_wallet') == 'Yes') {\r\n\r\n $orderUpdate['split_payment'] = 'Yes';\r\n\r\n $walletAmount = $customerDetails['wallet_amount'] - $totalAmount;\r\n\r\n $payableAmount = $totalAmount - $customerDetails['wallet_amount'];\r\n\r\n\r\n\r\n if($walletAmount < 0) {\r\n $orderUpdate['split_payment'] = 'Yes';\r\n $orderUpdate['wallet_amount'] = $customerDetails['wallet_amount'];\r\n $customerDetails['wallet_amount'] = 0;\r\n }else {\r\n $customerDetails['wallet_amount'] = $walletAmount;\r\n $orderUpdate['payment_status'] = 'P';\r\n }\r\n\r\n //Update Wallet Amount\r\n $custEntity = $this->Users->newEntity();\r\n $amount['wallet_amount'] = $customerDetails['wallet_amount'];\r\n $custPatch = $this->Users->patchEntity($custEntity,$amount);\r\n $custPatch->id = $this->Auth->user('id');\r\n $saveCust = $this->Users->save($custPatch);\r\n\r\n $history['amount'] = $totalAmount;\r\n\r\n\r\n //Add Wallet History\r\n $walletEntity = $this->WalletHistories->newEntity();\r\n $history['customer_id'] = $this->Auth->user('id');\r\n $history['purpose'] = \"Amount Paid\";\r\n $history['transaction_type'] = 'Debited';\r\n $history['transaction_details'] = $finalorderid;\r\n $walletPatch = $this->WalletHistories->patchEntity($walletEntity,$history);\r\n $saveWallet = $this->WalletHistories->save($walletPatch);\r\n\r\n }\r\n\r\n $token = $this->request->getData('res-sp-token');\r\n $payAmt = number_format($payableAmount,2)*100;\r\n\r\n $orderUpdate['cardfee_percentage'] = $cardFee;\r\n $orderUpdate['cardfee_price'] = $totalAmount * ($cardFee/100);\r\n\r\n $orderUpdate['order_number'] = $finalorderid;\r\n $orderUpdate['payment_wallet'] = $this->request->getData('payment_wallet');\r\n $orderUpdate['card_id'] = $this->request->getData('credit_card_choose');\r\n $orderUpdate['transaction_id'] = $charge['balance_transaction'];\r\n $orderUpdate['payment_status'] = 'P';\r\n\r\n $orderUpdate['id'] = $orderSave->id;\r\n $leadsupdt = $this->Orders->patchEntity($orderEntity,$orderUpdate);\r\n $leadssave = $this->Orders->save($leadsupdt);\r\n\r\n //Update orderiD to Cart Table\r\n foreach($cartsDetails as $key => $value) {\r\n $cartEntity = $this->Carts->newEntity();\r\n $cartUpdate['order_id'] = $orderSave->id;\r\n $cartPatch = $this->Carts->patchEntity($cartEntity,$cartUpdate);\r\n $cartPatch->id = $value['id'];\r\n $cartSave = $this->Carts->save($cartPatch);\r\n }\r\n\r\n $this->request->session()->write('sessionId','');\r\n session_regenerate_id();\r\n\r\n $orderId = base64_encode($orderSave->id);\r\n /*$this->Flash->set(__('Your Order Placed Successful'));\r\n return $this->redirect(BASE_URL.'users/thanks/'.$orderId);*/\r\n }\r\n }elseif ($this->request->getData('payment_method') == 'heartland') { \r\n \r\n $config = new \\GlobalPayments\\Api\\ServicesConfig(); \r\n $config->serviceUrl = 'https://cert.api2.heartlandportico.com';\r\n $config->secretApiKey = $restaurantDetails['heartland_secret_api_key']; \r\n\r\n \\GlobalPayments\\Api\\ServicesContainer::configure($config); \r\n\r\n $payableAmount = $totalAmount;\r\n\r\n if ($this->request->getData('payment_wallet') == 'Yes') {\r\n $payableAmount = $totalAmount - $customerDetails['wallet_amount'];\r\n $payableAmount = $payableAmount;\r\n }\r\n\r\n if ($this->request->getData('credit_card_choose') == '') {\r\n $this->Flash->error('Please select a card');\r\n return $this->redirect(BASE_URL . 'checkouts');\r\n }\r\n\r\n $heartlandDetails = $this->StripeCustomers->find('all', [\r\n 'conditions' => [\r\n 'id' => $this->request->getData('credit_card_choose')\r\n ]\r\n ])->hydrate(false)->first();\r\n if (!empty($heartlandDetails)) {\r\n $orderUpdate['stripe_customerid'] = $heartlandDetails['stripe_token_id'];\r\n\r\n $card = new \\GlobalPayments\\Api\\PaymentMethods\\CreditCardData();\r\n $card->token = $heartlandDetails['stripe_token_id'];\r\n\r\n $address = new \\GlobalPayments\\Api\\Entities\\Address();\r\n $address->postalCode = $this->request->getData('address_zip');\r\n\r\n $charge = null;\r\n try {\r\n $charge = $card->charge($payableAmount)\r\n ->withCurrency('USD')\r\n ->withAddress($address)\r\n ->withAllowDuplicates(true)\r\n ->execute();\r\n } catch (\\Exception $e) {\r\n error_log('payment exception: ' . $e->getMessage());\r\n $errorMessage = $e->getMessage();\r\n }\r\n }\r\n\r\n if (!isset($charge) || $charge == null) {\r\n $this->Flash->error($errorMessage ?: 'Error during payment');\r\n return $this->redirect(BASE_URL . 'checkouts');\r\n }\r\n\r\n // TODO: make sure data below is correct before order save?\r\n $orderUpdate['order_number'] = 'temp';\r\n $orderUpdate['driver_id'] = '0';\r\n $orderUpdate['ref_number'] = $charge->referenceNumber;\r\n $orderUpdate = $this->Orders->patchEntity($orderEntity, (array)$orderUpdate);\r\n $orderUpdate['google_address'] = '';\r\n $orderUpdate['landmark'] = '';\r\n $orderUpdate['state_name'] = '';\r\n $orderUpdate['city_name'] = '';\r\n $orderUpdate['location_name'] = '';\r\n $orderUpdate['delivery_time_slot'] = $this->request->getData('deliverytime');\r\n $orderUpdate['delivery_date'] = $this->request->getData('delivery_date');\r\n $orderUpdate['delivery_time'] = $this->request->getData('delivery_time');\r\n $orderUpdate['delivered_time'] = '';\r\n $orderUpdate['offer_percentage'] = '0';\r\n $orderUpdate['offer_amount'] = '0';\r\n $orderUpdate['voucher_percentage'] = '0';\r\n $orderUpdate['voucher_amount'] = '0';\r\n $orderUpdate['tip_percentage'] = '0';\r\n $orderUpdate['tip_amount'] = '0';\r\n\r\n $orderUpdate['cardfee_percentage'] = $cardFee;\r\n $orderUpdate['cardfee_price'] = $totalAmount * ($cardFee / 100);\r\n\r\n $orderUpdate['payment_wallet'] = $this->request->getData('payment_wallet') ?: 'No';\r\n $orderUpdate['card_id'] = $this->request->getData('credit_card_choose');\r\n $orderUpdate['transaction_id'] = $charge->transactionId;\r\n $orderUpdate['payment_status'] = 'P';\r\n $orderUpdate['paid_full'] = 1;\r\n $orderUpdate['wallet_amount'] = 0;\r\n $orderUpdate['distance'] = 0;\r\n $orderUpdate['driver_invoice_number'] = 'temp';\r\n $orderUpdate['driver_deliver_date'] = $this->request->getData('delivery_date');\r\n $orderUpdate['driver_deliver_time'] = $this->request->getData('delivery_time');\r\n $orderUpdate['driver_charge'] = 0;\r\n $orderUpdate['failed_reason'] = '';\r\n $orderUpdate['order_point'] = 0;\r\n $orderUpdate['reward_offer'] = 0;\r\n $orderUpdate['reward_offer_percentage'] = 0;\r\n $orderUpdate['payerID'] = '';\r\n $orderUpdate['paymentToken'] = $orderUpdate['stripe_customerid'];\r\n $orderUpdate['paymentID'] = $orderUpdate['transaction_id'];\r\n $orderUpdate['order_proof'] = '';\r\n $orderUpdate['payout_type'] = 0;\r\n $orderUpdate['payout_amount'] = 0;\r\n $orderUpdate['completed_time'] = 0;\r\n $orderSave = $this->Orders->save($orderUpdate);\r\n $payableAmount = $totalAmount;\r\n\r\n if ($orderSave) {\r\n $ordergenid = $this->Common->generateId($orderSave->id);\r\n $finalorderid = \"ORD00\".$ordergenid;\r\n\r\n if ($this->request->getData('payment_wallet') == 'Yes') {\r\n $orderUpdate['split_payment'] = 'Yes';\r\n\r\n $walletAmount = $customerDetails['wallet_amount'] - $totalAmount;\r\n\r\n $payableAmount = $totalAmount - $customerDetails['wallet_amount'];\r\n\r\n if ($walletAmount < 0) {\r\n $orderUpdate['split_payment'] = 'Yes';\r\n $orderUpdate['wallet_amount'] = $customerDetails['wallet_amount'];\r\n $customerDetails['wallet_amount'] = 0;\r\n } else {\r\n $customerDetails['wallet_amount'] = $walletAmount;\r\n $orderUpdate['payment_status'] = 'P';\r\n }\r\n\r\n //Update Wallet Amount\r\n $custEntity = $this->Users->newEntity();\r\n $amount['wallet_amount'] = $customerDetails['wallet_amount'];\r\n $custPatch = $this->Users->patchEntity($custEntity, $amount);\r\n $custPatch->id = $this->Auth->user('id');\r\n $saveCust = $this->Users->save($custPatch);\r\n\r\n $history['amount'] = $totalAmount;\r\n\r\n //Add Wallet History\r\n $walletEntity = $this->WalletHistories->newEntity();\r\n $history['customer_id'] = $this->Auth->user('id');\r\n $history['purpose'] = \"Amount Paid\";\r\n $history['transaction_type'] = 'Debited';\r\n $history['transaction_details'] = $finalorderid;\r\n $walletPatch = $this->WalletHistories->patchEntity($walletEntity, $history);\r\n $saveWallet = $this->WalletHistories->save($walletPatch);\r\n }\r\n\r\n $payAmt = number_format($payableAmount, 2) * 100;\r\n\r\n $orderUpdate['cardfee_percentage'] = $cardFee;\r\n $orderUpdate['cardfee_price'] = $totalAmount * ($cardFee / 100);\r\n\r\n $orderUpdate['order_number'] = $finalorderid;\r\n $orderUpdate['payment_wallet'] = $this->request->getData('payment_wallet') ?: 'No';\r\n $orderUpdate['card_id'] = $this->request->getData('credit_card_choose');\r\n $orderUpdate['transaction_id'] = $charge->transactionId;\r\n $orderUpdate['payment_status'] = 'P';\r\n\r\n $orderUpdate['id'] = $orderSave->id;\r\n $leadsupdt = $this->Orders->patchEntity($orderEntity, (array)$orderUpdate);\r\n $leadssave = $this->Orders->save($leadsupdt);\r\n\r\n //Update orderiD to Cart Table\r\n foreach ($cartsDetails as $key => $value) {\r\n $cartEntity = $this->Carts->newEntity();\r\n $cartUpdate['order_id'] = $orderSave->id;\r\n $cartPatch = $this->Carts->patchEntity($cartEntity, $cartUpdate);\r\n $cartPatch->id = $value['id'];\r\n $cartSave = $this->Carts->save($cartPatch);\r\n }\r\n\r\n $this->request->session()->write('sessionId', '');\r\n session_regenerate_id();\r\n\r\n $orderId = base64_encode($orderSave->id);\r\n /*$this->Flash->set(__('Your Order Placed Successful'));\r\n return $this->redirect(BASE_URL.'users/thanks/'.$orderId);*/\r\n }\r\n }else if($this->request->getData('payment_method') == 'paypal') {\r\n\r\n $orderSave = $this->Orders->save($orderPatch);\r\n if($orderSave) {\r\n\r\n $ordergenid = $this->Common->generateId($orderSave->id);\r\n $finalorderid = \"ORD00\".$ordergenid;\r\n\r\n\r\n\r\n if($this->request->getData('payment_wallet') == 'Yes') {\r\n $orderUpdate['split_payment'] = 'Yes';\r\n\r\n $walletAmount = $customerDetails['wallet_amount'] - $totalAmount;\r\n\r\n $history['amount'] = $customerDetails['wallet_amount'];\r\n\r\n /*if($walletAmount < 0) {\r\n $customerDetails['wallet_amount'] = 0;\r\n }else {\r\n $customerDetails['wallet_amount'] = $walletAmount;\r\n //$orderUpdate['payment_status'] = 'P';\r\n }*/\r\n\r\n if($walletAmount < 0) {\r\n $orderUpdate['split_payment'] = 'Yes';\r\n $orderUpdate['wallet_amount'] = $customerDetails['wallet_amount'];\r\n $customerDetails['wallet_amount'] = 0;\r\n }else {\r\n $customerDetails['wallet_amount'] = $walletAmount;\r\n $orderUpdate['payment_status'] = 'P';\r\n }\r\n\r\n //Update Wallet Amount\r\n $custEntity = $this->Users->newEntity();\r\n $amount['wallet_amount'] = $customerDetails['wallet_amount'] ;\r\n $custPatch = $this->Users->patchEntity($custEntity,$amount);\r\n $custPatch->id = $this->Auth->user('id');\r\n $saveCust = $this->Users->save($custPatch);\r\n }\r\n\r\n //$orderUpdate['cardfee_percentage'] = $cardFee;\r\n //$orderUpdate['cardfee_price'] = $totalAmount * ($cardFee/100);\r\n $orderUpdate['order_number'] = $finalorderid;\r\n $orderUpdate['payerID'] = $this->request->getData('payerID');\r\n $orderUpdate['paymentToken'] = $this->request->getData('paymentToken');\r\n $orderUpdate['paymentID'] = $this->request->getData('paymentID');\r\n $orderUpdate['payment_status'] = 'P';\r\n\r\n $orderUpdate['id'] = $orderSave->id;\r\n $leadsupdt = $this->Orders->patchEntity($orderEntity,$orderUpdate);\r\n $leadssave = $this->Orders->save($leadsupdt);\r\n\r\n //Update orderiD to Cart Table\r\n foreach($cartsDetails as $key => $value) {\r\n $cartEntity = $this->Carts->newEntity();\r\n $cartUpdate['order_id'] = $orderSave->id;\r\n $cartPatch = $this->Carts->patchEntity($cartEntity,$cartUpdate);\r\n $cartPatch->id = $value['id'];\r\n $cartSave = $this->Carts->save($cartPatch);\r\n }\r\n\r\n $this->request->session()->write('sessionId','');\r\n session_regenerate_id();\r\n\r\n $orderId = base64_encode($orderSave->id);\r\n\r\n }\r\n }else {\r\n return $this->redirect(BASE_URL);\r\n } \r\n\r\n\r\n if($_SERVER['HTTP_HOST'] != 'localhost') {\r\n\r\n $restaurantFCM = $this->Restaurants->find('all', [\r\n 'fields' => [\r\n 'device_id'\r\n ],\r\n 'conditions' => [\r\n 'id' => $this->request->session()->read('resid')\r\n ]\r\n ])->hydrate(false)->first();\r\n\r\n if($restaurantFCM['device_id'] != '') {\r\n\r\n $message = 'New order came - '.$finalorderid;\r\n\r\n $notificationdata['data']['title'] = \"Neworder\";\r\n $notificationdata['data']['message'] = $message;\r\n $notificationdata['data']['is_background'] = false;\r\n $notificationdata['data']['payload'] = array('OrderDetails' => \"\",'type' => \"ordercanceled\");\r\n $notificationdata['data']['timestamp'] = date('Y-m-d G:i:s');\r\n\r\n $this->FcmNotification->sendNotification($notificationdata, $restaurantFCM['device_id']);\r\n\r\n }\r\n\r\n //$this->orderEmail($orderSave->id);\r\n }\r\n\r\n $message = 'New Order Came';\r\n $this->PushNotification->pushNotification($message,$restaurantDetails['user_id']);\r\n\r\n //Reward Points Update\r\n\r\n if($redeemAmount != '' && $redeemPercentage != '') {\r\n\r\n $customerPoints = $this->CustomerPoints->find('all', [\r\n 'fields' => [\r\n 'total_points' => 'SUM(points)'\r\n ],\r\n 'conditions' => [\r\n 'customer_id' => $this->Auth->user('id'),\r\n 'status' => '1'\r\n ]\r\n ])->hydrate(false)->toArray();\r\n\r\n $customerPoint['order_id'] = $orderSave->id;\r\n $customerPoint['restaurant_name'] = $restaurantDetails['restaurant_name'];\r\n $customerPoint['customer_id'] = $this->Auth->user('id');\r\n $customerPoint['total'] = $totalAmount;\r\n $customerPoint['points'] = $customerPoints[0]['total_points'];\r\n $customerPoint['type'] = 'Spent';\r\n\r\n $customerPointEntity = $this->CustomerPoints->newEntity();\r\n $customerPointPatch = $this->CustomerPoints->patchEntity($customerPointEntity,$customerPoint);\r\n $customerPointSave = $this->CustomerPoints->save($customerPointPatch);\r\n\r\n $rewardPoints = $this->CustomerPoints->find('all', [\r\n 'conditions' => [\r\n 'customer_id' => $this->Auth->user('id'),\r\n 'status' => '1'\r\n ]\r\n ])->hydrate(false)->toArray();\r\n\r\n if(!empty($rewardPoints)) {\r\n\r\n foreach ($rewardPoints as $key => $value) {\r\n $reward['id'] = $value['id'];\r\n $reward['status'] = '0';\r\n $rewardPointEntity = $this->CustomerPoints->newEntity();\r\n $rewardPointPatch = $this->CustomerPoints->patchEntity($rewardPointEntity,$reward);\r\n $customerPointSave = $this->CustomerPoints->save($rewardPointPatch);\r\n }\r\n\r\n }\r\n\r\n }\r\n $this->Flash->set(__('Your Order Placed Successful'));\r\n return $this->redirect(BASE_URL.'users/thanks/'.$orderId);\r\n\r\n }\r\n }", "title": "" }, { "docid": "a3d1c2e5e98e11cbcea3c3522419ee25", "score": "0.60820496", "text": "public function placeOrder()\n {\n $this->_rootElement->find($this->placeOrder)->click();\n $this->waitForElementNotVisible($this->waitElement);\n }", "title": "" }, { "docid": "90fcd3d7636f175897f414a94b765fa1", "score": "0.6008862", "text": "public function placeAction()\n {\n $paymentParam = $this->getRequest()->getParam('payment');\n $controller = $this->getRequest()->getParam('controller');\n if (isset($paymentParam['method'])) {\n $params = Mage::helper('authorizenet')->getSaveOrderUrlParams($controller);\n $this->_getDirectPostSession()->setQuoteId($this->_getCheckout()->getQuote()->getId());\n $this->_forward(\n $params['action'],\n $params['controller'],\n $params['module'],\n $this->getRequest()->getParams()\n );\n } else {\n $result = array(\n 'error_messages' => $this->__('Please, choose payment method'),\n 'goto_section' => 'payment'\n );\n $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));\n }\n }", "title": "" }, { "docid": "3a03fd1331ae214554207f1e44c6fc70", "score": "0.60087013", "text": "public function __constuct(OrderRequest $request)\n {\n $this->request = $request;\n }", "title": "" }, { "docid": "9a25faf52467fb9a2ff5923a2c6bb55b", "score": "0.5989906", "text": "public function created(RequestOrder $requestOrder)\n {\n //\n }", "title": "" }, { "docid": "5dd2b0f8c0034bdfd55b587e7b807d8b", "score": "0.5973768", "text": "public function customerOrder(Request $request)\n {\n $input = $request->all();\n $validator = Validator::make($input, [\n 'locationId' => 'required',\n 'serviceId' => 'required'\n ]);\n if($validator->fails()){\n\n return $this->sendError('Validation Error.', $validator->errors()); \n }\n $serviceLocation = ServicesLocations::where('location_id', $input['locationId'])\n ->where('service_id', $input['serviceId'])\n ->get();\n $data =[];\n if(!$serviceLocation) {\n return $this->sendError('services does not exist.', NULL); \n }else{\n $data['location_service_id'] = $serviceLocation[0]->id; \n }\n $user = auth()->user();\n $data['customer_id'] = $user->id;\n $newOrder = Orders::create($data);\n\n return $this->sendResponse($newOrder->toArray(), 'Order created successfully.');\n }", "title": "" }, { "docid": "9e6fe0c3c117675a7891501f7ed1942b", "score": "0.59673417", "text": "public function create()\n {\n $data = $this->request->getJSON(true);\n\n $p_key = $data[\"p_key\"] ?? null;\n $amount = $data[\"amount\"] ?? null;\n $price = $data[\"price\"] ?? null;\n $u_key = $this->u_key;\n $orch_key = $this->request->getHeaderLine(\"Orch-Key\")??null;\n\n if (is_null($orch_key)) {\n return $this->fail(\"The orchestrator key is needed.\", 404);\n }\n\n if (is_null($p_key)|| is_null($amount)) {\n return $this->fail(\"Incoming data error\", 404);\n }\n\n $now = date(\"Y-m-d H:i:s\");\n $orderKey = sha1($u_key . $p_key . $now);\n\n $orderModel = new OrderModel();\n\n $orderEntity = $orderModel->find($orderKey);\n if ($orderEntity) {\n return $this->fail(\"Order key repeated input, Please try it later!\", 403);\n }\n\n $orderCreatedIDOrNull = $orderModel->orderCreateTransaction($orderKey, $u_key, $p_key, $amount, $price, $orch_key);\n\n if ($orderCreatedIDOrNull) {\n return $this->respond([\n \"status\" => true,\n \"orderID\" => $orderCreatedIDOrNull,\n \"msg\" => \"Order create method successful.\"\n ]);\n } else {\n return $this->fail(\"Order created method fail\", 400);\n }\n }", "title": "" }, { "docid": "633f7edc127366885fb7ce9d8b6674e7", "score": "0.5963528", "text": "public function placeOrderAction()\n {\n $helper = Mage::helper('afterpay');\n $quote = Mage::getSingleton('checkout/session')->getQuote();\n\n try {\n // Debug log\n $helper->log(\n $this->__(\n 'Creating order in Magento. AfterpayOrderId=%s QuoteID=%s ReservedOrderID=%s',\n $quote->getData('afterpay_order_id'),\n $quote->getId(),\n $quote->getReservedOrderId()\n ),\n Zend_Log::NOTICE\n );\n\n // Placing order using Afterpay\n $placeOrder = Mage::getModel('afterpay/order')->place();\n\n if ($placeOrder) {\n\n \t //process the Store Credit on Orders\n if( Mage::getEdition() == Mage::EDITION_ENTERPRISE ) {\n \t\t$helper->storeCreditPlaceOrder();\n \t\t$helper->giftCardsPlaceOrder();\n \t}\n\n // Debug log\n $helper->log(\n $this->__(\n 'Order successfully created. Redirecting to success page. AfterpayOrderId=%s QuoteID=%s ReservedOrderID=%s',\n $quote->getData('afterpay_order_id'),\n $quote->getId(),\n $quote->getReservedOrderId()\n ),\n Zend_Log::NOTICE\n );\n\n $quote->save();\n }\n\n // Redirect to success page\n $this->_redirect('checkout/onepage/success');\n } catch (Exception $e) {\n // Debug log\n $helper->log(\n $this->__(\n 'Order creation failed. %s. AfterpayOrderId=%s QuoteID=%s ReservedOrderID=%s Stack Trace=%s',\n $e->getMessage(),\n $quote->getData('afterpay_order_id'),\n $quote->getId(),\n $quote->getReservedOrderId(),\n\t\t $e->getTraceAsString()\n ),\n Zend_Log::ERR\n );\n Mage::getSingleton('core/session')->addError($e->getMessage());\n $quote->getPayment()->setData('afterpay_token', NULL)->save();\n\n // Afterpay redirect\n $this->_redirectUrl(Mage::helper('checkout/url')->getCartUrl());\n }\n }", "title": "" }, { "docid": "2328a8a8dcb9f8ff60eaad55615c6b19", "score": "0.5955179", "text": "public function newOrder($symbol, $quantity, $price, $ioc=null, $clOrdID=null) {\n\n //parse inputs\n $resourcePath = \"/order\";\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\n $method = \"POST\";\n $queryParams = array();\n $headerParams = array();\n $headerParams['Accept'] = 'application/json';\n $headerParams['Content-Type'] = 'application/json';\n\n // Generate form params\n if (! isset($body)) {\n $body = array();\n }\n if($symbol != null) {\n $body['symbol'] = $symbol;\n }\n if($quantity != null) {\n $body['quantity'] = $quantity;\n }\n if($price != null) {\n $body['price'] = $price;\n }\n if($ioc != null) {\n $body['ioc'] = $ioc;\n }\n if($clOrdID != null) {\n $body['clOrdID'] = $clOrdID;\n }\n if (empty($body)) {\n $body = null;\n }\n\n // Make the API Call\n $response = $this->apiClient->callAPI($resourcePath, $method,\n $queryParams, $body,\n $headerParams);\n\n\n if(! $response){\n return null;\n }\n\n $responseObject = $this->apiClient->deserialize($response,\n 'Order');\n return $responseObject;\n\n }", "title": "" }, { "docid": "3a6fc0c930ae3977d308645266f9a38e", "score": "0.59494424", "text": "private function getPreparedOrderDetailsRequest(): ConsumerRequest\n {\n $request = new ConsumerRequest();\n $request\n ->setMethod('GET')\n ->setPath('/api/v1/orders/93b69bf5-4a7b-3249-813c-7da2d3daad9d')\n ->addHeader('Content-Type', 'application/json');\n\n return $request;\n }", "title": "" }, { "docid": "553288be72c1bacbb3cbfaf49cf2e968", "score": "0.5918898", "text": "public function addOrder()\n {\n $part_id = Request::segment(2);\n $route_name = Request::segment(4);\n $post = Input::all();\n\n unset($post['_token']);\n unset($post['skuDescripton']);\n unset($post['selectedRawMaterial']);\n\n unset($post['descritpion']);\n unset($post['bom_cost']);\n unset($post['unit']);\n unset($post['BOM_list_length']);\n unset($post['part_id']);\n\n $bom = DB::table('bom')->insertGetId($post);\n }", "title": "" }, { "docid": "3621cc7dfd38904f6c41d92db1bcdc5e", "score": "0.59005576", "text": "public function order() {\n\n // Verifies if is post request\n $this->initializePost();\n\n //Me logue en el soap de sap\n $this->_login('IGB');\n $id = $this->_sessionId;\n $order = $this->request->getJsonRawBody();\n\n $order->trasportadora = $order->trasportadora ?? \"No se ingreso\";\n $order->nit_cliente = $order->nit_cliente ?? \"No se ingreso\";\n $order->asesor = $order->asesor ?? \"No se ingreso\";\n $order->asesor_id = $order->asesor_id ?? \"No se ingreso\";\n $order->user_email = $order->user_email ?? \"No se ingreso\";\n $order->total = $order->total ?? \"No se ingreso\";\n $order->tipo_usuario = $order->tipo_usuario ?? '';\n\n if (!isset($order->id)) {\n $this->buildErrorResponse(400, 'common.INCOMPLETE_DATA_RECEIVED');\n }elseif( count($order->productos) < 1 ){\n $this->buildErrorResponse(400, 'common.INCOMPLETE_DATA_INSERT_AT_LEAST_ONE_PRODUCT');\n }\n\n // Guardo un log de la orden\n $this->saveOrderLog($order);\n\n try {\n /**\n * busque en la bd si la orden ya se creo para el asesor indicado\n * si la orden ya existe entonces cancelo la operacion\n */\n $prevOrders = Orders::count(\n [\n 'asesor = :asesor: AND order_app_id = :order:',\n 'bind' => [\n 'asesor' => $order->asesor,\n 'order' => $order->id\n ]\n ]\n );\n } catch (Throwable $exc) {\n $this->buildErrorResponse( 400, 'common.ERROR_SEARCH_DUPLICATED_ORDERS', [\"error\" => $exc->getTraceAsString()] );\n $this->_log->error('common.ERROR_SEARCH_DUPLICATED_ORDERS: '. json_encode($this->utf8ize([\"error\" => $exc->getTraceAsString()])) );\n }\n\n if ( $prevOrders > 0 ) {\n $this->buildErrorResponse(400, 'common.ORDER_DUPLICATED');\n }\n\n /**\n * El metodo \"Add\" del webservice pide unos headers entonces los agrego\n */\n $paramsH = [\n 'SessionID' => $id,\n 'ServiceName' => 'OrdersService'\n ];\n $this->_ordersService->setHeaders(['MsgHeader' => $paramsH]);\n\n /**\n * Con un reduce meto todos los productos de al array en un texto con el formato que pide el\n * webservice\n * @var array\n */\n $products = array_reduce($order->productos, function($carry, $item){\n $carry .= '<DocumentLine>'\n . \"<ItemCode>{$item->referencia}</ItemCode>\"\n . \"<Quantity>{$item->cantidad}</Quantity>\"\n . \"<DiscountPercent>{$item->descuento}</DiscountPercent>\"\n . '</DocumentLine>';\n return $carry;\n }, '');\n\n $error = $this->_ordersService->getError();\n if(!$error){\n /**\n * Armo la estructura xml que le voy a enviar al metodo Add del webservice\n */\n try {\n $soapRes = $this->_ordersService->call('Add', ''\n . '<Add>'\n . '<Document>'\n . '<Confirmed>N</Confirmed>'\n . \"<CardCode>{$order->nit_cliente}</CardCode>\"\n . \"<U_TRANSP>{$order->trasportadora}</U_TRANSP>\"\n . \"<Comments>{$order->comentarios}</Comments>\"\n . \"<DocDueDate>{$order->fecha_creacion}</DocDueDate>\"\n . \"<NumAtCard>{$order->id}</NumAtCard>\"\n . \"<U_OBSERVACION>{$order->tipo_usuario}</U_OBSERVACION>\"\n . '<DocumentLines>'\n . $products\n . '</DocumentLines>'\n . '</Document>'\n . '</Add>'\n );\n /**\n * Me trae la peticion en xml crudo de lo que se envio por soap al sap\n * algo asi como soap envelope bla, bla\n */\n $this->_log->info('Request orden es: '.$this->_ordersService->request);\n /**\n * Lo mismo que el anterior, pero en vez de traer la peticion, trae la respuesta\n */\n $this->_log->info('Response orden es: '.$this->_ordersService->response);\n /**\n * Me devuelve el string con todo el debug de todos los procesos que ha hecho nusoap\n * para activarlo hay q setear el nivel de debug a mas de 0 ejemplo: \"$this->ordersService->setDebugLevel(9);\"\n */\n $this->_log->info('Debug orden es: '.$this->_ordersService->debug_str);\n // Verifico que no haya ningun error, tambien reviso si existe exactamente la ruta del array que especifico\n // si esa rut ano existe significa que algo raro paso muy posiblemente un error\n $error .= $this->_ordersService->getError();\n //Cierro la sesion en sap ya que no es necsario tenerla abierta\n $this->_logout();\n } catch (Throwable $exc) {\n $error .= $exc->getTraceAsString();\n }\n\n\n if($error || !isset($soapRes['DocumentParams']['DocEntry'])){\n $this->_log->error('Error al hacer el pedido SAP: '. json_encode($error) );\n $this->_log->error(\"respuesta del error pedido a SAP: \". json_encode($this->utf8ize($soapRes)) );\n $this->buildErrorResponse( 400, 'common.SAP_ERROR_ORDER', [\"error\" => $error, \"soap_res\" => $this->utf8ize($soapRes)] );\n }\n // Start a transaction\n $this->db->begin();\n try {\n $newOrder = new Orders();\n $newOrder->asesor = $order->asesor;\n $newOrder->asesor_id = $order->asesor_id;\n $newOrder->order_app_id = $order->id;\n $newOrder->productos = json_encode($order->productos);\n $newOrder->cliente = $order->nit_cliente;\n $newOrder->observaciones = $order->comentarios;\n\n if ($newOrder->save()) {\n // Commit the transaction\n $this->db->commit();\n\n $this->sendEmailLog($order);\n\n }else{\n $this->db->rollback();\n // Send errors\n $errors = array();\n foreach ($newOrder->getMessages() as $message) {\n $errors[] = $message->getMessage();\n }\n $this->buildErrorResponse(400, 'common.ORDER_COULD_NOT_BE_CREATED', $errors);\n $this->_log->error('common.ORDER_COULD_NOT_BE_CREATED: '. json_encode($this->utf8ize($soapRes)) );\n }\n\n } catch (Throwable $exc) {\n $this->db->rollback();\n $this->buildErrorResponse( 400, 'common.ERROR_ORDERS_MYSQLBD', [\"error\" => $exc->getTraceAsString()] );\n $this->_log->error('common.ERROR_ORDERS_MYSQLBD: '. json_encode($this->utf8ize([\"error\" => $exc->getTraceAsString()])) );\n }\n\n $this->_log->info(\"respuesta del pedido a SAP: \". json_encode($this->utf8ize($soapRes)) );\n $this->buildSuccessResponse(201, 'common.CREATED_SUCCESSFULLY', $this->utf8ize($soapRes));\n }else{\n $this->_logout();\n $this->_log->error('Error al procesar la orden SAP: '. json_encode($error) );\n $this->buildErrorResponse(400, 'common.SAP_ERROR_ORDER', $error);\n }\n }", "title": "" }, { "docid": "13b35d1be5cf7ffd8b1115cd57f72eac", "score": "0.58772856", "text": "public function makeOrder($from, $to, $parcels, $additionalParams, $get_info = false)\n {\n $this->setPerson('shipper', $from);\n $this->setPerson('recipient', $to);\n $this->setType($parcels[\"type\"], $parcels[\"dimensions\"]);\n $this->quot_info = $additionalParams;\n $this->get_info = $get_info;\n if (isset($additionalParams['reason']) && $additionalParams['reason']) {\n $additionalParams['raison'] = array_search($additionalParams['reason'], $this->ship_reasons);\n unset($additionalParams['reason']);\n }\n if (!isset($additionalParams['assurance.selection']) || $additionalParams['assurance.selection'] == '') {\n $additionalParams['assurance.selection'] = false;\n }\n $this->param = array_merge($this->param, $additionalParams);\n $this->setOptions(array('action' => 'api/v1/order'));\n $this->setPost();\n\n if ($this->doSimpleRequest() && !$this->resp_error) {\n // The request is ok, we check the order reference\n $nodes = $this->xpath->query('/order/shipment');\n $reference = $nodes->item(0)->getElementsByTagName('reference')->item(0)->nodeValue;\n if (preg_match('/^[0-9a-zA-Z]{20}$/', $reference)) {\n $this->order['ref'] = $reference;\n $this->order['date'] = date('Y-m-d H:i:s');\n if ($get_info) {\n $this->getOrderInfos();\n }\n return true;\n }\n return false;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "7f2053744a5e4d43273d48f65f838167", "score": "0.5844348", "text": "public function store(MakeOrderRequest $request)\n {\n \n $result_price = OrderService::calculateOrderPrice($request->rate_id,\n $request->from_coordinates,\n $request->to_coordinates);\n\n // save Order into DB\n Order::create([\n 'from_address' => $request->from_address,\n 'to_address' => $request->to_address,\n 'from_coordinates' => $request->from_coordinates,\n 'to_coordinates' => $request->to_coordinates,\n 'result_price' => $result_price,\n ]);\n\n \n return response()->json(\"Total cost of your trip would be: \" . $result_price . \" $\", Response::HTTP_OK);\n\n }", "title": "" }, { "docid": "dafa6b282d64ee453722d74c27aaee96", "score": "0.58372605", "text": "public function respuestaPlaceToPay(Request $request)\n {\n $placetopay = new PlacetoPay([\n 'login' => '6dd490faf9cb87a9862245da41170ff2',\n 'tranKey' => '024h1IlD',\n 'url' => 'https://dev.placetopay.com/redirection/',\n 'rest' => [\n 'timeout' => 45,\n 'connect_timeout' => 30,\n ]\n ]);\n\n $referencia = $request->get(\"reference\");\n\n $orden = Ordenes::where(\"reference\", $referencia)->get();\n\n foreach ($orden as $key => $value) {\n\n $requestId = $value['requestId'];\n }\n\n $response = $placetopay->query($requestId);\n\n if ($response->isSuccessful()) {\n \n if($response->status()->status() == 'PENDING'){\n\n $datos = ['status' => $response->status()->status()];\n\n }else{\n\n $datos = ['status' => $response->payment[0]->status()->status(),\n 'message' => $response->payment[0]->status()->message(),\n 'date_trans' => $response->payment[0]->status()->date(),\n 'method' => $response->payment[0]->paymentMethodName(),\n 'ref_int' => $response->payment[0]->internalReference(),\n 'bank' => $response->payment[0]->issuerName()\n ];\n }\n\n $actualicar_orden = Ordenes::where(\"reference\", $referencia)->update($datos);\n\n if($actualicar_orden == 1){\n header (\"Location: http://localhost/frontend.evertec/\");\n exit();\n }\n \n } else {\n\n print_r($response->status()->message() . \"\\n\");\n\n }\n }", "title": "" }, { "docid": "672ae55c1c5da86b06e3bb7f8435ec12", "score": "0.582554", "text": "function create_order_via_api( $order_id ) {\n\t\tif ( 0 < $order_id ) {\n\t\t\t$order = wc_get_order( $order_id );\n\t\t}\n\n\t\t// @codingStandardsIgnoreStart\n\t\t$pos_code = isset( $_POST['bliskapaczka_posCode'] ) ? wc_clean( $_POST['bliskapaczka_posCode'] ) : '';\n\t\t$pos_operator = isset( $_POST['bliskapaczka_posOperator'] ) ? wc_clean( $_POST['bliskapaczka_posOperator'] ) : '';\n\t\t// @codingStandardsIgnoreEnd\n\n\t\tforeach ( $order->get_items( array( 'shipping' ) ) as $item_id => $item ) {\n\t\t\t$shipping_item_id = $item_id;\n\t\t}\n\n\t\twc_add_order_item_meta( $shipping_item_id, '_bliskapaczka_posCode', $pos_code );\n\t\twc_add_order_item_meta( $shipping_item_id, '_bliskapaczka_posOperator', $pos_operator );\n\n\t\tif ( ! $order ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// TODO: \"Bliskapaczka, od\" to const.\n\t\tif ( $order->get_shipping_method() !== 'Bliskapaczka' && $order->get_shipping_method() !== 'Bliskapaczka, od' ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t/* @var Bliskapaczka_Shipping_Method $bliskapaczka */\n\t\t$bliskapaczka = new Bliskapaczka_Shipping_Method();\n\n\t\t/* @var Bliskapaczka_Shipping_Method_Helper $helper */\n\t\t$helper = new Bliskapaczka_Shipping_Method_Helper();\n\n\t\t/* @var Bliskapaczka_Shipping_Method_Mapper $mapper */\n\t\t$mapper = new Bliskapaczka_Shipping_Method_Mapper();\n\t\t$order_data = $mapper->getData( $order, $helper, $bliskapaczka->settings );\n\n\t\ttry {\n\t\t\t$api_client = $helper->getApiClient(\n\t\t\t\t$bliskapaczka->settings['BLISKAPACZKA_API_KEY'],\n\t\t\t\t$bliskapaczka->settings['BLISKAPACZKA_TEST_MODE']\n\t\t\t);\n\t\t\t$api_client->createOrder( $order_data );\n\t\t} catch ( Exception $e ) {\n\t\t\tthrow new Exception( $e->getMessage(), 1 );\n\t\t}\n\t}", "title": "" }, { "docid": "59765298cedfe92dc2c02a046a2f143b", "score": "0.5818503", "text": "public function place()\n {\n $this->_quote->collectTotals();\n $order = $this->quoteManagement->submit($this->_quote);\n\n if (!$order) {\n return;\n }\n\n switch ($order->getState()) {\n case \\Magento\\Sales\\Model\\Order::STATE_PENDING_PAYMENT:\n case \\Magento\\Sales\\Model\\Order::STATE_PROCESSING:\n case \\Magento\\Sales\\Model\\Order::STATE_COMPLETE:\n case \\Magento\\Sales\\Model\\Order::STATE_PAYMENT_REVIEW:\n $this->orderSender->send($order);\n $this->_checkoutSession->start();\n break;\n default:\n break;\n }\n\n $this->_order = $order;\n }", "title": "" }, { "docid": "bc91eb25edee26dc2162566726e173f2", "score": "0.5818002", "text": "public function placeOrder($statusCode = null);", "title": "" }, { "docid": "1043e3d086f9fb63a6e4ae56537bb448", "score": "0.5814681", "text": "public function store($input)\n\t{\n\t\t$input['order_ref_id'] = $input['customer_id'].'-'.time().'-'.str_random(10);\n\t\t$input['order_status'] = 'PENDING';\n\t\tif(empty($input[\"deliver_at\"])){\n\t\t\t$input[\"deliver_at\"] = date(\"Y-m-d H:i:s\",strtotime(date(\"Y-m-d H:i:s\").\" +30 minutes\"));\n\t\t}\n\t\t$order = Order::create($input);\n\t\tif (isset($input['order_detail']) && count($input['order_detail']>0)) {\n\t\t\t$orderDetailRepo = new OrderDetailRepository();\n \t$orderDetail = $orderDetailRepo->saveOrderDetails($order->id, $input['order_detail']);\n\t\t}\n\t\tif (isset($input['address']) && count($input['address']>0)) {\n\t\t\t$addressRepo = new AddressRepository();\n\t\t\t// $media = $addressRepo->saveAddresses($order->id, 'ORDER',$input['address']);\n\t\t\t$media = $addressRepo->saveAddressesFromLatLong($order->id, 'ORDER',$input['address'][0][\"lat\"],$input['address'][0][\"long\"]);\n\t\t}\n\t\treturn $order;\n\t}", "title": "" }, { "docid": "eee762025c769805d1cb55cf0d310f35", "score": "0.57979846", "text": "public function createOrder($sessionId, $order);", "title": "" }, { "docid": "01fbe27dc79c4cd332726b492de47145", "score": "0.57769555", "text": "public function getOrderByIdRequest($order_id)\n {\n // verify the required parameter 'order_id' is set\n if ($order_id === null || (is_array($order_id) && count($order_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $order_id when calling getOrderById'\n );\n }\n if ($order_id > 5) {\n throw new \\InvalidArgumentException('invalid value for \"$order_id\" when calling StoreApi.getOrderById, must be smaller than or equal to 5.');\n }\n if ($order_id < 1) {\n throw new \\InvalidArgumentException('invalid value for \"$order_id\" when calling StoreApi.getOrderById, must be bigger than or equal to 1.');\n }\n\n\n $resourcePath = '/store/order/{order_id}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = null;\n $multipart = false;\n\n\n\n // path params\n if ($order_id !== null) {\n $resourcePath = str_replace(\n '{' . 'order_id' . '}',\n ObjectSerializer::toPathValue($order_id),\n $resourcePath\n );\n }\n\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/xml', 'application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/xml', 'application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];\n foreach ($formParamValueItems as $formParamValueItem) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValueItem\n ];\n }\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = Query::build($formParams);\n }\n }\n\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $operationHost = $this->config->getHost();\n\n $uri = $this->createUri($operationHost, $resourcePath, $queryParams);\n\n return $this->createRequest('GET', $uri, $headers, $httpBody);\n }", "title": "" }, { "docid": "25c6ac9bf924d42f05447269a9daef97", "score": "0.57634723", "text": "public function orderPlace(Request $request)\n {\n $customer_id = Auth::id();\n $customer_email = Auth::user()->email;\n\n //find customer delivary address\n $delivary_address = DelivaryAddress::where('user_email', $customer_email)->first();\n\n //check coupon code has or not\n if (empty(Session::get('coupon_code'))) {\n $coupon_code = 'Not use';\n } else {\n $coupon_code = Session::get('coupon_code');\n }\n //check coupon amount has or not\n if (empty(Session::get('couponAmount'))) {\n $coupon_amount = '0';\n } else {\n $coupon_amount = Session::get('couponAmount');\n }\n\n $order = Order::create([\n 'user_id' => $customer_id,\n 'user_email' => $customer_email,\n 'name' => $delivary_address->name,\n 'address' => $delivary_address->address,\n 'city' => $delivary_address->city,\n 'state' => $delivary_address->state,\n 'country' => $delivary_address->country,\n 'pincode' => $delivary_address->pincode,\n 'mobile' => $delivary_address->mobile,\n 'coupon_code' => $coupon_code,\n 'coupon_amount' => $coupon_amount,\n 'order_status' => \"New\",\n 'payment_method' => $request->payment_method,\n 'grand_total' => $request->grand_total,\n ]);\n\n $order_id = DB::getPdo()->lastinsertID();\n $carts = DB::table('cart')->where('user_email', $customer_email)->get();\n\n foreach ($carts as $cart) {\n OrderProduct::create([\n 'order_id' => $order_id,\n 'user_id' => $customer_id,\n 'product_id' => $cart->product_id,\n 'product_name' => $cart->product_name,\n 'product_code' => $cart->product_code,\n 'product_color' => $cart->product_color,\n 'product_size' => $cart->size,\n 'product_price' => $cart->price,\n 'product_qty' => $cart->quantity,\n ]);\n }\n\n // Session put order_id and grand_total\n Session::put('order_id', $order_id);\n Session::put('grand_total', $request->grand_total);\n\n //check payment method\n if ($request->payment_method == 'cod') {\n // User order details information send to customer email\n $order_info = [\n 'name' => $delivary_address->name,\n 'email' => $customer_email,\n 'order_id' => $order_id,\n 'order' => $order,\n 'order' => $order,\n 'delivary_address' => $delivary_address,\n ];\n\n Mail::to($customer_email)->send(new CustomerOrderDetailsMail($order_info));\n return redirect()->route('thanks');\n } elseif ($request->payment_method == 'stripe') {\n return redirect()->route('stripe');\n } else {\n return redirect()->back()->with('error', 'Please choose any payment method!');\n }\n }", "title": "" }, { "docid": "e36df51366a93d5e21c839a17dc1b1e2", "score": "0.57626015", "text": "public function store(CreateOrderAPIRequest $request)\r\n {\r\n $profile = \\Auth::user();\r\n\r\n $input = $request->all();\r\n $input['profile_id'] = $profile->id;\r\n\r\n $orders = $this->orderRepository->create($input);\r\n $order_details = array();\r\n if (!empty($input['order_detail'])) {\r\n $details = json_decode($input['order_detail'], true);\r\n if ($details) {\r\n foreach ($details as $detail) {\r\n if (isset($detail['product_id']) && isset($detail['amount'])) {\r\n $order_detail = new OrderDetail();\r\n $order_detail->product_id = $detail['product_id'];\r\n $order_detail->amount = $detail['amount'];\r\n $order_detail->order_id = $orders->id;\r\n $order_detail->save();\r\n $order_details[] = $order_detail->toArray();\r\n\r\n // reduce product amount\r\n $product = $this->productRepository->findWithoutFail($detail['product_id']);\r\n if (!empty($product)) {\r\n $input = array();\r\n $amount = $product->amount - $detail['amount'];\r\n $amount = ($amount > 0) ? $amount : 0;\r\n $input['amount'] = $amount;\r\n $this->productRepository->update($input, $detail['product_id']);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n $orders['order_detail'] = $order_details;\r\n\r\n return $this->sendResponse($orders->toArray(), 'Order saved successfully');\r\n }", "title": "" }, { "docid": "3cbe0e325514146657cafc4f377ab846", "score": "0.57527786", "text": "public function createOrder(array $data)\n {\n return $this->apiRequest('v1/orders/', $data, 'POST');\n }", "title": "" }, { "docid": "d07e7a02e29bb503882c72b2f20ee54a", "score": "0.574866", "text": "public function pagoPlaceToPay(Request $request)\n {\n\n $placetopay = new PlacetoPay([\n 'login' => '6dd490faf9cb87a9862245da41170ff2',\n 'tranKey' => '024h1IlD',\n 'url' => 'https://dev.placetopay.com/redirection/',\n 'rest' => [\n 'timeout' => 45,\n 'connect_timeout' => 30,\n ]\n ]);\n\n //Creando referencia\n $id = $request->input(\"id_orden\");\n\n $reference = $id.'TEST_' . time();\n\n $request = [\n 'payment' => [\n 'reference' => $reference,\n 'description' => $request->input(\"descripcion\"),\n 'amount' => [\n 'currency' => 'COP',\n 'total' => $request->input(\"precio\"),\n ],\n ],\n 'expiration' => date('c', strtotime('+2 days')),\n 'returnUrl' => $request->input(\"urlRetorno\").'?reference=' . $reference,\n 'ipAddress' => '127.0.0.1',\n 'userAgent' => 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36',\n ];\n\n $response = $placetopay->request($request);\n\n if ($response->isSuccessful()) {\n\n $respPlace = array(\n 'requestId' => $response->requestId(),\n 'reference' => $reference,\n 'processUrl' => $response->processUrl()\n );\n\n $actualicar_orden = Ordenes::where(\"id\", $id)->update($respPlace);\n\n if($actualicar_orden == 1){\n\n echo json_encode($respPlace);\n\n }else{\n\n echo json_encode('No se pudo actualizar la orden');\n }\n \n } else {\n\n $respPlace = $response->status()->message();\n\n echo json_encode($respPlace);\n }\n }", "title": "" }, { "docid": "a0c97b3b57f77af727d126ba99a90cfe", "score": "0.5737492", "text": "function buildOrder(array $info = array()) {\n $this->uniqueId = \"PhpSdkGetOrder-\" . uniqid();\n $order = new Order(array_replace(array(\n \"id\" => $this->uniqueId,\n \"visitor\" => \"da39a3ee5e6b4b0d3255bfef95601890afd80709\",\n \"total_amount\" => 100.01, // Result approve in test env\n \"shipping_amount\" => 20.00,\n \"tax_amount\" => 3.45,\n \"currency\" => \"BRL\",\n \"installments\" => 2,\n \"ip\" => \"128.12.12.12\",\n \"customer\" => array(\n \"id\" => \"28372\",\n \"name\" => \"Júlia da Silva\",\n \"tax_id\" => \"12345678909\",\n \"dob\" => \"1970-12-25\",\n \"phone1\" => \"11-1234-5678\",\n \"phone2\" => \"21-2143-6578\",\n \"email\" => \"jsilva@exemplo.com.br\",\n \"created_at\" => \"2010-12-25\",\n \"new\" => false,\n \"vip\" => false\n ),\n \"payment\" => array(\n array(\n \"type\" => \"credit\",\n \"status\" => \"approved\",\n \"bin\" => \"123456\",\n \"last4\" => \"0987\",\n \"expiration_date\" => \"122020\"\n ),\n array(\"type\" => \"boleto\", \"expiration_date\" => \"2016-05-23\"),\n array(\"type\" => \"voucher\")\n ),\n \"billing\" => array(\n \"name\" => \"Mary Jane\",\n \"address1\" => \"123 Main St.\",\n \"address2\" => \"Apartment 4\",\n \"city\" => \"New York City\",\n \"state\" => \"NY\",\n \"zip\" => \"10460\",\n \"country\" => \"US\"\n ),\n \"shipping\" => array(\n \"name\" => \"Mary Jane\",\n \"address1\" => \"89 Holly St.\",\n \"city\" => \"Springfield\",\n \"state\" => \"CO\",\n \"zip\" => \"02955\",\n \"country\" => \"US\"\n ),\n ), $info));\n return $order;\n }", "title": "" }, { "docid": "56a433ec5ccffec97c0ffc047578d34c", "score": "0.5730968", "text": "public function post_order(Request $request){\n\n $validator = Validator::make($request->all(), [\n\n 'location' => 'required',\n 'user_id' => 'required',\n 'user_name' => 'required',\n 'service_list' => 'required',\n\n ]);\n\n if ($validator->fails()){\n return response()->json($validator->errors());\n }\n\n else{\n\n try {\n \n $order = TempOrder::create($request -> all());\n return response()->json([$order ,'Order Created successfully']);\n\n } catch (\\Throwable $th) {\n \n return response()->json(\"$th : Error\");\n }\n }\n\n\n }", "title": "" }, { "docid": "fb439c0799b930dad3428ed5f95746dd", "score": "0.57239467", "text": "function orderdetail_post() {\n\t\t\n\t\tif($this->post('custno')){\n\n\t\t\t$custno = $this->post('custno');\n\t\t\t$orders_object = Orders::ordersService();\n\n\t\t\ttry{\n\t\t\t\t$orderdetail = $orders_object->insertNewOrder(LICENCE, $custno);\n\t\t\t}\n\t\t\tcatch(SoapFault $soapFault){\n\t\t\t\tvar_dump($soapFault);\n \t\techo \"Request :<br>\", htmlentities($orders_object->__getLastRequest()), \"<br>\";\n \t\techo \"Response :<br>\", htmlentities($orders_object->__getLastResponse()), \"<br>\";\n\t\t\t}\n\n\t\t\tif(isset($orderdetail)){\n \t\t$this->response($orderdetail, 201);\n \t\t}\n \t\telse{\n \t\t\t$this->response(array('success' => false, 'error' => 'No data found!'), 404);\n \t\t}\n\t\t}\n\t\telse{\n\t\t\t$this->response(array('success'=>false, 'error'=>'Order custno is missing/invalid'), 400);\n\t\t}\n\t}", "title": "" }, { "docid": "56c9762a08dce27a8da6012c6d4a3109", "score": "0.5722898", "text": "public function submit(SaveOrder $request){\n // init vars that need to be calculated\n $array = $this->calculateRateClient($request->all());\n $orderid = $this->generateId();\n\n $order = new Order;\n // system vars\n //$order->ip = Request::server('ip');\n $order->domain = request()->getHost();\n $order->orderid = $orderid;\n $order->batchid = session('batchid');\n $order->ts_ordered = Carbon\\Carbon::now()->toDateTimeString();\n $order->session_id = session()->getId();\n $order->status = 'UNPAID';\n $order->sw_status = 'NEW';\n // order specs\n $order->academiclevel = $request->input('academiclevel');\n $order->pages = $request->input('pages');\n $order->style = $request->input('style');\n $order->sources = $request->input('sources');\n $order->type = $request->input('type');\n $order->subject_id = $request->input('subject');\n $order->title = $request->input('title');\n $order->details = $request->input('details');\n // financial data\n $order->total = $array['total'];\n // save order\n $order->save();\n\n $this->updateBatch(session('batchid'));\n\n }", "title": "" }, { "docid": "40214bf923d8b306d5fbbf7dc55a7068", "score": "0.5698461", "text": "private function _createOrder($postData) {\n\t\t$this->_http->resetHelper();\n\t\t$this->_http->addHeader(\"Content-Type: application/json\");\n\t\t$this->_http->addHeader(\"Authorization: Bearer \" . $this->_token);\n\t\t$this->_http->setUrl($this->_createApiUrl(\"checkout/orders\"));\n\t\t$this->_http->setBody($postData);\n\t\treturn $this->_http->sendRequest(); \n\t}", "title": "" }, { "docid": "c93f1009ae808b4a254a5429cd275f9c", "score": "0.56964165", "text": "function placeShipmentOrder() {\r\n /**\r\n * First a mapper is initialized for order and shipment to be able to use the methods of these mappers\r\n * to create an object of type Order and Shipment and to insert these objects in the database.\r\n */\r\n $orderMapper = new \\gb\\mapper\\OrderMapper();\r\n $shipmentMapper = new \\gb\\mapper\\ShipmentMapper();\r\n /**\r\n * $newOrder and $newShipment are the two objects where the information filled in by the user will be stored.\r\n * This will be accomplished by the function doCreateObject who will create an object with the given values and will return it.\r\n */\r\n $newOrder = $orderMapper->doCreateObject($this->getOrderValues());\r\n $newShipment = $shipmentMapper->doCreateObject($this->getShipmentValues());\r\n /**\r\n * $newOrder and $newShipment will be inserted in the database using the method doInsert. This method will execute an insert\r\n * statement in order to insert the data stored in the objects in the db.\r\n */\r\n $orderMapper->doInsert($newOrder);\r\n $shipmentMapper->doInsert($newShipment);\r\n $this->inserted = true;\r\n echo \"the order has been placed.\";\r\n }", "title": "" }, { "docid": "4aaf0bde4c4e42ffec7e06ae25df8156", "score": "0.5677249", "text": "public function testOrder()\n {\n $response = $this->withHeaders([\n 'Accept' => 'application/json',\n ])->json('POST', '/api/orders', [\n 'restaurant_name' => 'Burger King',\n 'delivery_time' => 30,\n 'phone_number' => '345345345345'\n ]);\n\n $response\n ->assertStatus(201)\n ->assertJson([\n 'status' => 200,\n 'msg' => 'Success'\n ]);\n }", "title": "" }, { "docid": "d982a63a514d51266157ee29e24509fd", "score": "0.5668798", "text": "public function create()\n {\n\t\t$orders = array();\n foreach (Order::all() as $order) {\n $orders[$order->id] = $order->id;\n }\n\t\t\n\t\t$stockLineIds = array();\n foreach (OrderLine::all() as $stockLineId) {\n $stockLineIds[$stockLineId->line_id] = $stockLineId->line_id;\n }\n\n\t\t$orderLineSkus = array();\n\t\tforeach (OrderLine::all() as $orderLineSku) {\n $orderLineSkus[$orderLineSku->sku] = $orderLineSku->sku;\n }\n\t\t\n return view('placeorder.place_order-create')\n\t\t\t\t\t->with('stockLineIds', $stockLineIds)\n\t\t\t\t ->with('orderLineSkus', $orderLineSkus)\n\t\t\t\t\t->with('orders', $orders);\n }", "title": "" }, { "docid": "315b61bfb4873c6d66e5a4ccd7501fec", "score": "0.56623894", "text": "public function make()\n {\n $order = (new Entities\\Order)\n ->setCustomer(\n (new Entities\\Person)->setIdentifiers(collect([\n 'ap21_id' => 1122\n ]))\n );\n\n $order->getContacts()->push(\n (new Entities\\Contact)\n ->setType('email')\n ->setValue('foo@bar.com.au')\n );\n\n $order->getAddresses()->push(\n (new Entities\\Address)\n ->setType('billing')\n ->setLine1('Adelaide')\n ->setCity('ADELAIDE')\n ->setState('SA')\n ->setPostcode('5000')\n ->setCountry('AU')\n );\n\n $order->getAddresses()->push(\n (new Entities\\Address)\n ->setType('delivery')\n ->setLine1('Adelaide')\n ->setCity('ADELAIDE')\n ->setState('SA')\n ->setPostcode('5000')\n ->setCountry('AU')\n );\n\n $order->getPayments()->push(\n (new Entities\\Payment)\n ->setAttributes(collect([\n 'card_type' => 'CC',\n ]))\n ->setType('CreditCard')\n ->setAmount(10000)\n );\n\n $order->getLineItems()->push(\n (new Entities\\LineItem)\n ->setQuantity(1)\n ->setTotal(10000)\n ->setSellable(\n (new Entities\\Variant)\n ->setIdentifiers(collect([\n 'ap21_sku_id' => 177464\n ]))\n ->setPrice(10000)\n )\n ->setGiftCard(\n collect([\n 'VoucherType' => 'EmailVoucher',\n 'EmailSubject' => 'Decjuba GV Test Voucher 01',\n 'Email' => 'foo@bar.com.au',\n 'PersonalisedMessage' => 'Decjuba GV Test Voucher for Capcom Team',\n 'RecieverName' => 'Arkade Capcom team'\n ])\n )\n );\n\n return $order;\n }", "title": "" }, { "docid": "bad9873acf90862d2c230dd7f513c865", "score": "0.56425", "text": "public function createPaymentRequest($order)\n {\n $obj = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n \t$orderId = $order->getIncrementId();\n \t$merchantcode = $obj->get('Magento\\Framework\\App\\Config\\ScopeConfigInterface')->getValue('payment/duitku_jeniuspayepay/merchantnumber');\n \t$apikey = $obj->get('Magento\\Framework\\App\\Config\\ScopeConfigInterface')->getValue('payment/duitku_jeniuspayepay/api_key');\n $amount = round($order->getBaseTotalDue());\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance(); \n $FormKey = $objectManager->get('Magento\\Framework\\Data\\Form\\FormKey');\n $callbackUrl = $this->_urlBuilder->getUrl('duitku/epayjeniuspay/callback?isAjax=true&form_key='.$FormKey->getFormKey());\n $returnUrl = $this->_urlBuilder->getUrl('duitku/epayjeniuspay/accept');\n $merchantUserInfo = $order->getCustomerFirstname() . \" \" . $order->getCustomerLastname();\n $email = $order->getCustomerEmail();\n\t\t\n\t//ItemDetails\n\t$itemsData = $order->getAllItems();\n\t$shippingAmountData = $order->getShippingAmount();\n\t$shippingTaxAmountData = $order->getShippingTaxAmount();\n\t$taxAmountData = $order->getTaxAmount();\n\t$DiscountAmount = $order->getDiscountAmount();\n\t\n\t\t$itemDetailParams = array();\n\t\tforeach ($itemsData as $value) {\n\t\t\t\n\t\t $ItemPrice = (int)$value->getPrice() * (int)$value->getQtyOrdered();\n\t\t \n\t\t $item = array(\n\t\t\t'name' => $this->repString($this->getName($value->getName())),\n\t\t\t'price' => (int)$ItemPrice,\n\t\t\t'quantity' => (int)$value->getQtyOrdered(),\n\t\t );\n\t\t $itemDetailParams[] = $item;\n\t\t}\n\n\t\tif ($shippingAmountData > 0) {\n\t\t $shippingItem = array(\n\t\t\t'name' => 'Shipping Amount',\n\t\t\t'price' => (int)$shippingAmountData,\n\t\t\t'quantity' => 1\n\t\t );\n\t\t $itemDetailParams[] = $shippingItem;\n\t\t}\n\n\t\tif ($shippingTaxAmountData > 0) {\n\t\t $shippingTaxItem = array(\n\t\t\t'name' => 'Shipping Tax',\n\t\t\t'price' => (int)$shippingTaxAmountData,\n\t\t\t'quantity' => 1\n\t\t );\n\t\t $itemDetailParams[] = $shippingTaxItem;\n\t\t}\n\n\t\tif ($taxAmountData > 0) {\n\t\t $taxItem = array(\n\t\t\t'name' => 'Tax',\n\t\t\t'price' => (int)$taxAmountData,\n\t\t\t'quantity' => 1\n\t\t );\n\t\t $itemDetailParams[] = $taxItem;\n\t\t}\n\n\t\tif ($DiscountAmount != 0) {\n\t\t $couponItem = array(\n\t\t\t 'id' => 'DISCOUNT',\n\t\t\t 'price' => (int)$DiscountAmount,\n\t\t\t 'quantity' => 1,\n\t\t\t 'name' => 'DISCOUNT'\n\t\t\t);\n\t\t $itemDetailParams[] = $couponItem;\n\t\t}\n\t\t\n\t\t$paymentAmount = 0;\n\t\tforeach ($itemDetailParams as $item) {\n\t\t $paymentAmount += $item['price'];\n\t\t}\n\t\n\t\t$billing_address = array(\n\t\t 'firstName' => $order->getCustomerFirstname(),\n\t\t 'lastName' => $order->getCustomerLastname(),\n\t\t 'address' => $order->getBillingAddress()->getStreet()[0],\n\t\t 'city' => $order->getBillingAddress()->getCity(),\n\t\t 'postalCode' => $order->getBillingAddress()->getPostcode(),\n\t\t 'phone' => $order->getBillingAddress()->getTelephone(),\n\t\t 'countryCode' => $order->getBillingAddress()->getCountryId(),\n\t\t);\n\t\t\n\t\t$customerDetails = array(\n\t\t\t'firstName' => $order->getCustomerFirstname(),\n\t\t\t'lastName' => $order->getCustomerLastname(),\n\t\t\t'email' => $email,\n\t\t\t'phoneNumber' => $order->getBillingAddress()->getTelephone(),\n\t\t\t'billingAddress' => $billing_address,\n\t\t\t'shippingAddress' => $billing_address\n\t\t);\n\t\t\t\t\n\t\t$signature = hash(\"sha256\",$merchantcode.$orderId.$paymentAmount.$apikey);\n\t\t\n\t\t$params = array(\n 'merchantCode' => $merchantcode,\n 'paymentAmount' => $paymentAmount,\n 'paymentMethod' => 'JP',\n\t\t\t 'merchantOrderId' =>$orderId,\n 'productDetails' => 'Order : '.$orderId,\n 'additionalParam' => '',\n 'merchantUserInfo' => $merchantUserInfo,\n\t\t\t 'customerVaName' => $merchantUserInfo,\n\t\t\t 'email' => $email,\n\t\t\t 'phoneNumber' => $order->getBillingAddress()->getTelephone(),\t\t \n 'callbackUrl' => $callbackUrl,\n\t\t\t 'expiryPeriod' => 1440,\n 'returnUrl' => $returnUrl,\n 'signature' => $signature,\n\t\t\t 'customerDetail' => $customerDetails,\n\t\t\t 'itemDetails' => $itemDetailParams,\n 'hashAlgorithm' => 'sha256'\n );\n\t\t \n return $params;\n }", "title": "" }, { "docid": "c5f16b8b906bf75e5432f45cfffb28f7", "score": "0.5642346", "text": "function createNewOrder(Store $s, Order $order)\n {\n $arr = json_encode(array(\n 'customer_id' => $order->getCustomerId(), \n 'billing_address' => $order->getBillingAddress(), \n 'products' => json_decode($order->getProducts())\n ));\n \n $curl_url = $s->getApiPath() . \"v2/orders\";\n $newOrder = CurlHandler::POST($curl_url, $s->getAccessToken(), $arr);\n return $newOrder;\n }", "title": "" }, { "docid": "aa8cdb121d542c316d3a795960d812f3", "score": "0.563234", "text": "#[CustomOpenApi\\Operation(id: 'customerCreateWithAddress', tags: [Tags::Customer, Tags::V1])]\n #[OpenApi\\Parameters(factory: DefaultHeaderParameters::class)]\n #[OpenApi\\Response(factory: GetFrontEndFormResponse::class, statusCode: 200)]\n public function createWithAddress(): JsonResponse\n {\n return CreateCustomerWithAddressRequest::frontEndRuleResponse();\n }", "title": "" }, { "docid": "19eba7009324ce88f99a315d3900d2f5", "score": "0.5627769", "text": "function createOrder()\n {\n // Make order\n $productCollectionID = $this->attribute( 'productcollection_id' );\n\n $user = eZUser::currentUser();\n $userID = $user->attribute( 'contentobject_id' );\n\n $time = time();\n $order = new eZOrder( array( 'productcollection_id' => $productCollectionID,\n 'user_id' => $userID,\n 'is_temporary' => 1,\n 'created' => $time,\n 'status_id' => eZOrderStatus::PENDING,\n 'status_modified' => $time,\n 'status_modifier_id' => $userID\n ) );\n\n $db = eZDB::instance();\n $db->begin();\n $order->store();\n\n $orderID = $order->attribute( 'id' );\n $this->setAttribute( 'order_id', $orderID );\n $this->store();\n $db->commit();\n\n return $order;\n }", "title": "" }, { "docid": "8706bad4e15b557f3750e0980172140b", "score": "0.5624094", "text": "public function place()\n {\n Mage::dispatchEvent('sales_order_payment_place_start', array('payment' => $this));\n $order = $this->getOrder();\n\n $this->setAmountOrdered($order->getTotalDue());\n $this->setBaseAmountOrdered($order->getBaseTotalDue());\n $this->setShippingAmount($order->getShippingAmount());\n $this->setBaseShippingAmount($order->getBaseShippingAmount());\n\n $methodInstance = $this->getMethodInstance();\n $methodInstance->setStore($order->getStoreId());\n $orderState = Mage_Sales_Model_Order::STATE_NEW;\n $stateObject = new Varien_Object();\n\n /**\n * Do order payment validation on payment method level\n */\n $methodInstance->validate();\n $action = $methodInstance->getConfigPaymentAction();\n if ($action) {\n if ($methodInstance->isInitializeNeeded()) {\n /**\n * For method initialization we have to use original config value for payment action\n */\n $methodInstance->initialize($methodInstance->getConfigData('payment_action'), $stateObject);\n } else {\n $orderState = Mage_Sales_Model_Order::STATE_PROCESSING;\n switch ($action) {\n case Mage_Payment_Model_Method_Abstract::ACTION_ORDER:\n $this->_order($order->getBaseTotalDue());\n break;\n case Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE:\n $this->_authorize(true, $order->getBaseTotalDue()); // base amount will be set inside\n $this->setAmountAuthorized($order->getTotalDue());\n break;\n case Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE_CAPTURE:\n $this->setAmountAuthorized($order->getTotalDue());\n $this->setBaseAmountAuthorized($order->getBaseTotalDue());\n $this->capture(null);\n break;\n default:\n break;\n }\n }\n }\n\n $this->_createBillingAgreement();\n\n $orderIsNotified = null;\n if ($stateObject->getState() && $stateObject->getStatus()) {\n $orderState = $stateObject->getState();\n $orderStatus = $stateObject->getStatus();\n $orderIsNotified = $stateObject->getIsNotified();\n } else {\n $orderStatus = $methodInstance->getConfigData('order_status');\n if (!$orderStatus) {\n $orderStatus = $order->getConfig()->getStateDefaultStatus($orderState);\n } else {\n // check if $orderStatus has assigned a state\n $states = $order->getConfig()->getStatusStates($orderStatus);\n if (count($states) == 0) {\n $orderStatus = $order->getConfig()->getStateDefaultStatus($orderState);\n }\n }\n }\n $isCustomerNotified = (null !== $orderIsNotified) ? $orderIsNotified : $order->getCustomerNoteNotify();\n $message = $order->getCustomerNote();\n\n // add message if order was put into review during authorization or capture\n if ($order->getState() == Mage_Sales_Model_Order::STATE_PAYMENT_REVIEW) {\n if ($message) {\n $order->addStatusToHistory($order->getStatus(), $message, $isCustomerNotified);\n }\n } elseif ($order->getState() && ($orderStatus !== $order->getStatus() || $message)) {\n // add message to history if order state already declared\n $order->setState($orderState, $orderStatus, $message, $isCustomerNotified);\n } elseif (($order->getState() != $orderState) || ($order->getStatus() != $orderStatus) || $message) {\n // set order state\n $order->setState($orderState, $orderStatus, $message, $isCustomerNotified);\n }\n\n Mage::dispatchEvent('sales_order_payment_place_end', array('payment' => $this));\n\n return $this;\n }", "title": "" }, { "docid": "457934571c231c31daa27cb57ea0e2b2", "score": "0.562281", "text": "public function actionOrdercreate()\n {\n die('actionOrdercreate');\n //http://localhost/integration/walmart/walmart-webhook/ordercreate\n }", "title": "" }, { "docid": "4f0f8177117752079bc7f2e0cb07aa6c", "score": "0.5614323", "text": "protected function orderCreate($order, $options)\n {\n if (!isset($order['create'])) {\n return false;\n }\n\n if (is_array($this->order_methods)\n && $this->order_methods\n && isset($order['orderMethod'])\n && !in_array($order['orderMethod'], $this->order_methods)\n ) {\n return false;\n }\n\n $args = array(\n 'status' => isset($options[$order['status']])\n ? $options[$order['status']]\n : 'processing',\n 'customer_id' => isset($order['customer']['externalId'])\n ? $order['customer']['externalId']\n : null\n );\n\n $wc_order = wc_create_order($args);\n\n $address_shipping = array(\n 'first_name' => isset($order['firstName']) ? $order['firstName'] : '',\n 'last_name' => isset($order['lastName']) ? $order['lastName'] : '',\n 'company' => '',\n 'address_1' => isset($order['delivery']['address']['text']) ? $order['delivery']['address']['text'] : '',\n 'address_2' => '',\n 'city' => isset($order['delivery']['address']['city']) ? $order['delivery']['address']['city'] : '',\n 'state' => isset($order['delivery']['address']['region']) ? $order['delivery']['address']['region'] : '',\n 'postcode' => isset($order['delivery']['address']['index']) ? $order['delivery']['address']['index'] : '',\n 'country' => isset($order['delivery']['address']['countryIso']) ? $order['delivery']['address']['countryIso'] : ''\n );\n\n $address_billing = array(\n 'first_name' => $order['customer']['firstName'],\n 'last_name' => isset($order['customer']['lastName']) ? $order['customer']['lastName'] : '',\n 'company' => '',\n 'email' => isset($order['customer']['email']) ? $order['customer']['email'] : '',\n 'phone' => isset($order['customer']['phones'][0]['number']) ? $order['customer']['phones'][0]['number'] : '',\n 'address_1' => isset($order['customer']['address']['text']) ? $order['customer']['address']['text'] : '',\n 'address_2' => '',\n 'city' => isset($order['customer']['address']['city']) ? $order['customer']['address']['city'] : '',\n 'state' => isset($order['customer']['address']['region']) ? $order['customer']['address']['region'] : '',\n 'postcode' => isset($order['customer']['address']['index']) ? $order['customer']['address']['index'] : '',\n 'country' => $order['customer']['address']['countryIso']\n );\n\n if ($this->retailcrm_settings['api_version'] == 'v5') {\n if (isset($order['payments']) && $order['payments']) {\n $payment = WC_Payment_Gateways::instance();\n\n if (count($order['payments']) == 1) {\n $payment_types = $payment->payment_gateways();\n $payments = $order['payments'];\n $paymentType = end($payments);\n if (isset($options[$paymentType['type']]) && isset($payment_types[$options[$paymentType['type']]])) {\n $wc_order->set_payment_method($payment_types[$options[$paymentType['type']]]);\n }\n }\n }\n } else {\n if (isset($order['paymentType']) && $order['paymentType']) {\n $payment = WC_Payment_Gateways::instance();\n $payment_types = $payment->payment_gateways();\n\n if (isset($options[$order['paymentType']]) && isset($payment_types[$options[$order['paymentType']]])) {\n $wc_order->set_payment_method($payment_types[$options[$order['paymentType']]]);\n }\n }\n }\n\n $wc_order->set_address($address_billing, 'billing');\n $wc_order->set_address($address_shipping, 'shipping');\n $product_data = isset($order['items']) ? $order['items'] : array();\n\n if ($product_data) {\n foreach ($product_data as $key => $product) {\n $item = retailcrm_get_wc_product($product['offer'][$this->bind_field], $this->retailcrm_settings);\n if (!$item) {\n $logger = new WC_Logger();\n $logger->add('retailcrm', 'Product not found by ' . $this->bind_field);\n continue;\n }\n\n if ($product['discountTotal'] > 0) {\n $item->set_price($product['initialPrice'] - $product['discountTotal']);\n }\n\n foreach ($wc_order->get_items() as $order_item_id => $order_item) {\n $arItemsOld[$order_item_id] = $order_item_id;\n }\n\n $wc_order->add_product(\n $item,\n $product['quantity']\n );\n\n foreach ($wc_order->get_items() as $order_item_id => $order_item) {\n $arItemsNew[$order_item_id] = $order_item_id;\n }\n\n if (!empty($arItemsOld)) {\n $diff = array_diff($arItemsNew, $arItemsOld);\n $result = end($diff);\n } else {\n $result = end($arItemsNew);\n }\n\n $order['items'][$key]['woocomerceId'] = $result;\n\n }\n }\n\n if (array_key_exists('delivery', $order)) {\n $deliveryCode = isset($order['delivery']['code']) ? $order['delivery']['code'] : false;\n\n if ($deliveryCode && isset($options[$deliveryCode])) {\n $shipping = new WC_Order_Item_Shipping();\n $shipping_methods = get_wc_shipping_methods();\n $shipping->set_method_title($shipping_methods[$options[$deliveryCode]]['name']);\n $shipping->set_method_id($options[$deliveryCode]);\n\n if (isset($order['delivery']['service']['code'])) {\n $service = retailcrm_get_delivery_service(\n $shipping->get_method_id(),\n $order['delivery']['service']['code']\n );\n\n if ($service) {\n $shipping->set_instance_id($order['delivery']['service']['code']);\n }\n }\n\n if (!wc_tax_enabled()) {\n $shipping->set_total($order['delivery']['cost']);\n } else {\n $shipping->set_total($order['delivery']['netCost']);\n }\n\n $shipping->set_order_id($wc_order->get_id());\n\n $shipping->save();\n $wc_order->add_item($shipping);\n }\n }\n\n $ids[] = array(\n 'id' => (int) $order['id'],\n 'externalId' => (int) $wc_order->get_id()\n );\n\n $wc_order->save();\n\n $this->retailcrm->ordersFixExternalIds($ids);\n\n $this->editOrder($this->retailcrm_settings, $wc_order, $order);\n\n return $wc_order->get_id();\n }", "title": "" }, { "docid": "0c232d9edeefa4189441370e09aeb4f6", "score": "0.5613762", "text": "function tbx_order(Request $request, Response $response)\n{\n\t$res = array( 'message_code' => 999, 'message_text' => 'Functional part is commented.' );\n\n\t$db = database();\n\t$body = $request->getParsedBody();\n\t$orderby = $body['OrderBy'];\n\t$companyid = $body['CompanyId'];\n\t$ownerid = $body['OwnerId']; //order placed by owner and employee then get orderid\n\t$employeeid= $body['EmployeeId'];\n\t$pickrunnerid= $body['PickRunnerId'];\n\t$orderdate = date('Y-m-d H:i:s');\n\t$CreatedBy= $body['CreatedBy']; //roleid here\n\t\n\t\n\t$result = 'INSERT INTO `tbl_order`(OrderBy,CompanyId,OwnerId,EmployeeId,PickRunnerId,OrderDate,CreatedBy) VALUES(\"'.$orderby.'\",\"'.$companyid.'\",\"'.$ownerid.'\",\"'.$employeeid.'\",\"'.$pickrunnerid.'\",\"'.$orderdate.'\", \"'.$CreatedBy.'\")';\n\n\t$base_query = $db->query($result);\n\tif(!$base_query )\n\t{\n\t\t$res = array( 'message_code' => 999, 'message_text' => 'Order failed please try again.');\n\t}\n\telse\n\t{\t\t\n\t\t$res = array( 'message_code' => 1000,'message_text' => 'Order Placed Successfully.', 'data_text'=>$base_query);\n\t}\n\treturn $response->withJson( $res, 200 );\n}", "title": "" }, { "docid": "cc1cb555f7d0a845c792fa95bcd5f42d", "score": "0.5613007", "text": "public static function create(array $orderData)\n {\n $apiPath = Client::getInstance()->getApiPath(self::$apiPath);\n $result = Client::getInstance()->post($apiPath . '/order', $orderData);\n\n return new ApiObjectResult($result);\n }", "title": "" }, { "docid": "dac77fb7e566bea12e5768421f37db8a", "score": "0.5593247", "text": "private function createOrder()\n {\n $user_id = $_SESSION['id'];\n $cart = $this->model(\"CartModel\");\n\n return $cart->completeOrder($user_id);\n }", "title": "" }, { "docid": "5aba4d2f9c47f0d97d9085b3f551eb23", "score": "0.5592316", "text": "public function placeOrder(array &$orderModel, array $cartModel, array $orderData);", "title": "" }, { "docid": "445affc65b978fad1c43b851241419a8", "score": "0.55872303", "text": "public static function add_order($params = array())\n\t{\n\t\t$params['action'] = 'addorder';\n\t\treturn self::send_request($params);\n\t}", "title": "" }, { "docid": "d4f0a0443b441729844e6d35ce2611c3", "score": "0.5582968", "text": "public function create(Request $request)\n {\n request()->validate([\n 'customer_name' => 'required',\n 'customer_address' => 'required',\n 'customer_email' => 'required|email',\n 'customer_mobile' => 'required'\n ]);\n\n\n try {\n $reference = 'TEST_' . time();\n $requestPay = setJsonRequest(\n request('customer_name'),\n request('customer_email'),\n request('customer_address'),\n request('customer_mobile'),\n $reference\n );\n $response = $this->placetopay->request($requestPay);\n\n if ($response->isSuccessful()) {\n $order = Orders::create(\n array_merge(\n $request->all(),\n [\n 'status' => 'CREATED',\n 'request_id' => $response->requestId,\n 'process_url' => $response->processUrl,\n 'total' => 50000,\n 'reference' => $reference\n ]\n )\n );\n return view('resumen', compact('order'));\n } else {\n }\n } catch (\\Exception $e) {\n var_dump($e->getMessage());\n }\n }", "title": "" }, { "docid": "fae2651eb4ee8a2e15a00beb9eecefe3", "score": "0.55768865", "text": "public function createPlace();", "title": "" }, { "docid": "25d9409e61be37611b5f9c9d138a974f", "score": "0.55753344", "text": "public function order_motorzone() {\n $this->initializePost();\n\n //Me logue en el soap de sap\n $this->_login('VARROC');\n $id = $this->_sessionId;\n $order = $this->request->getJsonRawBody();\n\n $order->trasportadora = $order->trasportadora ?? \"No se ingreso\";\n $order->nit_cliente = $order->nit_cliente ?? \"No se ingreso\";\n $order->asesor = $order->asesor ?? \"No se ingreso\";\n $order->asesor_id = $order->asesor_id ?? \"No se ingreso\";\n $order->user_email = $order->user_email ?? \"No se ingreso\";\n $order->total = $order->total ?? \"No se ingreso\";\n $order->descuento = $order->descuento ?? 0;\n $order->bodega = $order->bodega ?? '01';\n $order->tipo_usuario = $order->tipo_usuario ?? '';\n\n if (!isset($order->id)) {\n $this->buildErrorResponse(400, 'common.INCOMPLETE_DATA_RECEIVED');\n }elseif( count($order->productos) < 1 ){\n $this->buildErrorResponse(400, 'common.INCOMPLETE_DATA_INSERT_AT_LEAST_ONE_PRODUCT');\n }\n\n // Guardo un log de la orden\n $this->_saveOrderLogMotorzone($order);\n\n try {\n /**\n * busque en la bd si la orden ya se creo para el asesor indicado\n * si la orden ya existe entonces cancelo la operacion\n */\n $prevOrders = Orders::count(\n [\n 'asesor = :asesor: AND order_app_id = :order:',\n 'bind' => [\n 'asesor' => $order->asesor,\n 'order' => $order->id\n ]\n ]\n );\n } catch (Throwable $exc) {\n $this->buildErrorResponse( 400, 'common.ERROR_SEARCH_DUPLICATED_ORDERS', [\"error\" => $exc->getTraceAsString()] );\n $this->_log->error('common.ERROR_SEARCH_DUPLICATED_ORDERS: '. json_encode($this->utf8ize([\"error\" => $exc->getTraceAsString()])) );\n }\n\n if ( $prevOrders > 0 ) {\n $this->buildErrorResponse(400, 'common.ORDER_DUPLICATED');\n }\n\n /**\n * El metodo \"Add\" del webservice pide unos headers entonces los agrego\n */\n $paramsH = [\n 'SessionID' => $id,\n 'ServiceName' => 'OrdersService'\n ];\n $this->_ordersService->setHeaders(['MsgHeader' => $paramsH]);\n\n /**\n * Con un reduce meto todos los productos de al array en un texto con el formato que pide el\n * webservice\n * @var array\n */\n $products = array_reduce($order->productos, function($carry, $item){\n $item->bodega = $item->bodega ?? \"\";\n $bodega = $item->bodega ? \"<WarehouseCode>{$item->bodega}</WarehouseCode>\" : \"\";\n $carry .= '<DocumentLine>'\n . \"<ItemCode>{$item->referencia}</ItemCode>\"\n . \"<Quantity>{$item->cantidad}</Quantity>\"\n . \"<DiscountPercent>{$item->descuento}</DiscountPercent>\"\n . $bodega\n . '</DocumentLine>';\n return $carry;\n }, '');\n\n $error = $this->_ordersService->getError();\n if(!$error){\n /**\n * Armo la estructura xml que le voy a enviar al metodo Add del webservice\n */\n try {\n $soapRes = $this->_ordersService->call('Add', ''\n . '<Add>'\n . '<Document>'\n . '<Confirmed>N</Confirmed>'\n . \"<CardCode>{$order->nit_cliente}</CardCode>\"\n . \"<U_TRANSP>{$order->trasportadora}</U_TRANSP>\"\n . \"<Comments>{$order->comentarios}</Comments>\"\n . \"<DocDueDate>{$order->fecha_creacion}</DocDueDate>\"\n . \"<NumAtCard>{$order->id}</NumAtCard>\"\n . \"<U_idLineLeg>{$order->bodega}</U_idLineLeg>\"\n . \"<DiscountPercent>{$order->descuento}</DiscountPercent>\"\n . \"<U_OBSERVACION>{$order->tipo_usuario}</U_OBSERVACION>\"\n . '<DocumentLines>'\n . $products\n . '</DocumentLines>'\n . '</Document>'\n . '</Add>'\n );\n /**\n * Me trae la peticion en xml crudo de lo que se envio por soap al sap\n * algo asi como soap envelope bla, bla\n */\n $this->_log->info('Request orden es: '.$this->_ordersService->request);\n /**\n * Lo mismo que el anterior, pero en vez de traer la peticion, trae la respuesta\n */\n $this->_log->info('Response orden es: '.$this->_ordersService->response);\n /**\n * Me devuelve el string con todo el debug de todos los procesos que ha hecho nusoap\n * para activarlo hay q setear el nivel de debug a mas de 0 ejemplo: \"$this->ordersService->setDebugLevel(9);\"\n */\n $this->_log->info('Debug orden es: '.$this->_ordersService->debug_str);\n // Verifico que no haya ningun error, tambien reviso si existe exactamente la ruta del array que especifico\n // si esa rut ano existe significa que algo raro paso muy posiblemente un error\n $error .= $this->_ordersService->getError();\n //Cierro la sesion en sap ya que no es necsario tenerla abierta\n $this->_logout();\n } catch (Throwable $exc) {\n $error .= $exc->getTraceAsString();\n }\n\n\n if($error || !isset($soapRes['DocumentParams']['DocEntry'])){\n $this->_log->error('Error al hacer el pedido SAP: '. json_encode($error) );\n $this->_log->error(\"respuesta del error pedido a SAP: \". json_encode($this->utf8ize($soapRes)) );\n $this->buildErrorResponse( 400, 'common.SAP_ERROR_ORDER', [\"error\" => $error, \"soap_res\" => $this->utf8ize($soapRes)] );\n }\n // Start a transaction\n $this->db->begin();\n try {\n $newOrder = new Orders();\n $newOrder->asesor = $order->asesor;\n $newOrder->asesor_id = $order->asesor_id;\n $newOrder->order_app_id = $order->id;\n $newOrder->productos = json_encode($order->productos);\n $newOrder->cliente = $order->nit_cliente;\n $newOrder->observaciones = $order->comentarios;\n\n if ($newOrder->save()) {\n // Commit the transaction\n $this->db->commit();\n\n $this->sendEmailLog($order);\n\n }else{\n $this->db->rollback();\n // Send errors\n $errors = array();\n foreach ($newOrder->getMessages() as $message) {\n $errors[] = $message->getMessage();\n }\n $this->buildErrorResponse(400, 'common.ORDER_COULD_NOT_BE_CREATED', $errors);\n $this->_log->error('common.ORDER_COULD_NOT_BE_CREATED: '. json_encode($this->utf8ize($soapRes)) );\n }\n\n } catch (Throwable $exc) {\n $this->db->rollback();\n $this->buildErrorResponse( 400, 'common.ERROR_ORDERS_MYSQLBD', [\"error\" => $exc->getTraceAsString()] );\n $this->_log->error('common.ERROR_ORDERS_MYSQLBD: '. json_encode($this->utf8ize([\"error\" => $exc->getTraceAsString()])) );\n }\n\n $this->_log->info(\"respuesta del pedido a SAP: \". json_encode($this->utf8ize($soapRes)) );\n $this->buildSuccessResponse(201, 'common.CREATED_SUCCESSFULLY', $this->utf8ize($soapRes));\n }else{\n $this->_logout();\n $this->_log->error('Error al procesar la orden SAP: '. json_encode($error) );\n $this->buildErrorResponse(400, 'common.SAP_ERROR_ORDER', $error);\n }\n }", "title": "" }, { "docid": "0eb71c50972f51dc7001bd393d8fd5fe", "score": "0.5567475", "text": "public function getMethod() {\n return 'CreateCustomerOrder';\n }", "title": "" }, { "docid": "179fb0cfbeca9487592c994ec6353373", "score": "0.55598736", "text": "public function createOrder(Order $order)\n\t{\n\t\treturn $this->exec(\"POST\", \"/orders\", $order);\n\t}", "title": "" }, { "docid": "5a0990076b8b999e06b02a09087a2034", "score": "0.5555889", "text": "public function create()\n {\n return $this->makeResponse(null, 'admin.places.create');\n }", "title": "" }, { "docid": "77462eefa920e5ac66896ad406d186a3", "score": "0.5553885", "text": "public function store(Request $request)\n {\n $order = Order::where('status', 'f')->find($request->order_id);\n if($order){\n $contract = new Contract();\n\n $contract->contract_no = $request->contract_no;\n $contract->order_id = $request->order_id;\n $contract->shipment_count = $request->shipment_count;\n $contract->term = $request->term;\n $contract->term_desc = $request->term_desc;\n $contract->date_from = $request->date_from;\n $contract->date_to = $request->date_to;\n $contract->status = 'a';\n\n $contract->save();\n\n return response()->json($contract, 200);\n }\n else return response()->json(['message'=>'not found'], 404);\n }", "title": "" }, { "docid": "dc6885057575bc83052596bf20eacd71", "score": "0.5553769", "text": "public function createOrder($attributes = array())\n {\n return $this->getCurlService()\n ->to( $this->crmBaseUrl .'/api/orders' )\n ->returnResponseObject()\n ->withData( $this->addCrmApiKey( $attributes ) )\n ->post();\n }", "title": "" }, { "docid": "054920f80c6a07808a1ae58fad9fdf2f", "score": "0.55518496", "text": "private function getPreparedOrderSummaryRequest(): ConsumerRequest\n {\n $request = new ConsumerRequest();\n $request\n ->setMethod('GET')\n ->setPath('/api/v1/customers/1/orders')\n ->addHeader('Content-Type', 'application/json');\n\n return $request;\n }", "title": "" }, { "docid": "ae6df1f7260cd5bada73bf9e4f22df20", "score": "0.55455106", "text": "public function order_v2() {\n\n // Verifies if is post request\n $this->initializePost();\n\n //Me logue en el soap de sap\n $this->_login('IGB');\n $id = $this->_sessionId;\n $order = $this->request->getJsonRawBody();\n\n $order->trasportadora = $order->trasportadora ?? \"No se ingreso\";\n $order->nit_cliente = $order->nit_cliente ?? \"No se ingreso\";\n $order->asesor = $order->asesor ?? \"No se ingreso\";\n $order->asesor_id = $order->asesor_id ?? \"No se ingreso\";\n $order->user_email = $order->user_email ?? \"No se ingreso\";\n\n if (!isset($order->id)) {\n $this->buildErrorResponse(400, 'common.INCOMPLETE_DATA_RECEIVED');\n }elseif( count($order->productos) < 1 ){\n $this->buildErrorResponse(400, 'common.INCOMPLETE_DATA_INSERT_AT_LEAST_ONE_PRODUCT');\n }\n\n // Guardo un log de la orden\n $this->saveOrderLog($order);\n\n try {\n /**\n * busque en la bd si la orden ya se creo para el asesor indicado\n * si la orden ya existe entonces cancelo la operacion\n */\n $prevOrders = Orders::count(\n [\n 'asesor = :asesor: AND order_app_id = :order:',\n 'bind' => [\n 'asesor' => $order->asesor,\n 'order' => $order->id\n ]\n ]\n );\n } catch (Throwable $exc) {\n $this->buildErrorResponse( 400, 'common.ERROR_SEARCH_DUPLICATED_ORDERS', [\"error\" => $exc->getTraceAsString()] );\n $this->_log->error('common.ERROR_SEARCH_DUPLICATED_ORDERS: '. json_encode($this->utf8ize([\"error\" => $exc->getTraceAsString()])) );\n }\n\n if ( $prevOrders > 0 ) {\n $this->buildErrorResponse(400, 'common.ORDER_DUPLICATED');\n }\n\n /**\n * El metodo \"Add\" del webservice pide unos headers entonces los agrego\n */\n $paramsH = [\n 'SessionID' => $id,\n 'ServiceName' => 'OrdersService'\n ];\n $this->_ordersService->setHeaders(['MsgHeader' => $paramsH]);\n\n /**\n * Con un reduce meto todos los productos de al array en un texto con el formato que pide el\n * webservice\n * @var array\n */\n $products = array_reduce($order->productos, function($carry, $item){\n $carry .= '<DocumentLine>'\n . \"<ItemCode>{$item->referencia}</ItemCode>\"\n . \"<Quantity>{$item->cantidad}</Quantity>\"\n . \"<DiscountPercent>{$item->descuento}</DiscountPercent>\"\n . '</DocumentLine>';\n return $carry;\n }, '');\n\n $error = $this->_ordersService->getError();\n if(!$error){\n /**\n * Armo la estructura xml que le voy a enviar al metodo Add del webservice\n */\n try {\n $soapRes = $this->_ordersService->call('Add', ''\n . '<Add>'\n . '<Document>'\n . '<Confirmed>N</Confirmed>'\n . \"<CardCode>{$order->nit_cliente}</CardCode>\"\n . \"<U_TRANSP>{$order->trasportadora}</U_TRANSP>\"\n . \"<Comments>{$order->comentarios}</Comments>\"\n . \"<DocDueDate>{$order->fecha_creacion}</DocDueDate>\"\n . \"<NumAtCard>{$order->id}</NumAtCard>\"\n . '<DocumentLines>'\n . $products\n . '</DocumentLines>'\n . '</Document>'\n . '</Add>'\n );\n /**\n * Me trae la peticion en xml crudo de lo que se envio por soap al sap\n * algo asi como soap envelope bla, bla\n */\n $this->_log->info('Request orden es: '.$this->_ordersService->request);\n /**\n * Lo mismo que el anterior, pero en vez de traer la peticion, trae la respuesta\n */\n $this->_log->info('Response orden es: '.$this->_ordersService->response);\n /**\n * Me devuelve el string con todo el debug de todos los procesos que ha hecho nusoap\n * para activarlo hay q setear el nivel de debug a mas de 0 ejemplo: \"$this->ordersService->setDebugLevel(9);\"\n */\n $this->_log->info('Debug orden es: '.$this->_ordersService->debug_str);\n // Verifico que no haya ningun error, tambien reviso si existe exactamente la ruta del array que especifico\n // si esa rut ano existe significa que algo raro paso muy posiblemente un error\n $error .= $this->_ordersService->getError();\n //Cierro la sesion en sap ya que no es necsario tenerla abierta\n $this->_logout();\n } catch (Throwable $exc) {\n $error .= $exc->getTraceAsString();\n }\n\n\n if($error || !isset($soapRes['DocumentParams']['DocEntry'])){\n $this->_log->error('Error al hacer el pedido SAP: '. json_encode($error) );\n $this->_log->error(\"respuesta del error pedido a SAP: \". json_encode($this->utf8ize($soapRes)) );\n $this->buildErrorResponse( 400, 'common.SAP_ERROR_ORDER', [\"error\" => $error, \"soap_res\" => $this->utf8ize($soapRes)] );\n }\n // Start a transaction\n $this->db->begin();\n try {\n $newOrder = new Orders();\n $newOrder->asesor = $order->asesor;\n $newOrder->asesor_id = $order->asesor_id;\n $newOrder->order_app_id = $order->id;\n $newOrder->productos = json_encode($order->productos);\n $newOrder->cliente = $order->nit_cliente;\n $newOrder->observaciones = $order->comentarios;\n\n if ($newOrder->save()) {\n // Commit the transaction\n $this->db->commit();\n\n //$this->sendEmailLog($order);\n\n }else{\n $this->db->rollback();\n // Send errors\n $errors = array();\n foreach ($newOrder->getMessages() as $message) {\n $errors[] = $message->getMessage();\n }\n $this->buildErrorResponse(400, 'common.ORDER_COULD_NOT_BE_CREATED', $errors);\n $this->_log->error('common.ORDER_COULD_NOT_BE_CREATED: '. json_encode($this->utf8ize($soapRes)) );\n }\n\n } catch (Throwable $exc) {\n $this->db->rollback();\n $this->buildErrorResponse( 400, 'common.ERROR_ORDERS_MYSQLBD', [\"error\" => $exc->getTraceAsString()] );\n $this->_log->error('common.ERROR_ORDERS_MYSQLBD: '. json_encode($this->utf8ize([\"error\" => $exc->getTraceAsString()])) );\n }\n\n $this->_log->info(\"respuesta del pedido a SAP: \". json_encode($this->utf8ize($soapRes)) );\n $this->buildSuccessResponse(201, 'common.CREATED_SUCCESSFULLY', $this->utf8ize($soapRes));\n }else{\n $this->_logout();\n $this->_log->error('Error al procesar la orden SAP: '. json_encode($error) );\n $this->buildErrorResponse(400, 'common.SAP_ERROR_ORDER', $error);\n }\n }", "title": "" }, { "docid": "fe02433c7f3a8a0bf1c02bfde5c8ba37", "score": "0.55440664", "text": "public function createOrder(Request $request)\n {\n $result = [];\n try {\n $this->wineOrderService->createOrder($request);\n $result['status'] = true;\n $result['msg'][] = [\n 'msgType' => 'info',\n 'msgText' => 'Order successfully created'\n ];\n\n // Updating orders html\n $result['ordersHtml'] = $this->render(\n 'main/_wine_orders.html.twig',\n [\n 'wineOrders' => $this->wineOrderService->getWineOrders()\n ]\n );\n } catch (\\Throwable $e) {\n $result['status'] = false;\n $result['msg'][] = [\n 'msgType' => 'warning',\n 'msgText' => \"Something went wrong creating the wine order. \" . $e->getMessage()\n ];\n }\n\n return $this->json([\n 'result' => $result\n ]);\n }", "title": "" }, { "docid": "36364b6a443b8a6d1fd04bbdbeace424", "score": "0.55431235", "text": "public function store(Request $request)\n {\n //create a new order\n $code=self::generateRandomString(3);\n $order= new Order();\n $order->order_number =($code);\n $order->save();\n if(isset($supplier)){\n try {\n $order_detail= (new Order_detail())->store($request);\n } catch (QueryException $exception) {\n return response()->json(\"Server Error \" . $exception->getMessage(), 500);\n }\n }\n\n return response()->json([\n 'message' => 'Successfully Placed New Order!'\n ], 200);\n }", "title": "" }, { "docid": "d990ad1f5a3c0813c978532832991001", "score": "0.5540098", "text": "public function store(Request $request)\n {\n $details = new OrderDetails();\n $details->tea_id = $request['tea_id'];\n $details->unit_price = $request['unit_price'];\n $details->quantity = $request['quantity'];\n $details->save();\n\n $detailsId = OrderDetails::orderBy('id', 'DESC')->pluck('id')->first();\n\n $order = new Order();\n $order->order_id = $detailsId;\n $order->user_id = $request['user_id'];\n $order->customer_id = $request['customer_id'];\n $order->payment = $request['payment'];\n $order->shipping = $request['shipping'];\n $order->save();\n \n return new OrderResource($order);\n }", "title": "" }, { "docid": "b58e22fdd611c6167046f17a7f1fab98", "score": "0.5536898", "text": "public function action_order() {\n\t\t$id = $this->request->param('id');\n\t\t\n\t\tif ($id != '') {\n\t\t\t$order = ORM::factory('order')\n\t\t\t\t->where('id', '=', $id)\n\t\t\t\t->find();\n\t\t\t\n\t\t\tif ($order->loaded()) {\n\t\t\t\techo json_encode(array('s1_client_name' => $order->s1_client_name,\n\t\t\t\t\t\t\t\t\t\t'tel' => $order->tel,\n\t\t\t\t\t\t\t\t\t\t'postal_code' => $order->postal_code));\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->auto_render = false; // Don't render template\n\t}", "title": "" }, { "docid": "f935992fcb4d9d41076486a2e6a138d0", "score": "0.55364287", "text": "public function store(Request $request){\n\n $string = $request['lonlat'];\n $arrayLocationsTo = explode(';',$string);\n $module = 'ABRAME';\n $LocationsFrom = DeliveryCostController::locationByModule($module);\n $LongitudeFrom = json_decode($LocationsFrom->original['longitude_from']);\n $LatitudeFrom = json_decode($LocationsFrom->original['latitude_from']);\n\n\n $v_order = new StoreOrderPost();\n $validator = $request->validate($v_order->rules());\n $cadena = Str::random(5);\n if ($validator) {\n $order = new Order();\n $order->code = $module . $cadena;\n $order->user_name = $request['user_name'];\n $order->user_phone = $request['user_phone'];\n $order->user_address = $request['user_address'];\n $order->pickup_time_from = $request['pickup_time_from'];\n $order->pickup_time_to = $request['pickup_time_to'];\n $order->message = $request['message'];\n $order->locality_id = $request['locality_id'];\n // $order->payment_type = $request['payment_type'];\n\n $order->delivery_time_to = $request['delivery_time_to'];\n $order->delivery_time_from = $request['delivery_time_from'];\n $order->state = 'nueva';\n // $order->payment_state = 'undone';\n $order->delivery_type = 'standard';\n $order->messenger_id = $request['messenger_id'];\n $order->user_id = $request['user_id'];\n\n $v_delivery = new StoreDeliveryCostPost();\n $validator = $request->validate($v_delivery->rules());\n if($validator){\n $delivery = new DeliveriesCost();\n $delivery->from_municipality_id = $request['from_municipality_id'];\n $delivery->to_municipality_id = $request['to_municipality_id'];\n $delivery->latitude_from = $LatitudeFrom;\n $delivery->longitude_from = $LongitudeFrom;\n $delivery->latitude_to = $arrayLocationsTo[1];\n $delivery->longitude_to = $arrayLocationsTo[0];\n $delivery->distance = $request['distance'];\n\n $transportationCost = DeliveryCostController::transportationCost($request);\n $costoTransportacion = json_decode($transportationCost->original['costoTransportacion']);\n $delivery->tranpostation_cost = $costoTransportacion;\n $delivery->save();\n }\n\n $order->delivery_cost_id = $delivery->id;\n $order->save();\n\n $Productos = UserProduct::select('user_products.*')\n ->where('user_id', $order->user_id)\n ->whereNull('deleted_at')\n ->get();\n\n foreach ($Productos as $producto) {\n\n $order_product = new OrderProduct();\n $order_product->product_id = $producto->product_id;\n $order_product->order_id = $order->id;\n $order_product->quantity = $producto->qty_unit;\n $order_product->total = $producto->total_price;\n $order_product->save();\n\n $this->deleteProductCart($producto->id);\n }\n\n //mandar un email al mensajero con los datos de la orden\n\n $productsOrder = DB::select('select products.`name`,order_products.quantity,order_products.total from order_products join products ON products.id = order_products.product_id where order_products.order_id = ?', [$order->id]);\n\n if($order->state = 'nueva'){\n\n $result = $this->sendEmail($order,$productsOrder);\n if(empty($result)){\n\n return $this->successResponse(['order' => $order, 'products' => $productsOrder,'costoTransportacion'=>$transportationCost,'message'=>'Order new is created successfully.']);\n }\n }\n\n return $this->successResponse(['order' => $order, 'products' => $productsOrder,'costoTransportacion'=>$transportationCost,'message'=>'Order new is created successfully.']);\n }\n\n return response()->json([\n 'message' => 'Error al validar'\n ], 201);\n\n }", "title": "" }, { "docid": "fcf63f604297801470415c93d4de8d47", "score": "0.5532406", "text": "public function getOrder(array $data = []): \\CityService\\ResponseInterface\n {\n }", "title": "" }, { "docid": "91ddda76257e5296b3ef8ff241cfc67a", "score": "0.55292195", "text": "public function makeOrder($quotInfo, $getInfo = false) {\r\n $this->quotInfo = $quotInfo;\r\n $this->getInfo = $getInfo;\r\n if(isset($quotInfo['reason']) && $quotInfo['reason']) {\r\n $quotInfo['envoi.raison'] = $this->shipReasons[$quotInfo['reason']];\r\n unset($quotInfo['reason']);\r\n }\r\n if(!isset($quotInfo['assurance.selected']) || $quotInfo['assurance.selected'] == '') {\r\n $quotInfo['assurance.selected'] = false;\r\n }\r\n $this->param = array_merge($this->param, $quotInfo);\r\n $this->setOptions(array('action' => '/api/v1/order'));\r\n $this->setPost();\r\n\t\t\r\n if($this->doSimpleRequest() && !$this->respError) {\r\n\t\t\t// The request is ok, we check the order reference\r\n\t\t\t$nodes = $this->xpath->query('/order/shipment');\r\n\t\t\t$reference = $nodes->item(0)->getElementsByTagName('reference')->item(0)->nodeValue;\r\n\t\t\tif(preg_match(\"/^[0-9a-zA-Z]{20}$/\", $reference)) {\r\n $this->order['ref'] = $reference;\r\n $this->order['date'] = date('Y-m-d H:i:s');\r\n if($getInfo) {\r\n $this->getOrderInfos();\r\n }\r\n return true;\r\n }\r\n return false;\r\n }\r\n else {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "f943ebd7df64e79843c216b11cdc9155", "score": "0.5523409", "text": "public function store(Request $request) {\n if (config(\"app.key\") == $request->header(\"access-key\")) {\n\n $orderCustomer = $request->order;\n\n $orderCustomerArray = json_decode(Encrypt::decodedDataApp($orderCustomer), true);\n if (isset($request->appVersion)) {\n if ($request->appVersion === 2.4) {\n return $this->storeOrder($orderCustomerArray);\n }\n }\n\n\n $productOrdered = $orderCustomerArray['product'];\n $productId = $productOrdered['product_id'];\n\n\n $quantityOrder = $orderCustomerArray['quantity'];\n $productController = new ProductsController();\n $check = $productController->checkStock($quantityOrder, $productOrdered);\n if (!$check) {\n return JsonObjects::responseJsonObject(\"store\", \"quantity_unvailable\", $productOrdered, \"El inventario de este producto no tiene la cantidad que solicitaste\");\n }\n\n $order = new Order();\n $order->order_id = $this->generateUniqueId();\n $order->order_price = $productOrdered['product_price'];\n $order->order_quantity = $quantityOrder;\n $order->order_discount_rate = $productOrdered['product_discount_rate'];\n $order->order_state = 'interesting';\n $order->order_note = $orderCustomerArray['sale_note'];\n $order->order_delivery_product = json_encode($productOrdered['product_delivery']);\n $order->order_delivery_customer = json_encode($orderCustomerArray['delivery_customer']);\n $order->product_id = $productOrdered['product_id'];\n $order->place_id = $productOrdered['place_location']['place_location_id'];\n $order->plac_user_id = $orderCustomerArray['plac_user_shipping_address']['plac_user_id'];\n $order->order_notified_pending = 0;\n $placUserShippingAddress = $orderCustomerArray['plac_user_shipping_address'];\n if ($placUserShippingAddress != null) {\n $order->plac_user_shipping_address_id = $placUserShippingAddress['plac_user_shipping_address_id'];\n }\n $order->save();\n $order['order_delivery_customer'] = json_decode($order->order_delivery_customer, true);\n $order = $this->getOrderResumed($order, 'init');\n $preferenceMercadoPago = MercadoPagoController::getPreferenceId($productOrdered, $orderCustomerArray, $order);\n $order['order_preference_mercadopago'] = $preferenceMercadoPago;\n\n\n return JsonObjects::responseJsonObject(\"store\", \"order_made\", $order, \"La orden del producto fue hecha\");\n } else {\n return JsonObjects::responseJsonObject(\"store\", \"access_prohibited\", null, \"Algo va mal con tu petición, adios\");\n }\n }", "title": "" }, { "docid": "feeaae39963e99d4fb0a9925b36f65b2", "score": "0.5520009", "text": "public function createOrder(ResourceCustomer $customer, Items $items, Extras $extras = null, string $type = null, Shipping $shipping = null): Order;", "title": "" }, { "docid": "44fe7d51af4461a3841af0e7f2d5f3d9", "score": "0.5498244", "text": "public function place()\n {\n // Converting quote to order\n $service = Mage::getModel('sales/service_quote', $this->_getSession()->getQuote());\n $service->submitAll();\n\n $session = $this->_getSession();\n $quote = $session->getQuote();\n\n $session->setLastQuoteId($quote->getId())\n ->setLastSuccessQuoteId($quote->getId())\n ->clearHelperData();\n\n $order = $service->getOrder();\n if ($order) {\n $order->setData('afterpay_order_id', $quote->getData('afterpay_order_id'));\n $order->save();\n\n $paymentMethod = $order->getPayment()->getMethodInstance();\n if (!$order->getEmailSent() && $paymentMethod->getConfigData('order_email')) {\n $order->sendNewOrderEmail();\n }\n\n // add order information to the session\n $session->setLastOrderId($order->getId())\n ->setLastRealOrderId($order->getIncrementId());\n }\n\n Mage::dispatchEvent(\n 'checkout_submit_all_after',\n array('order' => $order, 'quote' => $quote, 'recurring_profiles' => array())\n );\n\n return $order ? true : false;\n }", "title": "" }, { "docid": "00eff02640e328c4facf0267dd3a047b", "score": "0.54919356", "text": "public function testPutOrderAddress()\n {\n }", "title": "" }, { "docid": "d6f1e9c8b7140b107b3b421979155ce2", "score": "0.5486097", "text": "public function store(Request $request)\n {\n $auth_user = Auth::user();\n if(isset($auth_user)){\n $order = $request->get('order');\n $product = $order['product'];\n if(isset($product)){\n DB::beginTransaction();\n try {\n \n $user = User::find($auth_user->id);\n $user->name = $order['customerName'];\n $user->save();\n \n $addres = Address::create([\n 'user_id' => $auth_user->id,\n 'address' => $order['address'],\n ]);\n \n Order::create([\n 'user_id' => $auth_user->id,\n 'address_id' => $addres->id,\n 'product_id' => $product['id'],\n 'vendor_id' => $product['user_id'],\n 'quantity_required' => $order['requiredQty'],\n 'quantity_Details' => $order['detailrequiredQty'],\n ]); \n DB::commit();\n return response()->json(['status' => 'success','message' => 'Order Placed'],200);\n } catch (\\Throwable $th) {\n DB::rollback();\n logger($th);\n }\n }\n return response()->json(['status' => 'failed','message' => 'Something Went Wrong'],500);\n }\n return response()->json(['status' => 'failed','message' => 'Unathorized'],403);\n }", "title": "" }, { "docid": "9db93a840a282c8674797198dcf2b72a", "score": "0.54793066", "text": "public function testCreateOrder()\n {\n }", "title": "" }, { "docid": "30151535096c7f96102e00a65a1014e3", "score": "0.5477344", "text": "public function createQuoteFromOrder(CreateQuoteFromOrderRequest $req) {\n $result = Mage::getModel('prxgt_bonus_model/service_replica_response_createQuoteFromOrder');\n /* extract data from request and load data models */\n $customer = $this->_initCustomer($req->getCustomerId(), $req->getCustomer());\n $customerGroupId = $customer->getGroupId();\n $order = $this->_initOrder($req->getOrderId(), $req->getOrder());\n $storeId = $order->getStoreId();\n /**\n * Populate quote with order's data.\n */\n $quote = Mage::getModel('sales/quote');\n $quote->setCustomer($customer);\n $quote->setStoreId($storeId);\n /* switch off qty control */\n $quote->setIsSuperMode(true);\n /**\n * Transfer order data to quote.\n */\n $this->_initRuleData($customerGroupId, $storeId);\n $this->_initQuoteItems($quote, $order, $storeId, $customerGroupId);\n $this->_initBillingAddressFromOrder($quote, $order);\n $this->_initShippingAddressFromOrder($quote, $order);\n /**\n * Re-collect totals and return quote.\n */\n $quote->collectTotals();\n $result->setQuote($quote);\n return $result;\n }", "title": "" }, { "docid": "aed8ff47c5101760da9e2ce042179643", "score": "0.5469608", "text": "public function request_list_post()\n {\n $this->response([[\n \"order_id\" => \"7879\",\n \"order_number\" => \"\",\n \"consumer_name\" => \"John Mike\",\n \"consumer_photo\" => \"photo\", \n \"order_type\" => \"ecommerce\",\n \"order_date\" => \"20-Dec-2021 3:00 PM\", \n \"estimated_price\" => \"\",\n \"estimated_distance\" => \"\",\n ]]);\n }", "title": "" }, { "docid": "e696961901d30ee79c98b2439f5bf768", "score": "0.54680127", "text": "public function testPutOrder()\n {\n }", "title": "" }, { "docid": "5de75a883abd1a8e14332cfa77b60c89", "score": "0.54674053", "text": "public function store(Request $request): JsonResponse {\n $this->validate($request, [\n 'user_id' => 'bail|required',\n 'status' => 'bail|required|max:255',\n 'source' => 'bail|required|max:255',\n 'destination' => 'required|max:255',\n ]);\n\n $order = Order::create($request->all());\n return response()->json($order, 200);\n }", "title": "" }, { "docid": "0d8ffdfbbc913587a5535b4df13602e6", "score": "0.54662603", "text": "public function store(Request $request)\n { \n $newOrder = new Order;\n \n $newOrder->ORDER_CODE = strtoupper(Str::random(6));\n $newOrder->CUSTOMER_NAME = $request->customer_name;\n $newOrder->CUSTOMER_EMAIL = $request->customer_email;\n $newOrder->CUSTOMER_MOBILE = $request->customer_mobile;\n $newOrder->STATUS = 'CREATED';\n\n $result = $newOrder->saveOrFail();\n \n if ($result) {\n $proccesPaymentData = $this->createOrderRequest($newOrder->getAttributes());\n\n $response = [\n 'message' => 'ORDER SUCCESSFULLY CREATED',\n 'orderData' => $newOrder,\n 'proccesPaymentData' => $proccesPaymentData\n ];\n } \n\n return response()->json($response, 200);\n }", "title": "" }, { "docid": "35bccaa81c5b18f1a651d066fe489a23", "score": "0.54628193", "text": "public function newServiceOrderSubmit(Request $request){\n\n $order=new ServiceOrder;\n $order->date_order=$request->input('fechaOrden');\n $order->date_in=$request->input('fechaEntrada');\n $order->date_out=$request->input('fechaSalida');\n $order->kms=$request->input('kms');\n ////////////////////////////////////////////\n $order->client_id=$request->input('idClient');\n $order->vehicle_id=$request->input('idVehicle');\n /////////////////////////////////////////////////\n $order->notes=$request->input('observaciones');\n $order->services=$request->input('servicios');\n ////////////////////////////////////////////////\n $order->total=$request->input('total');\n $order->deposit=$request->input('abono');\n $order->discount=$request->input('descuento');\n $order->balance=$request->input('saldo');\n $order->payment_method=$request->input('medioPago');\n ////////////////////////////////////////////////////\n $result =$order->save();\n return (string)($result);\n\n }", "title": "" }, { "docid": "9e8d976b9b6036d330463145055319c7", "score": "0.5462559", "text": "public function store(Request $request)\n {\n\n $request->validate([\n 'name' => 'required|string|max:255',\n 'phone' => 'required|string|max:13',\n 'startAddress' => 'required|string',\n 'endAddress' => 'required|string',\n 'typePack' => 'required',\n 'classification' => 'required',\n 'note' => 'string'\n\n ]);\n\n $order = new Order();\n $order->end_user_name = $request->name;\n $order->end_user_phone = $request->phone;\n $order->start_address = $request->startAddress;\n $order->end_address = $request->endAddress;\n $order->type_pack = $request->typePack;\n $order->classification_id = $request->classification;\n $order->note = $request->note;\n $order->status_id = 1;\n $order->user_id = $request->user_id;\n $order->time_creation = date('Y-m-d H:i:s');\n\n if($order->save()){\n return response()->json($order, 200);\n\n }else{\n return response()->json([\n 'message' => 'Ошибка при добавлении заказа!',\n 'status_code' => 500\n ], 500);\n }\n }", "title": "" }, { "docid": "360f431ef9685826f191dc101ff9956d", "score": "0.54600555", "text": "public function orderAction(Request $req)\n {\n // Pour récupérer la liste de toutes les annonces : on utilise findAll()\n $em = $this->getDoctrine()->getManager();\n $orderRepository=$em->getRepository('ECommBundle:Order');\n\n $listorder=$orderRepository->findAll();\n\n return $this->render('AdminBundle:Admin:order.html.twig', array(\n 'listorder' => $listorder\n ));\n }", "title": "" }, { "docid": "28a8222f778f1680f9baaf3315ac3c08", "score": "0.54540205", "text": "public function createOrder()\n\t{\n\t\t// Post the data from the order form.\n\t\t$this->setOrderDate($_POST['frmorderdate']);\n\t\t$this->setOrderTime($_POST['frmordertime']);\n\t\t$this->setCustomer($_POST['frmcustomername']);\n\t\t$this->setOrderedBy($_POST['frmorderedby']);\n\t\t$this->setOrderType($_POST['frmordertype']);\n\t\t$this->setJobName($_POST['frmjobname']);\n\t\t$this->setJobAddress($_POST['frmjobaddress']);\n\t\t$this->setJobCity($_POST['frmjobcity']);\n\t\t$this->setJobZipcode($_POST['frmjobzipcode']);\n\t\t// Here we are going to post the tax rate and turn it into a float.\n\t\t$unformatted_tax_rate = $_POST['frmtaxrate'];\n\t\t$this->setTaxRate((float)$unformatted_tax_rate);\n\t\t$this->setOnsiteContact($_POST['frmcontact']);\n\t\t$this->setOnsiteContactPhone($_POST['frmcontactphone']);\n\t\t$this->setTotalCost($_POST['cartTotalCost']);\n\t\t$this->setSalesTax($_POST['cartTax']);\n\t\t$this->setCostBeforeTax($_POST['cartBeforeTaxCost']);\n\t\t$this->setMonthlyTotal($_POST['cartMonthlyTotal']);\n\t\t$this->setDeliveryTotal($_POST['cartDeliveryTotal']);\n\n\t\t// Assigning stage as one since it is a newly created order.\n\t\t$this->setStage(1);\n\n\t\t\n\n\t\t// Need to insert the new order into the database.\n\t\t$this->getDB()->insert('orders',[\n\t\t\t\t'order_customer'\t\t\t=>\t$this->getCustomer(),\n\t\t\t\t'order_customer_id'\t\t\t=>\t$this->getCustomerId(),\n\t\t\t\t'order_date'\t\t\t\t=>\t$this->getDate(),\n\t\t\t\t'order_time'\t\t\t\t=>\t$this->getTime(),\n\t\t\t\t'order_type'\t\t\t\t=>\t$this->getType(),\n\t\t\t\t'job_name'\t\t\t\t\t=>\t$this->getJobName(),\n\t\t\t\t'job_city'\t\t\t\t\t=>\t$this->getJobCity(),\n\t\t\t\t'job_address'\t\t\t\t=>\t$this->getJobAddress(),\n\t\t\t\t'job_zipcode'\t\t\t\t=>\t$this->getJobZipcode(),\n\t\t\t\t'ordered_by'\t\t\t\t=>\t$this->getOrderedBy(),\n\t\t\t\t'onsite_contact'\t\t\t=>\t$this->getOnsiteContact(),\n\t\t\t\t'onsite_contact_phone'\t\t=>\t$this->getOnsiteContactPhone(),\n\t\t\t\t'tax_rate'\t\t\t\t\t=>\t$this->getTaxRate(),\n\t\t\t\t'cost_before_tax'\t\t\t=>\t$this->getCostBeforeTax(),\n\t\t\t\t'total_cost'\t\t\t\t=>\t$this->getTotalCost(),\n\t\t\t\t'monthly_total'\t\t\t\t=>\t$this->getMonthlyTotal(),\n\t\t\t\t'sales_tax'\t\t\t\t\t=>\t$this->getSalesTax(),\n\t\t\t\t'delivery_total'\t\t\t=>\t$this->getDeliveryTotal(),\n\t\t\t\t'stage'\t\t\t\t\t\t=>\t$this->getStage()]);\n\n\t\t// If properly inserted, grab the ID, else throw error.\n\t\tif($this->getDB()->lastId() != null)\n\t\t{\n\t\t\t$this->id = $this->getDB()->lastId();\n\t\t} \n\t\telse \n\t\t{\n\t\t\tthrow new Exception(\"There was an error inserting the order into the database.\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "3522e186238cf46a3ed69aa24a0d17f1", "score": "0.5452872", "text": "public function store(Request $request)\n {\n //\n $order=new Order;\n $order->date=$request->date;\n $order->medicine_id=$request->medicine_id;\n $order->quantity=$request->quantity;\n $order->price=$request->price;\n if($order->save())\n return new OrderResource($order);\n }", "title": "" }, { "docid": "bdef327f3db20ce75a58d1c25a1df795", "score": "0.544074", "text": "public function build(OrderInterface $order)\n {\n $requestTypeData = [\n 'id' => $order->getOrderId(),\n 'createdAt' => date_create($order->getCreatedAt())->format('c'),\n 'lastModifiedAt' => date_create($order->getLastModifiedAt())->format('c'),\n 'orderedAt' => date_create($order->getOrderedAt())->format('c'),\n 'sourceName' => 'Magento',\n 'sourceReference' => $order->getSourceReference(),\n 'total' => $this->monetaryValueFactory->create([\n 'amount' => $order->getAmount(),\n 'currency' => $order->getCurrency(),\n ]),\n 'customer' => $this->getCustomerType($order->getBilling()),\n 'recipient' => $this->getRecipientType($order->getRecipient(), $order->getCollectionPoint()),\n 'shipmentDetails' => $this->getShipmentDetailsType($order->getRecipient(), $order->getCollectionPoint()),\n 'items' => $this->getItemTypes($order->getOrderItems()),\n 'aliases' => [\n 'magento' => $order->getSourceId(),\n 'magentoincrement' => $order->getSourceIncrementId(),\n ],\n 'selectedExperience' => $this->experienceFactory->create([\n 'code' => $order->getExperienceCode(),\n 'cost' => $this->monetaryValueFactory->create([\n 'amount' => $order->getExperienceAmount(),\n 'currency' => $order->getExperienceCurrency(),\n ]),\n 'description' => $this->descriptionFactory->create([\n 'language' => $order->getExperienceLanguage(),\n 'text' => $order->getExperienceDescription(),\n ]),\n 'pickUpLocationId' => $this->getPickUpLocationId($order),\n ]),\n ];\n\n if ($order->getCollectionPointSearchRequest() && !$order->getCollectionPoint()) {\n // add search request if no collection point was selected yet\n $requestTypeData['collectionPointSearch'] = $this->collectionPointSearchFactory->create([\n 'postalCode' => $order->getCollectionPointSearchRequest()->getPostcode(),\n 'countryCode' => $order->getCollectionPointSearchRequest()->getCountryId(),\n ]);\n }\n\n $orderType = $this->requestTypeFactory->create($requestTypeData);\n\n // internal types (as is)\n $checkoutFields = $order->getCheckoutFields();\n // request types (prepared for API usage)\n $additionalAttributes = $this->getAdditionalAttributes($checkoutFields);\n foreach ($additionalAttributes as $additionalAttribute) {\n $orderType->addAdditionalAttribute($additionalAttribute);\n }\n\n return $orderType;\n }", "title": "" }, { "docid": "735faba91853ee9a85c1eed79aadd383", "score": "0.5434192", "text": "public function new_order(Request $request){\n $order= $request->user()->orders()->where('status','pending')->with('products')->get();\n\n if(empty($order)){\n return responseJson(0,'failed no orders for this restaurant');\n } \n \n return responseJson(1,'success',$order);\n }", "title": "" }, { "docid": "9c61a3ba38114ced5e780463d2246c77", "score": "0.5431736", "text": "public function createConfirmOrderDetailsRequest($amazon_order_id, $marketplace_ids, $body)\n {\n // verify the required parameter 'amazon_order_id' is set\n if ($amazon_order_id === null || (is_array($amazon_order_id) && count($amazon_order_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $amazon_order_id when calling createConfirmOrderDetails'\n );\n }\n // verify the required parameter 'marketplace_ids' is set\n if ($marketplace_ids === null || (is_array($marketplace_ids) && count($marketplace_ids) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $marketplace_ids when calling createConfirmOrderDetails'\n );\n }\n if (count($marketplace_ids) > 1) {\n throw new \\InvalidArgumentException('invalid value for \"$marketplace_ids\" when calling MessagingV1Api.createConfirmOrderDetails, number of items must be less than or equal to 1.');\n }\n\n // verify the required parameter 'body' is set\n if ($body === null || (is_array($body) && count($body) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling createConfirmOrderDetails'\n );\n }\n\n $resourcePath = '/messaging/v1/orders/{amazonOrderId}/messages/confirmOrderDetails';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n // query params\n if (is_array($marketplace_ids)) {\n $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true);\n }\n if ($marketplace_ids !== null) {\n $queryParams['marketplaceIds'] = $marketplace_ids;\n }\n\n // path params\n if ($amazon_order_id !== null) {\n $resourcePath = str_replace(\n '{' . 'amazonOrderId' . '}',\n ObjectSerializer::toPathValue($amazon_order_id),\n $resourcePath\n );\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/hal+json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/hal+json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($body)) {\n if ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($body));\n } else {\n $httpBody = $body;\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];\n foreach ($formParamValueItems as $formParamValueItem) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValueItem\n ];\n }\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\Query::build($formParams);\n }\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\Query::build($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "2698a48fc7cf3f265ef6849121179c8a", "score": "0.5428236", "text": "public function test_queryOrder_queryInvoiceOrder_returns_GetOrdersRequest() {\n $queryOrder = WebPayAdmin::queryOrder( Svea\\SveaConfig::getDefaultConfig() );\n $request = $queryOrder->queryInvoiceOrder(); \n $this->assertInstanceOf( \"Svea\\AdminService\\GetOrdersRequest\", $request );\n $this->assertEquals(\\ConfigurationProvider::INVOICE_TYPE, $request->orderBuilder->orderType); \n }", "title": "" }, { "docid": "3e03e66c64b655086d932331ad4cccb2", "score": "0.54163057", "text": "#[CustomOpenApi\\Operation(id: 'customerStoreWithAddress', tags: [Tags::Customer, Tags::V1])]\n #[OpenApi\\Parameters(factory: DefaultHeaderParameters::class)]\n #[CustomOpenApi\\RequestBody(request: CreateCustomerWithAddressRequest::class)]\n #[CustomOpenApi\\Response(resource: CustomerResource::class, statusCode: 201)]\n public function storeWithAddress(CreateCustomerWithAddressRequest $request): CustomerResource\n {\n $data = $request->validated();\n\n $addressData = collect($data)->filter(function($value, $key){\n $keys = collect(CreateAddressRequest::data())->map(fn(RequestData $d) => $d->getKey());\n return in_array($key, $keys->values()->all());\n })->all();\n\n $customerData = collect($data)->filter(function($value, $key){\n $keys = collect(CreateCustomerRequest::data())->map(fn(RequestData $d) => $d->getKey());\n return in_array($key, $keys->values()->all());\n })->all();\n\n $customer = Customer::create($customerData);\n $address = Address::create(array_merge($addressData, [\"customer_id\" => $customer->id]));\n $customer->update([\"default_address_id\" => $address->id]);\n\n return $this->show($customer->refresh());\n }", "title": "" }, { "docid": "0eb98fad9f987a9bd005adf63108bb61", "score": "0.53852755", "text": "public function createOrder(Request $request) {\n $customerName = $request->input('customer-name');\n $physicalAddress = $request->input('physical-address');\n $idNumber = $request->input('id-number');\n $phoneNumber = $request->input('phone-number');\n $customerInfo = array(\n 'name' => $customerName,\n 'physical-address' => $physicalAddress,\n 'id-number' => $idNumber,\n 'phone-number' => $phoneNumber,\n );\n\n Session::put('customer-info', $customerInfo);\n\n if (Auth::user()->hasRole('admin')) {\n $barons = Baron::all();\n } else {\n $barons = Baron::where('id', Auth::user()->baron_id)->get();\n }\n $glassTypes = GlassType::all();\n\n $price = $this->getPriceSettings();\n\n return view('pages.order_create', compact('glassTypes', 'barons', 'customerInfo', 'price'));\n }", "title": "" }, { "docid": "9bfbbf3b8bcf880f3468c5805da25479", "score": "0.53833175", "text": "public function store(Request $request)\n {\n $price = $request->price*$request->quantity;\n $placeOrder = new Order([\n 'product_id' => $request->id,\n 'total_price' => $price,\n 'quantity' => $request->quantity,\n 'customer_id'=> Auth::user()->id\n ]);\n\n $placeOrder->save();\n\n // return view('products.product_list')->with('data', $products);\n\n return redirect()->action('OrderController@index');\n }", "title": "" }, { "docid": "1c171d26525caa25ce68143592953531", "score": "0.5379071", "text": "public function store(Request $request)\n {\n $dataForm = $request->all();\n \n $clientId = $this->user->find(Auth::user()->id)->client->id;\n $dataForm['client_id'] = $clientId;\n $o = $this->service->create($dataForm);\n $o = $this->order->with('items')->find($o->id); \n return $o;\n }", "title": "" }, { "docid": "0b9e77bf2189bcae97aa330915043599", "score": "0.537473", "text": "public function createItem()\n {\n return new Order();\n }", "title": "" }, { "docid": "4d986529f5934e3533308e1632a1ca40", "score": "0.5358169", "text": "final protected function place(PlaceRequest $request)\n {\n $params = $request->only(['placeid']);\n try {\n $json = (new HttpClient)->get(config('services.places.placeUri'), ['query' =>\n array_merge($params, [\n 'key' => config('services.places.api_key'),\n ])\n ])->getBody();\n\n $data = $this->parsePlaceHttpJson($json);\n } catch (\\Exception $ex) {\n Log::error('Google places autocomplete Error: ' . $ex->getMessage());\n $data = $this->parseHttpError($ex);\n }\n return response()->json($data);\n }", "title": "" }, { "docid": "58e6c95e8144bb7c9fbef32b394cfca0", "score": "0.5352516", "text": "public function createOrderAction()\r\n {\r\n try {\r\n $basket = $this->helper->getBasket();\r\n $user = $this->helper->getUser();\r\n\r\n $preOrder = array_filter([\r\n 'amount' => $this->helper->getAmountInCents($basket['sAmount']), // Amount in cents\r\n 'currency' => $this->helper->getCurrencyName(), // Currency\r\n 'merchant_order_id' => $this->helper->getOrderNumber(), // Merchant Order Id\r\n 'description' => $this->helper->getOrderDescription($this->helper->getOrderNumber()), // Description\r\n 'customer' => $this->helper->getCustomer($user), // Customer information\r\n 'payment_info' => [], // Payment info\r\n 'order_lines' => $this->helper->getOrderLines($basket, $user['additional']['payment']['name']), // Order Lines\r\n 'transactions' => $this->helper->getTransactions($this->payment_method), // Transactions Array\r\n 'return_url' => $this->helper->getReturnUrl(self::CONTROLLER_NAME), // Return URL\r\n 'webhook_url' => $this->helper->getWebhookUrl(self::CONTROLLER_NAME), // Webhook URL\r\n 'extra' => ['plugin' => $this->helper->getPluginVersion()], // Extra information\r\n ]);\r\n\r\n $ems_order = $this->ginger->createOrder($preOrder);\r\n $this->helper->clearEmsSession();\r\n\r\n if ($ems_order['status'] == 'error') {\r\n throw new Exception(current($ems_order['transactions'])['reason']);\r\n }\r\n if ($ems_order['status'] == 'cancelled') {\r\n throw new Exception(\"You order was cancelled, please try again later\");\r\n }\r\n\r\n $_SESSION['emspa_payments_order_id'] = $ems_order['id'];\r\n\r\n if (isset($ems_order['order_url'])) {\r\n return $this->redirect($ems_order['order_url']);\r\n }\r\n if (current($ems_order['transactions'])['status'] == 'pending') {\r\n return $this->saveEmsOrder($ems_order['id'], $this->helper->getOrderToken(), $this->helper::EMS_TO_SHOPWARE_STATUSES[$ems_order['status']]);\r\n }\r\n return $this->Response()->setRedirect(current($ems_order['transactions'])['payment_url']);\r\n\r\n } catch (Exception $exception) {\r\n $logger = $this->get('corelogger');\r\n $logger->log('error', 'emspa_payments_' . $this->payment_method . \" : \" . $exception->getMessage());\r\n\r\n $_SESSION['ginger_warning_message'] = $_SESSION['ginger_warning_message'] ?: 'An error has occurred with the payment method. Please contact the store owner';\r\n return $this->redirect(['controller' => 'checkout', 'action' => 'confirm']);\r\n }\r\n }", "title": "" }, { "docid": "558a71f95edc3ae1b16961bba658c3db", "score": "0.53517646", "text": "public function update(Request $request, Order $order)\n {\n //\n }", "title": "" } ]
c9fb4aee8e9e0fe87925368d3071ead8
Prepare a date for array / JSON serialization.
[ { "docid": "77e9ae9db65e439061fc7fea230ec62e", "score": "0.0", "text": "protected function serializeDate(DateTimeInterface $date)\n {\n return $date->format('Y-m-d H:i:s');\n }", "title": "" } ]
[ { "docid": "d1e6282a67a684f288afc9732def411b", "score": "0.63922983", "text": "public static function toArray($date = NULL) {\n $date = new DatexObject($date, FALSE);\n return array(\n 'year' => $date->format('Y'),\n 'month' => $date->format('n'),\n 'day' => $date->format('j'),\n 'hour' => intval($date->format('H')),\n 'minute' => intval($date->format('i')),\n 'second' => intval($date->format('s')),\n 'timezone' => $date->format('e'),\n );\n }", "title": "" }, { "docid": "290c520599f28fdbe3743a39062ec566", "score": "0.62053657", "text": "function rearr_date($arg_date)\n{\n\t$temp = date_create($arg_date);\n\treturn date_format($temp,\"d M Y\");\n}", "title": "" }, { "docid": "241a21cb81e838cc33a2b8dc062f1959", "score": "0.6166727", "text": "function break_date($iso_date) // template for new classes\r\n {\r\n $broken_date = array();\r\n $broken_date['yyyy'] = substr($iso_date,0,4);\r\n $broken_date['mm'] = substr($iso_date,5,2);\r\n $broken_date['dd'] = substr($iso_date,8,2);\r\n return $broken_date;\r\n }", "title": "" }, { "docid": "241a21cb81e838cc33a2b8dc062f1959", "score": "0.6166727", "text": "function break_date($iso_date) // template for new classes\r\n {\r\n $broken_date = array();\r\n $broken_date['yyyy'] = substr($iso_date,0,4);\r\n $broken_date['mm'] = substr($iso_date,5,2);\r\n $broken_date['dd'] = substr($iso_date,8,2);\r\n return $broken_date;\r\n }", "title": "" }, { "docid": "d9e9a54de3e4c6bc95c5b4e2776dc5d0", "score": "0.61005664", "text": "function getDateArray($date)\n\t{\n\t\tlist($year,$month,$day)=explode(\"-\",$date);\n\t\t$arrDate['year']= $year;\n\t\t$arrDate['month']= $month;\n\t\t$arrDate['day']= $day;\n\t\t\n\t\treturn $arrDate;\n\t}", "title": "" }, { "docid": "3f808044452f5bd3d074b851b9653591", "score": "0.6098276", "text": "function _prepare_datetime($date) {\n\t\t// init\n\t\t$str = '';\n\t\t// reverse array so that dd-mm-yyyy becomes yyyy-mm-dd\n\t\t$date = array_reverse($date);\n\t\t// loop through date\n\t\tforeach($date as $key=>$value) {\n\t\t\t// if d/m/y has been entered\n\t\t\tif(!empty($value)) {\n\t\t\t\t// seperate with '-'\n\t\t\t\t$str .= '-'.$value;\n\t\t\t\t// remove first '-'\n\t\t\t\tif($key=='year') {\n\t\t\t\t\t$str = str_replace('-', '', $str);\n\t\t\t\t}\n\t\t\t\t// only add if day is empty\n\t\t\t\tif($key=='month' && empty($date['day'])) {\n\t\t\t\t\t$str .= '-';\n\t\t\t\t}\n\t\t\t\t// add final space\n\t\t\t\tif($key=='day') {\n\t\t\t\t\t$str.=' ';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\treturn $str;\n\t}", "title": "" }, { "docid": "726b143631ba144e3729983f1d46aa8b", "score": "0.6050711", "text": "private function convertDate(){\r\n\r\n //TODO Convert from ISO_LOCAL_DATE To ISO_INSTANT\r\n }", "title": "" }, { "docid": "b16f21666eac6d37425736234a77d249", "score": "0.6035338", "text": "public function _prepare_dates(&$date_from, &$date_to)\n {\n //if there's no data, return\n if (empty($this->data)) {\n return;\n }\n\n //converting the date array into a string\n\n //which model we use doesn't matter here - we just need some name of\n //a date field to tell cake that we want the data to be\n //deconstructed into a date (not datetime)\n $from = $this->Klant->deconstruct(\n 'geboortedatum', $this->data['date_from']);\n $to =\n $this->Klant->deconstruct('geboortedatum', $this->data['date_to']);\n\n if (!empty($from)) {\n $date_from = $from;\n }\n if (!empty($to)) {\n $date_to = $to;\n }\n }", "title": "" }, { "docid": "899d1d0463796335431a5954702d9549", "score": "0.60214883", "text": "public function convertDatesInXmlFormat() {\n if (!empty($this->tags['date'])) {\n if (is_array($this->tags['date'])) {\n if (!empty($this->tags['date']['published'])) {\n $this->tags['date']['published'] = date(DateTime::RFC3339, strtotime($this->tags['date']['published']));\n }\n if (!empty($this->tags['date']['modified'])) {\n $this->tags['date']['modified'] = date(DateTime::RFC3339, strtotime($this->tags['date']['modified']));\n }\n } else {\n $this->tags['date'] = date(DateTime::RFC3339, strtotime($this->tags['date']));\n }\n }\n }", "title": "" }, { "docid": "f95beff2640d523f967548ba618eb538", "score": "0.58774155", "text": "public function jsonSerialize()\n { \n return array_merge(parent::jsonSerialize(), [\n 'days' => $this->getDays(), \n 'today' => Str::lower(now()->format('l')),\n ]);\n }", "title": "" }, { "docid": "7a652bcd468fce72092c6e636b41d6de", "score": "0.5875811", "text": "public function __wakeup() {\n \n // First check for new serialization format\n if (isset($this->value)) {\n $this->date= date_create($this->value);\n return;\n }\n\n // Check for legacy serialization format\n if (isset($this->_utime)) {\n $this->date= date_create('@'.$this->_utime);\n unset($this->_utime, $this->seconds, $this->minutes, $this->hours, $this->mday,\n $this->wday, $this->mon, $this->year, $this->yday, $this->weekday, $this->month\n );\n return;\n }\n }", "title": "" }, { "docid": "2f877d99b49c52bc8c09fbd1fa944e12", "score": "0.58430564", "text": "function dateformatinforeach($array) {\n foreach ($array as $key => $value) {\n foreach ($value as $k => $v) {\n $impoldvalue = explode('_', $k);\n if (isset($impoldvalue[1]) && $impoldvalue[1] == 'date')\n if (isset($v) && $v != '' && (strpos($v, '/') == false) && (strpos($v, '-') == true))\n $array[$key]->$k = datetoapi($v);\n }\n }\n return $array;\n}", "title": "" }, { "docid": "c7b4fc5a27af69f0c74d146b65870339", "score": "0.5810104", "text": "public function toArray() {\n return DatexObjectUtils::toArray($this->dateobj);\n }", "title": "" }, { "docid": "9e329ba602c772cbc45d93c8862f065e", "score": "0.58048785", "text": "function __construct($_date){\n $this->_date = $_date;\n }", "title": "" }, { "docid": "5aa0341a8de1ad4f163f4c67e18bd371", "score": "0.57894117", "text": "public function asDate()\n {\n $this->asType(new Date());\n }", "title": "" }, { "docid": "5628beb045524b6701b272477bcc95fd", "score": "0.5773418", "text": "function setRegistrationDateAsDate($date)\n {\n $this->__registration_date = array('year' => date('Y', strtotime($date)),\n 'month' => date('m', strtotime($date)), 'day' => date('d', strtotime($date))) ;\n }", "title": "" }, { "docid": "8f91a0071cfad5ddc39383325a35b30f", "score": "0.5759058", "text": "private function populateDate()\n {\n $result = self::getById($this->id);\n\n if ($result)\n $this->date = $result->date;\n }", "title": "" }, { "docid": "1b37c9211cbbbe46f2ea6151a8991d52", "score": "0.57518333", "text": "public function toDateString()\n {\n }", "title": "" }, { "docid": "aff04ca27dc2b11bf4a37fbb7da7fd32", "score": "0.57431245", "text": "public function array_date_iso_to_us($arr){\n foreach($arr as $k => $v){\n if (!is_array($v)){\n if (DateTime::createFromFormat('Y-m-d', $v) !== FALSE) {\n $arr[$k] = date(\"m/d/Y\", strtotime($v));\n }\n }\n else{\n $arr[$k]=$this->array_date_iso_to_us($v);\n }\n }\n return $arr;\n }", "title": "" }, { "docid": "13395df3765043079a7cc6e0f15f5d6e", "score": "0.5729145", "text": "public function formatDate($date = array()){\n\n\t\tforeach ($date as $key => $value) {\n\n\t\t\t$newdtstart = strtotime($date[$key][\"dtstart\"]);\n\n\t\t\t$date[$key][\"dtstart\"] = date(\"d-m-Y H:i:s\", $newdtstart);\n\t\t\t$date[$key][\"dtend\"] = date(\"d-m-Y H:i:s\", strtotime($date[$key][\"dtend\"]));\n\t\t\t$date[$key][\"dtregister\"] = date(\"d-m-Y H:i:s\", strtotime($date[$key][\"dtend\"]));\n\t\t}\n\n\t\treturn $date;\n\t}", "title": "" }, { "docid": "5ef64e3f039903bc5575f53384d80709", "score": "0.57212657", "text": "private function prepareDate($date)\n {\n $dateTime = new Carbon($date, new DateTimeZone('UTC'));\n return $dateTime->toDateString();\n }", "title": "" }, { "docid": "eda1e0eb63cd309718c5c4eab37e1395", "score": "0.57015187", "text": "function plain_date($date) {\n $create_date = date_create($date);\n $new_date = date_format($create_date, 'd-m-Y');\n return $new_date;\n}", "title": "" }, { "docid": "572aa7f5c29138bd9ac6b1115658bfdc", "score": "0.56974596", "text": "function convertDate($date)\n{\n $splitdate = explode(\"/\", $date);\n $day = $splitdate[0];\n $year = $splitdate[2];\n $splitdate[0] = $year;\n $splitdate[2] = $day;\n //print_r($splitdate);\n $newdate = implode(\"-\",$splitdate);\n return $newdate;\n}", "title": "" }, { "docid": "5d1a49ba0819b37858231d086f42a477", "score": "0.5697273", "text": "public function initializeDate()\n {\n if (empty($this->createdAt)) {\n $this->createdAt = new \\Datetime();\n }\n }", "title": "" }, { "docid": "13a3864c1f6ef355914b6cdcd630c34d", "score": "0.5676737", "text": "public function array_date_us_to_iso($arr){\n foreach($arr as $k => $v){\n if (!is_array($v)){\n if (\\DateTime::createFromFormat('m/d/Y', $v) !== FALSE) {\n $arr[$k] = date(\"Y-m-d\", strtotime($v));\n }\n }\n }\n return $arr;\n }", "title": "" }, { "docid": "57a0ec60f403376424d2556b07448fac", "score": "0.5671921", "text": "public function xtoArray() {\n return array(\n 'year' => $this->dateobj->format('Y'),\n 'month' => $this->dateobj->format('n'),\n 'day' => $this->dateobj->format('j'),\n 'hour' => intval($this->dateobj->format('H')),\n 'minute' => intval($this->dateobj->format('i')),\n 'second' => intval($this->dateobj->format('s')),\n 'timezone' => $this->dateobj->format('e'),\n );\n }", "title": "" }, { "docid": "e187b4e0b3a395ef2e1d38e3a640abe8", "score": "0.5640652", "text": "protected function toArray() {\n return array('year' => $this->format('Y'), 'month' => $this->format('m'), 'day' => $this->format('d'), 'hour' => $this->format('H'), 'minute' => $this->format('i'), 'second' => $this->format('s'), 'zone' => $this->format('e'));\n }", "title": "" }, { "docid": "5919c6016a91b8b4dbe688f637f0bc4f", "score": "0.56119365", "text": "public function toArray($request)\n {\n $data = parent::toArray($request);\n\n $data['subsidization']['subsidization_organization_id'] = !empty($this->subsidization) ?\n $this->subsidization->subsidizationRule->subsidizationOrganization->id : null;\n $data['subsidization']['subsidization_start'] = !empty($this->subsidization) &&\n !empty($this->subsidization->subsidization_start) ? date('d.m.Y', strtotime\n ($this->subsidization->subsidization_start)) : null;\n $data['subsidization']['subsidization_end'] = !empty($this->subsidization) &&\n !empty($this->subsidization->subsidization_end) ? date('d.m.Y', strtotime($this->subsidization->subsidization_end)) : null;\n\n $data['birthday'] = !empty($this->birthday) ? date('d.m.Y', strtotime($this->birthday)) : null;\n\n $data['subsidization']['subsidization_rule']['start_date'] =\n !empty($this->subsidization) && !empty\n ($this->subsidization->subsidizationRule->start_date) ? date('d.m.Y', strtotime($this->subsidization->subsidizationRule->start_date)) : null;\n $data['subsidization']['subsidization_rule']['end_date'] =\n !empty($this->subsidization) && !empty\n ($this->subsidization->subsidizationRule->end_date) ? date('d.m.Y', strtotime($this->subsidization->subsidizationRule->end_date)) : null;\n\n return $data;\n }", "title": "" }, { "docid": "3e405eb82568624260529902c54cee09", "score": "0.56109554", "text": "public static function normalizeDate($date=NULL)\n\t{\n\t\tif($date == NULL){\n\t\t\treturn date('Y-m-d\\TH:i:s\\Z');\n\t\t}\n\t\t\n\t\tif(empty($date)){\n\t\t\treturn NULL;\n\t\t}\n\t\t\n\t\tif($date instanceof DateTime){\n\t\t\t$ts = $date->getTimestamp();\n\t\t}else{\n\t\t\t$ts = strtotime($date);\n\t\t}\n\t\t\n\t\t$date = date('Y-m-d\\TH:i:s\\Z', $ts);\n\t\treturn $date;\n\t}", "title": "" }, { "docid": "5d71a18f08df21c99299b3d2db7ff573", "score": "0.56020504", "text": "protected function convertDateArrayToString($value)\n {\n // all elements must be empty or a number\n foreach (array('year', 'month', 'day', 'hour', 'minute', 'second') as $key)\n {\n if (isset($value[$key]) && !preg_match('#^\\d+$#', $value[$key]) && !empty($value[$key]))\n {\n throw new sfValidatorError($this, 'invalid', array('value' => $value));\n }\n }\n\n // if one date value is empty, all others must be empty too\n $empties =\n (!isset($value['year']) || !$value['year'] ? 1 : 0) +\n (!isset($value['month']) || !$value['month'] ? 1 : 0);\n if ($empties > 0 && $empties < 3)\n {\n throw new sfValidatorError($this, 'invalid', array('value' => $value));\n }\n else if (3 == $empties)\n {\n return $this->getEmptyValue();\n }\n\n if (!checkdate(intval($value['month']), 1, intval($value['year'])))\n {\n throw new sfValidatorError($this, 'invalid', array('value' => $value));\n }\n\n $clean = sprintf(\n \"%04d-%02d\",\n intval($value['year']),\n intval($value['month'])\n );\n\n return $clean;\n }", "title": "" }, { "docid": "6922d3c28599748d02fb3e44922a6ce7", "score": "0.559235", "text": "public function sanitizarFecha($fecha)\n{\n $date = date_create($fecha);\n return date_format($date,'d-m-Y');\n}", "title": "" }, { "docid": "e02e005f281f506d891df3a534ef7712", "score": "0.5575515", "text": "function toVCalDate($date){\n\t\treturn date('Ymd\\THis\\Z', strtotime($date));\n\t}", "title": "" }, { "docid": "603e7a4c0a2be4595553005326bfc3dd", "score": "0.5575495", "text": "public function arrayToString($date=null)\n\t{\n\t\tif (is_array($date)) {\n\t\t\tif (isset($date['month'])) {\n\t\t\t\t$date['mon'] = $date['month'];\n\t\t\t}\n\t\t\tif (isset($date['day'])) {\n\t\t\t\t$date['mday'] = $date['day'];\n\t\t\t}\n\t\t\tif ($date['year'] && $date['mon'] && $date['mday']) {\n\t\t\t\t$str = \"{$date['year']}-{$date['mon']}-{$date['mday']}\";\n\t\t\t\tif (isset($date['hour'])) {\n\t\t\t\t\t$date['hours'] = $date['hour'];\n\t\t\t\t}\n\t\t\t\tif (isset($date['minute'])) {\n\t\t\t\t\t$date['minutes'] = $date['minute'];\n\t\t\t\t}\n\t\t\t\tif (isset($date['second'])) {\n\t\t\t\t\t$date['seconds'] = $date['second'];\n\t\t\t\t}\n\t\t\t\tif (isset($date['hours']) || isset($date['minutes']) || isset($date['seconds'])) {\n\t\t\t\t\t$str .= (isset($date['hours']) && $date['hours']) ? \" {$date['hours']}:\" : ' 00:';\n\t\t\t\t\t$str .= (isset($date['minutes']) && $date['minutes']) ? \"{$date['minutes']}:\" : '00:';\n\t\t\t\t\t$str .= (isset($date['seconds']) && $date['seconds']) ? $date['seconds'] : '00';\n\n\t\t\t\t}\n\t\t\t\treturn $str;\n\t\t\t}\n\t\t}\n\t\treturn '';\n\t}", "title": "" }, { "docid": "86b37ba58b1bdd03b4f1fc1a7d042786", "score": "0.55754787", "text": "public function changeDataFormat($data){\n if($data)\n if($data[2] != '/'){\n $date = date_create($data);\n return date_format($date, 'd/m/Y');\n }\n return $data;\n}", "title": "" }, { "docid": "a98ee605bca8f2f98e9e64165fcb886c", "score": "0.557044", "text": "function toDate($date) {\n\tif (!$date) {\n\t\treturn;\n\t}\n\n\treturn date('Y-m-d', strtotime($date));\n}", "title": "" }, { "docid": "14ba2979c43e9d56e4ab7d13815d3df6", "score": "0.5551236", "text": "public function jsonSerialize() : array {\n\t\t$fields = get_object_vars($this);\n\n\t\t//format the date so that the front end can consume it\n\t\t$fields[\"eventStartDate\"] = round(floatval($this->eventStartDate->format(\"U.u\")) * 1000);\n\t\t$fields[\"eventEndDate\"] = round(floatval($this->eventEndDate->format(\"U.u\")) * 1000);\n\t\treturn($fields);\n\t}", "title": "" }, { "docid": "81c5a5030c6f6b743abe2b5c470a542d", "score": "0.5544006", "text": "function toDate($str) {\n $arr = explode(\"\\/\", $str);\n if (count($arr) < 3) {\n $arr = explode(\"/\", $str);\n }\n $date = date_create($arr[2] . \"-\" . $arr[0] . \"-\" . $arr[1] , timezone_open(\"America/Chicago\"));\n // echo(json_encode($arr));\n // echo(date_format($date,\"Y/m/d H:iP\"));\n // echo(json_encode($date));\n return $date;\n}", "title": "" }, { "docid": "ab829a4a1b1ff70058e7eaba29b80773", "score": "0.5543358", "text": "public function toArray(): array\n {\n $res = parent::toArray();\n\n if (!empty($this->expand)) {\n $res['expand'] = $this->expand->flatten();\n }\n\n foreach ($res as $k => $v) {\n if ($v === null) {\n unset($res->{$k});\n }\n if ($v instanceof CommonDate) {\n $res->{$k} = $v->format();\n }\n }\n\n return $res;\n }", "title": "" }, { "docid": "3712cbf30588e5ccf22784cc3b369af8", "score": "0.55218697", "text": "private function initDate($date): Object\n {\n if (is_string($date)) {\n return new \\DateTime($date);\n }\n\n if (is_object($date)) {\n return $date;\n }\n\n return new \\DateTime();\n }", "title": "" }, { "docid": "f5fe898b149e042487f4240c75eb5940", "score": "0.54989666", "text": "public function jsonSerialize() {\n\t\t$fields = get_object_vars($this);\n\t\t$fields[\"reviewDate\"] = intval($this->reviewDate->format(\"U\")) * 1000;\n\t\treturn ($fields);\n\t}", "title": "" }, { "docid": "c16e539b754e2978882fb59980b96f41", "score": "0.5480682", "text": "function _prep_date_field(&$data, $row)\n\t{\n\t\tif ( ! isset($data['field_id_'.$row['field_id']]))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t// Should prevent non-integers from going into the field\n\n\t\tif ( ! trim($data['field_id_'.$row['field_id']]))\n\t\t{\n\t\t\t$data['field_id_'.$row['field_id']] = 0;\n\t\t\treturn;\n\t\t}\n\n\t\t// Date might already be numeric format- so we check\n\t\tif ( ! is_numeric($data['field_id_'.$row['field_id']]))\n\t\t{\n\t\t\t$data['field_id_'.$row['field_id']] = ee()->localize->string_to_timestamp($data['field_id_'.$row['field_id']], TRUE, ee()->localize->get_date_format());\n\t\t}\n\n\t\tif ($data['field_id_'.$row['field_id']] === FALSE)\n\t\t{\n\t\t\t$this->_set_error('invalid_date', $row['field_label']);\n\t\t}\n\t\telse\n\t\t{\n\n\t\t\tif ( ! isset($data['field_offset_'.$row['field_id']]))\n\t\t\t{\n\t\t\t\t$data['field_dt_'.$row['field_id']] = '';\n\t\t\t}\n\t\t\telseif ($data['field_offset_'.$row['field_id']] == 'y')\n\t\t\t{\n\t\t\t\t$data['field_dt_'.$row['field_id']] = '';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$data['field_dt_'.$row['field_id']] = ee()->session->userdata('timezone', ee()->config->item('default_site_timezone'));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "006ae40220f336b979fba7d176db1ee3", "score": "0.54797167", "text": "public function toArray()\n {\n $array = parent::toArray();\n\n foreach ($this->getDates() as $dateAttribute) {\n if (in_array($dateAttribute, $this->hidden)) {\n continue;\n }\n $value = $this->{$dateAttribute};\n if ($value) {\n $carbon = $this->asDateTime($this->{$dateAttribute});\n $array[$dateAttribute] = $carbon->format(\\DateTime::ATOM);\n }\n }\n\n return $array;\n }", "title": "" }, { "docid": "1bcb58f91a46d2e82460616eb9851609", "score": "0.54740196", "text": "private function setDate($row){\n \n $date = ['value' => $row[0]];\n\n if(count($row) > 1 && $row[1])\n $date['end_value'] = $row[1];\n else\n $date['end_value'] = $row[0];\n\n $this->dates[] = $date;\n \n }", "title": "" }, { "docid": "533f227e417a6ac75054b714dfe7be2f", "score": "0.546762", "text": "function convert ($array, $dateTimeZone = null) {\r\n\t\t// initialize datetimezone where necessary\r\n\t\tif ($dateTimeZone == null) {\r\n\t\t\t$dateTimeZone = new DataTimeZone('UTC');\r\n\t\t}\r\n\t\t\r\n\t\tif (array_key_exists('created', $array)) {\r\n\t\t\t$time = new DateTime($array['created']);\r\n\t\t\t\r\n\t\t\t$time->setTimezone($dateTimeZone);\r\n\t\t\r\n\t\t\t$array['created'] = $time;\r\n\t\t}\r\n\t\t\r\n\t\tif (array_key_exists('modified', $array)) {\r\n\t\t\t$time = new DateTime($array['modified']);\r\n\t\t\t\r\n\t\t\t$time->setTimezone($dateTimeZone);\r\n\t\t\r\n\t\t\t$array['modified'] = $time;\r\n\t\t}\r\n\t\t\r\n\t\tif (array_key_exists('updated', $array)) {\r\n\t\t\t$time = new DateTime($array['updated']);\r\n\t\t\t\r\n\t\t\t$time->setTimezone($dateTimeZone);\r\n\t\t\r\n\t\t\t$array['updated'] = $time;\r\n\t\t}\r\n \r\n\t\t\r\n\t\treturn $array;\r\n\t}", "title": "" }, { "docid": "661898cd6ffbc8215a81ea060b639649", "score": "0.54509753", "text": "function get_date() {\r\n return array($this->bangDate, $this->bangMonth, $this->bangYear);\r\n }", "title": "" }, { "docid": "fcfd0baddbbbdad8d0ed609452c53b17", "score": "0.5443258", "text": "protected function splitDate() {\n\t\t$explode = explode( \"-\", $this->date );\n\t\t\n\t\t$this->year = (integer) $explode[0];\n\t\t$this->month = (integer) $explode[1];\n\t\t$this->day = (integer) $explode[2];\n\t}", "title": "" }, { "docid": "0f0a43d1020bb1595f9e8f470e7e847e", "score": "0.54429203", "text": "function convertIsoDate($date)\n{\n $splitdate = explode(\"-\", $date);\n $day = $splitdate[2];\n $year = $splitdate[0];\n $splitdate[0] = $day;\n $splitdate[2] = $year;\n $newdate = implode(\"/\", $splitdate);\n return $newdate;\n}", "title": "" }, { "docid": "865e46e3969f97ba4b2d4bb15c45778e", "score": "0.5405359", "text": "public function jsonSerialize() {\n\t\t$fields = get_object_vars($this);\n\t\t//Format the date so that the front end can consume it.\n\t\t$fields[\"favoriteDate\"] = round(floatval($this->favoriteDate->format(\"U.u\")) * 1000);\n\t\treturn($fields);\n\t}", "title": "" }, { "docid": "428ceed9111ce8738d88e75b2d5c08e5", "score": "0.539394", "text": "public function __construct($date=null, $timezone=null)\n\t{\n\t\tif (is_array($date)) {\n\t\t\t$date = $this->arrayToString($date);\n\t\t}\n\t\tif ($timezone) {\n\t\t\tparent::__construct($date, $timezone);\n\t\t} else {\n\t\t\tparent::__construct($date);\n\t\t}\n\t}", "title": "" }, { "docid": "75ee5bbf09aa427faa64d48a575aae0f", "score": "0.53826696", "text": "public function date_format($arr){\r\r\n\t\t// \"D M d Y H:i eO\"\r\r\n\r\r\n\t\t// let's try DATE_RSS\r\r\n\t\tforeach ($arr as $key => $value) {\r\r\n\t\t\t$timestamp = $value['date'].' '.$value['time'];\r\r\n\t\t\t$start = date_format(date_create($timestamp), DATE_RSS);\r\r\n\t\t\t//$end = date_format(date_modify(date_create($timestamp), '+1 hour'), DATE_RSS);\r\r\n\t\t\t$end = date_format(date_create($timestamp), DATE_RSS);\r\r\n\t\t\t$arr[$key]['start'] = $start;\r\r\n\t\t\t$arr[$key]['end'] = $end; //->modify('+1 hour');\r\r\n\t\t\tunset($arr[$key]['date']);\r\r\n\t\t\tunset($arr[$key]['time']);\r\r\n\t\t}\r\r\n\t\treturn $arr;\r\r\n\t}", "title": "" }, { "docid": "e5699a0ac6b67a24b36bc1b819b04822", "score": "0.53624547", "text": "function convert_from ($date) {\n\t$newdate = DateTime::createFromFormat('Y-m-d', $date )->format('m/d/Y');\n\treturn $newdate;\n}", "title": "" }, { "docid": "8aeeaf56aeec5f56d16855425c58f154", "score": "0.5358049", "text": "public function toArray() {\n\n // Start with the misc properties (don't worry, PHP won't affect the original array)\n $array = $this->properties;\n\n $array['title'] = $this->title;\n\n // Figure out the date format. This essentially encodes allDay into the date string.\n if ($this->allDay) {\n $format = 'Y-m-d'; // output like \"2013-12-29\"\n } else {\n $format = 'c'; // full ISO8601 output, like \"2013-12-29T09:00:00+08:00\"\n }\n\n // Serialize dates into strings\n $array['start'] = $this->start->format($format);\n if (isset($this->end)) {\n $array['end'] = $this->end->format($format);\n }\n\n return $array;\n }", "title": "" }, { "docid": "0fdb32846d8b086394c3a52212ba7ea5", "score": "0.5349375", "text": "private function transformDate($inputDate)\n {\n if (\n null === $inputDate ||\n '00-00-0000' == $inputDate ||\n '0000-00-00' == $inputDate ||\n '' == $inputDate\n ) {\n return '0000-00-00';\n }\n else if ($inputDate instanceof \\DateTime) {\n $returnDate = $inputDate->format('Y-m-d');\n }\n else {\n $returnDate = date('Y-m-d', strtotime(str_replace('/', '-', $inputDate)));\n }\n return $returnDate;\n }", "title": "" }, { "docid": "0fdb32846d8b086394c3a52212ba7ea5", "score": "0.5349375", "text": "private function transformDate($inputDate)\n {\n if (\n null === $inputDate ||\n '00-00-0000' == $inputDate ||\n '0000-00-00' == $inputDate ||\n '' == $inputDate\n ) {\n return '0000-00-00';\n }\n else if ($inputDate instanceof \\DateTime) {\n $returnDate = $inputDate->format('Y-m-d');\n }\n else {\n $returnDate = date('Y-m-d', strtotime(str_replace('/', '-', $inputDate)));\n }\n return $returnDate;\n }", "title": "" }, { "docid": "4791df29685de796f3d90af7d19d611b", "score": "0.53352624", "text": "function convert() {\r\n $this->bangDate = $this->bangla_number( $this->bangDate );\r\n $this->bangYear = $this->bangla_number( $this->bangYear );\r\n }", "title": "" }, { "docid": "a2342cd912f7e58e6102c3741a27a759", "score": "0.53338856", "text": "public function testDateArray(): void\n {\n $date = ['year' => 2014, 'month' => 2, 'day' => 14];\n $this->assertTrue(Validation::date($date));\n $date = ['year' => 'farts', 'month' => 'derp', 'day' => 'farts'];\n $this->assertFalse(Validation::date($date));\n\n $date = ['year' => 2014, 'month' => 2, 'day' => 14];\n $this->assertTrue(Validation::date($date, 'mdy'));\n }", "title": "" }, { "docid": "ad9122e0f9b7ef88fc56d41f64c3b3fd", "score": "0.53298193", "text": "function sbx_rest_prepare_date_response( $date, $utc = true ) {\n\tif ( is_numeric( $date ) ) {\n\t\t$date = new SBX_DateTime( \"@$date\", new DateTimeZone( 'UTC' ) );\n\t\t$date->setTimezone( new DateTimeZone( sbx_timezone_string() ) );\n\t} elseif ( is_string( $date ) ) {\n\t\t$date = new SBX_DateTime( $date, new DateTimeZone( 'UTC' ) );\n\t\t$date->setTimezone( new DateTimeZone( sbx_timezone_string() ) );\n\t}\n\n\tif ( ! is_a( $date, 'SBX_DateTime' ) ) {\n\t\treturn null;\n\t}\n\n\t// Get timestamp before changing timezone to UTC.\n\treturn gmdate( 'Y-m-d\\TH:i:s', $utc ? $date->getTimestamp() : $date->getOffsetTimestamp() );\n}", "title": "" }, { "docid": "50e4e5acc90a6536ec0f910494de2e29", "score": "0.5303814", "text": "public function jsonSerialize() {\n return [\n \"type\" => \"string\",\n \"format\" => \"date-filter\",\n \"description\" => $this->getDescription()\n ];\n }", "title": "" }, { "docid": "5d2c7d5e2ec5622b17d52589dbc00598", "score": "0.52888024", "text": "private function setUpDate(): void\n {\n $this->date = date('Y-m-d');\n }", "title": "" }, { "docid": "3dcd72e4bb264a5d8eb02526aca114a4", "score": "0.5287537", "text": "function convertDate($data) {\n $exp = explode('-', $data);\n $exp = array_reverse($exp);\n $date = implode('-', $exp);\n return $date;\n}", "title": "" }, { "docid": "cd70df9472ce9f00606d294e29bffe58", "score": "0.5286618", "text": "function build_date5(&$formdata)\n{\n\n// $fields = array( 'year' => 'integer', 'mon' => 'integer','mday' => 'intger','full_date'=>'string');\n//\n//\n//\n// foreach ($fields as $key => $type) {\n// $rows[$key] = $this-> safify($formdata[$key], $type);\n// }\n// $rows['full_date'] = \"$rows[year]-$rows[mon]-$rows[mday]\";\n// // $rows['full_date'] =$this-> safify($rows['full_date'] , $type);\n//\n//\n//\n//\n// return $rows;\n}", "title": "" }, { "docid": "3e7e191a3b7ebdd7e5aae1ffc4ca26a2", "score": "0.52837896", "text": "public static function JsonDate($dateTime) {\n\t\t// Mar 9, 2008\n\t\treturn date_format($dateTime, 'M j, Y');\n\t}", "title": "" }, { "docid": "e08b81ec80d7679b7ab9b77d813756f9", "score": "0.5282373", "text": "public function DATE_YY_MM_DD_ARRAY($date)\n\t\t{\t\n\t\t\t$array = array();\n\t\t\t$timestamp = strtotime($date);\n\t\t\t$array['year'] = date('Y', $timestamp);\n\t\t\t$array['month'] = date('m', $timestamp);\n\t\t\t$array['day'] = date('j', $timestamp);\n\t\t\treturn $array;\n\t\t}", "title": "" }, { "docid": "f6f3df22496d6d44b4083ffbc29edcce", "score": "0.52798104", "text": "public function transform( $date )\n\t{\n\t\treturn \\DateTime::createFromFormat( 'Y-m-d H:i:s', $date )->format( $this->format );\n\t}", "title": "" }, { "docid": "ea878ad6dc334e976a304ae9b1c81ad5", "score": "0.5276336", "text": "protected function _modifyData($formData)\n\t{\n\t\t// Convert appointment, which is an array, into a string of YYYY-MM-dd HH:mm:ss\n\t\t$formData[\"appointment\"] = $this->_filter->ArrayToDate($formData[\"appointment\"], $type = \"datetime\");\n\t\treturn $formData;\n\t}", "title": "" }, { "docid": "7d97690bf13c2b1918b03ebdf92c1b49", "score": "0.5254595", "text": "function convert_to($date) {\n\t list($m, $d, $y) = explode('/', $date);\n\t if (checkdate($m, $d, $y)){\n\t\t\t $newdate = DateTime::createFromFormat('m/d/Y', $date )->format('Y-m-d');\n\t\t\t return $newdate;\n}\n}", "title": "" }, { "docid": "5d8d287210730c642789cd5c11b16610", "score": "0.52409446", "text": "function datetoapi($date) {\n if ($date != '' && (strpos($date, '/') == false) && (strpos($date, '-') == true)) {\n if (date_default_timezone_get()) {\n $la_time = new DateTimeZone(date_default_timezone_get());\n } else {\n $la_time = new DateTimeZone('UTC');\n }\n $new_str = new DateTime($date, $la_time);\n $new_str->setTimezone($la_time);\n\n if (getallheadersdata() == 1) {\n return $new_str->format('d/m/Y H:i:s');\n } else {\n return $new_str->format('Y-m-d H:i:s');\n }\n } else {\n \n }\n}", "title": "" }, { "docid": "d82a09f05512ab379dde892387608d0d", "score": "0.52371037", "text": "function write_date($row, $col, $date, $format=0) {\n if (!array_key_exists($row, $this->data)) {\n $this->data[$row] = array();\n }\n $this->data[$row][$col] = new StdClass();\n $this->data[$row][$col]->value = $date;\n $this->data[$row][$col]->type = 'date';\n $this->data[$row][$col]->format = $format;\n }", "title": "" }, { "docid": "d71d816ceb04bd65c4f305a0fdebc4d7", "score": "0.5236463", "text": "static function dateformat($date){\n\t\t\t\treturn DateTime::createFromFormat(Base::instance()->get('dateformat'),$date);\n\t}", "title": "" }, { "docid": "5e9a64ad5d11eaafb8a78b74c5f8976d", "score": "0.52354443", "text": "function setDateFormat($date){\n \treturn date('d-m-Y', strtotime($date));\n }", "title": "" }, { "docid": "96061dda0523a82fd19a2f5f93f0e24a", "score": "0.52262366", "text": "private function formateArrayDates(array $dates) {\n\t\tfor ($i = 0; $i < count($dates); $i++) {\n\t\t\t$dates[$i]->publish_at = $this->formateDateTime($dates[$i]->publish_at, 'DateTimePicker');\n\t\t}\n\t\treturn $dates;\n\t}", "title": "" }, { "docid": "e3a801eb536546b16b3028869ae83a6b", "score": "0.5221704", "text": "public function toArray($name = 'date')\n {\n return parent::toArray($name);\n }", "title": "" }, { "docid": "144cc8e10d77b07c510bb6c0158dc037", "score": "0.5216381", "text": "public function toArray()\n {\n $objectArray = get_object_vars($this);\n\n //Specific data\n if (null !== $objectArray['hourDropin']) {\n $objectArray['hourDropin'] = $objectArray['hourDropin']->format('H:i:s');\n }\n if (null !== $objectArray['hourDropoff']) {\n $objectArray['hourDropoff'] = $objectArray['hourDropoff']->format('H:i:s');\n }\n\n if (null !== $objectArray['prices']) {\n $objectArray['prices'] = $this->getPrices();\n $objectArray['totals'] = $this->getTotals();\n }\n\n\n if (isset($objectArray['dates']) && $objectArray['dates'] !== null) {\n\n $arr = [];\n foreach($this->getDates() as $link) {\n $date = $link->getDate();\n $arr[$date->format('Ymd')] = $date->format('Y-m-d');\n }\n\n ksort($arr);\n\n if(count($arr) > 0) {\n $objectArray['start_date'] = $arr[array_key_first($arr)];\n $objectArray['start_key'] = array_key_first($arr);\n } else {\n $objectArray['start_date'] = null;\n $objectArray['start_key'] = null;\n }\n\n \n $objectArray['dates'] = $arr;\n } else {\n $objectArray['start_date'] = null;\n $objectArray['start_key'] = null;\n }\n\n\n return $objectArray;\n }", "title": "" }, { "docid": "290be016e7c9725f5ffb2e4c8ead7a00", "score": "0.5215639", "text": "public static function sanitizeDate($date) {\n return date('Y-m-d', strtotime($date));\n }", "title": "" }, { "docid": "64b92c4b0034219a94806a73a51c622d", "score": "0.52123755", "text": "private function convertDateFromSQL($date) {\n $arrayDate = date_parse($date);\n if ($arrayDate['error_count']) {\n $stringDate = \"[Unspecified]\";\n } else {\n $stringDate = $arrayDate['month'] . '/' . $arrayDate['day'] . '/' . $arrayDate['year'];\n }\n\n return $stringDate;\n }", "title": "" }, { "docid": "39331783e516ddbd852fc87e0990ebef", "score": "0.5204733", "text": "function randomDate($arr)\n{\n\n foreach ($arr as $key => $value) {\n $num = rand(1376047820, 1476047820);\n $arr[$key]['date'] = date(\"Y-m-d\", $num);\n\n\n }\nreturn $arr;\n\n}", "title": "" }, { "docid": "86ce2cd4ebba2875aa28ecbb26ffba89", "score": "0.5201826", "text": "public function toArray(): array\r\n {\r\n return [\r\n \"day\" => $this->Day,\r\n \"month\" => $this->Month,\r\n \"year\" => $this->Year,\r\n \"unix_timestamp\" => $this->toUnixTimestamp()\r\n ];\r\n }", "title": "" }, { "docid": "b43a15dc52bea7ce0445ba5ecb287ac5", "score": "0.52010024", "text": "function convertUIdate($start, $end, &$ARRAY){\r\n\t$startdate = (empty($start))? '' : $ARRAY[$start];\r\n\t$enddate = (empty($end))? '' : $ARRAY[$end];\r\n\t\r\n\tif(empty($startdate) && empty($enddate)){\r\n\t\treturn;\r\n\t}\r\n\t\r\n\tif(!empty($startdate)){\r\n\t\tlist($sd,$sm,$sy) = explode('/', $startdate);\r\n\t\t$stimestamp = mktime(0,0,0,$sm,$sd,$sy);\r\n\t\tif(empty($enddate)){\r\n\t\t\t$ARRAY[$start] = date('Y-m-d 00:00:00', $stimestamp);\r\n\t\t\treturn;\r\n\t\t}\r\n\t}\r\n\t\r\n\tif(!empty($enddate)){\r\n\t\tlist($ed,$em,$ey) = explode('/', $enddate);\r\n\t\t$etimestamp = mktime(0,0,0,$em,$ed,$ey);\r\n\t\tif(empty($startdate)){\r\n\t\t\t$ARRAY[$end] = date('Y-m-d 00:00:00', $etimestamp);\r\n\t\t\treturn;\r\n\t\t}\r\n\t}\r\n\t\r\n\tif ($stimestamp < $etimestamp){\r\n\t\t$ARRAY[$start] = date('Y-m-d 00:00:00', $stimestamp);\r\n\t\t$ARRAY[$end] = date('Y-m-d 00:00:00', $etimestamp);\r\n\t}else{\r\n\t\t$ARRAY[$end] = date('Y-m-d 00:00:00', $stimestamp);\r\n\t\t$ARRAY[$start] = date('Y-m-d 00:00:00', $etimestamp);\r\n\t}\r\n\r\n}", "title": "" }, { "docid": "bc399e96cc564e3fdbc39e5c5f5a65b7", "score": "0.5200935", "text": "function local_to_iso($date,$date_format)\n{\n $list_date=explode (\"-\",$date);\n if ($date_format=='fr')\n {\n $date=$list_date[2].'-'.$list_date[1].'-'.$list_date[0];\n }\n elseif ($date_format=='en')\n $date=$list_date[2].'-'.$list_date[0].'-'.$list_date[1];\n return $date;\n}", "title": "" }, { "docid": "97d400e7c2a9002059fc9597bfd690c8", "score": "0.51952606", "text": "public function getDateFromValue($value)\n {\n $isMatch = preg_match('/^(?<year>-?(\\d+))(-(?<month>\\d{1,2}))?(?:-(?<day>\\d{1,2}))?$/', $value, $matches);\n if (!$isMatch) {\n throw new \\InvalidArgumentException('Invalid date string');\n }\n $date = [\n 'year' => (int) $matches['year'],\n 'month' => isset($matches['month']) ? (int) $matches['month'] : null,\n 'day' => isset($matches['day']) ? (int) $matches['day'] : null,\n 'month_normalized' => isset($matches['month']) ? (int) $matches['month'] : 1,\n 'day_normalized' => isset($matches['day']) ? (int) $matches['day'] : 1,\n ];\n if ((self::YEAR_MIN > $date['year']) || (self::YEAR_MAX < $date['year'])) {\n throw new \\InvalidArgumentException('Invalid year');\n }\n if ((1 > $date['month_normalized']) || (12 < $date['month_normalized'])) {\n throw new \\InvalidArgumentException('Invalid month');\n }\n if ((1 > $date['day_normalized']) || (31 < $date['day_normalized'])) {\n throw new \\InvalidArgumentException('Invalid day');\n }\n // Adding the date object here to reduce code duplication.\n $date['date'] = new DateTime;\n $date['date']->setDate(\n $date['year'],\n $date['month_normalized'],\n $date['day_normalized']\n )->setTime(0, 0, 0, 0);\n return $date;\n }", "title": "" }, { "docid": "47c3b09430e88257264925df1752d7d3", "score": "0.5192682", "text": "public function setDateAttribute($value)\n {\n $this->attributes['date'] = Carbon::createFromFormat('Y-m-d', $value)->toDateString();\n }", "title": "" }, { "docid": "3053d744c7ce0ca021918646fb6c95ed", "score": "0.5187507", "text": "function serialize(){\r\n\t\treturn serialize(\r\n\t\t\tarray(\"earliest\" => self::$earliestDate,\r\n\t\t\t\"first\" => $this -> firstName,\r\n\t\t\t\"last\" => $this -> lastName,\r\n\t\t\t\"bdate\" => $this -> birthDate,\r\n\t\t\t\"ddate\" => $this -> deathDate,\r\n\t\t\t\"bcity\" => $this -> birthCity,\r\n\t\t\t\"works\" => $this -> artworks\r\n\t\t\t)\r\n\t\t);\r\n\t}", "title": "" }, { "docid": "67bdcbb6c8d690b4908ee87ff210b135", "score": "0.51845807", "text": "function data($data) {\r\n\r\n if ($data == null) {\r\n return '';\r\n } else {\r\n return date('d/m/Y', strtotime($data));\r\n }\r\n }", "title": "" }, { "docid": "4154dc383ba501b5b5c6c1b1c81314a9", "score": "0.51816994", "text": "function parse_date_input(array $input, $append = null) {\n if(!isset($input['Date'.$append]))\n return null;\n if($input['Date'.$append]==\"\"||$input['Year'.$append]==\"\")\n return null;\n $month = cleanInputString($input[\"month\" . $append], 2, \"month\", false);\n $day = cleanInputString($input[\"Date\" . $append], 2, \"Date\", false);\n $year = cleanInputInt($input[\"Year\" . $append], 4, \"Year\");\n try {\n $buffer = new DateTime($day . \"-\" . $month . \"-\" . $year);\n } catch (exception $e) {\n $time = auditLog( $_SERVER['REMOTE_ADDR'], \"EX\");\n auditDump($time, \"error message\", $e->getMessage());\n die(\"Could not parse date\");\n }\n return $buffer;\n}", "title": "" }, { "docid": "d7fcfd0def419825cae0eb1e2ceab921", "score": "0.5178799", "text": "public function convertToJavaScriptDate($data = array())\n {\n $this->redirectUser();\n $graph_data = [];\n foreach ($data as $key => $value) {\n $graph_data[date('D M d Y H:i:s', strtotime($value[0])).\" +0000\"] = $value[1];\n }\n\n return $graph_data;\n }", "title": "" }, { "docid": "49b86a5f845ef710a0fa7150fa6c4f40", "score": "0.51781845", "text": "function dims_getdate() {return date(dims_const::DIMS_DATEFORMAT);}", "title": "" }, { "docid": "662872561e8f5ab7b736850b90ba174c", "score": "0.5175842", "text": "public function prepare($entity, $row) {\n parent::prepare($entity, $row);\n\n // Convert timestamps to allowed date format.\n $entity->field_date = array();\n $entity->field_date[0] = array(\n 'value' => date('c', $row->event_start),\n 'value2' => date('c', $row->event_end),\n );\n }", "title": "" }, { "docid": "8773a1f89552b984ed997f6fa1446ef3", "score": "0.51719385", "text": "function formateDate( &$data )\n {\n if ( strstr( $data, \"/\" ) ) {\n $d = explode( \"/\", $data );\n $rstData = \"$d[2]-$d[1]-$d[0]\";\n $data = $rstData;\n }\n return $data;\n }", "title": "" }, { "docid": "f97de05ef06ebced77a9d133820e0489", "score": "0.5166321", "text": "protected function conformDateFormat()\n {\n $fields = collect(['start_time', 'end_time'])\n ->filter(function ($field) {\n return $this->has($field);\n })\n ->mapWithKeys(function ($field) {\n $value = $this->get($field);\n\n if ($value && preg_match('/\\d{4}-\\d{2}-\\d{2}\\s\\d{2}:\\d{2}$/', $value)) {\n return [$field => Carbon::parse($value.':00')];\n }\n\n return [$field => $value];\n });\n\n $this->merge($fields->toArray());\n }", "title": "" }, { "docid": "7fe1243b8fdea3a375f8199e8fa5a879", "score": "0.5164919", "text": "public function jsonSerialize() {\n\t\t$fields = get_object_vars($this);\n//\t\t$fields[\"postId\"] = $this->postId;\n//\t\t$fields[\"postUserId\"] = $this->postUserId;\n\t\t//format the date so that the front end can consume it\n\t\t$fields[\"postDateTime\"] = round(floatval($this->postDateTime->format(\"U.u\")) * 1000);\n\t\treturn($fields);\n\t}", "title": "" }, { "docid": "f23a5cceef708acf4c9d7b70bccfbd79", "score": "0.5161363", "text": "protected function serializeDate(\\DateTimeInterface $date)\n {\n return $date->format(\\DateTime::ATOM);\n }", "title": "" }, { "docid": "0a71cd3f5457c4551094d3adc4a0f0e1", "score": "0.5159516", "text": "private function convertDate($date){\n return implode('/',array_reverse(explode('-',$date)));\n }", "title": "" }, { "docid": "ec0dc9f3f93d9f0e7415fefb6fe79f90", "score": "0.5156511", "text": "public function formatDates(array $aData) {\n\t\t\t$sPaymentDateFormat = \"d/m/Y\";\n\t\t\t\n\t\t\tforeach($aData as $i => $aDataItem) {\n\t\t\t\t$aData[$i][\"date\"] = date(\"F\", $aData[$i][\"date\"]);\n\t\t\t\t$aData[$i][\"salaryDate\"] = date($sPaymentDateFormat, $aData[$i][\"salaryDate\"]);\n\t\t\t\t$aData[$i][\"bonusDate\"] = date($sPaymentDateFormat, $aData[$i][\"bonusDate\"]);\n\t\t\t}\n\t\t\treturn $aData;\n\t\t}", "title": "" }, { "docid": "b2e2531515f57b03cff957a706ba0ee2", "score": "0.51549697", "text": "public function paramVitaliToDate() {\n\t\t$visite = $this->visiteUser ();\n\t\t$array = array ();\n\t\t$param = ParametriVitali::all ();\n\t\t$data = '';\n\t\tforeach ( $visite as $v ) {\n\t\t\tforeach ( $param as $p ) {\n\t\t\t\tif (($v->id_paziente == $p->id_paziente) && ($v->id_visita == $p->id_parametro_vitale)) {\n\t\t\t\t\t$data = date ( 'd/m/y', strtotime ( $v->visita_data ) );\n\t\t\t\t\t$array [\"$data\"] = $p;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $array;\n\t}", "title": "" }, { "docid": "7ee784aa7e313ab073a20e96bef0f348", "score": "0.5154605", "text": "public function setDate( $date );", "title": "" }, { "docid": "20ed18c4f0dd675c01426fd9fa08c220", "score": "0.5148206", "text": "function formatDate($date) {\n\t\tif ($date == '') return null;\n\t\treturn date('Y-m-d', strtotime($date));\n\t}", "title": "" }, { "docid": "ab86278205ef82039c933089a62cf50e", "score": "0.51388574", "text": "function reformat_date( $date ) {\n if ( isset($date)){\n $date = explode( '/', $date );\n $new_date = $date[2] . '-';\n $new_date .= $date[0] . '-';\n $new_date .= $date[1];\n return $new_date;\n }\n //return $date in format aaaa-ll-zz\n }", "title": "" }, { "docid": "60475e8ec98f4131606745c2734683b6", "score": "0.5132129", "text": "private function mutableDateAttributes()\n {\n return array_merge($this->dates, [\n 'created_at', 'updated_at', 'expired_at', 'logged_at', 'signed_at'\n ]);\n }", "title": "" }, { "docid": "c9b0453ec467af484a90a7a6130d1b2e", "score": "0.5116941", "text": "function date2save($date)\n\t{\n\t\treturn AModel::jdate2save($date, ADATE_FORMAT_MYSQL_DATE, false);\n\t}", "title": "" }, { "docid": "9bf003ce002189b6b989b9ae8598ad11", "score": "0.5113933", "text": "function px_date2string($pxdoc, $value, $format) { }", "title": "" }, { "docid": "03ad699a14728a99844721fead07b710", "score": "0.51086867", "text": "function convert_date ($date) {\n\t\t\t$d = explode(\" \", $date);\n\t\t\t$month = $d[0];\n\t\t\t\tif (intval($month) == 1) { $month = \"January\"; }\n\t\t\t\telseif (intval($month) == 2) { $month = \"February\"; }\n\t\t\t\telseif (intval($month) == 3) { $month = \"March\"; }\n\t\t\t\telseif (intval($month) == 4) { $month = \"April\"; }\n\t\t\t\telseif (intval($month) == 5) { $month = \"May\"; }\n\t\t\t\telseif (intval($month) == 6) { $month = \"June\"; }\n\t\t\t\telseif (intval($month) == 7) { $month = \"July\"; }\n\t\t\t\telseif (intval($month) == 8) { $month = \"August\"; }\n\t\t\t\telseif (intval($month) == 9) { $month = \"September\"; }\n\t\t\t\telseif (intval($month) == 10) { $month = \"October\"; }\n\t\t\t\telseif (intval($month) == 11) { $month = \"November\"; }\n\t\t\t\telseif (intval($month) == 12) { $month = \"December\"; }\n\t\t\t\telse { $month = \"N/A\"; }\n\t\t\t$date = $month.\" \".$d[1].\", \".$d[2].\" at \".$d[3].\":\".$d[4].\":\".$d[5].\" \".strtoupper($d[6]).$this->o.\".\";\n\t\t\treturn $date;\n\t\t}", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "256977da604d7a633d0e36222864e82f", "score": "0.0", "text": "public function destroy($id)\n {\n Precos::find($id)->delete();\n\n Session::flash('successo', 'Preço Excluida com Successo');\n\n return redirect()->route('precos.index');\n }", "title": "" } ]
[ { "docid": "4b8255c05a264d5d61f546d7bcd507ce", "score": "0.6672584", "text": "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "title": "" }, { "docid": "d9f10892d48fdfd7debb2a97681f0912", "score": "0.6659381", "text": "public function destroy(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "4c5eebff0d9ed2cb7fdb134bb4660b64", "score": "0.6635911", "text": "public function removeResource($resourceID)\n\t\t{\n\t\t}", "title": "" }, { "docid": "9128270ecb10fe081d7b27ed99999426", "score": "0.6632799", "text": "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 }", "title": "" }, { "docid": "ca4c6cd0f72c6610d38f362f323ea885", "score": "0.6626075", "text": "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 }", "title": "" }, { "docid": "22e99170ed44ab8bba05c4fea1103beb", "score": "0.65424126", "text": "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "title": "" }, { "docid": "08c524d5ed1004452df540e76fe51936", "score": "0.65416265", "text": "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "title": "" }, { "docid": "e615a714c70c0f1f81aa89e434fd9645", "score": "0.64648265", "text": "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "title": "" }, { "docid": "9699357cc7043ddf9be8cb5c6e2c5e9c", "score": "0.62882507", "text": "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "title": "" }, { "docid": "c14943151fb5ef8810fedb80b835112e", "score": "0.6175931", "text": "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "title": "" }, { "docid": "507601379884bfdf95ac02c4b7d340a0", "score": "0.6129922", "text": "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 }", "title": "" }, { "docid": "60da5cdaab3c2b4a3de543383ff7326a", "score": "0.60893893", "text": "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}", "title": "" }, { "docid": "ccaddaf8c48305cf51ff4f4e87f7f513", "score": "0.6054415", "text": "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}", "title": "" }, { "docid": "b96521ac0a45d4af2abd98a169f470e6", "score": "0.60428125", "text": "public function delete(): void\n {\n unlink($this->getPath());\n }", "title": "" }, { "docid": "5bb36f163668a235aa80821b0746c2bc", "score": "0.60064924", "text": "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "b549ee1a3239f6720bb4eae802ea1753", "score": "0.5930772", "text": "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "title": "" }, { "docid": "02436278b72d788803fbd1efa4067eef", "score": "0.59199584", "text": "public function delete(): void\n {\n unlink($this->path);\n }", "title": "" }, { "docid": "67c2e1a96c6af4251ec2fe2211864e9b", "score": "0.5919811", "text": "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "title": "" }, { "docid": "e37d38c43b6eab9f0b20965c7e9b2769", "score": "0.5904504", "text": "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "title": "" }, { "docid": "5336825b23ae57c225d3534fd55b1861", "score": "0.5897263", "text": "public function remove() {}", "title": "" }, { "docid": "5336825b23ae57c225d3534fd55b1861", "score": "0.58962846", "text": "public function remove() {}", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "140b6c44eef77c79cbd9edc171fe8e75", "score": "0.5880124", "text": "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}", "title": "" }, { "docid": "72dc5bfa6ca53ddd2451fc0e14e6fcfe", "score": "0.58690923", "text": "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "title": "" }, { "docid": "b0b6f080ff9e00a37e1e141de8af472d", "score": "0.5863659", "text": "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 }", "title": "" }, { "docid": "c6821270bce7c29555a3d0ca63e8ff36", "score": "0.5809161", "text": "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "title": "" }, { "docid": "3053bc6cd29bad167b4fd69fe4e79d55", "score": "0.57735413", "text": "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 }", "title": "" }, { "docid": "81bac0e5ac8e3c967ba616afac4bfb1c", "score": "0.5760811", "text": "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "title": "" }, { "docid": "385e69d603b938952baeb3edc255a4ea", "score": "0.5753559", "text": "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}", "title": "" }, { "docid": "750ee1857a66f841616cd130d5793980", "score": "0.57492644", "text": "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 }", "title": "" }, { "docid": "7e6820819c67c0462053b11f5a065b9f", "score": "0.5741712", "text": "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "title": "" }, { "docid": "aa404011d4a23ac3716d0c9c1360bd20", "score": "0.57334286", "text": "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 }", "title": "" }, { "docid": "9a5dfeb522e8b8883397ebfbc0e9d95b", "score": "0.5726379", "text": "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "title": "" }, { "docid": "883f70738d6a177cbdf3fcaec9e9c05f", "score": "0.57144034", "text": "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "title": "" }, { "docid": "2d462647e81e7beec7f81e7f8d6c6d44", "score": "0.57096", "text": "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 }", "title": "" }, { "docid": "a165b9f8668bef9b0f1825244b82905e", "score": "0.5707689", "text": "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 }", "title": "" }, { "docid": "4a66b1c57cede253966e4300db4bab11", "score": "0.5705895", "text": "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "title": "" }, { "docid": "2709149ed9daaf760627fbe4d2405e47", "score": "0.5705634", "text": "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 }", "title": "" }, { "docid": "67396329aa493149cb669199ea7c214f", "score": "0.5703902", "text": "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "title": "" }, { "docid": "e41dcd69306378f20a25f414352d6e6b", "score": "0.5696585", "text": "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 }", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "b2dc8d50c7715951df467e962657a927", "score": "0.56780374", "text": "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "title": "" }, { "docid": "88290b89858a6178671f929ae0a7ccba", "score": "0.5677111", "text": "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 }", "title": "" }, { "docid": "2a4e3a8a8005ff16e99e418fc0fb7070", "score": "0.5657287", "text": "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 }", "title": "" }, { "docid": "8b94ff007c35fa2c7485cebe32b8de85", "score": "0.5648262", "text": "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 }", "title": "" }, { "docid": "2752e2223b3497665cc8082d9af5a967", "score": "0.5648085", "text": "public function delete($path, $data = null);", "title": "" }, { "docid": "8cf7657c92ed341a5a4e1ac7b314cf43", "score": "0.5648012", "text": "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 }", "title": "" }, { "docid": "6d5e88f00765b5e87a96f6b729e85e80", "score": "0.5640759", "text": "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 }", "title": "" }, { "docid": "8d2b25e8c52af6b6f9ca5eaf78a8f1f3", "score": "0.5637738", "text": "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "title": "" }, { "docid": "f51aa1f231aecb530fa194d38c843872", "score": "0.5629985", "text": "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 }", "title": "" }, { "docid": "55778fabf13f94f1768b4b22168b7424", "score": "0.5619264", "text": "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 }", "title": "" }, { "docid": "9ab5356a10775bffcb2687c49ca9608f", "score": "0.56167465", "text": "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "title": "" }, { "docid": "899b20990ab10c8aa392aa33a563602b", "score": "0.5606877", "text": "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 }", "title": "" }, { "docid": "29d3e4879d0ed5074f12cb963276b7cc", "score": "0.56021434", "text": "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "title": "" }, { "docid": "4a4701a0636ba48a45c66b76683ed3b3", "score": "0.5601949", "text": "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 }", "title": "" }, { "docid": "342b5fc16c6f42ac6826e9c554c81f4d", "score": "0.55992156", "text": "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 }", "title": "" }, { "docid": "97e50e61326801fa4efc3704e9dd77c1", "score": "0.5598557", "text": "public function revoke($resource, $permission = null);", "title": "" }, { "docid": "735f27199050122f4622faba767b3c80", "score": "0.55897516", "text": "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 }", "title": "" }, { "docid": "0bf714a7cb850337696ea9631fca5494", "score": "0.5581397", "text": "function delete($path);", "title": "" }, { "docid": "975326d3c6d5786788886f6742b11b44", "score": "0.5566926", "text": "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "title": "" }, { "docid": "ea73af051ca124bba926c5047e1f799b", "score": "0.5566796", "text": "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "title": "" }, { "docid": "a85f6f9231c5a5b648efc0e34b009554", "score": "0.55642897", "text": "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 }", "title": "" }, { "docid": "9ef8b8850e1424f439f75a07b411de21", "score": "0.55641", "text": "public function remove($filePath){\n return Storage::delete($filePath);\n }", "title": "" }, { "docid": "a108cd06e3f66bf982b8aa3cd146a4e9", "score": "0.5556583", "text": "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 }", "title": "" }, { "docid": "7fbd1a887ad4dca00687bb4abce1ae49", "score": "0.5556536", "text": "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "title": "" }, { "docid": "fa18511086fe5d1183bd074bfc10c6a2", "score": "0.5550097", "text": "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "title": "" }, { "docid": "69bff5e9e4c411daf3e7807a7dd11559", "score": "0.5543172", "text": "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 }", "title": "" }, { "docid": "94cb51fff63ea161e1d8f04215cfe7bf", "score": "0.55422723", "text": "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 }", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "0005f2e6964d036d888b5343fa80a1b1", "score": "0.55371785", "text": "public function deleted(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "986e2f38969cc302a2f6f8374b767ca1", "score": "0.55365825", "text": "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 }", "title": "" }, { "docid": "56658901e8b708769aa07c96dfbe3f61", "score": "0.55300397", "text": "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "title": "" }, { "docid": "2d63e538f10f999d0646bf28c44a70bf", "score": "0.552969", "text": "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 }", "title": "" }, { "docid": "b36cf6614522a902b216519e3592c3ba", "score": "0.55275744", "text": "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 }", "title": "" }, { "docid": "49dd28666d254d67648df959a9c54f52", "score": "0.55272335", "text": "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "16f630321e1871473166276f54219ee3", "score": "0.5525997", "text": "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}", "title": "" }, { "docid": "f79bb84fccbc8510950d481223fa2893", "score": "0.5525624", "text": "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 }", "title": "" }, { "docid": "dc750acc8639c8e37ae9a3994fa36c91", "score": "0.5523911", "text": "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}", "title": "" }, { "docid": "a298a1d973f91be0033ae123818041d0", "score": "0.5521122", "text": "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "title": "" }, { "docid": "909ecc5c540b861c88233aaecf4bde3b", "score": "0.5517412", "text": "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 }", "title": "" } ]
02d26f9f4b2df169df92e09cc0b90691
Test invalid variable type.
[ { "docid": "9930bcc0a9f91b22715fe9319aa8bfeb", "score": "0.6793872", "text": "public function testInvalidVariableType(): void\n {\n $mock = $this->getMockForTrait(ObjectTrait::class);\n\n $this->expectException(InvalidArgumentException::class);\n\n $mock->ensureObject(PivotFacet::class, true);\n }", "title": "" } ]
[ { "docid": "b3b700f32a06f205d15595bd41a0ee21", "score": "0.68153673", "text": "function checkDataTypes($param){\r\n if (strpos($param, '@') !== false) {\r\n processVariable($param);\r\n } else {\r\n fwrite(STDERR, \"ERROR: Wrong parameter!\\n\");\r\n exit(23);\r\n }\r\n }", "title": "" }, { "docid": "f8dfed2a784340c65d2a512294bed687", "score": "0.6788712", "text": "function checkVariableType($type, $value){\r\n if ($type == \"nil\") {\r\n if ($value == \"nil\") {\r\n xmlAddArgument(\"nil\", $value);\r\n return;\r\n } else {\r\n fwrite(STDERR, \"ERROR: Wrong parameter!\\n\");\r\n exit(23);\r\n }\r\n }\r\n\r\n $match = false;\r\n switch ($type) {\r\n case \"int\":\r\n if ($value[0] == '-') {\r\n $value = substr($value, 1);\r\n if (ctype_digit(strval($value)) || empty($value)) {\r\n $match = true;\r\n $value = \"-\" . $value;\r\n break;\r\n }\r\n }\r\n\r\n if (ctype_digit(strval($value)) || empty($value)) {\r\n $match = true;\r\n }\r\n break;\r\n case \"string\":\r\n if (is_string($value)) {\r\n checkString($value);\r\n $match = true;\r\n } else if (empty($value)){\r\n $match = true;\r\n }\r\n break;\r\n case \"bool\":\r\n if ($value == \"true\" || $value == \"false\") {\r\n $match = true;\r\n }\r\n break;\r\n }\r\n\r\n if ($match) {\r\n xmlAddArgument($type, $value);\r\n } else {\r\n fwrite(STDERR, \"ERROR: Wrong parameter!\\n\");\r\n exit(23);\r\n }\r\n }", "title": "" }, { "docid": "f4c0d7a21fe2a62839e2dcf03ce59fc3", "score": "0.67859846", "text": "function checkType($instr) {\n if (!preg_match(\"/^(nil|int|bool|string)$/\", $instr)) {\n printExit(\"Syntax or lexical error\\n\", 23);\n }\n}", "title": "" }, { "docid": "c1cd1f3f15a9dee0d22a49e59d594827", "score": "0.6623884", "text": "function checkVars(array $args, string ...$validTypes): void\n{\n $validParams = [\n 'integer',\n 'float',\n 'string',\n 'boolean',\n 'array',\n 'object'\n ];\n\n // validate type parameter\n foreach ($validTypes as $param) {\n if (!in_array($param, $validParams)) {\n throw new ValidTypeException();\n }\n }\n\n foreach ($args as $arg) {\n $argType = gettype($arg);\n if ($argType === 'double') {\n $argType = 'float';\n }\n\n if (!in_array($argType, $validTypes, true)) {\n $exceptionClass = ucfirst($argType) . 'Exception';\n throw new $exceptionClass();\n }\n }\n}", "title": "" }, { "docid": "9cdc9401f482a0cadeccb329555bd36f", "score": "0.6591055", "text": "public function testValidInvalidTypes(): void\n {\n $router = new \\Mezon\\Router\\Router();\n $router->addRoute('/catalog/[i:cat_id]/item/[unexisting-type-trace:item_id]/', [\n $this,\n 'helloWorldOutput'\n ]);\n\n try {\n $router->callRoute('/catalog/1024/item/2048/');\n $this->assertFalse(true, 'Exception expected');\n } catch (\\Exception $e) {\n $this->assertFalse(false, '');\n }\n }", "title": "" }, { "docid": "30809f406d9ef4f2d55d291b01402df8", "score": "0.65373266", "text": "public function testInvalidType(): void\n {\n $router = new \\Mezon\\Router\\Router();\n $router->addRoute('/catalog/[unexisting-type:i]/item/', [\n $this,\n 'helloWorldOutput'\n ]);\n\n try {\n $router->callRoute('/catalog/1024/item/');\n $this->assertFalse(true, 'Exception expected');\n } catch (\\Exception $e) {\n $this->assertFalse(false, '');\n }\n }", "title": "" }, { "docid": "887f3716e271d76916c8409765159fb3", "score": "0.6498593", "text": "public function testValidTypes(): void\n {\n $exception = '';\n $router = new \\Mezon\\Router\\Router();\n $router->addRoute('/catalog/[i:cat_id]/item/[i:item_id]/', [\n $this,\n 'helloWorldOutput'\n ]);\n\n try {\n $router->callRoute('/catalog/1024/item/2048/');\n } catch (\\Exception $e) {\n $exception = $e->getMessage();\n }\n\n $msg = \"Illegal parameter type\";\n\n $this->assertFalse(strpos($exception, $msg));\n }", "title": "" }, { "docid": "10ffae8cc15bcd877135da3eee0c11cb", "score": "0.6415179", "text": "function enforce_special_type ($var, $type) {\n global $enforceable_data_types, $recognised_SQL_types;\n switch ($type) {\n case 'type':\n if (!in_array ($var, $enforceable_data_types)) {\n if (substr ($var, 0, 4) != 'eval') {\n $var = false;\n }\n }\n break;\n \n case 'sqltype':\n $found = false;\n foreach ($recognised_SQL_types as $group => $sql_types) {\n foreach ($sql_types as $sql_type) {\n if ($sql_type == $var) {\n $found = true;\n break 2;\n }\n }\n }\n if (!$found) {\n $var = false;\n }\n break;\n \n default:\n $var = false;\n }\n //echo \"Result: $var<br>\\n\";\n return $var;\n}", "title": "" }, { "docid": "16a73e363d9c7608b0eff39269e65645", "score": "0.6373951", "text": "public function checkType($input){\n if ( $input != 'int' and $input != 'bool' and $input != 'string' and $input != 'nil' ) {\n throw new LexSynError(\"Error! Wrong type selected!\\n\");\n }\n }", "title": "" }, { "docid": "2f71a8a5f2227f02d0131b3d3691eead", "score": "0.6371043", "text": "public function testCheckVariableTypeIsPresent()\n {\n $query = 'query QueryWithParams($param:){\n someField\n }';\n\n $parser = new Parser();\n $parser->parse($query);\n\n self::assertNotEmpty($parser->getErrors());\n }", "title": "" }, { "docid": "862b3490fd6252c60217ccc236c4deb4", "score": "0.63512206", "text": "function varTest($var, $type, $not_null = false, $mustbe = false, $mustcheck = false){\n $result=array(\n 'fail' => false,\n 'var' => $var,\n 'type' => $type,\n 'not_null' => $not_null,\n 'mustcheck' => $mustcheck,\n 'mustbe' => $mustbe\n );\n\n switch($type){\n case 'int':\n if(!is_int($var)){\n $result['fail'] = true;\n $result['reason'] = 'Var is not integer!';\n return $result; \n }\n break;\n\n case 'float':\n if(!is_float($var)){\n $result['fail'] = true;\n $result['reason'] = 'Var is not float!';\n return $result; \n }\n break;\n\n case 'string':\n if(!is_string($var)){\n $result['fail'] = true;\n $result['reason'] = 'Var is not string!';\n return $result; \n }\n break;\n\n case 'bool':\n if(!is_bool($var)){\n $result['fail'] = true;\n $result['reason'] = 'Var is not bool!';\n return $result; \n }\n break;\n\n case 'array':\n if(!is_array($var)){\n $result['fail'] = true;\n $result['reason'] = 'Var is not array!';\n return $result; \n }\n break;\n case 'object':\n if(!is_object($var)){\n $result['fail'] = true;\n $result['reason'] = 'Var is not object!';\n return $result; \n }\n break; \n }//end of switch\n if($type != 'bool' and $not_null and empty($var)){\n $result['fail'] = true;\n $result['reason'] = 'Variable is empty!';\n return $result; \n }\n if(($mustcheck or $mustbe) and $var !== $mustbe){\n $result['fail'] = true;\n $result['reason'] = 'Variable is not equal ' . $mustbe . '!';\n return $result; \n }\n return $result;\n }", "title": "" }, { "docid": "a8ac2412df80b876151d70c7eddff7fa", "score": "0.6322918", "text": "abstract protected function testTypeNotNull($input) : bool;", "title": "" }, { "docid": "e30a292d30f70c8deb01764f3c8d06eb", "score": "0.6303224", "text": "public function test_type_invalid()\n\t{\n\t\t$page = new Page;\n\t\t$page->type = \"ThisIsInvalid\";\n\t}", "title": "" }, { "docid": "4c1cc42d23cce19545cd268a66ab58f1", "score": "0.6266269", "text": "public function test_setType_notValid_throw()\r\n\t{\r\n\t\t$this->service->setType(\"aDummyNonValidValue\");\r\n\t}", "title": "" }, { "docid": "696d548d9ef59241f9b8fe3264594df4", "score": "0.62244004", "text": "#[@test]\n public function varTypeMixedVariant() {\n $this->assertEquals(Type::$VAR, Type::forName('mixed'));\n }", "title": "" }, { "docid": "26aaec2945c99f348fba112edf18fb7f", "score": "0.6219104", "text": "private function checkType()\n {\n $correctValuesArr = array('experiments', 'items');\n if (!in_array($this->table, $correctValuesArr)) {\n throw new Exception('Bad type!');\n }\n }", "title": "" }, { "docid": "433c91434056524a91f292a71a418a4c", "score": "0.61695194", "text": "public function isNotAnInteger()\n {\n $this->failIf(is_int($this->data[0]));\n }", "title": "" }, { "docid": "0faebf9f40cbaf8453e62ea370361138", "score": "0.616717", "text": "public static function assertNumeric($var){\n\t\t#if[compile-time]\n\t\tif(is_int($var)==false){\n\t\t\tthrow new CoreException(\"Se esperaba recibir un valor entero\");\n\t\t}\n\t\t#endif\n\t}", "title": "" }, { "docid": "bb8772217cda0bb0676860d4ed370a1b", "score": "0.6141626", "text": "public abstract function validateType();", "title": "" }, { "docid": "6654839f7d317da99fc271955fdc9e10", "score": "0.6120632", "text": "#[@test]\n public function intIsInstanceOfVar() {\n $this->assertTrue(Type::$VAR->isInstance(0));\n }", "title": "" }, { "docid": "5772794bd6172455b5c5e3ab2698cb5e", "score": "0.6069036", "text": "#[@test]\n public function stringIsInstanceOfVar() {\n $this->assertTrue(Type::$VAR->isInstance(''));\n }", "title": "" }, { "docid": "df7275085f432fc05491663b4706f595", "score": "0.6036195", "text": "public function testMisValidFence() {\n $numPosts = 'lemon';\n $numRailings = 6.7;\n $this->expectException(TypeError::class);\n isValidFence($numPosts, $numRailings);\n }", "title": "" }, { "docid": "1a7c209d500bd7bdc48695b4581d0d98", "score": "0.60330456", "text": "function _verifyVarChar($value)\r\n{\r\n\tif ( strstr( $value, \"VARCHAR\" ) )\r\n\t{\r\n\t\t$val=str_replace( \"VARCHAR\", \"\", $value);\r\n\t\t$val=trim($val);\r\n\t\tif ( $val[0] == '(' && $val[ strlen($val) - 1 ] == ')' )\r\n\t\t{\r\n\t\t\t$val = str_replace( \"(\", \"\", $val );\r\n\t\t\t$val = str_replace( \")\", \"\", $val );\r\n\t\t\t$val = (int)$val;\r\n\t\t\treturn !( $val == 0 );\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n}", "title": "" }, { "docid": "aca05f83acd95048fc70d8811b5da335", "score": "0.6028911", "text": "public function test($var)\n {\n try {\n $test = $this->cast($var);\n } catch (Type_Exception $tex) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "795edcbfb9dc0a77e94016a7f0502822", "score": "0.5987678", "text": "function check_var($opcode, $instruction, $arg_no){\n if(preg_match(\"/^(LF|GF|TF)@[_\\-$&%*!?A-Ža-ž][_\\-$&%*!?A-Ža-ž0-9]+$/\", $instruction)) {\n $arg = $opcode->addChild('arg'.$arg_no, $instruction);\n $arg->addAttribute('type', 'var');\n return true;\n }else{return false;}\n}", "title": "" }, { "docid": "6f17534c0d57e92d2927654f9dd7b64f", "score": "0.59857506", "text": "public function testValidIsFalse()\n {\n static::assertFalse(FacetType::isValid('foo'));\n }", "title": "" }, { "docid": "3c28de4f822185f64571906ff00e61ad", "score": "0.59803253", "text": "function checkType($var)\n\t{\n\t\tswitch (gettype($var)) {\n\t\t\tcase \"resource\":\n\t\t\t\t$this->varIsResource($var);\n\t\t\t\tbreak;\n\t\t\tcase \"object\":\n\t\t\t\t$this->varIsObject($var);\n\t\t\t\tbreak;\n\t\t\tcase \"array\":\n\t\t\t\t$this->varIsArray($var);\n\t\t\t\tbreak;\n\t\t\t/*\n\t\t\tcase \"boolean\":\n\t\t\t\t$this->varIsBoolean($var);\n\t\t\t\tbreak;\n\t\t\t*/\n\t\t\t/*\n\t\t\tcase \"NULL\":\n\t\t\t\t$this->html .= \"NULL\";\n\t\t\t\tbreak;\n\t\t\t*/\n\t\t\tcase \"string\":\n\t\t\t\t$this->varIsString($var);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\t$this->varIsSimple($var);\n\t\t\t/*\n\t\t\t$var=($var==\"\") ? \"[empty string]\" : $var;\n\t\t\t$this->html .= \"<table cellspacing=0><tr>\\n<td>\".$var.\"</td>\\n</tr>\\n</table>\\n\";\n\t\t\tbreak;\n\t\t\t*/\n\t\t}\n\t}", "title": "" }, { "docid": "ad1ac1128037fc3ad8032d4ce57f75f4", "score": "0.5961844", "text": "private function testType($type)\n {\n if (false === in_array($type, array('warning', 'error', 'success', 'info'))) {\n throw new AlertTypeException($type.' is not a right type. use warning, error, success, info');\n }\n }", "title": "" }, { "docid": "66cac4c885c90839ab0610cf1f5c205b", "score": "0.59459156", "text": "public function testIsTypeReturnFalse()\n {\n $this->assertEquals(\n false, \n Util::isType('hello', 'type')\n );\n\t}", "title": "" }, { "docid": "c822050f828262eab658557a6c787883", "score": "0.59304166", "text": "function testInvalidInt() \n {\n $badvalue = \"10\";\n $this->expectException(Exception::class);\n $this->item->int = $badvalue;\n }", "title": "" }, { "docid": "46bf258ee44d1786bc9ada6bbf3d1e22", "score": "0.5916743", "text": "public function testIsNotAValidDuration()\n {\n $this->assertEquals(\n false, \n Util::isDuration('MALFORMED')\n );\n\t}", "title": "" }, { "docid": "0851a3eb3b7773f9dd97b7959ff898b0", "score": "0.5907646", "text": "public function testValidateFieldBadContentType()\n {\n $this->utility->impersonate('editor');\n\n list($type, $entry) = $this->_createTestTypeAndEntry();\n\n $this->getRequest()->setParam('contentType', 'doesnotexist');\n $this->getRequest()->setParam('field', 'fieldName');\n $this->dispatch('/content/validate-field');\n $this->assertModule('error');\n $this->assertController('index');\n $this->assertAction('error');\n\n $responseBody = $this->getResponse()->getBody();\n $this->assertRegexp('/Cannot fetch record \\'doesnotexist\\'. Record does not exist./', $responseBody);\n }", "title": "" }, { "docid": "0a949a5a84f4d34caa932887ebbd7a06", "score": "0.59054416", "text": "public function isNotNumeric()\n {\n $this->failIf(is_numeric($this->data[0]));\n }", "title": "" }, { "docid": "b22afe76006d21b7b9be1bbb08407c7a", "score": "0.58854866", "text": "public function testMissingVariableThrowsError()\n {\n $this->expectException(RuntimeError::class);\n $this->view->render('missing_variable', false);\n }", "title": "" }, { "docid": "e4d4b44e25d3771b7b48df07f3ef9d62", "score": "0.5861603", "text": "public function testNotString(): void\n {\n $validator = new PrintableValidator();\n $result = $validator->validate(9);\n\n $this->assertFalse($result->isValid());\n }", "title": "" }, { "docid": "8db5003b29345394515cf126bb764245", "score": "0.58461833", "text": "public function testGetFieldTypeExceptionUntyped(): void\n {\n // setup\n $fieldsSet = new FieldsSet($this->dataSet());\n $this->expectException(\\Exception::class);\n\n // test body and assertions\n $fieldsSet->getFieldType('untyped');\n }", "title": "" }, { "docid": "4fcbf58c057ff56de1e1c5a8097ca4f7", "score": "0.58317405", "text": "public function testIsThereAnySyntaxError(){\n $var = new aldorg\\validater\\Validater;\n $this->assertTrue(is_object($var));\n unset($var);\n }", "title": "" }, { "docid": "5d23ea2ef50bcfed50bae35026a71bbc", "score": "0.5824375", "text": "public function testInvalidInputType($data) {\n\t\t$this->expectException(InvalidArgument::class);\n\t\t$this->expectExceptionMessage('Argument #1 ($hostname) must be of type string|Stringable');\n\n\t\tIdnaEncoder::encode($data);\n\t}", "title": "" }, { "docid": "0864b02a023fd3f5d17116c52ed42b9d", "score": "0.5823806", "text": "protected function is_valid_field($data){\n $tvName = $data->field;\n $tv = $this->modx->getObject('modTemplateVar',array('name'=>$tvName));\n return ($tv instanceof modTemplateVar);\n }", "title": "" }, { "docid": "a79675b1c0ad3f90e03aa4ca3f0be564", "score": "0.5809253", "text": "public function testElggApiGettersInvalidTypeUsingTypesAsString() {\n\t\t$type_arr = $this->getRandomInvalids();\n\t\t$type = $type_arr[0];\n\n\t\t$options = array(\n\t\t\t'types' => $type\n\t\t);\n\n\t\t$es = elgg_get_entities($options);\n\t\t$this->assertFalse($es);\n\t}", "title": "" }, { "docid": "18ca0e490568c4f9a36047fa6410ea89", "score": "0.58067244", "text": "function PMA_isValid(&$var, $type = 'length', $compare = null)\n{\n if (! isset($var)) {\n // var is not even set\n return false;\n }\n\n if ($type === false) {\n // no vartype requested\n return true;\n }\n\n if (is_array($type)) {\n return in_array($var, $type);\n }\n\n // allow some aliaes of var types\n $type = strtolower($type);\n switch ($type) {\n case 'identic' :\n $type = 'identical';\n break;\n case 'len' :\n $type = 'length';\n break;\n case 'bool' :\n $type = 'boolean';\n break;\n case 'float' :\n $type = 'double';\n break;\n case 'int' :\n $type = 'integer';\n break;\n case 'null' :\n $type = 'NULL';\n break;\n }\n\n if ($type === 'identical') {\n return $var === $compare;\n }\n\n // whether we should check against given $compare\n if ($type === 'similar') {\n switch (gettype($compare)) {\n case 'string':\n case 'boolean':\n $type = 'scalar';\n break;\n case 'integer':\n case 'double':\n $type = 'numeric';\n break;\n default:\n $type = gettype($compare);\n }\n } elseif ($type === 'equal') {\n $type = gettype($compare);\n }\n\n // do the check\n if ($type === 'length' || $type === 'scalar') {\n $is_scalar = is_scalar($var);\n if ($is_scalar && $type === 'length') {\n return (bool) strlen($var);\n }\n return $is_scalar;\n }\n\n if ($type === 'numeric') {\n return is_numeric($var);\n }\n\n if (gettype($var) === $type) {\n return true;\n }\n\n return false;\n}", "title": "" }, { "docid": "53c9609629fd5a47bac1e744ba299741", "score": "0.57905585", "text": "function validateDatatype($values, $types)\n {\n foreach ($values as $v) {\n $type = gettype($v);\n //echo \"\\nValidation: data type for property $v: $type\";\n if (!in_array($type, $types)) {\n throw new Exception();\n }\n }\n }", "title": "" }, { "docid": "cb7f7564a317dad762838017e37e1386", "score": "0.5780217", "text": "public function isNotAString()\n {\n $this->failIf(is_string($this->data[0]));\n }", "title": "" }, { "docid": "53c96c9ec89bb64ac4af32babbf927c9", "score": "0.5780045", "text": "public static function checkVariableValidity($var){\n if( $var != null && (isset($var) == 1) && ( empty($var) != 1) ){\n return true;\n } \n return false;\n }", "title": "" }, { "docid": "bbce710e5bc6a44f012b54e25e36f0c5", "score": "0.57660896", "text": "public function testTestWithInvalidValue() {\r\n\t\t$this->assertFalse ( $this->testObject->test ( 321 ), 'incorrect validation result with invalid integer test' );\r\n\t}", "title": "" }, { "docid": "0f2beab7a062e61d46c94439f9e768c7", "score": "0.576501", "text": "public function testValidateNumeric(){\n $var = new aldorg\\validater\\Validater;\n $this->assertTrue($var->validateNumeric(1) == 'true');\n $this->assertTrue($var->validateNumeric(\"1\") == 'true');\n $this->assertTrue($var->validateNumeric(1.0) == 'true');\n $this->assertTrue($var->validateNumeric(\"1.0\") == 'true');\n $this->assertTrue($var->validateNumeric(\"number\") == 'false');\n unset($var);\n }", "title": "" }, { "docid": "14b0334ca3f63a9af18063b77b2cb75f", "score": "0.57620496", "text": "public function testInvalidValue()\n {\n $this->assert\n ->exception(function () {\n (new \\Recurrence\\RruleTransformer\\IntervalTransformer())->transform('FREQ=MONTHLY;DTSTART=20170520;INTERVAL=WRONG');\n })\n ->isInstanceOf(\\InvalidArgumentException::class)\n ;\n }", "title": "" }, { "docid": "6e9422a41a88131c91fa6851402e522c", "score": "0.5752", "text": "function test_non_valid_type()\n\t{\n\t\ttry {\n\t\t\t$this->config->cascadeEditConfig('auth.*', 'bebop', 'Raphael', 'Donatello');\n\t\t} catch (Exception $e) {\n\t\t\t$this->assertEquals(\"Unexpected type: bebop is not valid for config parameter replacement\", $e->getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "0de502bcfaa7e43376aecc01538bcfdb", "score": "0.57503194", "text": "function falsa($var)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn($var==false);\n\t\t\t\t\t}", "title": "" }, { "docid": "3aa7174002d2efd5d725bf900628a370", "score": "0.5748935", "text": "public function testDensitySetTypeFailed()\n {\n try {\n $value = new Zend_Measure_Density('-100', Zend_Measure_Density::STANDARD, 'de');\n $value->setType('Density::UNKNOWN');\n $this->fail('Exception expected because of unknown type');\n } catch (Zend_Measure_Exception $e) {\n // success\n }\n }", "title": "" }, { "docid": "5df29995096b8c44a772690ba58907ad", "score": "0.57483685", "text": "public function testDensityUnknownType()\n {\n try {\n $value = new Zend_Measure_Density('100', 'Density::UNKNOWN', 'de');\n $this->fail('Exception expected because of unknown type');\n } catch (Zend_Measure_Exception $e) {\n // success\n }\n }", "title": "" }, { "docid": "2b78b19850be6db00a9b017a8c213c93", "score": "0.5748208", "text": "public function testCheckForSyntaxError()\n {\n $termii = new Termii;\n $this->assertTrue(is_object($termii));\n unset($termii);\n }", "title": "" }, { "docid": "1f489fdaba50becc86abdcd1e70c76ae", "score": "0.57360476", "text": "function validateType($data)\r\n {\r\n // Only do anything if type is set.\r\n if (!$this->type) return;\r\n\r\n if (!is($this->type, $data))\r\n {\r\n throw new TypeException();\r\n }\r\n }", "title": "" }, { "docid": "01d110595d448a9f40d02437a773e594", "score": "0.5733974", "text": "public function test_isPlaceholder_bugNumeric() : void\n {\n $text = '{showvar: $FOO}';\n\n $safeguard = Mailcode::create()->createSafeguard($text);\n\n $placeholders = $safeguard->getPlaceholdersCollection()->getStrings();\n\n foreach($placeholders as $placeholder)\n {\n if($safeguard->isPlaceholder($placeholder.'.'))\n {\n $this->fail('Should not find a placeholder.');\n }\n }\n\n $this->addToAssertionCount(1);\n }", "title": "" }, { "docid": "a760cbb67da4d157cbabbbea06c8a39f", "score": "0.57323676", "text": "public function testElggApiGettersInvalidTypes() {\n\t\t$type_arr = $this->getRandomInvalids(2);\n\n\t\t$options = array(\n\t\t\t'types' => $type_arr\n\t\t);\n\n\t\t$es = elgg_get_entities($options);\n\t\t$this->assertFalse($es);\n\t}", "title": "" }, { "docid": "c44072c77d9631396cdb29c31ba9706d", "score": "0.5726242", "text": "public function testValidateInteger(){\n $var = new aldorg\\validater\\Validater;\n $this->assertTrue($var->validateInteger(1) == 'true');\n $this->assertTrue($var->validateInteger(1.0) == 'true');\n $this->assertTrue($var->validateInteger(1.1) == 'false');\n $this->assertTrue($var->validateInteger(\"1\") == 'true');\n $this->assertTrue($var->validateInteger(\"1.0\") == 'false');\n $this->assertTrue($var->validateInteger(\"1.1\") == 'false');\n unset($var);\n }", "title": "" }, { "docid": "9a3722bb96c6abd68a16885f30f54e06", "score": "0.57186586", "text": "public function test_invalid_result_type()\n {\n //into the abstract class. Below we are passing a known invalid number\n //force an exception\n $this->expectException(\\InvalidArgumentException::class);\n\n $class = new class(5) extends AbstractTestResult\n {\n public function __construct(int $type)\n {\n parent::__construct($type);\n }\n };\n }", "title": "" }, { "docid": "1cfc63dfbf41256e7b61369386399e4c", "score": "0.5715863", "text": "private static function validateString(String $var): String\n {\n if (gettype($var) === 'string') {\n return $var;\n }\n throw new \\Exception('The variable type must String :' . $var);\n }", "title": "" }, { "docid": "b8960b7c3b0d5c511fd6fff647d51474", "score": "0.57129836", "text": "function checkString($str){\n if(is_numeric($str)) {\n throw new Exception(\"Please provide String\");\n }\n return $str;\n}", "title": "" }, { "docid": "58b59c99ebb1a46ce3ed5c57852ec02f", "score": "0.57091945", "text": "function validate_param($data , $type = PARAM_INTEGER) {\n switch ($type) {\n case PARAM_INTEGER:\n return is_numeric($data);\n default:\n return false;\n }\n}", "title": "" }, { "docid": "aadf20e4fc779c735def47cc5ca035e0", "score": "0.5706373", "text": "public function testElggApiGettersInvalidTypeUsingType() {\n\t\t$type_arr = $this->getRandomInvalids();\n\t\t$type = $type_arr[0];\n\n\t\t$options = array(\n\t\t\t'type' => $type\n\t\t);\n\n\t\t$es = elgg_get_entities($options);\n\t\t$this->assertFalse($es);\n\t}", "title": "" }, { "docid": "d43da344641650a447eb0afe4bdf87a1", "score": "0.5705366", "text": "function validateValue($value){\r\n if($value < 0){\r\n try{\r\n throw new InvalidArgumentException('InvalidArgumentException');\r\n }catch(Exception $e){\r\n print_r($e->getMessage());\r\n }\r\n\r\n return false;\r\n }\r\n //value is not a multiple of 10, i.e: 125\r\n elseif(is_float($value/10)){\r\n\r\n try{\r\n throw new Exception(\"NoteUnavailableException\");\r\n }catch(Exception $e){\r\n echo $e->getMessage();\r\n }\r\n\r\n return false;\r\n }\r\n else{\r\n return true;\r\n }\r\n }", "title": "" }, { "docid": "5ffad8beec1d8023b6a28091bfec8535", "score": "0.57048523", "text": "function testCreateBadType()\n {\n $dataTest = [\n \"type\" => 1,\n \"quantity\" => \"100\",\n \"color\" => \"black\",\n \"projectId\" => 1\n ];\n $client = static::createClient();\n $client->request('POST',\n sprintf(self::BASE_URL,'edit'),\n [], [],\n ['CONTENT_TYPE' => 'application/json'], json_encode($dataTest));\n $this->assertEquals(400, $client->getResponse()->getStatusCode());\n $this->assertStringContainsString(\"Fields bad format\", $client->getResponse()->getContent());\n }", "title": "" }, { "docid": "6a3c7b41156de1e4b6eba3962212b609", "score": "0.57041293", "text": "public function testIsThereAnySyntaxError()\n {\n\t$var = new Webresso\\SecurityKit\\Captcha(\"my_key\");\n\t$this->assertTrue(is_object($var));\n\tunset($var);\n }", "title": "" }, { "docid": "5ce573473fec9e6421d35c98df045034", "score": "0.57039535", "text": "public function testWrongValidation()\n {\n $validator = new TelFr();\n\n foreach($this->badNumbers as $number) {\n $this->assertFalse($validator->isValid($number), 'Number ' . $number . ' is valid');\n }\n }", "title": "" }, { "docid": "83b5a66cba53d55777c6901622402d14", "score": "0.57024467", "text": "public function isNotANumber()\n {\n $this->failIf(is_integer($this->data[0]) || is_float($this->data[0]));\n }", "title": "" }, { "docid": "7fb669081f8d34fee9997e021ff256bb", "score": "0.56748587", "text": "function TestTypeValeur($valeurTester, $type){\n switch ($type) {\n case INT:\n // Filtre nettoyage\n //Supprime tous les caractères sauf les chiffres, et les signes plus et moins.\n $typeNettoyer = filter_var($valeurTester,FILTER_SANITIZE_NUMBER_INT);\n // Filtre validation\n // Valide un entier, éventuellement dans un intervalle donné et le convertie en entier en cas de succès.\n $typeRetourTest = filter_var($typeNettoyer, FILTER_VALIDATE_INT);\n return $typeRetourTest;\n case STRING:\n $typeRetourTest = filter_var($valeurTester, FILTER_SANITIZE_STRING);\n return $typeRetourTest;\n case EMAIL:\n $typeNettoyer = filter_var($valeurTester, FILTER_SANITIZE_EMAIL);\n $typeRetourTest = filter_var($typeNettoyer, FILTER_VALIDATE_EMAIL);\n return $typeRetourTest;\n }\n}", "title": "" }, { "docid": "5de83b69e5942f23b6215e842c75fc2f", "score": "0.56563544", "text": "public function isInvalid(): bool;", "title": "" }, { "docid": "d0c89838c6356dd2444a4ca73078e3b1", "score": "0.563973", "text": "public function testCacheKeyInvalidTypeInteger(): void\n {\n $value = '99 bottles of beer on the wall';\n $key = 67;\n $this->expectException(\\TypeError::class);\n $this->testStrict->set($key, $value);\n }", "title": "" }, { "docid": "167e986a6e7088ae607456c1a5ddad8a", "score": "0.56388503", "text": "public function testValidAlnumParams(): void\n {\n $exception = '';\n $router = new \\Mezon\\Router\\Router();\n $router->addRoute('/catalog/[a:cat_id]/', [\n $this,\n 'helloWorldOutput'\n ]);\n\n try {\n $router->callRoute('/catalog/foo/');\n } catch (\\Exception $e) {\n $exception = $e->getMessage();\n }\n\n $msg = \"Illegal parameter type\";\n\n $this->assertFalse(strpos($exception, $msg));\n }", "title": "" }, { "docid": "5bfa33964b52541feee192dfd8dfa061", "score": "0.563466", "text": "function checkVar($instr) {\n if (!preg_match(\"/(*UTF8)^(LF|GF|TF)@[\\p{L}_\\-$&%*!?]+[\\p{L}\\p{N}_\\-$&%*!?]*$/\", $instr)) {\n printExit(\"Syntax or lexical error\\n\", 23);\n }\n}", "title": "" }, { "docid": "7f92573727e52fd4fb654a0fbf5b657a", "score": "0.56311625", "text": "public function checkVariable($input){\n if ( count($explodedInput = explode(\"@\", $input)) != 2 ) {\n throw new LexSynError(\"Error! Wrong frame syntax!\\n\");\n }\n\n $frame = $explodedInput[0];\n $varName = $explodedInput[1];\n\n if ( $frame != 'LF' and $frame != 'GF' and $frame != 'TF' ) {\n throw new LexSynError(\"Error! Wrong frame syntax!\\n\");\n }\n\n $this->checkLabel($varName);\n }", "title": "" }, { "docid": "f65ac0281e86fc574580bbc107a11f5a", "score": "0.56285965", "text": "function check($v)\n\t{\n\t\t# FIXME: NaN? INF, -INF?\n\t\treturn is_float($v);\n\t}", "title": "" }, { "docid": "01c755e06f65cf180e0f7471a4999651", "score": "0.56267434", "text": "function validate($key, $value, $type) \n{\n if ($type === gettype($value)) {\n if (!empty($value)) {\n return $value;\n } else {\n if (gettype($value) === 'string') {\n throw new Exception(\"`{$key}` must be not be empty.\");\n }\n if (gettype($value) === 'double') {\n throw new Exception(\"`{$key}` must be greater than `0.0`\");\n }\n }\n }\n throw new Exception(\"`{$key}` must be of type `{$type}`\");\n}", "title": "" }, { "docid": "b9903d2ce1e431ece8fe87317f07eb92", "score": "0.5625991", "text": "private function invalidData() {\n $this->error('Invalid input given !');\n }", "title": "" }, { "docid": "81fa6fced295fc14e1d7f5b401a8db10", "score": "0.5614713", "text": "function is_validate( $var ) {\r\n\t\r\n\tif( empty( $var ) ) {\r\n\t\treturn 0;\r\n\t}\r\n\t\r\n\treturn 1;\r\n\t\r\n}", "title": "" }, { "docid": "1dbfd8ac16bb9cf5676954cfde613294", "score": "0.56137115", "text": "public function testInvalid(): void\n {\n $validator = new PrintableValidator();\n\n $this->assertFalse($validator->validate(\"xyz\\n\\r\\t\")->isValid());\n }", "title": "" }, { "docid": "e8841e6999f6af7893e417df363a2791", "score": "0.56093043", "text": "public function objectTypesInvalid()\n {\n return $this->flags === self::FLAG['OBJECT_TYPES_INVALID'];\n }", "title": "" }, { "docid": "df87253e4f6c7e7d69dcc5cf96ce7b01", "score": "0.5606666", "text": "function testInvalidStr() \n {\n $badvalue = \"10\";\n $this->expectException(Exception::class);\n $this->item->str = $badvalue;\n }", "title": "" }, { "docid": "71f0b481c3bb0514eede611794579d51", "score": "0.5601976", "text": "public function testInvalidTypecasts($value)\n {\n $obj = new TypeCastObject();\n $this->setExpectedException(\n InvalidTypeCastExeption::class,\n sprintf(\n 'Only instances of %s are allowed!',\n ITypeCast::class\n )\n );\n $obj->x = $value;\n }", "title": "" }, { "docid": "64467bd38264cf611b2d9e9eb0055dc7", "score": "0.55973625", "text": "public function test_non_numeric_start_throws_exception()\n {\n $this->expectException(\\TypeError::class);\n\n new FinancialYear('foo');\n }", "title": "" }, { "docid": "8ecf7005064666c45544be657e49ec35", "score": "0.55963945", "text": "public function testRegisterFailure() {\n $result = $this->factory->register('this_is_an_invalid_type');\n }", "title": "" }, { "docid": "69b5a1bfe75496af3d5290e0e42f18e5", "score": "0.5590872", "text": "function check_type($type) {\n $type_regex = \"/^(string|int|bool)$/\";\n return preg_match($type_regex, $type, $match);\n}", "title": "" }, { "docid": "dbe9bfeb54a036778baea26d4547fc17", "score": "0.5584446", "text": "public function testsInvalidFuelType()\n {\n $payload = [\n \"activity\" => 100,\n \"activityType\" => \"fuel\",\n \"country\" => \"usa\",\n \"fuelType\" => \"taxi11\"\n ];\n\n $user = factory(User::class)->create(['email' => 'user@test.com']);\n $token = $user->generateToken();\n $headers = ['Authorization' => \"Bearer $token\"];\n\n $this->json('post', '/api/triptocarbon', $payload, $headers)\n ->assertStatus(400)\n ->assertJson([\n \"errors\" => [\n \"fuelType\" => [\n \"The selected fuel type is invalid.\"\n ]\n ]\n ]);\n }", "title": "" }, { "docid": "2e848b2b1d2453b815f8dbf9bf449c41", "score": "0.5578158", "text": "function validate(&$var, $type, $range=null, $default=null)\n\t{\n\t\t$unchanged = true;\n\t\tswitch($type) {\n\t\tcase TYPE_BOOLEAN:\n\t\t\t// $range and $default are unused\n\t\t\tif (!is_bool($var)) {\n\t\t\t\t$unchanged = false;\n\t\t\t}\n\t\t\t$var = (true && $var); // Convert to a proper boolean\n\t\t\tbreak;\n\t\tcase TYPE_UINT:\n\t\t\t$newvar = intval($var);\n\t\t\tif ($newvar != $var || $newvar < 0 || ($range != null && !in_array($var, $range))) {\n\t\t\t\t$unchanged = false;\n\t\t\t\tif ($default != null) $newvar = $default;\n\t\t\t}\n\t\t\t$var = $newvar;\n\t\t\tbreak;\n\t\tcase TYPE_INT:\n\t\t\t$newvar = intval($var);\n\t\t\tif ($newvar != $var || ($range != null && !in_array($var, $range))) {\n\t\t\t\t$unchanged = false;\n\t\t\t\tif ($default != null) $newvar = $default;\n\t\t\t}\n\t\t\t$var = $newvar;\n\t\t\tbreak;\n\t\tcase TYPE_FLOAT:\n\t\t\tif (!is_numeric($var) || ($range != null && !in_array($var, $range))) {\n\t\t\t\t$unchanged = false;\n\t\t\t\tif ($default != null) $var = $default;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase TYPE_STRING:\n\t\t\tif (!is_string($var) || ($range != null && !in_array($var, $range))) {\n\t\t\t\t$unchanged = false;\n\t\t\t\tif ($default != null) $var = $default;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase TYPE_ARRAY:\n\t\t\t// $range is unused\n\t\t\tif (!is_array($var)) {\n\t\t\t\t$unchanged = false;\n\t\t\t\tif ($default != null) $var = $default;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase TYPE_OBJECT:\n\t\t\t// $range is seen as a class name\n\t\t\tif (!is_object($var) || ($range != null && !is_subclass_of($var, $range))) {\n\t\t\t\t$unchanged = false;\n\t\t\t\tif ($default != null) $var = $default;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase TYPE_USERNAME:\n\t\t\t// $range is unused\n\t\t\tif (strlen($username) > 20) {\n\t\t\t\t$unchanged = false;\n\t\t\t\tif ($default != null) $var = $default;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase TYPE_PASSWORD:\n\t\t\t// $range is unused\n\t\t\tif (strlen($var) < 5 || strlen($var) > 256) {\n\t\t\t\t$unchanged = false;\n\t\t\t\tif ($default != null) $var = $default;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase TYPE_EMAIL:\n\t\t\t// $range is unused\n\t\t\tif (!$this->_is_valid_email_address($var)) {\n\t\t\t\t$unchanged = false;\n\t\t\t\tif ($default != null) $var = $default;\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t// Invalid type! Only developers should ever see this error\n\t\t\terror(PDNSADMIN_ERROR, \"Invalid type sent to validate()\", __FILE__, __LINE__);\n\t\t}\n\t\treturn $unchanged;\n\t}", "title": "" }, { "docid": "584df1ccdce7d9cee8b9615c358c208f", "score": "0.55599934", "text": "public function testReturnsFalseForBuildinType()\n {\n $object = 4;\n $arguments = array($object);\n\n $objectIsValid = $this->callTestedMethod($arguments);\n\n $this->assertFalse($objectIsValid);\n }", "title": "" }, { "docid": "ab16b8b000162fe06d83cd3cb12e7fe5", "score": "0.5559399", "text": "public function testInvalid(): void\n\t{\n\t\t$input = new Fluent();\n\n\t\t$input\n\t\t\t->check('foo', 'foo')\n\t\t\t->validate('isInt', 'not int');\n\n\t\t$this->assertFalse($input->isValid());\n\t\t$this->assertEquals(['not int'], $input->getErrors());\n\n\t\t$input = new Fluent();\n\t\t$input\n\t\t\t->check('bar', 'bar')\n\t\t\t->validate('isInt', 'not int');\n\n\t\t$this->assertFalse($input->isValid(true));\n\t\t$this->assertEquals(['bar' => ['not int']], $input->getErrors());\n\n\t\t$input = new Fluent();\n\t\t$input\n\t\t\t->check('foo', 'foo')\n\t\t\t->all()\n\t\t\t->validate('isInt');\n\n\t\t$this->assertFalse($input->isValid());\n\n\t\t$this->expectException(Exception::class);\n\t\t$input->getValue('bar');\n\t}", "title": "" }, { "docid": "c90d1c17e647696100ca62650a49a105", "score": "0.55583763", "text": "public function testDensitySetUnknownType()\n {\n try {\n $value = new Zend_Measure_Density('100', Zend_Measure_Density::STANDARD, 'de');\n $value->setValue('-200.200,200', 'Density::UNKNOWN', 'de');\n $this->fail('Exception expected because of unknown type');\n } catch (Zend_Measure_Exception $e) {\n // success\n }\n }", "title": "" }, { "docid": "38b28835a59b7eb8035378cd0ed117f9", "score": "0.5548132", "text": "#[@test]\n public function stringIsNotInstanceOfVoid() {\n $this->assertFalse(Type::$VOID->isInstance(''));\n }", "title": "" }, { "docid": "56875a88618ef00431052b3dab1d97da", "score": "0.552986", "text": "private function checkType($type, $value)\n { \n switch($type)\n {\n case 'bool':\n case 'boolean':\n $codeException = (!is_bool($value)) ? 1 : 0;\n break;\n case 'int':\n case 'integer':\n $codeException = (!is_int($value)) ? 1 : 0;\n break;\n case 'string':\n $codeException = (!is_string($value)) ? 1 : 0;\n break;\n case 'not_resource':\n $codeException = (is_resource($value)) ? 2 : 0;\n break;\n default :\n $codeException = 3;\n break;\n }\n \n return $codeException;\n }", "title": "" }, { "docid": "1952473dd71390951484b63f22b45150", "score": "0.55156136", "text": "public function testUnknownOperator(): void\n {\n $this->expectException(UnexpectedValueException::class);\n\n (new NumberInterval())->validate(1, '!', 2, 4);\n }", "title": "" }, { "docid": "694bf96ce552df9d083b49bbe2d64141", "score": "0.5506311", "text": "public function testInvalidValue(): void\n {\n $this->assert\n ->exception(function () {\n (new \\Recurrence\\Rrule\\Extractor\\UntilExtractor())->extract('FREQ=MONTHLY;UNTIL=20ERROR12');\n })\n ->isInstanceOf(InvalidRruleException::class)\n ->hasMessage('Invalid RRULE [UNTIL] option : [20ERROR12]')\n ;\n }", "title": "" }, { "docid": "a97e777da168e64be2615dc0c1be87fb", "score": "0.55041176", "text": "public function testIsThereAnySyntaxError(): void\r\n {\r\n $field = new Field(['name' => 'Foo']);\r\n $this->assertInternalType('object', $field);\r\n }", "title": "" }, { "docid": "1a6d1031e46b793c78e633cca2c5617f", "score": "0.5498122", "text": "public function validate($varValue);", "title": "" }, { "docid": "4c803424c92f386842157bdb61c18055", "score": "0.5483031", "text": "public function testExceptionFromInvalidArgumentType(): void\n {\n $this->expectException(TypeError::class);\n\n $this->average->getAverage('string');\n }", "title": "" }, { "docid": "09742fbd58857b4ecc6cc9beccd0bac7", "score": "0.54661644", "text": "private static function checkBuiltinType(string $type, $value): bool\n {\n switch ($type) {\n case \"int\":\n case \"integer\":\n return is_int($value);\n case \"float\":\n case \"double\":\n case \"real\":\n return is_float($value);\n case \"bool\":\n case \"boolean\":\n return is_bool($value);\n case \"string\":\n return is_string($value);\n case \"array\":\n return is_array($value);\n default:\n throw new LogicException(\"Unknown type $type\");\n }\n }", "title": "" }, { "docid": "56a9183cb8b5b8c58d2603a89b24745a", "score": "0.54643786", "text": "public function testParsesInvalidStrings()\n {\n // delete cache directory for optimal testing\n exec('rm -rf ' . (new Cache)->getDirectory() . '*');\n\n $func = function () {\n };\n\n $invalid =\n [\n // wrong type\n '{\"type\": \"boolean\"}' => ['test123', null, 1, 1.4, [], $func, curl_init(), new \\stdClass()],\n '{\"type\": \"string\"}' => [true, null, 1, 1.4, [], $func, curl_init(), new \\stdClass()],\n '{\"type\": \"number\"}' => [true, null, [], 'test123', $func, curl_init(), new \\stdClass()],\n '{\"type\": \"array\", \"items\": {\"type\": \"boolean\" }}' => [null, 1, 1.4, 'test123', $func, curl_init(), new \\stdClass()],\n '{\"type\": \"object\"}' => [true, null, 1, 1.4, 'test123', $func, curl_init(), []],\n\n // wrong type and wrong type for child\n '{\"type\": \"array\",\"items\": {\"type\": \"string\"}}' => ['test', true, 1, 1.4, new \\stdClass(), [true], [1], [1.4], [new \\stdClass()]]\n ];\n\n foreach ($invalid as $schema => $falseValues) {\n\n if (is_array($falseValues)) {\n\n foreach ($falseValues as $falseValue) {\n\n $this->executeSchemaValidatorWhichResultsInvalid($schema, $falseValue);\n }\n } else {\n $this->executeSchemaValidatorWhichResultsInvalid($schema, $falseValues);\n }\n }\n }", "title": "" }, { "docid": "391157973fdad67161e92494edd8918f", "score": "0.5463902", "text": "public function testElggApiGettersInvalidTypeUsingTypesAsArray() {\n\t\t$type_arr = $this->getRandomInvalids(1);\n\n\t\t$options = array(\n\t\t\t'types' => $type_arr\n\t\t);\n\n\t\t$es = elgg_get_entities($options);\n\t\t$this->assertFalse($es);\n\t}", "title": "" }, { "docid": "9abcecb33e0f975633ae23845dc3bf96", "score": "0.545604", "text": "public function testValidateFieldBadValue()\n {\n $this->utility->impersonate('editor');\n\n list($type, $entry) = $this->_createTestTypeAndEntry();\n\n $this->getRequest()->setParams(\n array(\n 'contentType' => $type->getId(),\n 'field' => 'title',\n 'value' => ''\n )\n );\n $this->dispatch('/content/validate-field');\n $this->assertModule('content');\n $this->assertController('index');\n $this->assertAction('validate-field');\n\n $responseBody = $this->getResponse()->getBody();\n $responseData = Zend_Json::decode($responseBody);\n $this->assertFalse($responseData['isValid']);\n $this->assertSame(1, count($responseData['errors']));\n }", "title": "" }, { "docid": "c78246b780f3c0f1a2b71ab5809a72d2", "score": "0.545498", "text": "public function validation_should_fail()\n {\n $validator = new ZipMimeType('pdf,png,jpg');\n $result = $validator->passes('file', $this->getFile('file-sql.zip'));\n\n $this->assertFalse($result);\n }", "title": "" } ]
838c122e6ef409ae65f6c65b03e2eaa6
Update the edit form to include the URL input and test button.
[ { "docid": "1968c992b55c9d847104606956377eaa", "score": "0.0", "text": "public function updateEditForm($form) {\n\n\t\tRequirements::css('nglasl/silverstripe-misdirection: client/css/misdirection.css');\n\n\t\t// Restrict this functionality to administrators.\n\n\t\t$user = Member::currentUserID();\n\t\tif(Permission::checkMember($user, 'ADMIN')) {\n\t\t\t$gridfield = $form->fields->items[0];\n\t\t\tif(isset($gridfield)) {\n\n\t\t\t\t// Add the required HTML fragment.\n\n\t\t\t\tRequirements::javascript('nglasl/silverstripe-misdirection: client/javascript/misdirection-testing.js');\n\t\t\t\t$configuration = $gridfield->config;\n\t\t\t\t$configuration->addComponent(new MisdirectionTesting());\n\t\t\t}\n\t\t}\n\n\t\t// Allow extension customisation.\n\n\t\t$this->owner->extend('updateMisdirectionAdminTestingExtensionEditForm', $form);\n\t}", "title": "" } ]
[ { "docid": "1d94403d2acd74d9393297956ff20089", "score": "0.72310865", "text": "function edit()\n {\n $this->_form('edit');\n }", "title": "" }, { "docid": "5301e3af0a5e99410a0bb90618153611", "score": "0.6941585", "text": "function edit()\r\n\t{\r\n\t\tglobal $request;\r\n\r\n\t\t//add tests.js included in the view\r\n\t\t$this->scripts[] = 'test_add_edit.js';\r\n\r\n\t\t//save parameters(test id) from address line\r\n\t\t$id = $request->params[0];\r\n\r\n\t\t//select test with that id\r\n\t\t$test = get_all(\"SELECT * FROM test WHERE test_id='$id'\");\r\n\r\n\t\t//select a question data with that id\r\n\t\t$question = get_all(\"SELECT * FROM question WHERE test_id='$id'\");\r\n\r\n\t\t//save first(and the only) element of the query array into $test variable\r\n\t\t$test = $test[0];\r\n\t\t/*if question array exists has different value than NULL, save it to $question,\r\n\t\t else put an array member with empty string there*/\r\n\t\t$question = isset($question[0]) ? $question[0] : array('question_text' => '');\r\n\t\trequire 'views/master_view.php';\r\n\r\n\t}", "title": "" }, { "docid": "275e441865731be904fe67336c521c65", "score": "0.686149", "text": "public function setupEdit()\n\t{\n\t}", "title": "" }, { "docid": "412e86681d8cccb0d562d00e9b5d69c5", "score": "0.6812026", "text": "public function edit(url $url)\n {\n //\n }", "title": "" }, { "docid": "bd2eb7b4b851671a6d52d11c4bdca5a3", "score": "0.6807464", "text": "public function Editing()\n {\n $this->routeAuth();\n\n $arguments = [\n 'required' => ['route' => 'default'],\n 'method' => 'get',\n ];\n $parameters = $this->getArguments($arguments);\n\n $this->standardView('EditForm', $parameters);\n }", "title": "" }, { "docid": "96884a0d55f36349b743e3d913248156", "score": "0.6767191", "text": "function edit()\n {\n $this->_view_edit('edit');\n }", "title": "" }, { "docid": "817cd0b68250870a2855b1c005fa1aa4", "score": "0.6687467", "text": "public function edit() {\n\t\tif (!$this->table_id) {\n\t\t\t$this->ctrl->redirectByClass(\"ildclfieldeditgui\", \"listFields\");\n\n\t\t\treturn;\n\t\t} else {\n\t\t\t$this->table = ilDclCache::getTableCache($this->table_id);\n\t\t}\n\t\t$this->initForm(\"edit\");\n\t\t$this->getValues();\n\t\t$this->tpl->setContent($this->form->getHTML());\n\t}", "title": "" }, { "docid": "43537aad041b300db7314033645da69c", "score": "0.6682027", "text": "public function EditForm() {\n\t\t// make sure to load fresh from db\n\t\t$record = DataObject::get_by_id('WikiPage', $this->data()->ID);\n\t\t$formatter = $record->getFormatter();\n\n\t\t$editorField = $formatter->getEditingField($record);\n\t\t$helpLink = $formatter->getHelpUrl();\n\n\n\t\t$fields = FieldList::create(\n\t\t\t\t\t\tnew LiteralField('Preview', '<div data-url=\"'.$this->Link('livepreview').'\" id=\"editorPreview\"></div>'),\n\t\t\t\t\t\tnew LiteralField('DialogContent', '<div id=\"dialogContent\" style=\"display:none;\"></div>'),\n\t\t\t\t\t\t$editorField,\n\t\t\t\t\t\tnew DropdownField('EditorType', _t('WikiPage.EDITORTYPE', 'Editor Type'), $this->data()->getEditorTypeOptions()),\n\t\t\t\t\t\tnew HiddenField('LockUpdate', '', $this->data()->Link('updatelock')),\n\t\t\t\t\t\tnew HiddenField('LockLength', '', $this->config()->get('lock_time') - 10)\n\t\t);\n\t\t\n\n\t\tif ($helpLink) {\n\t\t\t$fields->push(new LiteralField('HelpLink', '<a target=\"_blank\" href=\"' . $helpLink . '\">' . _t('WikiPage.EDITOR_HELP_LINK', 'Editor Help') . '</a>'));\n\t\t}\n\n\t\t$actions = null;\n\t\tif (!WikiPage::$auto_publish) {\n\t\t\t$actions = FieldList::create(\n\t\t\t\t\t\t\tnew FormAction('save', _t('WikiPage.SAVE', 'Save')),\n\t\t\t\t\t\t\tnew FormAction('done', _t('WikiPage.DONE', 'Done (Draft)')),\n\t\t\t\t\t\t\tnew FormAction('publish', _t('WikiPage.PUBLISH', 'Publish'))\n\t\t\t);\n\t\t} else {\n\t\t\t$actions = FieldList::create(\n\t\t\t\t\t\t\tnew FormAction('save', _t('WikiPage.SAVE', 'Save')),\n\t\t\t\t\t\t\tnew FormAction('publish', _t('WikiPage.FINISHED', 'Finished'))\n\t\t\t);\n\t\t}\n\n\t\t$actions->push(new FormAction('cancel', _t('WikiPage.CANCEL_EDIT', 'Cancel')));\n\t\t$actions->push(new FormAction('revert', _t('WikiPage.REVERT_EDIT', 'Revert')));\n\n\t\tif (Permission::check(MANAGE_WIKI_PAGES)) {\n\t\t\t$actions->push(new FormAction('addpage_t', _t('WikiPage.ADD_PAGE', 'New Page')));\n\t\t\t$actions->push(new FormAction('delete', _t('WikiPage.DELETE_PAGE', 'Delete Page')));\n\t\t}\n\n\t\t$form = new Form($this, \"EditForm\", $fields, $actions);\n\t\t$form->loadDataFrom($record);\n \n $this->extend('updateWikiEditForm', $form);\n\t\treturn $form;\n\t}", "title": "" }, { "docid": "63597b61689dcf9b429e894c927d8891", "score": "0.66086715", "text": "public function initializeEdit(){\n if (isset($options['edit']) && $options['edit']) {\n $id = new Hidden('id');\n } else {\n $id = new Text('id');\n }\n $this->add($id);\n\n // In edition the user_id is hidden\n if (isset($options['edit']) && $options['edit']) {\n $user_id = new Hidden('user_id');\n } else {\n $user_id = new Text('user_id');\n }\n $this->add($user_id);\n\n $this->initializeProfileElements();\n // Sign Up\n $this->add(new Submit('Update', array(\n 'class' => 'next_btn'\n )));\n }", "title": "" }, { "docid": "734c624b34c52ff6cb3c2642809dfdbc", "score": "0.65866244", "text": "protected function actionEdit() {\n\t\t\n\t\t// generate templates list\n\t\t$this->showDataLayoutContent();\n\t}", "title": "" }, { "docid": "d1bc76ee10d3c1987d93adb885f351c7", "score": "0.6566391", "text": "public function show_editform() \n {\n $this->item_form->display();\n }", "title": "" }, { "docid": "f23270acf9c424cd1664565f81176fb4", "score": "0.65596545", "text": "public function testEditAction()\n {\n $params = [$this->config->getResourceName().'Id' => 1];\n $crawler = $this->client->request('GET', $this->generateResourcePath('edit', $params));\n\n // Asserts that this the \"edit\" page\n $this->assertTrue($this->client->getResponse()->isSuccessful(), 'Failed to reach the \"edit\" page.');\n\n // Get the form and fills values\n $form = $crawler->selectButton('submit')->form();\n $this->fillEditForm($form);\n\n // Submit the form\n $this->client->submit($form);\n\n // Asserts that the response is a redirection.\n $this->assertTrue($this->client->getResponse()->isRedirect(), '\"Edit\" form submission failed.');\n\n $crawler = $this->client->followRedirect();\n\n // Asserts that the form submission succeed.\n $this->assertTrue($this->client->getResponse()->isSuccessful(), 'Failed to follow \"edit\" form redirection.');\n\n // Asserts show after update.\n $this->assertShowAfterEdit($crawler);\n }", "title": "" }, { "docid": "1654a523fbd266ac92c4ccd87cb5c1ca", "score": "0.6545129", "text": "protected function actionEdit()\n {\n if (!empty($_POST['submit'])){\n $this->view->article = \\App\\Models\\Article::findById($_POST['news_id']);\n $this->view->article->title = $_POST['news_title'];\n $this->view->article->text = $_POST['news_text'];\n $this->view->article->author_id = $_POST['news_author'];\n $this->view->article->save();\n header('Location:/homework-4/admin/index.php');\n }\n $this->view->display(__DIR__.'/../../template/template_edit_news.php');\n }", "title": "" }, { "docid": "5230ee39b1576f05c4f8bf4d88654134", "score": "0.6534761", "text": "public function editAction()\n\t{\n\t\t$this->_initAction();\n\t\t$this->_addContent($this->getLayout()->createBlock('label/adminhtml_label_edit'));\n\t\t$this->renderLayout();\n\t}", "title": "" }, { "docid": "a2c4b9f94f63ae15d25e58aeec857d8a", "score": "0.6531795", "text": "public function actionEdit()\n {\n $template = __DIR__ . '/../../../templates/admin/edit.html';\n $this->view->display($template);\n }", "title": "" }, { "docid": "fb2238ad64cb9925d9758b9f75ee8b21", "score": "0.6507673", "text": "public function edit_form() {\n $form = parent::edit_form();\n $form['scheme']['#type'] = 'value';\n $form['scheme']['#value'] = 'ftp';\n $form['port'] = array(\n \"#type\" => \"textfield\",\n \"#title\" => t(\"Port\"),\n \"#default_value\" => @$this->dest_url['port'] ? $this->dest_url['port'] : '21',\n \"#weight\" => 15,\n );\n $form['pasv'] = array(\n '#type' => 'checkbox',\n '#title' => t('Use PASV transfers'),\n '#default_value' => $this->get_pasv(),\n '#weight' => 50,\n );\n return $form;\n }", "title": "" }, { "docid": "7797322cfb11bc3c524bdd3f0639670f", "score": "0.64920354", "text": "function set_url()\n{\n\techo \"<h2>choose your API REST:</h2>\\n\";\n\techo \"<form action=\\\"admin.php?page=management+de+configuration\\\" method=\\\"post\\\">\";\n\techo \"<input type=\\\"text\\\" name=\\\"URL\\\">\";\n\techo \"<input type=\\\"submit\\\" value=\\\"set url\\\" name=\\\"name of button\\\">\";\n\techo \"</form>\";\n}", "title": "" }, { "docid": "4f27edb1f635fcd6d79b9db690d385e6", "score": "0.648244", "text": "public function edit()\n\t{\n\t}", "title": "" }, { "docid": "4f27edb1f635fcd6d79b9db690d385e6", "score": "0.648244", "text": "public function edit()\n\t{\n\t}", "title": "" }, { "docid": "4f27edb1f635fcd6d79b9db690d385e6", "score": "0.648244", "text": "public function edit()\n\t{\n\t}", "title": "" }, { "docid": "77a402d2350afe6d126cd41ebdaf03fb", "score": "0.6481451", "text": "public function edit(UrlShortener $urlShortener)\n {\n //\n }", "title": "" }, { "docid": "f10eeaf1b004836407e230366872d422", "score": "0.6479332", "text": "function edit($url = null, $options = array()) {\n\t\t// Set some defaults.\n\t\tif(empty($url['admin'])) {\n\t\t\t$url['admin'] = true;\n\t\t}\n\t\tif(empty($url['action'])) {\n\t\t\t$url['action'] = 'edit';\n\t\t}\n\t\tif(empty($options['text'])) {\n\t\t\t$options['text'] = 'Edit';\n\t\t}\n\t\t\n\t\treturn $this->Html->link($options['text'], $url, array('title' => 'Edit this entry', 'class' => 'action edit'));\n\t}", "title": "" }, { "docid": "7804a4208b9852aa480d1880340bc44e", "score": "0.6475402", "text": "public function edit()\n {\n $testimonial = $this->get_testimonial();\n \n # get questions\n $questions = ORM::factory('question')\n ->where('owner_id',$this->owner->id)\n ->find_all();\n \n $view = new View('admin/testimonials/edit');\n $view->testimonial = $testimonial;\n $view->info = json_decode($testimonial->body_edit, TRUE);\n $view->questions = $questions;\n $view->tags = $this->tags;\n $view->image_url = t_paths::image($this->owner->apikey, 'url');\n die($view);\n }", "title": "" }, { "docid": "b580b532e83c3e918516d606bfd777be", "score": "0.64507616", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "15b268b2e4a3e84427df74838028a2ee", "score": "0.64422244", "text": "function edit_form() {\n $form = parent::edit_form();\n $form['scheme']['#type'] = 'value';\n $form['scheme']['#value'] = 'https';\n $form['host']['#type'] = 'value';\n $form['host']['#value'] = 's3.amazonaws.com';\n $form['path']['#title'] = 'S3 Bucket';\n $form['path']['#description'] = 'This bucket must already exist. It will not be created for you.';\n $form['user']['#title'] = 'Access Key ID';\n $form['pass']['#title'] = 'Secret Access Key';\n return $form;\n }", "title": "" }, { "docid": "1edca83c6ce75eb7442f440cc6bd0704", "score": "0.6437598", "text": "public function showEditForm() {\n\n if (!isset($this->acronym)) {\n $html = '<p>Check: Du måste vara inloggad för att kunna redigera.</p>';\n return $html;\n }\n if ($this->id) {\n $sql = 'SELECT * FROM VContent WHERE id = ?';\n $this->getContent($sql, array($this->id));\n $categories = $this->getCategories();\n $postIsSelected = \"\";\n $pageIsSelected = \"\";\n\n // check which filters are set \n $setFilters = array(\n 'bbcode' => null,\n 'link' => null,\n 'markdown' => null,\n 'nl2br' => null,\n 'shortcode' => null,\n );\n for ($i = 0; $i < 5; $i++) {\n if (strpos($this->filter, array_keys($setFilters)[$i]) !== false) {\n $setFilters[array_keys($setFilters)[$i]] = 'checked';\n }\n }\n\n // Form with data\n $html = <<<EOD\n\t\t\t<form method=post>\n\t\t\t\t<fieldset>\n\t\t\t\t\t<legend>Uppdatera</legend>\n\t\t\t\t\t<input type=hidden name=id value='{$this->id}'/>\n\t\t\t\t\t<p><label>Titel:</label><br><input type='text' name='title' value='{$this->title}'/></p>\nEOD;\n switch ($this->type) {\n case 'post':\n $html .= \"<p><label>Slug:</label><br><input type='text' name='slug' value='{$this->slug}'/></p>\";\n $postIsSelected = \"selected\";\n break;\n case 'page':\n $html .= \"<p><label>Url:</label><br><input type='text' name='url' value='{$this->url}'/></p>\";\n $pageIsSelected = \"selected\";\n break;\n default:\n break;\n }\n\n $html .= <<<EOD\n\t\t\t\t\t<textarea name=\"data\">{$this->data}</textarea>\n\t\t\t\t\t<p><label for=\"input1\">Typ:</label><br>\n\t\t\t\t\t\t<select id='input1' name='type'>\n\t\t\t\t\t\t\t<option value='page' {$pageIsSelected}>page</option>\n\t\t\t\t\t\t\t<option value='post' {$postIsSelected}>post</option>\n\t\t\t\t\t\t</select></p>\n\t\t\t\t\t<p>{$categories}</p>\n\t\t\t\t\t<p><label for=\"filter\">Textfilter:</label><br>\n\t\t\t\t\t<input type=\"checkbox\" name=filter1 value=\"bbcode\" {$setFilters['bbcode']}>bbcode\n\t\t\t\t\t<input type=\"checkbox\" name=filter2 value=\"link\" {$setFilters['link']}>klickbara länkar\n\t\t\t\t\t<input type=\"checkbox\" name=filter3 value=\"markdown\" {$setFilters['markdown']}>markdown\n\t\t\t\t\t<input type=\"checkbox\" name=filter4 value=\"nl2br\" {$setFilters['nl2br']}>nl2br\n\t\t\t\t\t<input type=\"checkbox\" name=filter5 value=\"shortcode\" {$setFilters['shortcode']}>shortcode\n\t\t\t\t\t</p>\n\t\t\t\t\t<p><label>Publiceringsdatum:</label><br><input type='text' name='published' value='{$this->published}'/></p>\n\t\t\t\t\t<p><input type='submit' name='save' value='Spara'/>\n\t\t\t\t\t\t<input type='reset' value='Återställ'/></p>\n\t\t\t\t\t\t<p><a href=\"{$this->link}\">Visa</a></p>\n\t\t\t\t\t\t<p>{$this->output}</p>\n\t\t\t\t\t</fieldset>\n\t\t\t\t</form>\nEOD;\n } else {\n // Empty form\n $categories = $this->getCategories();\n $html = <<<EOD\n\t\t\t<form method=post>\n\t\t\t\t<fieldset>\n\t\t\t\t\t<legend>Skapa ny post/sida</legend>\n\t\t\t\t\t<p><label>Titel:</label><br><input type='text' name='title'/></p>\n\t\t\t\t\t<p><label>Slug:</label><br><input type='text' name='slug'/></p>\n\t\t\t\t\t<p><label>Url:</label><br><input type='text' name='url'/></p>\n\t\t\t\t\t\n\t\t\t\t\t<textarea name=\"data\"></textarea>\n\t\t\t\t\t<p><label for=\"input1\">Typ:</label><br>\n\t\t\t\t\t\t<select id='input1' name='type'>\n\t\t\t\t\t\t\t<option value='page'>page</option>\n\t\t\t\t\t\t\t<option value='post' selected>post</option>\n\t\t\t\t\t\t</select></p>\n\t\t\t\t\t<p>{$categories}</p>\n\t\t\t\t\t<p><label for=\"filter\">Textfilter:</label><br>\n\t\t\t\t\t<input type=\"checkbox\" name=filter1 value=\"bbcode\">bbcode\n\t\t\t\t\t<input type=\"checkbox\" name=filter2 value=\"link\">link\n\t\t\t\t\t<input type=\"checkbox\" name=filter3 value=\"markdown\" checked>markdown\n\t\t\t\t\t<input type=\"checkbox\" name=filter4 value=\"nl2br\">nl2br\n\t\t\t\t\t<input type=\"checkbox\" name=filter5 value=\"shortcode\">shortcode\n\t\t\t\t\t</p>\n\t\t\t\t\t<p><label>Publiceringsdatum:</label><br><input type='text' name='published'/></p>\n\t\t\t\t\t<p><input type='submit' name='save' value='Spara'/>\n\t\t\t\t\t\t<input type='reset' value='Rensa'/></p>\n\t\t\t\t\t\t<p><a href=\"{$this->link}\">Visa</a></p>\n\t\t\t\t\t\t<p>{$this->output}</p>\n\t\t\t\t\t</fieldset>\n\t\t\t\t</form>\nEOD;\n }\n return $html;\n }", "title": "" }, { "docid": "5b515a44fa0cc33341b8e8c075ceae61", "score": "0.64340043", "text": "function _edit()\n\t{\n\t\t// Load data for Edit, using model\n\t\t$model =& $this->getModel();\n\t\t$profile =& $model->getProfile();\n\n\t\t// Assign data to template\n\t\t$this->assignRef('profile', $profile);\n\n\t\t// Add toolbar buttons\n\t\tJToolBarHelper::save();\n\t\tJToolBarHelper::apply();\n\t\tJToolBarHelper::cancel();\n\t}", "title": "" }, { "docid": "79c86103c3d8c947b2319d16bdceb16d", "score": "0.6427235", "text": "public function edit() {\n\t\tHtmlEditorField::include_js();\n//\t\tRequirements::javascript('simplewiki/javascript/sslinks/editor_plugin_src.js');\n\n\t\t$existing = $this->getEditingLocks($this->data(), true);\n\t\t// oops, we've somehow got here even though we shouldn't have\n\t\tif ($existing && $existing['user'] != Member::currentUser()->Email) {\n\t\t\treturn $this->redirect($this->data()->Link());\n\t\t}\n\n\t\tif (!$this->data()->canEdit()) {\n\t\t\treturn Security::permissionFailure($this);\n\t\t}\n\n\t\t$this->form = $this->EditForm();\n\n\t\t// check who's editing and whether or not we should bail out\n\t\treturn $this->renderWith(array('WikiPage', 'Page'));\n\t}", "title": "" }, { "docid": "2fba99fd57baebb36af59a8cfb4bc5fd", "score": "0.6402078", "text": "public function getEditForm();", "title": "" }, { "docid": "cbb74ec124ebd917186ddbe3b520ca8f", "score": "0.6391843", "text": "public function testOpenEditForm(): void\n {\n $roleId = RolesSeed::ROLE_MODERATOR;\n\n $this->setPreventCommits();\n\n $authCookie = $this->getAdminOAuthCookie();\n\n $response = $this->get(self::RESOURCES_URL . '/' . $roleId, [], [], $authCookie);\n\n $this->assertEquals(200, $response->getStatusCode());\n $this->assertContains('Update', (string)$response->getBody());\n $this->assertContains('Delete', (string)$response->getBody());\n }", "title": "" }, { "docid": "4ef44c3e56e9d3cb28dfb31432e01558", "score": "0.6368361", "text": "public function edit(Test $test)\n {\n //\n }", "title": "" }, { "docid": "4ef44c3e56e9d3cb28dfb31432e01558", "score": "0.6368361", "text": "public function edit(Test $test)\n {\n //\n }", "title": "" }, { "docid": "4ba9d4d772c3ce6f0508e2299fefe17e", "score": "0.63647455", "text": "public function editAction()\n {\n $model_sites = new Dlayer_Model_Admin_Site();\n\n $this->form = new Dlayer_Form_Admin_Page('/content/admin/edit', $this->site_id,\n $this->session->pageId());\n\n if ($this->getRequest()->isPost()) {\n $this->handleEditPage();\n }\n\n $this->view->form = $this->form;\n $this->view->site = $model_sites->site($this->site_id);\n\n $session_dlayer = new Dlayer_Session();\n $this->controlBar($session_dlayer->identityId(), $this->site_id);\n\n $this->_helper->setLayoutProperties($this->nav_bar_items, '/content/index/index', array('css/dlayer.css'),\n array(), 'Dlayer.com - Edit content page');\n }", "title": "" }, { "docid": "56913d0a652d9b483bb50809b00e5ad1", "score": "0.6351388", "text": "public function editAction()\r\n\t{\r\n\t\t$this->_initAction();\r\n\t\t$this->_addContent($this->getLayout()->createBlock('dynamic_brand/adminhtml_brand_edit'));\r\n\t\t$this->renderLayout();\r\n\t}", "title": "" }, { "docid": "189e62f1cff36b876d812bdfc8700c1d", "score": "0.63502485", "text": "public function edit() {\n }", "title": "" }, { "docid": "5e180624d96b0f9afa698c73d317f2d1", "score": "0.634362", "text": "public function edit_button(moodle_url $url) {\n $url->param('sesskey', sesskey()); \n if ($this->page->user_is_editing()) {\n $url->param('edit', 'off');\n $btn = 'btn-danger';\n $title = get_string('turneditingoff');\n $icon = 'fa-power-off';\n } else {\n $url->param('edit', 'on');\n $btn = 'btn-success';\n $title = get_string('turneditingon');\n $icon = 'fa-edit';\n }\n return html_writer::tag('a', html_writer::start_tag('i', array('class' => $icon.' fa fa-fw')).\n html_writer::end_tag('i'), array('href' => $url, 'class' => 'btn '.$btn, 'title' => $title));\n }", "title": "" }, { "docid": "10da6858db5ab696b4a60090aaba7247", "score": "0.6337466", "text": "public function update_config_form() {}", "title": "" }, { "docid": "eb9245fb337e96b94a02e1a20334160d", "score": "0.6337418", "text": "public function edit(testPage $testPage)\n {\n //\n }", "title": "" }, { "docid": "9443931fcf9450e4082ea1fcc8f7947f", "score": "0.6336335", "text": "public function editAction()\n {\n $category = $this->_helper->db->findById();\n $form = $this->_getForm($category);\n $this->view->form = $form;\n $this->_processPageForm($category, $form, 'edit'); \n }", "title": "" }, { "docid": "53a8bfb522da712de73cdf296b8026c5", "score": "0.6335954", "text": "public function edit($key = null, $urlVar = null)\n {\n $input = JFactory::getApplication()->input;\n $input->set('view',$input->getCmd('view','Tradinghours'));\n $input->set('layout','edit');\n\n parent::display(false);\n }", "title": "" }, { "docid": "48026a76774cde5d5daf66429d494e2c", "score": "0.63342804", "text": "protected function edit(){\r\n\t\tif (isset($_POST['id'])) {\r\n\t\t\t$id = $_POST['id'];\r\n\t\t\t$model =& $this->getModel('settings');\r\n\t\t\t$this->setting = $model->getData($id, $this->_languageId);\r\n\t\t\t\r\n\t\t\t$this->addTemplate(); \r\n\t\t\t$this->display();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "beae58c35bd5bedd3030acd144e5ed99", "score": "0.63158387", "text": "function editsubmit() \n\t{\n // on the action being rendered\n $this->viewData['navigationPath'] = $this->getNavigationPath('config');\n\t\ttry\n\t\t{\n\t\t\t$configId=$_POST['configid'];\n\t\t\t$configname=ValidateUtility::checkInput($_POST['configname'],\"Enter Name\", \"text\");\n\t\t\t$configvalue=ValidateUtility::checkInput($_POST['configvalue'],\"Enter Value\", \"text\");\n\t\t\t$langid=$_POST['langid'];\n\t\t\t$isactive=$_POST['status'];\n\t\t\t$hyperlink=\"\"; // later update with the link from UI\n\t\t\t\t\t \n\t\t\tConfigModel::Create()->Update($configId, $langid, $configname,$hyperlink, $configvalue, $isactive);\n\t\t\t$this->renderWithTemplate('config/editsubmit', 'AdminPageBaseTemplate');\n\t\t}\n\t\tcatch (Exception $ex)\n\t\t{\n\t\t\t$this->viewData['module']=\"Edit Menu\";\n\t\t\t$this->viewData['error']= $ex->getMessage(); \n\t\t\t$this->renderWithTemplate('common/error', 'AdminPageBaseTemplate');\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "c6d4c96231a08e83e765d6ccb3b91ac6", "score": "0.6309463", "text": "public function testFormEditTask()\n\t{\n\t\t$this->logUtils->login('michel');\n\t\t$crawler = $this->client->request('GET', '/tasks');\n\n\t\t$updatedTask = $crawler->filter(\".task\")->first();\n\n\t\t$title = $updatedTask->filter('.link')->text(null,false);\n\t\t$content = $updatedTask->filter('.portlet-content.content')->text(null,false);\n\t\t$link = $updatedTask->filter('.link')->link()->getUri();\n\n\t\t$crawler = $this->client->request('GET', $link);\n\n\t\t$updateTaskForm = $crawler->selectButton(\"Modifier\")->form();\n\n\t\t$updateTaskForm['task[title]'] = 'Update ' . $title;\n\t\t$updateTaskForm['task[content]'] = 'Update ' . $content;\n\n\t\t$crawler = $this->client->submit($updateTaskForm);\n\n\t\t$crawler = $this->client->followRedirect();\n\n\t\t$successMessage = $crawler->filter('div.alert.alert-success')->text(null,false);\n\t\t$titleTask = $crawler->filter('.caption .portlet-header')->first()->text(null,false);\n\t\t$contentTask = $crawler->filter('.caption .inner .content')->first()->text(null,false);\n\n\t\t$this->assertStringContainsString('La tâche a bien été modifiée.', $successMessage);\n\t\t$this->assertStringContainsString('Update ' . $title, $titleTask);\n\t\t$this->assertStringContainsString('Update ' . $content, $contentTask);\n\t}", "title": "" }, { "docid": "dadbd75e82b4f1a967d8ac7cb27bc98b", "score": "0.6305636", "text": "protected function changePageInSubformInEditModeAction()\n {\n $this->changePageInSubform();\n return $this->renderForm('edit');\n }", "title": "" }, { "docid": "6c508ad41f1bcd296ce3c93c2de68c0b", "score": "0.6304901", "text": "public function updateGroupUrlForm()\n {\n echo Twig::getTemplateContent(\n 'groupurl/update.twig',\n array(\n 'groupurl' => $this->_groupUrl,\n )\n );\n }", "title": "" }, { "docid": "0ea8629d67fa6d0b8e350cb1fb705ace", "score": "0.6293401", "text": "public function editForm($id){\r\n\t\t$data['blog'] = $this->AdminBlog_model->getBlogById($id);\r\n\r\n\r\n $data['content'] = 'seller/blogs/edit';\r\n echo Modules::run('template/adminTemplate', $data);\r\n\t}", "title": "" }, { "docid": "116f9f8cf8ca8e63ccecb2f8888a68d7", "score": "0.6290386", "text": "public function editAction() {\r\n\t\t$id = $this->getInput('id');\r\n\t\tlist(, $guide_types) = Cod_Service_Type::getCanUseCodTypes(1, 100);\r\n\t\t$this->assign('guide_types', $guide_types);\r\n\t\t\r\n\t\t$info = Cod_Service_Guide::getGuide(intval($id));\r\n\t\t\r\n\t\tlist($info['module_id'], $info['cid']) = explode('_', $info['module_channel']);\r\n\t\t$this->assign('info', $info);\r\n\t\t\r\n\t\t//module channel\r\n\t\tlist($modules, $channel_names) = Gou_Service_ChannelModule::getsModuleChannel();\r\n\t\t$this->assign('modules', $modules);\r\n\t\t$this->assign('channel_names', $channel_names);\r\n\t}", "title": "" }, { "docid": "8924e5db68d118c1ea6bd938802d86c2", "score": "0.6276208", "text": "public function display_edit_form(){\n echo \"<form action='../../Controllers/payment_controller.class.php?action=update' method='post'>\";\n echo \"<input type='hidden' name='id' value=\".$this->id.\" />\";\n echo \"Donation ID: <input type='text' name='donationid' value='\".$this->donationid.\"' /><br />\";\n echo \"Amount Payable: <input type='text' name='amount' value='\".$this->amount.\"' /><br />\";\n echo \"<input type='submit' value='Update' />\";\n echo \"</form>\";\n }", "title": "" }, { "docid": "760a446f87a1d5c4295ddeef5d62b63d", "score": "0.62706774", "text": "function edit()\n\t{\n\t}", "title": "" }, { "docid": "eedb803cecdd547cf448768535cce09c", "score": "0.6266232", "text": "public function getEditViewUrl()\n\t{\n\t\treturn 'index.php?module=Workflows&parent=Settings&view=Edit&record=' . $this->getId();\n\t}", "title": "" }, { "docid": "9d3a38b20920e77ce2eff48e395afb74", "score": "0.6262637", "text": "function form_edit($id = 0)\n {\n\n $data['data'] = $this->resources_model->get_resource($id);\n $tamplate['_B'] = 'resources/edit_resource_view.php';\n $this->load->template_view($this->template_base, $data, $tamplate);\n }", "title": "" }, { "docid": "ecfa5a508c2f03ea2cc02d899a44d64d", "score": "0.62615925", "text": "protected function _edit() {\r\n\t\treturn $this->_editForm();\r\n\t}", "title": "" }, { "docid": "afda5e2d883ed806b9d0cbffc42b55b2", "score": "0.6259671", "text": "function _edit(){\n\t$actionUrl = empty($GLOBALS['id']) ? 'event_categories.php' : 'event_categories.php?id='.$GLOBALS['id'].'';\n\t$value = (isset($GLOBALS['record']) && !$GLOBALS['success']) ? $GLOBALS['record']['name'] : '';\n\t\n\tprint '<div id=\"error_box\">';\n\tprint_r((isset($GLOBALS['errorMsgs']) && !empty($GLOBALS['errorMsgs'])) ? implode('',$GLOBALS['errorMsgs']) : '');\n\tprint '</div>';\n\tif($GLOBALS['success']){\n\t\tprint \"<p class='alert alert-success'>Updated Successfully!</p>\";\t\n\t} else {\n\tprint '<form method=\"post\" action=\"'.$actionUrl.'\">'.\n\t\t\t\t\t'<label>Category Name</label>'.\n\t\t\t\t\t'<input class=\"form-control\" type=\"text\" name=\"category\" value=\"'.$value.'\"/>'.\n\t\t\t\t\t'<button type=\"submit\" class=\"btn btn-primary\">Save</button>'.\n\t\t\t\t'</form>';\n\t}\n}", "title": "" }, { "docid": "a72efb5f221069b0c88902d35d6896bb", "score": "0.6245551", "text": "public function editAction()\n {\n \t\n }", "title": "" }, { "docid": "0751887501f871d425185fd395bccb9b", "score": "0.62375927", "text": "public function Edit()\n {\n\t $this->page->pageTitle = \"Edit listing\";\n\t $this->page->assign(\"do\",$_GET['do']);\n\t\t$this->page->assign(\"action1\",$_GET['action']);\n $this->page->assign(\"login_url\",$this->request->createURL(\"Business\", \"login\"));\n\t\t$this->page->assign(\"reg_url\",$this->request->createURL(\"Admin\", \"registrationAdd\"));\n\t\t$this->page->assign(\"searchFreeListing\",$this->request->createURL(\"SalesAccountManager\", \"searchFreeListing\"));\n\t\t$this->page->assign(\"searchfreeLists\",$this->request->createURL(\"SalesAccountManager\",\"searchfreeLists\")); \n\t\t$this->page->assign(\"edit_classification\",$this->request->createURL(\"SalesAccountManager\", \"addClassification\"));\n\t\t$this->page->assign(\"edit_rank\",$this->request->createURL(\"SalesAccountManager\", \"rankBusiness\"));\t\t\n\t\t$this->page->assign(\"csvfile\",$this->request->createURL(\"AdminListing\",\"csvFormShow\"));\n $this->page->assign(\"action\",$this->request->createURL(\"AdminListing\", \"editAdd\",\"ID\"));\n\t\t $this->page->assign(\"searchlists\",$this->request->createURL(\"AdminListing\",\"search\")); \n\t\t$this->page->assign(\"TeamManager_url\",$this->request->createURL(\"Admin\", \"adminManager\"));\n $this->page->assign(\"logout_url\",$this->request->createURL(\"Business\", \"doLogout\"));\n $this->page->assign(\"back\",$this->request->createURL(\"Business\", \"showhomePageBusiness\"));\n\t\t$this->page->assign(\"viewlisting\",$this->request->createURL(\"AdminListing\", \"viewList\"));\n\t\t$this->page->assign(\"MultipleListngMgr_url\",$this->request->createURL(\"AdminListing\", \"addListing\"));\n\t\t$this->page->assign(\"privacyStatement\",$this->request->createURL(\"Content\",\"privacyStatement\"));\n\t\t$this->page->assign(\"termsAndConditions\",$this->request->createURL(\"Content\",\"termsAndConditions\"));\n\t\t$this->page->assign(\"contactUs\",$this->request->createURL(\"Content\",\"contactUs\"));\n\t\t//$this->page->assign(\"edit\",$this->request->createURL(\"Business\", \"Edit\",\"ID\"));\n\t\t$this->page->assign(\"edit_url\",$this->request->createURL(\"AdminListing\", \"Edit\"));\n \t$this->page->assign(\"delete\",$this->request->createURL(\"AdminListing\", \"delete\",\"businessname={$this->request->getAttribute('businessname')}&fr={$this->request->getAttribute(\"fr\")}&ID\")); \n\t\t$this->page->assign(\"addbusinessform\",$this->request->createURL(\"SalesAccountManager\", \"addListing\"));\n\t\t$this->page->assign(\"search\",$this->request->createURL(\"SalesAccountManager\",\"searchBusiness\")); \n\t\t$res3 = $this->adminlistingFacade->editListingFetchDetails();\n $this->page->assign(\"values12\",$res3);\n\t\t$res1=$this->adminlistingFacade->fetchClassificationDetails();\n\t\t$this->page->assign(\"values2\",$res1);\n\t\t$regionValue=$this->adminlistingFacade->fetchRegion();\n\t\t$this->page->assign(\"regionValue\",$regionValue);\n\t\t$res=$this->adminlistingFacade->fetchTownDetails();\n\t\t$this->page->assign(\"values\",$res);\n $res2=$this->adminlistingFacade->selectStates();\n $this->page->assign(\"values21\",$res2);\n $this->page->getPage('editlisting.tpl');\n }", "title": "" }, { "docid": "bacab707efc07cf64c96f6cd9cec5604", "score": "0.6233615", "text": "public function validateEdit() {\r\n //pobierz parametry na potrzeby wyswietlenia danych do edycji\r\n //z widoku listy osób (parametr jest wymagany)\r\n $this->form->id = ParamUtils::getFromCleanURL(1, true, 'Błędne wywołanie aplikacji');\r\n return !App::getMessages()->isError();\r\n }", "title": "" }, { "docid": "881f424326b72638e846989112cfa285", "score": "0.62057817", "text": "public function editFormAction(){\r\n \t\t\r\n \t\t/**\r\n \t\t * get from id\r\n \t\t */\r\n \t\t$form_id = $this->getAttribute('form_id');\r\n \t\t\r\n \t\t/**\r\n \t\t * get set id\r\n \t\t */\r\n \t\t$set_id = $this->getAttribute('set_id');\r\n \t\t\r\n \t\t/**\r\n \t\t * get set data and assign to view\r\n \t\t * and save in session as post data\r\n \t\t */\r\n \t\t$set_data = $this->db_model->getSetData($set_id);\r\n \t\t\r\n \t\t$this->viewAssign('pd', $set_data);\r\n \t\t$this->setAttribute('post', $set_data);\r\n \t\t\r\n \t\t/**\r\n \t\t * make form html\r\n \t\t */\r\n \t\t$form_html = $this->form_class->form($this->form_array, 'form_set_entry', 'edit');\r\n \t\t$this->viewAssign('form_html', $form_html);\r\n \t\t\r\n \t\t/**\r\n \t\t * get list page url and assign to view \r\n \t\t */\r\n \t\t$this->viewAssign('list_page_url', $this->getAttribute('list_page_url'));\r\n \t\t\r\n \t\t\r\n \t\t\r\n \t\t$this->setDisplay('form');\r\n \t\t\r\n \t}", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6205108", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6205108", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6205108", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6205108", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6205108", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6205108", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6205108", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "6c04ae48521e1883133f53b74a698eac", "score": "0.62040865", "text": "public function admin_edit($id) {\r\n parent::admin_edit($id);\r\n $this->_addEditInfo();\r\n }", "title": "" }, { "docid": "8a4f3edc9b5c4fb712fbea49222e0ae5", "score": "0.6200181", "text": "public function edit(){\n if (!empty($_POST)) {\n $result = $this->comment->update($_GET['comId'], [\n 'content' => $_POST['content'] \n ]);\n if($result){\n //redirection\n header('Location: ' . $this->getLocation());\n exit;\n }\n }\n\n $post = $this->comment->find($_GET['comId']);\n\n $title = 'Edition d\\'un commentaire';\n\n $form = new BootstrapForm($post);\n $this->render('Admin.Comments.edit', compact('form', 'title'));\n }", "title": "" }, { "docid": "5c1544b2225be56677d1ab886a3b9ab7", "score": "0.61995286", "text": "protected function editAction()\n {\n SessionManager::clearSubformFromSession();\n return $this->renderForm('edit');\n }", "title": "" }, { "docid": "ccd04251eabf76590d8bdc89c27d227f", "score": "0.6188098", "text": "function getEditUrl() {\n return assemble_url('admin_invoicing_item_edit', array(\n 'item_id' => $this->getId(),\n ));\n }", "title": "" }, { "docid": "476ef62a33b3c70c6881d84cddd4f652", "score": "0.61669505", "text": "protected function upInSubformAction()\n {\n $this->querier = GeneralUtility::makeInstance(UpInSubformQuerier::class);\n $this->querier->injectController($this);\n $this->querier->injectQueryConfiguration();\n $this->querier->processQuery();\n\n // Renders the form in edit mode\n return $this->renderForm('edit');\n }", "title": "" }, { "docid": "9429394af99589d2d0e443adfed0a36c", "score": "0.6154249", "text": "public function editUrl()\n {\n return cp_route('fieldset.edit', $this->name());\n }", "title": "" }, { "docid": "ec44bc52934ad44bfedfcc14d50c271b", "score": "0.61414003", "text": "public function test(){\n\t\t\t$this->Edit();\n\t\t}", "title": "" }, { "docid": "49063b00c4aa4b69982084d54d191dc8", "score": "0.6138725", "text": "public function edit($testtemplate_id)\n\t{\n\t\t$data['tests'] = $this->testModel->get_all_tests();\n\n\t\t$testtemplate = $this->testTemplateModel->get_testtemplate_by_id($testtemplate_id);\n\t\t$test = $this->testTemplateModel->get_test_by_testtemplate($testtemplate);\n\t\t$data['test'] = $test;\n\n\t\t$data['page_title'] = sprintf(lang('edit_testtemplate'), $test->name);\n\t\t$data['new_testtemplate'] = FALSE;\n\t\t$data['action'] = 'testtemplate/edit_submit/' . $testtemplate_id;\n\t\t$data = add_fields($data, 'testtemplate', $testtemplate);\n\n\t\t$this->load->view('templates/header', $data);\n\t\t$this->load->view('testtemplate_edit_view', $data);\n\t\t$this->load->view('templates/footer');\n\t}", "title": "" }, { "docid": "e73067a8f5b9e79d6667ad146041904d", "score": "0.613803", "text": "function edit()\n {\n }", "title": "" }, { "docid": "34c4cb68725d31101be263ac9ac970a8", "score": "0.611537", "text": "public function testEditActionWithAdmin(): void\n {\n $this->loginAdmin();\n $crawler = $this->client->request('GET', '/users/1/edit');\n $this->assertSame(200, $this->client->getResponse()->getStatusCode());\n\n $this->assertSame(1, $crawler->filter('input[name=\"user[username]\"]')->count());\n $this->assertSame(1, $crawler->filter('input[name=\"user[password][first]\"]')->count());\n $this->assertSame(1, $crawler->filter('input[name=\"user[password][second]\"]')->count());\n $this->assertSame(1, $crawler->filter('input[name=\"user[email]\"]')->count());\n $this->assertSame(2, $crawler->filter('input[name=\"user[roles][]\"]')->count());\n\n $form = $crawler->selectButton('Update')->form();\n $form['user[username]'] = 'user';\n $form['user[password][first]'] = 'Test123..';\n $form['user[password][second]'] = 'Test123..';\n $form['user[email]'] = 'editedUser@example.org';\n $form['user[roles][0]']->tick();\n\n $this->client->submit($form);\n $this->assertSame(200, $this->client->getResponse()->getStatusCode());\n }", "title": "" }, { "docid": "8f536f4d284ba3386da7dc6944145b0f", "score": "0.61134034", "text": "public function editAction()\n {\n if (!$id = $this->_getParam('id')) {\n throw new Zend_Controller_Action_Exception('Bad Request');\n }\n $manager = new Debug_Model_Crontab_Manager();\n $form = $this->_getEditForm()->setAction($this->view->url());\n\n if ($this->_request->isPost() &&\n $form->isValid($this->_getAllParams())) {\n // valid\n if ($manager->save($form->getValues(), $id)) {\n $this->_flashMessenger->addMessage('Successfully!');\n } else {\n $this->_flashMessenger->addMessage('Failed!');\n }\n $this->_helper->redirector('index');\n }\n // check if there is data in form\n $form->setDefaults($manager->getLineById($id));\n $this->view->form = $form;\n }", "title": "" }, { "docid": "859d85e406640cd207c04147ac132e1a", "score": "0.61111504", "text": "function edit() {}", "title": "" }, { "docid": "84be69d7291814338ec05122e5c030d4", "score": "0.6104889", "text": "function editSettings() {\n unset($this->report);\n\n if($this->getId()) {\n /* If not a new form get the templated form info */\n $formTags['FORM_INFORMATION'] = $this->getFormInfo();\n }\n\n PHPWS_Core::initModClass('help', 'Help.php');\n $form = new PHPWS_Form('edit_settings');\n\n /* Setup all editable values and their labels */\n\n $form->addTextField('PHAT_FormName', $this->getLabel());\n $form->setSize('PHAT_FormName', PHAT_DEFAULT_SIZE);\n $form->setMaxSize('PHAT_FormName', PHAT_DEFAULT_MAXSIZE);\n $form->setLabel('PHAT_FormName', dgettext('phatform', 'Name'));\n\n $form->addTextField('PHAT_FormPageLimit', $this->_pageLimit);\n $form->setSize('PHAT_FormPageLimit', 3, 3);\n $form->setLabel('PHAT_FormPageLimit', dgettext('phatform', 'Item limit per page'));\n\n $form->addTextArea('PHAT_FormBlurb0', $this->_blurb0);\n $form->setCols('PHAT_FormBlurb0', PHAT_DEFAULT_COLS);\n $form->setRows('PHAT_FormBlurb0', PHAT_DEFAULT_ROWS);\n $form->setLabel('PHAT_FormBlurb0', dgettext('phatform', 'Instructions'));\n\n $form->addTextArea('PHAT_FormBlurb1', $this->_blurb1);\n $form->setCols('PHAT_FormBlurb1', PHAT_DEFAULT_COLS);\n $form->setRows('PHAT_FormBlurb1', PHAT_DEFAULT_ROWS);\n $form->setLabel('PHAT_FormBlurb1', dgettext('phatform', 'Submission Message'));\n\n\n /* RBW Added a section to hold the post processing code 1/3/04 */\n $form->addTextArea('PHAT_PostProcess', $this->getPostProcessCode());\n $form->setCols('PHAT_FormBlurb1', PHAT_DEFAULT_COLS);\n $form->setRows('PHAT_FormBlurb1', PHAT_DEFAULT_ROWS);\n $form->setLabel('PHAT_PostProcess', dgettext('phatform', 'Post Process Code'));\n $formTags['POSTPROCESS_HELP'] = PHPWS_Help::show_link('phatform', 'post_process_code');\n\n $form->addTextArea('PHAT_FormEmails', $this->getAdminEmails());\n $form->setCols('PHAT_FormBlurb1', PHAT_DEFAULT_COLS);\n $form->setRows('PHAT_FormBlurb1', PHAT_DEFAULT_ROWS);\n $form->setLabel('PHAT_FormEmails', dgettext('phatform', 'Admin Email (comma delimited)'));\n\n $form->addCheckbox('PHAT_FormMultiSubmit', 1);\n $form->setMatch('PHAT_FormMultiSubmit', $this->_multiSubmit);\n $form->setLabel('PHAT_FormMultiSubmit', dgettext('phatform', 'Allow multiple submissions'));\n\n $form->addCheckbox('PHAT_FormAnonymous', 1);\n $form->setMatch('PHAT_FormAnonymous', $this->_anonymous);\n $form->setLabel('PHAT_FormAnonymous', dgettext('phatform', 'Allow anonymous submissions'));\n\n $form->addCheckBox('PHAT_FormEditData', 1);\n $form->setMatch('PHAT_FormEditData', $this->_editData);\n $form->setLabel('PHAT_FormEditData', dgettext('phatform', 'Allow users to edit their form data'));\n\n $form->addCheckBox('PHAT_FormShowElementNumbers', 1);\n $form->setMatch('PHAT_FormShowElementNumbers', $this->_showElementNumbers);\n $form->setLabel('PHAT_FormShowElementNumbers', dgettext('phatform', 'Show numbers for form elements (eg: 1, 2, 3)'));\n\n $form->addCheckBox('PHAT_FormShowPageNumbers', 1);\n $form->setMatch('PHAT_FormShowPageNumbers', $this->_showPageNumbers);\n $form->setLabel('PHAT_FormShowPageNumbers', dgettext('phatform', 'Show form page numbers (eg: page 1 of 6)'));\n\n $form->addCheckBox('PHAT_FormHidden', 1);\n $form->setMatch('PHAT_FormHidden', $this->isHidden());\n $form->setLabel('PHAT_FormHidden', dgettext('phatform', 'Hide this form'));\n\n /* Can't forget the save button */\n $form->addSubmit('PHAT_SaveSettings', dgettext('phatform', 'Save Settings'));\n\n if($this->getId()) {\n $form->addSubmit('PHAT_EditElements', dgettext('phatform', 'Edit Elements'));\n $GLOBALS['CNT_phatform']['title'] = $this->getLabel();\n } else {\n $GLOBALS['CNT_phatform']['title'] = PHAT_TITLE;\n }\n\n /* Add needed hiddens */\n $form->addHidden('module', 'phatform');\n $form->addHidden('PHAT_FORM_OP', 'SaveFormSettings');\n $form->addHidden('PHAT_FormId', $this->getId());\n\n $template = $form->getTemplate();\n\n $content = PHPWS_Template::process($template, 'phatform', 'form/settings.tpl');\n\n return $content;\n }", "title": "" }, { "docid": "6792f39b891f9aeeb6761bffa6baffcd", "score": "0.6100573", "text": "public function editUrl()\n {\n return $this->cpUrl('eloquenty.collections.entries.edit');\n }", "title": "" }, { "docid": "b3a304ba3aa4c872ff761acb5e40f94a", "score": "0.609915", "text": "public function getCpEditUrl(): string;", "title": "" }, { "docid": "a63c9bc38260ceef3cbe240a88314133", "score": "0.6094896", "text": "public function form()\n {\n $this->text('url')->rules('required')->help('粘贴要导入的资源的网站地址');\n }", "title": "" }, { "docid": "7e334374ee948826bf9b09b88924db78", "score": "0.60938424", "text": "public function edit()\n {\n\n }", "title": "" }, { "docid": "7e334374ee948826bf9b09b88924db78", "score": "0.60938424", "text": "public function edit()\n {\n\n }", "title": "" }, { "docid": "2fc0878abfab06df4e4947239b7db722", "score": "0.6081921", "text": "public function validateEdit() {\n //z widoku listy osób (parametr jest wymagany)\n $this->form->id = ParamUtils::getFromCleanURL(1, true, 'Błędne wywołanie aplikacji');\n return !App::getMessages()->isError();\n }", "title": "" }, { "docid": "a2209b88101fbe18cc37674309046ec6", "score": "0.6081471", "text": "public function editAction()\n {\n $this->_initLayout();\n $this->_addContent($this->getLayout()->createBlock('arrakis_404evergone/adminhtml_rewriterule_edit'));\n $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);\n $this->renderLayout();\n }", "title": "" }, { "docid": "479163de23a1f205dee55b3ca55d6508", "score": "0.60793245", "text": "public function editAction() {\n\t\t$id = $this->getInput('id');\n\t\t$info = Client_Service_Ad::getAd(intval($id));\n\t\t$this->assign('ad_type', $this->ad_type);\n\t\t$this->assign('postion', $this->postion);\n\t\t$this->assign('info', $info);\n\t}", "title": "" }, { "docid": "6ac3f440fac8f4aae79e57b308fe362d", "score": "0.6070869", "text": "public function ItemEditForm() {\n\t\t$list = $this->gridField->getList();\n\n\t\tif (empty($this->record)) {\n\t\t\t$controller = $this->getToplevelController();\n\t\t\t$noActionURL = $controller->removeAction($_REQUEST['url']);\n\t\t\t$controller->getResponse()->removeHeader('Location'); //clear the existing redirect\n\t\t\treturn $controller->redirect($noActionURL, 302);\n\t\t}\n\n\t\t$canView = $this->record->canView();\n\t\t$canEdit = $this->record->canEdit();\n\t\t$canDelete = $this->record->canDelete();\n\t\t$canCreate = $this->record->canCreate();\n\n\t\tif(!$canView) {\n\t\t\t$controller = $this->getToplevelController();\n\t\t\t// TODO More friendly error\n\t\t\treturn $controller->httpError(403);\n\t\t}\n\n\t\t$actions = new FieldList();\n\t\tif($this->record->ID !== 0) {\n\t\t\tif($canEdit) {\n\t\t\t\t$actions->push(FormAction::create('doSave', _t('GridFieldDetailForm.Save', 'Save'))\n\t\t\t\t\t->setUseButtonTag(true)\n\t\t\t\t\t->addExtraClass('ss-ui-action-constructive')\n\t\t\t\t\t->setAttribute('data-icon', 'accept'));\n\t\t\t}\n\n\t\t\tif($canDelete) {\n\t\t\t\t$actions->push(FormAction::create('doDelete', _t('GridFieldDetailForm.Delete', 'Delete'))\n\t\t\t\t\t->setUseButtonTag(true)\n\t\t\t\t\t->addExtraClass('ss-ui-action-destructive action-delete'));\n\t\t\t}\n\n\t\t}else{ // adding new record\n\t\t\t//Change the Save label to 'Create'\n\t\t\t$actions->push(FormAction::create('doSave', _t('GridFieldDetailForm.Create', 'Create'))\n\t\t\t\t->setUseButtonTag(true)\n\t\t\t\t->addExtraClass('ss-ui-action-constructive')\n\t\t\t\t->setAttribute('data-icon', 'add'));\n\n\t\t\t// Add a Cancel link which is a button-like link and link back to one level up.\n\t\t\t$curmbs = $this->Breadcrumbs();\n\t\t\tif($curmbs && $curmbs->count()>=2){\n\t\t\t\t$one_level_up = $curmbs->offsetGet($curmbs->count()-2);\n\t\t\t\t$text = sprintf(\n\t\t\t\t\t\"<a class=\\\"%s\\\" href=\\\"%s\\\">%s</a>\",\n\t\t\t\t\t\"crumb ss-ui-button ss-ui-action-destructive cms-panel-link ui-corner-all\", // CSS classes\n\t\t\t\t\t$one_level_up->Link, // url\n\t\t\t\t\t_t('GridFieldDetailForm.CancelBtn', 'Cancel') // label\n\t\t\t\t);\n\t\t\t\t$actions->push(new LiteralField('cancelbutton', $text));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// If we are creating a new record in a has-many list, then\n\t\t// pre-populate the record's foreign key.\n\t\tif($list instanceof HasManyList && !$this->record->isInDB()) {\n\t\t\t$key = $list->getForeignKey();\n\t\t\t$id = $list->getForeignID();\n\t\t\t$this->record->$key = $id;\n\t\t}\n\n\t\t$fields = $this->component->getFields();\n\t\tif(!$fields) $fields = $this->record->getCMSFields();\n\n\t\t// If we are creating a new record in a has-many list, then\n\t\t// Disable the form field as it has no effect.\n\t\tif($list instanceof HasManyList) {\n\t\t\t$key = $list->getForeignKey();\n\n\t\t\tif($field = $fields->dataFieldByName($key)) {\n\t\t\t\t$fields->makeFieldReadonly($field);\n\t\t\t}\n\t\t}\n\n\t\t// this pushes the current page ID in as a hidden field\n\t\t// this means the request will have the current page ID in it\n\t\t// rather than relying on session which can have been rewritten\n\t\t// by the user having another tab open\n\t\t// see LeftAndMain::currentPageID\n\t\tif($this->controller->hasMethod('currentPageID') && $this->controller->currentPageID()) {\n\t\t\t$fields->push(new HiddenField('CMSMainCurrentPageID', null, $this->controller->currentPageID()));\n\t\t}\n\t\t// Caution: API violation. Form expects a Controller, but we are giving it a RequestHandler instead.\n\t\t// Thanks to this however, we are able to nest GridFields, and also access the initial Controller by\n\t\t// dereferencing GridFieldDetailForm_ItemRequest->getController() multiple times. See getToplevelController\n\t\t// below.\n\t\t$form = new Form(\n\t\t\t$this,\n\t\t\t'ItemEditForm',\n\t\t\t$fields,\n\t\t\t$actions,\n\t\t\t$this->component->getValidator()\n\t\t);\n\n\t\t$form->loadDataFrom($this->record, $this->record->ID == 0 ? Form::MERGE_IGNORE_FALSEISH : Form::MERGE_DEFAULT);\n\n\t\tif($this->record->ID && !$canEdit) {\n\t\t\t// Restrict editing of existing records\n\t\t\t$form->makeReadonly();\n\t\t\t// Hack to re-enable delete button if user can delete\n\t\t\tif ($canDelete) {\n\t\t\t\t$form->Actions()->fieldByName('action_doDelete')->setReadonly(false);\n\t\t\t}\n\t\t} elseif(!$this->record->ID && !$canCreate) {\n\t\t\t// Restrict creation of new records\n\t\t\t$form->makeReadonly();\n\t\t}\n\n\t\t// Load many_many extraData for record.\n\t\t// Fields with the correct 'ManyMany' namespace need to be added manually through getCMSFields().\n\t\tif($list instanceof ManyManyList) {\n\t\t\t$extraData = $list->getExtraData('', $this->record->ID);\n\t\t\t$form->loadDataFrom(array('ManyMany' => $extraData));\n\t\t}\n\n\t\t// TODO Coupling with CMS\n\t\t$toplevelController = $this->getToplevelController();\n\t\tif($toplevelController && $toplevelController instanceof LeftAndMain) {\n\t\t\t// Always show with base template (full width, no other panels),\n\t\t\t// regardless of overloaded CMS controller templates.\n\t\t\t// TODO Allow customization, e.g. to display an edit form alongside a search form from the CMS controller\n\t\t\t$form->setTemplate('LeftAndMain_EditForm');\n\t\t\t$form->addExtraClass('cms-content cms-edit-form center');\n\t\t\t$form->setAttribute('data-pjax-fragment', 'CurrentForm Content');\n\t\t\tif($form->Fields()->hasTabset()) {\n\t\t\t\t$form->Fields()->findOrMakeTab('Root')->setTemplate('CMSTabSet');\n\t\t\t\t$form->addExtraClass('cms-tabset');\n\t\t\t}\n\n\t\t\t$form->Backlink = $this->getBackLink();\n\t\t}\n\n\t\t$cb = $this->component->getItemEditFormCallback();\n\t\tif($cb) $cb($form, $this);\n\t\t$this->extend(\"updateItemEditForm\", $form);\n\t\treturn $form;\n\t}", "title": "" }, { "docid": "703f48919fcc4aae8518faf82081e0dc", "score": "0.6068532", "text": "public function formEdit($pId, $pHead = false) {\n \t// this form will send a PUT /item/id to the server \n \t// (in html emulation, it will be a POST /item/id, with the $_GET or $_POST['_method'] = 'PUT')\n }", "title": "" }, { "docid": "3ceef6e9643b7c3b23f63b71302f1c29", "score": "0.6067437", "text": "public function editAction() {\r\n\t\t$id = $this->getInput('id');\r\n\t\t$info = Gou_Service_Ad::getAd(intval($id));\r\n\t\t$this->assign('ad_types', $this->ad_types);\r\n\t\t$this->assign('info', $info);\r\n\t}", "title": "" }, { "docid": "c3ac17e0e299ab685e8e93381ae3a4ae", "score": "0.60623854", "text": "function edit(){\n $this->reg->config->set('page_title', 'Edit Event');\n\n // check if the form has been submitted\n if(array_key_exists('edit_event', $_SESSION['FORM'])){\n\n // insert form with the comment piece passed\n $this->model->edit_do($_SESSION['FORM']['edit_event']['id'],\n $_SESSION['FORM']['edit_event']['name'],\n $_SESSION['FORM']['edit_event']['date'],\n $_SESSION['FORM']['edit_event']['img_small'],\n $_SESSION['FORM']['edit_event']['img_large'],\n $_SESSION['FORM']['edit_event']['description'],\n\t\t\t\t\t\t\t\t $_SESSION['FORM']['edit_event']['order']);\n\n\n // unset the form and redirect\n unset($_SESSION['FORM']['edit_event']);\n header('location:/feature/index/');\n }elseif($this->reg->url->is_set('id')){\n // set the form in the layout to be echoed\n $this->reg->template->assign('edit_event', $this->model->edit($this->reg->url->get('id')));\n }else{\n // redirect to index if id is not set\n header('location:/feature/index');\n }\n }", "title": "" }, { "docid": "8b2e937daa3e79464941cdfab94021d5", "score": "0.60618204", "text": "public function editForm()\n\t{\n\t\t$crumbs = $this->Breadcrumbs();\n\t\tif($crumbs && $crumbs->count()>=2)\n\t\t{\n\t\t\t$one_level_up = $crumbs->offsetGet($crumbs->count()-2);\n\t\t}\n\t\t\n\t\t$actions = new FieldList();\n\t\t\n\t\t$actions->push(\n\t\t\tFormAction::create('SaveAll', _t('GridFieldBulkTools.SAVE_BTN_LABEL', 'Save All'))\n\t\t\t\t->setAttribute('id', 'bulkEditingUpdateBtn')\n\t\t\t\t->addExtraClass('ss-ui-action-constructive cms-panel-link')\n\t\t\t\t->setAttribute('data-icon', 'accept')\n\t\t\t\t->setAttribute('data-url', $this->gridField->Link('bulkaction/bulkedit/update'))\n\t\t\t\t->setUseButtonTag(true)\n\t\t\t\t->setAttribute('src', '')//changes type to image so isn't hooked by default actions handlers\n\t\t);\n\t\t\n\t\t$actions->push(\n\t\t\tFormAction::create('Cancel', _t('GridFieldBulkManager.CANCEL_BTN_LABEL', 'Cancel'))\n\t\t\t\t->setAttribute('id', 'bulkEditingUpdateCancelBtn')\n\t\t\t\t->addExtraClass('ss-ui-action-destructive cms-panel-link')\n\t\t\t\t->setAttribute('data-icon', 'decline')\n\t\t\t\t->setAttribute('href', $one_level_up->Link)\n\t\t\t\t->setUseButtonTag(true)\n\t\t\t\t->setAttribute('src', '')//changes type to image so isn't hooked by default actions handlers\n\t\t);\n\t\t\n\t\t$recordList = $this->getRecordIDList();\n\t\t$editedRecordList = new FieldList();\n\t\t$config = $this->component->getConfig();\n\t\t\t\t\n\t\tforeach ( $recordList as $id )\n\t\t{\t\t\t\t\t\t\n\t\t\t$recordCMSDataFields = GridFieldBulkEditingHelper::getModelCMSDataFields( $config, $this->gridField->list->dataClass );\n\t\t\t$recordCMSDataFields = GridFieldBulkEditingHelper::getModelFilteredDataFields($config, $recordCMSDataFields);\n\t\t\t$recordCMSDataFields = GridFieldBulkEditingHelper::populateCMSDataFields( $recordCMSDataFields, $this->gridField->list->dataClass, $id );\n\t\t\t\n\t\t\t$recordCMSDataFields['ID'] = new HiddenField('ID', '', $id);\t\t\t\n\t\t\t$recordCMSDataFields = GridFieldBulkEditingHelper::escapeFormFieldsName( $recordCMSDataFields, $id );\n\t\t\t\n\t\t\t$editedRecordList->push(\n\t\t\t\tToggleCompositeField::create(\n\t\t\t\t\t'GFBM_'.$id,\n\t\t\t\t\tDataObject::get_by_id($this->gridField->list->dataClass, $id)->getTitle(),\t\t\t\t\t\n\t\t\t\t\tarray_values($recordCMSDataFields)\n\t\t\t\t)->setHeadingLevel(4)\n\t\t\t\t->addExtraClass('bulkEditingFieldHolder')\n\t\t\t);\n\t\t}\n\t\t\n\t\t$form = new Form(\n\t\t\t$this,\n\t\t\t'bulkEditingForm',\n\t\t\t$editedRecordList,\n\t\t\t$actions\n\t\t);\t\t\n\t\t\n\t\tif($crumbs && $crumbs->count()>=2){\n\t\t\t$form->Backlink = $one_level_up->Link;\n\t\t}\n\n\t\treturn $form;\n\t}", "title": "" }, { "docid": "686fbcd317fc319653e17be32016e8a4", "score": "0.6051302", "text": "public function edit($edit) {\n\n\t}", "title": "" }, { "docid": "d3a6ceb6075ccc93a1a4097926e31428", "score": "0.6047594", "text": "public function btnEdit($url)\n {\n return view('viewers.event.buttons.edit', [\n 'event' => $this->entity,\n 'url' => $url,\n ]);\n }", "title": "" }, { "docid": "5722acc50e2150d56adbc897797455ad", "score": "0.60437655", "text": "public function display_edit() {\n\t\t$site = array(\n\t\t\t'title' => '',\n\t\t\t'url' => '',\n\t\t\t'unique_key' => '',\n\t\t\t'auth_user' => '',\n\t\t\t'auth_password' => '',\n\t\t);\n\n\t\t\\eoxia\\View_Util::exec( 'digirisk_dashboard', 'site', 'main-edit', array(\n\t\t\t'edit_site' => $site,\n\t\t) );\n\t}", "title": "" }, { "docid": "586d62352fdac99070ad73bc614e5a95", "score": "0.6029812", "text": "public function edit() {\t\t\n\t\t$this->set_projects();\n\t\t$this->verify_id_param();\n\t\t$this->set_object();\n\t\t$this->create_or_save();\n\t}", "title": "" }, { "docid": "b885d23de1766c47e0725faef20f3419", "score": "0.6027806", "text": "public function testEdit()\n {\n $this->visit('/')\n ->see('Login')\n ->click('Login')\n ->seePageIs('/auth/login')\n ->type('gnanakeethan@gmail.com', 'email')\n ->type('password', 'password')\n ->press('Login')\n ->seePageIs('/')\n ->click('Admin')\n ->seePageIs('/admin')\n ->see('Users')\n ->click('Users')\n ->see('Edit')\n ->click('Edit')\n ->type('TestingUser','name')\n ->select('admin','group')\n ->press('Submit');\n }", "title": "" }, { "docid": "40c5f7d2a2d215e5610ee307384094a6", "score": "0.6027057", "text": "function link() {\r\n\t\t// Passing default values to tinyMCE\r\n\t\t$this->data['Editor'] = $this->params['form'];\r\n\t}", "title": "" }, { "docid": "5f82ad9e7a727593078c62ffd2e3d72c", "score": "0.602601", "text": "public function editAction() {\n\t\t$this->view->assign('author', $this->author);\n\t}", "title": "" }, { "docid": "ce486bb63e6598e4832f335cd2e9a1ee", "score": "0.6022272", "text": "function edit()\n {\n if (right::write())\n {\n if (session::get(\"edit\"))\n echo form::link(\"endedit\",\"edit\",\"index.php?action=noedit\",\"noedit\");\n else\n echo form::link(\"edit\",\"edit\",\"index.php?action=edit\",\"edit\");\n }\n }", "title": "" }, { "docid": "0a72abcb1684a3740226492b61937c29", "score": "0.6021586", "text": "function edit($id)\n\t{\n\t\t$page_data = $this->page_model->get($id);\n\n\t\t$data = array(\n 'form_action' => site_url('admin/pages/save'),\n\t\t\t'readonly' => '',\t\t\t\n\t\t\t'title' => $page_data['title'],\n\t\t\t'url_title' => $page_data['url_title'],\n\t\t\t'content' => $page_data['content'],\t\t\t\n\t\t\t'status' => $page_data['status'],\n\t\t\t'default' => $page_data['default'],\n\t\t\t'meta_desc' => $page_data['meta_desc'],\n\t\t\t'meta_key' => $page_data['meta_key'],\n\t\t\t'date' => date('H:i m/d/Y', strtotime($page_data['date'])),\n\t\t\t'image_header' => $page_data['image_header'],\n 'id_page' => $page_data['id']\n\t\t);\n\t\t\n\t\t$this->output->append_title('Edit Page');\n \n $this->load->section('head','themes/'.$this->_template['themes'].'/static/top_nav');\n $this->load->section('menu','themes/'.$this->_template['themes'].'/static/side_menu');\n\t\t$this->load->section('flashdata','themes/'.$this->_template['themes'].'/static/notification');\n\t\t//datepicker\n\t\t$this->load->js('assets/vendor/gijgo-combined-1.9.13/js/gijgo.min.js');\n\t\t$this->load->css('assets/vendor/gijgo-combined-1.9.13/css/gijgo.min.css');\n\t\t$this->load->js('assets/js/mod_form_page.js');\n\n\t\t$this->load->view('themes/'.$this->_template['themes'].'/layout/page/form_page', $data);\n\t}", "title": "" }, { "docid": "d643f55850ab3476b7bbc22fad5cf1eb", "score": "0.6020497", "text": "public function testValidateEditForm(): void {\n $crawler = $this->logInModerator();\n $client = $this->getClient();\n\n // Go to the show page.\n $crawler = $client->click($crawler->selectLink(\"Mes CV\")->link());\n $crawler = $client->click($crawler->selectLink(\"Modifier\")->link());\n\n $form = $crawler->selectButton('Sauvegarder')->form([\n 'com_nairus_resumebundle_resume[translations][fr][title]' => ' ',\n ]);\n $crawler = $client->submit($form);\n\n $this->assertEquals(200, $client->getResponse()->getStatusCode(), \"1.1 The status code expected is not ok.\");\n $this->assertRegExp(\"~^/restricted/resume/[0-9]+/edit~\", $client->getRequest()->getRequestUri(), '1.2 The request uri is not OK');\n\n // Verify if there are some errors\n $this->assertCount(1, $crawler->filter(\".is-invalid\"), \"2.1 The form has to show 1 input in error.\");\n $this->assertCount(1, $crawler->filter(\".invalid-feedback\"), \"2.2 The form has to show 1 error message.\");\n }", "title": "" }, { "docid": "f1503411d9005ff68429f14f7dba55c8", "score": "0.60121626", "text": "public function edit()\n {\n if (!empty($_POST)) {\n $result = $this->Post->update(filter_input(INPUT_GET, 'id', FILTER_SANITIZE_NUMBER_INT), [\n 'title' =>filter_input(INPUT_POST, 'title', FILTER_SANITIZE_FULL_SPECIAL_CHARS),\n 'lead_in'=> filter_input(INPUT_POST, 'lead_in', FILTER_SANITIZE_FULL_SPECIAL_CHARS),\n 'content' => filter_input(INPUT_POST, 'content', FILTER_SANITIZE_FULL_SPECIAL_CHARS),\n 'category_id' => filter_input(INPUT_POST, 'category_id', FILTER_SANITIZE_NUMBER_INT),\n 'last_update' => date('Y-m-d H:i:s'),\n 'user_id' => $_SESSION['auth']->id\n ]);\n if ($result) {\n return App::redirect('index.php?page=admin.posts.index');\n }\n }\n $post = $this->Post->find(filter_input(INPUT_GET, 'id', FILTER_SANITIZE_NUMBER_INT));\n $categories = $this->Category->getList('id', 'title');\n $form = new BootstrapForm($post);\n $this->render('admin.posts.edit', compact('categories', 'form', 'post'));\n }", "title": "" } ]
2fcd175c1c7ea0ee91124c652396d177
Turn an array into yaml data
[ { "docid": "80de768c9ea28303d95f669a2d6b1df7", "score": "0.55621725", "text": "private function yamlise(array $input)\n\t{\n\t\t// Find the sfYAML library\n\t\t$path = Kohana::find_file('vendor', 'sfYaml/sfYaml');\n\n\t\t// Load the sfYAML library\n\t\tKohana::load($path);\n\t\t\n\t\treturn sfYaml::dump($input);\n\t}", "title": "" } ]
[ { "docid": "2d0e1c3d6cd8f7fcb6134d534497c8ab", "score": "0.7666536", "text": "public static function array_to_yaml($array)\n {\n $YAML = new \\Spyc();\n return $YAML->YAMLDump($array);\n }", "title": "" }, { "docid": "57882083d9dc5efe0607b78f3e0b4680", "score": "0.6295385", "text": "public function dump(array $array)\n {\n try {\n return ScYaml::dump($array);}\n catch (\\Symfony\\Components\\Yaml\\Exception $e) {\n throw new ParserException($e->getMessage());}\n }", "title": "" }, { "docid": "2ec9ca9b83107032e44b616cb9e59df9", "score": "0.6233485", "text": "public function exportAsYamlArray()\n {\n $yamla = array();\n\n return $yamla;\n }", "title": "" }, { "docid": "35f69aec8a76a22d3286faa56ab0b8b7", "score": "0.6210424", "text": "public function asYAML()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "b3d7aaa008692c05f0574f2f25918b20", "score": "0.60812694", "text": "function yamlvalues(&$yamlarray) {\n //init variables\n $returnvalue = [];\n\n //iterate yaml array\n foreach ($yamlarray as $key => $value) {\n if (is_array($value)) {\n $returnvalue[$key] = $this->yamlvalues($value);\n } else {\n $returnvalue[$key] = $this->yamlvalue($value);\n }\n }\n\n return $returnvalue;\n }", "title": "" }, { "docid": "04dee255f64f140423ee81e0a0f25021", "score": "0.6023316", "text": "public function toYaml(array $config = null): string\n {\n return \"---\" . PHP_EOL . trim(preg_replace('/\\-\\n\\s+/', '- ', Yaml::dump($config ? $config : $this->all(), 99, 2)));\n }", "title": "" }, { "docid": "8bda3f82cf420a21c570d7a93608b6d7", "score": "0.5781876", "text": "public function createYamlStrategy();", "title": "" }, { "docid": "de885d0f55e5d24d4becb6916a41b75b", "score": "0.57719314", "text": "public function readYamlToArray($path);", "title": "" }, { "docid": "774e521ec72f0dd68ce6da7c557faeba", "score": "0.57110727", "text": "public function importYamlArray($config)\n {\n }", "title": "" }, { "docid": "240507851be6cfd73864fff5535966e6", "score": "0.56544834", "text": "static function Dump($ar,$options = array()){\n $obj = new miniYAML($options);\n $out = \"---\";\n\t\tif($obj->_isIndexedArray($ar)){\n\t\t\t$out .= \"\\n\".$obj->_dumpIndexedArray($ar,0);\n\t\t}elseif(is_array($ar)){\n\t\t\t$out .= \"\\n\".$obj->_dumpHashArray($ar,0);\n\t\t}\n\t\t$out .= \"\\n\";\n\t\treturn $out;\n }", "title": "" }, { "docid": "722922ec1cbfe62836a94fbecc5f3755", "score": "0.55140334", "text": "private function transformObject(array $array): array\n {\n //Move post_title to label key\n $array['label'] = $array['post_title'];\n $array['id'] = (int) $array['ID'];\n $array['post_parent'] = (int) $array['post_parent'];\n\n //Unset data not needed\n unset($array['post_title']);\n unset($array['ID']);\n\n //Sort & return\n return array_merge(\n array(\n 'id' => null,\n 'post_parent' => null,\n 'post_type' => null,\n 'active' => null,\n 'ancestor' => null,\n 'label' => null,\n 'href' => null,\n 'children' => null\n ),\n $array\n );\n }", "title": "" }, { "docid": "8ab70feabb7a29f3e31dc7cefa32c57a", "score": "0.5441139", "text": "public function to_yaml()\n\t{\n\t\treturn sfYaml::dump(json_decode(json_encode($this), true), 5);\n\t}", "title": "" }, { "docid": "a8b5eb3975321bdbf80a834697f3a2a4", "score": "0.54142743", "text": "private function convertEmbeddedResources(array $array): array\n {\n foreach ($array as $key => $value) {\n if (! is_array($value)) {\n continue;\n }\n\n if (isset($value['_links']) || isset($value['_embedded'])) {\n $array[$key] = $this->createResource($value);\n } else {\n $array[$key] = $this->convertEmbeddedResources($value);\n }\n }\n\n return $array;\n }", "title": "" }, { "docid": "7f0910070743378a03295eb4f962b021", "score": "0.53650963", "text": "function createYAML($file) {\n require_once VENDORPATH.\"Spyc/Spyc.php\";\n $cols = $this->getTableColumns();\n $file = CONFIGPATH.'Forms/'.$file.\".yaml\";\n if(extension_loaded('yaml')) {\n\t\t\t// do stuff here -- with yaml\n\t\t\t$yaml = yaml_emit($cols);\n\t\t} else {\n\t\t\t// use spyc\n\t\t\t$yaml = Spyc::YAMLDump($cols);\n\t\t}\n\n file_put_contents($file,$yaml);\n }", "title": "" }, { "docid": "840c924eb60eda6366661d697206d598", "score": "0.5253137", "text": "function constructArrayDefinition ($array, $indent) {\n\t \t $lines = array();\n\t \t foreach ($array as $key => $value) {\n\t\t\tif (is_array($value)) {\n\t\t\t\t$lines[] = $indent . \"'\" . $key . \"'\" . ' => array (';\n\t\t\t\t$lines = array_merge($lines, $this->constructArrayDefinition($value, $indent . chr(9)));\n\t\t\t\t$lines[] = $indent . '),';\n\t\t\t} else {\n\t\t\t\t$lines[] = $indent . \"'\" . $key . \"' => \" . (\\TYPO3\\CMS\\Core\\Utility\\MathUtility::canBeInterpretedAsInteger($value) ? intval($value) : \"'\" . \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::slashJS(trim($value), 1) . \"'\"). ',';\n\t\t\t} \n\t \t }\n\t \t return $lines;\n\t }", "title": "" }, { "docid": "99f194c09533b8278c76da644ff7b4ba", "score": "0.52151597", "text": "public function putYaml(string $file, array $yaml)\n {\n $this->files->put($file, Yaml::dump($yaml, 5, 2));\n }", "title": "" }, { "docid": "91c33a3db54022bca6ade706b7ce16e4", "score": "0.51971906", "text": "public static function fromArray(array $array): string\n {\n return self::dump($array);\n }", "title": "" }, { "docid": "591c04a4eead7efedf948447bbe1ad47", "score": "0.51774466", "text": "public function exchangeArray(array $array)\n {\n $this->setId(isset($array['id']) ? $array['id'] : null);\n $this->setTitle(isset($array['title']) ? $array['title'] : null);\n $this->setDescription(isset($array['description']) ? $array['description'] : null);\n }", "title": "" }, { "docid": "9734fc8d55c4b6c88adca1078d46ff3d", "score": "0.5169125", "text": "public function format_array( $data = array() ) {\n\n\t\t// Do we have anything in this array?\n\t\tif ( is_array( $data ) && ! empty( $data ) ) {\n\n\t\t\t$this->previous_ID = $this->ID;\n\t\t\t$this->ID = isset( $data[ 'id' ] ) ? $data[ 'id' ] : 0;\n\t\t\t$this->post_title = isset( $data[ 'title' ] ) ? $data[ 'title' ] : '';\n\t\t\t$this->post_content = isset( $data[ 'content' ] ) ? $data[ 'content' ] : '';\n\t\t\t$this->post_path = isset( $data[ 'path' ] ) ? $data[ 'path' ] : '';\n\t\t\t$this->post_status = isset( $data[ 'status' ] ) ? $data[ 'status' ] : '';\n\t\t\t$this->post_template = isset( $data[ 'template' ] ) ? $data[ 'template' ] : '';\n\t\t\t$this->post_type = isset( $data[ 'type' ] ) ? $data[ 'type' ] : '';\n\t\t\t$this->post_tags = isset( $data[ 'tags' ] ) ? json_decode( $data[ 'tags' ], true ) : array();\n\t\t\t$this->post_author_ID = isset( $data[ 'author_id' ] ) ? $data[ 'author_id' ] : 0;\n\t\t\t$this->post_parent_ID = isset( $data[ 'parent_id' ] ) ? $data[ 'parent_id' ] : 0;\n\t\t\t$this->post_media_ID = isset( $data[ 'media_id' ] ) ? $data[ 'media_id' ] : 0;\n\t\t\t$this->published_at = isset( $data[ 'published_at' ] ) ? $data[ 'published_at' ] : '';\n\t\t\t$this->created_at = isset( $data[ 'created_at' ] ) ? $data[ 'created_at' ] : '';\n\t\t\t$this->updated_at = isset( $data[ 'updated_at' ] ) ? $data[ 'updated_at' ] : '';\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "160eb022a014dd0035cd5079ed4df1be", "score": "0.5158903", "text": "private function convert_data( $array ) {\n foreach ((array) $array as $key => $value) {\n if (is_array($value)) {\n $array[$key] = self::convert_data($value);\n }\n }\n return (object) $array;\n }", "title": "" }, { "docid": "75b0eadcc28bba083cdfc6f8215dfddc", "score": "0.5126055", "text": "function yaml_file_to_array($file_name){\n $CI =& get_instance();\n $CI->load->library('spyc');\n if (file_exists($file_name)){\n $array = $CI->spyc->YAMLLoad($file_name);\n return $array;\n\n }\n else\n {\n return false;\n\n }\n\n }", "title": "" }, { "docid": "7eaa2eedbdebd5f5b4b3f253d86c664b", "score": "0.5123691", "text": "protected function transformArray($array)\n {\n $result = array();\n foreach ($array as $key => $value) {\n $newArray = array('name' => $key);\n if (!is_array($value)) {\n $newArray['size'] = (int)$value;\n } else {\n $newArray['children'] = $this->transformArray($value);\n }\n\n $result[] = $newArray;\n }\n\n return $result;\n }", "title": "" }, { "docid": "8a2cdb4edd4ef1ef6f59f069701bb3bc", "score": "0.51222885", "text": "private function convert_data( $array ) {\n\t\t\tforeach ( (array) $array as $key => $value ) {\n\t\t\t\tif ( is_array( $value ) ) {\n\t\t\t\t\t$array[ $key ] = self::convert_data( $value );\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn (object) $array;\n\t\t}", "title": "" }, { "docid": "b7b9ddeb402732764a3a8e87af28828e", "score": "0.51175576", "text": "public function toYaml()\n\t{\n\t\t$feature = $this->feature;\n\t\tif (in_array($feature, Feature::ADMIN)) {\n\t\t\t$yaml = new Yaml(Yaml::defaultFileName(Controller\\Feature::F_ADMIN));\n\t\t\t$yaml->extendYaml();\n\t\t}\n\t\telseif (in_array($feature, Feature::API)) {\n\t\t\t$yaml = new Yaml(Yaml::defaultFileName(Controller\\Feature::F_API));\n\t\t\t$yaml->extendYaml();\n\t\t}\n\t\telseif (in_array($feature, Feature::EDIT)) {\n\t\t\t$yaml = new Yaml(Yaml::defaultFileName(Controller\\Feature::F_EDIT));\n\t\t\t$yaml->extendYaml();\n\t\t\tforeach ($this->getDependencies([Controller\\Feature::F_JSON]) as $feature) {\n\t\t\t\t$yaml->addFeature($feature);\n\t\t\t}\n\t\t}\n\t\telseif (in_array($feature, Feature::EXPORT)) {\n\t\t\t$yaml = new Yaml(Yaml::defaultFileName(Controller\\Feature::F_EXPORT));\n\t\t\t$yaml->extendYaml();\n\t\t}\n\t\telseif (in_array($feature, Feature::IMPORT)) {\n\t\t\t$yaml = new Yaml(Yaml::defaultFileName(Controller\\Feature::F_IMPORT));\n\t\t\t$yaml->extendYaml();\n\t\t}\n\t\telseif (in_array($feature, Feature::OUTPUT)) {\n\t\t\t$yaml = new Yaml(Yaml::defaultFileName(Controller\\Feature::F_OUTPUT));\n\t\t\t$yaml->extendYaml();\n\t\t}\n\t\telse {\n\t\t\t$yaml = false;\n\t\t}\n\t\treturn $yaml;\n\t}", "title": "" }, { "docid": "581c9d539a3e73ae31b53ed971c626de", "score": "0.5109818", "text": "abstract protected function transformArrayToData($data);", "title": "" }, { "docid": "23c44ed51c24fda7220786f0006c5518", "score": "0.5099933", "text": "public function transform(array $config): string\n {\n if (!\\extension_loaded('php_yaml')) {\n return '';\n }\n return \\yaml_emit($config, YAML_UTF8_ENCODING, YAML_LN_BREAK);\n }", "title": "" }, { "docid": "a0c11f7eb2d56b0d9cb101fd8902dff8", "score": "0.5095981", "text": "public static function dataTextToDataInArray(array &$array)\n {\n return array_walk_recursive($array, array(static::class, 'dataTextToData'));\n }", "title": "" }, { "docid": "377d7e14d557c2c22c140201fcc0301a", "score": "0.5062038", "text": "public function readYaml(){ }", "title": "" }, { "docid": "1bacad1272161ac7dd4ca0c73c192e98", "score": "0.5040244", "text": "public static function fromArray(array $data);", "title": "" }, { "docid": "1bacad1272161ac7dd4ca0c73c192e98", "score": "0.5040244", "text": "public static function fromArray(array $data);", "title": "" }, { "docid": "261162b1d7fc01690c12d79719c2274f", "score": "0.49884954", "text": "public function create (array $array): string;", "title": "" }, { "docid": "1e3a85b700184a40875d5718fd345c77", "score": "0.49799687", "text": "public static function prepareForHtml($array){\n if (sizeof($array) == 0){\n return null;\n }\n foreach ($array as $k => $v) {\n if(is_array($v)){\n self::prepareForHtml($v);\n }else{\n $array[$k] = StringMethods::prepareForHtml($v);\n }\n }\n\n return $array;\n\n }", "title": "" }, { "docid": "4494c45a3efc5001efd5eafdc8747cea", "score": "0.49629566", "text": "protected function saveYamlFile(array $data, $path)\n {\n $newFile = new YamlFile();\n $newFile->setFilesystem($this->filesystem);\n $newFile->setPath($path);\n\n try {\n $newFile->dump($data, [\n 'objectSupport' => true,\n 'inline' => 7,\n ]);\n\n return true;\n } catch (DumpException $e) {\n return false;\n }\n }", "title": "" }, { "docid": "f75def92c0bbc163643a960ebbff7ac4", "score": "0.4960858", "text": "static public function array2string($array, $configs=null, $first=true);", "title": "" }, { "docid": "be3c10365efa991f4bbd0262233fb996", "score": "0.49551633", "text": "function putArrayToStrDns($arr)\n\t{\n\t\tif (!$arr)\n\t\t\treturn \"\";\n\n\t\t$alanlar = array_keys($arr[0]); // gets array keys, from first(0th) array element of two-dimensional $arr array.\n\n\t\t// following code, replaces fields from template to values here in $arr two-dim array. each $arr element written to output file accourding to template file.\n\t\t$replacealanlar = arrayop($alanlar, \"strop\");\n\n\n\t\tforeach ($arr as $ar1) { // template e gore apacehe dosyasn olustur\n\t\t\t// Check which template to really use for DNS\n\t\t\tif ($ar1[\"dnsmaster\"] <> '') {\n\t\t\t\t// Use slave template\n\t\t\t\t$template = $this->dnsnamedconftemplate_slave;\n\t\t\t} elseif ($ar1[\"dnsmaster\"] == '') {\n\t\t\t\t// Use master template\n\t\t\t\t$template = $this->dnsnamedconftemplate;\n\t\t\t}\n\n\t\t\t$templatefile = file_get_contents($template);\n\t\t\t$temp = $templatefile;\n\t\t\t$temp = str_replace($replacealanlar, $ar1, $temp);\n\t\t\t$out .= $temp;\n\t\t}\n\n\t\treturn $out;\n\t}", "title": "" }, { "docid": "f0585429bcd0e3f9bf4bdba17b585936", "score": "0.4954458", "text": "protected function convertOutputData($array){\n if($this->objectOutput){\n $array = $this->arrayToObject($array);\n }\n return $array;\n }", "title": "" }, { "docid": "38a3210ec514e62920b642523d6c9bc9", "score": "0.49298838", "text": "public static function arrayToXml(array $data)\n {\n $xml = '';\n foreach ($data as $key => $value) {\n $tag = (is_numeric($key)) ? 'item' : $key;\n\n $xml = (!empty($xml)) ? $xml : '';\n if (is_array($value)) {\n $xml .= \"<$tag index=\\\"\" . $key . \"\\\">\" . self::arrayToXml($value) . \"</$tag>\";\n } else {\n $xml .= \"<$tag>\" . $value . \"</$tag>\";\n }\n }\n\n return $xml;\n }", "title": "" }, { "docid": "011a9cef2573a19952f9b59d0ab71144", "score": "0.4917787", "text": "protected function prepareData(array $data)\n {\n if (isset($data['stores'])) {\n foreach ($data['stores'] as $key => $store) {\n if (isset($this->mappingStores[$store])) {\n $data['stores'][$key] = $this->mappingStores[$store];\n }\n }\n }\n $data['option_title'] = $this->options;\n\n return $data;\n }", "title": "" }, { "docid": "bfbb544c39f044b92d1c28bfedd1bd55", "score": "0.49109828", "text": "function putArrayToStr($arr, $template, $additionalTemplateLogic = false)\n\t{\n\t\t// bir template e gore dosyaya yazar. array template de yerine koyar. template de array elemanlari {domain} seklinde olmalidir.\n\n\t\tif (!$arr)\n\t\t\treturn \"\";\n\n\t\t$alanlar = array_keys($arr[0]); // gets array keys, from first(0th) array element of two-dimensional $arr array.\n\n\t\t// following code, replaces fields from template to values here in $arr two-dim array. each $arr element written to output file accourding to template file.\n\t\t$replacealanlar = arrayop($alanlar, \"strop\");\n\t\t$templatefile = file_get_contents($template);\n\n\t\tforeach ($arr as $ar1) { // template e gore apacehe dosyasn olustur\n\t\t\t$temp = $templatefile;\n\n\t\t\tif ($additionalTemplateLogic === true) {\n\t\t\t\t$temp = $this->adjustDomainTemplateDependingOnSSLSettings($temp, $ar1, \"subdomain\");\n\t\t\t}\n\n\t\t\t$temp = str_replace($replacealanlar, $ar1, $temp);\n\t\t\t$out .= $temp;\n\t\t}\n\n\t\treturn $out;\n\t}", "title": "" }, { "docid": "32ce56c3034ede24b2c775b60630b533", "score": "0.4907772", "text": "public function transform(array $data)\n {\n return $data;\n }", "title": "" }, { "docid": "629451ddbf036202814316fc390cf3d4", "score": "0.49009538", "text": "function array_to_xml($array) {\n return json_to_xml(array_to_json($array));\n}", "title": "" }, { "docid": "581fdc6b2deb3f4ef6f0b4bfeabd0fe9", "score": "0.48891228", "text": "protected function pasar($array) {\n foreach($array as $variable):\n $this->set($variable, $this->Unificacion->read($variable));\n endforeach;\n }", "title": "" }, { "docid": "2650af41942aadffe69bbac2b678c18a", "score": "0.48884058", "text": "public static function createArrayString($array)\n {\n $output = [];\n foreach ($array as $key => $value) {\n $output[] = self::$prependString . \"\\t'{$key}' => $value\";\n }\n\n $arrayString = implode(\",\\n\", $output);\n $out = \"[\\n\" \n . $arrayString\n . \"\\n\" . self::$prependString . \"]\";\n\n return $out;\n }", "title": "" }, { "docid": "5dfe31cfc955e05196c8a6b4d585adc8", "score": "0.4884359", "text": "function yaml($string) {\n return yaml::decode($string);\n}", "title": "" }, { "docid": "a31a5a25cdad7cbe180c6e9da0b329a2", "score": "0.48656434", "text": "private function arrayToXml(array &$data, SimpleXMLElement $xmlData)\n {\n foreach ($data as $key => $value) {\n $key = ltrim($key, '_');\n\n if (\\is_array($value)) {\n if (\\is_numeric($key)) {\n $key = 'resource';\n }\n\n if (false === empty($value[JsonTransformer::LINKS_HREF])) {\n $subnode = $xmlData->addChild('link');\n $subnode->addAttribute('rel', $key);\n\n foreach ($this->linkKeys as $linkKey) {\n if (!empty($value[$linkKey])) {\n $subnode->addAttribute($linkKey, $value[$linkKey]);\n }\n }\n } else {\n if (!empty($value[JsonTransformer::LINKS_KEY][JsonTransformer::LINK_SELF][JsonTransformer::LINKS_HREF])) {\n $subnode = $xmlData->addChild('resource');\n $subnode->addAttribute(\n JsonTransformer::LINKS_HREF,\n $value[JsonTransformer::LINKS_KEY][JsonTransformer::LINK_SELF][JsonTransformer::LINKS_HREF]\n );\n\n if ($key !== 'resource') {\n $subnode->addAttribute('rel', $key);\n }\n } else {\n $subnode = $xmlData->addChild($key);\n }\n }\n\n $this->arrayToXml($value, $subnode);\n } else {\n if ($key !== JsonTransformer::LINKS_HREF) {\n if ($value === true || $value === false) {\n $value = ($value) ? 'true' : 'false';\n }\n\n $xmlData->addChild(\"$key\", '<![CDATA['.html_entity_decode($value).']]>');\n }\n }\n }\n }", "title": "" }, { "docid": "3f767ce2d7d75a5ff210768faa2f4b71", "score": "0.48616946", "text": "public function transformArray(array $data): FormatDto\n {\n $dto = new FormatDto($this->serializer, $this->validator);\n \n $dto->id = $data['id'] ?? null;\n $dto->name = $data['name'] ?? null;\n $dto->translationKey = $data['translationKey'] ?? null;\n \n return $dto;\n }", "title": "" }, { "docid": "a43d453672137b83c736d433fb83c7fd", "score": "0.48412025", "text": "private function parseYaml(string $input)\n {\n $yaml = Yaml::parse($input);\n\n if (isset($yaml['~anchors'])) {\n unset($yaml['~anchors']);\n }\n\n $parseRecursive = static function ($value) use (&$parseRecursive) {\n if (is_array($value)) {\n if (isset($value['<<<'])) {\n $mergeValues = $value['<<<'];\n unset($value['<<<']);\n\n if (is_array($mergeValues) && $mergeValues) {\n if (!isset($mergeValues[0]) || ($mergeValues !== array_values($mergeValues))) {\n $mergeValues = [ $mergeValues ];\n }\n\n foreach ($mergeValues as $mergeValue) {\n $value = array_replace_recursive($value, $mergeValue);\n }\n }\n }\n\n if (isset($value['~generator'])) {\n $options = $value['~generator'];\n $generator = static function (int $start, int $step, int $stop): Generator {\n for ($i = $start; $i <= $stop; $i += $step) {\n yield $i;\n }\n };\n\n return $generator($options['start'] ?? 0, $options['step'] ?? 1, $options['stop'] ?? 9);\n }\n\n if (isset($value['~object'])) {\n $className = $value['~object'];\n unset($value['~object']);\n\n $parameters = array_values(array_map($parseRecursive, $value));\n return new $className(...$parameters);\n }\n\n return array_map($parseRecursive, $value);\n }\n\n return $value;\n };\n\n return $parseRecursive($yaml);\n }", "title": "" }, { "docid": "4bfb9aafcff2262876c1e20a08424fd5", "score": "0.48410866", "text": "function arrayToXML($array,$loop=0) {\r\n // Coloca chaves somente uma vez a cada chamada\r\n $xml = (($loop) ? '' : '<record>');\r\n\r\n foreach($array as $key => $value) {\r\n // Trata chave contendo aspas duplas\r\n $xml.='<'.str_replace(' ','_',str_replace('\"','\\\"',$key)).'>';\r\n\r\n if (is_array($value)) {\r\n // Trata subarray\r\n $xml.= arrayToJson($value,$loop);\r\n } else {\r\n // Trata valor contendo aspas duplas\r\n $xml.= $value;\r\n }\r\n $xml.='</'.str_replace(' ','_',str_replace('\"','\\\"',$key)).'>';\r\n }\r\n \r\n // Coloca chaves somente uma vez a cada chamada\r\n $xml.=(($loop) ? '' : '</record>');;\r\n \r\n $loop++;\r\n \r\n // Remove vírgula desnecessária\r\n return str_replace(', }','}',$xml);\r\n}", "title": "" }, { "docid": "1856cd50c33ebe98613105841a46d3e7", "score": "0.4834577", "text": "public static function fromArray(array $array);", "title": "" }, { "docid": "d2c53bc50ca15c199fb6156e2d378502", "score": "0.48323292", "text": "function set_labels_from_array( $a )\n\t{\n\t\t$x_axis_labels = new x_axis_labels();\n\t\t$x_axis_labels->set_labels( $a );\n\t\t$this->labels = $x_axis_labels;\n\t\t\n\t\tif( isset( $this->steps ) )\n\t\t\t$x_axis_labels->set_steps( $this->steps );\n\t}", "title": "" }, { "docid": "8a6098e9e05c895d3e8c01a5b201b249", "score": "0.48253676", "text": "private function array2xml($array, $xml = false){\n\t\t\tif($xml === false){\n\t\t\t\t$xml = new SimpleXMLElement('<root/>');\n\t\t\t}\n\t\t\tforeach($array as $key => $value){\n\t\t\t\tif(is_array($value)){\n\t\t\t\t\t$this->array2xml($value, $xml->addChild($key));\n\t\t\t\t}else{\n\t\t\t\t\t$xml->addChild($key, $value);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $xml->asXML();\n\t\t}", "title": "" }, { "docid": "eb5b972a49facb9c8c206e2c31a8eb3a", "score": "0.4820632", "text": "private function yamlProcess(){\n //values\n $session=new httpSession();\n\n\n $querydata=$this->requestGetMethodCallback($session,function() use ($session){\n return $this->requestPostProcess($session);\n });\n\n $value = Yaml::parse(file_get_contents($this->serviceYamlFile));\n $yaml = Yaml::dump(['http'=>strtolower(request),\n 'servicePath'=>''.app.'/'.service.'/'.method.'',\n 'data'=>$this->namedDataDumpList($session,$this->yObjects),\n 'headers'=>$this->getClientHeaders($session)\n ]+$querydata +$value+['info'=>$this->yInfo]\n );\n\n //$session->remove(\"serviceDumpHashData\");\n //$session->remove(\"serviceDumpHashDataHeaders\");\n\n return $yaml;\n }", "title": "" }, { "docid": "69ef815e4d96aa38e4873c35da809066", "score": "0.4816398", "text": "private function convert($array)\n {\n if (!is_array($array)) {\n return json_encode(['echo' => $array]);\n }\n\n $array['echo'] = (isset($array['echo'])) ? $array['echo'] : false;\n $array['redirect'] = (isset($array['redirect'])) ? $array['redirect'] : false;\n return json_encode($array);\n }", "title": "" }, { "docid": "506d476dd445fb6a304cbd3f42b4744f", "score": "0.48085973", "text": "protected function toSnake($array)\n {\n return collect($array)->map(function($value, $key) {\n return [Str::snake($key) => $value];\n });\n }", "title": "" }, { "docid": "90448925bafc29f575810eea2603950b", "score": "0.48048627", "text": "public function data($array = array())\n {\n return $this->slice->arrayData($array);\n }", "title": "" }, { "docid": "c5622a02341e2b21cb700c242a4a09e5", "score": "0.48010647", "text": "private static function formatXml($array)\n {\n $result = [];\n $routes = [];\n $multilinesTags = [];\n foreach ($array as $key => $data) {\n $tag = str_replace('-', '_', strtolower($data['tag']));\n $value = isset($data['value']) ? $data['value'] : '';\n if (in_array($value, ['true', 'false'])) {\n $value = $value == 'true' ? true : false;\n }\n switch ($data['type']) {\n case 'cdata':\n $currentPointer = &$routes[$tag];\n break;\n case 'open':\n /**\n * In case of open tag create new array key\n * or find existing one and make it work point\n */\n if (!isset($routes[$tag])) {\n $currentPointer = &$result;\n foreach ($routes as $name => $route) {\n $currentPointer = &$currentPointer[$name];\n /**\n * if tag came on path is multilevel - we guaranteed working with last element\n * guarantee comes with fact that we going from top to bottom of xml\n * filling always last element\n */\n if (in_array($name, $multilinesTags)) {\n end($currentPointer);\n $currentPointer = &$currentPointer[key($currentPointer)];\n }\n }\n if (!isset($currentPointer[$tag]) && !in_array($tag, $multilinesTags)) {\n //data is the only on level\n $currentPointer[$tag] = [];\n $routes[$tag] = &$currentPointer[$tag];\n $currentPointer = &$routes[$tag];\n } else {\n //data level has multiple lines\n if (!in_array($tag, $multilinesTags)) {\n $multilinesTags[] = $tag;\n $existingData = $currentPointer[$tag];\n $currentPointer = [\n $tag => [\n 'multilines' => true,\n $existingData,\n ],\n ];\n }\n $currentPointer[$tag][] = [];\n end($currentPointer[$tag]);\n $lastKey = key($currentPointer[$tag]);\n $routes[$tag] = &$currentPointer[$tag][$lastKey];\n $currentPointer = &$currentPointer[$tag][$lastKey];\n }\n } else {\n $currentPointer = &$routes[$tag];\n }\n break;\n case 'complete':\n $currentPointer[$tag] = $value;\n break;\n case 'close':\n unset($routes[$tag]);\n break;\n }\n }\n return $result;\n }", "title": "" }, { "docid": "ec5545970d92db3765766209f06b8ed8", "score": "0.47907755", "text": "public function array_to_associative($array) {\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "44a49bb975cca69c681c97ba0ac912f0", "score": "0.4779961", "text": "private function _convertDottedPropertiesToArray(&$array)\n {\n foreach ($array as $section => $sectionArray) {\n $merged = array();\n foreach ($sectionArray as $key => $value) {\n $property = $this->_dotToArray($key, $value);\n $merged = array_merge_recursive($merged, $property);\n }\n $array[$section] = $merged;\n }\n }", "title": "" }, { "docid": "7bcb4aff5c4259c03414ac8176c5b5c9", "score": "0.47784835", "text": "private function updateConfig()\n {\n if ($this->getId('updated', 'anything') === false) {\n return;\n }\n $yaml = array();\n\n // Blog\n $yaml['blog'] = $this->config('blog');\n\n // Authors\n $yaml['authors'] = array();\n $authors = $this->config('authors');\n foreach ($this->db->all(array(\n 'SELECT authors.path, authors.name',\n 'FROM blog AS b',\n 'INNER JOIN authors ON b.author_id = authors.id',\n 'WHERE b.featured <= 0 AND b.published < 0 AND b.updated < 0 AND b.author_id != 0',\n 'GROUP BY authors.id',\n 'ORDER BY authors.name ASC',\n ), '', 'assoc') as $row) {\n $merge = (isset($authors[$row['path']])) ? $authors[$row['path']] : array();\n $yaml['authors'][$row['path']] = array_merge(array(\n 'name' => $row['name'],\n 'image' => '',\n ), $merge);\n unset($authors[$row['path']]);\n }\n foreach ($authors as $path => $values) {\n $yaml['authors'][$path] = $values;\n }\n\n // Categories\n $yaml['categories'] = array();\n $categories = $this->config('categories');\n $hier = new Hierarchy($this->db, 'categories');\n if ($this->getId('updated', 'categories')) {\n $hier->refresh('name');\n }\n $tree = $hier->tree(array('path', 'name'));\n unset($hier);\n foreach ($tree as $row) {\n $merge = (isset($categories[$row['path']])) ? $categories[$row['path']] : array();\n $yaml['categories'][$row['path']] = array_merge(array(\n 'name' => $row['name'],\n ), $merge);\n unset($categories[$row['path']]);\n }\n foreach ($categories as $path => $values) {\n $yaml['categories'][$path] = $values;\n }\n\n // Tags\n $yaml['tags'] = array();\n $tags = $this->config('tags');\n foreach ($this->db->all(array(\n 'SELECT tags.path, tags.name',\n 'FROM tagged AS t',\n 'INNER JOIN tags ON t.tag_id = tags.id',\n 'GROUP BY tags.id',\n 'ORDER BY tags.name ASC',\n ), '', 'assoc') as $row) {\n $merge = (isset($tags[$row['path']])) ? $tags[$row['path']] : array();\n $yaml['tags'][$row['path']] = array_merge(array(\n 'name' => $row['name'],\n ), $merge);\n unset($tags[$row['path']]);\n }\n foreach ($tags as $path => $values) {\n $yaml['tags'][$path] = $values;\n }\n\n file_put_contents($this->folder.'config.yml', Yaml::dump($yaml, 3));\n }", "title": "" }, { "docid": "e7f633d0ae73a05f512440f723b4da6d", "score": "0.4778197", "text": "function array_to_xml($data, &$xml_data){\n foreach($data as $key => $value){\n if(is_array($value)){\n if(is_numeric($key)){\n $key = \"item{$key}\";\n }\n $subnode = $xml_data->addChild($key);\n array_to_xml($value, $subnode);\n }else{\n if(is_numeric($key)){\n $key = \"item{$key}\";\n }\n $xml_data->addChild($key, htmlspecialchars($value));\n }\n }\n}", "title": "" }, { "docid": "ffa353d39506768d04860c7b9d5ce4ee", "score": "0.47653982", "text": "private function toArray(array $array): array\n {\n foreach($array as &$value) {\n if (is_array($value)) {\n $value = $this->toArray($value);\n } elseif(is_object($value)) {\n $value = $value->dump();\n }\n }\n\n return $array;\n }", "title": "" }, { "docid": "b6c5d1edbe2a3ae87af150dd5d9e8251", "score": "0.4764382", "text": "public function transform(array &$data)\n {\n // Adjust the response format data label\n $named = request()->route()->getName();\n switch ($named) {\n /* Admin */\n /* data list */\n case 'games.lottery.admin.setting.type.list':\n // 不顯示的欄位\n $data['data'] = collect($data['data'])->map(function ($info) {\n return collect($info)->forget([\n 'game_id',\n 'created_at',\n 'updated_at',\n ])->all();\n })->all();\n break;\n /* data */\n case 'games.lottery.admin.setting.type.create':\n case 'games.lottery.admin.setting.type.show':\n // 不顯示的欄位\n $data = collect($data['data'])->forget([\n 'game_id',\n 'created_at',\n 'updated_at',\n ])->all();\n break;\n /* User */\n case 'games.lottery.query.info':\n // 不顯示的欄位\n $data['data'] = collect($data['data'])->map(function ($info) {\n return collect($info)->forget([\n 'id',\n 'general_data_json',\n 'general_digits',\n 'general_repeat',\n 'special_data_json',\n 'special_digits',\n 'special_repeat',\n 'repeat',\n 'reservation',\n 'win_rate',\n 'created_at',\n 'updated_at',\n ])->all();\n })->all();\n break;\n default:\n break;\n }\n }", "title": "" }, { "docid": "9607130e26c9b9661de55f18e99afc26", "score": "0.4762513", "text": "public function arrayToObject(array $array = array())\n {\n \t$article = new Core_Model_Article();\n \t\n \tif(array_key_exists('id', $array)) {\n \t\t$article->setId($array['id']);\n \t}\n \t$article->setContent($array['content'])\n \t\t\t->setTitle($array['title']);\n \t\n \t$mapperCateg = new Core_Model_Mapper_Categorie();\n \t$article->setCategorie($mapperCateg->find($array['categorie']));\n \t\n \t$mapperAuthor = new Core_Model_Mapper_Auteur();\n \t$article->setAuthor($mapperAuthor->find($array['author']));\n \t\n \t/*foreach($array as $key => $val)\n \t{\n \t\t$method = 'set' . ucfirst($key);\n \t\tif(method_exists($article, $method)){\n \t\t\t$article->$method(htmlspecialchars($val));\n \t\t}\n \t}*/\n \treturn $article;\n }", "title": "" }, { "docid": "0be3c05b0fd36e0e6574288a7b7c2336", "score": "0.4761924", "text": "function _pdf_glue_array($array, $glue_children = true)\n\t{\n\t$retval = [];\n\n\tforeach($array as $value)\n\t\t{\n\t\tif($glue_children && is_array($value))\n\t\t\t$value = sprintf(\"[%s]\", _pdf_glue_array($value));\n\n\t\t$retval[] = sprintf(\"%s\", $value);\n\t\t}\n\n\treturn(implode(\" \", $retval));\n\t}", "title": "" }, { "docid": "442eb7d30a7b4914551181df30d44a3e", "score": "0.47605228", "text": "function array_to_xml( $data, &$xml_data ) {\n foreach( $data as $key => $value ) {\n if( is_array($value) ) {\n if( is_numeric($key) ){\n $key = 'item'.$key;\n }\n $subnode = $xml_data->addChild($key);\n array_to_xml($value, $subnode);\n } else {\n \tif( is_numeric($key) ){\n $key = 'item'.$key;\n }\n $xml_data->addChild($key, htmlspecialchars($value));\n }\n }\n}", "title": "" }, { "docid": "9a392623bdac27e7c8120bbbca8a03c0", "score": "0.4754858", "text": "public function arraytoKML($array,$name=\"spontts\"){\n\t\t\t$header='<?xml version=\"1.0\" encoding=\"UTF-8\"?>';\n\t\t\t/*$header.='<kml xmlns=\"http://www.opengis.net/kml/2.2\" xmlns:atom=\"http://\nwww.w3.org/2005/Atom\" xmlns:xal=\"urn:oasis:names:tc:ciq:xsdschema:xAL:\n2.0\" xmlns:gx=\"http://www.google.com/kml/ext/2.2\">';*/ \n\t\t\t$header.='<Document><name><![CDATA['.$name.']]></name>';\n\t \t\t$footer='</Document></kml></xml>';\n\t\t\t\n\t\t\t$this->text=$header;\n\t\t\t$this->text.=$this->array_transform($array);\n\t\t\t$this->text.=$footer;\n\t\t\treturn $this->text;\n\t\t}", "title": "" }, { "docid": "62c03c6db9b0b9d90daebc053653d984", "score": "0.47395018", "text": "private function arrayToConfString($array, $depth) {\r\n\t\t$configString = '';\r\n\t\t$tab = \"\\t\";\r\n\t\tfor ($i=0; $i<$depth; $i++) { $tabs .= $tab; };\r\n\t\t\r\n\t\t$counter = 1;\r\n\r\n\t\tforeach($array as $key => $value) {\r\n\t\t\tif(is_array($value)) {\r\n\t\t\t\t$configString .= $tabs.$key.\": {\\n\";\r\n\t\t\t\t$configString .= $this->arrayToConfString($value,$depth++);\r\n\t\t\t\tif($counter != count($array)) {\r\n\t\t\t\t\t$configString .= $tabs.\"},\\n\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$configString .= $tabs.\"}\\n\";\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif($counter != count($array)) {\r\n\t\t\t\t\t$configString .= $tabs.$tab.$key.\": \".$value.\",\\n\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$configString .= $tabs.$tab.$key.\": \".$value.\"\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$counter++;\r\n\t\t}\r\n\r\n\t\treturn $configString;\r\n\t}", "title": "" }, { "docid": "5a3161ab1890a3909dc4958ab2b50eba", "score": "0.47372743", "text": "public function getDatosYml() {\n return sfYaml::load($this->getYml());\n }", "title": "" }, { "docid": "8e53c75262907cec030c5667d2fdd1a6", "score": "0.47346026", "text": "private function toLabelValues(array $data)\n {\n $result = [];\n foreach ($data as $value => $label) {\n $result []= [\n 'label' => $label,\n 'value' => $value,\n ];\n }\n return $result;\n }", "title": "" }, { "docid": "3bf81b227dc4fc52f4102105ab247778", "score": "0.47278315", "text": "public function makePayload(array $data);", "title": "" }, { "docid": "14dd6c5cccd9f7f14f233542e6853e20", "score": "0.47244024", "text": "public function setSlugConfig($array) {\n\t\tforeach ($array as $key => $value) {\n\t\t\t$this->sluggable[$key] = $value;\n\t\t}\n\t}", "title": "" }, { "docid": "ebe68731a330a67cca2c022d62671f5a", "score": "0.47212827", "text": "function ArrayToObject( &$data )\n{\n\t$fields = \"{\";\n\n\tif( is_array( $data ) )\n\t{\n\t\tforeach( $data as $k => $v )\n\t\t{\n\t\t\tif( is_array( $v ) )\n\t\t\t\t$v = ArrayToObject( $v );\n\t\t\telse# if( !is_numeric( $v ) ) // string? add slashes and outer quotes\n\t\t\t\t$v = \"\\\"\" . addslashes( $v ) . \"\\\"\"; // rawurlencode, what about CRLF?\n\n\t\t\t// not the first one, add seperator\n\t\t\tif( $fields != \"{\" )\n\t\t\t\t$fields .= \",\";\n\n\t\t\t$fields .= \"{$k}:{$v}\";\n\t\t}\n\t}\n\n\t$fields .= \"}\";\n\n\treturn $fields;\n}", "title": "" }, { "docid": "46b7eda485e1a0662e2e035cc4ca9f41", "score": "0.47142023", "text": "public function replaceGuidsInArray($data, $array)\n {\n $normalized = [];\n $search = [\"sense0guid\", \"sense1guid\", \"example0guid\", \"example1guid\"];\n $replacements = [$data[\"sense0guid\"], $data[\"sense1guid\"], $data[\"example0guid\"], $data[\"example1guid\"]];\n foreach ($array as $key => $value) {\n $normalizedKey = str_replace($search, $replacements, $key);\n $normalizedValue = str_replace($search, $replacements, $value);\n $normalized[$normalizedKey] = $normalizedValue;\n }\n return $normalized;\n }", "title": "" }, { "docid": "c94799e879b6c0314560a97e46edb114", "score": "0.47130883", "text": "public function convert_array_url( $array ) {\n\t\t\t\n\t\t\tforeach ( $array as $key => $value ) {\n\t\t\t\n\t\t\t\tif ( is_array( $value ) ) {\n\t\t\t\t\t$array[$key] = $this->convert_array_url( $value );\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\n\t\t\t\t\tif ( is_object( $value ) == 1 )\n\t\t\t\t\t\t$value = $this->object_to_array( $value );\n\t\t\t\t\t\n\t\t\t\t\tif ( $array[$key] !== true )\n\t\t\t\t\t\t$array[$key] = $this->string_replace_url( $value );\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn $array;\n\t\t\t\n\t\t}", "title": "" }, { "docid": "c2f42b2c0e9e26b08912fcb7d1634fdf", "score": "0.46969336", "text": "public function fromArray(array $data)\r\n\t{\r\n\t\tforeach($data as $key => $value) {\r\n\t\t\t$this->set1($key, $value);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "cc5bd2b865042c55a8d62ce6db17191b", "score": "0.46874472", "text": "public function exchangeArray($data = array()) \n {\n $this->title = $data['post-title'];\n $this->content = $data['post-text'];\n }", "title": "" }, { "docid": "bbee2d00e6667f3e6ec78a11807dd0c0", "score": "0.46815735", "text": "public function structureData(array $data) : array\n {\n $maps = $data['mapping']['map'];\n $fileValues = $data['fileValues'];\n $processData = [];\n\n foreach ($fileValues as $key => $data) {\n if(!is_array($data)){\n continue;\n }\n $processData[] = $this->getStructureData($data, $maps);\n }\n\n return $processData;\n }", "title": "" }, { "docid": "8ef4741bc0aa528e998a5962b4091f36", "score": "0.4679142", "text": "public function run() {\n\t\t$layouts = [\n\t\t\t['layout_type' => 'article', 'layout_key' => 'article', 'layout_name' => ['hy' => 'Standart', 'en' => 'Standart', 'ru' => 'Standart']],\n\t\t\t['layout_type' => 'article', 'layout_key' => 'article', 'layout_name' => ['hy' => 'Minimal', 'en' => 'Minimal', 'ru' => 'Minimal']],\n\t\t\t['layout_type' => 'article', 'layout_key' => 'article', 'layout_name' => ['hy' => 'Parallax', 'en' => 'Parallax', 'ru' => 'Parallax']],\n\t\t\t['layout_type' => 'article', 'layout_key' => 'photo', 'layout_name' => ['hy' => 'Photo', 'en' => 'Photo', 'ru' => 'Фото']],\n\t\t\t['layout_type' => 'article', 'layout_key' => 'video', 'layout_name' => ['hy' => 'Video', 'en' => 'Video', 'ru' => 'Видео']],\n ['layout_type' => 'article', 'layout_key' => 'audio', 'layout_name' => ['hy' => 'Podcast', 'en' => 'Podcast', 'ru' => 'Podcast']],\n ['layout_type' => 'category', 'layout_key' => 'article', 'layout_name' => ['hy' => 'Լուրեր', 'en' => 'Article', 'ru' => 'Статья']],\n ['layout_type' => 'category', 'layout_key' => 'photo', 'layout_name' => ['hy' => 'Photo', 'en' => 'Photo', 'ru' => 'Фото']],\n\t\t\t['layout_type' => 'category', 'layout_key' => 'video', 'layout_name' => ['hy' => 'Տեսանյութեր', 'en' => 'Video', 'ru' => 'Видео']],\n ['layout_type' => 'category', 'layout_key' => 'audio', 'layout_name' => ['hy' => 'Podcast', 'en' => 'Podcast', 'ru' => 'Podcast']],\n\t\t\t['layout_type' => 'category', 'layout_key' => 'custom', 'layout_name' => ['hy' => 'Տնտեսական', 'en' => 'Economic', 'ru' => 'Экономика']],\n\t\t];\n\n\t\tforeach ($layouts as $lay) {\n\t\t\tDB::table('layouts')->insert([\n\t\t\t\t'layout_name' => json_encode($lay['layout_name'], JSON_UNESCAPED_UNICODE),\n\t\t\t\t'layout_key' => $lay['layout_key'],\n\t\t\t\t'layout_type' => $lay['layout_type'],\n\t\t\t\t'onoff' => 1,\n\t\t\t\t\"created_at\" => \\Carbon\\Carbon::now(),\n\t\t\t\t\"updated_at\" => \\Carbon\\Carbon::now(),\n\t\t\t]);\n\t\t}\n\n\t}", "title": "" }, { "docid": "f0ffb9f797a373c62324bc880c13fd43", "score": "0.46780792", "text": "public static function from_array( array $content ): string {\n\t\t$processed_content = '';\n\t\tforeach ( $content as $block ) {\n\t\t\t$processed_content .= self::process_block( $block );\n\t\t}\n\n\t\treturn $processed_content;\n\t}", "title": "" }, { "docid": "3f8595ecfc54ffdf80ead06b4dcf9658", "score": "0.46743035", "text": "function arrayToXml($array, $rootElement = null, $xml = null)\n {\n $_xml = $xml;\n // If there is no Root Element then insert root\n if ($_xml === null) {\n $_xml = new SimpleXMLElement($rootElement !== null ? $rootElement : '<REGDATA/>');\n }\n\n // Visit all key value pair\n foreach ($array as $k => $v) {\n\n // If there is nested array then\n if (is_array($v)) {\n\n // Call function for nested array\n arrayToXml($v, $k, $_xml->addChild($k));\n } else {\n\n // Simply add child element.\n $_xml->addChild($k, $v);\n }\n }\n\n return $_xml->asXML();\n }", "title": "" }, { "docid": "e33cd76414e434a541505eb033d20b3b", "score": "0.46732804", "text": "public function run()\n {\n $data = [\n [\n 'title' => 'Stella Beats インストア公演【1部】',\n 'image' => 'https://a.sofmap.com/ec/topics/4230/yDmgLeac.jpg',\n 'description' => 'メンバーは米満梨湖、前田美咲、新穂貴城、小倉月奏、佐藤葵の5人組。 デビューから数回のメンバーチェンジを経て、2018年4月22日から現在の体制となる。',\n 'created' => date('Y-m-d H:i:s'),\n 'modified' => date('Y-m-d H:i:s'),\n ],\n [\n 'title' => 'Ikeuta Hearts イケてるハーツ',\n 'image' => 'https://a.sofmap.com/ec/topics/4230/QXhY0uEq.jpg',\n 'description' => 'イケてるハーツは、2014年9月7日に結成された日本の女性アイドルグループである。 コンセプトは「ネガティブなハートを『歌』と『ダンス』と『元気な笑顔』で『イケてるハート』へとポジティブ変換してもらうこと」。',\n 'created' => date('Y-m-d H:i:s'),\n 'modified' => date('Y-m-d H:i:s'),\n ],\n [\n 'title' => 'DASH BEATS インストア公演【1部】',\n 'image' => 'https://a.sofmap.com/ec/topics/4230/2R0acPe4.jpg',\n 'description' => 'イケてるハーツは、2014年9月7日に結成された日本の女性アイドルグループである。 コンセプトは「ネガティブなハートを『歌』と『ダンス』と『元気な笑顔』で『イケてるハート』へとポジティブ変換してもらうこと」。',\n 'created' => date('Y-m-d H:i:s'),\n 'modified' => date('Y-m-d H:i:s'),\n ],\n [\n 'title' => 'ぼみ1stフルアルバム「9」',\n 'image' => 'https://a.sofmap.com/ec/topics/4230/1hvWU2Wp.jpg',\n 'description' => 'イケてるハーツは、2014年9月7日に結成された日本の女性アイドルグループである。 コンセプトは「ネガティブなハートを『歌』と『ダンス』と『元気な笑顔』で『イケてるハート』へとポジティブ変換してもらうこと」。',\n 'created' => date('Y-m-d H:i:s'),\n 'modified' => date('Y-m-d H:i:s'),\n ],\n ];\n\n $events = $this->table('events');\n $events->insert($data)->save();\n }", "title": "" }, { "docid": "c35cc5f1cf4c0b915e4e4d9deb7e999f", "score": "0.46709517", "text": "private function _arrayToObject($array) {\n\t\treturn json_decode(json_encode($array));\n\t}", "title": "" }, { "docid": "daedf0d087331ff91d91582a1ea5f3ac", "score": "0.4670873", "text": "public function formatSaveData(array $data)\n {\n $output = [];\n\n $output['id'] = $data['main']['id'] ?? '';\n $output['version'] = $data['main']['version'];\n $output['loginId'] = $data['main']['loginId'];\n $output['permission'] = $data['main']['permission'];\n $output['translateToWelsh'] = $data['main']['translateToWelsh'];\n $output['contactDetails']['emailAddress'] = $data['main']['emailAddress'];\n\n return $output;\n }", "title": "" }, { "docid": "b3f67ce2dbf7ee90b0c49c87f19d878e", "score": "0.46702847", "text": "public function yamlEnv($structure)\n {\n $dumper = new Dumper(2);\n $yml = $dumper->dump($structure, 0);\n return $yml;\n }", "title": "" }, { "docid": "b6219ce0020716bc897f6e48c18e8a7a", "score": "0.46702573", "text": "public function convertTags($data)\n {\n $_array = is_array($data);\n\n // Convert into string if we received an array\n if ($_array) $data = json_encode($data);\n // Tags Conversions\n $data = str_replace('{{rootPath}}', $this->core->system->root_path, $data);\n $data = str_replace('{{appPath}}', $this->core->system->app_path, $data);\n $data = str_replace('{{lang}}', $this->lang, $data);\n while (strpos($data, '{{confVar:') !== false) {\n list($foo, $var) = explode(\"{{confVar:\", $data, 2);\n list($var, $foo) = explode(\"}}\", $var, 2);\n $data = str_replace('{{confVar:' . $var . '}}', $this->get(trim($var)), $data);\n }\n // Convert into array if we received an array\n if ($_array) $data = json_decode($data, true);\n return $data;\n }", "title": "" }, { "docid": "9d3348b2ab74373cf341a55f13a0ee9d", "score": "0.46696496", "text": "public function convertArray($array)\n {\n $isList = (empty($array) || array_keys($array) === range(0, count($array) - 1));\n\n return ($isList ? $this->convertList($array) : $this->convertMap($array));\n }", "title": "" }, { "docid": "5e9f27898c3d9642bdf92eebbcd6c2c2", "score": "0.4664664", "text": "private function array_to_xml($array, $xml = NULL) {\n $isRootNode = false;\n if (!isset($xml)) {\n $isRootNode = true;\n $xml = new \\SimpleXMLElement(\"<root/>\");\n }\n foreach ($array as $key => $value) {\n if (is_array($value)) {\n if (!is_numeric($key)) {\n $subnode = $xml->addChild(\"$key\");\n $this->array_to_xml($value, $subnode);\n } else {\n $this->array_to_xml($value, $xml);\n }\n } else {\n $xml->addChild(\"$key\", \"$value\");\n }\n }\n if ($isRootNode) {\n\n $innerXml = ($xml->xpath(\"/root\"));\n\n $innerXml = $innerXml[0]->children();\n\n return $innerXml->asXml();\n }\n return $xml;\n }", "title": "" }, { "docid": "d03beca9c598fb8e4de3f270f56b6326", "score": "0.46606174", "text": "public static function printArray(array $data): string\n {\n $output = '[';\n foreach ($data as $name => $value) {\n $output .= sprintf('%s => %s,', (\\is_int($name) ? $name : '\"' . $name . '\"'), \\is_array($value) ? self::printArray($value) : (\"'\" . $value . \"'\"));\n }\n $output .= ']';\n\n return $output;\n }", "title": "" }, { "docid": "c9c3836c2a0310bf8022414e79ea27db", "score": "0.4647484", "text": "function arrayToString($array){\n $parseString = '';\n if(is_array($array)){\n foreach($array as $key => $value){\n $parseString .= sprintf(' %s=\"%s\"',$key,$value);\n }\n }\n return $parseString;\n}", "title": "" }, { "docid": "75de8655c59c220d4079ba5a232dfc15", "score": "0.46461168", "text": "function show_ArraytoXML($array){\n\t$xml_echo = \"\";\n\t$mid_arr = \"\";\n\tforeach($array as $key => $value){\n\t\t$xml_echo .= '<' . $key . '>' ;\n\t\tif(is_array($value) && !empty($value)){\n\t\t\t$mid_arr = show_ArraytoXML($value);\n\t\t\t$xml_echo .= \"\\n\" . $mid_arr . '</' . $key . '>' . \"\\n\";\n\t\t}else{\n\t\t\t$xml_echo .= $value . '</' . $key . '>' . \"\\n\";\n\t\t}\n\t}\n\treturn $xml_echo\t;\n}", "title": "" }, { "docid": "d7e7c32b7caf6291a99f81942a3d3025", "score": "0.4642371", "text": "function array_to_xml( $data, &$xml_data ) {\n foreach( $data as $key => $value ) {\n if( is_numeric($key) ){\n $key = 'item'.$key; //dealing with <0/>..<n/> issues\n }\n if( is_array($value) ) {\n $subnode = $xml_data->addChild($key);\n array_to_xml($value, $subnode);\n } else {\n $xml_data->addChild(\"$key\",htmlspecialchars(\"$value\"));\n }\n }\n }", "title": "" }, { "docid": "000a48201e1888b1f8bf2339d56cc086", "score": "0.46420506", "text": "private function formatDataArray(array $data)\r\n {\r\n $result = \"\";\r\n\r\n foreach ($data as $key => $value) {\r\n $result .= \"$key=$value\\n\";\r\n }\r\n\r\n return rtrim($result, \"\\n\");\r\n }", "title": "" }, { "docid": "7c5776764a683a8ecdd5e891351d9344", "score": "0.46287858", "text": "function array2xml($array, $tag=\"array\", $subst=\"nr\") {\n\treturn \"<$tag>\".ia2xml($array,$subst).\"</$tag>\";\n}", "title": "" }, { "docid": "03b56a4750b1b18e94e0908b96ca5992", "score": "0.46276826", "text": "function arrayToXml(array $datas): string\n{\n return (new Xml($datas))->getXml();\n}", "title": "" }, { "docid": "c4e1c6dcc6ca1ff6bb086cb943529ed9", "score": "0.46233118", "text": "public function populate(array &$array, $entity = '')\n {\n $keys = array_keys($array);\n foreach ($keys as $key) {\n $format = $this->configGuesser->guessFormat($entity, $key);\n if (!isset($format) && isset($this->nameGuesser)) {\n $format = $this->nameGuesser->guessFormat($key);\n }\n if (isset($format)) {\n $array[$key] = $format();\n }\n }\n }", "title": "" }, { "docid": "2f8f1f31dfa8ef97468ffdb4ca54d614", "score": "0.46186587", "text": "public function run()\n {\n $data = [\n [\n 'title' => 'Lorem Ipsum Post',\n 'author_id' => 0,\n 'seo_title' => null,\n 'excerpt' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis non mi nec orci euismod venenatis. Integer quis sapien et diam facilisis facilisis ultricies quis justo. Phasellus sem <b>turpis</b>, ornare quis aliquet ut, volutpat et lectus. Aliquam a egestas elit. <i>Nulla posuere</i>, sem et porttitor mollis, massa nibh sagittis nibh, id porttitor nibh turpis sed arcu.',\n 'body' => '<p>This is the body of the lorem ipsum post</p>',\n 'image' => 'posts/post1.jpg',\n 'slug' => 'lorem-ipsum-post',\n 'meta_description' => 'This is the meta description',\n 'meta_keywords' => 'keyword1, keyword2, keyword3',\n 'status' => 'PUBLISHED',\n 'featured' => 0,\n ], [\n 'title' => 'The standard',\n 'author_id' => 0,\n 'seo_title' => null,\n 'excerpt' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis non mi nec orci euismod venenatis. Integer quis sapien et diam facilisis facilisis ultricies quis justo. Phasellus sem <b>turpis</b>, ornare quis aliquet ut, volutpat et lectus. Aliquam a egestas elit. <i>Nulla posuere</i>, sem et porttitor mollis, massa nibh sagittis nibh, id porttitor nibh turpis sed arcu.',\n 'body' => '<p>This is the body for the sample post, which includes the body.</p><h2>We can use all kinds of format!</h2><p>And include a bunch of other stuff.</p>',\n 'image' => 'posts/post2.jpg',\n 'slug' => 'the-standard',\n 'meta_description' => 'Meta Description for sample post',\n 'meta_keywords' => 'keyword1, keyword2, keyword3',\n 'status' => 'PUBLISHED',\n 'featured' => 0,\n ], [\n 'title' => '1914 translation',\n 'author_id' => 0,\n 'seo_title' => null,\n 'excerpt' => 'But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness.',\n 'body' => '<p>who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?</p>',\n 'image' => 'posts/post2.jpg',\n 'slug' => '1914-translation',\n 'meta_description' => 'Meta Description for sample post',\n 'meta_keywords' => 'keyword1, keyword2, keyword3',\n 'status' => 'PUBLISHED',\n 'featured' => 0,\n ]\n ];\n\n DB::table('posts')->insert($data);\n }", "title": "" }, { "docid": "3349007cc28993e278fb633b41193377", "score": "0.46167812", "text": "private function arrayToXml($array){\n\t\t$xml = '';\n\n\t\tforeach($array as $chave => $valor){\n\t\t\tif(is_array($valor) && !empty($valor)){\n\t\t\t\t$xml .= \"<$chave>\";\n\t\t\t\t$xml .= $this->arrayToXml($valor);\n\t\t\t\t$xml .= \"</$chave>\";\n\t\t\t}else if(is_array($valor) && empty($valor)){\n\t\t\t\t$xml .= \"<$chave/>\";\n\t\t\t}else{\n\t\t\t\t$xml .= \"<$chave>\".$this->encoding($valor).\"</$chave>\";\n\t\t\t}\n\t\t}\n\n\t\treturn $xml;\n\t}", "title": "" }, { "docid": "46c8a5f357694505a49a2084cd984dc6", "score": "0.46127766", "text": "public function exchangeArray($data = array()) {\n $this->setDescription($data['description'])\n ->setName($data['name']);\n }", "title": "" }, { "docid": "aca3ab22faf18d0331764366eea9f3f9", "score": "0.4605336", "text": "public static function array_to_xml($array, &$xml)\n\t{\n\t\tforeach($array as $key => $value) {\n\t\t\tif(is_array($value)) {\n\t\t\t\tif(!is_numeric($key)){\n\t\t\t\t\t$subnode = $xml->addChild(\"$key\");\n\t\t\t\t\tself::array_to_xml($value, $subnode);\n\t\t\t\t} elseif ($key == 0) {\n\t\t\t\t\tself::array_to_xml($value, $xml);\n\t\t\t\t} else {\n\t\t\t\t\t$name = $xml->getName();\n\t\t\t\t\t$subnode = $xml->xpath(\"..\")[0]->addChild(\"$name\");\n\t\t\t\t\tself::array_to_xml($value, $subnode);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$xml->addChild(\"$key\",\"$value\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "118191ee747e071a61cabc067d0631f5", "score": "0.459727", "text": "public function loadFromArray($array)\n {\n\n $this->product_id = $array[\"product_id\"];\n $this->url = $array[\"url\"];\n $this->categoria = new Categoria($array[\"categoria\"]);\n $this->titulo = $array[\"titulo\"];\n $this->precio = $array[\"precio\"];\n $this->localidad = $array[\"localidad\"];\n $this->inicio_periodo = $array[\"inicio_periodo\"];\n $this->fin_periodo = $array[\"fin_periodo\"];\n $this->ventas_periodo= $array[\"ventas_periodo\"];\n $this->dias_periodo = $array[\"dias_periodo\"];\n $this->dinero_movido = $array[\"dinero_movido\"];\n $this->EsFavorito = $array[\"favorito\"];\n }", "title": "" } ]
8a786bc2fbb6d533ff247553472f9104
The available options are K (for Kilobytes), M (for Megabytes) and G (for Gigabytes; available since PHP 5.1.0), and are all caseinsensitive. Anything else assumes bytes.
[ { "docid": "8f51dba4cbc4c60fec53e62782b8cf11", "score": "0.0", "text": "public function initConfigurationProvider(): array\n {\n return [\n ['1024', 1024],\n ['34K', 34816],\n ['34k', 34816],\n ['128M', 134217728],\n ['128m', 134217728],\n ['2G', 2147483648],\n ['2g', 2147483648],\n ['34816P', 34816],\n ['34816p', 34816],\n ];\n }", "title": "" } ]
[ { "docid": "3ba6ef36fcc4b6a7c4bca995e7f0989a", "score": "0.6703414", "text": "function convert_php_size_to_bytes($value)\n{\n // Remove the non-unit characters from the size\n $unit = preg_replace('/[^bkmgtpezy]/i', '', $value);\n\n // Remove the non-numeric characters from the size\n $size = preg_replace('/[^0-9\\.]/', '', $value);\n\n switch (strtoupper($unit)) {\n case 'G':\n $size *= 1024;\n case 'M':\n $size *= 1024;\n case 'K':\n $size *= 1024;\n }\n\n return $size;\n}", "title": "" }, { "docid": "e0148d3c586be0947184a032fd74bf47", "score": "0.6548713", "text": "function shorthand2bytes($size_str)\n {\n\n switch (substr($size_str, -1)) {\n case 'M':\n case 'm':\n return (int)$size_str * 1048576;\n case 'K':\n case 'k':\n return (int)$size_str * 1024;\n case 'G':\n case 'g':\n return (int)$size_str * 1073741824;\n default:\n return (int)$size_str;\n }\n }", "title": "" }, { "docid": "7e305cfa86fe714f33df0192340761d9", "score": "0.6517566", "text": "function parsebytesize($size,$digits=2,$dir=false) {\n\t$kb=1024; $mb=1024*$kb; $gb=1024*$mb; $tb=1024*$gb;\n\tif (($size==0)&&($dir)) { return \"Empty\"; }\n\telseif ($size<$kb) { return $size.\" Bytes\"; }\n\telseif ($size<$mb) { return round($size/$kb,$digits).\" Kb\"; }\n\telseif ($size<$gb) { return round($size/$mb,$digits).\" Mb\"; }\n\telseif ($size<$tb) { return round($size/$gb,$digits).\" Gb\"; }\n\telse { return round($size/$tb,$digits).\" Tb\"; }\n}", "title": "" }, { "docid": "f0eaa832a42df6a8260c89223b52b5f9", "score": "0.6481037", "text": "function phorum_phpcfgsize2bytes($val) {\n $val = trim($val);\n $last = strtolower($val{strlen($val)-1});\n switch($last) {\n // The 'G' modifier is available since PHP 5.1.0\n case 'g':\n $val *= 1024;\n case 'm':\n $val *= 1024;\n case 'k':\n $val *= 1024;\n }\n return $val;\n}", "title": "" }, { "docid": "f0eaa832a42df6a8260c89223b52b5f9", "score": "0.6481037", "text": "function phorum_phpcfgsize2bytes($val) {\n $val = trim($val);\n $last = strtolower($val{strlen($val)-1});\n switch($last) {\n // The 'G' modifier is available since PHP 5.1.0\n case 'g':\n $val *= 1024;\n case 'm':\n $val *= 1024;\n case 'k':\n $val *= 1024;\n }\n return $val;\n}", "title": "" }, { "docid": "44892b62d9fb6aef73d8e31282e18342", "score": "0.6395183", "text": "function determine_size_units($size = 0){\n\tif($size < 1024){\n\t\t$size .= ' b';\n\t}\n\tif($size >= 1024 and $size < 1048576){\n\t\t$size = round($size /= 1024);\n\t\t$size .= ' Kb';\n\t}\n\tif($size >= 1048576){\n\t\t$size = round($size /= 1048576);\n\t\t$size .= ' M';\n\t}\n\treturn $size;\n}", "title": "" }, { "docid": "4c9bea68d5d322b52b6c1a0b40a68b61", "score": "0.6283914", "text": "function return_bytes($val) {\n $val = trim($val);\n $last = strtolower($val[strlen($val)-1]);\n switch($last) {\n // The 'G' modifier is available since PHP 5.1.0\n case 'g':\n $val *= 1024;\n break;\n case 'm':\n $val *= 1024;\n break; \n case 'k':\n $val *= 1024;\n break;\n }\n return $val;\n}", "title": "" }, { "docid": "29036409f10024d02f958c1c5ae70b98", "score": "0.6279146", "text": "function ini_get_bytes($ini_size)\n{\n\t$ini_size = trim($ini_size);\n\t$last = strtolower($ini_size[strlen($ini_size) - 1]);\n\tswitch($last)\n\t{\n\t\tcase 'g':\n\t\t\t$ini_size *= 1024;\n\t\tcase 'm':\n\t\t\t$ini_size *= 1024;\n\t\tcase 'k':\n\t\t\t$ini_size *= 1024;\n\t}\n\n\treturn ($ini_size);\n}", "title": "" }, { "docid": "079107a9d795fccd0eea0ccc4c9e81f1", "score": "0.62582856", "text": "function convertPHPSizeToBytes($sSize)\n{\n //\n $sSuffix = strtoupper(substr($sSize, -1));\n if (!in_array($sSuffix,array('P','T','G','M','K'))){\n return (int)$sSize; \n } \n $iValue = substr($sSize, 0, -1);\n switch ($sSuffix) {\n case 'P':\n $iValue *= 1024;\n // Fallthrough intended\n case 'T':\n $iValue *= 1024;\n // Fallthrough intended\n case 'G':\n $iValue *= 1024;\n // Fallthrough intended\n case 'M':\n $iValue *= 1024;\n // Fallthrough intended\n case 'K':\n $iValue *= 1024;\n break;\n }\n return (int)$iValue;\n}", "title": "" }, { "docid": "3aba1fb125870b471d65dbb837c99ae5", "score": "0.62169373", "text": "function bytesize($sz) {\n foreach (array('b', 'kb', 'mb') as $suffix) {\n if ($sz < 900) return round($sz).$suffix;\n $sz /= 1024;\n }\n return round($sz).'gb';\n}", "title": "" }, { "docid": "84c20b1ff58b5d2105eaeb7e7b52b2aa", "score": "0.6211265", "text": "function formatSize ($data) {\n // bytes\n if ($data < 1024) {\n return $data . \" b\";\n }\n\n // kilobytes\n if ($data < 1048576) {\n return round(($data / 1024), 1 ) . \" kb\";\n }\n\n // megabytes\n if ($data < 1073741824) {\n return round(($data / 1048576), 1 ) . \" mb\";\n }\n\n // megabytes\n if ($data < 1099511627776) {\n return round(($data / 1073741824), 1) . \" gb\";\n }\n\n // gibabytes\n return round(($data / 1099511627776), 1) . \" tb\";\n}", "title": "" }, { "docid": "d528d872c2f14e4abfc623682b5f7fef", "score": "0.6113019", "text": "function getMaxSize($stringSize) {\r\n\r\n\t\t$multiplier = 1;\r\n \r\n\t\tif( strtoupper(substr($stringSize, -1)) == \"K\" ) {\r\n\t\t\t$multiplier = 1024;\r\n\t\t\t$stringSize = substr($stringSize, 0, -1); // drops the last character\t\r\n\t\t}\r\n\t\tif( strtoupper(substr($stringSize, -1)) == \"M\" ) {\r\n\t\t\t$multiplier = 1024*1024;\r\n\t\t\t$stringSize = substr($stringSize, 0, -1);\r\n\t\t}\r\n\t\telseif( strtoupper(substr($stringSize, -1)) == \"G\" ) {\r\n\t\t\t$multiplier = 1024*1024*1024;\r\n\t\t\t$stringSize = substr($stringSize, 0, -1);\r\n\t\t}\r\n\t\t\r\n\t\t// Convert the string to integer\r\n\t\t$intSize = (int)$stringSize;\r\n\t\t\r\n\t\treturn $intSize * $multiplier;\r\n\t}", "title": "" }, { "docid": "06b1a335ff7dbcd338802002a6a2269c", "score": "0.60999286", "text": "public static function readableSize(int $bytes, array $options = []): string\n {\n $options += ['precision' => 2];\n\n $units = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB'];\n\n for ($i = 0; $bytes > 1024; $i++) {\n $bytes /= 1024;\n }\n\n $bytes = round($bytes, $options['precision']); // returns float\n $precision = ctype_digit((string) $bytes) ? 0 : $options['precision'] ;\n \n return static::precision($bytes, $precision) . ' ' . $units[$i];\n }", "title": "" }, { "docid": "5ebe409e7061bd3e4b929e7a13f10d4a", "score": "0.60849375", "text": "function wp_size_format( $bytes, $decimals = 0 ) {\n\t$quant = array(\n\t\t// ========================= Origin ====\n\t\t'TB' => 1099511627776, // pow( 1024, 4)\n\t\t'GB' => 1073741824, // pow( 1024, 3)\n\t\t'MB' => 1048576, // pow( 1024, 2)\n\t\t'kB' => 1024, // pow( 1024, 1)\n\t\t'B ' => 1, // pow( 1024, 0)\n\t);\n\tforeach ( $quant as $unit => $mag )\n\t\tif ( doubleval($bytes) >= $mag )\n\t\t\treturn number_format_i18n( $bytes / $mag, $decimals ) . ' ' . $unit;\n\n\treturn false;\n}", "title": "" }, { "docid": "1acfa457d44ced6109d1ba0259176944", "score": "0.6080004", "text": "function readableSize(int $size, int $precision = 2)\r\n{\r\n for ($i = 0; ($size / 1024) > 0.9; $i++, $size /= 1024) {}\r\n\r\n return round($size, $precision) . ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'][$i];\r\n}", "title": "" }, { "docid": "cfc8f2ee40e44518fec60bb44bf45dd3", "score": "0.6069907", "text": "function smarty_modifier_return_bytes($size) {\n $val = trim($size);\n $last = strtolower(substr($size, -1));\n switch($last) {\n // The 'G' modifier is available since PHP 5.1.0\n case 'g':\n $val *= 1024;\n case 'm':\n $val *= 1024;\n case 'k':\n $val *= 1024;\n }\n return $val;\n}", "title": "" }, { "docid": "77c024c9a50e4a3bdb6b3c54457f17f1", "score": "0.6066154", "text": "function PMA_getRealSize($size = 0)\r\n{\r\n\r\n/* \r\n if (! $size) {\r\n return 0;\r\n }\r\n*/ \r\n $scan['gb'] = 1073741824; //1024 * 1024 * 1024;\r\n $scan['g'] = 1073741824; //1024 * 1024 * 1024;\r\n $scan['mb'] = 1048576;\r\n $scan['m'] = 1048576;\r\n $scan['kb'] = 1024;\r\n $scan['k'] = 1024;\r\n $scan['b'] = 1;\r\n\r\n foreach ($scan as $unit => $factor) {\r\n if (strlen($size) > strlen($unit)\r\n && /*strtolower*/(substr($size, strlen($size) - strlen($unit))) == $unit\r\n ) {\r\n return substr($size, 0, strlen($size) - strlen($unit)) * $factor;\r\n }\r\n }\r\n\r\n return $size;\r\n}", "title": "" }, { "docid": "3a33f92b1310396ee48288b36c4d03ba", "score": "0.6064092", "text": "function ByteSize($bytes) \r\n\t\t\t{ \r\n\t\t\t\t\t$size = $bytes / 1024; \r\n\t\t\t\t\tif($size < 1024) \r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\t$size = number_format($size, 2); \r\n\t\t\t\t\t\t$size .= 'KB'; \r\n\t\t\t\t\t} \r\n\t\t\t\t\telse \r\n\t\t\t\t{ \r\n\t\t\t\t\tif($size / 1024 < 1024) \r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\t$size = number_format($size / 1024, 2); \r\n\t\t\t\t\t\t$size .= 'MB'; \r\n\t\t\t\t\t} \r\n\t\t\t\t\telse if ($size / 1024 / 1024 < 1024) \r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\t$size = number_format($size / 1024 / 1024, 2); \r\n\t\t\t\t\t\t$size .= 'GB'; \r\n\t\t\t\t\t} \r\n\t\t\t\t} \r\n\t\t\t\treturn $size; \r\n }", "title": "" }, { "docid": "3a33f92b1310396ee48288b36c4d03ba", "score": "0.6064092", "text": "function ByteSize($bytes) \r\n\t\t\t{ \r\n\t\t\t\t\t$size = $bytes / 1024; \r\n\t\t\t\t\tif($size < 1024) \r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\t$size = number_format($size, 2); \r\n\t\t\t\t\t\t$size .= 'KB'; \r\n\t\t\t\t\t} \r\n\t\t\t\t\telse \r\n\t\t\t\t{ \r\n\t\t\t\t\tif($size / 1024 < 1024) \r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\t$size = number_format($size / 1024, 2); \r\n\t\t\t\t\t\t$size .= 'MB'; \r\n\t\t\t\t\t} \r\n\t\t\t\t\telse if ($size / 1024 / 1024 < 1024) \r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\t$size = number_format($size / 1024 / 1024, 2); \r\n\t\t\t\t\t\t$size .= 'GB'; \r\n\t\t\t\t\t} \r\n\t\t\t\t} \r\n\t\t\t\treturn $size; \r\n }", "title": "" }, { "docid": "2746f1b4585b1045d47e947586b04d43", "score": "0.6047445", "text": "function size_to_bytes($cur_unit,$size)\n{\n $convert = array(\n \"B\" => 1, \n \"KB\" => 1024, \n \"MB\" => bcpow('1024', '2'), \n \"GB\" => bcpow('1024', '3'), \n \"TB\" => bcpow('1024', '4'), \n \"PB\" => bcpow('1024', '5'), \n \"EB\" => bcpow('1024', '6'), \n \"ZB\" => bcpow('1024', '7'), \n \"YB\" => bcpow('1024', '8'),\n \"K\" => 1024, \n \"M\" => bcpow('1024', '2'), \n \"G\" => bcpow('1024', '3'), \n \"T\" => bcpow('1024', '4'), \n \"P\" => bcpow('1024', '5'), \n \"E\" => bcpow('1024', '6'), \n \"Z\" => bcpow('1024', '7'), \n \"Y\" => bcpow('1024', '8')\n );\n if(isset($convert[\"$cur_unit\"])) {$size=$size*$convert[\"$cur_unit\"];}\n return $size;\n}", "title": "" }, { "docid": "78abf55d3138921b58d896b3742907ba", "score": "0.6037075", "text": "function return_bytes($val)\n{\n $val = trim($val);\n $last = strtolower($val{\n strlen($val) - 1});\n switch ($last) {\n // The 'G' modifier is available since PHP 5.1.0\n case 'g':\n $val *= 1024;\n // no break\n case 'm':\n $val *= 1024;\n // no break\n case 'k':\n $val *= 1024;\n }\n return $val;\n}", "title": "" }, { "docid": "1237bc163bfe064dec956534bb91451d", "score": "0.60368466", "text": "function ToStrBytes( $val )\n{\n $_1K = 1024;\n $_1M = 1024*1024;\n $_1G = 1024*1024*1024;\n\n $tamany = $val;\n if( is_int($val)){\n \t$tamany = intval( $val );\n }\n else if( is_long($val)){\n \t$tamany = $val;\n }\n else if( is_string($val)){\n \t$tamany = floatval($val);\n }\n\n if( $tamany < $_1K ) {\n $str_byt = $tamany . ' Bytes';\n }\n else if( $tamany > $_1K && $tamany < $_1M ){\n $str_byt = number_format( $tamany / $_1K, 2, ',', '.') . ' KB';\n }\n else if( $tamany > $_1M && $tamany < $_1G ){\n $str_byt = number_format( $tamany / $_1M, 2, ',', '.') . ' MB';\n }\n else if( $tamany > $_1G ){\n $str_byt = number_format( $tamany / $_1G, 2, ',', '.') . ' GB';\n }\n else{\n $str_byt = '0';\n }\n return $str_byt;\n}", "title": "" }, { "docid": "ef0dd69e688b2d0f42fcfdaf44049857", "score": "0.6028514", "text": "function size ( $type, $sub = null ){\n if($sub === null){\n\n $si_prefix = array( 'B', 'KB', 'MB', 'GB', 'TB', 'EB', 'ZB', 'YB' );\n $base = 1024;\n $class = min((int)log($type , $base) , count($si_prefix) - 1);\n\n return @$disk_free_space = sprintf('%1.2f' ,\n $type / pow($base,$class)).' '.$si_prefix[$class] ;\n\n }\n }", "title": "" }, { "docid": "f99c9b835090812fdb96a911dfde726a", "score": "0.60269225", "text": "function format_bytes_auto($bytes, $decimals = 2, $from = 'B', $kb = 1024) {\n\t\n\tif(!is_numeric($bytes)) {\n\t\tthrow new InvalidArgumentException(\"Non-numeric \\$bytes parameter: $bytes\");\n\t}\n\t\n\t# pass 1: normalize to bytes\n\tswitch(strtoupper($from)) {\n\t\t\n\t\tcase 'G':\n\t\tcase 'GB':\n\t\tcase 'GIGABYTES':\n\t\t\t$bytes = $bytes * $kb; // intentional fall-through to MB\n\t\t\n\t\tcase 'M':\n\t\tcase 'MB':\n\t\tcase 'MEGABYTES':\n\t\t\t$bytes = $bytes * $kb; // intentional fall-through to KB\n\t\t\t\n\t\tcase 'K':\n\t\tcase 'KB':\n\t\tcase 'KILOBYTES':\n\t\t\t$bytes = $bytes * $kb;\n\t\tbreak;\n\t\t\n\t\tdefault:\n\t\tcase 'B':\n\t\t\t# do nothing\n\t}\n\t\n\t\n\t\n\t# determine the largest unit that can be used while maintaining a measurement > 1\n\tif($bytes >= $kb * $kb * $kb) { // gigabytes\n\t\t$bytes = $bytes / ($kb * $kb * $kb);\n\t\t$to = 'GB';\n\t} elseif($bytes >= $kb * $kb) { // megabytes\n\t\t$bytes = $bytes / ($kb * $kb);\n\t\t$to = 'MB';\n\t} elseif($bytes >= $kb) { // kilobytes\n\t\t$bytes = $bytes / $kb;\n\t\t$to = 'KB';\n\t} else { // bytes\n\t\t# do nothing\n\t\t$to = 'B';\n\t}\n\t\n\t# format\n\treturn ($decimals === FALSE)? $bytes : number_format($bytes, $decimals).$to;\n\t\n}", "title": "" }, { "docid": "4b5a734464c959ca28681f7ca954bcdf", "score": "0.6025214", "text": "function bytesToSize($bytes, $precision = 2)\n{ \n $kilobyte = 1024;\n $megabyte = $kilobyte * 1024;\n $gigabyte = $megabyte * 1024;\n $terabyte = $gigabyte * 1024;\n \n return round($bytes / $megabyte, $precision);\n \n if (($bytes >= 0) && ($bytes < $kilobyte)) {\n return $bytes . ' B';\n \n } elseif (($bytes >= $kilobyte) && ($bytes < $megabyte)) {\n return round($bytes / $kilobyte, $precision) . ' KB';\n \n } elseif (($bytes >= $megabyte) && ($bytes < $gigabyte)) {\n return round($bytes / $megabyte, $precision) . ' MB';\n \n } elseif (($bytes >= $gigabyte) && ($bytes < $terabyte)) {\n return round($bytes / $gigabyte, $precision) . ' GB';\n \n } elseif ($bytes >= $terabyte) {\n return round($bytes / $terabyte, $precision) . ' TB';\n } else {\n return $bytes . ' B';\n }\n}", "title": "" }, { "docid": "ed486bb2cdcf8fe585175be31f03c72e", "score": "0.6021365", "text": "function convertBytes($value) \n{\n\tif(is_numeric($value)) \n\t{\n\t\treturn $value;\n\t} \n\telse \n\t{\n\t\t$value_length = strlen($value);\n\t\t$qty = substr($value, 0, $value_length - 1);\n\t\t$unit = strtolower(substr( $value, $value_length - 1));\n\t\tswitch ($unit) \n\t\t{\n\t\t\tcase 'k':\n\t\t\t\t$qty *= 1024;\n\t\t\t\tbreak;\n\t\t\tcase 'm':\n\t\t\t\t$qty *= 1048576;\n\t\t\t\tbreak;\n\t\t\tcase 'g':\n\t\t\t\t$qty *= 1073741824;\n\t\t\t\tbreak;\n\t\t\t}\n\t\treturn $qty;\n\t}\n}", "title": "" }, { "docid": "ead4e4c884da1b4ffeb1389a4918afe1", "score": "0.6009803", "text": "function return_bytes($val) {\n $val = trim($val);\n $last = strtolower($val{strlen($val)-1});\n switch($last) {\n case 'g':\n $val *= 1024;\n case 'm':\n $val *= 1024;\n case 'k':\n $val *= 1024;\n }\n return $val;\n }", "title": "" }, { "docid": "778818a98adb395f75eba1fe7d14416b", "score": "0.6004509", "text": "function byte_convert($size, $precision = 2) {\n\t\t\n\t\t// Grab these\n\t\tglobal $settings;\n\n\t\t// Sanity check\n\t\tif (!is_numeric($size))\n\t\t\treturn '?';\n\t\t\n\t\t// Get the notation\n\t\t$notation = $settings['byte_notation'] == 1000 ? 1000: 1024;\n\n\t\t// Fixes large disk size overflow issue\n\t\t// Found at http://www.php.net/manual/en/function.disk-free-space.php#81207\n\t\t$types = array('B', 'KB', 'MB', 'GB', 'TB');\n\t\t$types_i = array('B', 'KiB', 'MiB', 'GiB', 'TiB');\n\t\tfor($i = 0; $size >= $notation && $i < (count($types) -1 ); $size /= $notation, $i++);\n\t\treturn(round($size, $precision) . ' ' . ($notation == 1000 ? $types[$i] : $types_i[$i]));\n\t}", "title": "" }, { "docid": "e7d62a183f1b5606b1864dd2086978e2", "score": "0.6004079", "text": "public function getSize($bytes = null, $precision = 2)\n\t{\n\t\t$bytes = $this->size;\n\t\t$units = array('B', 'KB', 'MB', 'GB', 'TB');\n\t\t$bytes = max($bytes, 0);\n\t\t$pow = floor(($bytes ? log($bytes) : 0) / log(1024));\n\t\t$pow = min($pow, count($units) - 1);\n\t\t$bytes /= pow(1024, $pow);\n\t\treturn round($bytes, $precision) . ' ' . $units[$pow];\n\t}", "title": "" }, { "docid": "66767732555c17c9a043f3bd15741ee1", "score": "0.59953344", "text": "function format_bytesize ($kbytes, $dec_places = 2)\n{\n\tglobal $text;\n\tif ($kbytes > 1048576) {\n\t\t$result = sprintf('%.' . $dec_places . 'f', $kbytes / 1048576);\n\t\t$result .= '&nbsp;Gb';\n\t} elseif ($kbytes > 1024) {\n\t\t$result = sprintf('%.' . $dec_places . 'f', $kbytes / 1024);\n\t\t$result .= '&nbsp;Mb';\n\t} else {\n\t\t$result = sprintf('%.' . $dec_places . 'f', $kbytes);\n\t\t$result .= '&nbsp;Kb';\n\t}\n\treturn $result;\n}", "title": "" }, { "docid": "2b9f2d7a3c765b4a79eb3e383957d25f", "score": "0.59947294", "text": "function byte_format($num, $precision = 1)\n\t{\n\t\t$CI =& get_instance();\n\t\t$this -> load -> helper ( ' number ' );\n\n\t\tif ($num >= 1000000000000)\n\t\t{\n\t\t\t$num = round($num / 1099511627776, $precision);\n\t\t\t$unit = $CI->lang->line('terabyte_abbr');\n\t\t}\n\t\telseif ($num >= 1000000000)\n\t\t{\n\t\t\t$num = round($num / 1073741824, $precision);\n\t\t\t$unit = $CI->lang->line('gigabyte_abbr');\n\t\t}\n\t\telseif ($num >= 1000000)\n\t\t{\n\t\t\t$num = round($num / 1048576, $precision);\n\t\t\t$unit = $CI->lang->line('megabyte_abbr');\n\t\t}\n\t\telseif ($num >= 1000)\n\t\t{\n\t\t\t$num = round($num / 1024, $precision);\n\t\t\t$unit = $CI->lang->line('kilobyte_abbr');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$unit = $CI->lang->line('bytes');\n\t\t\treturn number_format($num).' '.$unit;\n\t\t}\n\n\t\treturn number_format($num, $precision).' '.$unit;\n\t\techo byte_format ( 456 ); // Mengembalikan 456 Bytes \n\t\techo byte_format ( 4567 ); // Mengembalikan 4,5 KB \n\t\techo byte_format ( 45678 ); // Mengembalikan 44,6 KB \n\t\techo byte_format ( 456789 ); // Mengembalikan 447,8 KB \n\t\techo byte_format ( 3456789 ); // Mengembalikan 3,3 MB \n\t\techo byte_format ( 12345678912345 ); // Mengembalikan 1,8 GB \n\t\techo byte_format ( 123456789123456789 ); // Mengembalikan 11.228,3 TB\n\n\t\techo byte_format ( 45678 , 2 );\n\t}", "title": "" }, { "docid": "1ef42d8bb44970fbe9b8ccd712733e0e", "score": "0.5993909", "text": "function bytesToSize($bytes, $precision = 2)\n{\n $kilobyte = 1024;\n $megabyte = $kilobyte * 1024;\n $gigabyte = $megabyte * 1024;\n $terabyte = $gigabyte * 1024;\n\n if (($bytes >= 0) && ($bytes < $kilobyte)) {\n return $bytes . ' B';\n\n } elseif (($bytes >= $kilobyte) && ($bytes < $megabyte)) {\n return round($bytes / $kilobyte, $precision) . ' KB';\n\n } elseif (($bytes >= $megabyte) && ($bytes < $gigabyte)) {\n return round($bytes / $megabyte, $precision) . ' MB';\n\n } elseif (($bytes >= $gigabyte) && ($bytes < $terabyte)) {\n return round($bytes / $gigabyte, $precision) . ' GB';\n\n } elseif ($bytes >= $terabyte) {\n return round($bytes / $terabyte, $precision) . ' TB';\n } else {\n return $bytes . ' B';\n }\n}", "title": "" }, { "docid": "330683421aa891a8fdf89474a3eb7a78", "score": "0.5988594", "text": "function toBytes($str){\n $val = trim($str);\n $last = strtolower($str[strlen($str)-1]);\n switch($last) {\n case 'g': $val *= 1024;\n case 'm': $val *= 1024;\n case 'k': $val *= 1024; \n }\n return $val;\n}", "title": "" }, { "docid": "0e7692c544b7095d52c57b8557bac563", "score": "0.59843624", "text": "function converter($size,$with_space=\"\",$unit=\"B\")\r\n\t\t{\r\n\t\t\t$names = array('B', 'KB', 'MB', 'GB', 'TB');\r\n\t\t\t$startfrom = array_search($unit,$names); \r\n\t\t\tif($startfrom === false)\r\n\t\t\t\treturn $size;\r\n\t\t\t\r\n\t\t\t$times = 0;\r\n\t\t\twhile($size > 1024)\r\n\t\t\t{\r\n\t\t\t\t$size = round(($size * 100) / 1024) / 100;\r\n\t\t\t\t$times++;\r\n\t\t\t}\r\n\t\t\t$times = $times + $startfrom;\r\n\t\t\tif($with_space == 'y')\r\n\t\t\treturn \"$size \".$names[$times];\r\n\t\t\telse\r\n\t\t\treturn \"$size\".$names[$times];\r\n\t\t}", "title": "" }, { "docid": "506e663e9798714575f561c3102e8fd0", "score": "0.598397", "text": "function format_toSizeInBytes_shortForm($size_in_bytes) {\n\t//\n\t// Data sizes are normally specified in KB - powers of 1024, so return KB rather than kB\n\n\tif ($size_in_bytes < (1024 * 1024)) {\n\t\t$unit = \"K\";\n\t\t$unitSize = $size_in_bytes / 1024;\n\t} else if ($size_in_bytes < (1024 * 1024 * 1024)) {\n\t\t$unit = \"M\";\n\t\t$unitSize = $size_in_bytes / (1024 * 1024);\n\t} else {\n\t\t$unit = \"G\";\n\t\t$unitSize = $size_in_bytes / (1024 * 1024 * 1024);\n\t}\n\n\t$showDecimalPlace = $unitSize < 10 && round($unitSize, 1) != round($unitSize);\n\n\treturn sprintf($showDecimalPlace ? \"%1.1f\" : \"%1.0f\", $unitSize) . $unit;\n}", "title": "" }, { "docid": "b600c8251e4afd27f990c3cc5fee4c23", "score": "0.59685254", "text": "function readableSize($size) {\n $bytes = array('B','KB','MB','GB','TB');\n foreach($bytes as $val) {\n if($size > 1024){\n\t$size = $size / 1024;\n }else{\n\tbreak;\n }\n }\n return round($size, 1).\" \".$val;\n}", "title": "" }, { "docid": "7a74677f6a6fac0cbbf6343b7752574f", "score": "0.5941109", "text": "function size_readable($size, $unit = null, $retstring = null)\r\n{\r\n // Units\r\n $sizes = array('B', 'KB', 'MB', 'GB', 'TB');\r\n $ii = count($sizes) - 1;\r\n \r\n // Max unit\r\n $unit = array_search((string) $unit, $sizes);\r\n if ($unit === null || $unit === false) {\r\n $unit = $ii;\r\n }\r\n \r\n // Return string\r\n if ($retstring === null) {\r\n $retstring = '%01.2f %s';\r\n }\r\n \r\n // Loop\r\n $i = 0;\r\n while ($unit != $i && $size >= 1024 && $i < $ii) {\r\n $size /= 1024;\r\n $i++;\r\n }\r\n \r\n return sprintf($retstring, $size, $sizes[$i]);\r\n}", "title": "" }, { "docid": "1e4061064a5d7b98acc47056f860a460", "score": "0.5940345", "text": "public static function bytes($size)\n {\n $byte_units = array\n (\n 'B' => 0,\n 'K' => 10,\n 'Ki' => 10,\n 'KB' => 10,\n 'KiB' => 10,\n 'M' => 20,\n 'Mi' => 20,\n 'MB' => 20,\n 'MiB' => 20,\n 'G' => 30,\n 'Gi' => 30,\n 'GB' => 30,\n 'GiB' => 30,\n 'T' => 40,\n 'Ti' => 40,\n 'TB' => 40,\n 'TiB' => 40,\n 'P' => 50,\n 'Pi' => 50,\n 'PB' => 50,\n 'PiB' => 50,\n 'E' => 60,\n 'Ei' => 60,\n 'EB' => 60,\n 'EiB' => 60,\n 'Z' => 70,\n 'Zi' => 70,\n 'ZB' => 70,\n 'ZiB' => 70,\n 'Y' => 80,\n 'Yi' => 80,\n 'YB' => 80,\n 'YiB' => 80,\n );\n // Prepare the size\n $size = trim( (string) $size);\n\n // Construct an OR list of byte units for the regex\n $accepted = implode('|', array_keys($byte_units));\n\n // Construct the regex pattern for verifying the size format\n $pattern = '/^([0-9]+(?:\\.[0-9]+)?)('.$accepted.')?$/Di';\n\n // Verify the size format and store the matching parts\n if ( ! preg_match($pattern, $size, $matches))\n return false;\n\n // Find the float value of the size\n $size = (float) $matches[1];\n\n // Find the actual unit, assume B if no unit specified\n $unit = isset($matches[2]) ? $matches[2] : 'B';\n\n // Convert the size into bytes\n $bytes = $size * pow(2, $byte_units[$unit]);\n\n return $bytes;\n }", "title": "" }, { "docid": "9ffade9b08c470fc48553ee115247b72", "score": "0.5920776", "text": "protected function returnBytes ($size_str) {\n\t switch (substr ($size_str, -1)) {\n\t case 'M': case 'm': return (int) $size_str * 1048576;\n\t case 'K': case 'k': return (int) $size_str * 1024;\n\t case 'G': case 'g': return (int) $size_str * 1073741824;\n\t default: return $size_str;\n\t }\n\t}", "title": "" }, { "docid": "b58323a6da35d608a93f09c73a9c1442", "score": "0.59162533", "text": "function parse_size($size) {\n $suffixes = array(\n '' => 1,\n 'k' => 1024,\n 'm' => 1048576, // 1024 * 1024\n 'g' => 1073741824, // 1024 * 1024 * 1024\n );\n if (preg_match('/([0-9]+)\\s*(k|m|g)?(b?(ytes?)?)/i', $size, $match)) {\n return $match[1] * $suffixes[drupal_strtolower($match[2])];\n }\n}", "title": "" }, { "docid": "8e17a824b3812985c03d9b83cac14a77", "score": "0.5914035", "text": "function convertPHPSizeToBytes($sSize)\n{\n if ( is_numeric( $sSize) ) {\n return $sSize;\n }\n $sSuffix = substr($sSize, -1);\n $iValue = substr($sSize, 0, -1);\n switch(strtoupper($sSuffix)){\n case 'P':\n $iValue *= 1024;\n case 'T':\n $iValue *= 1024;\n case 'G':\n $iValue *= 1024;\n case 'M':\n $iValue *= 1024;\n case 'K':\n $iValue *= 1024;\n break;\n }\n return $iValue;\n}", "title": "" }, { "docid": "ba07b991b3b39929ad41d7693e9838e6", "score": "0.59048206", "text": "function human_file_size($bytes, $decimals = 2)\n {\n $sz = 'BKMGTPE';\n $factor = (int)floor((strlen($bytes) - 1) / 3);\n return sprintf(\"%.{$decimals}f\", $bytes / pow(1024, $factor)) . $sz[$factor];\n \n }", "title": "" }, { "docid": "ba07b991b3b39929ad41d7693e9838e6", "score": "0.59048206", "text": "function human_file_size($bytes, $decimals = 2)\n {\n $sz = 'BKMGTPE';\n $factor = (int)floor((strlen($bytes) - 1) / 3);\n return sprintf(\"%.{$decimals}f\", $bytes / pow(1024, $factor)) . $sz[$factor];\n \n }", "title": "" }, { "docid": "f474624e294c6204acba173c9c6d0870", "score": "0.59022415", "text": "function wpforms_size_to_megabytes( $bytes ) {\n\n\t_deprecated_function( __FUNCTION__, '1.6.2 of the WPForms plugin', 'size_format()' );\n\n\treturn size_format( $bytes );\n}", "title": "" }, { "docid": "87414a8f3cd8c8df8e2303b3165bddf5", "score": "0.5894313", "text": "function convertBytes($value)\n{\n if (is_numeric($value)) {\n return $value;\n } else {\n $digits = substr($value, 0, -1);\n $unit = strtolower(substr($value, -1));\n switch ($unit) {\n case 'k':\n $digits *= 1024;\n break;\n case 'm':\n $digits *= 1048576;\n break;\n case 'g':\n $digits *= 1073741824;\n break;\n }\n\n return $digits;\n }\n}", "title": "" }, { "docid": "3b42c6bf8882b71da96d4015ea442e4a", "score": "0.5874117", "text": "function ft_get_bytes($val) {\n\t$val = trim($val);\n\t$last = strtolower($val{strlen($val)-1});\n\tswitch($last) {\n\t\t// The 'G' modifier is available since PHP 5.1.0\n\t\tcase 'g':\n\t\t\t$val *= 1024;\n\t\tcase 'm':\n\t\t\t$val *= 1024;\n\t\tcase 'k':\n\t\t\t$val *= 1024;\n\t}\n\treturn $val;\n}", "title": "" }, { "docid": "5a3409f0a46cea8989eb5026b4ac50b9", "score": "0.5871389", "text": "function bytesToSize1024($size, $unit = null, $decemals = 0) {\n\t\t$byteUnits = array('B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB');\n\t\tif (!is_null($unit) && !in_array($unit, $byteUnits)) {\n\t\t\t$unit = null;\n\t\t}\n\t\t$extent = 1;\n\t\tforeach ($byteUnits as $rank) {\n\t\t\tif ((is_null($unit) && ($size < $extent <<= 10)) || ($rank == $unit)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn number_format($size / ($extent >> 10), $decemals) . $rank;\n\t}", "title": "" }, { "docid": "be290abd0b365ceffb877b5b357fb4a5", "score": "0.58598876", "text": "function GetStringSize($size) {\n\t$size=round($size/1024,2);\n\tif ($size>1024) {\n\t\t$size=round($size/1024,2).' MB';\n\t} else {\n\t\t$size=$size.' KB';\n\t}\n\treturn $size;\n}", "title": "" }, { "docid": "7c843fa1d05197192dc01dd5e55c2ca4", "score": "0.5857228", "text": "function filesize2bytes($str) {\n $bytes = 0;\n\n $bytes_array = array(\n 'B' => 1,\n 'KB' => 1024,\n 'MB' => 1024 * 1024,\n 'GB' => 1024 * 1024 * 1024,\n 'TB' => 1024 * 1024 * 1024 * 1024,\n 'PB' => 1024 * 1024 * 1024 * 1024 * 1024,\n );\n\n $bytes = floatval($str);\n\n if (preg_match('#([KMGTP]?B)$#si', $str, $matches) && !empty($bytes_array[$matches[1]])) {\n $bytes *= $bytes_array[$matches[1]];\n }\n\n $bytes = intval(round($bytes, 2));\n\n return $bytes;\n}", "title": "" }, { "docid": "e9d1ebc413757a2fd384967e45478db4", "score": "0.5856682", "text": "function mb_options()\n {\n }", "title": "" }, { "docid": "9851fd0592be109b956ae56c3dc8687e", "score": "0.5850763", "text": "public static function humanReadableSize($input){\n\t\t\t$unites = \"oKMGTP\";\n\t\t\t$decimals = 2;\n\t\t\t$factor = floor((strlen($input) - 1) / 3);\n\t\t\treturn sprintf(\"%.{$decimals}f\", $input / pow(1024, $factor)) . @$unites[$factor];\n\n\t\t}", "title": "" }, { "docid": "bb83927ac054246b99a5e4e51d16e0ab", "score": "0.5846378", "text": "public static function shorthandBytes($size){\n $factor = 1;\n switch(strtolower(substr($size,-1))){\n case 'e': $factor <<= 10;\n case 'p': $factor <<= 10;\n case 't': $factor <<= 10;\n case 'g': $factor <<= 10;\n case 'm': $factor <<= 10;\n case 'k': $factor <<= 10;\n }\n return $factor * (int)$size;\n }", "title": "" }, { "docid": "31f90299996d30965a05f338428b09a8", "score": "0.5828243", "text": "function size_display($bytes)\n{\n\t$unit = intval(log($bytes, 1024));\n\t$units = array('B', 'KB', 'MB', 'GB');\n\n\tif (array_key_exists($unit, $units) === true)\n\t\treturn sprintf('%4.1f %s', $bytes / pow(1024, $unit), $units[$unit]);\n\n return $bytes;\n}", "title": "" }, { "docid": "d1f8c775f2c0d3029d53f49d89f10631", "score": "0.58269143", "text": "static function format_size($bytes)\r\n {\r\n if ($bytes > 1073741824) {\r\n return number_format_i18n($bytes / 1073741824, 2) . ' GB';\r\n } elseif ($bytes > 1048576) {\r\n return number_format_i18n($bytes / 1048576, 1) . ' MB';\r\n } elseif ($bytes > 1024) {\r\n return number_format_i18n($bytes / 1024, 1) . ' KB';\r\n } else {\r\n return number_format_i18n($bytes, 0) . ' bytes';\r\n }\r\n }", "title": "" }, { "docid": "5723a72fbb6ff0f6ab9d02359be4de72", "score": "0.58147776", "text": "function wppb_return_bytes($val)\n {\n $val = trim($val);\n\n switch (strtolower($val[strlen($val) - 1])) {\n // The 'G' modifier is available since PHP 5.1.0\n case 'g':\n $val = intval($val) * 1024;\n case 'm':\n $val = intval($val) * 1024;\n case 'k':\n $val = intval($val) * 1024;\n }\n\n return $val;\n }", "title": "" }, { "docid": "d8ec864f1517d501a4ef7291ec5a4440", "score": "0.58137715", "text": "function prettyBytes ($val) {\n if ($val == \"NaN\") {\n return $val; // Not a Number\n }\n $suffix = '';\n if ($val > 1024) {\n $val /= 1024;\n $suffix = 'K';\n }\n if ($val > 1024) {\n $val /= 1024;\n $suffix = 'M';\n }\n if ($val > 1024) {\n $val /= 1024;\n $suffix = 'G';\n }\n return round($val, 1) . $suffix;\n}", "title": "" }, { "docid": "017c913acaee589e7e74b450434341f9", "score": "0.5794906", "text": "function ConvertSize($fs) \r\n\t{ \r\n\tif ($fs >= 1073741824) \r\n\t\t $fs = round($fs / 1073741824 * 100) / 100 . \" GB\"; \r\n\telseif ($fs >= 1048576) \r\n\t\t $fs = round($fs / 1048576 * 100) / 100 . \" MB\"; \r\n\telse\r\n\t\t $fs = round($fs / 1024 * 100) / 100 . \" KB\"; \r\n\t\r\n\treturn $fs; \r\n\t}", "title": "" }, { "docid": "a56fff2cca10c72f4f060a1a6c3bf10b", "score": "0.5794522", "text": "private function return_bytes($val) {\r\n \t$val = trim($val);\r\n \t$last = strtolower($val[strlen($val)-1]);\r\n \tswitch($last) {\r\n \t\t// The 'G' modifier is available since PHP 5.1.0\r\n \tcase 'g':\r\n \t$val *= 1024;\r\n \tcase 'm':\r\n \t$val *= 1024;\r\n \tcase 'k':\r\n \t$val *= 1024;\r\n \t}\r\n \treturn $val;\r\n\t}", "title": "" }, { "docid": "98ae08c87164dbeb4c609443b7509ab0", "score": "0.5783405", "text": "static function size ($input)\n\t\t{\n\t\tforeach (array ('bytes', 'KB', 'MB', 'GB', 'TB') as $x)\n\t\t\t{\n\t\t\tif ($input < 1024.0) return sprintf (\"%3.1f %s\", $input, $x);\n\n\t\t\t$input /= 1024.0;\n\t\t\t}\n\t\t\n\t\treturn false;\n\t\t}", "title": "" }, { "docid": "5e69b5b36e5eeb1441f6073910f9f9de", "score": "0.57827127", "text": "function simpledir_format_bytes($size) {\n $units = array('B', 'KB', 'MB', 'GB', 'TB');\n for ($i = 0; $size >= 1024 && $i < 4; $i++) $size /= 1024;\n return round($size, 2).$units[$i];\n}", "title": "" }, { "docid": "ad478e8f3cd8ca22fb12e6ce6b0bbba1", "score": "0.5777771", "text": "function getHumanFileSize($bytes, $decimals = 2) {\n $sz = 'BKMGTP';\n $factor = floor((strlen($bytes) - 1) / 3);\n return sprintf(\"%.{$decimals}f\", $bytes / pow(1024, $factor)) . @$sz[$factor];\n}", "title": "" }, { "docid": "cea901ae6623d31d560229732a0f1643", "score": "0.57760084", "text": "function convert($size)\n{\n $unit=array('b','kb','mb','gb','tb','pb');\n return @round($size/pow(1024,($i=floor(log($size,1024)))),2).' '.$unit[$i];\n}", "title": "" }, { "docid": "32e17f563ba4d8b3633268bbd310a26c", "score": "0.577077", "text": "function human_filesize($bytes, $decimals = 1) {\n\t\t\t$sz = \"BKMG\";\n\t\t\t$factor = floor((strlen($bytes) - 1) / 3);\n\t\t\treturn sprintf(\"%.{$decimals}f\", $bytes / pow(1024, $factor)) . @$sz[$factor];\n\t\t}", "title": "" }, { "docid": "2680f8b3faad06e951173844474399a0", "score": "0.57698023", "text": "function elit_downloadable_human_filesize( $bytes, $decimals = 2 ) {\n $factor = floor( ( strlen( $bytes ) - 1 ) / 3 );\n\n if ( $factor > 0 ) {\n $size = 'kmgt';\n }\n\n return sprintf( \"%.{$decimals}f\", $bytes / pow( 1024, $factor ) ) . @$size[$factor - 1] . 'b';\n }", "title": "" }, { "docid": "52a48f87eef6601dcc3c01f48c6c716d", "score": "0.5769697", "text": "public static function getSizeString($bytes = NULL)\n\t{\n\n\t\t$sizeString = FALSE;\n\t\tif ($bytes>=1073741824) {\n\t\t\t$sizeString = round($bytes / 1073741824 * 10) / 10 . 'GB';\n\t\t} else\n\t\tif ($bytes>=1048576)\t{\n\t\t\t$sizeString = round($bytes / 1048576 * 10) / 10 . 'MB';\n\t\t} else\n\t\tif ($bytes>=1024) {\n\t\t\t$sizeString = round($bytes / 1024 * 10) / 10 . 'kB';\n\t\t} else\n\t\tif ($bytes!=0) {\n\t\t\t$sizeString = $bytes . ' Bytes';\n\t\t}\n\t\treturn $sizeString;\n\t}", "title": "" }, { "docid": "e730db81790d1138a60296755c59450e", "score": "0.57676816", "text": "function convert_human_readable_to_bytes( $formatted_size ) {\n\n\t\t$formatted_size_type = preg_replace( '/[^a-z]/', '', $formatted_size );\n\t\t$formatted_size_value = trim( str_replace( $formatted_size_type, '', $formatted_size ) );\n\n\t\tswitch ( strtoupper( $formatted_size_type ) ) {\n\t\t\tcase 'KB':\n\t\t\t\treturn $formatted_size_value * 1024;\n\t\t\tcase 'MB':\n\t\t\t\treturn $formatted_size_value * pow( 1024, 2 );\n\t\t\tcase 'GB':\n\t\t\t\treturn $formatted_size_value * pow( 1024, 3 );\n\t\t\tcase 'TB':\n\t\t\t\treturn $formatted_size_value * pow( 1024, 4 );\n\t\t\tcase 'PB':\n\t\t\t\treturn $formatted_size_value * pow( 1024, 5 );\n\t\t\tdefault:\n\t\t\t\treturn $formatted_size_value;\n\t\t}\n\t}", "title": "" }, { "docid": "ac28819b929d84c3e53557584b9294b1", "score": "0.57650816", "text": "function format_size($size) {\n $label = array('B', 'KB', 'MB', 'GB', 'TB', 'PB');\n for ($i = 0; $size >= 1024 && $i < ( count($label) - 1 ); $size /= 1024, $i++)\n ;\n return( round($size, 2) . \" \" . $label[$i] );\n }", "title": "" }, { "docid": "e0804ece200073f26d95853162e16843", "score": "0.57617545", "text": "function humanFilesize(int $bytes, int $decimals = 3): string\n{\n static $size = ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\n $factor = floor((strlen($bytes) - 1) / 3);\n\n return sprintf(\"%.{$decimals}f\", $bytes / pow(1024, $factor)) . $size[$factor];\n}", "title": "" }, { "docid": "45c93adc3d725726df9d480a72916b57", "score": "0.5759914", "text": "function size_format($bytes, $decimals = 0)\n{\n}", "title": "" }, { "docid": "c76fef69a7b2c4b9389af1c8805a1f9e", "score": "0.575632", "text": "function evf_size_to_bytes( $size ) {\n\n\tif ( is_numeric( $size ) ) {\n\t\treturn $size;\n\t}\n\n\t$suffix = substr( $size, - 1 );\n\t$value = substr( $size, 0, - 1 );\n\n\tswitch ( strtoupper( $suffix ) ) {\n\t\tcase 'P':\n\t\t\t$value *= 1024;\n\t\tcase 'T':\n\t\t\t$value *= 1024;\n\t\tcase 'G':\n\t\t\t$value *= 1024;\n\t\tcase 'M':\n\t\t\t$value *= 1024;\n\t\tcase 'K':\n\t\t\t$value *= 1024;\n\t\t\tbreak;\n\t}\n\n\treturn $value;\n}", "title": "" }, { "docid": "a9884d3aa9b4a0dd10ee79c613bf268d", "score": "0.57553655", "text": "public static function convertToBytes($val)\r\n {\r\n $val = trim($val);\r\n //checks the last letter to get type\r\n $last = strtolower($val[strlen($val)-1]);\r\n if(in_array($last, array('g','m','k')))\r\n {\r\n //falls throught the case list (no breaks)\r\n switch($last)\r\n {\r\n case 'g':\r\n $val *= 1024;\r\n case 'm':\r\n $val *= 1024;\r\n case 'k':\r\n $val *=1024;\r\n }\r\n }\r\n return $val;\r\n }", "title": "" }, { "docid": "de17ac4c6a2cd28a73fbf46cc3e038ec", "score": "0.5753388", "text": "public static function returnBytes($val) \n\t{\n $val = trim($val);\n $last = strtolower($val[strlen($val)-1]);\n switch($last) {\n // The 'G' modifier is available since PHP 5.1.0\n case 'g':\n $val *= 1024;\n case 'm':\n $val *= 1024;\n case 'k':\n $val *= 1024;\n }\n\n return $val;\n\t}", "title": "" }, { "docid": "2902a68b43332cfe2bfeb3181fca7e2a", "score": "0.5752891", "text": "function cminds_units2bytes($str)\n {\n $units = array('B', 'K', 'M', 'G', 'T');\n $unit = preg_replace('/[0-9]/', '', $str);\n $unitFactor = array_search(strtoupper($unit), $units);\n if( $unitFactor !== false )\n {\n return preg_replace('/[a-z]/i', '', $str) * pow(2, 10 * $unitFactor);\n }\n }", "title": "" }, { "docid": "227c06f91955963f31f6720c9e86edaf", "score": "0.5752421", "text": "function getSize($size) {\n\t$round = 2;\n\tif ($size<=1024) $size = $size.\" Byte\";\n\telse if ($size<=1024000) $size = round($size/1024,$round).\" KB\";\n\telse if ($size<=1048576000) $size = round($size/1048576,$round).\" MB\";\n\telse if ($size<=1073741824000) $size = round($size/1073741824,$round).\" GB\";\n\t$size = explode(\" \", $size);\n\t$size = number_format($size[0], $round, '.', '').\" \".$size[1];\n\treturn $size;\n}", "title": "" }, { "docid": "2a8634a6a0d5a6291dc15330d9e7cad3", "score": "0.5746553", "text": "function return_bytes($val)\n{\n\t$val = trim($val);\n\t$last = strtolower($val{strlen($val)-1});\n\n\tswitch($last)\n\t{\n\t\t// The 'G' modifier is available since PHP 5.1.0\n\t\tcase 'g':\n\t\t\t$val *= 1024;\n\t\tcase 'm':\n\t\t\t$val *= 1024;\n\t\tcase 'k':\n\t\t\t$val *= 1024;\n\t}\n\n\treturn $val;\n}", "title": "" }, { "docid": "b06d63d50df08e10a186d5ee417698b3", "score": "0.574049", "text": "static public function convertSizeToBytes($str)\r\n\t{\r\n\t\t$str = trim($str);\r\n\t\tif (strlen($str) > 0)\r\n\t\t{\r\n\t\t\t$cLastAlpha = strtolower(substr($str, -1));\r\n\t\t\t$size = intval($str);\r\n\t\t\tswitch($cLastAlpha)\r\n\t\t\t{\r\n\t\t\t\tcase 't':\r\n\t\t\t\t\t$size *= 1024;\r\n\t\t\t\tcase 'g':\r\n\t\t\t\t\t$size *= 1024;\r\n\t\t\t\tcase 'm':\r\n\t\t\t\t\t$size *= 1024;\r\n\t\t\t\tcase 'k':\r\n\t\t\t\t\t$size *= 1024;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$size = 0;\r\n\t\t}\r\n\t\treturn $size;\r\n\t}", "title": "" }, { "docid": "fa9df7963e052a905d46f589ef24e495", "score": "0.57380974", "text": "function GetFilesizeInKB($file_size = false){\n\tif ($file_size == true){\n\t\tif ($file_size < 1024){\n\t\t\treturn $file_size.\" B\";\n\t\t} else {\n\t\t\t$kb = $file_size / 1024;\n\t\t\treturn round($kb, 2).\" KB\";\n\t\t}\n\t}\n}", "title": "" }, { "docid": "9e59af8789779dabdb5494cede861855", "score": "0.5729478", "text": "public static function get_ini_size($value)\r\n\t{\r\n\t\tif (!is_numeric($value))\r\n\t\t{\r\n\t\t\tif (strpos($value, 'M') !== false)\r\n\t\t\t{\r\n\t\t\t\t$value = intval($value) * 1024 * 1024;\r\n\t\t\t}\r\n\t\t\telseif (strpos($value, 'K') !== false)\r\n\t\t\t{\r\n\t\t\t\t$value = intval($value) * 1024;\r\n\t\t\t}\r\n\t\t\telseif (strpos($value, 'G') !== false)\r\n\t\t\t{\r\n\t\t\t\t$value = intval($value) * 1024 * 1024 * 1024;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $value;\r\n\t}", "title": "" }, { "docid": "33c3ede0296b9ec79d75bdc3a352e633", "score": "0.5726612", "text": "function human_filesize($bytes, $decimals=2) {\n $sz = 'BKMGTP';\n $factor = floor((strlen($bytes) - 1) / 3);\n return sprintf(\"%.{$decimals}f\", $bytes / pow(1024, $factor)) . @$sz[$factor];\n}", "title": "" }, { "docid": "b88bbfa6b9813f703c38117ba2b5e289", "score": "0.5725715", "text": "function format_bytes($bytes, $decimals = 2, $to = 'KB', $from = 'B', $kb = 1024) {\n\t\n\tif(!is_numeric($bytes)) {\n\t\tthrow new InvalidArgumentException(\"Non-numeric \\$bytes parameter: $bytes\");\n\t}\n\t\n\t# pass 1: normalize to bytes\n\tswitch(strtoupper($from)) {\n\t\t\n\t\tcase 'G':\n\t\tcase 'GB':\n\t\tcase 'GIGABYTES':\n\t\t\t$bytes = $bytes * $kb; // intentional fall-through to MB\n\t\t\n\t\tcase 'M':\n\t\tcase 'MB':\n\t\tcase 'MEGABYTES':\n\t\t\t$bytes = $bytes * $kb; // intentional fall-through to KB\n\t\t\t\n\t\tcase 'K':\n\t\tcase 'KB':\n\t\tcase 'KILOBYTES':\n\t\t\t$bytes = $bytes * $kb;\n\t\tbreak;\n\t\t\n\t\tdefault:\n\t\tcase 'B':\n\t\t\t# do nothing\n\t}\n\t\n\t# pass 2: convert to desired measurement\n\tswitch(strtoupper($to)) {\n\t\t\n\t\tcase 'G':\n\t\tcase 'GB':\n\t\t\t$bytes = $bytes / $kb; // intentional fall-through to MB\n\t\t\n\t\tcase 'M':\n\t\tcase 'MB':\n\t\t\t$bytes = $bytes / $kb; // intentional fall-through to KB\n\t\t\t\n\t\tcase 'K':\n\t\tcase 'KB':\n\t\t\t$bytes = $bytes / $kb;\n\t\tbreak;\n\t\t\n\t\tdefault:\n\t\tcase 'B':\n\t\t\t# do nothing\n\t}\n\t\n\t# format\n\treturn ($decimals === FALSE)? $bytes : number_format($bytes, $decimals).$to;\n}", "title": "" }, { "docid": "42e8b0f649300b23be1a0e3fe6b2194b", "score": "0.57251406", "text": "function formatBytes($value, $min = '')\r\n\t{\r\n\t\t$ext = array('B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB');\r\n\t\t$unitCount = 0;\r\n\t\tfor(; $value > 1024; $unitCount++)\r\n\t\t{\r\n\t\t\t$value /= 1024;\r\n\t\t\tif ($ext[$unitCount] == $min) break;\r\n\t\t}\r\n\t\treturn $this->formatCurrency($value).' '.$ext[$unitCount];\r\n\t}", "title": "" }, { "docid": "f329f85d511bdd4c04e9357cdd2ba5b2", "score": "0.57249284", "text": "function calculateFileSize($bytes) {\n\n //$bytes = 2000000;\n $kilobytes = $bytes/1024;\n\n if($kilobytes > 1000) {\t\n\n return round($kilobytes/1000, 1) . \" Mb\";\n\n } else if($kilobytes > 1){\n\n return round($kilobytes) . \" Kb\";\n\n } else {\n return $bytes . \" bytes\";\n }\n}", "title": "" }, { "docid": "f36ca2162caf511c2d3a3dd597088f91", "score": "0.57243097", "text": "protected function valueToBytes(string $value): int\n {\n preg_match('/^(?<value>\\d+)(?<option>[K|M|G]*)$/i', $value, $matches);\n\n $value = (int) $matches['value'];\n $option = strtoupper($matches['option']);\n\n if ($option) {\n if ($option === 'K') {\n $value *= 1024;\n } elseif ($option === 'M') {\n $value *= 1024 * 1024;\n } elseif ($option === 'G') {\n $value *= 1024 * 1024 * 1024;\n }\n }\n\n return $value;\n }", "title": "" }, { "docid": "06dab9f2eda8a74d776445ff0d13b1ea", "score": "0.5723146", "text": "function return_bytes($val)\n{\n $val = trim($val);\n\n if (is_numeric($val))\n return $val;\n\n $last = strtolower($val[strlen($val) - 1]);\n $val = substr($val, 0, -1); // necessary since PHP 7.1; otherwise optional\n\n switch ($last) {\n // The 'G' modifier is available since PHP 5.1.0\n case 'g':\n $val *= 1024;\n case 'm':\n $val *= 1024;\n case 'k':\n $val *= 1024;\n }\n\n return (int)$val;\n}", "title": "" }, { "docid": "6208c3a4286b93b67e1e9577c93151f7", "score": "0.5722549", "text": "function size($size, $precision = 2, $suffixes = 'KMGTPEZY') {\r\n if ($precision >= 0) {\r\n $base = log($size + 0.00000001, 1024); //+0.00000001 is for base == 0;\r\n return round(pow(1024, $base - floor($base)), $precision) . $suffixes[floor($base) - 1];\r\n } else {\r\n $base = xpAS::preg_get($size, '/^[\\d|\\.]+(.)/', 1);\r\n $d = xpAS::preg_get($size, '/^([\\d|\\.]+)(.)*/', 1);\r\n $base = strtoupper($base);\r\n if (($p = strpos($suffixes, $base)) !== false) {\r\n $d = ceil($d * pow(1024, $p + 1));\r\n }\r\n return $d;\r\n }\r\n }", "title": "" }, { "docid": "79d1e8a2064568f3577dc556520eeeb9", "score": "0.5714257", "text": "public function testHumanReadableBytes()\n\t{\n\t\t$this->assertEquals('0', human_readable_bytes(0));\n\t\t$this->assertEquals('12 bytes', human_readable_bytes(12));\n\t\t$this->assertEquals('-12 bytes', human_readable_bytes(-12));\n\t\t$this->assertEquals('1 KiB', human_readable_bytes(1024));\n\t\t$this->assertEquals('1 kB', human_readable_bytes(1000, true));\n\t\t$this->assertEquals('2 KiB', human_readable_bytes(2*1024));\n\t\t$this->assertEquals('2 kB', human_readable_bytes(2000, true));\n\t\t$this->assertEquals('2 kB', human_readable_bytes(2012, true));\n\t\t$this->assertEquals('1 MiB', human_readable_bytes(1024*1024));\n\t\t$this->assertEquals('1 MB', human_readable_bytes(1000000, true));\n\t\t$this->assertEquals('1 GiB', human_readable_bytes(1024*1024*1024));\n\t\t$this->assertEquals('1 GB', human_readable_bytes(1000000000, true));\n\t\t$this->assertEquals('1 TiB', human_readable_bytes(1024*1024*1024*1024));\n\t\t$this->assertEquals('1 TB', human_readable_bytes(1000000000000, true));\n\t}", "title": "" }, { "docid": "388cd06f0a7404837cf5ec76124aafd7", "score": "0.5714165", "text": "private function toBytes($str){\n $val = trim($str);\n $last = strtolower($str[strlen($str)-1]);\n switch($last) {\n case 'g': $val *= 1024;\n case 'm': $val *= 1024;\n case 'k': $val *= 1024;\n }\n return $val;\n }", "title": "" }, { "docid": "4073c92cbd62d5eba21e1c6d1f42f0a8", "score": "0.5710966", "text": "function getMemoryLimitInBytes() {\n\n $configValue = ini_get('memory_limit');\n\n if ($configValue == '-1' || $configValue == '') {\n return 0;\n }\n\n $lastCharacter = substr($configValue, -1);\n\n if (ctype_digit($lastCharacter)) {\n $bytes = (int) $configValue;\n }\n else {\n\n switch ($lastCharacter) {\n case 'G':\n $multiplier = 1024 * 1024 * 1024;\n break;\n\n case 'M':\n $multiplier = 1024 * 1024;\n break;\n\n case 'K':\n $multiplier = 1024;\n break;\n default:\n $multiplier = 1;\n\n }\n\n $bytes = (int)$configValue * $multiplier;\n\n }\n\n return $bytes;\n\n }", "title": "" }, { "docid": "2ffd50f2219c2d243e010d78f2a79acd", "score": "0.5707323", "text": "static public function convert($size) {\r\n \t$unit = array('b','kb','mb','gb','tb','pb');\r\n\t return @round($size/pow(1024,($i=floor(log($size,1024)))),2).' '.$unit[$i];\r\n\t}", "title": "" }, { "docid": "a445178d599fa15c058cac188048f34e", "score": "0.570177", "text": "function getNiceFileSize() {\n\t\t$niceFileSizeUnits = array('B', 'KB', 'MB', 'GB');\n\t\t$size = $this->getData('fileSize');\n\t\tfor($i = 0; $i < 4 && $size > 1024; $i++) {\n\t\t\t$size >>= 10;\n\t\t}\n\t\treturn $size . $niceFileSizeUnits[$i];\n\t}", "title": "" }, { "docid": "a3b62ea653f543b8889cbc8e3c7c49ad", "score": "0.5699301", "text": "public function getFormattedSize(): string\n {\n $identifiers = [\n 'b',\n 'kb',\n 'mb',\n 'gb',\n 'tb'\n ];\n $cycle = 0;\n $unit = $this->size;\n\n while ($unit > 1024) {\n $unit = (double) $unit / 1024;\n $cycle++;\n }\n $unit = number_format($unit, 3);\n\n return \"{$unit} {$identifiers[$cycle]}\";\n }", "title": "" }, { "docid": "29af2f85a0aa7c4478dab02f972e568a", "score": "0.5697658", "text": "public static function returnBytes($val) {\n\t\t$val = trim($val);\n\t\t$last = strtolower($val[strlen($val)-1]);\n\t\t$val = (int) $val;\n\n\t\tswitch($last) {\n\t\t\t// El modificador 'G' está disponble desde PHP 5.1.0\n\t\t\tcase 'g':\n\t\t\t\t$val *= 1024;\n\t\t\tcase 'm':\n\t\t\t\t$val *= 1024;\n\t\t\tcase 'k':\n\t\t\t\t$val *= 1024;\n\t\t}\n\n\t\treturn $val;\n\t}", "title": "" }, { "docid": "85292190cf3c3058b08ee386e2e4ee23", "score": "0.5697617", "text": "function media_size($size, $type)\n{\n switch($type) {\n case \"KB\":\n $filesize = $size * .0009765625; // bytes to KB\n break;\n case \"MB\":\n $filesize = ($size * .0009765625) * .0009765625; // bytes to MB\n break;\n case \"GB\":\n $filesize = (($size * .0009765625) * .0009765625) * .0009765625; // bytes to GB\n break;\n }\n\n if($filesize < 0) {\n return $filesize = 'unknown file size';}\n else {\n return round($filesize, 2).' '.$type;\n }\n}", "title": "" }, { "docid": "adec0f1d4476a42926a62359be3afb9d", "score": "0.5692875", "text": "function asBytes($ini_v) {\n\t\t $ini_v = trim($ini_v);\n\t\t $s = array('g'=> 1<<30, 'm' => 1<<20, 'k' => 1<<10);\n\t\t return intval($ini_v) * ($s[strtolower(substr($ini_v,-1))] ?: 1);\n\t\t}", "title": "" }, { "docid": "57c3bb4f13dd41f2faf1a862a5aa3d4d", "score": "0.5692634", "text": "function sed_get_uploadmax()\r\n{\r\n\tstatic $par_a = array('upload_max_filesize', 'post_max_size', 'memory_limit');\r\n\tstatic $opt_a = array('G' => 1073741824, 'M' => 1048576, 'K' => 1024);\r\n\t$val_a = array();\r\n\tforeach ($par_a as $par)\r\n\t{\r\n\t\t$val = ini_get($par);\r\n\t\t$opt = strtoupper($val[strlen($val) - 1]);\r\n\t\t$val = isset($opt_a[$opt]) ? $val * $opt_a[$opt] : (int)$val;\r\n\t\tif ($val > 0)\r\n\t\t{\r\n\t\t\t$val_a[] = $val;\r\n\t\t}\r\n\t}\r\n\treturn floor(min($val_a) / 1024); // KB\r\n}", "title": "" }, { "docid": "3bf36b603c635472af10ecf09d188750", "score": "0.5686048", "text": "function human_filesize($bytes) {\r\n $sz = 'BKMGTP';\r\n $factor = floor((strlen($bytes) - 1) / 3);\r\n return sprintf(\"%.2f\", $bytes / pow(1024, $factor)) . @$sz[$factor];\r\n}", "title": "" }, { "docid": "65ccd1b79822f62c496f0548172465f1", "score": "0.56848323", "text": "function iniToBytes ($val) {\n if ( preg_match('/([0-9]+)\\s*([gmk]?)/i', $val, $matches) !== 1 ) {\n return \"NaN\"; // Not a Number\n }\n\n $units = '';\n if (isset($matches[2])) {\n $units = $matches[2];\n }\n\n switch (strtolower($units)) {\n case 'g':\n $val *= 1024;\n case 'm':\n $val *= 1024;\n case 'k':\n $val *= 1024;\n }\n return $val;\n}", "title": "" }, { "docid": "0218ce4666ca745a34eb50d891ad7ce3", "score": "0.56822985", "text": "public function convertToMegabyte($val) {\r\n\t\r\n\t\tif (!is_numeric($val)) {\r\n\t\t\t$val = $this->convertToByte($val);\r\n\t\t}\r\n\r\n\t\tif ($val >= 1073741824) {\r\n\t\t\t$val = round($val/1073741824, 1) . \" Gb\";\r\n\r\n\t\t} elseif ($val >= 1048576) {\r\n\t\t\t$val = round($val/1048576, 1) . \" Mb\";\r\n\r\n\t\t} elseif ($val >= 1024) {\r\n\t\t\t$val = round($val/1024, 1) . \" Kb\";\r\n\t\t} else {\r\n\t\t\t$val = $val . \" bytes\";\r\n\t\t}\r\n\r\n\t\treturn $val;\r\n\t}", "title": "" }, { "docid": "f86ff52f8dd38a448b402ad10aae2ace", "score": "0.56785715", "text": "function format_php_size($size) {\n if (!is_numeric($size)) {\n if (strpos($size, 'M') !== false) {\n $size = intval($size)*1024*1024;\n } elseif (strpos($size, 'K') !== false) {\n $size = intval($size)*1024;\n } elseif (strpos($size, 'G') !== false) {\n $size = intval($size)*1024*1024*1024;\n }\n }\n return is_numeric($size) ? format_filesize($size) : $size;\n}", "title": "" }, { "docid": "6695285ec025a54fd7c1cdb251eaa2e5", "score": "0.5677287", "text": "public static function escapeSize($value)\n\t\t{\n\t\t\t$value = stripslashes($value);\n\n\t\t\tif (!is_numeric($value))\n\t\t\t\treturn \"Unknown\";\n\t\t\t\n\t\t\tif ($value >= 0 && $value <= 999999)\n\t\t\t{\n\t\t\t\tif ($value / 1024 >= 100)\n\t\t\t\t\treturn number_format($value/1024,0,\".\",\"\") .\".00 kb\";\n\t\t\t\telse\n\t\t\t\t\treturn number_format($value/1024,2,\".\",\"\") .\" kb\";\n\t\t\t}\n\t\t\telse if ($value >= 1000000 && $value <= 999999999)\n\t\t\t{\n\t\t\t\tif ($value / (1024 * 1000) >= 100)\n\t\t\t\t\treturn number_format($value/(1024*1000),0,\".\",\"\") .\".00 mb\";\n\t\t\t\telse\n\t\t\t\t\treturn number_format($value/(1024*1000),2,\".\",\"\") .\" mb\";\n\t\t\t}\n\t\t\telse if ($value >= 1000000000)\n\t\t\t\treturn number_format($value/(1024*1000000),2,\".\",\"\") .\" gb\";\n\n return \"Unknown\";\n\t\t}", "title": "" }, { "docid": "15fdfa20b507fa9ce0c9008717eab51c", "score": "0.5674704", "text": "function _formatBytes($x) {\r\n\t\tif ($x < 100) $x;\r\n\t\tif ($x < 10000) return sprintf(\"%.2fKB\", $x/1000);\r\n\t\tif ($x < 900000) return sprintf(\"%dKB\", $x/1000);\r\n\t\treturn sprintf(\"%.2fMB\", $x/1000/1000);\r\n\t}", "title": "" } ]
ea230311134629dbfbc88ae54696b46e
Set whether to send json_file to jobs API.
[ { "docid": "ab92743a3a0817f297743f3dcd3ad931", "score": "0.0", "text": "public function setDryRun($dryRun)\n {\n $this->dryRun = $dryRun;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "e3f613a208047744d006a20ea9c39c57", "score": "0.55667794", "text": "public function setJsonResponse() {\n\t\t$this->view->disable();\n\t\t\n\t\t$this->_isJsonResponse = true;\n\t\t$this->response->setContentType('application/json', 'UTF-8');\n\t }", "title": "" }, { "docid": "f3fc5fcecf5aacf7e126ba08e0d7c2da", "score": "0.5340667", "text": "public function isLogJson(): bool\r\n {\r\n return $this->settings['log']['json'];\r\n }", "title": "" }, { "docid": "f18c1d6d9a25b70bf49b9505565ff98f", "score": "0.51925075", "text": "public function wantsJson()\n {\n return true;\n }", "title": "" }, { "docid": "388e36de47e0d889bf056b3dfe57de6a", "score": "0.519102", "text": "private function set_json( $key, $value ) {\n\t\t// Reload the json file\n\t\t$this->load_json();\n\t\t$this->config[ $key ] = $value;\n\t\treturn file_put_contents( $this->get_config_file(), json_encode( $this->config ) );\n\t}", "title": "" }, { "docid": "6a539b0857339ec67ba58962226328e0", "score": "0.518932", "text": "public function setFile_JSON($_file_JSON)\n {\n $this->file_JSON = $_file_JSON;\n\n return $this;\n }", "title": "" }, { "docid": "d1d9488bb2e261c12e77e2505ead91b2", "score": "0.50835586", "text": "public function isJsonFormat() { return $this->isJson; }", "title": "" }, { "docid": "ec7286f8648cda0d42500ed9b8d02c77", "score": "0.50365955", "text": "private function load_json() {\n\t\tif ( ! file_exists( $this->get_config_file() ) ) {\n\t\t\tfile_put_contents( $this->get_config_file(), [] );\n\t\t}\n\t\t$this->config = json_decode( file_get_contents( $this->get_config_file() ), true );\n\t\treturn true;\n\t}", "title": "" }, { "docid": "4b5c8a71335f869bc985541cda35ccd3", "score": "0.5018783", "text": "public static function wantsJson() {\n \n }", "title": "" }, { "docid": "4b5c8a71335f869bc985541cda35ccd3", "score": "0.5018783", "text": "public static function wantsJson() {\n \n }", "title": "" }, { "docid": "35883da68ca0c7aba6ab4aba7abcbe98", "score": "0.49953687", "text": "public function setNoUseCacheFile(){\n $this->messages[] = \"setNoUseCacheFile() called\";\n $this->useCachedFile = false;\n }", "title": "" }, { "docid": "56c9919e1f42bc9494e8f63c047b5a7c", "score": "0.4979712", "text": "public function setJsonRequestBehaviour($jsonRequestBehaviour) {\n $this->jsonRequestBehaviour = $jsonRequestBehaviour;\t\n }", "title": "" }, { "docid": "70ca839d3f99df573318166475ac9edb", "score": "0.4961831", "text": "private function setSettings()\n {\n curl_setopt_array($this->client, array(\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30000,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => $this->type,\n CURLOPT_HTTPHEADER => array(\n \"accept: */*\",\n \"accept-language: en-US,en;q=0.8\",\n \"content-type: application/json\",\n ),\n ));\n if (mb_strtoupper($this->type) == 'GET') {\n $this->get();\n } else {\n $this->other();\n }\n }", "title": "" }, { "docid": "dc97cdde909054f392d0546108a5faf1", "score": "0.49564022", "text": "protected function set_json_header()\n {\n header('Content-Type: application/json');\n }", "title": "" }, { "docid": "957c20e3e3ff93cdfa5f621159def58f", "score": "0.49136084", "text": "function hook_gdpr_export_user_export_format_alter(&$format) {\n $format = 'json';\n}", "title": "" }, { "docid": "9ca8e71b52032394065e12aa16c76590", "score": "0.49048272", "text": "public function assignmentQuestionFile($flag = NULL) {\n $incomingFormData = $this->readHttpRequest();\n $formData = json_decode($incomingFormData);\n $AssignmentQuestionFileList = $this->takeassignment_model->getAssignmentQuestionFile($formData);\n\n echo json_encode($AssignmentQuestionFileList);\n// if ($flag == 1) {\n// return $AssignmentQuestionFileList;\n// }\n// $data['AssignmentQuestionFileList'] = $AssignmentQuestionFileList;\n// echo json_encode($data);\n }", "title": "" }, { "docid": "5441d5bfe4dbac9e6fbd9261870e06a1", "score": "0.49033025", "text": "public function isJson()\r\n {\r\n if ($this->is_json === null) {\r\n $this->is_json = strpos($this->getContentType(), 'application/json') !== false;\r\n }\r\n\r\n return $this->is_json;\r\n }", "title": "" }, { "docid": "db6dd17ba404fa1c09dbc2514a59c9f6", "score": "0.49007052", "text": "function ReturnJSON () {\n $this->useReturnJSONResult = false;\n }", "title": "" }, { "docid": "a3d9450ef1107091ab3d41af597de174", "score": "0.49005267", "text": "private function _setJsonHeaders(){\n $this->curl->setHeader('Content-Type', 'application/json');\n }", "title": "" }, { "docid": "23cb7978d0103fdcc6a6b5c237a0d0b8", "score": "0.48846158", "text": "function setJSONP($isJSONP=false){\n $this->isJSONP = $isJSONP;\n }", "title": "" }, { "docid": "9bba8d0b680cd98b14305cb91c01af38", "score": "0.4879064", "text": "private function unset_json( $key ) {\n\t\tif ( ! isset( $this->config[ $key ] ) ) {\n\t\t\treturn false;\n\t\t}\n\t\tunset( $this->config[ $key ] );\n\t\tfile_put_contents( $this->get_config_file(), json_encode( $this->config ) );\n\t\treturn true;\n\t}", "title": "" }, { "docid": "b1938d56560a108b5aae0903c9c3647a", "score": "0.48446676", "text": "function createJSON_File( $robot_id, $host, $jsonFile_Name_with_full_path ) {\n $date_created = date('Y-m-d H:i:s');\n $response = array(\n 'robot_id'=>$robot_id,\n 'host'=> \"http://\".$host ,\n 'date_created'=> $date_created , \n 'files'=>array(\n 'web_xml'=>'xml_web_'.$robot_id.'.xml',\n 'log_xml'=>'robot_log_'.$robot_id.'.log',\n 'img_xml'=>'xml_img_'.$robot_id.'.xml',\n 'vid_xml'=>'xml_vid_'.$robot_id.'.xml',\n ) \n );\n $fp = fopen( $jsonFile_Name_with_full_path , 'w');\n fwrite($fp, json_encode($response));\n fclose($fp);\n }", "title": "" }, { "docid": "b71cea12df420223b4438753b4f4318e", "score": "0.48420084", "text": "function setSerialization($mode)\n {\n $valid_modes = array('none', 'serialize', 'wddx');\n if ($mode && in_array($mode, $valid_modes)) {\n $this->serialization = $mode;\n } else {\n $this->serialization = 'none';\n }\n }", "title": "" }, { "docid": "e28d898d5a40cf513d215838bd169dc0", "score": "0.484193", "text": "public function getFileExtension()\n {\n return 'json';\n }", "title": "" }, { "docid": "6a614185e57e67f92d7543384c0a4a26", "score": "0.4832258", "text": "public function getFormatJson()\r {\r $this->getResponse()->format = 'json';\r }", "title": "" }, { "docid": "4773a8f1087b3c40c567c7fdcf46dd23", "score": "0.48150438", "text": "protected function useXSendFile()\n {\n return ($this->getModule()->settings->get('useXSendfile'));\n }", "title": "" }, { "docid": "670906487bb7efe7a65c574098402cc4", "score": "0.48005402", "text": "public function forceJsonSerializers()\n {\n $this->requestSerializer = new JsonObjectSerializer();\n $this->responseSerializer = new JsonObjectSerializer();\n }", "title": "" }, { "docid": "7ead03de2e051d21715d8e55b99faa76", "score": "0.47914797", "text": "protected function setUpload()\n {\n $this->upload = $this->isFlexibleFile($this->original);\n }", "title": "" }, { "docid": "b8447e28f8c81ec28be712901e4c63b6", "score": "0.47901374", "text": "function setPeerReviewFileUpload($a_val)\n\t{\n\t\t$this->peer_file = (bool)$a_val;\n\t}", "title": "" }, { "docid": "3e2d5c42f38f46a8fd8f7bdac5b28dc4", "score": "0.4786489", "text": "public function setFile($index = 0)\n\t{\n\t\tif (isset($this->files[$index])) {\n\t\t\t$this->_tmp_file = &$this->files[$index];\n\t\t} else {\n\t\t\t$this->_tmp_file = new JObject;\n\t\t}\n\t}", "title": "" }, { "docid": "042843abb4ec8cbcc8ad67ec797a8054", "score": "0.47744244", "text": "public function has_json_extension() {\n\n\t\t$file_array = isset( $_FILES['envira_import_gallery']['name'] ) ? explode( '.', $_FILES['envira_import_gallery']['name'] ) : null; // @codingStandardsIgnoreLine\n\t\t$extension = end( $file_array );\n\t\treturn 'json' === $extension;\n\n\t}", "title": "" }, { "docid": "9fa0a0f08b7f169d4f21ac4d05f780c6", "score": "0.47711542", "text": "public function setUpload($upload){\n $this->upload = (bool)$upload;\n return $this;\n }", "title": "" }, { "docid": "b92ce1fd4db9329c79434106e4ffcbfb", "score": "0.47582087", "text": "public function getJsonFile()\n {\n return $this->jsonFile;\n }", "title": "" }, { "docid": "8dda4901ebd69c910e7c1a06259122ef", "score": "0.47523868", "text": "public function setContainsFile($value = TRUE) {\n $this->file = $value;\n }", "title": "" }, { "docid": "28b95a0f37945befe5a572cd5850c6d0", "score": "0.4744603", "text": "public function generate_autoload_json_file() {\n\n\t\tif( ! file_exists(WPEXTEND_JSON_DIR . self::$json_file_name) ) {\n\t\t\t\n\t\t\tif( touch(WPEXTEND_JSON_DIR . self::$json_file_name) )\n\t\t\t\tAdminNotice::add_notice( '013', self::$json_file_name .' file successfully created.', 'success', true, true, AdminNotice::$prefix_admin_notice );\n\t\t\telse\n\t\t\t\tAdminNotice::add_notice( '014', 'unable to create ' . self::$json_file_name, 'error', true, true, AdminNotice::$prefix_admin_notice );\n\t\t}\n }", "title": "" }, { "docid": "f01c8b57cbbf3f1aab2f0f39cfa46a49", "score": "0.4744437", "text": "public function saveConfig($fileName)\r\n {\r\n $jsonArray = $this->getConfig();\r\n\r\n $json = defined('JSON_PRETTY_PRINT') \r\n ? json_encode($jsonArray, JSON_PRETTY_PRINT)\r\n : json_encode($jsonArray)\r\n ;\r\n\r\n $count = file_put_contents($fileName,$json);\r\n return $count > 1;\r\n }", "title": "" }, { "docid": "5e04fd16bd170fb95649b84b525f2c6d", "score": "0.47418922", "text": "public function expectsJson()\n {\n return true;\n }", "title": "" }, { "docid": "f4ed66bd3b114fc6da1d1b19dc025ed7", "score": "0.47319373", "text": "function setJson($jsonData)\n {\n $this->json = $jsonData;\n }", "title": "" }, { "docid": "78f0c8f5f0eae9697e60615695d19342", "score": "0.47223446", "text": "public function getIsJson()\n {\n return $this->_isJson;\n }", "title": "" }, { "docid": "aac2a4f6fe9fe2bc3b25866f23229fa1", "score": "0.47056848", "text": "public static function jsonConfig($file) {\n if (!file_exists($file)) return false;\n\n $settings = json_decode(file_get_contents($file));\n\n foreach ($settings as $key => $value) {\n putenv(\"$key=$value\");\n }\n return true;\n }", "title": "" }, { "docid": "9fcf217565b4106952fa3c69e51a9cec", "score": "0.47035733", "text": "public function createJSONConfig() {\n $errors = $this->validateStructure();\n // returns the errors if the validation failed\n if(sizeof($errors[\"messages\"]) > 0) {\n return json_encode($errors);\n }\n\n // formated filename\n $file = $this->isoDate . \".json\";\n $fullPath = $this->folder.\"/\".$file;\n $status = array();\n\n // tests if the folder is writable\n if(is_writable($fullPath)) {\n // write in the file\n $result = file_put_contents($fullPath, json_encode($this->json));\n\n if($result === false) {\n $status[\"status\"] = \"An error occured during the config file saving. Please try again\";\n $status[\"code\"] = 500;\n }\n else {\n $status[\"status\"] = \"Your json config \" . $file . \" has been saved\";\n $status[\"code\"] = 200;\n }\n }\n else{\n $status[\"status\"] = \"The folder is not writable\";\n $status[\"code\"] = 403;\n }\n \n return json_encode($status);\n }", "title": "" }, { "docid": "f3dd8fe2565d991ada526a729f128273", "score": "0.467698", "text": "public static function settingTaskProp($task, $date){\n\n\t$tasks = array('task' => $task , 'date' => $date);\n $file = file_get_contents(\"newTestFile.php\");\n\nif (isset($task) && isset($date)){\n\tif(!empty($file)){\n\t\t\t$aved_Data = json_decode($file, true);\n\t\t\tarray_push($aved_Data, $tasks );\n\t\t\t$jsonencode = json_encode($aved_Data, JSON_FORCE_OBJECT);\n\t\t\t$myfile = fopen(\"newTestFile.php\", \"w\") or die(\"Unable to open file!\");\n\t\t\tfwrite($myfile,$jsonencode);\n\t\t} elseif(empty($file)){\n\t\t\t$fullarray = array();\n\t\t\tarray_push($fullarray , $tasks);\n\t\t\t$json_encode = json_encode($fullarray, JSON_FORCE_OBJECT);\n\t\t\t$Thefile = fopen(\"newTestFile.php\", \"w\") or die(\"Unable to open file!\");\n\t\t\tfwrite($Thefile,$json_encode);\n\n\t }\n}\n\t \n\t\n\t\n}", "title": "" }, { "docid": "9fb163b7557a246c8d5d13ee7dd503de", "score": "0.46702138", "text": "public static function setJsonConfig()\n {\n $jsonPaths = self::setJsonPath();\n\n foreach ($jsonPaths as $jsonPath) {\n\n self::$config = json_decode(file_get_contents($jsonPath), true);\n\n if(is_array(self::$config)) {\n self::$globalJsonArray = array_merge_recursive(self::$config, self::$globalJsonArray);\n }\n }\n }", "title": "" }, { "docid": "25175039ad109362520c0c1c6abdd783", "score": "0.46692288", "text": "public function setFile($file = '');", "title": "" }, { "docid": "b69c6e6dcd432c186c58b46c451a3730", "score": "0.46572822", "text": "protected final function setUploadFileMethod()\r\n\t{\r\n\t\tswitch (true)\r\n\t\t{\r\n\t\t\tcase (\r\n\t\t\t\t((true === isset($_GET[$this->getUploadFormInputName()])) || (true === isset($_REQUEST[$this->getUploadFormInputName()]))) &&\r\n\t\t\t\t(false === isset($_FILES[$this->getUploadFormInputName()]))\r\n\t\t\t) : \r\n\t\t\t{\r\n\t\t\t\t$this->setImageUploadMethodHandler(FILE_UPLOAD_V2::FILE_UPLOAD_V2_UPLOAD_TYPE_XHR);\r\n\t\t\t\tbreak;\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase (true === isset($_FILES[$this->getUploadFormInputName()])) : \r\n\t\t\t{\r\n\t\t\t\t$this->setImageUploadMethodHandler(FILE_UPLOAD_V2::FILE_UPLOAD_V2_UPLOAD_TYPE_FORM);\r\n\t\t\t\tbreak;\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d1a12f9c00263db79eab9ea63d7674ed", "score": "0.4628421", "text": "public static function SET_JSON($data)\n\t{\n\t\tself::$config['json'] = $data;\n\n\t\treturn self::$thiss;\n\t}", "title": "" }, { "docid": "1e24f4a8f16eaa4a8abb560cf5f06562", "score": "0.46275076", "text": "public function getExtension()\n {\n return 'json';\n }", "title": "" }, { "docid": "7d46ecbcebc06f76a6f118cc24b75624", "score": "0.46186897", "text": "private function manipulateComposerJsonWithAllowAutoInstall(): void\n {\n /** @var \\Composer\\Json\\JsonFile $json */\n /** @var \\Composer\\Json\\JsonManipulator $manipulator */\n [$json, $manipulator] = Util::getComposerJsonFileAndManipulator();\n\n $manipulator->addSubNode('extra', 'automatic.allow-auto-install', true);\n\n \\file_put_contents($json->getPath(), $manipulator->getContents());\n }", "title": "" }, { "docid": "f328e7ec0b7926291418ed144876a46c", "score": "0.46111798", "text": "public function isJson() {\n return str_contains($this->header('Content-Type'), '/json');\n }", "title": "" }, { "docid": "000afad45becb361fcbdac8975adf9da", "score": "0.46086815", "text": "public function setFileUrl($url) {\n curl_setopt($this->ch, CURLOPT_URL, $url);\n curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, 1);\n }", "title": "" }, { "docid": "4c8c1c8d4d80c71fe525e6ef3960e929", "score": "0.46038014", "text": "public function isJson()\n {\n return mb_strpos($_SERVER['CONTENT_TYPE'], 'json') !== false;\n }", "title": "" }, { "docid": "74579a8b2f88d2100c5d56316140ce13", "score": "0.45972174", "text": "protected function setExcelJson($jsonPath){\n $json = file_get_contents($jsonPath);\n\n if ($json) {\n $this->excelJson = json_decode($json, true);\n } else {\n die(\"Don't open json file\");\n }\n }", "title": "" }, { "docid": "ff9b387ef0354cb02e511c90e4f30f29", "score": "0.4595622", "text": "public function allowedToServe() {\r\n return $this->allow_real_file;\r\n }", "title": "" }, { "docid": "9706c81d85f7f8286fb60369edf04712", "score": "0.4593753", "text": "private function store()\n {\n $settings = [];\n foreach ($this->settings as $key => $value) {\n $settings[$key] = serialize($value);\n }\n $this->files->put($this->filepath, json_encode($settings));\n }", "title": "" }, { "docid": "5b1239c6e9d3a98e770d902d0a47587a", "score": "0.45860544", "text": "static public function setting_mediafile_downloadable() {\n return variable_get('mediamosa_ck_mediafile_downloadable', TRUE);\n }", "title": "" }, { "docid": "67e59964e4050036294a20df6c4c10ec", "score": "0.45732796", "text": "public function enableFileUpload()\n {\n $this->encoding = self::ENC_MULTI;\n if (strtoupper($this->method) == self::METHOD_GET) {\n $this->method = self::METHOD_POST;\n }\n return $this;\n }", "title": "" }, { "docid": "604d6c4d2b322a3ccca89a083d75dd2d", "score": "0.45702413", "text": "public function setAttachment(bool $attachment)\n {\n $this->attachment = $attachment;\n }", "title": "" }, { "docid": "96a545489934dd3826b835c38f716ac7", "score": "0.45644486", "text": "private function setDefaultOptions()\n {\n $this->setOptions([\n CURLOPT_SSL_VERIFYPEER => true,\n CURLOPT_HEADER => false,\n CURLOPT_RETURNTRANSFER => true, //=> return response instead of boolean\n CURLOPT_FAILONERROR => false //=> also return an error when there is a http error >= 400\n ]);\n }", "title": "" }, { "docid": "9d0ebb0b98b64d3777b130e0aa51958c", "score": "0.4561586", "text": "private function set_cached_file( $file, $json ) {\n $cache_file = dirname(__FILE__).'/cache/'.$file;\n\n if ( $json && is_writable( dirname( $cache_file ) ) ) {\n $cache_static = fopen( $cache_file, 'w' );\n fwrite( $cache_static, $json );\n fclose( $cache_static );\n }\n }", "title": "" }, { "docid": "f4a82e45663f08fca787dacc11570aba", "score": "0.4546815", "text": "private function write_JSON( ) {\n $json = json_encode( $this );\n $FILE = fopen( $this->article_path( ), 'w+' );\n fwrite( $FILE, $json );\n fclose( $FILE );\n }", "title": "" }, { "docid": "63395c6ac31c6c5380b945c96e04c851", "score": "0.45441175", "text": "public function isLocalFileRequired($jobType);", "title": "" }, { "docid": "7de3075e1b80e248360460f7ca010cc7", "score": "0.45403278", "text": "public function isJson()\n {\n if (isset($this->isJson)) {\n return $this->isJson;\n }\n\n // check based on content header\n if (strpos($this->getHeader('content_type'), 'application/json') !== false) {\n $this->isJson = true;\n } else {\n // check based on content\n json_decode($this->content);\n $this->isJson = (json_last_error() == JSON_ERROR_NONE);\n }\n\n return $this->isJson;\n }", "title": "" }, { "docid": "598c77c1fbc0d5d3578c4099d32cfdbb", "score": "0.4538209", "text": "function process_json_mode ($params = array()) {\n\n return array_key_exists('json', $params);\n\n }", "title": "" }, { "docid": "cc0c9b3224d8c4d6b91b4a6435191e13", "score": "0.4534294", "text": "#[@arg(position= 1)]\n public function setFile($remote) {\n $this->remote= $remote;\n $this->local= new FileOutputStream(new File(basename($remote)));\n }", "title": "" }, { "docid": "0e2190a6f9739dbda6687e4915ecf6f4", "score": "0.45333683", "text": "public function getJsonRequestBehaviour() {\n return $this->jsonRequestBehaviour;\t\n }", "title": "" }, { "docid": "3af10e8ad0b4c6bfcf2bdb1c50970009", "score": "0.45316994", "text": "protected function get_extension() {\n\t\treturn 'json';\n\t}", "title": "" }, { "docid": "656d540e19e9e9b45fdc912a90b2e47e", "score": "0.45268863", "text": "public static function tojson($file = NULL,$array=NULL) {\n $_array = ($array == NULL)? self::$strings:$array;\n if($file == NULL) return json_encode($_array);\n if (file_put_contents($file, json_encode($_array))) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "4dc2d75d933bb0e78fdc71375723385e", "score": "0.45227355", "text": "public function setSetJson($var)\n {\n GPBUtil::checkString($var, False);\n $this->set_json = $var;\n\n return $this;\n }", "title": "" }, { "docid": "c4062d2be424fccf109756d8f63c8ff0", "score": "0.45124832", "text": "public function foption($file='member',$opt='')\n\t{\n\t\t$file_path = $this->ci->jsonpath.$file.\".json\";\n\t\tif (file_exists($file_path)) {\n\t\t\t$json = $this->ci->dynamic->fileContent($file);\n\t\t\t$result = getId($json,$opt);\n\t\t\tif ($result['status'] == 1) {\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c6b8f710743901adee07746fc4f435c5", "score": "0.4511627", "text": "protected function canReadJsonConfig()\n\t{\n\t\t$config = Factory::getConfiguration();\n\n\t\t$hasJsonConfig = false;\n\t\t$jsonConfig = trim($config->get('engine.postproc.googlestoragejson.jsoncreds', ''));\n\n\t\tif (!empty($jsonConfig))\n\t\t{\n\t\t\t$hasJsonConfig = true;\n\t\t\t$this->config = @json_decode($jsonConfig, true);\n\t\t}\n\n\t\tif (empty($this->config))\n\t\t{\n\t\t\t$hasJsonConfig = false;\n\t\t}\n\n\t\tif ($hasJsonConfig && (\n\t\t\t\t!isset($this->config['type']) ||\n\t\t\t\t!isset($this->config['project_id']) ||\n\t\t\t\t!isset($this->config['private_key']) ||\n\t\t\t\t!isset($this->config['client_email'])\n\t\t\t)\n\t\t)\n\t\t{\n\t\t\t$hasJsonConfig = false;\n\t\t}\n\n\t\tif ($hasJsonConfig && (\n\t\t\t\t($this->config['type'] != 'service_account') ||\n\t\t\t\t(empty($this->config['project_id'])) ||\n\t\t\t\t(empty($this->config['private_key'])) ||\n\t\t\t\t(empty($this->config['client_email']))\n\t\t\t)\n\t\t)\n\t\t{\n\t\t\t$hasJsonConfig = false;\n\t\t}\n\n\t\tif (!$hasJsonConfig)\n\t\t{\n\t\t\t$this->config = array();\n\t\t\t$this->setWarning('You have not provided a valid Google Cloud JSON configuration (googlestorage.json) in the configuration page. As a result I cannot upload anything to Google Storage. Please fix this issue and try backing up again.');\n\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c00f4bd073ac2f17babb0660d1f39681", "score": "0.4508165", "text": "public function set_file_list( $json_list ) {\n\t\t$new_list = json_decode( stripslashes( $json_list ), true );\n\t\tforeach ( $new_list as $fl ) {\n\t\t\tlist ( $file, $state ) = $fl;\n\t\t\tif ( $state == self::PARTIAL ) {\n\t\t\t\t$this->add_to_partial( $file );\n\t\t\t\t$this->remove_from_excluded( $file );\n\t\t\t} else if ( $state == self::EXCLUDED) {\n\t\t\t\t$this->add_to_excluded( $file );\n\t\t\t\t$this->remove_from_partial( $file );\n\t\t\t} else {\n\t\t\t\t$this->remove_from_excluded( $file );\n\t\t\t\t$this->remove_from_partial( $file );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5bc4cb70b9a2a78d9ba0d54fa72b2088", "score": "0.45035788", "text": "public function isJson()\n\t{\n\t\treturn $this->_json;\n\t}", "title": "" }, { "docid": "c868b590a8cfd43e7b8fc6a48c31360d", "score": "0.449464", "text": "function formToJSON(array $post, $JSONfileName) {\n $fileManager = new \\Illuminate\\Filesystem\\Filesystem();\n $result = array();\n //find out if the json file exists\n if (!file_exists($JSONfileName)) { $return[0] = false; $return[1] = \"File does not exist!\"; }\n //now lets transform our post array to JSON format\n $stringJSON = json_encode($post);\n //lets rewrite that file, with this new json string\n if (!$fileManager->put($JSONfileName, $stringJSON))\n { \n $result[0] = false;\n return $result; \n }\n else { \n $result[0] = true;\n $result[1] = $stringJSON;\n return $result; \n } \n}", "title": "" }, { "docid": "5b4e76dfc19ceba453684c4c27a71548", "score": "0.44907615", "text": "function setJsonHeader(){\n\theader(\"Expires: Mon, 26 Jul 1997 05:00:00 GMT\" );\n\theader(\"Last-Modified: \" . gmdate( \"D, d M Y H:i:s\" ) . \"GMT\" );\n\theader(\"Cache-Control: no-cache, must-revalidate\" );\n\theader(\"Pragma: no-cache\" );\n\theader(\"Content-type: application/json\");\n}", "title": "" }, { "docid": "ffad49c0427e9f8aeab05b9cb6507c16", "score": "0.4490073", "text": "public function getFile_JSON()\n {\n return $this->file_JSON;\n }", "title": "" }, { "docid": "615ac51841a16d5539e92bf504edfb16", "score": "0.44737938", "text": "private function sendJsonHeaders()\n\t{\n\t\theader(\"Content-Type: application/json\");\n\t\theader(\"Cache-Control: no-store\");\n\t}", "title": "" }, { "docid": "13bb3fa7a1581c67d4f0850846160d00", "score": "0.44717646", "text": "public function setNoSaveCache(){\n $this->messages[] = \"setNoSaveCache() called\";\n $this->updateCacheFile = false;\n }", "title": "" }, { "docid": "52f5b25032a49b919716d766da9b0ed9", "score": "0.44705835", "text": "public function options($url, array $headers = array(), $datas = array(), array $files = array());", "title": "" }, { "docid": "6298f41f97274bb7613a92348eac8d01", "score": "0.44704604", "text": "public function isJson()\n {\n }", "title": "" }, { "docid": "f019db8e7b41dacf1e3607784456e5df", "score": "0.44697794", "text": "function setUserToData($batch_id, $dir, $userType){\n $jsonFile = getJSONFile($batch_id,$dir); \n $userData = getData($batch_id, $dir);\n $lastRunCount = getLastRun();\n error_log('run count userdata ' . $lastRunCount);\n $userData[0]['operation_id'] = $userType;\n $userData[0]['run_no'] = $lastRunCount; //add the run_no key to json array.\n $userTypeValue = json_encode($userData);\n $json = realpath(\"downloads/\") . '/' . $dir . '/json' . '/' . $batch_id . '/' .$jsonFile;\n file_put_contents($json, $userTypeValue);\n error_log($userTypeValue);\n error_log('User / run no. has been set to json data');\n}", "title": "" }, { "docid": "1ce6aa1f6dabce84437b2f79ba8d123f", "score": "0.4469283", "text": "public static function setContentType() {\n\t\t$format = \\OC_API::requestedFormat();\n\t\tif ($format === 'xml') {\n\t\t\theader('Content-type: text/xml; charset=UTF-8');\n\t\t\treturn;\n\t\t}\n\n\t\tif ($format === 'json') {\n\t\t\theader('Content-Type: application/json; charset=utf-8');\n\t\t\treturn;\n\t\t}\n\n\t\theader('Content-Type: application/octet-stream; charset=utf-8');\n\t}", "title": "" }, { "docid": "da4d31254be42253b0e21368b677a260", "score": "0.44673526", "text": "private static function jsonRequiresController(): bool\n {\n return true;\n }", "title": "" }, { "docid": "618d20047be86a9f1127c7c95e6f99c7", "score": "0.44663838", "text": "public function jsonSerialize()\n\t{\n\t\treturn $this->files;\n\t}", "title": "" }, { "docid": "da003b44413c7a948b790612b86cda70", "score": "0.44580054", "text": "public function useUploader()\n {\n return filter_var($this->_useUploader, FILTER_VALIDATE_BOOLEAN);\n }", "title": "" }, { "docid": "55ad3879eebfab4f8fbb4426a724c8f6", "score": "0.4454107", "text": "private function setCurlOptions() {\n\n\t\t# Get default curl options\n\t\t$curlOptions = $this->getDefaultCurlOptions();\n\n\t\t# Set method of curl request\n\t\t$curlOptions[CURLOPT_CUSTOMREQUEST] = strtoupper($this->arrData['method']);\n\n\t\tif(isset($this->arrData['inputdata']['files'])) {\n\n\t\t\t# Get files from api request\n\t\t\t$files = $this->arrData['inputdata']['files'];\n\n\t\t\t# If there are files to be uploaded, add these to curl post fields\n\t\t\tif(count($files)){\n\t\t\t\t$i = 0;\n\t\t\t\t$arrFiles = array();\n\t\t\t\tforeach($files as $file){\n\t\t\t\t\t$finfo = finfo_open(FILEINFO_MIME_TYPE);\n\t\t\t\t\t$postFieldOption = $this->getCurlValue($file['tmp_name'], finfo_file($finfo,$file['tmp_name']), $file['name']);\n\t\t\t\t\t$arrFiles['file'.$i] = $postFieldOption;//'@'.$file['tmp_name'];\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\t$curlOptions[CURLOPT_POSTFIELDS] = $arrFiles;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif(count($this->arrData['inputdata'])){\n\t\t\t\t$curlOptions[CURLOPT_POSTFIELDS] = json_encode($this->arrData['inputdata']);\n\t\t\t}\n\t\t}\n\n\t\t# Return curl options\n\t\treturn $curlOptions;\n\t}", "title": "" }, { "docid": "e555e8bf4b48ab525a10fe26a743063b", "score": "0.4442018", "text": "public function setStreamBuffer($stream = true)\n {\n $this->stream_buffer = (bool) $stream;\n }", "title": "" }, { "docid": "082173426fcc187d49b04f671487abee", "score": "0.44403613", "text": "public function getUseCustomStorage()\n {\n return true;\n }", "title": "" }, { "docid": "854dd977d3eebd32fa1991f83a9cb678", "score": "0.44365126", "text": "public function before_store($file) { return true; }", "title": "" }, { "docid": "5a0075ef37e3fd7d8e45d8620fe11028", "score": "0.4433751", "text": "private function constructFilePath()\r\n {\r\n $this->filePath = ROOT_PATH . \"/\" . $this->nameOfJson . \".json\";\r\n }", "title": "" }, { "docid": "cd23a9e3d9bbfc418262becf0bafe0c6", "score": "0.4431591", "text": "public function setContentType($type = 'json')\n {\n $this->contentType = $type;\n }", "title": "" }, { "docid": "d5648a70d0dab8e260b4f56a9e481d78", "score": "0.44269323", "text": "public function isFile() { return false; }", "title": "" }, { "docid": "3c42b092e296a914967a9fd3843a3619", "score": "0.4424232", "text": "public function setAutoContentLength($auto);", "title": "" }, { "docid": "dd0c7edff59714f936cc6b154c73b2af", "score": "0.4415777", "text": "public function setRequest()\n {\n $this->request = new JsonServer_Request();\n }", "title": "" }, { "docid": "21647a9fb4b1ad6478326667c7935de9", "score": "0.44101286", "text": "public function contentTypeJson()\n {\n $this->code=self::JSON;\n }", "title": "" }, { "docid": "cded6ef859acb0323b7e6a75d860b95a", "score": "0.4408471", "text": "public function setAllowRecording(?bool $value): void {\n $this->getBackingStore()->set('allowRecording', $value);\n }", "title": "" }, { "docid": "42d8f6521d34e5edf3d0f3140bf81512", "score": "0.4402562", "text": "public function wantsJson(): bool\n {\n return isset($_SERVER['HTTP_X_REQUESTED_WITH']) && !empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest';\n }", "title": "" }, { "docid": "69c9c9e8e7f0ad458cc2b146f36ea088", "score": "0.4401205", "text": "public static function isJson() {\n \n }", "title": "" }, { "docid": "69c9c9e8e7f0ad458cc2b146f36ea088", "score": "0.4401205", "text": "public static function isJson() {\n \n }", "title": "" }, { "docid": "0f05f29ecbd503a4b1713f5e1101adde", "score": "0.43968076", "text": "public function is_json_last_error_enabled(){\n\t\t\treturn $this->json_errors_enabled;\n\t\t}", "title": "" }, { "docid": "a8363267a78f57cb8fdf03fdd0d4f60a", "score": "0.43954968", "text": "public function setJson($key, $value = '') {\r\n\t\t$this->json[$key] = $value;\r\n\t}", "title": "" }, { "docid": "0235301e81e34f69c0dc6798bb39534e", "score": "0.43949357", "text": "protected function checkIfFileType()\n {\n if ($this->getOption('type') === 'file') {\n $this->parent->setFormOption('files', true);\n }\n }", "title": "" }, { "docid": "938024d527591bdb3d45289496617183", "score": "0.43935737", "text": "public function isAutoUpload() {\n return $this->__autoUpload;\n }", "title": "" } ]
2272f29b49fc23229b8d5aa2202f57ae
Add days to a BS date and return the corresponding date (BS)
[ { "docid": "0474015c7357eb694a15471c00336a38", "score": "0.69052345", "text": "protected function addBsDays($bs_date,$num_days)\n\t{\n\t\t$x=explode('/',$bs_date);\n\t\t$this->bs_year=(int)($x[2]);\n\t\t$this->bs_month=(int)($x[0]);\n\t\t$this->bs_days=(int)($x[1]);\n\t\t$this->bs_days+=$num_days;\n\n\t\twhile($this->bs_days>$this->bs[$this->bs_year][$this->bs_month-1])\n\t\t{\n\t\t\t$this->bs_days-=$this->bs[$this->bs_year][$this->bs_month-1];\n\t\t\t$this->bs_month++;\n\t\t\tif($this->bs_month>12)\n\t\t\t{\n\t\t\t\t$this->bs_month=1;\n\t\t\t\t$this->bs_year++;\n\t\t\t}\n\t\t}\n\t\treturn $this->bs_year.'-'.$this->bs_month.'-'.$this->bs_days;\n\t}", "title": "" } ]
[ { "docid": "5f61e7bf17a0d365c53e5a8853f4cd88", "score": "0.67483413", "text": "function plusdays_date($bdate,$days)\n\n\t{\n\n\t\t//$cdate\t\t\t=\tconvertDate($arrayDate['str_departtime']);\n\n\t\t$miamiTime \t\t=\tstrtotime($bdate);\n\n\t\t$miamiDay\t\t=\tdate(\"D\", $miamiTime);\n\n\t\t//cutoff date fot miami\n\n\t\t$cutoffTime \t=\tdate($miamiTime)+ ($days)*24*60*60;\n\n\t\t$cutoffDay\t\t=\tdate(\"D\", $cutoffTime);\n\n\t\t$cutoffDay = date(\"Y-m-d\",$cutoffTime);\t\t\n\n\t\treturn $cutoffDay;\n\n\t}", "title": "" }, { "docid": "75fdeab696d6b1372727a834e5aa9d11", "score": "0.63657093", "text": "function adddays($numdays)\n\t{\n\t\t$dt = $this->copy();\n\t\t$dt->fromjul($dt->jday + $numdays);\n\t\treturn $dt;\n\t}", "title": "" }, { "docid": "d224e9015c1457084b25a84f9839a676", "score": "0.6289445", "text": "function add_days($date, $days){\n if($days >=0){\n $date ->add(new DateInterval('P'.$days.'D'));\n } else{\n $date ->sub(new DateInterval('P'.-$days.'D'));\n }\n return $date;\n}", "title": "" }, { "docid": "3270baad5bcda9a474d3e313fd9e6177", "score": "0.62820953", "text": "function date_add_days($date, $days) {\n $new_date = clone $date;\n date_add($new_date, date_interval_create_from_date_string(\"$days day\"));\n return $new_date;\n}", "title": "" }, { "docid": "f70626a5bf4109dc096ff64e5650d8bf", "score": "0.6267123", "text": "public static function addBusinessDays($date, $numOfDays) {\n $direction = (($numOfDays < 0) ? '-' : '+');\n $date = date('Y-m-d', strtotime($direction . abs($numOfDays) . 'days', strtotime($date)));\n\n while (self::isHoliday($date) === TRUE) {\n $date = date('Y-m-d', strtotime($direction . '1days', strtotime($date)));\n }\n return strtotime($date);\n }", "title": "" }, { "docid": "1901de5737484d964daf8a94bd3880e2", "score": "0.62126327", "text": "function DateAdd($v,$d=null , $f=\"m/d/Y\"){\t\n $d=($d?$d:date(\"Y-m-d\")); \n return date($f,strtotime($v.\" days\",strtotime($d))); \n}", "title": "" }, { "docid": "1901de5737484d964daf8a94bd3880e2", "score": "0.62126327", "text": "function DateAdd($v,$d=null , $f=\"m/d/Y\"){\t\n $d=($d?$d:date(\"Y-m-d\")); \n return date($f,strtotime($v.\" days\",strtotime($d))); \n}", "title": "" }, { "docid": "f43367fe52a44ce197297dbb43a9b0ce", "score": "0.6206443", "text": "function addDayswithdate($date, $days) {\n $date = strtotime(\"+\" . $days . \" days\", strtotime($date));\n return date(\"Y-m-d\", $date);\n }", "title": "" }, { "docid": "f711a28c9cf0075de6e2ac7dbb31b505", "score": "0.61800086", "text": "function addDate($date,$ndays) {\n\t\tlist($year,$month,$day)=explode(\"-\",$date);\n\n\t\t$new = mktime(0,0,0, $month,$day,$year) + $ndays * 24 * 60 * 60;\n\t\t$newdate = date(\"Y-m-d\",$new);\n\n\t\treturn ($newdate);\n\t}", "title": "" }, { "docid": "9d4bbc485e18bb4ec0c8dce09178ad5d", "score": "0.61558616", "text": "function addOneDay($date) {\n $exp_date = explode('-', $date);\n $enddate = date('Y-m-d',mktime(0,0,0,$exp_date[1],$exp_date[2] + 1,\n $exp_date[0]));\n return $enddate;\n}", "title": "" }, { "docid": "7a4ae7619a37821dfcc93eca92db70af", "score": "0.6145769", "text": "public function addDay( $n )\n\t{\n\t\t$ts = strtotime(\"+$n day\", $this->getTimestamp());\n\t\treturn new Piwik_Date( $ts );\n\t}", "title": "" }, { "docid": "16cc06824561fb4696a3e1eb5c9d4017", "score": "0.6087574", "text": "function addDays($date, $format, $days){\n return date($format,strtotime($date.\"+\".$days.\" days\"));\n}", "title": "" }, { "docid": "c6b642c3f5c0e522e6cd3543cef3b08c", "score": "0.60621333", "text": "function addOneDay($date)\n{\n $date->modify('+1 day');\n}", "title": "" }, { "docid": "7105f75e93bdf51032f0bf3de4be1cba", "score": "0.6052455", "text": "static function addDayToDate($_zStrDate,$_iIntDays)\t{\n\t\tlist($iYear, $iMonth, $iDay)=explode(\"-\", $_zStrDate);\n\t\t$zMkDate = mktime(0,0,0, $iMonth, $iDay + $_iIntDays, $iYear);\n\t\t$zNextDate = date(\"Y-m-d\", $zMkDate);\n\t\treturn $zNextDate;\n\t}", "title": "" }, { "docid": "679bbd18610ea86512fbac796c367d22", "score": "0.6043017", "text": "function addDayInDate ($nameInterval = 'day', $nbInterval = '1', $start = '') {\n if (empty($date)) {\n $start = date('Y-m-d', time());\n }\n \n if (empty($nameInterval)) {\n $nameInterval = 'day';\n }\n if (empty($nbInterval)) {\n $nameInterval = 1;\n }\n $date = new \\DateTime($start);\n \n $date = $date->modify('+' . $nbInterval . ' ' . $nameInterval)->format('Y-m-d');\n return $date;\n}", "title": "" }, { "docid": "d21c2e5aac9fe95318dca6fc96d490a0", "score": "0.60375243", "text": "function nextDs($datein) {\n $DayOutdate = new DateTime($datein);\n $DayOutdate->modify('+1 day');\n $DayOutdate = nextWD($DayOutdate);\n $DayOuts = $DayOutdate->format(\"D j M, Y\");\n return $DayOuts;\n}", "title": "" }, { "docid": "8e7e7f80e915507249b73f832cbc5338", "score": "0.60279435", "text": "function addOneDay($_date){\r\n\t\t$timeStamp = StrToTime($_date);\r\n\t\t$a = StrToTime('+1 days', $timeStamp);\r\n\t\t$nextday=date('Y-m-d', $a);\t\t\r\n\t\treturn $nextday;\t\r\n\t}", "title": "" }, { "docid": "8be2be9c6c7cce0e421576924c8697ff", "score": "0.60255146", "text": "function add_days($date, $days=0) {\n\n if( !$date )\n return NULL;\n\n $date = date('d-m-Y',date_convert_timestamp($date) );\n $date = new DateTime($date);\n\n if( $days != 0 ){\n $date->modify(\"+$days day\");\n }\n\n //return date($ci->dateformatPHP,strtotime($date)+$days*360*24);\n global $ci;\n return $date->format($ci->dateformatPHP);\n}", "title": "" }, { "docid": "d8081d52a6f487986f87308e33a39aec", "score": "0.60226357", "text": "function add_1_day($date_var) {\n $stop_date = date('Y-m-d', strtotime($date_var . ' +1 day'));\n return $stop_date;\n }", "title": "" }, { "docid": "2128e0a19a124c31d5e79231dcaf3dfe", "score": "0.59713936", "text": "public function dateAddition($date, $days, $format = 'Y-m-d')\n {\n $date = date($date);\n $newdate = strtotime ( $days . ' days' , strtotime ( $date ) ) ;\n $newdate = date ( $format , $newdate );\n return $newdate;\n }", "title": "" }, { "docid": "c7c94c11e03c4b51f29042f3595846d4", "score": "0.58589906", "text": "function formatDate($addDay){\r $date = date_create('now');\r date_add($date, date_interval_create_from_date_string($addDay.' days'));\r echo date_format($date, 'd/m');\r }", "title": "" }, { "docid": "56d0ee10714f6e288cfb3c5c73d7f551", "score": "0.5852669", "text": "public function add_date_days($days)\r\n\t{\r\n\t\treturn date('Y-m-d', strtotime(\"+ {$days} day\"));\r\n\t}", "title": "" }, { "docid": "4897a3a4fa4dec8b344dbbad994cf55c", "score": "0.5820265", "text": "function nextD($datein) {\n $DayOutdate = new DateTime($datein);\n $DayOutdate->modify('+1 day');\n $DayOutdate = nextWD($DayOutdate);\n $DayOut = $DayOutdate->format(\"Y-m-d\");\n return $DayOut;\n}", "title": "" }, { "docid": "8b08bb6046b9e1637b4b9bbf87cd50ed", "score": "0.58086663", "text": "public function getBDate()\n {\n return $this->bDate;\n }", "title": "" }, { "docid": "1e7378dc30142b46f82e9a208782767a", "score": "0.5806529", "text": "function incrementDate($date, $days) {\n $dt = Date::parse($date);\n\n return $dt->addDays($days)->toDateTimeString();\n}", "title": "" }, { "docid": "d47675cf623a2b0d459ee029af94d345", "score": "0.57487565", "text": "public function addDay($day = 1) {\n\t\treturn $this->addX($day, 'day');\n\t}", "title": "" }, { "docid": "58d9313b47ba4cfa2cb8fe7d63f32d41", "score": "0.5720503", "text": "public static function addDaysToDate($date, $numDays) {\n\t\t$date = Data::convertDateToDb($date);\n\t\t$newdate = strtotime(\"+$numDays day\", strtotime($date));\n\t\treturn date('d.m.Y', $newdate);\n\t}", "title": "" }, { "docid": "5aac230c11e279fbba6a0a6bd91e9aaa", "score": "0.57038814", "text": "public function add_date_days_from($data, $days) \r\n\t{\r\n\t\treturn date('Y-m-d', strtotime(\"+ {$days} day\", strtotime($date)));\r\n\t}", "title": "" }, { "docid": "24424efa60b0d03aaa9e5ee6203a3c8b", "score": "0.5701039", "text": "function addDays( $n ) {\n\t\t$this->setDate( $this->getTime() + 60 * 60 * 24 * $n, DATE_FORMAT_UNIXTIME);\n\t}", "title": "" }, { "docid": "522ecf2e029d56a5103c239dce576402", "score": "0.5660262", "text": "function date_sum($date, $days = 0, $months = 0, $years = 0)\r\n{\r\n\tlist($year, $month, $day) = explode('-', $date);\r\n\treturn date('Y-m-d', mktime(0, 0, 0, $month + $months, $day + $days, $year + $years));\r\n}", "title": "" }, { "docid": "f45216296b3c8a568a69a7d3724c1d4a", "score": "0.5659108", "text": "function getBatchPaymentDate(){\n $paymentDate = date('Y-m-d');\n $currDateTs=strtotime($paymentDate);\n $offsetDays=0;\n if($this->cuttoffMissed===true){\n $offsetDays++;\n }\n $paymentDate = date('Y-m-d',strtotime(\"+\".$offsetDays.\" day\",$currDateTs));\n while ($this->isHoliday($paymentDate)==true) {\n $offsetDays++;\n $paymentDate = date('Y-m-d',strtotime(\"+\".$offsetDays.\" day\",$currDateTs));\n }\n \n\n return $paymentDate;\n }", "title": "" }, { "docid": "8bfa94ab395ac93b9389f10cccbf7736", "score": "0.5658757", "text": "function trialProductsCalcDate($relid) {\n\n // get free period value\n $days = trialProductsGetFreePeriod($relid);\n\n $date = new \\DateTime();\n\n // calc next duedate\n $date->modify('+' . $days . ' days');\n\n $date = $date->format('Y-m-d');\n\n return $date;\n\n}", "title": "" }, { "docid": "1c6799c754eb69390052589aefadbfd3", "score": "0.5652744", "text": "public function get_business_date($startdate,$diffday,$item_id) {\n // Select calendar for check bussiness day\n $this->db->select('item_id, c.calendar_id as calendar_id',FALSE);\n $this->db->from('sb_items i');\n $this->db->join('sb_vendor_items vi','vi.vendor_item_id=i.vendor_item_id');\n $this->db->join(\"vendors v\",\"v.vendor_id=vi.vendor_item_vendor\");\n $this->db->join(\"calendars c\",\"c.calendar_id=v.calendar_id\");\n $this->db->where('i.item_id',$item_id);\n $cal = $this->db->get()->row_array();\n $calendar_id=($cal['calendar_id']==NULL ? '0' : $cal['calendar_id']);\n\n $start=date(\"Y-m-d\",$startdate);\n $last_date=strtotime(date(\"Y-m-d\", strtotime($start)) . \" +365 days\");\n $this->db->select('line_date as date',FALSE);\n $this->db->from(\"calendar_lines\");\n $this->db->where('calendar_id',$calendar_id);\n $this->db->where(\"line_date between '\".strtotime($start).\"' and '\".$last_date.\"'\");\n $cal=$this->db->get()->result_array();\n $calend=array();\n foreach ($cal as $row) {\n array_push($calend, $row['date']);\n }\n $dat=strtotime(date(\"Y-m-d\", strtotime($start)));\n $i=1;$cnt=1;\n while ($i <= $diffday) {\n $dat=strtotime(date(\"Y-m-d\", strtotime($start)) . \" +\".$cnt.\" days\");\n $day=$dat;\n if (date('w',$dat)!=0 && date('w',$dat)!=6 && !in_array($day, $calend)) {\n $i++;\n }\n $cnt++;\n }\n return $dat;\n }", "title": "" }, { "docid": "e799e48d0147a86d31408d87e44cea7e", "score": "0.5645836", "text": "public function addDays($value) \r\n {\r\n $this->addDate($this->year, $this->month, $this->day + $value);\r\n return $this;\r\n }", "title": "" }, { "docid": "718d06c6cdef734187e6e52651b02b34", "score": "0.56171274", "text": "public function add_day($date, $adjustment)\n {\n $new_date = new DateTime($date);\n\n // ADJUSTMENT DAY\n $new_date->modify($adjustment);\n\n // RETURN THE NEW DATE \n return $new_date->format('Y-m-d H:i:s');\n }", "title": "" }, { "docid": "bc17e3bcf5d09f9cc789d0c560120353", "score": "0.55958676", "text": "function add_to_future_day($how_many_day)\n{\n $date = strtotime(date('Y-m-d'));\n $date = strtotime($how_many_day, $date);\n return date('Y-m-d', $date);\n}", "title": "" }, { "docid": "bc17e3bcf5d09f9cc789d0c560120353", "score": "0.55958676", "text": "function add_to_future_day($how_many_day)\n{\n $date = strtotime(date('Y-m-d'));\n $date = strtotime($how_many_day, $date);\n return date('Y-m-d', $date);\n}", "title": "" }, { "docid": "f66830bbfae0fa82410bc953ff48403d", "score": "0.556754", "text": "private function getNextWorkingDate($currentdate){\n\n\t$newdate = date('Y-m-d',strtotime($currentdate)); //get todays date\n $bankholidayArray = explode(\",\", $this->bankHolidays); //get bank holiday as array\n\n foreach ($bankholidayArray as &$value) { //for every bank holiday\n if ($newdate === $value) { //if the next day is a bank holiday\n $newdate = date('Y-m-d', strtotime($value . ' +1 Weekday')); //look for next weekday after bank holiday, set it as delivery\n }\n }\n return $newdate;\n }", "title": "" }, { "docid": "fa28a6eb2b593c1a1c2b7d39d7f3f35d", "score": "0.5563053", "text": "function GetDay($addDays)\n{\n\t$day = mktime(0, 0, 0, date(\"m\") , date(\"d\")+$addDays, date(\"Y\"));\n\t\n\treturn $day;\n}", "title": "" }, { "docid": "8e393517c2cbdd630e22406ff3985d60", "score": "0.55611634", "text": "function fetch_date_fromnow($days)\r\n\t{\r\n return date('Y-m-d', (TIMESTAMPNOW + ($days * 86400)));\r\n }", "title": "" }, { "docid": "c01c32601c30b72932045d57ccc2f01e", "score": "0.55288196", "text": "public static function addDays($date, $n){\r\n\r\n\t\tif($n < 0){\r\n\r\n\t\t\ttrigger_error('Dateutils::addDays Error: An unsigned integer is expected', E_USER_WARNING);\r\n\r\n\t\t\treturn '';\r\n\r\n\t\t}else{\r\n\r\n\t\t\treturn date('Y-m-d', strtotime(date('Y-m-d', strtotime($date)).' +'.$n.' day'));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6f89e9ab12da4611a4adcbda41d8bcfa", "score": "0.5504935", "text": "public static function addDaysToDate(\n string $date,\n int $days,\n string $responseFormat = DateFormats::DATE_BR\n ): string\n {\n return self::operationTimeToDate($date, $days, 'add', TypesTime::DAY, $responseFormat);\n }", "title": "" }, { "docid": "a2559a2b821a773d8407ed5070dca4d2", "score": "0.54896206", "text": "public function addDay($value = 1)\n {\n return $this->addDays($value);\n }", "title": "" }, { "docid": "970025889a201798cf044a7d75413d75", "score": "0.5451254", "text": "public function calculateDOB()\r\n\t{\r\n\t}", "title": "" }, { "docid": "e35ba13e05636422eb061f6c41d3acf0", "score": "0.5450525", "text": "protected function addAdDays($ad_date,$num_days)\n\t{\n\t\treturn date('Y-m-d',strtotime($this->slashDateToDashDate($ad_date) . ' + '. $num_days.' days'));\n\t\t\n\t}", "title": "" }, { "docid": "7ae1db4bf5523c64a7eace6ebde4380c", "score": "0.54320407", "text": "function date_add_from_str($date,$str)\r\n{\r\ndate_add($date,date_interval_create_from_date_string($str));\t\r\n/* Examples\r\n1 year + 10 mins + 23 secs\r\n10 days\r\n*/\r\n}", "title": "" }, { "docid": "b89589ad44fac20c6f5c78cd98ace499", "score": "0.540212", "text": "public function addDate($days = 0, $multipleCount = 1) {\n if ($multipleCount > 1) {\n $addDays = ($multipleCount - 1) * 7 + $days;\n } else {\n $addDays = $days;\n }\n /* Here start date added process */\n if (($days == 0) && ($multipleCount == 1)) {\n return ['day' => date('D'), 'date' => date('Y-m-d')];\n } else if (($days == 0) && ($multipleCount > 1)) {\n $days = ($multipleCount - 1) * 7;\n $todayDate = date('Y-m-d');\n $date = [\n 'day' => date('D', strtotime($todayDate . \"+\" . $days . \" days\")),\n 'date' => date('Y-m-d', strtotime($todayDate . \"+\" . $days . \" days\")),\n ];\n return $date;\n } else {\n $todayDate = date('Y-m-d');\n $date = [\n 'day' => date('D', strtotime($todayDate . \"+\" . $addDays . \" days\")),\n 'date' => date('Y-m-d', strtotime($todayDate . \"+\" . $addDays . \" days\")),\n ];\n return $date;\n }\n }", "title": "" }, { "docid": "7f1fd09e95aef97fe102b7d7ed8b76ae", "score": "0.5366623", "text": "function add_sub_days_months($start_date,$str_time_span){\n $next_date = new DateTime($start_date);\n //echo $next_date->format('Y-m-d'). \"<br />\";\n\n if (strchr($str_time_span,\"D\") ==\"D\"){\n $pos = strpos($str_time_span,\"D\");\n $num_days = substr($str_time_span,0,$pos);\n add_days($next_date,$num_days);\n ///echo $num_days . \"<br />\";\n //$next_date ->add(new DateInterval('P'.$num_days.'D'));\n //echo $next_date->format('Y-m-d');\n }elseif (strchr($str_time_span,\"M\") ==\"M\"){\n $pos = strpos($str_time_span,\"M\");\n $num_months = substr($str_time_span,0,$pos);\n //echo $num_months .\"<br />\";\n add_months($next_date, $num_months);\n //echo $next_date->format('Y-m-d');\n }else{\n echo \"Check format of para: str_next_payment\";\n return null;\n }\n return $next_date->format('Y-m-d');\n}", "title": "" }, { "docid": "7f6ed53cc9fef48658ea9c6e5bd46b38", "score": "0.5357789", "text": "function fn_cp_admin_checkout_modifications_get_planned_date($number_working_days, $company_id, $date = 0)\n{\n if (empty($date)) {\n $date = strtotime('now');\n }\n\n\n $added_days = 0;\n $i = 0;\n\n /* We need it?*/\n\n /*$first_day_analizator = new DayAnalizator($company_id, $date);\n $first_working_day = $first_day_analizator->isWorkDay();\n if ($first_working_day != 1) {\n $number_working_days ++;\n }*/\n \n while ($added_days <= $number_working_days) {\n //$checked_day = date('Ymd',strtotime(\"+ $i days\"));\n //$is_working_day = fn_cp_get_working_day($checked_day);\n\n $i++;\n\n $day_analizator = new DayAnalizator($company_id, $date + ($i * SECONDS_IN_DAY));\n $is_working_day = $day_analizator->isWorkDay(false);\n\n if ($is_working_day == 1) {\n $added_days++;\n\n }\n }\n\n $date = strtotime(\"+$i day\", $date);\n\n return $date;\n}", "title": "" }, { "docid": "7738dee211b61e2790a448d9802408e7", "score": "0.53504515", "text": "function convertDate($startDate, $dayOfTrip){\n\t\t\t$a = explode(\"-\", $startDate);\n\t\t\t//echo \" iter is \".$iter.\", a is \". $a[0].\" \".$a[1].\" \".$a[2].\", \";\n\t\t\t$newDate = date('Y-m-d', mktime(0, 0, 0, $a[1], $a[2]+$dayOfTrip, $a[0]));\n\t\t\t//echo \" NEW DATE IS: \".$newDate.\", \";\n\t\t\treturn $newDate;\n\t\t}", "title": "" }, { "docid": "93f138cdc37df242d1a48492da2c2343", "score": "0.5349635", "text": "public function testAddDays()\n {\n $this->assertEquals('2013-05-03', $this->date->addDays(2)->toDateString());\n }", "title": "" }, { "docid": "5a4c0bcf198a65cd862a245eca101390", "score": "0.5348106", "text": "function dateToBn($type)\n {\n return $day = $this->IntToBn(date('d'));\n }", "title": "" }, { "docid": "dad381bddec0966ec194e909f9315a83", "score": "0.53389966", "text": "public function Set_Pay_Date_Calc() { \n\t\t$this->pdc = new Pay_Date_Calc_3($this->holidays); \n\t\t$this->next_bus_day \t= date('m/d/Y', strtotime($this->pdc->Get_Business_Days_Forward(date('Y-m-d'), 1)));\n\t}", "title": "" }, { "docid": "e074e6ecf126f4101a65b913f80edeb9", "score": "0.5336552", "text": "public static function addDaysToday($days) {\r\n\t\t$timestamp = DateUtil::formatAsTimestamp(time());\r\n\t\t$date = explode(\" \", $timestamp);\r\n\t\t\r\n\t\t$today = explode(\"-\", $date[0]);\r\n\t\t$year = $today[0];\r\n\t\t$month = $today[1];\r\n\t\t$day = $today[2];\r\n\t\t\r\n\t\treturn date(\"Y-m-d\", (mktime(0, 0, 0, $month, $day + $days, $year)));\r\n\t}", "title": "" }, { "docid": "5df3f84cdbcc65fbc3bfaaaffdd1bdb0", "score": "0.53344905", "text": "private function populateDates(){\n\t\t\t$currentDate = $this->getDate();\n\t\t\t$day = date('N', strtotime($currentDate)); //Mon = 1 Sun = 7\n\n\t\t\t$this->dateArray[$day-1]=$currentDate;\n\n\n\n\t\t\tfor($i=0;$i<$day-1;$i++){\n\t\t\t\t$daysDiff = $day - $i-1;\n\t\t\t\t// Subtract Current Date and days Diff\n\t\t\t\t$newDate = date('Y-m-d',strtotime('-'.$daysDiff.'day', strtotime($currentDate)));\n\t\t\t\t$this->dateArray[$i] = $newDate;\n\t\t\t}\n\n\t\t\tfor($i = $day; $i<=6; $i++){\n\t\t\t\t$daysDiff = $i - $day + 1;\n\t\t\t\t// Add Current Date and days Diff\n\t\t\t\t$newDate = date('Y-m-d',strtotime('+'.$daysDiff.'day', strtotime($currentDate)));\n\t\t\t\t$this->dateArray[$i] = $newDate;\n\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "9e866254c72dec5c5809f916b7627cfd", "score": "0.53321743", "text": "function retornaDataAtualZendAdicionada($qtd_dias){\n return Zend_Date::now()->addDay($qtd_dias);\n}", "title": "" }, { "docid": "15a28f084203e41d41f5bb59eda71f79", "score": "0.53279215", "text": "public function ad2bs($ad_date)\n\t{\n\t\ttry\n\t\t{\n\t\t\t$ad_date = $this->dashDateToSlashDate($ad_date);\n\t\t\t$days_count=$this->countAdDays($this->ad_date_eq,$ad_date);\n\t\t\tif ($days_count === false)\n\t\t\t{\n\t\t\t\tdie('invalid date');\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn $this->addBsDays($this->bs_date_eq,$days_count);\n\t\t}\n\t\tcatch(Exception $e)\n\t\t{\n\t\t\tdie('invalid date');\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "0939346e39c4e6b09064f981497ae7de", "score": "0.5320713", "text": "public static function getNextBusinessDay($date, $allowSaturday = false, array $nonBusinessDays = null){\r\n\r\n\t\t$res = '';\r\n\r\n\t\tif($allowSaturday && self::getDayOfWeek($date) == 6){\r\n\r\n\t\t\t$res = date('Y-m-d', strtotime($date.' +1 day'));\r\n\r\n\t\t}else{\r\n\r\n\t\t\t$res = date('Y-m-d', strtotime($date.' +1 Weekday'));\r\n\t\t}\r\n\r\n\t\tif(count($nonBusinessDays) > 0){\r\n\r\n\t\t\tforeach ($nonBusinessDays as $nonBusinessDay){\r\n\r\n\t\t\t\tif($res == date('Y-m-d', strtotime($nonBusinessDay))){\r\n\r\n\t\t\t\t\treturn self::getNextBusinessDay($res, $allowSaturday, $nonBusinessDays);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $res;\r\n\t}", "title": "" }, { "docid": "b456dc31fd518a4bea57990bd3d19738", "score": "0.53197914", "text": "public function getDatePTBR()\n {\n return $this->format('d/m/Y');\n }", "title": "" }, { "docid": "0ce158b3ad7660744b4ef78b670e579b", "score": "0.53064376", "text": "private static function calculateDueDate($date)\n {\n $dueDate = date(\\DATE_FORMAT, strtotime('+9 weekdays', strtotime($date)));\n return $dueDate;\n }", "title": "" }, { "docid": "09005a9e8851a466b08c03f95c834e8f", "score": "0.5293488", "text": "function addAndRemoveDate($date,$day,$action)//add days\n{\n\t$sum = strtotime(date(\"Y-m-d\", strtotime(\"$date\")) . \" $action$day days\");\n\t$dateTo=date('Y-m-d',$sum);\n\treturn $dateTo;\n}", "title": "" }, { "docid": "8141a9854493eebeccbdf677b1db94e8", "score": "0.5281038", "text": "function tomorrow() {\treturn $this->anotherDate(\"1\");\t}", "title": "" }, { "docid": "a0854375f4b1cfa2648cf212ff90574b", "score": "0.52777416", "text": "function bftd($date, $day)\r\n\t\t\t{\r\n\t\t\t\treturn $this->db->query(\"SELECT DATE_SUB('$date', interval $day day) AS bftd\");\r\n\t\t\t}", "title": "" }, { "docid": "ad7aa21cc1f33130d166040023d3392e", "score": "0.52719766", "text": "public function getDateAdd()\n {\n return $this->date_add;\n }", "title": "" }, { "docid": "ad7aa21cc1f33130d166040023d3392e", "score": "0.52719766", "text": "public function getDateAdd()\n {\n return $this->date_add;\n }", "title": "" }, { "docid": "1a24ad229b88e09064d7eff8fd4f722a", "score": "0.52635646", "text": "function bln($date){\n$BulanIndo = array(\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"Mei\", \"Jun\", \"Jul\", \"Agt\", \"Sep\", \"Okt\", \"Nov\", \"Des\"); \n$bulan = substr($date, 0,2); \n$result = $BulanIndo[(int)$bulan-1];\t\nreturn($result);\n}", "title": "" }, { "docid": "b6ad29c012687b6c1a75542edc4ddadf", "score": "0.52624506", "text": "public function nextDay() {\n $this->day = $this->day + 86400;\n }", "title": "" }, { "docid": "28587bce1f5070ebb930c87d96c4de94", "score": "0.5260817", "text": "public static function addDays($i, $date=false){\n if (!$date) {\n $udate = time();\n }else{\n if (is_int($date)) {\n $udate = $date;\n }else{\n $udate = strtotime($date);\n }\n }\n if($i > 0 ){\n $i = '+'.$i;\n } \n $date = date(\"Y-m-d\", strtotime(date(\"Y-m-d\", $udate) . \" $i day\"));\n return self::getWeek($date);\n }", "title": "" }, { "docid": "d53eb7ef63058ccafb225306f144860f", "score": "0.5255777", "text": "public function jumpDays(int $days): Date;", "title": "" }, { "docid": "6af9cdddc01ab9585f33c06e977b9766", "score": "0.5251449", "text": "protected function add_crumbs_date()\n {\n }", "title": "" }, { "docid": "54556afc464d6de5fdea7a346a2cc53d", "score": "0.525017", "text": "function update_days(){\n $this->Tna_model->update_days();\n //echo date(\"l\",2018-05-01);\n }", "title": "" }, { "docid": "7eedba95f9724d1102694e128fd65e36", "score": "0.52472085", "text": "private function addDays($date, $daysToAdd)\n {\n return date($this->dateFormat, strtotime($date . ' + ' . $daysToAdd . ' days'));\n }", "title": "" }, { "docid": "624af1888ebf9d9bb21353dedb2c3fa8", "score": "0.52438945", "text": "public function convertHolidayToDate($day) {\n if ($day == 'New Years') {\n $next_year = date(\"Y\") + 1;\n return $next_year . \"-01-01\";\n } elseif ($day == 'Easter') {\n return date(\"Y-m-d\", easter_date());\n } elseif ($day == 'July 4th') {\n return date(\"Y\") . \"-07-04\";\n } elseif ($day == 'Thanksgiving') {\n return date('Y-m-d', strtotime('fourth thursday of november ' . date(\"Y\")));\n } elseif ($day == 'Christmas') {\n return date(\"Y\") . \"-12-25\";\n }\n }", "title": "" }, { "docid": "3ee9dda6644106466caf0ff45f7d604e", "score": "0.5236298", "text": "FUNCTION plusbyDate($year1, $mont1, $date1, $plusD) {\n\n$dayCount = date(\"t\", $mont1);\n$dateSum = $date1 + $plusD;\nIF($dateSum > $dayCount){ $dateH = $dateSum-$dayCount; \n$montH = $mont1+1;\nIF($montH > 12){ $yearH = $year1+1; $montH = $montH-12; } ELSE{ $yearH = $year1; } } ELSE {\n$montH = $mont1; $dateH = $dateSum; $yearH = $year1; }\n\nIF($montH < 10){ $montR = \"0\".$montH; } ELSE { $montR = $montH; }\nIF($dateH < 10){ $dateR = \"0\".$dateH; } ELSE { $dateR = $dateH; }\n\n$dateResulted = $yearH.\"-\".$montR.\"-\".$dateR;\nRETURN $dateResulted; }", "title": "" }, { "docid": "08e7f7cc10925ad2bb6972190d6e9188", "score": "0.52362084", "text": "public function get_end_date($sdate)\r\n\t{\r\n\t\t$edate='';\r\n\t\t$d=strtoupper(date('l',strtotime($sdate)));\t\t\r\n\t\t\r\n\t\tswitch($d)\r\n\t\t{\r\n\t\t\tcase 'MONDAY':\r\n\t\t\t$edate=date('Y-m-d',strtotime(\"+1 day\",strtotime($sdate)));\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'TUESDAY':\r\n\t\t\t$edate=date('Y-m-d',strtotime(\"+1 day\",strtotime($sdate)));\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'WEDNESDAY':\r\n\t\t\t$edate=date('Y-m-d',strtotime(\"+1 day\",strtotime($sdate)));\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'THURSDAY':\r\n\t\t\t$edate=date('Y-m-d',strtotime(\"+1 day\",strtotime($sdate)));\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'FRIDAY':\r\n\t\t\t$edate=date('Y-m-d',strtotime(\"+3 day\",strtotime($sdate)));\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'SATURDAY':\r\n\t\t\t$edate=date('Y-m-d',strtotime(\"+2 day\",strtotime($sdate)));\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'SUNDAY':\r\n\t\t\t$edate=date('Y-m-d',strtotime(\"+1 day\",strtotime($sdate)));\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn $edate;\r\n\t}", "title": "" }, { "docid": "295a694f5dd8128988043d773ac5c7dc", "score": "0.52329814", "text": "function inc_day($curr_time,$days){\n $time_arr = getdate($curr_time);\n return mktime(0,0,0,$time_arr['mon'],$time_arr['mday'] + $days,$time_arr['year']);\n}", "title": "" }, { "docid": "c22808371d8d87aa04667cb1c54e11d1", "score": "0.5220982", "text": "public function addDays($value)\n {\n return $this->modify((int) $value.' day');\n }", "title": "" }, { "docid": "8571429fc8cdc66300f4a1c25598aa37", "score": "0.52205944", "text": "protected function _getBoletoExpiryDate()\n {\n $date = $this->dateFactory->create();\n $expiryDateString = $date->date('Y-m-d h:i:s') . '+' . $this->boletoHelper->getDaysToExpire() . ' days';\n return $expiryDateString;\n }", "title": "" }, { "docid": "f6e713ee2c7096d25e1a52c9684c00e9", "score": "0.5196287", "text": "function todays_date($s = \"Y-m-d\") {\n\treturn date($s);\n}", "title": "" }, { "docid": "65a4043b0d1afec3bc27dbda974d9032", "score": "0.5187744", "text": "public function getAdjustedBookingStartDate()\n {\n return $this->stringToDate((string) $this->json()->adjusted_booking_start_date);\n }", "title": "" }, { "docid": "454072d289411b90b1f5894062f0750b", "score": "0.51861966", "text": "public static function addDays($date, $days) {\n if (Validator::isDateTime($date) === false) throw new InvalidArgumentException('Invalid argument $date: '.$date);\n Assert::int($days, '$days');\n\n $parts = explode('-', $date);\n $year = (int) $parts[0];\n $month = (int) $parts[1];\n $day = (int) $parts[2];\n\n return date('Y-m-d', mktime(0, 0, 0, $month, $day+$days, $year));\n }", "title": "" }, { "docid": "de2201669b353332b05a96c4adbf1112", "score": "0.51809675", "text": "function add_months($date,$months){\n\n $init=clone $date;\n $modifier=$months.' months';\n $back_modifier =-$months.' months';\n\n $date->modify($modifier);\n $back_to_init= clone $date;\n $back_to_init->modify($back_modifier);\n\n while($init->format('m')!=$back_to_init->format('m')){\n $date->modify('-1 day') ;\n $back_to_init= clone $date;\n $back_to_init->modify($back_modifier);\n }\n return $init;\n}", "title": "" }, { "docid": "5791d7b4ef5614e38637a88ec5769af4", "score": "0.51808643", "text": "public function calculateEventPayDay($date)\n {\n $date = \\DateTime::createFromFormat('Y-m-d H:i:s', $date);\n $day = $date->format('d');\n $period = (int)($day / 7) + 1;\n $baseDate = ($period * 7);\n $payday = $baseDate + 4;\n $date->setDate($date->format('Y'), $date->format('m'), $payday);\n if ($date->format('N') == 6 || $date->format('N') == 7) {\n while ($date->format('N') != 4) {\n $date->setDate($date->format('Y'), $date->format('m'), ($date->format('d') + 1));\n }\n }\n\n return $date;\n\n }", "title": "" }, { "docid": "58b444227cb62228c44c7bd80f9ab3ff", "score": "0.51674265", "text": "public function calculateBuddhasBirthday(): void\n {\n if ($this->year >= 1975 && isset(self::LUNAR_HOLIDAY['buddhasBirthday'][$this->year])) {\n $this->addHoliday(new Holiday(\n 'buddhasBirthday',\n ['en' => 'Buddha’s Birthday', 'ko' => '부처님오신날'],\n new DateTime(self::LUNAR_HOLIDAY['buddhasBirthday'][$this->year], DateTimeZoneFactory::getDateTimeZone($this->timezone)),\n $this->locale\n ));\n }\n }", "title": "" }, { "docid": "d00a3eaaf956d61b1d04c7f94496e127", "score": "0.5161337", "text": "public static function addDate($givendate,$day=0,$mth=0,$yr=0) {\n $cd = strtotime($givendate);\n $newdate = date('Y-m-d h:i:s', mktime(date('h',$cd),\n date('i',$cd), date('s',$cd), date('m',$cd)+$mth,\n date('d',$cd)+$day, date('Y',$cd)+$yr));\n return $newdate;\n }", "title": "" }, { "docid": "f34c67790269686b27e89a5a2d8a1a88", "score": "0.51567954", "text": "function addDays ( $day, $month, $year, $n ) {\r\n\t\t$days = $this->toDays($day, $month, $year);\r\n\t\treturn $this->fromDays($days + $n);\r\n\t}", "title": "" }, { "docid": "81e65f09d274d6c0d3f3553161dc5248", "score": "0.515412", "text": "function adddays($numberofdays)\n {\n do{\n if(($this->c_Day + $numberofdays) <= $this->daysinamonth()){\n //Can Add Days\n $this->c_Day += $numberofdays;\n\t\t\t\t\tif($this->c_Day <= 9)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->c_Day = \"0\" . $this->c_Day;\n\t\t\t\t\t}\n $numberofdays = 0;\n } else {\n //Add Month\n $this->c_Day = \"01\";\n $this->addmonths(1);\n\t\t\t\t\t$numberofdays -= ($this->daysinamonth() - $this->c_Day);\n }\n }while($numberofdays>0);\n }", "title": "" }, { "docid": "337242b810d3448513ead0eece2ff36a", "score": "0.5145584", "text": "function returnDateBd($date){\n\t$val = substr($date, 8, 2).'-'.substr($date, 5, 2).'-'.substr($date, 0, 4);\n\treturn $val;\n}", "title": "" }, { "docid": "069af412717f8734f72ffb86978004c8", "score": "0.5141793", "text": "function shift_days($date, $days) {\n\treturn mktime(0, 0, 0, date(\"m\", $date), date(\"d\", $date) + $days, date(\"Y\", $date));\n}", "title": "" }, { "docid": "66e94ef7790f22e91d13a24c4fa45d85", "score": "0.51364756", "text": "function dateNetsuitetoPHP($in_date){\n\t$date_array = explode(\"T\", $in_date);\n\t$temp_date = DateTime::createFromFormat('Y-m-d',$date_array[0]);\n\t$temp_date->add(new DateInterval('P1D')); // manually add 1 day due to Netsuite timezone setting\n\treturn $temp_date->format('j/n/Y');\n}", "title": "" }, { "docid": "ccd0077b790560be004465bb4c84b203", "score": "0.51350063", "text": "function Soma1dia($data)\n {\n $datetime = DateTime::createFromFormat('d/m/Y', $data);\n date_add($datetime, date_interval_create_from_date_string('1 days'));\n return date_format($datetime, 'd/m/Y');\n }", "title": "" }, { "docid": "e90a6955fb18672b80c68d2f8d2e26e3", "score": "0.51204586", "text": "function next_biweek() {\n\t$Date = date('d');\n\tif ($Date < 22 && $Date >= 8) {\n\t\t$Return = 22;\n\t} else {\n\t\t$Return = 8;\n\t}\n\treturn $Return;\n}", "title": "" }, { "docid": "311932fdc21da7f8d560dfa26815d3f0", "score": "0.51100737", "text": "function BDDATE($BDDT){\n\t\t$BDDATE = date('d/m/Y',strtotime($BDDT));\n\t\treturn $BDDATE;\n\t}", "title": "" }, { "docid": "a9308679e62172062e7d03f3fb4ba5d5", "score": "0.5103316", "text": "function _Date( $date, $element, $match, $newXmlfname, $tag, $tsv, $attribute)\r\n {\r\n if ( $tag == 'sec' )\r\n {\r\n if( ulContains( $date, $attribute ))\r\n {\r\n $date = preg_replace( '/.*\\% as of /' , '', $date ); // 30-Day SEC \r\n $date = preg_replace ('/\\K\\.[A-z].*/' , '', $date );\r\n $date = strftime('%Y-%m-%d', strtotime($date));\r\n }\r\n //echo \"\\n\\n*****************************\\n$date*****************************\\n\\n\";\r\n \r\n \r\n else \r\n {\r\n $date = '';\r\n }\r\n } \r\n \r\n else $date = dates_via_regex( $match, $date, $attribute );\r\n \r\n \r\n\r\n ?>\r\n <td class='date'> <?php addStock( $date, $newXmlfname, createXmlTag( $tag, $date ), $tsv ); }", "title": "" }, { "docid": "be4d61a089b9ea8217ce08194cbdbdc3", "score": "0.50907725", "text": "function increment_date($date, $increment)\n{\n $new_date = new DateTime($date);\n $new_date->add(new DateInterval('P' . $increment));\n return $new_date->format('Y-m-d');\n}", "title": "" }, { "docid": "964c649da5ad6e4b8cc0260984f4ea90", "score": "0.5072344", "text": "function fechaBrasil($date){\n date_default_timezone_set('Europe/Madrid');\n $fecha = new DateTime($date);\n $nuevafecha = $fecha->sub(new DateInterval('PT5H'));\n $nuevafecha = $fecha->format('d/m/Y');\n return $nuevafecha;\n }", "title": "" }, { "docid": "7e8ec137d8eceba305b54bdc66b5266d", "score": "0.50688714", "text": "public function getBonusPaymentDate($date);", "title": "" }, { "docid": "92faf53d569caba8c78a20b3ee4c1f15", "score": "0.5066174", "text": "function getDateForSpecificDayBetweenDates($start, $end, $weekday)\n {\n $weekdays=\"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday\";\n $arr_weekdays=explode(\",\", $weekdays);\n $arr_weekdays_day = explode(\",\", $weekday);\n //print_r($arr_weekdays_day);\n $i = 1;\n\t\t$string='';\n foreach($arr_weekdays_day as $weekdays)\n {\n\t\t\tif($weekdays==1){$weekdays=0;}elseif($weekdays==2){$weekdays=1;}elseif($weekdays==3){$weekdays=2;}elseif($weekdays==4){$weekdays=3;}elseif($weekdays==5){$weekdays=4;}elseif($weekdays==6){$weekdays=5;}elseif($weekdays==7){$weekdays=6;}\n $weekday = $arr_weekdays[$weekdays];\n if(!$weekday)\n $this->inventory_model->store_error(current_user_type(),hotel_id(),\"2\",'Invalid WeekDay','Bulk Update',date('m/d/Y h:i:s a', time()));\n $starts\t= strtotime(\"+0 day\", strtotime($start) );\n\t\t\t//$starts\t= strtotime($start);\n $ends\t= strtotime($end);\n //$dateArr = array();\n $friday = strtotime($weekday, $starts);\n while($friday <= $ends)\n {\n /*$dateArr[] = date(\"Y-m-d\", $friday);\n $friday = strtotime(\"+1 weeks\", $friday);*/\n $dateArr[] = date(\"Y-m-d\", $friday);\n $date \t= date(\"Y-m-d\", $friday);\n $string .= \"value\".$i.\"='\".$date.\"' \";\n $friday = strtotime(\"+1 weeks\", $friday);\n $i++;\n }\n //$dateArr[] = date(\"Y-m-d\", $friday);\n }\n\t\t//echo $string.'<br>';\n //return $dateArr;\n return $string;\n }", "title": "" }, { "docid": "2beda1461d4d7f1f8b7e637f1fde0654", "score": "0.50629497", "text": "function getFirstEMIDate($return_date_string=false){\n\n\t\t$date = new MyDateTime($this['created_at']);\n\n\t\treturn $date;\n\n\t\t$toAdd = 'P1M';\n\n\t\tif($this['dealer_id']){\n\t\t\t$dd=explode(\",\",$this['dealer_monthly_date']);\n\t\t\t$applicable_date = (int)date('d',strtotime($this['created_at']));\n\t\t\tif(count($dd)>0){\n\t\t\t\tforeach ($dd as $dealer_date) {\n\t\t\t\t\tif((int)$dealer_date >= (int)date('d',strtotime($this['created_at']))){\n\t\t\t\t\t\t$applicable_date = $dealer_date; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$date = new MyDateTime(date('Y-m-'.$applicable_date,strtotime($this['created_at'])));\n\t\t\t\t$date->add(new DateInterval($toAdd));\n\t\t\t\treturn $date;\n\t\t\t}\n\t\t}\n\t\t$date->add(new DateInterval($toAdd));\n\t\tif($return_date_string)\n\t\t\treturn $date->format('Y-m-d');\n\t\telse\n\t\t\treturn $date;\n\t}", "title": "" }, { "docid": "9fa6c230d7cfca3dfd6c881e9ffeeb01", "score": "0.5055595", "text": "public function addWorkingDays(\\DateTime $date, $days){\n $url = $this->url.'add_work_days/'.$this->channel.'/'.$date->format('Y-m-d').'/'.$days;\n $this->goutte->request('GET', $url);\n $date_string = $this->goutte->getResponse()->getContent();\n return new \\DateTime($date_string);\n }", "title": "" } ]
0b6901eaf950ad74c0f0d7062afb0d10
Get any tab option.
[ { "docid": "9866cb2c33e01b5113935edad73cdb43", "score": "0.70214784", "text": "function ui_tabs_get_option($selector,$option){\n return jquery_support($selector,'tabs', \"'option' , '$option'\");\n}", "title": "" } ]
[ { "docid": "940de39b4a070fe16539487c08bf8c97", "score": "0.75424594", "text": "private static function _get_options_tablist( $tab = NULL ) {\r\n\t\tif ( is_string( $tab ) ) {\r\n\t\t\tif ( isset( self::$mla_tablist[ $tab ] ) ) {\r\n\t\t\t\t$results = self::$mla_tablist[ $tab ];\r\n\t\t\t} else {\r\n\t\t\t\t$results = false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$results = self::$mla_tablist;\r\n\t\t}\r\n\r\n\t\treturn $results;\r\n\t}", "title": "" }, { "docid": "d8b9205fe1ab138d367cfa55437c99d1", "score": "0.65828365", "text": "function qode_startit_get_admin_tab(){\n\t\treturn isset($_GET['page']) ? qode_startit_strafter($_GET['page'],'tab') : NULL;\n\t}", "title": "" }, { "docid": "8c2ad5e7f821cd8edca6b4c833e8b211", "score": "0.649489", "text": "protected function _getTab()\n {\n return $this->_tab;\n }", "title": "" }, { "docid": "dc31da7e15619bb6763e6f2721c4e883", "score": "0.6390493", "text": "public function getTab()\n {\n return $this->_tab;\n }", "title": "" }, { "docid": "0eece91eff5c269b579113692146c663", "score": "0.63467544", "text": "public function getOpt($option) {}", "title": "" }, { "docid": "403c454cc6c6306fdfda38c39742f407", "score": "0.6286779", "text": "function getOptions();", "title": "" }, { "docid": "1a685f0c5ddd5e295661f20c421a244a", "score": "0.6246749", "text": "public function getTab($name);", "title": "" }, { "docid": "861e16d2f508059fb8690ac91bdf2d6c", "score": "0.6233154", "text": "function pilau_current_admin_tab( $tabs ) {\n\treturn isset( $_GET['tab'] ) && $_GET['tab'] ? $_GET['tab'] : key( $tabs );\n}", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.6158972", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.6158972", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.6158972", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.6158972", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.6158972", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.6158972", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.6158972", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.6158972", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.6158972", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.6158972", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.6158972", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.6158972", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.6158972", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.6158972", "text": "public function getOptions();", "title": "" }, { "docid": "c7b79bc8ba6e9987309c6fbec2919ac3", "score": "0.61518794", "text": "function get_options() {}", "title": "" }, { "docid": "148af8ca0b90f44e70fef05471a19cb6", "score": "0.6139036", "text": "public function getOptionList() {\n $bins = $this->createTabOptions();\n $other = $this->moduleHandler()->invokeAll('cacheflush_tabs_options');\n return array_merge($bins, $other);\n }", "title": "" }, { "docid": "90e4148297f435c3cd37ecb7b9fae8af", "score": "0.60790604", "text": "public function settings_tabs() {\n\t\tPostExpirator_Facade::load_assets( 'settings' );\n\n\t\t$tab = isset( $_GET['tab'] ) ? $_GET['tab'] : '';\n\t\tif ( empty( $tab ) ) {\n\t\t\t$tab = 'general';\n\t\t}\n\n\t\t$tab_index = 0;\n\n\t\tob_start();\n\n\t\tswitch ( $tab ) {\n\t\t\tcase 'general':\n\t\t\t\t$tab_index = 0;\n\t\t\t\t$this->load_tab( 'general' );\n\t\t\t\tbreak;\n\t\t\tcase 'defaults':\n\t\t\t\t$this->load_tab( 'defaults' );\n\t\t\t\t$tab_index = 1;\n\t\t\t\tbreak;\n\t\t\tcase 'diagnostics':\n\t\t\t\t$this->load_tab( 'diagnostics' );\n\t\t\t\t$tab_index = 2;\n\t\t\t\tbreak;\n\t\t\tcase 'viewdebug':\n\t\t\t\t$this->load_tab( 'viewdebug' );\n\t\t\t\t$tab_index = 3;\n\t\t\t\tbreak;\n\t\t}\n\n\t\t$html = ob_get_clean();\n\n\t\t$debug = postexpirator_debug(); // check for/load debug\n\n\t\t$tabs = array( 'general', 'defaults', 'diagnostics' );\n\t\tif ( POSTEXPIRATOR_DEBUG ) {\n\t\t\t$tabs[] = 'viewdebug';\n\t\t}\n\n\t\t$this->render_template( 'tabs', array( 'tabs' => $tabs, 'tab_index' => $tab_index, 'html' => $html, 'tab' => $tab ) );\n\n\t}", "title": "" }, { "docid": "a149f18037cebbb0c95cdfd4398ee16f", "score": "0.60501033", "text": "function plugin_options_tabs() {\r\t\t$current_tab = isset( $_GET['tab'] ) ? $_GET['tab'] : $this->general_settings_key;\r\t\tscreen_icon();\r\t\techo '<h2 class=\"nav-tab-wrapper\">';\r\t\tforeach ( $this->plugin_settings_tabs as $tab_key => $tab_caption ) {\r\t\t\t$active = $current_tab == $tab_key ? 'nav-tab-active' : '';\r\t\t\techo '<a class=\"nav-tab ' . $active . '\" href=\"?page=' . $this->plugin_options_key . '&tab=' . $tab_key . '\">' . $tab_caption . '</a>';\t\r\t\t}\r\t\techo '</h2>';\r\t}", "title": "" }, { "docid": "641335003422f448c3ece543adb0f06f", "score": "0.594202", "text": "public function getOption()\r\n {\r\n return $this->option;\r\n }", "title": "" }, { "docid": "05ce6d605a73d3ad3f93e74fa24a9c0e", "score": "0.5937618", "text": "public function & GetOptions ();", "title": "" }, { "docid": "171fa0b59ac141d9dfd68ecc9693d4c5", "score": "0.59056634", "text": "function getOption() {\n return $this->option;\n }", "title": "" }, { "docid": "16cbb9ceff4410012ba1ec1fd45d8201", "score": "0.59016955", "text": "public function getOptions(): array;", "title": "" }, { "docid": "16cbb9ceff4410012ba1ec1fd45d8201", "score": "0.59016955", "text": "public function getOptions(): array;", "title": "" }, { "docid": "0d6d53e3af9435f7f6a0535ad2698bf3", "score": "0.58903086", "text": "public function get_tab( $tabs ) {\n\t\t$tabs['6g_waf'] = array(\n\t\t\t'label' => __( '6G WAF', 'wpcd' ),\n\t\t\t'icon' => 'fal fa-shield-virus',\n\t\t);\n\t\treturn $tabs;\n\t}", "title": "" }, { "docid": "65af08617e18631813b5dbd896c7bba6", "score": "0.5883402", "text": "function fusion_get_theme_option( $option = '', $subset = '' ) {\n\t\tif ( is_string( $option ) && false !== strpos( $option, '[' ) ) {\n\t\t\t$option = explode( '[', str_replace( ']', '', $option ) );\n\t\t}\n\t\tif ( is_array( $option ) ) {\n\t\t\t$subset = ( isset( $option[1] ) && '' === $subset ) ? $option[1] : $subset;\n\t\t\t$option = $option[0];\n\t\t}\n\n\t\tif ( '' !== $subset ) {\n\t\t\treturn ( class_exists( 'Avada' ) ) ? Avada()->settings->get( $option, $subset ) : fusion_library()->get_option( $option, $subset );\n\t\t}\n\t\treturn ( class_exists( 'Avada' ) ) ? Avada()->settings->get( $option ) : fusion_library()->get_option( $option );\n\t}", "title": "" }, { "docid": "00bf9923e53d5cccc6a981985644c5d0", "score": "0.5868449", "text": "abstract public static function getOptions(): array;", "title": "" }, { "docid": "d1a3cdf8a99479f0a21ac18084921bc9", "score": "0.58519644", "text": "public function getDefaultTab()\n {\n return $this->defaultTab;\n }", "title": "" }, { "docid": "2844ba9959a6429eb06db5149ac2c059", "score": "0.58511186", "text": "function jpid_get_options() {\n return JPID()->option->get_options();\n}", "title": "" }, { "docid": "b2bb36e94b85f2aaa426beceeeead4e8", "score": "0.581517", "text": "protected function getOptions(){ }", "title": "" }, { "docid": "7861c1499768e9d4be52c1f2db321976", "score": "0.58115697", "text": "function data_getDefaultTab($page){\n\t$result = \"\";\n\t$query = \"SELECT abbr FROM category WHERE defaulttab = 1 AND parent = (SELECT id FROM category WHERE abbr = \\\"$page\\\")\";\n\t$result = exec_scalar($query);\n\treturn $result;\t\n}", "title": "" }, { "docid": "71d9e818567a075a5fd5e49a3c25279a", "score": "0.5800724", "text": "public function getTab() {\n\t\tob_start();\n\t\t$view = $this->getViewData();\n\t\tif ($view) include(__DIR__ . '/routing.tab.phtml');\n\t\treturn ob_get_clean();\n\t}", "title": "" }, { "docid": "b2eb69a5079ac261ab52198268dcf538", "score": "0.5794805", "text": "public function get_help_tabs()\n {\n return $this->help_tabs;\n }", "title": "" }, { "docid": "a6d2b9b6148b4998a31ceec55c942b46", "score": "0.5793442", "text": "abstract protected function getOptions(): array;", "title": "" }, { "docid": "a453d687886c2081f660d3712cd214fd", "score": "0.5785204", "text": "private function determine_option() {\n\t\tif ( $this->type === 'single' ) {\n\t\t\t$this->current = $this->prefix . $this->slug;\n\t\t} else if ( $this->type === 'tabbed' ) {\n\t\t\tif ( isset( $this->form[ $this->tab ]['option'] ) ) {\n\t\t\t\t$this->current = $this->form[ $this->tab ]['option'];\n\t\t\t} else {\n\t\t\t\t$this->current = $this->prefix . $this->tab;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6d8831ddf1e074b95e9409f9c6a148a3", "score": "0.5785117", "text": "public function getOptions()\n {\n }", "title": "" }, { "docid": "6d8831ddf1e074b95e9409f9c6a148a3", "score": "0.5785117", "text": "public function getOptions()\n {\n }", "title": "" }, { "docid": "de11d4187ce56487689b4cc53d2f061f", "score": "0.5772183", "text": "public function typeTab( $tabs) {\n \n $tabs['optic'] = array(\n 'label' => __( 'Optical settings', ANOWOO_TEXTDOM ),\n 'target' => 'optical_settings',\n 'class' => 'show_if_bbPress hide_if_anowoo_book hide_if_simple hide_if_variable hide_if_grouped hide_if_external',\n );\n return $tabs;\n }", "title": "" }, { "docid": "f3d94f8c9df75706e49e8cf7a0975316", "score": "0.5766086", "text": "public function get() {\n\t\treturn $this->user_options->get( self::OPTION );\n\t}", "title": "" }, { "docid": "61467e497b2e97a6d0cc7edbfffc7323", "score": "0.5750824", "text": "public function getOption($name);", "title": "" }, { "docid": "4f809ff0ab2fbeffb2c1ad1f1b6b2476", "score": "0.574026", "text": "private function get_last_tab() {\n\n\t\treset( $this->_sections );\n\n\t\t$first_tab = key( $this->_sections );\n\n\t\t$current_tab = $first_tab;\n\n\t\tif ( isset( $this->_options['last_tab'] ) && isset( $_GET['settings-updated'] ) ) {\n\t\t\t$current_tab = $this->_options['last_tab'];\n\t\t} elseif ( isset( $_GET['tab'] ) ) {\n\t\t\t$current_tab = $_GET['tab'];\n\t\t}\n\n\t\treturn $current_tab;\n\t}", "title": "" }, { "docid": "669ff5b81c2aee762e35bac990e6fa3d", "score": "0.57397556", "text": "function banner_settings_tabs() {\n\t$default_tabs = array(\n\t\t'banners' => 'Banners',\n\t\t'images' => 'Images',\n\t\t'animation' => 'Animation',\n\t\t'full-config' => 'Configuration'\n\t);\n\n\treturn apply_filters('banner_settings_tabs', $default_tabs);\n}", "title": "" }, { "docid": "6e0f8b6d6b8211b3455619c7696191fa", "score": "0.57332784", "text": "protected function get_option() {\n\t\treturn get_option( $this->opt_in_status->get_option_name(), [] );\n\t}", "title": "" }, { "docid": "92d7dafc3762f316ca96fc8f9da09dd4", "score": "0.57179624", "text": "abstract protected function getTabClass(): string;", "title": "" }, { "docid": "6fd9de294e2f190e99ed569a0d6289aa", "score": "0.5713163", "text": "public function getSelectedOption()\n\t{\n\t\treturn $this->option;\n\t}", "title": "" }, { "docid": "80e4a94a6c7692212c8faf0c56c4c8bd", "score": "0.5704743", "text": "public function getOptions() : array;", "title": "" }, { "docid": "af8c66aa534860fc694ba985ffbbf83e", "score": "0.57004356", "text": "private function getInfoTab() {\n return Auth::user()->info->tab;\n }", "title": "" }, { "docid": "9aea19114e17d132f4814be4c2666509", "score": "0.56935287", "text": "public function get_envira_settings_tab_nav() {\n\n\t\t$tabs = array(\n\t\t\t'general' => __( 'General', 'envira-gallery' ), // This tab is required. DO NOT REMOVE VIA FILTERING.\n\t\t\t'standalone' => __( 'Standalone', 'envira-gallery' ),\n\n\t\t);\n\t\t$tabs = apply_filters( 'envira_gallery_settings_tab_nav', $tabs );\n\n\t\t// Make sure debug is always last\n\t\t// $tabs['debug'] = __( 'System Info', 'envira-gallery' );.\n\t\treturn $tabs;\n\n\t}", "title": "" }, { "docid": "86f65fc2b4526adfb6b6e12a1f9c9684", "score": "0.56878483", "text": "public function getOptions()\n {\n\n }", "title": "" }, { "docid": "d94b072b79c5010b2c6e4daf0bec93e9", "score": "0.56845945", "text": "public function getTab( $idx = null )\n\t{\n\t\tif( null == $idx ) {\n\t\t\treturn array();\n\t\t}\n\t\t\n\t\t$tabs = $this->getTabs();\n\t\n\t\tif( isset( $tabs[$idx] ) ) {\n\t\t\treturn $tabs[$idx];\n\t\t} else {\n\t\t\treturn array();\n\t\t}\n\t}", "title": "" }, { "docid": "86d00fb94564525337f241a27fc843c7", "score": "0.56833947", "text": "public function getTabs() {\n return $this->tabs;\n }", "title": "" }, { "docid": "7b8c02d8873d9a7473f491cc87c2a466", "score": "0.56716317", "text": "function wordstrap_admin_options_page_tabs($current = 'general') {\n if (isset($_GET['tab'])) {\n $current = $_GET['tab'];\n } else {\n $current = 'general';\n }\n\n $tabs = wordstrap_get_settings_page_tabs();\n $links = array();\n foreach ($tabs as $tab => $name) {\n if ($tab == $current) {\n $links[] = \"<a class=\\\"nav-tab nav-tab-active\\\" href=\\\"?page=wordstrap-options&tab={$tab}\\\">{$name}</a>\";\n } else {\n $links[] = \"<a class=\\\"nav-tab\\\" href=\\\"?page=wordstrap-options&tab={$tab}\\\">{$name}</a>\";\n }\n }\n echo \"<div id=\\\"icon-themes\\\" class=\\\"icon32\\\"><br /></div>\";\n echo \"<h2 class=\\\"nav-tab-wrapper\\\">\";\n foreach ($links as $link) {\n echo $link; \n }\n echo \"</h2>\";\n}", "title": "" }, { "docid": "a8ec0758686e26e81a38843cdf2a1dcd", "score": "0.5659938", "text": "public function getOptions()\n\t{\n\t\treturn $this->args['options'];\n\t}", "title": "" }, { "docid": "a89394a8c0c868a1196506662ec7a23a", "score": "0.5641506", "text": "public function options()\n {\n return $this->option();\n }", "title": "" }, { "docid": "f1d835c55b12d810a44554d3f91d4da3", "score": "0.56276405", "text": "function getOption($val) {\n\t\treturn get_option($val);\n\t}", "title": "" }, { "docid": "22f4ab87052c06ecdd49b9cb094b4112", "score": "0.5597816", "text": "abstract public function getOptionKey();", "title": "" }, { "docid": "6633b80809729055289ac3652482935a", "score": "0.55959463", "text": "public function getDefaultTab()\n\t{\n\t\tif( !empty( $this->defaultTab ) ) {\n\t\t\treturn $this->defaultTab;\n\t\t} else {\n\t\t\t$tabs = $this->getTabs();\n\t\t\t$default = array();\n\t\t\n\t\t\tforeach ( $tabs as $k => $tab ) {\n\t\t\t\tif( $tab['default'] ) {\n\t\t\t\t\t$default = $tab;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\tif( empty( $default ) ) {\n\t\t\t\t$default = $this->getFirstTab();\n\t\t\t}\n\t\t\n\t\t\treturn $default;\n\t\t}\n\t}", "title": "" }, { "docid": "7196f44448611af1cacdc9b0af6bbad6", "score": "0.55856943", "text": "public function getFirstTab()\n\t{\n\t\t$tabs = $this->getTabs();\n\t\n\t\treturn array_shift( $tabs );\n\t}", "title": "" }, { "docid": "95b360efd720402b72e92259b6c65943", "score": "0.5564021", "text": "public static function getTabs()\n {\n $settings = \\DB::table('settings')->select('tab', 'tab_order')->groupBy('tab', 'tab_order')->orderBy('tab_order')->get();\n $settings = $settings->pluck('tab')->toArray();\n return $settings;\n }", "title": "" }, { "docid": "93e2449dd86190cfe6a8c157d43328d6", "score": "0.55557275", "text": "public function getOptionsList(){\n return $this->_get(3);\n }", "title": "" }, { "docid": "93e2449dd86190cfe6a8c157d43328d6", "score": "0.55557275", "text": "public function getOptionsList(){\n return $this->_get(3);\n }", "title": "" }, { "docid": "c4d58d5f6fbf808a152fe8057d4589f0", "score": "0.55506235", "text": "public function getOption()\n\t{\n\t\treturn get_option( $this->optionName, array() );\n\t}", "title": "" }, { "docid": "1875380916fb04afbf9d68c57e40bca2", "score": "0.5542624", "text": "public function get_current_tab($is_dash = false)\n {\n $tab = (isset($_GET['tab']) && $this->page_has_tab($_GET['tab'])) ? preg_replace('/-/', '_', $_GET['tab']) : $this->get_default_tab();\n\n return (!$is_dash) ? $tab : preg_replace('/_/', '-', $tab);\n }", "title": "" }, { "docid": "3c19f8a0fc377b19ab62939c6ae74615", "score": "0.55383044", "text": "public function get_option_name() {\n\t\treturn bimber_get_theme_options_id();\n\t}", "title": "" }, { "docid": "4fa13aa63bdeed63d324c4e5c40c5af3", "score": "0.55290127", "text": "#[\\Relay\\Attributes\\Local]\n public function getOption(int $option): mixed {}", "title": "" }, { "docid": "9eb085f6d0127b279505397c448d5950", "score": "0.5515836", "text": "protected function getOptions()\n\t{\n\t\treturn [\n\t\t\t\n\t\t];\n\t}", "title": "" }, { "docid": "9eb085f6d0127b279505397c448d5950", "score": "0.5515836", "text": "protected function getOptions()\n\t{\n\t\treturn [\n\t\t\t\n\t\t];\n\t}", "title": "" }, { "docid": "5f9e23fc3b274b912992e47bd2f110b9", "score": "0.550895", "text": "public function getDataTab()\n {\n return $this->dataTab;\n }", "title": "" }, { "docid": "5c6332f15e3178f8bbc38527cc2ae769", "score": "0.55089045", "text": "public function options($keyword = NULL)\r\n\t{\r\n\t\tif($keyword === NULL)\r\n\t\t{\r\n\t\t\treturn $this->_options;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn $this->_options[$keyword];\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9da5404133978979885b6e506b89da84", "score": "0.54800403", "text": "public function getTab($name)\r\n {\r\n if (isset($this->tabs[$name])) {\r\n return $this->tabs[$name];\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "851e7bade572b6d1fcf1072affb18a22", "score": "0.547916", "text": "function option_definition() { return array(); }", "title": "" }, { "docid": "f57a7ffb23b1af44edb9d3e75bceab80", "score": "0.5474648", "text": "public function getOptionsList(){\n return $this->_get(9);\n }", "title": "" }, { "docid": "d7f75cf8b2da6787839402d75b40d25e", "score": "0.54682684", "text": "public function getOptionsList(){\n return $this->_get(4);\n }", "title": "" }, { "docid": "edd47f7e5799d39b4d6f7eaf706d1fa4", "score": "0.546282", "text": "public function getTab()\n {\n return PH_DEBUG ? 'DEV' : 'PROD';\n }", "title": "" }, { "docid": "e1234a1a4eae124ed57622a0f4bc3db0", "score": "0.54585135", "text": "function ui_tabs_set_options($selector,$option_map){\n $pattern = _ui_tabs_pattern($option_map);\n return ui_set_widget_options('tabs', $selector,$pattern);\n}", "title": "" }, { "docid": "87b1a98cbc5238d8d9f62ddd8d20f7d1", "score": "0.5448506", "text": "public function getOptions(): array\n {\n }", "title": "" }, { "docid": "6202477888f21ad1248a713c3ce9cd5b", "score": "0.54417163", "text": "public function getOptionValues();", "title": "" }, { "docid": "ef1a18ae27b468b2c5d073cb5b6aab9b", "score": "0.54364264", "text": "public function getTab()\n {\n ob_start(function () {\n // ..\n });\n\n $data = $this->data;\n require __DIR__ . '/assets/bar/' . $this->id . '.tab.phtml';\n\n return ob_get_clean();\n }", "title": "" }, { "docid": "5633a2c58d5140591970cee4c1a57eb9", "score": "0.5424866", "text": "public function GetBaseTabIndex ();", "title": "" }, { "docid": "32d580147b4e470feb2bff37ab36ca15", "score": "0.54175824", "text": "public function createTabOptions() {\n $core = array_flip($this->coreBinMapping());\n foreach ($this->container->getParameter('cache_bins') as $service_id => $bin) {\n $options[$bin] = [\n 'description' => $this->t('Storage for the cache API.'),\n 'category' => isset($core[$bin]) ? 'vertical_tabs_core' : 'vertical_tabs_custom',\n 'functions' => [\n '0' => [\n '#name' => '\\Drupal\\cacheflush\\Controller\\CacheflushApi::clearBinCache',\n '#params' => [$service_id],\n ],\n ],\n ];\n }\n return $options;\n }", "title": "" }, { "docid": "e8daabdef5f3460095e59b3aa4ea69de", "score": "0.5415468", "text": "public function getOption($key);", "title": "" }, { "docid": "5f21780ff53d9dc588cd35138662ce86", "score": "0.54095864", "text": "public function getOption($option = null)\n {\n if ($option !== null) {\n return $this->options[$option];\n }\n return $this->options;\n }", "title": "" }, { "docid": "ad48be725303a4c487f92685145492a9", "score": "0.53955305", "text": "public function get_tab_atts( &$tab ) {\n\n\t\t$tab_attributes = $this->block_atts;\n\n\t\t// Fix tabs terms\n\t\tswitch ( $tab['type'] ) {\n\n\t\t\t// change atts category to tab category to fix query\n\t\t\tcase 'category':\n\t\t\t\t// tags only will be included inside first tab\n\t\t\t\tif ( $tab['active'] ) {\n\t\t\t\t\t// $_tab_atts['tag'] = '';\n\t\t\t\t} else {\n\t\t\t\t\t$tab_attributes['category'] = $tab['term_id'];\n\t\t\t\t}\n\n\t\t\t\t$tab_attributes['query-main-term'] = $tab['term_id'];\n\n\t\t\t\tbreak;\n\n\t\t}\n\n\t\treturn $tab_attributes;\n\t}", "title": "" }, { "docid": "e2a3135cfdb2e2935957330c7e8d4872", "score": "0.5385972", "text": "public function getTabItem()\n {\n return $this->tabItem;\n }", "title": "" }, { "docid": "9364eb1794ee02bd4ca2f0b11e97cf42", "score": "0.5385403", "text": "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "title": "" }, { "docid": "9364eb1794ee02bd4ca2f0b11e97cf42", "score": "0.5385403", "text": "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "title": "" }, { "docid": "9364eb1794ee02bd4ca2f0b11e97cf42", "score": "0.5385403", "text": "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "title": "" }, { "docid": "9364eb1794ee02bd4ca2f0b11e97cf42", "score": "0.5385403", "text": "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "title": "" }, { "docid": "9364eb1794ee02bd4ca2f0b11e97cf42", "score": "0.5385403", "text": "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "title": "" }, { "docid": "9364eb1794ee02bd4ca2f0b11e97cf42", "score": "0.5385403", "text": "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "title": "" }, { "docid": "9364eb1794ee02bd4ca2f0b11e97cf42", "score": "0.5385403", "text": "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "title": "" }, { "docid": "9364eb1794ee02bd4ca2f0b11e97cf42", "score": "0.5385403", "text": "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "title": "" }, { "docid": "9364eb1794ee02bd4ca2f0b11e97cf42", "score": "0.5385403", "text": "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "title": "" } ]
0ebd9f7607625de3ef69a3f9143111d6
Returns success message if equals to expected message.
[ { "docid": "4c5e1bf8eb82edd2c4a4c38c69d23459", "score": "0.0", "text": "public function toString()\n {\n return 'Incorrect password message is present and correct.';\n }", "title": "" } ]
[ { "docid": "75151a466443b0a869bddae1712f1f1f", "score": "0.68017155", "text": "public function getSuccessMessage() {\n return $this -> betSuccessMessage;\n }", "title": "" }, { "docid": "10c9d8adf56d573b7c042c4d0c81c4a3", "score": "0.6801017", "text": "public function isSuccess() {\n\t\treturn $this->expected === $this->actual;\n\t}", "title": "" }, { "docid": "c36b0069bcfe3c1d72df39ed8480d8b0", "score": "0.6756347", "text": "public static function getSuccessAnswer()\n {\n return 'OK';\n }", "title": "" }, { "docid": "a201a87d9b37b7f1d93e10beb25f8501", "score": "0.6640394", "text": "public function getSuccessMessage()\n {\n return $this->successMessage;\n }", "title": "" }, { "docid": "2061caf163ae37d3ffc1bfba974b9cb3", "score": "0.66048396", "text": "public function succeed($message = '')\n {\n $this->assertTrue(true, $message);\n }", "title": "" }, { "docid": "d24aa0799d3bf50dd9894f293f30722b", "score": "0.6497542", "text": "public function getFinalSuccessMessage(): string\n {\n return $this->finalSuccessMessage;\n }", "title": "" }, { "docid": "6af86a7be64683bd137d8c73e7f4f8dd", "score": "0.6459403", "text": "public static function getSuccessAnswer()\n {\n return 'YES';\n }", "title": "" }, { "docid": "b380b8f12901a915e8daed4ff2ce9a02", "score": "0.645833", "text": "private function get_default_success_message()\n {\n }", "title": "" }, { "docid": "ad90c972560c6ee7bab4d372e28455d2", "score": "0.63490725", "text": "protected function assertSuccessMessage($text = null)\n {\n $this->checkMessage(Messages::TYPE_SUCCESS, $text);\n }", "title": "" }, { "docid": "6cd92e281dfba941ea38b7215ac2e58d", "score": "0.63230175", "text": "function getSuccessMessage(){\r\n return $this->successMessage;\r\n\t}", "title": "" }, { "docid": "71e83714eba5a16170a02b8c985dc341", "score": "0.6293299", "text": "public function isSuccessful()\n {\n return (string) $this->getCode() === '1';\n }", "title": "" }, { "docid": "d7504d12ea0b5d0da2eff68c292906ac", "score": "0.6293283", "text": "public function successMessage();", "title": "" }, { "docid": "a65b803102ffcd8c77cb20b0df14667b", "score": "0.6262542", "text": "public function isSuccessful(): bool\n {\n return '100' === $this->getCode();\n }", "title": "" }, { "docid": "9d3f4c093aec7c677a6a981d4a5e4fa0", "score": "0.6228606", "text": "public function testSuccess()\n {\n $webhookMessageDelete = SmartwaiverTypes::createWebhookMessageDelete();\n $swWebhookMessageDelete = new SmartwaiverWebhookMessageDelete($webhookMessageDelete);\n\n $this->assertEquals($webhookMessageDelete['success'], $swWebhookMessageDelete->success);\n }", "title": "" }, { "docid": "f2d3f850dc0b156b82adcb00f99720d3", "score": "0.6205135", "text": "public function isSuccessfulResponse() {\n // return true;\n return ($this->getStatus() == \"APPROVED\" && $this->getMessage() != \"DUPLICATE\"); \n }", "title": "" }, { "docid": "27c7d284db761a83b00fdc60994cf0f8", "score": "0.6112985", "text": "public function success(string $message): bool\n {\n return true;\n }", "title": "" }, { "docid": "5839477867cfdd25fa1d16932d9a8b5a", "score": "0.6105532", "text": "public function toString()\n {\n return 'Assert that success message is displayed.';\n }", "title": "" }, { "docid": "85f42789317190d5e4998b01852bfe4d", "score": "0.6083738", "text": "public function assertTrue($value, $message);", "title": "" }, { "docid": "4c042208a89921854102d04fc8b0b6c0", "score": "0.6074366", "text": "public function getSuccessStatus();", "title": "" }, { "docid": "62ae0007ed5c228a3d609784d00b7713", "score": "0.6069225", "text": "public function getSucceed()\n {\n return $this->succeed;\n }", "title": "" }, { "docid": "30a6353b491712dfa17e06e0af677705", "score": "0.60666835", "text": "public function isSuccessful()\n {\n return '0' === $this->statusCode();\n }", "title": "" }, { "docid": "7d393b1d002886d43cc943ea04d2afb9", "score": "0.60656494", "text": "public function ok()\n {\n return $this->successful();\n }", "title": "" }, { "docid": "c8be5346acfd6a1faf84bfb953ab7840", "score": "0.6064765", "text": "public function testContainsFailureMessage()\n {\n $message = 'Failed test';\n\n try {\n $this->expectedValue('b')\n ->setMessage($message)\n ->existsIn(\n array('a', 'c')\n );\n } catch (\\Exception $e) {\n if (!strstr($e->getMessage(), $message)) {\n throw new \\Exception('Failure. Message is not outputted.');\n }\n }\n }", "title": "" }, { "docid": "1659c97587a7dda34998912c074fca46", "score": "0.6050824", "text": "public function testGetExpectedResponseMessageClass()\n {\n static::assertEquals(1, 1);\n }", "title": "" }, { "docid": "ac0f0cfc876128d90ba516b46ab121cf", "score": "0.60050786", "text": "public static function success($message)\n\t{\n\t\treturn Message::set(Message::SUCCESS, $message);\n\t}", "title": "" }, { "docid": "11403fa471e4bd74d665570b99a21c60", "score": "0.6001486", "text": "public function isSuccessful() { return $this->success; }", "title": "" }, { "docid": "1896183d412dd731f75cefb1bfbb4dec", "score": "0.5989801", "text": "abstract public function wasSuccessful();", "title": "" }, { "docid": "d03d5dde878ebf92ae24435efbe2ca83", "score": "0.598597", "text": "function getSuccess() {\n\t\treturn systemMessages::getMessages('success');\n\t}", "title": "" }, { "docid": "14e017ffd288663405b290ab7223d1aa", "score": "0.5960766", "text": "public function isSuccess();", "title": "" }, { "docid": "14e017ffd288663405b290ab7223d1aa", "score": "0.5960766", "text": "public function isSuccess();", "title": "" }, { "docid": "6e9bd869cd5dc24d3fb83968e2768801", "score": "0.5942118", "text": "public function getSuccess(): bool;", "title": "" }, { "docid": "4bba0db413e93e549a9bce309c21aef0", "score": "0.58944726", "text": "public function get_save_success_message() {\n\n\t\t$success_message = rgars( $this->save_button, 'messages/save' ) ? rgars( $this->save_button, 'messages/save' ) : rgars( $this->save_button, 'messages/success' );\n\n\t\treturn $success_message;\n\n\t}", "title": "" }, { "docid": "69df396eaf50cebd10af2ac543455242", "score": "0.5894128", "text": "public function testSuccess()\n {\n // itself will be marked as incomplete.\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "04ee41dfde2b6abcb604fc93b7f61592", "score": "0.5886226", "text": "public function isSuccessful();", "title": "" }, { "docid": "04ee41dfde2b6abcb604fc93b7f61592", "score": "0.5886226", "text": "public function isSuccessful();", "title": "" }, { "docid": "0ed2d95d5c8b42ffd44cb978c3b127b6", "score": "0.5869817", "text": "public function is_successful()\n {\n }", "title": "" }, { "docid": "0ed2d95d5c8b42ffd44cb978c3b127b6", "score": "0.5869817", "text": "public function is_successful()\n {\n }", "title": "" }, { "docid": "0ed2d95d5c8b42ffd44cb978c3b127b6", "score": "0.5869817", "text": "public function is_successful()\n {\n }", "title": "" }, { "docid": "0ed2d95d5c8b42ffd44cb978c3b127b6", "score": "0.5869817", "text": "public function is_successful()\n {\n }", "title": "" }, { "docid": "d779a39c8e3c9db7ac365c92033cf5de", "score": "0.5867303", "text": "public function wasSuccessful(): bool {}", "title": "" }, { "docid": "d3cbdafe6aa410e6a36c49ede2abf8f6", "score": "0.58665717", "text": "public function sendOk()\n {\n\n // Prepare a response with a string as a body\n $response = new Response();\n $response->setBody('Foo');\n \n // String should be JSON formatted\n $this->assertEquals('\"Foo\"', $response->send());\n \n }", "title": "" }, { "docid": "688732d990958b6ab815e668f8b40750", "score": "0.58618915", "text": "public function was_successful();", "title": "" }, { "docid": "79f7a3eae78e51e43b1e32c1b3696e19", "score": "0.5830852", "text": "public function getSuccessful()\n {\n return $this->successful;\n }", "title": "" }, { "docid": "f0ac2c8bf63ae28a26ef035837b50d06", "score": "0.58107805", "text": "public function getFailureMessage(): string;", "title": "" }, { "docid": "5435b6dc3f9dfa590a4539301cf2bf38", "score": "0.58000803", "text": "public function isSuccess(): bool;", "title": "" }, { "docid": "5435b6dc3f9dfa590a4539301cf2bf38", "score": "0.58000803", "text": "public function isSuccess(): bool;", "title": "" }, { "docid": "cb0b64cd35c8b14fb9c7ab6863d8fabe", "score": "0.5797314", "text": "function sendMessage($msg, $expectedResult = false)\n {\n if ($msg !== false && !empty($msg))\n {\n fputs($this->smtpSocket, $msg . \"\\r\\n\");\n }\n if ($expectedResult !== false)\n {\n $result = '';\n while ($line = @fgets($this->smtpSocket, 1024))\n {\n $result .= $line;\n if (preg_match('#^(\\d{3}) #', $line, $matches))\n {\n break;\n }\n }\n $this->smtpReturn = intval($matches[1]);\n return ($this->smtpReturn == $expectedResult);\n }\n \n return true;\n }", "title": "" }, { "docid": "c618d212af2e1e6bbd6fd1daecb10d08", "score": "0.5790597", "text": "protected function assertOk()\n {\n $this->assertResponseCode(200);\n }", "title": "" }, { "docid": "0384c5be19a17742282fd863721c21b6", "score": "0.57901806", "text": "public function isSuccessfully()\n {\n return $this->_status == self::OK;\n }", "title": "" }, { "docid": "0f8415a79cddfd3b085138b0fd6dff7e", "score": "0.5774469", "text": "public function isSuccessful()\n {\n }", "title": "" }, { "docid": "0f8415a79cddfd3b085138b0fd6dff7e", "score": "0.5774469", "text": "public function isSuccessful()\n {\n }", "title": "" }, { "docid": "a27693d07ac5861df009229d86a00df1", "score": "0.5774317", "text": "public function getSuccess();", "title": "" }, { "docid": "40231dfc873890f1b8926238311e3982", "score": "0.5766125", "text": "public function isOk() {\n return $this->status == self::SUCCESS;\n }", "title": "" }, { "docid": "70327c4f707aef0a706e9ca671c2541c", "score": "0.5757048", "text": "public function isSuccess()\n {\n return false;\n }", "title": "" }, { "docid": "d8ccc05f07877e924a18e3ec990d8c57", "score": "0.57570255", "text": "public function success(string $message): ?string\n {\n }", "title": "" }, { "docid": "52f16050a3d6f955e7738c5d30eda2a3", "score": "0.5754131", "text": "function getResultStatusMessage() {\r\n return $this->statusMessage;\r\n }", "title": "" }, { "docid": "f8f10de0b5d26feb969fa741b6989140", "score": "0.57537997", "text": "public function isSuccessful()\n {\n return isset($this->data['origRespCode']) && $this->data['origRespCode'] == '00';\n }", "title": "" }, { "docid": "ec02e79a1a1cbeb2a0a70ca91a645476", "score": "0.57524824", "text": "public function isSuccess()\n {\n return true;\n }", "title": "" }, { "docid": "d583df9329d920ba0c75fc0b8bd6f779", "score": "0.5737717", "text": "public function assertEquals($expected, $actual, $message = null) {\n return $this->scenario->runStep(new \\Codeception\\Step\\Action('assertEquals', func_get_args()));\n }", "title": "" }, { "docid": "8c93da7fac26b9dd2a9adcdcb6cc5b76", "score": "0.5735322", "text": "public function successMessage(): string\n {\n return 'The code has been generated successfully.';\n }", "title": "" }, { "docid": "d23d09ffa3efefac354e8b9a10d42f2c", "score": "0.5735074", "text": "public function isSuccessful()\n {\n $restype = floor($this->code / 100);\n if ($restype == 2 || $restype == 1) { // Shouldn't 3xx count as success as well ???\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "45bd243ca848f6731faad97996e9bcf0", "score": "0.5734336", "text": "public function getSuccessful(): bool;", "title": "" }, { "docid": "7e580d51eda0b833a8416252e2a9e1dd", "score": "0.57271916", "text": "public function isSuccess(): bool\n {\n return false;\n }", "title": "" }, { "docid": "964900c34bc70ff2806b205b8e0a56e3", "score": "0.57212496", "text": "public function toString()\n {\n return 'Success';\n }", "title": "" }, { "docid": "b384784d7ae75f890c29462ea05f6401", "score": "0.57157725", "text": "public function getSuccess()\n\t{\n\t\treturn $this->success;\n\t}", "title": "" }, { "docid": "063f1a074c699fbf4ef34a78cb16b074", "score": "0.57138383", "text": "public function assertSame( $expected, $actual, $message = null )\n\t{\n\t\treturn $this->getScenario()->runStep( new \\Codeception\\Step\\Action( 'assertSame', func_get_args() ) );\n\t}", "title": "" }, { "docid": "bd8a377b7cebea182f89affa8e22cfee", "score": "0.57114935", "text": "public function isSuccessful()\n {\n return (empty($this->errorMsg));\n }", "title": "" }, { "docid": "0b50a02cb27c4f8ee7531ced0c5642ce", "score": "0.5706636", "text": "public function isSuccess()\n {\n return false;\n }", "title": "" }, { "docid": "6e6b2678e213b32892467615a5f5819c", "score": "0.5696422", "text": "public function isOk()\n {\n return $this->status;\n }", "title": "" }, { "docid": "2741d1ac4cec11adf6c31deacf2da002", "score": "0.5693375", "text": "public static function customAssertSame($expected, $actual, $message = '') {\n\n if (!\\is_string($expected) || !\\is_string($actual)) {\n self::assertSame($expected, $actual, $message);\n }\n\n // Check if the actual code has a diff.\n $expected_despaced = str_replace(' ', '', $expected);\n $actual_despaced = str_replace(' ', '', $actual);\n if ($expected_despaced !== $actual_despaced) {\n self::assertSame($expected, $actual, $message);\n }\n\n // Make spaces visible.\n $expected_processed = str_replace(\"\\n\", \"\\\\n\\n\", $expected);\n $actual_processed = str_replace(\"\\n\", \"\\\\n\\n\", $actual);\n if ($expected_processed === $actual_processed) {\n self::assertSame($expected, $actual, $message);\n }\n\n self::assertSame($expected_processed, $actual_processed, $message);\n }", "title": "" }, { "docid": "6323fda58111df622c4e69ff7ac09c90", "score": "0.569273", "text": "public function getSuccess()\n {\n return $this->success;\n }", "title": "" }, { "docid": "6323fda58111df622c4e69ff7ac09c90", "score": "0.569273", "text": "public function getSuccess()\n {\n return $this->success;\n }", "title": "" }, { "docid": "6323fda58111df622c4e69ff7ac09c90", "score": "0.569273", "text": "public function getSuccess()\n {\n return $this->success;\n }", "title": "" }, { "docid": "6323fda58111df622c4e69ff7ac09c90", "score": "0.569273", "text": "public function getSuccess()\n {\n return $this->success;\n }", "title": "" }, { "docid": "ca126db0cdd5de17e807daa0a9993213", "score": "0.56926703", "text": "public function assertSame($expected, $actual, $message = null) {\n return $this->getScenario()->runStep(new \\Codeception\\Step\\Action('assertSame', func_get_args()));\n }", "title": "" }, { "docid": "341105ce27518871d0fd74c5f410ebe0", "score": "0.5692644", "text": "public function getSuccess(): bool\n {\n return $this->success;\n }", "title": "" }, { "docid": "c2b5eeff695fc7d4e5808d1c480b8bc8", "score": "0.56920445", "text": "public function isSuccessful()\n {\n return $this->getData()['ResponseCode'] == '00';\n }", "title": "" }, { "docid": "747fb13f5164424930a1accb76c3a280", "score": "0.5688726", "text": "public function isSuccess(): bool\n {\n }", "title": "" }, { "docid": "b5785c8eb1e12072193883beefc2d9f8", "score": "0.56844425", "text": "public function testCommandsSame(): void\n {\n $isCommandsSame = $this->subscriber->isSuccessful();\n\n self::assertTrue($isCommandsSame);\n }", "title": "" }, { "docid": "aeabacdd5bf332cffd82c9569de4fc6a", "score": "0.56673324", "text": "public function isSuccess()\n {\n return $this->result;\n }", "title": "" }, { "docid": "6dba03fbf2ce6369a97e03fa55be15fa", "score": "0.56565875", "text": "private function getSuccess() {\r\n\t\t\r\n\t\tglobal $wgScript, $wgScriptPath;\r\n\t\t\r\n\t\t$out = \"\r\n\t\t\t<p style=\\\"margin-bottom: 3px\\\"><font color=\\\"#008000\\\" size=\\\"4\\\"><b>Success</b></font></p>\r\n\t\t\t<table border=\\\"0\\\" cellpadding=\\\"0\\\" cellspacing=\\\"0\\\" width=\\\"100%\\\">\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td valign=\\\"top\\\" width=\\\"55\\\">\r\n\t\t\t\t\t\t<img border=\\\"0\\\" src=\\\"$wgScriptPath/extensions/UMEduWiki/images/success.png\\\">\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td>\r\n\t\t\t\t\t\t<p style=\\\"margin-left: 5px\\\"><b><i>The selected action has been successfully applied. Changes will be visible after you return to the previous page.</i></b><br />\r\n\t\t\t\t\t\t<a href=\\\"\".$wgScript.\"?title={$this->getTitle()->getPrefixedDBkey()}\\\">Return to Access control page</a>\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\t\t\t</table>\r\n\t\t\";\r\n\t\t\r\n\t\treturn $out;\r\n\t}", "title": "" }, { "docid": "67a11b7504204bab51cf8085c42ecaa7", "score": "0.56559575", "text": "public function isSuccessful(): bool\n {\n return $this->successful;\n }", "title": "" }, { "docid": "933cd853b9fe6a8304d776c2646589e4", "score": "0.56545854", "text": "public function testStatus() {\n if ( $this->testHas( 'expectedResponseStatus' ) ) {\n $flag = true;\n if ( isset( $this->fetchedResponse[ 'header' ][ 'http_code' ] ) ) {\n if ( $this->fetchedResponse[ 'header' ][ 'http_code' ] == $this->expectedResponseStatus ) {\n echo CLI\\success( \"✔ HTTP response status code matched.\" );\n CLI\\nl();\n } else {\n $flag = false;\n }\n } else {\n $this->fetchedResponse[ 'header' ][ 'http_code' ] = '';\n $flag = false;\n }\n if ( ! $flag ) {\n echo CLI\\danger( \"✘ HTTP response status code doesnt matched.\" );\n CLI\\nl();\n echo CLI\\warn( \"- Expected: \" . $this->expectedResponseStatus . \"\\tFound: \" . $this->fetchedResponse[ 'header' ][ 'http_code' ] );\n CLI\\nl();\n }\n if ( $this->testSuccess !== false ) $this->testSuccess = $flag;\n }\n }", "title": "" }, { "docid": "44d193cadb9c9d4d216c352ffb86fd7e", "score": "0.5651885", "text": "protected function assertEquals( $expected, $actual, $message = '' ) {\n\t\t$this->assertTrue( $expected == $actual, $message );\n\t}", "title": "" }, { "docid": "98bf8bbf5f59c2a739c60096d5a523a8", "score": "0.56513065", "text": "public function isSuccessful()\n {\n return $this->getStatus() == self::STATUS_SUCCESS;\n }", "title": "" }, { "docid": "afa8c189f418df051e2693377676f48d", "score": "0.5641742", "text": "public function isSuccess(): bool {\n return $this->errorMessage === null && $this->notices !== null;\n }", "title": "" }, { "docid": "d85a53e30d58c24439c238cfea77a4c7", "score": "0.5633209", "text": "public function testReturnsExampleMessage()\n {\n $example = new Example();\n\n $this->assertEquals('This is an example message.', $example->getMessage());\n }", "title": "" }, { "docid": "e3f3c5749139ea75cc1a87eff79f7970", "score": "0.5632584", "text": "public function isSuccessful()\n {\n return true;\n }", "title": "" }, { "docid": "a9acd17456b981dab2229d6659fc6556", "score": "0.56258464", "text": "public function isSuccessful()\n {\n return ($this->getStatus() === self::STATUS_SUCCESS);\n }", "title": "" }, { "docid": "41347dc2705c637e8dda5fa082cd6970", "score": "0.5618313", "text": "public function isSuccessful(): bool;", "title": "" }, { "docid": "41347dc2705c637e8dda5fa082cd6970", "score": "0.5618313", "text": "public function isSuccessful(): bool;", "title": "" }, { "docid": "77b703a719fa7e82697fa53890a1e2e7", "score": "0.56162035", "text": "public function isSuccess()\r\n {\r\n return $this->_success;\r\n }", "title": "" }, { "docid": "4d35eae36e2cf52b420f906606989c0d", "score": "0.56105196", "text": "public function success($msg)\r\n {\r\n return $this->message($msg, Message::TYPE_SUCCESS);\r\n }", "title": "" }, { "docid": "5562468c6791120929d39f890b66e45f", "score": "0.56052434", "text": "public function getOkText()\n {\n return $this->okText;\n }", "title": "" }, { "docid": "b30901269901dd2d0133a3c6fb13a510", "score": "0.56039655", "text": "protected function getSuccessMessage($password)\n {\n return \"[SUCCESS]: Password '$password' is valid\\n\";\n }", "title": "" }, { "docid": "e671514c450487e3362f06bdce8f05c1", "score": "0.55973274", "text": "public function success() {\n return $this->status;\n }", "title": "" }, { "docid": "69f66691c1dc76b75467331d0f5e5ad8", "score": "0.5589406", "text": "public function isEmailSendSuccessfully(){\n\n if ($this->sendStatus == 1){\n return 1;\n } else {\n return 0;\n }\n }", "title": "" }, { "docid": "f0b8c91800a1d4da9554da526de61108", "score": "0.5586356", "text": "public static function areEqual($value, $expected, $msg)\n\t{\n\t\tif ($value != $expected)\n\t\t{\n\t\t\tthrow new \\BuildException($msg);\n\t\t}\n\t}", "title": "" }, { "docid": "b42995817d89d42ec9326bd1f1ecd3b7", "score": "0.5585673", "text": "public static function success(string $message): int|false\n {\n return \\fwrite(STDOUT, \"\\033[32m\".$message.\"\\033[0m\\n\");\n }", "title": "" }, { "docid": "d089f3a2b991eda126faf4c102360300", "score": "0.5579612", "text": "public function assertEquals( $expected, $actual, $message = null )\n\t{\n\t\treturn $this->getScenario()->runStep( new \\Codeception\\Step\\Action( 'assertEquals', func_get_args() ) );\n\t}", "title": "" }, { "docid": "96240519a19c02b554bbed5273ed1ba8", "score": "0.55746305", "text": "public function testVerifyOk($testCase)\n {\n $validator = new SimpleValidator($this->getTranslator(), $this->getPresenceVerifier(), $this->getContainer());\n $this->assertTrue($validator->verify($testCase));\n }", "title": "" } ]
f977df4e71c8ede246d92b9eb42f8118
Remove customer from database
[ { "docid": "25c7ef075bcf65215121b7abde049401", "score": "0.61939967", "text": "public function removeCustomer($socialSecurityNumber) {\n $customer = [\"socialSecurityNumber\" => $socialSecurityNumber];\n\n // Remove customer from History table\n $historyQuery = \"UPDATE History SET renterHistory = NULL WHERE renterHistory = $socialSecurityNumber\";\n $historyStatement = $this->db->prepare($historyQuery);\n try {\n $historyStatement->execute($customer);\n } catch (PDOException $e) {\n die($e->getMessage());\n }\n\n // Remove customer from Customers table\n $customerQuery = \"DELETE FROM Customers WHERE socialSecurityNumber = :socialSecurityNumber\";\n $statement = $this->db->prepare($customerQuery);\n try {\n $statement->execute($customer);\n } catch (PDOException $e) {\n die($e->getMessage());\n }\n }", "title": "" } ]
[ { "docid": "2cb7ecc8821f6af9e556cb14a78b7e4e", "score": "0.77671075", "text": "public function CustomerDelete(){\n $cust_id = $_REQUEST['cust_id'];\n $this->Customer->DeleteCustomer($cust_id);\n }", "title": "" }, { "docid": "66cd6de0414d63410c408fe4fa42960c", "score": "0.74648255", "text": "public function removeCustomerData() {\n $this->db->set('is_deleted', 1);\n $this->db->where('id', $this->input->post('delcustomerid'));\n $this->db->where('is_deleted', 0);\n\n return $this->db->update('customer');;\n }", "title": "" }, { "docid": "50ac45744c613223c95ef4c3d361a1a5", "score": "0.7203854", "text": "public function delete()\n {\n $customer = customer::find(1); // find() method use for search data only using id not other column name or not id colum name if change\n // here write your activity perform code the delete record\n $customer->delete();\n \n // if you only want to delete record no activty perform before delete so delete like that\n // customer::destroy(2);\n \n \n }", "title": "" }, { "docid": "4791c20d6b3908f27e0a2e7359f21d6a", "score": "0.7166774", "text": "public function delete() {\n\n Db::getInstance()->Execute('DELETE FROM `'._DB_PREFIX_.'sn_customer` WHERE `id_customer` = '.(int)($this->id));\n return parent::delete();\n\n }", "title": "" }, { "docid": "faca8f16865f850efbf128106ebc671b", "score": "0.716322", "text": "public function delete_customer($param) {\r\n\t\t$this->_conn->comm(\"/tool/user-manager/customer/remove\", $param);\r\n\t\t$this->_conn->disconnect();\r\n\t\treturn array('success'=>1);\r\n\t}", "title": "" }, { "docid": "6f7ccb4c39b0d01e2f820318b36fbe05", "score": "0.70600694", "text": "public function clean(){\n\t\t$sql = 'DELETE FROM centro_custo';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->executeUpdate($sqlQuery);\n\t}", "title": "" }, { "docid": "a54bcef3d364db1c44001ed358de4d2f", "score": "0.70294964", "text": "public function removeCustomer($args)\n {\n return ;//todo $this->buildQuery('RemoveCustomer', $args);\n }", "title": "" }, { "docid": "cfb721e05ea6cbb9af62b8cb2d720337", "score": "0.6953851", "text": "public function delete_a_customer($a){\r\n\t\t\r\n\t\t//write the sql query to delete user\r\n\t\t$sql = \"DELETE FROM `customer` WHERE `customer_id` = '$a'\";\r\n\r\n\t\t//return the executed the query\r\n\t\treturn $this->db_query($sql);\r\n\t}", "title": "" }, { "docid": "be2f41f81b6fdaeed894aaf818ac4d8e", "score": "0.6951414", "text": "public static function deleteCustomer($data) {\n\t\t\t$id \t= $data['id'];\n\t\t\t$sql \t= \"DELETE FROM customer WHERE id = :id\";\n\t\t\t$stmt \t= DB::prepare($sql);\n\t\t\t$stmt->bindParam(\":id\", $id);\n\t\t\t$stmt->execute();\n\t\t\tif($stmt->rowCount() > 0){\n\t\t\t\techo '{ \"result\": \"Successfully Customer Deleted\" }';\n\t\t\t}else{\n\t\t\t\techo '{ \"result\": \"Something wrong\" }';\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "300689130232f731f6a3fc4dd03ed0a1", "score": "0.691876", "text": "public function deleteByCustomerId(int $customerId): void;", "title": "" }, { "docid": "c2256211657217445da9c7bf1048818a", "score": "0.68779975", "text": "public function destroy(customer $customer)\n {\n //\n }", "title": "" }, { "docid": "c2256211657217445da9c7bf1048818a", "score": "0.68779975", "text": "public function destroy(customer $customer)\n {\n //\n }", "title": "" }, { "docid": "8e3cf8965b73a91600dc2205e49a5c27", "score": "0.6875931", "text": "public function destroy(Customer $customer)\n {\n\n }", "title": "" }, { "docid": "41f5cab412737fe663f8e4d9a3e9bea8", "score": "0.67962694", "text": "public function destroy(Customer $Customer)\n {\n\n }", "title": "" }, { "docid": "136f8b01f10230df4bfb4d1a8cb1baf4", "score": "0.67892295", "text": "public function destroy(Customers $customers)\n {\n\n //\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "ca6765c6094626206ee9c32fa3f00a1f", "score": "0.67492676", "text": "public function deleteCustomer()\n { \n\t\tCustomer::find(Input::get('id'))->delete();\n\t\treturn Response::json(array('status' => 'deleted'),200);\n \n }", "title": "" }, { "docid": "b413acd49ee1dcd9382de85f4b17d813", "score": "0.67266774", "text": "public function destroy(Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "b413acd49ee1dcd9382de85f4b17d813", "score": "0.67266774", "text": "public function destroy(Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "b413acd49ee1dcd9382de85f4b17d813", "score": "0.67266774", "text": "public function destroy(Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "b413acd49ee1dcd9382de85f4b17d813", "score": "0.67266774", "text": "public function destroy(Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "b413acd49ee1dcd9382de85f4b17d813", "score": "0.67266774", "text": "public function destroy(Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "624cfbfa733839204798c8fd48e74885", "score": "0.66705996", "text": "public function delete()\r\n {\r\n $model = new CustomerModel();\r\n\r\n $model->loadData($this->request->all());\r\n $model->loadData($model->one(\"id = $model->id\"));\r\n\r\n echo $this->view(\"customerDelete\", \"main\", $model);\r\n }", "title": "" }, { "docid": "1631eefd25b381a2861973e273142b01", "score": "0.66108865", "text": "public function testCustomerRemove()\n {\n }", "title": "" }, { "docid": "dbdeb5c9c19f403b798853e3900b53be", "score": "0.6599242", "text": "public function deleteById($pricelistcustomersId);", "title": "" }, { "docid": "9c7eabc055e8f1c25cb1cdc6b6f97dba", "score": "0.6597504", "text": "public function delete_customer($id)\n {\n return $this->db->where('id', $id)->delete('zone_customer');\n }", "title": "" }, { "docid": "ac3756efd1d92b7e79839a9796f33bea", "score": "0.6591107", "text": "public function deleteCustomer($id){\n\n return $this->findBy(['id' => $id])->delete();\n }", "title": "" }, { "docid": "98c8a367d6f967aeaac93208293e5ba8", "score": "0.6583962", "text": "public function unsetCustomerId(): void\n {\n $this->customerId = [];\n }", "title": "" }, { "docid": "783f51535ea8d98ca4b137f59f129b52", "score": "0.65587693", "text": "public function destroy($id,n_adver_customer $n_adver_customer)\n {\n $del=$n_adver_customer->find($id);\n $del->delete();\n\n }", "title": "" }, { "docid": "9ecc3b88432fc765c627dbd71e6ecc0c", "score": "0.653631", "text": "public function delete_single_customer($cust_id)\n\t {\n\t\t \t $this->db->where(\"id\", $cust_id);\n\t\t\t $data_update = array('delete_flg' => '1');\n\t\t \t $this->db->update(\"clients\", $data_update);\n\t\t\t return 1;\n\t }", "title": "" }, { "docid": "ea0d7c97c0d320e4ff2d0fafa24bc75f", "score": "0.6507858", "text": "public function destroy(Customer $customer)\n {\n $customer->delete();\n }", "title": "" }, { "docid": "7db7ee8862629b29a6af98f725f340c6", "score": "0.64887226", "text": "public function deleteProcess()\r\n {\r\n $model = new CustomerModel();\r\n\r\n $model->loadData($this->request->all());\r\n\r\n if ($model->delete(\"id = $model->id\")) {\r\n Application::$app->session->setFlash('success', \"Uspesno obrisano!\");\r\n Application::$app->response->redirect(\"/customers\");\r\n }\r\n\r\n Application::$app->session->setFlash('errors', $model->errors);\r\n Application::$app->response->redirect(\"/customers\");\r\n }", "title": "" }, { "docid": "8084b8c66cf1e1cfa8a277abb440fc32", "score": "0.64883", "text": "public function destroy(customer $customer)\n {\n \n $customer->delete();\n return redirect('customer');\n\n }", "title": "" }, { "docid": "0f17dcbe10ce3540ceae3cf76af57108", "score": "0.6477259", "text": "public function delCC()\n {\n\n global $conn;\n\n $query = \"DELETE FROM persons_cc WHERE CCID = \" . (int)$_GET['CCID'] . \" AND PersonID = {$this->PersonID}\";\n $conn->query($query);\n }", "title": "" }, { "docid": "c6cce8aaedca30dc9c02c4b84cafc3c4", "score": "0.6469695", "text": "public function destory($params)\n {\n return Customer::findOrFail($params)->delete();\n }", "title": "" }, { "docid": "3f7cc826399c293fd9c233d5299f5dc5", "score": "0.64337206", "text": "public function deleteCustomer($id)\n {\n return $this->post('sync/customer/delete', array('id' => $id));\n }", "title": "" }, { "docid": "ad9b6ed6f5ae02474d1b7f170eddaed2", "score": "0.6408248", "text": "public function deleteAccount(){\n\t\tparent::delete(\"delete from personal_record where user_id = \" . $this->user_id);\n\t}", "title": "" }, { "docid": "9d29b67e00f8d60a1e2c6f6ef1f35002", "score": "0.6386172", "text": "function ec_delete_user($cid) {\n global $customer_id, $customers_default_address_id, $customer_first_name, $customer_country_id, $customer_zone_id, $comments;\n tep_session_unregister('customer_id');\n tep_session_unregister('customer_default_address_id');\n tep_session_unregister('customer_first_name');\n tep_session_unregister('customer_country_id');\n tep_session_unregister('customer_zone_id');\n tep_session_unregister('comments');\n\n tep_db_query(\"delete from \" . TABLE_ADDRESS_BOOK . \" where customers_id = '\" . (int)$cid . \"'\");\n tep_db_query(\"delete from \" . TABLE_CUSTOMERS . \" where customers_id = '\" . (int)$cid . \"'\");\n tep_db_query(\"delete from \" . TABLE_CUSTOMERS_INFO . \" where customers_info_id = '\" . (int)$cid . \"'\");\n tep_db_query(\"delete from \" . TABLE_CUSTOMERS_BASKET . \" where customers_id = '\" . (int)$cid . \"'\");\n tep_db_query(\"delete from \" . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . \" where customers_id = '\" . (int)$cid . \"'\");\n tep_db_query(\"delete from \" . TABLE_WHOS_ONLINE . \" where customer_id = '\" . (int)$cid . \"'\");\n }", "title": "" }, { "docid": "8fc8c145fccc2bf49bdbe90ca40ba6f5", "score": "0.63850564", "text": "public function delete($id){\n\t\t$sql = 'DELETE FROM centro_custo WHERE id = ?';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\t$sqlQuery->setNumber($id);\n\t\treturn $this->executeUpdate($sqlQuery);\n\t}", "title": "" }, { "docid": "e29768544600506c237cca81d5f1ec4c", "score": "0.6349424", "text": "public function deleteCustomer($EncryptCustomerID = null) {\n $this->autoRender = false;\n $this->layout = \"admin_dashboard\";\n $data['User']['store_id'] = $this->Session->read('admin_store_id');\n $data['User']['id'] = $this->Encryption->decode($EncryptCustomerID);\n $data['User']['is_deleted'] = 1;\n if ($this->User->saveUserInfo($data)) {\n $this->Session->setFlash(__(\"User deleted\"), 'alert_success');\n $this->redirect(array('controller' => 'customers', 'action' => 'index'));\n } else {\n $this->Session->setFlash(__(\"Some problem occured\"), 'alert_failed');\n $this->redirect(array('controller' => 'customers', 'action' => 'index'));\n }\n }", "title": "" }, { "docid": "4f31ba6ce043c51c0fde4c1bc387324b", "score": "0.63474905", "text": "public function removeFromDB()\n\t{\n\t\t// TODO complete\n\t}", "title": "" }, { "docid": "3de374418c1efb3982aaa9dd1906c1e1", "score": "0.6315559", "text": "public function del()\n {\n $pk = $this->Model->getPrimaryKey();\n $c = new Criteria();\n $c->add($pk, $this->data[$pk]);\n $this->Model->del($c);\n }", "title": "" }, { "docid": "185fdc5276a74776403e5f3a0f7a11ab", "score": "0.63081056", "text": "public function removeAccount();", "title": "" }, { "docid": "4030ce6cb164cd7b592e31695037c0b2", "score": "0.63057834", "text": "public function destroy(Customers $customer)\n {\n $customer->delete();\n return redirect('customers');\n }", "title": "" }, { "docid": "040bd8e51e1376343d126d49af20f9b9", "score": "0.63001424", "text": "public function deleteCustomersAction()\n {\n $id = $this->container->get('request')->get('id');\n \n $this->url = (string) $this->setGetContract->subUrlsCustomers . \"/$id\";\n $this->currentSubUrl = 'subUrlsCustomers';\n $this->datas = array();\n \n return $this->prepareRequest(); \n }", "title": "" }, { "docid": "e6c6063a93d551d4c9570e570b3fa0d7", "score": "0.62877256", "text": "public function testDeleteRelatedCustomer()\n {\n $client = $this->createAuthenticatedClient('admin@bilemo.com', 'password');\n $client->request(\n 'DELETE',\n '/api/customers/1'\n );\n $this->assertSame(Response::HTTP_NO_CONTENT, $client->getResponse()->getStatusCode());\n }", "title": "" }, { "docid": "f8ef50e9f9c2de9a3081503055046946", "score": "0.6279614", "text": "public function testDeleteCustomer()\n {\n }", "title": "" }, { "docid": "fbe6b7360ca5dd1f8bf70d2427147485", "score": "0.6275688", "text": "public function test_delete_customer() {\n\t\t$customer = CustomerHelper::create_customer( 'delete_customer_test', 'test123', 'delete_customer_test@woo.local' );\n\t\t$request = new WP_REST_Request( 'DELETE', '/wc/v4/customers/' . $customer->get_id() );\n\t\t$request->set_param( 'force', true );\n\t\t$response = $this->server->dispatch( $request );\n\t\t$this->assertEquals( 200, $response->get_status() );\n\t}", "title": "" }, { "docid": "564bdf6304c0be6cc0907918e31b40c2", "score": "0.62561", "text": "function removeDeliveryPerson($personid){\n $servername = \"localhost\";\n $username = \"jchen127\";\n $password = \"KbZFqBcZCy29b3Lx\";\n $dbname = \"mydb\";\n $conn = new mysqli($servername, $username, $password, $dbname);\n // Check connection\n if ($conn->connect_error) {\n die(\"Connection failed: \" . $conn->connect_error);\n }\n \n //remove the delivery person from the database\n $sql = \"delete from deliveryperson where dpid='$personid'\";\n if ($conn->query($sql) === TRUE) {\n echo \"Record deleted successfully\";\n} else {\n echo \"Error deleting record: \" . $conn->error;\n}\n \n \n \n $conn->close();\n }", "title": "" }, { "docid": "523ae27b9c29167b7fe81078ddadd1b6", "score": "0.6253205", "text": "public function delete($id, $uid) {\n\t\t//get models\n\t\t$this->Customer=ClassRegistry::init('Customer');\n\t\t$customer=$this->Customer->read(null,$id);\n\t\tif($customer) {\n\t\t\t//found ok\n\t\t\tif($customer['Customer']['active']) {\n\t\t\t\t//customer is active\n\t\t\t\t$customer['Customer']['active']=false;\n\t\t\t\t$customer['Customer']['deleted_id']=$uid;\n\t\t\t\tunset($customer['Customer']['modified']);\n\t\t\t\tunset($customer['CustomerDetail']);\n//debug($customer);exit;\n\t\t\t\treturn $this->Customer->save($customer);\n\t\t\t}//endif\n\t\t}//endif\n\t\treturn false;\n\t}", "title": "" }, { "docid": "66a97e7e758a1f1a66bba85a2c2ce277", "score": "0.62485474", "text": "function remove($cloudtransaction_id) {\n\t\t$db=htvcenter_get_db_connection();\n\t\t$rs = $db->Execute(\"delete from \".$this->_db_table.\" where ct_id=$cloudtransaction_id\");\n\t}", "title": "" }, { "docid": "67ac699f43190a2c06bb7fda6a13fcf2", "score": "0.6243597", "text": "public function destroy(Customer $customer,$id=0)\n {\n $tab=$customer::find($id);\n $invoice_date=date('Y-m-d',strtotime($tab->created_at));\n $Todaydate=date('Y-m-d');\n if((RetailPosSummaryDateWise::where('report_date',$Todaydate)->count()==1) && ($invoice_date==$Todaydate))\n {\n RetailPosSummaryDateWise::where('report_date',$Todaydate)\n ->update([\n 'customer_quantity' => \\DB::raw('customer_quantity - 1')\n ]);\n }\n RetailPosSummary::where('id',1)->update(['customer_quantity' => \\DB::raw('customer_quantity - 1')]);\n $tab->delete();\n \n\n $this->sdc->log(\"customer\",\"Customer account deleted.\");\n\n return redirect('customer/list')->with('status', $this->moduleName.' Deleted Successfully !');\n }", "title": "" }, { "docid": "b12a7ef5df52d03fa96b61778c736af9", "score": "0.62031215", "text": "public function destroy(Customer $customer) {\n\t\t$customer->delete();\n\t\treturn redirect('/admin/customer');\n\t}", "title": "" }, { "docid": "ffe8913e098ea18ba37a28c39ec14df3", "score": "0.6191472", "text": "public function delete_permanantly()\n {\n $id = $this->request->query('customer_id');\n $this->User->id = $id;\n if (!$this->User->exists()) {\n return json_encode(array(\n 'result' => 'error',\n 'msg' => 'Invalid user ID'\n ));\n }\n if ($this->User->delete($id)) {\n return json_encode(array(\n 'result' => 'success',\n 'msg' => 'Customer has been deleted'\n ));\n }\n }", "title": "" }, { "docid": "9b01580171eb0c36277da614ceb8a16b", "score": "0.6188381", "text": "function delete_uid() {\n $SQL = \"DELETE FROM session WHERE sid = '$this->SID' and name = 'cust_id' \";\n mysqli_query($this->link, $SQL);\n }", "title": "" }, { "docid": "a6bb2e3462a6af0226e974b216edc1ed", "score": "0.6187678", "text": "public function destroy($id)\n {\n $data = Customer::findOrFail($id);\n $data->delete();\n }", "title": "" }, { "docid": "ad73100c535e0ab6fe907cb058230777", "score": "0.61782485", "text": "public function delete()\n\t\t{\n\t\t$sql = \"DELETE FROM \".$this->table.$this->buildWhere;\n\t\t$this->regen();\n\t\t$this->query_db($sql);\n\t\t}", "title": "" }, { "docid": "8320ab4377803384b7ea53f66ca34626", "score": "0.61604744", "text": "public function delete() {\n EnrollmentBusinessUser::checkUnique($this->user_id, $this->business_id)->delete();\n }", "title": "" }, { "docid": "cbf59d9d956bd0d4c9b9e65a134a8a20", "score": "0.61538035", "text": "public function destroy($id)\n {\n $customer=user::where('id',$id)->first(); \n $customer->delete();\n Alert::success('Berhasil Dihapus');\n return redirect('/admin/data-customer');\n }", "title": "" }, { "docid": "272011e64457e19ed403f83eeb9fc086", "score": "0.61515117", "text": "public function destroy(Customer $customer)\n {\n try {\n // Recupero gli ordini collegati ai clienti (contratto) (N to N relationship)\n $orders = $customer->orders()->get();\n\n if ($orders) {\n $contractNumber = 0;\n foreach ($orders as $order) {\n if (count($order->customers()->get())) {\n $contractNumber = $order->customers()->first()->pivot->contract_id;\n\n # Commento perché è in softdelete\n // rimuovo il contratto tra ordine e customer dalla tabella pivot\n // $order->customers()->detach();\n }\n\n # Commento perché è in softdelete\n // // Controllo se l'ordine ha tags associati\n // if(count($order->tags()->get())){\n // // Dissocio i tags dall'ordine\n // $order->tags()->detach();\n // }\n }\n // Elimino gli ordini associati ai clienti\n $customer->orders()->delete();\n }\n\n // Elimino il cliente\n $customer->delete();\n\n if ($contractNumber) {\n return redirect()->route('customers.index')->withMessage('Customer deleted successfully. (Delete contract n° ' . $contractNumber . ')');\n } else {\n return redirect()->route('customers.index')->withMessage('Customer deleted successfully. (No orders)');\n }\n } catch (\\Throwable $th) {\n return redirect()->back()->with('msgError', 'Fatal error, contact the administrator');\n }\n }", "title": "" }, { "docid": "e7cb5dc5af592ab41554aaac010f0017", "score": "0.61463904", "text": "public function DeleteFromDB();", "title": "" }, { "docid": "45bd35892512d760a9678628d2ca1f3c", "score": "0.6143353", "text": "public function destroy(Request $request, Customer $customer)\n {\n dd('hi');\n //\n // dd($customer);\n // $customer->delete();\n // return redirect()->route('customers');\n }", "title": "" }, { "docid": "91f7b540716ad3e971ac07f546b71578", "score": "0.6142317", "text": "public function deleteByID($id){ \r\n\t\t$sql = \"\r\n\t\t\tDELETE\r\n\t\t\tFROM customer\r\n\t\t\tWHERE id =$id\";\r\n\r\n\t\t// Make a PDO statement\r\n\t\t$statement = DB::prepare($sql);\r\n\r\n\t\t// Execute\r\n\t\tDB::execute($statement);\r\n\t}", "title": "" }, { "docid": "8abc26853487845d195eb0cc02956561", "score": "0.61400706", "text": "public function Remove_Customer($customer_id)\n\t{\n\t\t\n\t\t\n\t\t$sql = \"\n\t\t\tDELETE FROM customer\n\t\t\tWHERE customer_id = ?\n\t\t\t\tAND company_id = ? \n\t\t\t\tAND NOT EXISTS (\n\t\t\t\t\tSELECT 'X'\n\t\t\t\t\tFROM application\n\t\t\t\t\tWHERE customer_id = ?\n\t\t\t\t)\n\t\t\";\n\t\t$st = $this->db->queryPrepared($sql, array($customer_id, $this->company_id, $customer_id));\n\t\treturn ($st->rowCount() !== 0);\n\t}", "title": "" }, { "docid": "fa6cf68cc29298961b411f803b408cae", "score": "0.6129686", "text": "function delUser($id){\n $bdd = co_db();\n $req = $bdd->query('DELETE FROM clients WHERE idclient = '.$id);\n return $req;\n}", "title": "" }, { "docid": "25e27fc1477541bf80dd90b5dda023d9", "score": "0.61254483", "text": "public function deleteCustomer($table, $customer_id) {\n $parameters = array(':customer_id' => $customer_id);\n return $this->customermodel->deleteEntry($table, $parameters);\n }", "title": "" }, { "docid": "8538fd920150010d32952713f8af8cfa", "score": "0.6119981", "text": "public function destroy($id)\n {\n //\n\n $customer = Customer::where('customerId',$id);\n if($customer){\n $customer->delete();\n }\n return redirect()->route('customer.index');\n }", "title": "" }, { "docid": "2f27a7aff074579c1aafd08494cfdb90", "score": "0.6103765", "text": "public function delete()\n {\n $db = new DB();\n $db->query('DELETE FROM `' . $this->getTable() . '` WHERE `' . $this->getTable() . '`.`id` = :id', array(':id' => $this->getId()));\n }", "title": "" }, { "docid": "aaa80df76022d3e03b77291c0ac2e4fc", "score": "0.61007476", "text": "public function remove()\n {\n $sql = \"DELETE FROM cartridge WHERE id=?\";\n $this->dbObj->runQuery($sql, array(\n $this->getId()\n ));\n }", "title": "" }, { "docid": "6b7d8f8addcf0d869dc5776773cbcf1a", "score": "0.6095787", "text": "public function delete() {\n\t\t$sql = 'DELETE FROM ' . $this->table;\n\t\t$sql .= self::sql_where($this->wheres);\n\t\tself::query($sql);\n\t}", "title": "" }, { "docid": "3dcc557565cde18391b999c72e0f693d", "score": "0.60810816", "text": "public function delete()\n\t{\n\t\t$sql = 'DELETE FROM ' . $this->table_name . '\n\t\t\tWHERE user_id = ' . $this->user_id;\n\t\t$this->db->sql_query($sql);\n\t}", "title": "" }, { "docid": "54b8f0db7da3a29f61415fefe61efa74", "score": "0.60790217", "text": "public function destroy(Request $request,$id)\n {\n\n \n $user = customer::find($id);\n $user->delete();\n return redirect(\"showall\"); \n }", "title": "" }, { "docid": "a30dc66c2f72d16fa38f78bb82f85819", "score": "0.6067587", "text": "public static function clearDown()\n {\n return static::where('user_id', auth()->user()->id)->where('customer_code', auth()->user()->customer->code)\n ->delete();\n }", "title": "" }, { "docid": "634c8f9c50d8cdbe44c81315cbe30715", "score": "0.60671467", "text": "public\n function destroy(Customer $customer)\n {\n $customer->delete();\n return redirect()->route('customers.index')->with('success', __('Customer has been deleted successfully'));\n }", "title": "" }, { "docid": "7202d088a523b9f9990ac95257e4cdad", "score": "0.60581803", "text": "public function delete() {\n $this->db->delete($this::DB_TABLE, array(\n $this::DB_TABLE_PK => $this->{$this::DB_TABLE_PK},\n ));\n unset($this->{$this::DB_TABLE_PK});\n }", "title": "" }, { "docid": "2e0e20a65b529470da1a4dd70d74d265", "score": "0.60509557", "text": "public function delete( $customer_info = [] )\n\t\t{\n\t\t\t\t$this->data['params'] = json_encode( $customer_info );\n\t return $this->curl( 'Customer/delete_customer', $this->data );\n\t\t}", "title": "" }, { "docid": "d9a6e6831b8f9751a10e298e43123df2", "score": "0.60427594", "text": "public function deleteCustomerPayment(Request $req){\n \\DB::transaction(function()use($req){\n // get payment\n $payment = \\DB::table('customer_invoice_payment')\n ->find($req->payment_id);\n\n // update status customer_invoice\n // \\DB::table('customer_invoice')\n // ->where('id',$payment->customer_invoice_id)\n // ->update([\n // 'status' => 'O',\n // 'amount_due' => \\DB::raw('amount_due + ' . $payment->payment_amount)\n // ]);\n\n // delete datta payment customer\n \\DB::table('customer_invoice_payment')->delete($req->payment_id);\n });\n \n }", "title": "" }, { "docid": "b5a60e1557856a6434d995f3817a8171", "score": "0.60427177", "text": "public function DeleteCustomerApi()\n {\n $id = \"\";\n $method = $_SERVER['REQUEST_METHOD'];\n if($method != 'POST'){\n json_output(400,array('status' => 400,'message' => 'Bad request.'));\n } else {\n $received_Token = $this->input->request_headers('Authorization');// get token\n if(!isset($received_Token['Token'])){\n json_output(400,array('status' => 401,'message' => 'Unauthorized'));\n }else{ \n $this->GetTokenData();\n if(isset( $_REQUEST['id']) && !empty( $_REQUEST['id'])){\n $id = $_REQUEST['id'];\n $response = $this->ApiModel->DeleteCustomer($id);//delete record from db\n echo json_output($response['status'],$response);\n }else{\n json_output(201,array('status' => 201,'message' => 'please provide record details !')); \n }\n\n \n }\n }\n }", "title": "" }, { "docid": "4d7bc884d68c25a7b7e4bc3e6cb589a8", "score": "0.6037388", "text": "function delete() {\n\t\t$sql = \"DELETE FROM umuser\n\t\t\t\tWHERE UsID=?\";\n\t\t \n\t\t$this->ums->query($sql, array($this->UsID));\n\t}", "title": "" }, { "docid": "398ff84e89ec2f6594f101e57b80da33", "score": "0.60359764", "text": "public function delete()\n {\n $query = 'DELETE FROM users WHERE id = :id';\n $rowCount = $this->db->delete($query, [':id' => $this->getId()]);\n }", "title": "" }, { "docid": "315163fd5c15a2d92c92a665d3f99b79", "score": "0.6027289", "text": "public function deleteAction() {\r\n if ($this->getRequest()->getParam('id') > 0) {\r\n try {\r\n $model = Mage::getModel('customerfollowup/customerfollowup');\r\n\r\n $model->setId($this->getRequest()->getParam('id'))\r\n ->delete();\r\n\r\n Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Follow Up customer was successfully deleted'));\r\n $this->_redirect('*/*/');\r\n } catch (Exception $e) {\r\n Mage::getSingleton('adminhtml/session')->addError($e->getMessage());\r\n $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));\r\n }\r\n }\r\n $this->_redirect('*/*/');\r\n }", "title": "" }, { "docid": "a92ad1e469b07aa5df7600678a6867e7", "score": "0.60154015", "text": "public function destroy(Customer $customer)\n {\n if ($customer->delete()) {\n return 1;\n }\n\n return 0;\n }", "title": "" }, { "docid": "0bb76ed652c3932f917da87b8bc232ba", "score": "0.60105145", "text": "public function deleteManageCustomersAction($id)\n\t\t{\n\t\t\t\n\t\t\t\t$em = $this->getDoctrine()->getEntityManager();\n\t\t\t\t\t$del = $em->getRepository('SalonSolutionAdminBundle:SalonsolutionsUser')->find($id);\t\t\t\t\n\t\t\t\n\t\t\t\tif ($del) {\n\t\t\t\t\t\t$em->remove($del);\n\t\t\t\t\t\t$em->flush();\n\t\t\t\t\t\t\treturn $this->redirect($this->generateUrl('salon_solution_admin_manageCustomers')); // redirect the page\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //echo \"<pre>\"; print_r($deleteManageCoustomer); die;\n\t\t\t\n\t\t\treturn $this->render('SalonSolutionAdminBundle:Page:delete_manage_coustumer.html.twig');\n\t\t}", "title": "" }, { "docid": "a294c8185b144a8164cea272f3f88d78", "score": "0.6009839", "text": "function delete($customer_id)\n\t{\n\t\t$customer_info = $this->Customer->get_info($customer_id);\n\t\n\t\tif ($customer_info->image_id !== NULL)\n\t\t{\n\t\t\t$this->load->model('Appfile');\n\t\t\t$this->Person->update_image(NULL,$customer_id);\n\t\t\t$this->Appfile->delete($customer_info->image_id);\t\t\t\n\t\t}\t\t\t\n\t\t\n\t\t$this->db->where('person_id', $customer_id);\n\t\treturn $this->db->update('customers', array('deleted' => 1));\n\t}", "title": "" }, { "docid": "1c47a1e80eca0cb29f4a0d4798e9e9b3", "score": "0.60061955", "text": "public function destroy(Customer $customer)\n {\n $customerName = $customer->firstname . ' ' . $customer->lastname;\n Customer::destroy($customer->id);\n return Redirect::route('customer.index')->with('customerName', $customerName);\n }", "title": "" }, { "docid": "cf3e0495d18f4efe0be803e8de159b3a", "score": "0.6000059", "text": "public function removeItem(){\r\n \r\n $query=\"delete from \".$this->table_name.\" where userId=? and catalogNumber=?\";\r\n\r\n $stmt=$this->conn->prepare($query);\r\n\r\n $this->catalogNumber=htmlspecialchars(strip_tags($this->catalogNumber));\r\n $this->userId=htmlspecialchars(strip_tags($this->userId));\r\n\r\n $stmt->bind_param(ii,$this->userId,$this->catalogNumber);\r\n\r\n if($stmt->execute()) return true;\r\n return false;\r\n\r\n\r\n }", "title": "" }, { "docid": "459d70ead4fe8e7f483f1566ee4faad2", "score": "0.5985919", "text": "public function destroy(Customer $customer)\n {\n $customer->delete();\n Session::flash('message','Data Deleted Successfully');\n Session::flash('alert-class','alert-danger');\n return redirect('customer');\n }", "title": "" }, { "docid": "b51f1512bff7b18ac24ef6dfbfd790a7", "score": "0.5984482", "text": "public function delete() {\n\t\tunset(OrderPerson::$rawOrderPersons[$this->idOrderPerson]);\n\t}", "title": "" }, { "docid": "239451352a3a57b7a8d1f66745967005", "score": "0.598067", "text": "public function destroy($id)\n {\n //Hapus Table Berdasarkan Id yang Dipilih\n DB::table('customer')->delete()\n ->where('id',$id);\n\n //Landing Page\n return redirect ('customermodel');\n }", "title": "" }, { "docid": "f9542fdb1a4e681d90708d514d504e0a", "score": "0.59767056", "text": "function deleteCustomer($id, $connection) {\n \n //Delete customer shopping cart:\n $stmt = $connection->prepare(\"DELETE FROM ShoppingCart WHERE cid=?\");\n $deleteCustID = $id;\n\t$stmt->bind_param(\"s\", $deleteCustID);\n\t$stmt->execute();\n\t \n\t// Print success or error message\n\tif($stmt->error) {\n\t printf(\"<h3>Error: %s.</h3>\\n\", $stmt->error);\n\t}\t\n\t$stmt->close();\n\n\t// Create a delete query prepared statement with a ? for the title_id\n $stmt = $connection->prepare(\"DELETE FROM Customer WHERE cid=?\");\n $deleteCustID = $id;\n\n // Bind the title_id parameter, 's' indicates a string value\n\t$stmt->bind_param(\"s\", $deleteCustID);\n\n\t// Execute the delete statement\n\t$stmt->execute();\n\t \n\t// Print success or error message\n\tif($stmt->error) {\n\t printf(\"<h3>Error: %s.</h3>\\n\", $stmt->error);\n\t} else {\n\t echo \"<h3>We've successfully removed customer with ID \".$id.\". No hard feelings! :'(</h3>\";\n\t}\n\t$stmt->close();\n}", "title": "" }, { "docid": "0e4be22180ac2cbb3fd23bfe76df4a64", "score": "0.59764504", "text": "public function destroy($id)\n {\n $customer= Customer::find($id);\n $address_id=$customer->address_id;\n \n $address = Address::find($address_id);\n $city_id=$address->city_id;\n\n $city = City::find($city_id); \n $city->delete();\n\n Session::flash('message','Cliente eliminado correctamente');\n return Redirect::to('admin/customers');\n }", "title": "" }, { "docid": "710a34ff02f14d919cec5351f06b0ef5", "score": "0.59688", "text": "public function delete($id) \r\n\t{\r\n \t$tot = $this->Model_customer->partner_check($id);\r\n \tif(!$tot) {\r\n \t\tredirect(base_url().'admin/customer');\r\n \texit;\r\n \t}\r\n\r\n \r\n\r\n $this->Model_customer->delete($id);\r\n redirect(base_url().'admin/customer');\r\n }", "title": "" }, { "docid": "79ba7d400071fe4e29e6a813a88035bd", "score": "0.5966552", "text": "public function destroy(Customer $customer)\n {\n $customer->delete();\n \n return redirect()->route('admin.customer.index')\n ->with('success','Customer deleted successfully');\n \n }", "title": "" }, { "docid": "546585138a142f51f9f772d514cdada8", "score": "0.59610814", "text": "public function delete()\n {\n $this->db\n ->where($this->primary_key, $this->getPrimaryKeyValue())\n ->delete($this->table);\n }", "title": "" }, { "docid": "7c5122a6278fddea3138e6710ef37611", "score": "0.5960887", "text": "public function deleteAction()\n {\n $request = $this->getRequest();\n $act = $request->getParam('Act');\n $customerAccountIds = $request->getParam('CustomerAccountIds');\n $customerAccountNames = $request->getParam('CustomerAccountNames');\n $deleted = implode(',',$customerAccountNames);\n\n if ('delete' == $act) {\n Streamwide_Web_Log::debug('delete customer actual');\n $pagination['CurrentPage'] = $request->getParam('CurrentPage',SwIRS_Web_Request::CURRENT_PAGE);\n $pagination['ItemsPerPage'] = $request->getParam('ItemsPerPage',SwIRS_Web_Request::ITEMS_PER_PAGE);\n\n foreach ($customerAccountIds as $customerAccountId) {\n $result = Streamwide_Web_Model::call('Customer.Delete', array($customerAccountId));\n }\n Streamwide_Web_Log::debug(\"deleted customer $deleted\");\n $this->view->assign(array(\n 'DeletedCustomerAccounts' => $deleted,\n 'Pagination' => $pagination\n ));\n $this->getHelper('viewRenderer')->direct('delete-ack');\n } else {\n Streamwide_Web_Log::debug('delete customer modal window');\n $this->view->assign('DeletedCustomerAccounts',$deleted);\n }\n }", "title": "" }, { "docid": "617b2be3ab420be721ade49c686c7efc", "score": "0.59561235", "text": "public function remove()\n {\n\t\t$id = request('id');\n\n \t$row = $this->findIdValidator($id);\n\n \t$r = $row ? $row->delete() : false;\n\n \t$this->resultReturn($r);\n }", "title": "" }, { "docid": "a9d2b114ea859b0b458d42f76efba56e", "score": "0.5948767", "text": "public function delete_customer($first,$last)\n{\n\t$first = urldecode($first);\n\t$last = urldecode($last);\n\t$this->load->model('customers');\n\t$this->customers->delete_customers($first,$last);\n\t$this->load->view('main');\n}", "title": "" }, { "docid": "2c8357943bb786adc55ecda82c3a59ba", "score": "0.59450936", "text": "public function run(){\n Capsule::schema()->dropIfExists('data_customer_items');\n\n Capsule::schema()->dropIfExists('data_customer');\n Capsule::schema()->create('data_customer', function($table){\n $table->increments('id_customer');\n $table->integer('id_auth');\n $table->string('full_name');\n $table->string('email');\n $table->string('tlpn');\n $table->string('address');\n $table->timestamps();\n });\n }", "title": "" }, { "docid": "e2f86a91b3b8fe767a35a4492c5a93b1", "score": "0.5944108", "text": "public function delete()\n {\n $db = Db::getInstance();\n // we make sure $id is an integer\n $id = intval($this->id);\n $req = $db->prepare('DELETE FROM Users WHERE id = :id');\n // the query was prepared, now we replace :id with our actual $id value\n $req->execute(array('id' => $id));\n }", "title": "" }, { "docid": "ddfa7421ac5ee8050c9441ad382f770d", "score": "0.59432876", "text": "public function remove($id) {\n $id = $this->db->escape($id);\n// create the query string\n $query = \"DELETE FROM Users WHERE user_id = $id\";\n return $this->db->query($query);\n}", "title": "" }, { "docid": "a03ad88ffbe09f87db984a629e3ccbe8", "score": "0.5939679", "text": "public function logoutCustomer()\n {\n Mage::getSingleton('customer/session')->logout();\n }", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "2d5a136e03ba6d4e56714b3d310f941e", "score": "0.0", "text": "public function show($id)\n {\n $surveyanswer = SurveyAnswer::findOrFail($id);\n\n return view('survey-answer.show', compact('surveyanswer'));\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e5152a75698da8d87238a93648112fcf", "score": "0.72897154", "text": "function display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->fetch($resource_name, $cache_id, $compile_id, true);\n }", "title": "" }, { "docid": "e5152a75698da8d87238a93648112fcf", "score": "0.72897154", "text": "function display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->fetch($resource_name, $cache_id, $compile_id, true);\n }", "title": "" }, { "docid": "ddf04ce79355e6393b4e16ac5ca5339b", "score": "0.72854424", "text": "public function show(Resource $resource)\n {\n return $resource;\n }", "title": "" }, { "docid": "b1f9ad094841da4c93bfc71c1fe290ee", "score": "0.7228577", "text": "function resourceAction() {\n\t\t$model = new Resources;\n\t\t$model->output( $_GET['resource'] );\n\t\texit();\n\t\tif (isset($_GET['resource'])) {\n\t\t\tResources::output();\n\t\t}\n\t}", "title": "" }, { "docid": "675560eedfc7019d4f6a3a8ccf4380ae", "score": "0.7058661", "text": "public function show($resource, $resourceId)\n {\n return view('microboard::resource.show', compact('resource', 'resourceId'));\n }", "title": "" }, { "docid": "2ef8aa5a12fe505c49b213bd0bde4d8c", "score": "0.6679027", "text": "public function show(Resource $Resource)\n {\n\t\t\t\t$Actions = Action::all()->toArray();\n return view('resource.show',compact(\"Resource\",\"Actions\"));\n }", "title": "" }, { "docid": "dfd1e41399b89992277d2f4181b60c74", "score": "0.66665685", "text": "public function index($resource)\n {\n return view('microboard::resource.index', compact('resource'));\n }", "title": "" }, { "docid": "dda8eb008b6dd683d8a6d910da413069", "score": "0.6562032", "text": "public function show(Resource $resource)\n {\n return Storage::download($resource->file);\n }", "title": "" }, { "docid": "5dbe1076e63c172c2caafb4d8a1cf41a", "score": "0.63623476", "text": "public function show($id)\n {\n $resource = MyResource::find($id);\n if ($resource != null) {\n return view('resources.show', compact('resource'));\n }\n return abort(404, 'Resource Not Found!');\n }", "title": "" }, { "docid": "45a73038dfd7440f98b74e8f017c5dbf", "score": "0.6339965", "text": "function viewItem($pResourceId = null) {\n if (isset($pResourceId) && is_numeric($pResourceId) && ($pResourceId > 0)) {\n $this->load->model('findaids/FindingAidsItemDAO');\n $data['resource'] = $this->FindingAidsItemDAO->getItem($pResourceId); //get the resource data from the database\n }\n else {\n $data['msg'] = 'Resource not found';\n }\n \n $this->display('findaids/viewItem', $data);\n }", "title": "" }, { "docid": "62fef0174aa48ad81f97f645799dda19", "score": "0.62100685", "text": "public function show($id)\n {\n //\n\t\treturn Resource::find($id);\n }", "title": "" }, { "docid": "040327f0d952b093f5c02dfe2fde04db", "score": "0.611832", "text": "public function show($id) {\n ${$this->resource} = $this->model->findOrFail($id);\n\n return view($this->view_path . '.show', compact($this->resource));\n }", "title": "" }, { "docid": "4acc522a1cb2928143f0fad96697ebf3", "score": "0.60883623", "text": "public function show(Request $request, $client, $resource)\n\t{\n\t\t$resource = Resource::findBySlug($client, $resource);\n\n\t\tif (!$resource) {\n\t\t\treturn response(view('resources.404'), 404);\n\t\t}\n\n\t\t$this->authorize('view', $resource);\n\n\t\t$resource->load('client', 'tags', 'type');\n\n\t\treturn view('resources.show', ['resource' => $resource]);\n\t}", "title": "" }, { "docid": "a8c35455a5242ccc9e930e21edd43e0b", "score": "0.6043974", "text": "function display($resource_name, $cache_id = null, $compile_id = null, $display = false) {\n\t\t\n\t\t// attempt to load the theme's requested template\n\t\tif (!is_file($this->template_dir.'/'.$resource_name) and substr($resource_name,0,5) != 'file:')\n\t\t\t// template file not existant in theme, fallback to \"default\" theme\n\t\t\tif (!is_file($this->_themeDir.'default/'.$resource_name))\n\t\t\t\t// requested template file does not exist in \"default\" theme, die.\n\t\t\t\tdie('<img src=\"'.bm_baseUrl.'themes/shared/images/icons/alert.png\" align=\"middle\">'.$resource_name.': '._T('Template file not found in default theme.'));\n\t\t\telse\n\t\t\t\t$resource_name = $this->_themeDir.'default/'.$resource_name;\n\t\t\n\t\tglobal $poMMo;\n\t\tif ($poMMo->_logger->isMsg()){ \n\t\t\t$this->assign('messages',$poMMo->_logger->getMsg(false,false));\n }\n\t\tif ($poMMo->_logger->isErr())\n\t\t\t$this->assign('errors',$poMMo->_logger->getErr(false,false));\n\t\t\n\t\treturn parent::display($resource_name, $cache_id = null, $compile_id = null, $display = false);\n\t}", "title": "" }, { "docid": "f7c05d96e66a9dcdda46564a24504d64", "score": "0.603562", "text": "public function show($id)\n {\n $model = $this->resourceModel::find($id);\n\n $this->beforeShow($model);\n\n if (!is_null($this->relatedModel) && !$model->relationLoaded($this->relatedModel)) {\n $model->load($this->relatedModel);\n }\n\n $this->viewData['resourceData'] = $model;\n\n return view(\n \"{$this->viewBaseDir}.{$this->viewFiles['show']}\",\n $this->viewData\n );\n }", "title": "" }, { "docid": "0a686d0ac05d929e084eb5f40c6c52cf", "score": "0.59964097", "text": "public function show(Restify $restify)\n {\n //\n }", "title": "" }, { "docid": "395de905ba7e4d06210c28e4bf02fc77", "score": "0.59784734", "text": "public function show( )\n\t{\n\t}", "title": "" }, { "docid": "f92fbb1cbd7db59751764b73789cea6c", "score": "0.59730935", "text": "public function actionView()\n {\n if (!Parameters::hasParam('type'))\n throw new APIException('Invalid resource TYPE (parameter name: \\'type\\')', APIResponseCode::API_INVALID_METHOD_PARAMS);\n \n if (!Parameters::hasParam('id'))\n throw new APIException('Invalid resource IDENTIFICATOR (parameter name: \\'id\\')', APIResponseCode::API_INVALID_METHOD_PARAMS);\n \n $resource_type = Parameters::get('type');\n\n $finder = new YiiResourceFinder($resource_type);\n $object = $finder->findById(Parameters::get('id'));\n\n $format = Parameters::hasParam('format') ? Parameters::get('format') : 'json';\n $coder = ObjectCodingFactory::factory()->createObject($format);\n if ($coder === null)\n throw new APIException('Invalid Coder for format', APIResponseCode::API_INVALID_CODER);\n \n $response = $coder->encode($object->getAttributes());\n die($response);\n }", "title": "" }, { "docid": "1e891653b5f4912aa409c758d50a1b98", "score": "0.5965172", "text": "function display()\n\t{\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "title": "" }, { "docid": "bdefca54eb98b7da00ba328f778b1d62", "score": "0.5963372", "text": "public function show() {\r\n $this->_handleThumbRequest();\r\n $this->_setOutputHeaders();\r\n\r\n // Show image\r\n if ($this->_cache) {\r\n // Note to developers:\r\n // If you are using some sort of _GET, _POST, _COOKIE, ... parameters to set\r\n // the cache path or the root path, make sure you sanity check the path's so\r\n // file_get_contents doesn't ouput any other file on your server!\r\n //\r\n // By default the _cachePath is created in PHP and _cachedFileName is a md5 hashed string\r\n // and normally you shouldn't run into security issues here\r\n echo file_get_contents($this->_cachePath.$this->_pathSeparator.$this->_cachedFileName);\r\n } else {\r\n $this->_toImage($this->_image);\r\n }\r\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5954321", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "3ff943e72bc423e0031ca638d0459516", "score": "0.59518224", "text": "public function Display()\n {\n // by application template)\n }", "title": "" }, { "docid": "711b3e79a897f1435b168cf31d7bbc46", "score": "0.5939425", "text": "public function show($id)\n {\n // Get the resource using the parent API\n $object = $this->api()->show($id);\n\n // Render show view\n $data = [Str::camel($this->package) => $object];\n return $this->content( 'show', $data );\n }", "title": "" }, { "docid": "10dda82513aea0f93ead687a2ff8c827", "score": "0.5917097", "text": "public function show() {\n if (!$this->resource) return false;\n header(\"Content-Type: \" . $this->mime);\n switch ($this->ext) {\n case \"jpeg\":\n imagejpeg($this->resource);\n break;\n case \"png\":\n imagesavealpha($this->resource, true);\n imagepng($this->resource);\n break;\n }\n }", "title": "" }, { "docid": "6ba059f4682aab8baf61ec9d7bd7aa2f", "score": "0.59067607", "text": "public function showAction($id){\n $data = $this->getData();\n //returns object and renders it to a Twig file\n return $this->app['twig']->render('show.twig.html', array('item' => $data[$id],'id'=>$id));\n }", "title": "" }, { "docid": "a4e858e0516451a1779fc03420ea9ca6", "score": "0.58891064", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('DevPCultBundle:Representation')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Representation entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('DevPCultBundle:Representation:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(), ));\n }", "title": "" }, { "docid": "165e57248abdff75085b534357be6960", "score": "0.5881089", "text": "public function show() {\r\n // feel free to change this method if it is ever needed\r\n abort(404);\r\n }", "title": "" }, { "docid": "1346e215e2992fa9399bf2d0e2cefa29", "score": "0.5880812", "text": "public function showAction($id)\n {\n # code...\n }", "title": "" }, { "docid": "d6af1b1d4946c54112fc9b7ca038cb20", "score": "0.58112013", "text": "public function display()\n\t{\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "305f64db85d64f68019d2fadcd0a85d2", "score": "0.58012545", "text": "public function show()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "3561014ddd4ab65fe67a18e78c535e0f", "score": "0.57959795", "text": "public function show()\n {\n // get data\n $data = $this->model->get();\n\n // print_r($data); die();\n\n // render data\n $this->twig->render($this->template, $data);\n }", "title": "" }, { "docid": "18dc3859862f1c173af6767cfb82607b", "score": "0.5793224", "text": "public function act(Resource $resource): void;", "title": "" }, { "docid": "63925fbab89765f6ec514208a03fc871", "score": "0.5787218", "text": "public function edit(Resource $resource)\n {\n return view('resource.edit', compact('resource'));\n }", "title": "" }, { "docid": "e7bae91f4e998eac5e73657c932c48d7", "score": "0.5752467", "text": "public function show($id) {\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "e3b51ebfe04703c114ab39fc729ba43b", "score": "0.5749091", "text": "public function show(Entry $entry)\n {\n //\n }", "title": "" }, { "docid": "8f15cdd2f287675d36c7b7df028043ec", "score": "0.5736634", "text": "public function show($id)\n\t{\n\t//\n\t}", "title": "" }, { "docid": "8f15cdd2f287675d36c7b7df028043ec", "score": "0.5736634", "text": "public function show($id)\n\t{\n\t//\n\t}", "title": "" }, { "docid": "8f15cdd2f287675d36c7b7df028043ec", "score": "0.5736634", "text": "public function show($id)\n\t{\n\t//\n\t}", "title": "" }, { "docid": "9b77148c668e41a20410842157f00e5a", "score": "0.5732526", "text": "public function showAction()\r\n {\r\n $id = $this->getRequest()->getParam('id');\r\n if ($id > 0) {\r\n $post = $this->Surveys->loadData($id);\r\n $this->view->survey = $post;\r\n }\r\n else $this->view->message = 'The post ID does not exist';\r\n }", "title": "" }, { "docid": "4de13c28a63d7306cf639907e8ef1d9c", "score": "0.57274294", "text": "public function edit($resource, $resourceId)\n {\n return view('microboard::resource.edit', compact('resource', 'resourceId'));\n }", "title": "" }, { "docid": "82d1ab8dceb8c3af6887aff2ec025a2a", "score": "0.5725802", "text": "public function resolveForDisplay($resource)\n {\n if (is_callable($this->displayCallback)) {\n $this->value = call_user_func($this->displayCallback, $resource[$this->attribute]);\n } else {\n $this->value = $resource[$this->attribute];\n }\n }", "title": "" }, { "docid": "20397e06b8673db8692c5f84120c3011", "score": "0.5724891", "text": "public function show()\n\t{\n\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "d0e3eeb22ea781b9d946b9eabd93bb46", "score": "0.57204515", "text": "public function show()\n {\n $fileType = pathinfo($this->_fullPath, PATHINFO_EXTENSION);\n $contentType = '';\n switch ($fileType) {\n case 'jpg':\n $contentType = 'image/jpeg';\n break;\n case 'png':\n $contentType = 'image/png';\n break;\n }\n\n if (!$contentType) {\n return;\n }\n\n header(\"Content-Type: {$contentType}\");\n echo file_get_contents($this->_fullPath);\n }", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "cb9307a32f6d22a33b956aed56db49ba", "score": "0.5717934", "text": "public function show($id)\n\t{\n\t\t//\n\t\t\n\t}", "title": "" }, { "docid": "cb9307a32f6d22a33b956aed56db49ba", "score": "0.5717934", "text": "public function show($id)\n\t{\n\t\t//\n\t\t\n\t}", "title": "" }, { "docid": "f2d9ca8da2ec54369857c7069cea0429", "score": "0.57117283", "text": "public function show()\n\t{\n\t}", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "560ae0fd472bad5f1d21beeed5dfbbdd", "score": "0.57012135", "text": "public function show(){}", "title": "" }, { "docid": "d5b3a480445ab1fbb2e08bd3242ca940", "score": "0.56927294", "text": "abstract public function get($resource, $id);", "title": "" }, { "docid": "70b16164ff10f28b63f2a72c5d91047b", "score": "0.56880486", "text": "public function show($id)\n\t{\n\t\t// \n\t}", "title": "" }, { "docid": "7580b6a8a70ffcf0c85b9c5fd2d164c8", "score": "0.56878597", "text": "public function show($id)\n\t{\t\n\t\t\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" } ]
709418f103b38c7d1238ac69cc13e596
Read the skin definition file, get all defined templates and store definitions. NOTE: Collisions are treated as follows. Numeric indices will always be appended, no matter what, while textual indices will get replaced. This allows the user to decide wether to create an 'anonymous' association (numbered index) or a named association (textual index) with a stylesheet. So in a derived template the user may decide for himself what element to take and what to drop.
[ { "docid": "368f3ebab524771de8b4782dbf1737dc", "score": "0.0", "text": "protected function _getConfigurations(): array\n {\n if (empty($this->_configurations)) {\n\n $skinName = $this->getName();\n\n // Load Defaults first\n if ($skinName !== 'default') {\n $this->_configurations['default'] = $this->_loadConfiguration('default');\n }\n\n // Now load extensions where available\n $this->_configurations[$skinName] = $this->_loadConfiguration($skinName);\n }\n return $this->_configurations;\n }", "title": "" } ]
[ { "docid": "a4c04cc1dd7833cdaed6e48c18c3f55f", "score": "0.5680039", "text": "function templateLoad() {\n\t\n\t\t$this->webLog(\"Loading skin '{$this->config->HTMLTemplate->skin}'\", __METHOD__);\n\t\t$this->self->pieces = (object)array();\n\t\t$this->self->templateFile = $this->config->path . \"/templates/skins/{$this->config->HTMLTemplate->skin}/layout.php\";\n\t\t\n\t\t// we must find the base template \n\t\tif ( !is_file($this->self->templateFile) ) {\n\t\t\n\t\t\t$this->webLog(\"Base template for skin '{$this->config->HTMLTemplate->skin}' could not be located\", __METHOD__, 'fatal');\n\t\t\t$this->shutdown('There was an error loading the base template.');\n\t\t\t\n\t\t}\n\t\t\n\t\t$pieces = array_merge($this->config->HTMLTemplate->pieces);\n\t\tforeach ( $pieces as $piece ) {\n\t\t\t\t\n\t\t\tunset($filePath);\n\t\t\t$this->self->pieces->{$piece} = (object)array('data' => '');\n\t\t\t$filePath = $this->config->path . \"/templates/skins/{$this->config->HTMLTemplate->skin}/{$piece}.php\";\n\t\t\tif ( !is_file($filePath) ) {\n\t\t\t\n\t\t\t\t$this->webLog(\"No base data found for '{$piece}'\", __METHOD__);\n\t\t\t\t$this->self->pieces->{$piece}->filePath = false;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\n\t\t\t\t$this->webLog(\"Loading base data for '{$piece}'\", __METHOD__);\n\t\t\t\t$this->self->pieces->{$piece}->filePath = $filePath;\n\t\t\t\tif ( !include($filePath) ) {\n\t\t\t\t\n\t\t\t\t\t$this->webLog(\"Failed to include base data for piece '{$piece}' at {$filePath}\", __METHOD__, 'fatal');\n\t\t\t\t\t$this->shutdown('There was an error loading template pieces.');\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t$this->webLog(\"Skin loading is finished\", __METHOD__);\n\t\t\n\t}", "title": "" }, { "docid": "994632d496dda81847d9fca48cdb5708", "score": "0.52727646", "text": "function read() {\n\t\t$rtn = '1';\n\t\t$pages_dir = $this->drop_folder.'/'.$this->folder_pages;\n\t\t$pages = $this->_glob_recursive($pages_dir.'/*');\n\t\tforeach ($pages as $file) {\n\t\t\t$rtn .= '.';\n\t\t\t$file_strip = str_replace($pages_dir,'',$file);\n\t\t\t$file_info = pathinfo($file_strip);\n\t\t\t$file = file_get_contents($file);\n\t\t\tswitch(@$file_info['extension']) {\n\t\t\t\tcase 'css':\n\t\t\t\t\t// this is a page part\n\t\t\t\t\t$uri = trim($file_info['dirname'],'/');\n\t\t\t\t\t$page_id = $this->_find_page($uri);\n\t\t\t\t\t$this->_update($this->tblpages,$page_id,'css',$file);\n\t\t\t\tbreak;\n\t\t\t\tcase 'js':\n\t\t\t\t\t// this is a page part\n\t\t\t\t\t$uri = trim($file_info['dirname'],'/');\n\t\t\t\t\t$page_id = $this->_find_page($uri);\n\t\t\t\t\t$this->_update($this->tblpages,$page_id,'js',$file);\n\t\t\t\tbreak;\n\t\t\t\tcase 'html':\n\t\t\t\t\t// this is a page chunk part\n\t\t\t\t\t$uri = trim($file_info['dirname'],'/');\n\t\t\t\t\t$page_id = $this->_find_page($uri);\n\t\t\t\t\t$chunk_id = $this->_find_chunk($file_info['filename'],$page_id);\t\t\t\t\t\n\t\t\t\t\t$this->_update($this->tblpage_chunks,$chunk_id,'body',$file);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t/* read layouts css, js, html */\n\t\t$rtn .= '2';\n\t\t$layouts_dir = $this->drop_folder.'/'.$this->folder_layouts;\n\t\t$templates = $this->_glob_recursive($layouts_dir.'/*');\n\t\tforeach ($templates as $file) {\n\t\t $rtn .= '.';\n\t\t\t$file_strip = str_replace($layouts_dir,'',$file);\n\t\t\t$file_info = pathinfo($file_strip);\n\t\t\t$file = file_get_contents($file);\n\t\t\tswitch(@$file_info['extension']) {\n\t\t\t\tcase 'css':\n\t\t\t\t\t// this is a layout part\n\t\t\t\t\t$title = trim($file_info['dirname'],'/');\n\t\t\t\t\t$id = $this->_find_layout($title);\n\t\t\t\t\t$this->_update($this->tblpage_layouts,$id,'css',$file);\n\t\t\t\tbreak;\n\t\t\t\tcase 'js':\n\t\t\t\t\t// this is a layout part\n\t\t\t\t\t$title = trim($file_info['dirname'],'/');\n\t\t\t\t\t$id = $this->_find_layout($title);\n\t\t\t\t\t$this->_update($this->tblpage_layouts,$id,'js',$file);\n\t\t\t\tbreak;\n\t\t\t\tcase 'html':\n\t\t\t\t\t// this is a layout chunk part\n\t\t\t\t\t$title = trim($file_info['dirname'],'/');\n\t\t\t\t\t$id = $this->_find_layout($title);\n\t\t\t\t\t$this->_update($this->tblpage_layouts,$id,'body',$file);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// dump the pages cache\n\t\t$rtn .= '3';\n\t\t$this->CI->pyrocache->delete_all('page_m');\n\t\t\n\t\treturn $rtn.'.'.lang('import_export:complete');\n\t}", "title": "" }, { "docid": "89141b872cb0a8046d27ccf9c4db0498", "score": "0.5249252", "text": "public static function read_template_categories() {\n\n $template_cats = array();\n\n if (!isset(self::$instance->definitions)) {\n return;\n }\n\n //print_r($extension_data);\n foreach (self::$instance->definitions as $key => $val) {\n\n if (strstr($key, 'inbound-email') || !isset($val['info']['category'])) continue;\n\n /* allot for older lp_data model */\n if (isset($val['category'])) {\n $cats = $val['category'];\n } else {\n if (isset($val['info']['category'])) {\n $cats = $val['info']['category'];\n }\n }\n\n $cats = explode(',', $cats);\n\n foreach ($cats as $cat_value) {\n $cat_value = trim($cat_value);\n $name = str_replace(array('-', '_'), ' ', $cat_value);\n $name = ucwords($name);\n\n if (!isset($template_cats[$cat_value])) {\n $template_cats[$cat_value]['count'] = 1;\n } else {\n $template_cats[$cat_value]['count']++;\n }\n\n $template_cats[$cat_value]['value'] = $cat_value;\n $template_cats[$cat_value]['label'] = \"$name\";\n }\n }\n\n self::$instance->template_categories = $template_cats;\n }", "title": "" }, { "docid": "d12956f56cbd5600f20e8567f5e21d39", "score": "0.5179196", "text": "public function load_templates() {\n\t\t// Panel.\n\t\tinclude Avada::$template_dir_path . '/includes/avada-app/panel/templates/sidebar.php';\n\t\tinclude Avada::$template_dir_path . '/includes/avada-app/panel/templates/panel.php';\n\t\tinclude Avada::$template_dir_path . '/includes/avada-app/panel/templates/tab.php';\n\t}", "title": "" }, { "docid": "21901d1b340e63c8f4892a1ad8c4dd49", "score": "0.51693505", "text": "function loadtemplate($templatename){\n if ($templatename==\"\" || !file_exists(\"templates/$templatename\") || substr($templatename, -4) != '.htm')\n $templatename=getsetting(\"defaultskin\", \"Xythen.htm\");\n if ($templatename==\"\" || !file_exists(\"templates/$templatename\"))\n $templatename=\"jade.htm\";\n $fulltemplate = file_get_contents(\"templates/$templatename\");\n $fulltemplate = explode(\"<!--!\",$fulltemplate);\n while (list($key,$val)=each($fulltemplate)){\n $fieldname=substr($val,0,strpos($val,\"-->\"));\n if ($fieldname!=\"\"){\n $template[$fieldname]=substr($val,strpos($val,\"-->\")+3);\n modulehook(\"template-{$fieldname}\",\n array(\"content\"=>$template[$fieldname]));\n }\n }\n return $template;\n}", "title": "" }, { "docid": "36bb46726367f7615121b16e9d5551f8", "score": "0.5125196", "text": "public static function load_definitions() {\n $inbound_email_data = self::$instance->template_definitions;\n self::$instance->definitions = apply_filters('inbound_email_template_data', $inbound_email_data);\n }", "title": "" }, { "docid": "40f9dcc0dc0dd01a94a4317f4c5d88c0", "score": "0.50916237", "text": "protected function _initTemplate()\n {\n preg_match_all(\"/<!--\\s+BEGIN\\s+(.*)?\\s+-->(.*)<!--\\s+END\\s+(\\\\1)\\s+-->/ms\",$this->_t,$ma);\n for ($i = 0; $i < count($ma[0]); $i++)\n {\n $search = \"/\\s*\\n*<!--\\s+BEGIN\\s+(\" . $ma[1][$i] . \")?\\s+-->(.*)<!--\\s+END\\s+(\" . $ma[1][$i]. \")\\s+-->\\s*\\n*/ms\";\n $replace = $this->_delimiterStart . $ma[1][$i] . $this->_delimiterEnd;\n \n $this->_bl[$ma[1][$i]] = new $this->_className('',$this->_params);\n $this->_bl[$ma[1][$i]]->loadTemplateContent($ma[2][$i]);\n $this->_t = preg_replace($search,$replace,$this->_t);\n }\n }", "title": "" }, { "docid": "4c3be0bd914779ab69afbf91cec9fc50", "score": "0.5066163", "text": "protected function readTemplate(): void\n\t{\n\t\t$this->compose = Yaml::parse(file_get_contents($this->templateFile));\n\t}", "title": "" }, { "docid": "827264354c79963266743f43d25596a3", "score": "0.5060994", "text": "function _initTemplate()\n\t{\n\t preg_match_all(\"/<!--\\s+BEGIN\\s+(.*)?\\s+-->(.*)<!--\\s+END\\s+(\\\\1)\\s+-->/ms\",$this->t,$ma);\n\t for ($i = 0; $i < count($ma[0]); $i++)\n\t {\n\t\t$search = \"/\\s*\\n*<!--\\s+BEGIN\\s+(\" . $ma[1][$i] . \")?\\s+-->(.*)<!--\\s+END\\s+(\" . $ma[1][$i]. \")\\s+-->\\s*\\n*/ms\";\n\t\t$replace = $this->delimiterStart . $ma[1][$i] . $this->delimiterEnd;\n\t\t\n\t\t$this->bl[$ma[1][$i]] =& new $this->className('',$this->params);\n\t\t$this->bl[$ma[1][$i]]->loadTemplateContent($ma[2][$i]);\n\t\t$this->t = preg_replace($search,$replace,$this->t);\n\t\t\n\t\t//CG\n\t\t//$this->pl[$ma[1][$i]]=\"\";\n\t }\n\t}", "title": "" }, { "docid": "8ec2530a959c052e2c5f1f222e471ca2", "score": "0.49639118", "text": "function _parseTemplate ($file) {\r\n\r\n\t$tab = explode ( \"/\", $file ) ;\r\n\tif ( isset ( $tab[1] ) AND $tab[1] ) $fichier = $tab[1] ;\r\n\telse $fichier = $file ;\r\n\tif ( file_exists ( \"templates_int/\".$fichier ) ) $file = \"templates_int/\".$fichier ;\r\n\telse $file = \"templates_gen/\".$fichier ;\r\n\t\r\n\tif (!file_exists($file) ) {\r\n\t\t$this->halt(\"Could not open file : $file\");\r\n\t}\r\n\r\n\t$this->template = join (\"\", file(trim($file) ) );\r\n\r\n\t$delim = preg_quote($this->lm_delimiter, '/');\r\n\r\n\t// Gather all template tags\r\n\tpreg_match_all (\"/(<{$delim}([\\w]+)[^>]*>)(.*)(<\\/{$delim}\\\\2>)/imsU\", $this->template, $matches);\r\n\r\n\tfor ($i=0; $i< count($matches[0]); $i++) {\r\n\t\tswitch(strtolower($matches[2][$i])) {\r\n\t\t case 'config':\r\n\t\t\t$this->_getConfig($matches[3][$i]);\r\n\t\t\tbreak;\r\n\t\t case 'php':\r\n\t\t\t$this->before_line = $matches[3][$i];\r\n\t\t\tbreak;\r\n\t\t case 'list':\r\n\t\t\t$list_block = $matches[3][$i];\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\r\n\t// Split content by template tags to obtain non-template conten\r\n $text_blocks = preg_split(\"/(<{$delim}([\\w]+)[^>]*>)(.*)(<\\/{$delim}\\\\2>)/imsU\", $list_block);\r\n\t$matches = count($text_blocks);\r\n\tif ($matches>0) {\r\n\t\t// Get starting block (list header)\r\n\t\t$pattern = preg_quote($text_blocks[0], '/');\r\n\t\tif (preg_match(\"/^{$pattern}/imsU\", $list_block, $match)) {\r\n\t\t\t$this->begin_block = str_replace('\"','\\\"', preg_replace(\"/\\{([a-zA-Z0-9_\\\\[\\\\]]+)\\}/ms\", '$\\\\1', trim ($text_blocks[0])));\r\n\t\t}\r\n\t\tif ($matches>1) {\r\n\t\t\t// Get ending block (list footer)\r\n\t\t\t$pattern = preg_quote($text_blocks[$matches-1], '/');\r\n\t\t\tif (preg_match(\"/{$pattern}$/imsU\", $list_block, $match)) {\r\n\t\t\t\t$this->end_block = str_replace('\"','\\\"', preg_replace(\"/\\{([a-zA-Z0-9_\\\\[\\\\]]+)\\}/ms\", '$\\\\1', trim ($text_blocks[$matches-1])));\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t// Now Gather inner blocks in list block\r\n\tpreg_match_all (\"/(<{$delim}([\\w]+)[^>]*>)(.*)(<\\/{$delim}\\\\2>)/imsU\", $list_block, $matches);\r\n\tfor ($i=0; $i< count($matches[0]); $i++) {\r\n\t\tswitch(strtolower($matches[2][$i])) {\r\n\t\t case 'begin_level':\r\n\t\t\t$this->begin_level = str_replace('\"','\\\"', preg_replace(\"/\\{([a-zA-Z0-9_\\\\[\\\\]]+)\\}/ms\", '$\\\\1', trim ($matches[3][$i])));\r\n\t\t\tbreak;\r\n\t\t case 'item':\r\n\t\t\t$this->item_block = str_replace('\"','\\\"', preg_replace(\"/\\{([a-zA-Z0-9_\\\\[\\\\]]+)\\}/ms\", '$\\\\1', trim ($matches[3][$i])));\r\n\t\t\tbreak;\r\n\t\t case 'no_item':\r\n\t\t\t$this->no_item_block = str_replace('\"','\\\"', preg_replace(\"/\\{([a-zA-Z0-9_\\\\[\\\\]]+)\\}/ms\", '$\\\\1', trim ($matches[3][$i])));\r\n\t\t\tbreak;\r\n\t\t case 'end_level':\r\n\t\t\t$this->end_level = str_replace('\"','\\\"', preg_replace(\"/\\{([a-zA-Z0-9_\\\\[\\\\]]+)\\}/ms\", '$\\\\1', trim ($matches[3][$i])));\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\r\n/*\r\necho \"<br><pre>template : \" . htmlspecialchars($this->template);\r\n\r\necho \"\\n\\n begin_block: \".htmlspecialchars($this->begin_block);\r\necho \"\\n\\n begin_level: \".htmlspecialchars($this->begin_level);\r\necho \"\\n\\n item_block: \".htmlspecialchars($this->item_block);\r\necho \"\\n\\n end_level: \".htmlspecialchars($this->end_level);\r\necho \"\\n\\n end_block: \".htmlspecialchars($this->end_block);\r\n*/\r\n\r\n }", "title": "" }, { "docid": "6fa95d87bd4e386e59970efa0e50b176", "score": "0.49521935", "text": "public function load()\n {\n\n $templates = apply_filters('wpforms_load_templates', array(\n 'blank',\n 'contact',\n 'request-quote',\n 'donation',\n 'order',\n 'subscribe',\n 'suggestion',\n 'review'\n ));\n\n foreach ($templates as $template) {\n\n if (file_exists(WPFORMS_PLUGIN_DIR . 'includes/templates/class-' . $template . '.php')) {\n require_once WPFORMS_PLUGIN_DIR . 'includes/templates/class-' . $template . '.php';\n } elseif (file_exists(WPFORMS_PLUGIN_DIR . 'advance/includes/templates/class-' . $template . '.php')) {\n require_once WPFORMS_PLUGIN_DIR . 'advance/includes/templates/class-' . $template . '.php';\n }\n }\n }", "title": "" }, { "docid": "9f57429fcdb3b747343a9a21074608cf", "score": "0.4937308", "text": "function load_template()\r\n{\r\n global $THEME_DIR, $CONFIG, $template_header, $template_footer;\r\n\r\n $tmpl_loc = array();\r\n $tmpl_loc = unserialize(base64_decode(LOC));\r\n\r\n if (file_exists(TEMPLATE_FILE)) {\r\n $template_file = TEMPLATE_FILE;\r\n } elseif (file_exists($THEME_DIR . TEMPLATE_FILE)) {\r\n $template_file = $THEME_DIR . TEMPLATE_FILE;\r\n } else die(\"<b>Coppermine critical error</b>:<br />Unable to load template file \".TEMPLATE_FILE.\"!</b>\");\r\n\r\n $template = fread(fopen($template_file, 'r'), filesize($template_file));\r\n $gallery_pos = strpos($template, '{LANGUAGE_SELECT_FLAGS}');\r\n $template = str_replace('{LANGUAGE_SELECT_FLAGS}', languageSelect('flags') ,$template);\r\n $gallery_pos = strpos($template, '{LANGUAGE_SELECT_LIST}');\r\n $template = str_replace('{LANGUAGE_SELECT_LIST}', languageSelect('list') ,$template);\r\n $gallery_pos = strpos($template, '{THEME_DIR}');\r\n $template = str_replace('{THEME_DIR}', $THEME_DIR ,$template);\r\n $gallery_pos = strpos($template, '{THEME_SELECT_LIST}');\r\n $template = str_replace('{THEME_SELECT_LIST}', themeSelect('list') ,$template);\r\n $gallery_pos = strpos($template, $tmpl_loc['l']);\r\n $template = str_replace($tmpl_loc['l'], $tmpl_loc['s'] ,$template);\r\n\r\n $template_header = substr($template, 0, $gallery_pos);\r\n $template_footer = substr($template, $gallery_pos);\r\n $add_version_info = '<!--Coppermine Photo Gallery '.COPPERMINE_VERSION.'--></body>';\r\n $template_footer = ereg_replace(\"</body[^>]*>\",$add_version_info,$template_footer);\r\n}", "title": "" }, { "docid": "9d8114fe9f2dca3dbf75e88a997f8a54", "score": "0.49327677", "text": "public function load_templates() {\n\t\tinclude FUSION_LIBRARY_PATH . '/inc/fusion-app/templates/front-end-toolbar.php';\n\t\tinclude FUSION_LIBRARY_PATH . '/inc/fusion-app/templates/repeater-fields.php';\n\t\tinclude FUSION_LIBRARY_PATH . '/inc/fusion-app/templates/modal-dialog-more.php';\n\t}", "title": "" }, { "docid": "ac72f9542a2cd1bdfb471838322474e0", "score": "0.48578528", "text": "public function style()\r\n {\r\n global $query, $assoc, $row, $connect, $db_s;\r\n \r\n // Get our contents from DB\r\n $sql = $query(\"SELECT id, name, active FROM $db_s.styles WHERE active='1' ORDER BY id DESC LIMIT 1\")or die(mysql_error());\r\n $get = $assoc($sql);\r\n \r\n // See the file exists\r\n $style = $get['name'];\r\n if(file_exists(\"./styles/{$get['name']}/\"))\r\n {\r\n // File contents\r\n $this->source = file_get_contents(\"./styles/{$get['name']}/index.php\")or die(\"Style Error: Index.php does not exist.\");\r\n \r\n //var_dump($this->values); die();\r\n \r\n // Loop through each variable\r\n foreach ($this->values as $key => $value)\r\n {\r\n // If $value is an array, we need to process it as so\r\n\t\t\tif(is_array($value))\r\n\t\t\t{\r\n\t\t\t\t// Create our array block regex\r\n\t\t\t\t$regex = $this->l_delim . $key . $this->r_delim . \"(.*)\". $this->l_delim . '/' . $key . $this->r_delim;\r\n\t\t\t\t\r\n\t\t\t\t// Check for array blocks, if so then parse_pair\r\n\t\t\t\twhile(preg_match(\"~\" . $regex . \"~iUs\", $this->source, $match))\r\n\t\t\t\t{\r\n\t\t\t\t\t// Parse pair: Source, Match to be replaced, With what are we replacing?\r\n\t\t\t\t\t$replacement = $this->parse_pair($match[1], $key, $value);\r\n\t\t\t\t\t$this->source = str_replace($match[0], $replacement, $this->source);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Create our array regex\r\n\t\t\t\t$key = $key .\".\";\r\n\t\t\t\t$regex = $this->l_delim . $key . \"(.*)\".$this->r_delim;\r\n\r\n\t\t\t\t// now see if there are any arrays\r\n\t\t\t\twhile(preg_match(\"~\" . $regex . \"~iUs\", $this->source, $match))\r\n\t\t\t\t{\r\n\t\t\t\t\t$replacement = $this->parse_array($match[1], $value);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Check for a false reading\r\n\t\t\t\t\tif($replacement === FALSE)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$replacement = \"<<!\". $key . $match[1] .\"!>>\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->source = str_replace($match[0], $replacement, $this->source);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Parse single\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$match = $this->l_delim . $key . $this->r_delim;\r\n\t\t\t\tif(strpos($this->source, $match) !== FALSE)\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->source = str_replace($match, $value, $this->source);\r\n\t\t\t\t}\r\n\t\t\t}\r\n }\r\n \r\n return aly(horde(logged(bbcode($this->source))));\r\n }\r\n else\r\n {\r\n die(\"The selected style does not exists @ ./styles/{$get['name']}/\");\r\n }\r\n \r\n }", "title": "" }, { "docid": "5b142bbf5c7d3a00236a7ff1e0fffbfa", "score": "0.4817841", "text": "public function setSections() {\n // Background Patterns Reader\n $sample_patterns_path = ReduxFramework::$_dir . '../sample/patterns/';\n $sample_patterns_url = ReduxFramework::$_url . '../sample/patterns/';\n $sample_patterns = array();\n\n if (is_dir($sample_patterns_path)) :\n\n if ($sample_patterns_dir = opendir($sample_patterns_path)) :\n $sample_patterns = array();\n\n while (( $sample_patterns_file = readdir($sample_patterns_dir) ) !== false) {\n\n if (stristr($sample_patterns_file, '.png') !== false || stristr($sample_patterns_file, '.jpg') !== false) {\n $name = explode('.', $sample_patterns_file);\n $name = str_replace('.' . end($name), '', $sample_patterns_file);\n $sample_patterns[] = array('alt' => $name, 'img' => $sample_patterns_url . $sample_patterns_file);\n }\n }\n endif;\n endif;\n\n ob_start();\n\n $ct = wp_get_theme();\n $this->theme = $ct;\n $item_name = $this->theme->get('Name');\n $tags = $this->theme->Tags;\n $screenshot = $this->theme->get_screenshot();\n $class = $screenshot ? 'has-screenshot' : '';\n\n $customize_title = sprintf(__('Customize &#8220;%s&#8221;', 'hedmark'), $this->theme->display('Name'));\n \n ?>\n <div id=\"current-theme\" class=\"<?php echo esc_attr($class); ?>\">\n <?php if ($screenshot) : ?>\n <?php if (current_user_can('edit_theme_options')) : ?>\n <a href=\"<?php echo wp_customize_url(); ?>\" class=\"load-customize hide-if-no-customize\" title=\"<?php echo esc_attr($customize_title); ?>\">\n <img src=\"<?php echo esc_url($screenshot); ?>\" alt=\"<?php esc_attr_e('Current theme preview', 'hedmark'); ?>\" />\n </a>\n <?php endif; ?>\n <img class=\"hide-if-customize\" src=\"<?php echo esc_url($screenshot); ?>\" alt=\"<?php esc_attr_e('Current theme preview', 'hedmark'); ?>\" />\n <?php endif; ?>\n\n <h4><?php echo esc_attr($this->theme->display('Name')); ?></h4>\n\n <div>\n <ul class=\"theme-info\">\n <li><?php printf(__('By %s', 'hedmark'), $this->theme->display('Author')); ?></li>\n <li><?php printf(__('Version %s', 'hedmark'), $this->theme->display('Version')); ?></li>\n <li><?php echo '<strong>' . __('Tags', 'hedmark') . ':</strong> '; ?><?php printf($this->theme->display('Tags')); ?></li>\n </ul>\n <p class=\"theme-description\"><?php echo esc_attr($this->theme->display('Description')); ?></p>\n <?php\n if ($this->theme->parent()) {\n printf(' <p class=\"howto\">' . wp_kses(__('This <a href=\"%1$s\">child theme</a> requires its parent theme, %2$s.', 'hedmark'), $allowed_html_array) . '</p>', esc_html__('http://codex.wordpress.org/Child_Themes', 'hedmark'), $this->theme->parent()->display('Name'));\n }\n ?>\n\n </div>\n </div>\n\n <?php\n $item_info = ob_get_contents();\n\n ob_end_clean();\n\n $sampleHTML = '';\n if (file_exists(get_template_directory() . '/info-html.html')) {\n /** @global WP_Filesystem_Direct $wp_filesystem */\n global $wp_filesystem;\n if (empty($wp_filesystem)) {\n require_once(ABSPATH . '/wp-admin/includes/file.php');\n WP_Filesystem();\n }\n $sampleHTML = $wp_filesystem->get_contents(get_template_directory() . '/info-html.html');\n }\n\n\n\n // General Settings\n $this->sections[] = array(\n 'title' => __('General Settings', 'hedmark'),\n 'icon' => 'el-icon-cog',\n 'fields' => array(\n\t\t\t\t /* Body Background */\n array(\n 'id' => 'body_background',\n 'type' => 'background',\n 'title' => esc_html__('Body Background', 'hedmark'),\n 'subtitle' => esc_html__('Select a body background or upload an image', 'hedmark'),\n 'default' => array('background-color' => '#fff'),\n 'output' => array('background-color' => '.main-container'),\n ),\n array(\n 'id' => 'hedmark_logo',\n 'type' => 'media',\n 'title' => esc_html__('Logo', 'hedmark'),\n 'subtitle' => esc_html__('Upload your logo. If you do not have a logo, the default will be used', 'hedmark'),\n 'default' => array(\n 'url' => get_template_directory_uri() .'/images/logo.png',\n )\n ),\t\t\t\t\t\t\t\n\t\t\t\t\tarray(\n 'id' => 'hedmark_favicon',\n 'type' => 'media',\n 'title' => esc_html__('Favicon', 'hedmark'),\n 'subtitle' => esc_html__('Upload your site favicon', 'hedmark'),\n 'default' => array('url' => get_template_directory_uri() .'/images/favicon.ico'), \n ),\t\t\t\n \n ),\n );\n\t\t\t\n \n // Header\n $this->sections[] = array(\n 'icon' => 'el-icon-caret-up',\n 'title' => esc_html__('Header', 'hedmark'),\n 'heading' => esc_html__('Site Header Otions', 'hedmark'),\n 'fields' => array( \n\t\t\t\t\t\n\t\t\t\t\tarray(\n 'id' => 'header_site_color',\n 'type' => 'color',\n 'title' => esc_html__('Header Background Color', 'hedmark'),\n 'subtitle' => esc_html__('Select top header background color', 'hedmark'),\n 'default' => '#fff',\n 'output' => array( 'background-color' => '.top-header' ),\n ),\n\t\t\t\t\t array(\n 'id' => 'site_top_strip_links',\n 'type' => 'link_color',\n 'title' => esc_html__('Header Links Color', 'hedmark'),\n 'subtitle' => esc_html__('Select top header links color', 'hedmark'),\n 'output' => array('.minimal-menu, .minimal-menu > ul > li > a'),\n 'active' => false,\n 'default' => array(\n 'regular' => '#444444',\n 'hover' => '#eca525'\n )\n ),\n\t\t\t\t\tarray(\n 'id' => 'modal_search',\n 'type' => 'switch',\n 'title' => esc_html__('Modal Search', 'hedmark'),\n 'subtitle' => esc_html__('Enable or Disable Top Modal Search', 'hedmark'),\n 'default' => true,\n ),\n array(\n 'id' => 'social_top',\n 'type' => 'switch',\n 'title' => esc_html__('Header Social Links', 'hedmark'),\n 'subtitle' => esc_html__('Enable or Disable Top Social Links', 'hedmark'),\n 'default' => true,\n ),\n\t\t\t\t\tarray(\n 'id' => 'facebook-top-link',\n 'type' => 'text',\n 'title' => esc_html__('Facebook', 'hedmark'),\n 'subtitle' => esc_html__('Enter Your facebook url', 'hedmark'),\n 'default' => '',\n ),\n\t\t\t\t\tarray(\n 'id' => 'twitter-top-link',\n 'type' => 'text',\n 'title' => esc_html__('Twitter', 'hedmark'),\n 'subtitle' => esc_html__('Enter Your Twitter profile url', 'hedmark'),\n 'default' => '',\n ),\n\t\t\t\t\tarray(\n 'id' => 'linkedin-top-link',\n 'type' => 'text',\n 'title' => esc_html__('LinkedIn', 'hedmark'),\n 'subtitle' => esc_html__('Enter Your LinkedIn profile url', 'hedmark'),\n 'default' => '',\n ),\n\t\t\t\t\tarray(\n 'id' => 'instagram-top-link',\n 'type' => 'text',\n 'title' => esc_html__('Instagram', 'hedmark'),\n 'subtitle' => esc_html__('Enter Your Instagram Profile url', 'hedmark'),\n 'default' => '',\n ),\n\t\t\t\t\tarray(\n 'id' => 'googleplus-top-link',\n 'type' => 'text',\n 'title' => esc_html__('Google Plus', 'hedmark'),\n 'subtitle' => esc_html__('Enter Your Google Plus profile URL', 'hedmark'),\n 'default' => '',\n ),\n )\n );\n\n \n // Typography\n $this->sections[] = array(\n 'icon' => 'el-icon-font',\n 'title' => esc_html__('Typography', 'hedmark'),\n 'fields' => array(\n array(\n 'id' => 'typography_info',\n 'type' => 'info',\n 'desc' => esc_html__('You need to create a Google API key to use this feature. Please visit: https://developers.google.com/fonts/docs/developer_api#Auth', 'hedmark')\n ),\n\t\t\t\t\t array(\n 'id' => 'google_fonts_api',\n 'type' => 'text',\n 'title' => esc_html__('Google Fonts API key', 'hedmark'),\n 'subtitle' => esc_html__('Enter Your Google Fonts API key', 'hedmark'),\n 'default' => '',\n ),\n\t\t\t\t\t\tarray(\n 'id' => 'font_text',\n 'type' => 'typography',\n 'title' => esc_html__('Body Text Font', 'hedmark'),\n 'subtitle' => esc_html__('Specify body text font properties.', 'hedmark'),\n 'google' => true,\n\t\t\t\t\t\t'color' => false,\n 'text-align' => false,\n 'line-height' => false,\n 'default' => array(\n 'font-size' => '14px',\n 'font-family' => 'Open Sans',\n 'font-weight' => '400',\n ),\n 'output' => array('body'),\n ),\n\t\t\t\t\t\n\t\t\t\t\tarray(\n 'id' => 'hedmark_navigation',\n 'type' => 'typography',\n 'title' => esc_html__('Header Navigation', 'hedmark'),\n 'subtitle' => esc_html__('Select Header Navigation font families', 'hedmark'),\n 'google' => true,\n 'color' => false,\n 'text-align' => false,\n 'default' => array(\n 'font-size' => '11px',\n 'font-family' => 'Lato',\n 'font-weight' => '400',\n\t\t\t\t\t\t\t'line-height' => '30px',\n ),\n 'output' => array('.minimal-menu, .minimal-menu > ul > li > a, .minimal-menu ul ul li a'),\n ),\n\t\t\t\t\t\n\t\t\t\t\tarray(\n 'id' => 'site_titles',\n 'type' => 'typography',\n 'title' => esc_html__('Site Titles', 'hedmark'),\n 'subtitle' => esc_html__('Select fonts for site heading titles h1 h2 h3 h4 h5', 'hedmark'),\n 'google' => true,\n 'color' => false,\n 'text-align' => false,\n 'line-height' => false,\n 'font-size' => false,\n 'default' => array(\n 'font-family' => 'Oswald',\n 'font-weight' => '400',\n ),\n 'output' => array('h1, h2, h3, h4, h5, h6, .kt-related-item a, .latest-post-inner h4, .site-title'),\n ),\n\n array(\n 'id' => 'blog_titles',\n 'type' => 'typography',\n 'title' => esc_html__('Blog Titles', 'hedmark'),\n 'subtitle' => esc_html__('Select fonts for blog titles', 'hedmark'),\n 'google' => true,\n 'color' => false,\n 'text-align' => false,\n 'line-height' => false,\n 'font-size' => false,\n 'default' => array(\n 'font-family' => 'Oswald',\n 'font-weight' => '400',\n ),\n 'output' => array('h2.standard-post-title'),\n ),\n\t\t\t\t\t\n\t\t\t\t\tarray(\n 'id' => 'sidebar_fonts',\n 'type' => 'typography',\n 'title' => esc_html__('Sidebar Fonts', 'hedmark'),\n 'subtitle' => esc_html__('Select fonts for site heading titles', 'hedmark'),\n 'google' => true,\n 'color' => false,\n 'text-align' => false,\n 'line-height' => false,\n 'font-size' => false,\n 'default' => array(\n 'font-family' => 'Lato',\n 'font-weight' => '400',\n ),\n 'output' => array('.sidebar-widget, .nav-previous'),\n ),\n \n\n )\n );\n\n\n // Blog Settings\n $this->sections[] = array(\n 'icon' => 'el-icon-myspace',\n 'title' => __('Blog Settings', 'hedmark'),\n 'fields' => array(\n\t\t\t\t\tarray(\n 'id' => 'hedmark_excerpt',\n 'type' => 'text',\n 'title' => esc_html__('Excerpt Length', 'hedmark'),\n 'subtitle' => esc_html__('Enter a number of words to limit the exceprt site wide', 'hedmark'),\n 'validate' => 'numeric',\n 'default' => '35',\n ),\n\t\t\t\t\tarray(\n 'id' => 'author_box',\n 'type' => 'switch',\n 'title' => esc_html__('Author Box', 'hedmark'),\n 'subtitle' => esc_html__('Enable or Disable Author Box', 'hedmark'),\n 'default' => false,\n ),\n array(\n 'id' => 'related_posts',\n 'type' => 'switch',\n 'title' => esc_html__('Related Posts', 'hedmark'),\n 'subtitle' => esc_html__('Enable or Disable Related Posts', 'hedmark'),\n 'default' => true,\n ),\t\t\t\n \n )\n );\n \n \n\t\t\t// Footer Settings\n $this->sections[] = array(\n 'icon' => 'el-icon-caret-down',\n 'title' => esc_html__('Footer', 'hedmark'),\n 'fields' => array(\n array(\n 'id' => 'footer_color',\n 'type' => 'color',\n 'title' => esc_html__('Background', 'hedmark'),\n 'subtitle' => esc_html__('Pick a color for the backgound', 'hedmark'),\n 'default' => '#f5f5f5',\n 'output' => array( 'background-color' => '.bottom-footer' ),\n ),\t\n\t\t\t\t\t\tarray(\n 'id' => 'footer_logo',\n 'type' => 'media',\n 'title' => esc_html__('Footer Logo', 'hedmark'),\n 'subtitle' => esc_html__('Upload footer logo, otherwise none will be used', 'hedmark'),\n 'default' => array(\n 'url' => get_template_directory_uri() .'/images/footer-logo.png',\n )\n ),\t\t\n\t\t\t\t\t array(\n 'id' => 'footer_copyright',\n 'type' => 'textarea',\n 'title' => esc_html__('Footer Copyright Text', 'hedmark'),\n 'subtitle' => esc_html__('Write your site copyright info', 'hedmark'),\n 'default' => '&copy; 2016 hedmark. All Rights Reserved by Khalilthemes',\n ),\n\t\t\t\t\t\n )\n );\n\t\t\t\t\n\t\t\t// Custom Code\n $this->sections[] = array(\n 'icon' => 'el-icon-edit',\n 'title' => esc_html__('Custom Code', 'redux-framework-demo'),\n 'fields' => array(\n array(\n 'id' => 'custom_css',\n 'type' => 'textarea',\n 'title' => esc_html__('Custom CSS', 'redux-framework-demo'),\n 'subtitle' => esc_html__('Quickly add some CSS by adding it to this block.', 'redux-framework-demo'),\n 'rows' => 20\n ),\n array(\n 'id' => 'custom_js_header',\n 'type' => 'textarea',\n 'title' => esc_html__('Custom JavaScript', 'redux-framework-demo'),\n 'subtitle' => esc_html__('Paste here JavaScript code wich will appear in the Header of your site. DO NOT include opening and closing script tags.', 'redux-framework-demo'),\n 'rows' => 12\n ),\n array(\n 'id' => 'custom_js_footer',\n 'type' => 'textarea',\n 'title' => esc_html__('Custom JavaScript Footer', 'redux-framework-demo'),\n 'subtitle' => esc_html__('Paste JavaScript code wich will appear in the Footer of your site. DO NOT include opening and closing script tags.', 'redux-framework-demo'),\n 'rows' => 12\n ),\n )\n );\n\n // Import/Export\n $this->sections[] = array(\n 'title' => esc_html__('Import / Export', 'hedmark'),\n 'desc' => esc_html__('Import and Export your settings from file, text or URL.', 'hedmark'),\n 'icon' => 'el-icon-retweet',\n 'fields' => array(\n array(\n 'id' => 'opt-import-export',\n 'type' => 'import_export',\n 'title' => 'Import Export',\n 'subtitle' => 'Save and restore your Redux options',\n 'full_width' => false,\n ),\n ),\n ); \n }", "title": "" }, { "docid": "b964d121bd8382b330b403c453e221e5", "score": "0.4813321", "text": "function get_lang_vars_from_deffile($file)\n{\n\n $conf_def['section'] = array();\n $conf_def_property_list = array();\n\n include($file);\n\n if(array_key_exists('config_name',$conf_def)) $deflang[] = $conf_def['config_name'];\n\n if(is_array($conf_def['section']))\n foreach ($conf_def['section'] as $conf_def_section)\n {\n if(array_key_exists('label',$conf_def_section)) $deflang[] = $conf_def_section['label'];\n if(array_key_exists('description',$conf_def_section)) $deflang[] = $conf_def_section['description'];\n }\n\n if(is_array($conf_def_property_list))\n foreach ($conf_def_property_list as $conf_def_property)\n {\n if(array_key_exists('display',$conf_def_property) && $conf_def_property['display'] === false ) continue ;\n\n if(array_key_exists('label',$conf_def_property)) $deflang[] = $conf_def_property['label'];\n if(array_key_exists('description',$conf_def_property)) $deflang[] = $conf_def_property['description'];\n if(array_key_exists('type',$conf_def_property)) $deflang[] = $conf_def_property['type'];\n if(array_key_exists('acceptedValue',$conf_def_property))\n {\n foreach ($conf_def_property['acceptedValue'] as $key => $acceptedValue)\n {\n if ( $conf_def_property['type'] == 'integer' )\n {\n continue ;\n }\n elseif ( $key == 'pattern' )\n {\n continue ;\n }\n else\n {\n $deflang[] = $acceptedValue;\n }\n }\n }\n }\n return $deflang;\n}", "title": "" }, { "docid": "5d19f090af590e28c5206442818f6fbc", "score": "0.47943005", "text": "protected function _install_skins()\n {\n // load the resources\n $this->load->helper('directory');\n $this->load->helper('yayparser');\n\n // map the views directory\n $viewdirs = directory_map(APPPATH .'views/', true);\n\n $skins = $this->sys->get_all_skins();\n\n if ($skins->num_rows() > 0) {\n foreach ($skins->result() as $skin) {\n $key = array_search($skin->skin_location, $viewdirs);\n\n if ($key !== false) {\n unset($viewdirs[$key]);\n }\n }\n }\n\n // create an array of items that shouldn't be included in the dir listing\n $pop = array('_base_override', 'index.html', 'template.php');\n\n // make sure the items aren't in the listing\n foreach ($pop as $value) {\n $key = array_search($value, $viewdirs);\n\n if ($key !== false) {\n unset($viewdirs[$key]);\n }\n }\n\n foreach ($viewdirs as $key => $value) {\n if (file_exists(APPPATH .'views/'. $value .'/skin.yml')) {\n // get the contents of the file\n $contents = file_get_contents(APPPATH.'views/'.$value.'/skin.yml');\n\n // parse the contents of the yaml file\n $array = yayparser($contents);\n\n // create the skin array\n $skin = array(\n 'skin_name'\t\t=> $array['skin'],\n 'skin_location'\t=> $array['location'],\n 'skin_credits'\t=> $array['credits']\n );\n\n $this->sys->add_skin($skin);\n\n foreach ($array['sections'] as $v) {\n $section = array(\n 'skinsec_section'\t\t\t=> $v['type'],\n 'skinsec_skin'\t\t\t\t=> $array['location'],\n 'skinsec_image_preview'\t\t=> $v['preview'],\n 'skinsec_status'\t\t\t=> 'active',\n 'skinsec_default'\t\t\t=> 'n'\n );\n\n $this->sys->add_skin_section($section);\n }\n }\n }\n }", "title": "" }, { "docid": "02e7e1ad29f57e1192e3be9ac3f73013", "score": "0.47922722", "text": "protected function loadConfiguration4x()\n {\n $id = $this->_typID;\n\n $this->_document = new ArrayObject(\n Shopware()->Db()->fetchRow(\n 'SELECT * FROM s_core_documents WHERE id = ?',\n [$id],\n \\PDO::FETCH_ASSOC\n )\n );\n\n // Load Containers\n $containers = Shopware()->Db()->fetchAll(\n 'SELECT * FROM s_core_documents_box WHERE documentID = ?',\n [$id],\n \\PDO::FETCH_ASSOC\n );\n\n $translation = $this->translationComponent->read($this->_order->order->language, 'documents');\n $this->_document->containers = new ArrayObject();\n foreach ($containers as $key => $container) {\n if (!is_numeric($key)) {\n continue;\n }\n if (!empty($translation[$id][$container['name'] . '_Value'])) {\n $containers[$key]['value'] = $translation[$id][$container['name'] . '_Value'];\n }\n if (!empty($translation[$id][$container['name'] . '_Style'])) {\n $containers[$key]['style'] = $translation[$id][$container['name'] . '_Style'];\n }\n\n // Parse smarty tags\n $containers[$key]['value'] = $this->_template->fetch('string:' . $containers[$key]['value']);\n\n $this->_document->containers->offsetSet($container['name'], $containers[$key]);\n }\n }", "title": "" }, { "docid": "d1e9afa8a29addd5201b5efce3984684", "score": "0.47586307", "text": "public function populateTemplateCssDetails()\n\t\t\t{\n\t\t\t\t$dir_array = readDirectory($this->CFG['site']['project_path']. 'design/templates/', 'dir');\n\t\t\t\t$template_arr = array();\n\t\t\t\tforeach($dir_array as $template)\n\t\t\t\t\t{\n\t\t\t\t\t\t$template_arr[$template] = readDirectory($this->CFG['site']['project_path']. 'design/templates/'.$template.'/root/css/', 'dir');\n\t\t\t\t\t}\n\t\t\t\treturn $template_arr;\n\t\t\t}", "title": "" }, { "docid": "cae340c6ec04c9e9f0e605bbde840e8b", "score": "0.4688199", "text": "private function templates() {\n\t\t\t\n\t\t\t$templates = array();\n\t\t\t\n\t\t\t//preg_match_all(\"#(\". preg_quote(\"{{\", \"#\") .\")(.*?)(\". preg_quote(\"}}\", \"#\") .\")#si\", $this->text, $matches);\n\t\t\t$text_templates = $this->_find_sub_templates($this->text);\n\t\t\t\n\t\t\tforeach($text_templates[0] as $text_template) {\n\t\t\t\tpreg_match(\"#^\\{\\{([^\\|]+)(.*?)\\}\\}$#si\", $text_template, $match);\n\t\t\t\t\n\t\t\t\t$template_name = trim($match[1]); // wikisyntax is very case sensitive, so don't use strtolower or similar\n\t\t\t\t\n\t\t\t\tif(!empty($this->options['ignore_template_matches'])) {\n\t\t\t\t\tforeach($this->options['ignore_template_matches'] as $ignore_template_match_regex) {\n\t\t\t\t\t\tif(preg_match($ignore_template_match_regex, $template_name)) {\n\t\t\t\t\t\t\tcontinue 2;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$template_attributes = trim(ltrim(trim($match[2]), \"|\")); // remove trailing spaces and starting pipe\n\t\t\t\t\n\t\t\t\t$template = array(\n\t\t\t\t\t 'original'\t\t=> $text_template\n\t\t\t\t\t,'template'\t\t=> $template_name\n\t\t\t\t\t,'attributes'\t=> false\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\tif(strlen($template_attributes) > 0) {\n\t\t\t\t\t$template['attributes']\t= $template_attributes;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//$sub_templates = $this->_find_sub_templates($template['original']); // eventually...\n\t\t\t\t\n\t\t\t\t$templates[] = $template;\n\t\t\t}\n\t\t\t\n\t\t\tif(!empty($templates)) {\n\t\t\t\t$this->cargo['templates'] = $templates;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "7c82b51d9b8e2dd66630a2cec8d7e6cb", "score": "0.4680989", "text": "protected static function _prepareMapLayoutHandles()\n {\n $files = Files::init()->getLayoutFiles([], false);\n foreach ($files as $file) {\n $area = 'default';\n if (preg_match('/\\/(?<area>adminhtml|frontend)\\//', $file, $matches)) {\n $area = $matches['area'];\n self::$_mapLayoutHandles[$area] = self::$_mapLayoutHandles[$area] ?? [];\n }\n if (preg_match('/app\\/code\\/(?<namespace>[A-Z][a-z]+)[_\\/\\\\\\\\](?<module>[A-Z][a-zA-Z]+)/', $file, $matches)\n ) {\n $module = $matches['namespace'] . '\\\\' . $matches['module'];\n $xml = simplexml_load_file($file);\n foreach ((array)$xml->xpath('/layout/child::*') as $element) {\n /** @var \\SimpleXMLElement $element */\n $handle = $element->getName();\n self::$_mapLayoutHandles[$area][$handle] = self::$_mapLayoutHandles[$area][$handle] ?? [];\n self::$_mapLayoutHandles[$area][$handle][$module] = $module;\n }\n }\n }\n }", "title": "" }, { "docid": "07133acb07a269f2a92ac43a1b20fbef", "score": "0.4672881", "text": "public function generate()\n {\n $templates = array_merge(array_keys($this->templates[\"base\"]), array_keys($this->templates[\"template\"]));\n foreach($templates as $template) {\n $templateDir = $this->themeDir . '/' . $template;\n if (!is_dir($templateDir)) {\n continue;\n }\n $finder = new Finder();\n $files = $finder->files()->depth(0)->in($templateDir);\n foreach ($files as $file) {\n $file = (string)$file;\n $slotName = basename($file, '.json');\n $json = FilesystemTools::readFile($file);\n $slot = json_decode($json, true);\n\n $blocks = array();\n if (array_key_exists(\"blocks\", $slot)) {\n $blocks = $slot[\"blocks\"];\n }\n\n $slotManager = $this->slotsManagerFactory->createSlotManager($slot[\"repeat\"]);\n $slotManager->addSlot($slotName, $blocks);\n }\n }\n }", "title": "" }, { "docid": "82ecc9cdd163a2d345447688b9c94785", "score": "0.4650923", "text": "function importTemplates()\n{\n\n// Main $templates array.\n $templates = [];\n\n// We use heredocs because it seems like the nicest way to make a big,\n// editable string. All though it might make some of the PSR freaks angry.\n\n// %tag% ideally is a replaceable tag.\n// with heredocs you need to escape some chars, like:\n// $ -> \\$\n\n\n // The model.\n $templates['model'] = <<<EOT\n<?php\n\nnamespace Drupal\\%module%\\Entity\\%utype%;\n\nuse Drupal\\wmmodel\\Entity\\Interfaces\\WmModelInterface;\nuse Drupal\\wmmodel\\Entity\\Traits\\WmModel;\nuse Drupal\\%module%\\Entity\\Traits\\BaseModelTrait;\n\n/**\n * Class %ubundle%\n * @package Drupal\\%module%\\Entity\\%utype%\n */\nclass %ubundle% extends %utype% implements WmModelInterface\n{\n use WmModel;\n use BaseModelTrait;\n\n %fields%\n}\nEOT;\n\n // The field in the model.\n $templates['model_field'] = <<<EOT\n\n /**\n * Return the values for %field%.\n */\n public function get%ufield%()\n {\n return \"TODO: %ubundle% Model function get%ufield%()\";\n }\n\nEOT;\n\n // Twig file base.\n $templates['twig'] = <<<EOT\n{# @var %bundle% \\Drupal\\%module%\\Entity\\%utype%\\%ubundle% #}\n<div>\n {{ %bundle%.getTitle() }}\n</div>\n%fields%\nEOT;\n\n $templates['twig_taxonomy_term'] = <<<EOT\n{# @var %bundle% \\Drupal\\%module%\\Entity\\%utype%\\%ubundle% #}\n<div>\n {{ %bundle%.getName() }}\n</div>\n%fields%\nEOT;\n\n $templates['twig_teaser'] = <<<EOT\n{# @var %bundle% \\Drupal\\%module%\\Entity\\%utype%\\%ubundle% #}\n<div class=\"teaser\">\n <a href=\"{{ %bundle%.getUrl() }}\">\n {{ %bundle%.getTitle() }}\n </a>\n</div>\nEOT;\n\n $templates['twig_teaser_taxonomy'] = <<<EOT\n{# @var %bundle% \\Drupal\\%module%\\Entity\\%utype%\\%ubundle% #}\n<div class=\"teaser\">\n <a href=\"{{ %bundle%.getUrl() }}\">\n {{ %bundle%.getTitle() }}\n </a>\n</div>\nEOT;\n\n $templates['twig_field'] = <<<EOT\n\n<div>\n {{ %bundle%.get%ufield%() }}\n</div>\n\nEOT;\n\n $templates['controller'] = <<<EOT\n<?php\nnamespace Drupal\\%module%\\Controller\\%utype%;\n\nuse Drupal\\%module%\\Controller\\AbstractController;\nuse Drupal\\%module%\\Entity\\%utype%\\%ubundle%;\n\nclass %ubundle%Controller extends AbstractController\n{\n protected \\$templateDir = '%type%.%bundle%';\n\n public function show(%ubundle% \\$%bundle%)\n {\n // Add the og Tags\n \\$this->applyOgData(\\$%bundle%->getOgData());\n\n return \\$this->view('show', compact('%bundle%'))->setEntity(\\$%bundle%);\n }\n}\nEOT;\n\n $templates['imgix'] = <<<EOT\n<div class=\"imgix-image preset-{{ preset }}\">\n <img src=\"{{ imgix(image.getFile(), preset) }}\" alt=\"{{ image.getTitle() }}\" title=\"{{ image.getTitle() }}\" />\n {% if image.getCaption() is not empty %}\n <span class=\"caption\">{{ image.getCaption() }}</span>\n {% endif %}\n</div>\nEOT;\n\n $templates['paragraph'] = <<<EOT\n {% set classes = [\n 'pargraph',\n 'paragraph-size-' ~ pargraph.getWmcontentSize(),\n 'paragraph-size-' ~ pargraph.getWmcontentAlignment(),\n ] %}\n <div class=\"{{ classes|join(' ') }}\">\n {% include '@%module%/paragraph/'~ paragraph.bundle() ~'/show.html.twig' %}\n </div>\nEOT;\n\n $templates['wmcontent'] = <<<EOT\n<div class=\"wmcontent\">\n {% for paragraph in wmcontent %}\n {% include '@%module%/components/paragraph.html.twig' with {\n 'paragraph': paragraph\n } %}\n {% endfor %}\n</div>\nEOT;\n\n $templates['button'] = <<<EOT\n{% set classes = [\n 'btn',\n]|merge(class ? class : []) %}\n\n<a {% if external %} target=\"_blank\" {% endif %} href=\"{{ link }}\" class=\"{{ classes|join(' ') }}\">{{ text }}</a>\nEOT;\n\n $templates['teasers'] = <<<EOT\n<div>\n {% for item in items %}\n {% set key = item.bundle() %}\n {% set hash = { (key): item } %}\n {% include '@%module%/' ~ item.getEntityTypeId() ~ '/' ~ item.bundle() ~ '/teaser.html.twig' with hash %}\n {% endfor %}\n</div>\nEOT;\n\n $templates['basetrait'] = <<<EOT\n<?php\nnamespace Drupal\\%module%\\Entity\\Traits;\n\nuse Drupal\\imgix\\Plugin\\Field\\FieldType\\ImgixFieldType;\nuse Drupal\\wmcontent\\WmContentManager;\n\n/**\n * Class BaseModelTrait\n * @package Drupal\\%module%\\Entity\\Traits\n */\ntrait BaseModelTrait\n{\n /**\n * Load an imgix image to a simple array.\n * @param \\$fieldName\n * @return ImgixFieldType\n */\n protected function loadImgixImage(\\$fieldName)\n {\n if (\\$this->hasField(\\$fieldName) && !\\$this->get(\\$fieldName)->isEmpty()) {\n /** @var ImgixFieldType \\$field */\n \\$field = \\$this->get(\\$fieldName)->first();\n return \\$field;\n } else {\n return null;\n }\n }\n\n /**\n * @param \\$fieldName\n * @return array|\\Drupal\\Core\\Entity\\EntityInterface[]\n */\n protected function loadWmContent(\\$fieldName)\n {\n /** @var WmContentManager \\$wmcontent */\n \\$wmcontent = \\Drupal::service('wmcontent.manager');\n \\$paragraphs = \\$wmcontent->getContent(\\$this, \\$fieldName);\n return \\$paragraphs;\n }\n\n /**\n * Return the url for this.\n * @return mixed\n */\n public function getUrl()\n {\n return \\$this->url('canonical', ['absolute' => true]);\n }\n\n /**\n * Give the base OG data\n * @return array\n */\n protected function defaultOgData()\n {\n $og = [];\n\n $og['og:title'] = [\n 'property' => 'og:title',\n 'content' => \\$this->getLabel(),\n ];\n $og['og:url'] = [\n 'property' => 'og:url',\n 'content' => \\$this->getUrl(),\n ];\n $og['og:description'] = [\n 'property' => 'og:description',\n 'content' => '',\n ];\n $og['og:image'] = [\n 'property' => 'og:image',\n 'content' => _%module%_og_image(),\n ];\n $og['og:type'] = [\n 'property' => 'og:type',\n 'content' => 'article',\n ];\n\n return $og;\n }\n\n /**\n * This should be overwritten for each model in the site.\n *\n * However we return basic stuff for now.\n * @return array\n */\n public function getOgData()\n {\n return \\$this->defaultOgData();\n }\n\n\n}\nEOT;\n\n $templates['abstractcontroller'] = <<<EOT\n<?php\n\nnamespace Drupal\\%module%\\Controller;\n\nuse Drupal\\Core\\Cache\\Cache;\nuse Drupal\\Core\\Entity\\Entity;\nuse Drupal\\wmcontroller\\Controller\\ControllerBase;\nuse Drupal\\%module%\\Service\\Search\\PageMap;\nuse Drupal\\Core\\Url;\n\n/**\n * Class AbstractController\n * @package Drupal\\%module%\\Controller\n */\nabstract class AbstractController extends ControllerBase\n{\n /**\n * @var ogData\n */\n protected \\$ogData;\n\n /**\n * @var array\n */\n private \\$cacheTags = [];\n\n /**\n * @param string $template\n * @param array $data\n * @return \\Drupal\\wmcontroller\\ViewBuilder\\ViewBuilder\n */\n protected function view(\\$template = '', \\$data = [])\n {\n \\$builder = parent::view(\\$template, \\$data);\n\n // Build the OG Tags if they have been set.\n if (is_array(\\$this->ogData) && count(\\$this->ogData)) {\n // Loop the data.\n foreach (\\$this->ogData as \\$name => \\$data) {\n // Create an element for each data.\n \\$el = [\n '#tag' => 'meta',\n '#attributes' => [],\n ];\n\n // Add the property and content hopefully.\n foreach (\\$data as \\$attribute => \\$value) {\n \\$el['#attributes'][\\$attribute] = _%module%_truncate(strip_tags(trim(\\$value)), 160);\n }\n\n // Add it to the view builder.\n \\$builder->addHeadElement(\\$el);\n }\n }\n\n \\$this->addCacheTag('wmsettings');\n if (!empty(\\$this->cacheTags)) {\n \\$builder->addCacheTags(\\$this->cacheTags);\n }\n\n return \\$builder;\n }\n\n /**\n * @param Entity[] \\$entities\n */\n protected function addCacheTagsFromEntities(array \\$entities)\n {\n foreach (\\$entities as \\$entity) {\n \\$this->cacheTags = Cache::mergeTags(\n \\$this->cacheTags,\n \\$entity->getCacheTags()\n );\n }\n }\n\n /**\n * @param string[]|array \\$tags\n */\n protected function addCacheTags(array \\$tags)\n {\n \\$this->cacheTags = Cache::mergeTags(\\$this->cacheTags, \\$tags);\n }\n\n /**\n * @param string \\$tag\n */\n protected function addCacheTag(string $tag)\n {\n \\$this->cacheTags = Cache::mergeTags(\\$this->cacheTags, [\\$tag]);\n }\n\n /**\n * Give the base OG data and set the property.\n * @return array\n */\n protected function defaultOgData()\n {\n \\$wmsettings = \\Drupal::service('wmsettings.settings');\n \\$global = \\$wmsettings->read('global');\n \\$fb_app_id = \\$global->get('fb_app_id')->value;\n \\$local = \"nl_BE\";\n \\$image = _%module%_og_image();\n \\$title = \\$global->get('og_title')->value;\n \\$description = \\$global->get('og_description')->value;\n\n \\$og = [];\n\n \\$og['og:title'] = [\n 'property' => 'og:title',\n 'content' => \\$title,\n ];\n \\$og['og:url'] = [\n 'property' => 'og:url',\n 'content' => Url::fromRoute('<front>', [], ['absolute' => true])->toString(),\n ];\n \\$og['og:description'] = [\n 'property' => 'og:description',\n 'content' => \\$description,\n ];\n \\$og['og:image'] = [\n 'property' => 'og:image',\n 'content' => \\$image,\n ];\n \\$og['og:image:width'] = [\n 'property' => 'og:image:width',\n 'content' => '1200',\n ];\n \\$og['og:image:height'] = [\n 'property' => 'og:image:height',\n 'content' => '630',\n ];\n \\$og['og:site_name'] = [\n 'property' => 'og:site_name',\n 'content' => \\Drupal::config('system.site')->get('name'),\n ];\n \\$og['fb:app_id'] = [\n 'property' => 'fb:app_id',\n 'content' => \\$fb_app_id,\n ];\n \\$og['og:locale'] = [\n 'property' => 'og:locale',\n 'content' => \\$local,\n ];\n \\$og['og:type'] = [\n 'property' => 'og:type',\n 'content' => 'website',\n ];\n\n // Put the default into the property.\n \\$this->ogData = \\$og;\n\n // Return the property.\n return \\$this->ogData;\n }\n\n\n /**\n * Apply a set of OG data ONTOP of the default OD data.\n * @param \\$data\n */\n public function applyOgData(array \\$data = [])\n {\n \\$this->defaultOgData();\n foreach (\\$this->ogData as \\$k => \\$v) {\n if (isset(\\$data[\\$k])) {\n \\$this->ogData[\\$k] = \\$data[$k];\n }\n }\n }\n}\n\nEOT;\n\n\n return $templates;\n}", "title": "" }, { "docid": "e4953574e36f2161ff3029168ce93656", "score": "0.4633297", "text": "public function build_all_templates()\n\t{\n\t\tglobal $plugins, $mybb;\n\n\t\t$this->left_boxes = '';\n\t\t$this->right_boxes = '';\n\n\t\t// don't waste time if there are no sideboxes to build templates for\n\t\tif($this->boxes_to_show && is_array($this->used_box_types))\n\t\t{\n\t\t\t// create this array to catch any sidebox types that aren't custom or addon, these will be added by plugins (if that ever happens :p )\n\t\t\t$box_types = array();\n\n\t\t\t// loop through all used types\n\t\t\tforeach($this->used_box_types as $this_box => $module)\n\t\t\t{\n\t\t\t\t// get the template variable\n\t\t\t\t$this_template_variable = $this->sideboxes[$this_box]->build_template_variable();\n\n\t\t\t\t// get the correct width to send (1 = right, 0 = left)\n\t\t\t\tif($this->sideboxes[$this_box]->get_position())\n\t\t\t\t{\n\t\t\t\t\t$this_column_width = (int) $mybb->settings['adv_sidebox_width_right'];\n\t\t\t\t\t$this_position = 1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this_column_width = (int) $mybb->settings['adv_sidebox_width_left'];\n\t\t\t\t\t$this_position = 0;\n\t\t\t\t}\n\n\t\t\t\t// if this type was created by an addon module . . .\n\t\t\t\tif($this->addons[$module]->valid)\n\t\t\t\t{\n\t\t\t\t\t// if this side box doesn't have any settings, but the add-on module it was derived from does . . .\n\t\t\t\t\tif($this->sideboxes[$this_box]->has_settings == false && $this->addons[$module]->has_settings)\n\t\t\t\t\t{\n\t\t\t\t\t\t// . . . this side box hasn't been upgraded to the new on-board settings system. Use the settings (and values) from the add-on module as default settings\n\t\t\t\t\t\t$this->sideboxes[$this_box]->set_settings($this->addons[$module]->get_settings());\n\t\t\t\t\t}\n\n\t\t\t\t\t// build the template\n\t\t\t\t\t// pass settings, template variable name and column width\n\t\t\t\t\t$result = $this->addons[$module]->build_template($this->sideboxes[$this_box]->get_settings(), $this_template_variable, $this_column_width);\n\t\t\t\t}\n\t\t\t\t// or if it is a custom static box . . .\n\t\t\t\telseif($this->custom[$module]->valid)\n\t\t\t\t{\n\t\t\t\t\t// build the custom box template\n\t\t\t\t\t$result = $this->custom[$module]->build_template($this_template_variable);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// otherwise it is an external plugin-created type (or it is invalid)\n\t\t\t\t\t$box_types[$module] = true;\n\t\t\t\t}\n\n\t\t\t\t// this hook will allow a plugin to process its custom box type for display (you will first need to hook into adv_sidebox_box_types to add the box\n\t\t\t\t$plugins->run_hooks('adv_sidebox_output_end', $box_types, $result);\n\n\t\t\t\tif($result || (!$result && $mybb->settings['adv_sidebox_show_empty_boxes']))\n\t\t\t\t{\n\t\t\t\t\t$content = $this->sideboxes[$this_box]->get_content();\n\n\t\t\t\t\tif($content)\n\t\t\t\t\t{\n\t\t\t\t\t\tif($this_position)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->right_boxes .= $content;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->left_boxes .= $content;\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}", "title": "" }, { "docid": "4d0af9455d3a2859676c02e1913699c5", "score": "0.46319202", "text": "public function BuildPage () {\n // with their actual contents.\n $tag_pattern = '/<!--\\s*inherit\\s+file\\s*=\\s*\"([^\"]+)\"\\s*-->/';\n // for a file that looks like\n // <!-- inherit file = \"template4.inc\" -->\n // <!-- inherit file = \"template6.inc\" -->\n // <!-- inherit file = \"template6.inc\" -->\n // matches will be like\n // Array (\n // [0] => Array (\n // [0] => <!-- inherit file = \"template4.inc\" -->\n // [1] => <!-- inherit file = \"template5.inc\" -->\n // [2] => <!-- inherit file = \"template6.inc\" -->\n // )\n // [1] => Array (\n // [0] => template4.inc\n // [1] => template5.inc\n // [2] => template6.inc\n // )\n // )\n\n $matches = array ();\n if (preg_match_all ($tag_pattern, $this->contents, $matches) > 0) { // as long as there is still a tag left...\n if (sizeof ($matches) > 0 && sizeof ($matches[1]) > 0) {\n foreach ($matches[1] as $filename) { // [1] because (see example)\n if (is_file (THINGS_TEMPLATE_DIR . $filename)) { // \"file exists\"\n $nv = new View ($filename);\n $nv->BuildPage (); // call buildpage on IT\n \n // replace tags in this contents with that contents\n $this->contents = preg_replace (\n '/<!--\\s*inherit\\s+file\\s*=\\s*\"' . addslashes ($filename) . '\"\\s*-->/', \n $nv->contents, \n $this->contents\n );\n unset ($nv);\n }\n }\n }\n $matches = array (); // reset matches for next preg_match\n }\n }", "title": "" }, { "docid": "fa46e71af753b5e92c76835d50b41f22", "score": "0.4625845", "text": "protected function setTemplates()\n {\n // Container array.\n $templates = [];\n\n // Iterate template sub-arrays.\n foreach ($this->get('templates') as $template) {\n\n // Add new template instances to the container.\n $templates[] = Template::make($template);\n }\n\n // Replace the index with our new container.\n $this->put('templates', $templates);\n }", "title": "" }, { "docid": "42ccf413a4ca978e9bf1c512441c16ce", "score": "0.45929852", "text": "private static function _getDefinitions() {\n\t\treturn [\n\t\t\t[\n\t\t\t\t'id' => 'vegan',\n\t\t\t\t'navn' => 'Vegan',\n\t\t\t\t'beskrivelse' => '',\n\t\t\t\t'kategori' => 'kulturell',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'id' => 'vegetarianer',\n\t\t\t\t'navn' => 'Vegetar',\n\t\t\t\t'beskrivelse' => '',\n\t\t\t\t'kategori' => 'kulturell',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'id' => 'halal',\n\t\t\t\t'navn' => 'Halal',\n\t\t\t\t'beskrivelse' => '',\n\t\t\t\t'kategori' => 'kulturell',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'id' => 'kosher',\n\t\t\t\t'navn' => 'Kosher',\n\t\t\t\t'beskrivelse' => '',\n\t\t\t\t'kategori' => 'kulturell',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'id' => 'storfe',\n\t\t\t\t'navn' => 'Storfe',\n\t\t\t\t'beskrivelse' => '',\n\t\t\t\t'kategori' => 'kulturell',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'id' => 'gluten',\n\t\t\t\t'navn' => 'Gluten',\n\t\t\t\t'beskrivelse' => 'Hvete, rug, bygg, havre, spelt, korasanhvete o.l',\n\t\t\t\t'kategori' => 'standard',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'id' => 'melk',\n\t\t\t\t'navn' => 'Melk',\n\t\t\t\t'beskrivelse' => 'Melk finner du i smør, ost, fløte, iskrem, desserter, melkepulver, yoghurt, bakverk, supper og sauser o.l.',\n\t\t\t\t'kategori' => 'standard',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'id' => 'laktose',\n\t\t\t\t'navn' => 'Laktose',\n\t\t\t\t'beskrivelse' => 'Laktose, melkesukker, er et karbohydrat og en sukkerart som finnes i melk.',\n\t\t\t\t'kategori' => 'standard',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'id' => 'skalldyr',\n\t\t\t\t'navn' => 'Skalldyr',\n\t\t\t\t'beskrivelse' => 'Dette inkluderer krabbe, hummer, reker, krill, kreps og scampi o.l.',\n\t\t\t\t'kategori' => 'standard',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'id' => 'egg',\n\t\t\t\t'navn' => 'Egg',\n\t\t\t\t'beskrivelse' => 'Egg finner du ofte i kaker, majones, sufflé, pasta, paier, noen kjøttprodukter, sauser, desserter og matvarer som er penslet med egg.',\n\t\t\t\t'kategori' => 'standard',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'id' => 'fisk',\n\t\t\t\t'navn' => 'Fisk',\n\t\t\t\t'beskrivelse' => 'Fisk finner du ofte i skalldyrog fiskeretter, leverpostei, salatdressinger, tapenade, buljong og i Worcestersaus.',\n\t\t\t\t'kategori' => 'standard',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'id' => 'peanotter',\n\t\t\t\t'navn' => 'Peanøtter',\n\t\t\t\t'beskrivelse' => 'Peanøtter finner du ofte i kjeks, kaker, desserter, sjokolader, iskrem, peanøttolje, peanøttsmør, asiatiske og orientalske retter.',\n\t\t\t\t'kategori' => 'standard',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'id' => 'notter',\n\t\t\t\t'navn' => 'Nøtter',\n\t\t\t\t'beskrivelse' => '',\n\t\t\t\t'kategori' => 'standard',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'id' => 'soya',\n\t\t\t\t'navn' => 'Soya',\n\t\t\t\t'beskrivelse' => 'Soya finner du i tofu, miso, tempeh, soyasaus, soyadrikker og soyamel o.l.',\n\t\t\t\t'kategori' => 'standard',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'id' => 'selleri',\n\t\t\t\t'navn' => 'Selleri',\n\t\t\t\t'beskrivelse' => 'Dette inkluderer stangselleri (stilkselleri), samt blader, frø og rot (knoll) av selleriplanten.',\n\t\t\t\t'kategori' => 'standard',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'id' => 'sennep',\n\t\t\t\t'navn' => 'Sennep',\n\t\t\t\t'beskrivelse' => 'Dette inkluderer sennep, sennepspulver og sennepsfrø.',\n\t\t\t\t'kategori' => 'standard',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'id' => 'sesamfro',\n\t\t\t\t'navn' => 'Sesamfrø',\n\t\t\t\t'beskrivelse' => 'Sesamfrø finner ofte du i brød, vegetarretter, godteri, knekkebrød, kjeks, hummus, sesamolje, sesammel og tahini (sesampasta).',\n\t\t\t\t'kategori' => 'standard',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'id' => 'svoveldioksid_og_sulfitter',\n\t\t\t\t'navn' => 'Svoveldioksid og sulfitter',\n\t\t\t\t'beskrivelse' => 'Sulfitt brukes ofte til konservering av frukt og grønnsaker (inklusive tomat), og i noen kjøttprodukter, så vel som i brus, juice, vin og øl.',\n\t\t\t\t'kategori' => 'standard',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'id' => 'lupin',\n\t\t\t\t'navn' => 'Lupin',\n\t\t\t\t'beskrivelse' => 'Dette inkluderer lupinfrø og lupinmel, og kan finnes i noen typer brød, bakervarer, mel, vegetarprodukter og pasta.',\n\t\t\t\t'kategori' => 'standard',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'id' => 'blotdyr',\n\t\t\t\t'navn' => 'Bløtdyr',\n\t\t\t\t'beskrivelse' => 'Dette inkluderer muslinger, snegler, blekksprut, blåskjell, kamskjell, østers, hjerteskjell, kråkeboller, akkar, kalamari, sjøsnegler o.l.',\n\t\t\t\t'kategori' => 'standard',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'id' => 'lok',\n\t\t\t\t'navn' => 'Løk',\n\t\t\t\t'beskrivelse' => '',\n\t\t\t\t'kategori' => 'standard',\n\t\t\t],\n\t\t];\n\t}", "title": "" }, { "docid": "b3803201ed471aec1ee57847a36d6d37", "score": "0.45726004", "text": "public function buildThemeTemplates()\n\t{\n\t\t/* Delete compiled items */\n\t\t\\IPS\\Theme::deleteCompiledTemplate( $this->directory );\n\t\t\\IPS\\Theme::deleteCompiledCss( $this->directory );\n\t\t\\IPS\\Theme::deleteCompiledResources( $this->directory );\n\t\t\n\t\t\\IPS\\Theme::i()->importDevHtml( $this->directory, 0 );\n\t\t\\IPS\\Theme::i()->importDevCss( $this->directory, 0 );\n\n\t\t/* Build XML and write to app directory */\n\t\t$xml = new \\XMLWriter;\n\t\t$xml->openMemory();\n\t\t$xml->setIndent( TRUE );\n\t\t$xml->startDocument( '1.0', 'UTF-8' );\n\t\t\n\t\t/* Root tag */\n\t\t$xml->startElement('theme');\n\t\t$xml->startAttribute('name');\n\t\t$xml->text( \"Default\" );\n\t\t$xml->endAttribute();\n\t\t$xml->startAttribute('author_name');\n\t\t$xml->text( \"Invision Power Services, Inc\" );\n\t\t$xml->endAttribute();\n\t\t$xml->startAttribute('author_url');\n\t\t$xml->text( \"http://www.invisionpower.com\" );\n\t\t$xml->endAttribute();\n\t\t\n\t\t/* Skin settings */\n\t\tforeach (\n\t\t\t\\IPS\\Db::i()->select(\n\t\t\t\t'core_theme_settings_fields.*',\n\t\t\t\t'core_theme_settings_fields',\n\t\t\t\tarray( 'sc_set_id=? AND sc_app=?', 1, $this->directory ), \n\t\t\t\t'sc_key ASC'\n\t\t\t)\n\t\t\tas $row\n\t\t)\n\t\t{\n\t\t\t/* Initiate the <fields> tag */\n\t\t\t$xml->startElement('field');\n\t\t\t\n\t\t\tunset( $row['sc_id'], $row['sc_set_id'] );\n\t\t\t\n\t\t\tforeach( $row as $k => $v )\n\t\t\t{\n\t\t\t\tif ( $k != 'sc_content' )\n\t\t\t\t{\n\t\t\t\t\t$xml->startAttribute( $k );\n\t\t\t\t\t$xml->text( $v );\n\t\t\t\t\t$xml->endAttribute();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/* Write value */\n\t\t\tif ( preg_match( '/<|>|&/', $row['sc_content'] ) )\n\t\t\t{\n\t\t\t\t$xml->writeCData( str_replace( ']]>', ']]]]><![CDATA[>', $row['sc_content'] ) );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$xml->text( $row['sc_content'] );\n\t\t\t}\n\t\t\t\n\t\t\t/* Close the <fields> tag */\n\t\t\t$xml->endElement();\n\t\t}\n\t\t\n\t\t/* Templates */\n\t\tforeach ( \\IPS\\Db::i()->select( '*', 'core_theme_templates', array( 'template_set_id=? AND template_user_added=? AND template_app=?', 0, 0 , $this->directory ), 'template_group, template_name, template_location' ) as $template )\n\t\t{\n\t\t\t/* Initiate the <template> tag */\n\t\t\t$xml->startElement('template');\n\t\t\t\n\t\t\tforeach( $template as $k => $v )\n\t\t\t{\n\t\t\t\tif ( in_array( \\substr( $k, 9 ), array('app', 'location', 'group', 'name', 'data' ) ) )\n\t\t\t\t{\n\t\t\t\t\t$xml->startAttribute( $k );\n\t\t\t\t\t$xml->text( $v );\n\t\t\t\t\t$xml->endAttribute();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/* Write value */\n\t\t\tif ( preg_match( '/<|>|&/', $template['template_content'] ) )\n\t\t\t{\n\t\t\t\t$xml->writeCData( str_replace( ']]>', ']]]]><![CDATA[>', $template['template_content'] ) );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$xml->text( $template['template_content'] );\n\t\t\t}\n\t\t\t\n\t\t\t/* Close the <template> tag */\n\t\t\t$xml->endElement();\n\t\t}\n\n\t\t/* Css */\n\t\tforeach ( \\IPS\\Db::i()->select( '*', 'core_theme_css', array( 'css_set_id=? AND css_added_to=? AND css_app=?', 0, 0 , $this->directory ), 'css_path, css_name, css_location' ) as $css )\n\t\t{\n\t\t\t$xml->startElement('css');\n\n\t\t\tforeach( $css as $k => $v )\n\t\t\t{\n\t\t\t\tif ( in_array( \\substr( $k, 4 ), array('app', 'location', 'path', 'name', 'attributes' ) ) )\n\t\t\t\t{\n\t\t\t\t\t$xml->startAttribute( $k );\n\t\t\t\t\t$xml->text( $v );\n\t\t\t\t\t$xml->endAttribute();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/* Write value */\n\t\t\tif ( preg_match( '/<|>|&/', $css['css_content'] ) )\n\t\t\t{\n\t\t\t\t$xml->writeCData( str_replace( ']]>', ']]]]><![CDATA[>', $css['css_content'] ) );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$xml->text( $css['css_content'] );\n\t\t\t}\n\t\t\t\n\t\t\t$xml->endElement();\n\t\t}\n\t\t\n\t\t/* Resources */\n\t\t$_resources\t= $this->_buildThemeResources();\n\t\t\n\t\tforeach ( $_resources as $data )\n\t\t{\n\t\t\t$xml->startElement('resource');\n\t\t\t\t\t\n\t\t\t$xml->startAttribute('name');\n\t\t\t$xml->text( $data['resource_name'] );\n\t\t\t$xml->endAttribute();\n\t\t\t\n\t\t\t$xml->startAttribute('app');\n\t\t\t$xml->text( $data['resource_app'] );\n\t\t\t$xml->endAttribute();\n\t\t\t\n\t\t\t$xml->startAttribute('location');\n\t\t\t$xml->text( $data['resource_location'] );\n\t\t\t$xml->endAttribute();\n\t\t\t\n\t\t\t$xml->startAttribute('path');\n\t\t\t$xml->text( $data['resource_path'] );\n\t\t\t$xml->endAttribute();\n\t\t\t\n\t\t\t/* Write value */\n\t\t\t$xml->text( base64_encode( $data['resource_data'] ) );\n\t\t\t\n\t\t\t$xml->endElement();\n\t\t}\n\t\t\n\t\t/* Finish */\n\t\t$xml->endDocument();\n\t\t\n\t\t/* Write it */\n\t\tif ( is_writable( \\IPS\\ROOT_PATH . '/applications/' . $this->directory . '/data' ) )\n\t\t{\n\t\t\t\\file_put_contents( \\IPS\\ROOT_PATH . '/applications/' . $this->directory . '/data/theme.xml', $xml->outputMemory() );\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new \\RuntimeException( \\IPS\\Member::loggedIn()->language()->addToStack('dev_could_not_write_data') );\n\t\t}\n\t}", "title": "" }, { "docid": "b33d9c9686bf3bd8bed34fc82e9133fa", "score": "0.45693833", "text": "function initialize_item_templates() {\n //First, load the item template\n $this->SC->load_library('Config');\n $item_template = $this->SC->Config->get_setting('item_template');\n if (!$item_template) $item_template = 'default';\n\n $template_file = \"user/item_templates/$item_template.html\";\n\n $raw_template = file_get_contents(\"user/item_templates/$item_template.html\");\n\n if (!$raw_template) {\n trigger_error(\"Item template <strong>$template_file</strong> doesn't exist\",E_USER_ERROR);\n return FALSE;\n }\n\n preg_match_all('/<!--TAG (.*?)\\s*-->(.*?)<!--ENDTAG-->/s',$raw_template,$tags); \n foreach ($tags[1] as $key => $tag) {\n $tag = explode(',',$tag);\n foreach ($tag as $this_tag) {\n $this->tags[$this_tag] = $tags[2][$key];\n }\n }\n\n preg_match_all('/<!--OPTION (.*?)\\s*-->(.*?)<!--ENDOPTION-->/s',$raw_template,$option_templates); \n foreach ($option_templates[1] as $key => $tag) {\n $this->option_templates[$tag] = $option_templates[2][$key];\n } \n\n preg_match_all('/<!--SPECIALTAG (.*?)\\s*-->(.*?)<!--ENDSPECIALTAG-->/s',$raw_template,$special_tags);\n $this->special_tags = array();\n $this->option_special_tags = array(); \n \n foreach ($special_tags[1] as $key => $tag) { \n $tag = explode(' ',$tag); \n \n foreach ($tag as &$this_tag) {\n if (strpos($this_tag,'i--') !== FALSE) {\n \tif(strpos($this_tag,'REGEX:')===0){\n\t\t\t\t\t\t$this_tag = substr($this_tag,9);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$items = \\Model\\Item::all(array('conditions' => array('number REGEXP ?',$this_tag))); \n\t\t\t\t\t\t\n\t\t\t\t\t\t$this_tag = 'REGEX:(';\n\t\t\t\t\t\t$glue = '';\n\t\t\t\t\t\tforeach($items as $item){\n\t\t\t\t\t\t\t$this_tag.=$glue.$item->id;\n\t\t\t\t\t\t\t$glue='|';\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$this_tag.=')';\n\t\t\t\t\t} else{\n\t\t\t\t \t\t$this_tag = substr($this_tag,3);\n \n\t\t\t\t \n\t\t\t\t\t\t$item = \\Model\\Item::find('first',array('conditions' => array('number = ?',$this_tag))); \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t$this_tag = $item->id; \n \t}\n\t\t\t\t}\n if ($this_tag == '*') {\n $this_tag = '([0-9]*)';\n } else if(strpos($this_tag,'REGEX:')===0){\n\t\t\t\t\t$this_tag = str_replace('REGEX:','',$this_tag);\t\t\t\t\t\n\t\t\t\t} else {\n $this_tag = preg_quote($this_tag);\n }\n } \n \n if ($tag[0] == 'OPTION') {\n unset($tag[0]); \n $type = $tag[1];\n unset($tag[1]);\n $cat = implode(' ',$tag);\n \n $this->option_special_tags[$type][$cat] = $special_tags[2][$key]; \n } else {\n \n \n $the_tags = implode('\\|',$tag);\n \n $this->special_tags[] = array(\n 'regex' => \"/\\[\\[$the_tags\\]\\]/\",\n 'template' => $special_tags[2][$key]\n );\n }\n } \n\n\n return TRUE;\n }", "title": "" }, { "docid": "389b69745944c4495a301a6b157e86ff", "score": "0.4551567", "text": "function getTemplates()\n\t{\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "54fb53e8fa1f77e12fc339586fb33c3a", "score": "0.45514962", "text": "public function getDefinitions();", "title": "" }, { "docid": "54fb53e8fa1f77e12fc339586fb33c3a", "score": "0.45514962", "text": "public function getDefinitions();", "title": "" }, { "docid": "fda2b9fb7deb3805f60d5cab29beef35", "score": "0.45454338", "text": "protected function initChunks(): void\n {\n if (!$this->tHead) {\n $this->tHead = $this->template->cloneRegion('Head');\n $this->tRowMaster = $this->template->cloneRegion('Row');\n $this->tTotals = $this->template->cloneRegion('Totals');\n $this->tEmpty = $this->template->cloneRegion('Empty');\n\n $this->template->del('Head');\n $this->template->del('Body');\n $this->template->del('Foot');\n }\n }", "title": "" }, { "docid": "ef87dcfa5b97d3cf7ad0eb9777d1c822", "score": "0.45424893", "text": "public function add_templates() {\n\t\tinclude 'template-data.php';\n\t}", "title": "" }, { "docid": "d43832facab040489e9841dda52e69ff", "score": "0.45387894", "text": "public function extractCollisionShapesFromGodotScene() { if(!isset($this->options[\"merge\"])) {\r\n return;\r\n }\r\n \r\n // exit if given merge file doesnt exist\r\n if(!file_exists(\"input/\" . $this->options[\"merge\"])) {\r\n pd(\"Given merge file does not exist'\" . $this->options[\"merge\"] . \"'\");\r\n }\r\n \r\n // read the file\r\n $mergeFile = file_get_contents(\"input/\" . $this->options[\"merge\"]);\r\n \r\n // first we extract the shape definitions\r\n $splitA = explode('\" type=\"Texture\" id=1]',$mergeFile);\r\n $splitB = explode('[sub_resource type=\"TileSet\" id=',$splitA[1]);\r\n \r\n // do we find any entries? if not we exit\r\n if(\"\" == str_replace(\"\\n\",\"\",$splitB[0])) {\r\n return;\r\n }\r\n \r\n // seems like we found some, so lets store them for later injection\r\n $this->godotMergeResources = $splitB[0];\r\n \r\n // extract the data from tileset input\r\n $regex = '/(?P<index>[0-9]+)\\/(?P<key>[a-z_]+)\\s?=\\s?(?P<value>\"tile (?<tileID>[0-9]+)\"|[a-zA-Z0-9\":_,.\\(\\)\\s\\[\\]\\{\\}]+)\\n/m';\r\n preg_match_all($regex, $mergeFile, $matches);\r\n $ret = [];\r\n foreach($matches['key'] as $k=>$m) {\r\n if($m) {\r\n if($m == \"name\") {\r\n $ret[$matches['index'][$k]][$m] = $matches['tileID'][$k];\r\n } else {\r\n $ret[$matches['index'][$k]][$m] = $matches['value'][$k];\r\n }\r\n }\r\n }\r\n \r\n // write the tileset data into custom lookup array\r\n foreach($ret as $value) {\r\n $this->godotMergeExtract[$value[\"name\"]] = $value;\r\n }\r\n \r\n }", "title": "" }, { "docid": "fe12e9f65cb159d5ff89439418f70be6", "score": "0.45371544", "text": "public function merge(){\n //Read the assigned template\n $this->docXHandler->setTemplateFile($this->templateFile);\n $this->docXHandler->read();\n\n //Iterate over each of the XML Files to be searched for replacing\n foreach($this->docXHandler->getXMLFilesToBeSearched() AS $filename => $content){\n /**\n * Iterate over each rule and action depending on the type\n * @var SimpleRule $rule\n */\n foreach($this->ruleCollection->getRules() AS $rule){\n $re = \"/(?P<class>[a-zA-Z]{1,})$/\";\n preg_match($re, get_class($rule), $matches);\n switch($matches['class']){\n case 'SimpleRule':\n $content = $this->mergeSimpleRule($content,$rule->getData(),$rule->getTarget());\n break;\n case 'RegexpRule':\n $content = $this->mergeRegexpRule($content,$rule->getData(),$rule->getTarget());\n break;\n }\n $this->docXHandler->setXMLFile($filename,$content);\n }\n }\n }", "title": "" }, { "docid": "e0dc8f1a698d9310247413ded300f9e2", "score": "0.44993004", "text": "function loadIndex()\n {\n\n $this->templateEngine->display(\"Index\\Index.tpl\");\n }", "title": "" }, { "docid": "650c20228f01d6ecb58191349ac321e0", "score": "0.44790307", "text": "protected function readTemplateVars()\n {\n $this->vars = [];\n $expression = sprintf(\n '/%s(.*?)%s/',\n preg_quote(static::VARIABLE_START),\n preg_quote(static::VARIABLE_END)\n );\n\n preg_match_all($expression, $this->cleanTemplate, $matches);\n foreach ($matches[1] as $var) {\n $this->vars[$var] = null;\n }\n }", "title": "" }, { "docid": "4c62cd31f488cc4fa87d6a9ef4f15327", "score": "0.44784695", "text": "protected function load() {\n\t\t\t$groups = array(self::GROUP_HEADER, self::GROUP_FOOTER);\n\t\t\tforeach($groups as $group) {\n\t\t\t\t$items = $this->config->get($group);\n\n\t\t\t\tforeach($items as $item => $params) {\n\t\t\t\t\t$this->group($group)->add($item, $params);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t# -- reset group\n\t\t\t$this->group(self::GROUP_HEADER);\n\t\t}", "title": "" }, { "docid": "a5b5b3b49ede0841a0a1212f1ab3d361", "score": "0.4471615", "text": "public function render()\n {\n foreach ($this->_data as $nodeKey => $nodeValue) {\n if ($nodeKey === 'template') {\n $template = $nodeValue;\n if ($template && file_exists($template)) {\n include $template;\n }\n }\n }\n }", "title": "" }, { "docid": "e95b6603a1d57138d0d30d3abfa35963", "score": "0.44594032", "text": "public function inject_autocomplete_templates() {\n\n\t\t$templates = array(\n\t\t\t'header' => plugin_dir_path( __FILE__ ) . 'partials/algolia-autocomplete-header.php',\n\t\t\t'post-suggestion' => plugin_dir_path( __FILE__ ) . 'partials/algolia-autocomplete-post-suggestion.php',\n\t\t\t'term-suggestion' => plugin_dir_path( __FILE__ ) . 'partials/algolia-autocomplete-term-suggestion.php',\n\t\t\t'user-suggestion' => plugin_dir_path( __FILE__ ) . 'partials/algolia-autocomplete-user-suggestion.php',\n\t\t\t'footer' => plugin_dir_path( __FILE__ ) . 'partials/algolia-autocomplete-footer.php',\n\t\t\t'empty' => plugin_dir_path( __FILE__ ) . 'partials/algolia-autocomplete-empty.php',\n\t\t);\n\n\t\t$templates = (array) apply_filters( 'algolia_autocomplete_templates', $templates );\n\n\t\tforeach ( $templates as $name => $file ) {\n\t\t\trequire_once $file;\n\t\t}\n\t}", "title": "" }, { "docid": "f4840cd29bc535ed2aa71cb6ec372e3b", "score": "0.44463074", "text": "public function buildIndex()\n {\n\n if ($filename = BuizCore::templatePath($this->indexTemplate, 'index')) {\n\n if (Log::$levelVerbose)\n Log::verbose('Parsing index: '.$filename);\n\n $stop = true; // block\n $VAR = $this->var;\n $FUNC = $this->funcs;\n $ITEM = $this->object;\n $ELEMENT = $this->object;\n $AREA = $this->area;\n\n $MESSAGES = '';\n $TEMPLATE = $this->template;\n $FOOTER = $this->footer;\n\n $I18N = $this->i18n;\n $USER = $this->user;\n $URL = $this->url;\n\n ob_start();\n include $filename;\n\n $content = ob_get_contents();\n ob_end_clean();\n\n } else {\n Error::addError('Index Template does not exist: '.$filename);\n\n if (Log::$levelDebug)\n $content = '<p class=\"wgt-box error\">Wrong Index Template: '.$filename.' </p>';\n\n else\n $content = '<p class=\"wgt-box error\">Wrong Index Template</p>';\n }\n\n $this->assembledBody .= $content;\n\n return $this->assembledBody;\n\n }", "title": "" }, { "docid": "5c4bbd8fe4493ba6c38df839b6ca6179", "score": "0.44448784", "text": "private function loadTemplateEditArray()\n\t{\n\t\t$tags = $this->loadUsedTemplateTags();\n\t\t$table = $this->buildTranslationTable('template-tags', array_keys($tags), true);\n\t\t$global = Dictionary::getArray($this->module->getIdentifier(), 'global-tags', $this->destLang);\n\t\tforeach ($table as &$entry) {\n\t\t\tif (empty($entry['translation']) && isset($global[$entry['tag']])) {\n\t\t\t\t$entry['placeholder'] = $global[$entry['tag']];\n\t\t\t}\n\t\t\tif (!isset($tags[$entry['tag']]))\n\t\t\t\tcontinue;\n\t\t\t$entry['notes'] = implode('<br>', $tags[$entry['tag']]);\n\t\t}\n\t\treturn $table;\n\t}", "title": "" }, { "docid": "b36fc47e263aff318d62e3a9df6f9c89", "score": "0.4442366", "text": "function loadMetadata(){\n require_once($this->getTemplatesLocation());\n require_once($this->getTypesLocation()); \n\n $lastitem = 0;\n foreach($this->getSections() as $section){\n if ($section->questions == null){\n $section->questions = array();\n// $metadata = file_get_contents(prependPath($section->getQuestionLocation()));\n// $metadata = replaceFillsToAdmin($metadata);\n/*// eval('?>'.$metadata.'<?'); //ai :(*/\n \n require_once($section->getQuestionLocation());\n \n \n $arr = get_defined_vars(); //get the defined vars from php and loop\n $startitem = 0;\n //echo '<hr>';\n foreach($arr as $key=>$obj){\n if ($lastitem <= $startitem){ //only if not already analyzed\n $array = (is_array($obj) && sizeof($obj) > 0) ? getArray($obj, array()) : array();\n if ($obj instanceof Question){\n if ($key == getTextWithoutBrackets($obj->getName())){\n //$array = getArray($obj, array()); //get the array index if array\n $obj->setArray($array);\n $obj->setName($key);\n $section->questions[$key] = $obj;\n }\n // echo '<b>' . $obj->getName() . '</b>';\n }\n else if ($obj instanceof QuestionGroup){\n if ($key == $obj->getName()){\n// $array = getArray($obj, array()); //get the array index if array\n $obj->setArray($array);\n $obj->setName($key);\n $section->questionGroups[getTextWithoutBrackets($obj->getName())] = $obj;\n }\n //echo $obj->getName();\n }\n else if ($obj instanceof Type){\n $this->types[$obj->getName()] = $obj;\n //echo $obj->getName();\n }\n else if ($obj instanceof Template){\n $this->templates[$obj->getName()] = $obj;\n //echo $obj->getName();\n }\n //echo '<br/>';\n }\n $startitem++;\n }\n $lastitem = $startitem;\n }\n }\n }", "title": "" }, { "docid": "b847f7818fd022f1b5cc708e9f7ba805", "score": "0.44366115", "text": "public function getTemplate($tags) {\n $fileName = $this->directory . '/style.html';\n $text = file_exists($fileName) ? @file_get_contents($fileName) : false;\n if ($text === false) {\n if (!empty($this->parent)) {\n return $this->parent->getTemplate($tags);\n }\n trigger_error(\"Can't open file: '$fileName'\", E_USER_NOTICE);\n }\n foreach ($tags as $tag => $value) {\n $regex = \"%((</?)$tag([>| ]))%\";\n $replace = \"\\$2$value\\$3\";\n $text = preg_replace($regex, $replace, $text);\n }\n return new EasyIndexTemplate($text, EasyIndexTemplate::PAGETEXT, $fileName);\n }", "title": "" }, { "docid": "cacb640dc8415f73775fb9157624cc67", "score": "0.44267532", "text": "public function populateTemplates()\n\t\t\t{\n\t\t\t\t$dir_array = readDirectory($this->CFG['site']['project_path']. 'design/templates/', 'dir');\n\t\t\t\t$template_arr = array();\n\t\t\t\tforeach($dir_array as $template)\n\t\t\t\t\t{\n\t\t\t\t\t\t$template_arr[] = $template;\n\t\t\t\t\t}\n\t\t\t\treturn $template_arr;\n\t\t\t}", "title": "" }, { "docid": "9f3b9e17619024c58f9209b29e312178", "score": "0.44177562", "text": "protected function readTemplateInfo($path)\n\t{\n\t\t$templates = null;\n\t\t/* try to read from file */\n\t\tif (readable($path))\t\t\n\t\t{\n\t\t\t$xml\t= new SimpleXMLElement($path, null, true);\n\t\t\t\n\t\t\t// Get the template root\n\t\t\t$this->_current_tpl_root = $xml->content->rootpath;\n\t\t\t\n\t\t\tforeach ($xml->content->template as $templt)\n\t\t\t{\n\t\t\t\t$templates[]\t= (array)$templt;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif( $templates )\t$this->_templates = $templates;\n\t\t\n\t}", "title": "" }, { "docid": "6b510d38021e62a176bad90a500d7618", "score": "0.4412922", "text": "public function loadTemplateAction(){\n $this->loadLayout();\n $this->renderLayout();\n }", "title": "" }, { "docid": "e997624516552cf4a4acc3e357a207a7", "score": "0.441088", "text": "function gbLoadTemplate($tempFile) {\n global $cfgTheme;\n\n # If specified $tempFile exists in current theme, use it,\n if ( file_exists(\"themes/$cfgTheme/$tempFile\") )\n $templateFile = \"themes/$cfgTheme/$tempFile\";\n # if not, use the one in melody1 theme (melody1 is the \"default\" theme).\n else\n $templateFile = \"themes/melody1/$tempFile\";\n\n $fp = fopen($templateFile, \"r\");\n fseek($fp, 0);\n $templateData = fread($fp, filesize($templateFile));\n fclose($fp);\n\n return $templateData;\n}", "title": "" }, { "docid": "7392bda027f56cab5bd9e16ddedd4125", "score": "0.44034415", "text": "function templates() {\n\t\tif ( false === ( $things = pods_transient_get( 'isk_things' ) ) ) {\n\n\t\t\t$pods = $this->pod();\n\t\t\tif ( $pods->total() > 0 ) {\n\t\t\t\twhile ( $pods->fetch() ) {\n\t\t\t\t\t$pods->id = $pods->id();\n\t\t\t\t\t$things[ $pods->id() ] = $pods->template( 'single' );\n\t\t\t\t}\n\n\t\t\t\tif ( ! self::$debug ) {\n\t\t\t\t\tpods_transient_set( 'isk_things', $things, app_starter_cache_expires() );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tself::$templates = $things;\n\n\t}", "title": "" }, { "docid": "18f6e8c1441b8783f3d4634efbca8921", "score": "0.44003138", "text": "public function initializeTemplates();", "title": "" }, { "docid": "b3d402dce0876bcb8e6cb90d14009d8a", "score": "0.4399982", "text": "protected static function _prepareMapLayoutBlocks()\n {\n $files = Files::init()->getLayoutFiles([], false);\n foreach ($files as $file) {\n $area = 'default';\n if (preg_match('/[\\/](?<area>adminhtml|frontend)[\\/]/', $file, $matches)) {\n $area = $matches['area'];\n self::$_mapLayoutBlocks[$area] = self::$_mapLayoutBlocks[$area] ?? [];\n }\n if (preg_match('/(?<namespace>[A-Z][a-z]+)[_\\/\\\\\\\\](?<module>[A-Z][a-zA-Z]+)/', $file, $matches)) {\n $module = $matches['namespace'] . '\\\\' . $matches['module'];\n $xml = simplexml_load_file($file);\n foreach ((array)$xml->xpath('//container | //block') as $element) {\n /** @var \\SimpleXMLElement $element */\n $attributes = $element->attributes();\n $block = (string)$attributes->name;\n if (!empty($block)) {\n self::$_mapLayoutBlocks[$area][$block] = self::$_mapLayoutBlocks[$area][$block] ?? [];\n self::$_mapLayoutBlocks[$area][$block][$module] = $module;\n }\n }\n }\n }\n }", "title": "" }, { "docid": "5c531f049e4d7a1605c7569b1390fa30", "score": "0.43966115", "text": "function insert_templates($skin_dir, &$db, &$nodes, $template_names = null)\n\t{\n\t\t$templates_inserted = array();\n\n\t\tforeach ($nodes['child'] as $node) {\n\t\t\tif ($node['name'] == 'TEMPLATE') {\n\t\t\t\t$temp_set = '';\n\t\t\t\t$temp_name = '';\n\t\t\t\t$temp_display = '';\n\t\t\t\t$temp_desc = '';\n\t\t\t\t$temp_html = '';\n\n\t\t\t\tforeach ($node['child'] as $element) {\n\t\t\t\t\tif (isset($element['content'])) {\n\t\t\t\t\t\tswitch($element['name']) {\n\t\t\t\t\t\tcase 'SET':\n\t\t\t\t\t\t\t$temp_set = $element['content'];\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'NAME':\n\t\t\t\t\t\t\t$temp_name = $element['content'];\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'DISPLAYNAME':\n\t\t\t\t\t\t\t$temp_display = $element['content'];\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'DESCRIPTION':\n\t\t\t\t\t\t\t$temp_desc = $element['content'];\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'HTML':\n\t\t\t\t\t\t\t$temp_html = trim($element['content']);\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\tif (empty($temp_set) || empty($temp_name) || empty($temp_display)) {\n\t\t\t\t\treturn \"ERROR: No data available for template\\n\";\n\t\t\t\t}\n\t\t\t\tif ($template_names === null || in_array($temp_name, $template_names)) {\n\t\t\t\t\t$db->dbquery(\"REPLACE INTO templates\n\t\t\t\t\t\t(template_skin, template_set, template_name, template_html, template_displayname, template_description)\n\t\t\t\t\t\tVALUES ('%s', '%s', '%s', '%s', '%s', '%s')\",\n\t\t\t\t\t\t$skin_dir, $temp_set, $temp_name, $temp_html, $temp_display, $temp_desc);\n\t\t\t\t\t$templates_inserted[] = $temp_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $templates_inserted;\n\t}", "title": "" }, { "docid": "e33ef663a632d53583c7f1536a2f21b0", "score": "0.43941376", "text": "public function buildFromTemplates()\n{\n\t$bits=func_get_args();\n\t$content=\"\";\n\tforeach($bits as $bit)\n\t{\n\t\tif(strpos($bit,'views/')===false)\n\t\t{\n\t\t\t$bit='views/'.$this->registry->getSetting('view').'/templates/'.$bit;\n\t\t}\n\t\tif(file_exists($bit)==true)\n\t\t{\n\t\t\t$content.=file_get_contents($bit);\n\t\t}\n\t}\n\t$this->page->setContent($content);\n}", "title": "" }, { "docid": "f37dad25a583a32877dd4ed22c512e80", "score": "0.43887675", "text": "public function load_template($template);", "title": "" }, { "docid": "d8f396905020f055306784527d177d7c", "score": "0.43874103", "text": "private function load_color_palette() {\n\t//--\n\tswitch($this->skin) {\n\t\t//--\n\t\tcase 1: // SmartFramework\n\t\tdefault:\n\t\t//--\n\t\t\t//--\n\t\t\t$this->color['(c)'] \t\t\t\t= @imagecolorallocate($this->img, 221, 221, 221); // #DDDDDD\n\t\t\t$this->color['title'] \t\t\t\t= @imagecolorallocate($this->img, 51, 51, 51); // #333333\n\t\t\t$this->color['wireframe'] \t\t\t= @imagecolorallocate($this->img, 51, 51, 51); // #333333\n\t\t\t$this->color['background'] \t\t\t= @imagecolorallocate($this->img, 255, 255, 255); // #FFFFFF\n\t\t\t$this->color['axis_values'] \t\t= @imagecolorallocate($this->img, 119, 136, 153); // #778899\n\t\t\t$this->color['axis_line'] \t\t\t= @imagecolorallocate($this->img, 119, 136, 153); // #778899\n\t\t\t$this->color['bg_lines'] \t\t\t= @imagecolorallocate($this->img, 236, 236, 236); // #ECECEC\n\t\t\t$this->color['bg_legend'] \t\t\t= @imagecolorallocate($this->img, 246, 246, 246); // #F6F6F6\n\t\t\t//--\n\t\t\tif(preg_match(\"/^(1|2)$/\", (string)$this->type)) {\n\t\t\t\t$this->color['bars'] \t\t\t= @imagecolorallocate($this->img, 102, 153, 0); // #669900\n\t\t\t\t$this->color['bars_shadow'] \t= @imagecolorallocate($this->img, 51, 102, 0); // #336600\n\t\t\t\t$this->color['bars_2'] \t\t\t= @imagecolorallocate($this->img, 0, 51, 102); // #003366\n\t\t\t\t$this->color['bars_2_shadow'] \t= @imagecolorallocate($this->img, 0, 51, 153); // #003399\n\t\t\t} elseif(preg_match(\"/^(3|4)$/\", (string)$this->type)) {\n\t\t\t\t$this->color['line'] \t\t\t= @imagecolorallocate($this->img, 255, 102, 0); // #FF6600\n\t\t\t\t$this->color['line_2'] \t\t\t= @imagecolorallocate($this->img, 0, 51, 153); // #003399\n\t\t\t} elseif(preg_match(\"/^(5|6)$/\", (string)$this->type)) {\n\t\t\t\t$this->color['arc_1'] \t\t\t= @imagecolorallocate($this->img, 255, 102, 0); // #FF6600\n\t\t\t\t$this->color['arc_2'] \t\t\t= @imagecolorallocate($this->img, 0, 51, 153); // #003399\n\t\t\t\t$this->color['arc_3'] \t\t\t= @imagecolorallocate($this->img, 150, 221, 76); // #96DD4C\n\t\t\t\t$this->color['arc_4'] \t\t\t= @imagecolorallocate($this->img, 255, 0, 0); // #FF0000\n\t\t\t\t$this->color['arc_5'] \t\t\t= @imagecolorallocate($this->img, 102, 153, 255); // #6699FF\n\t\t\t\t$this->color['arc_6'] \t\t\t= @imagecolorallocate($this->img, 255, 255, 0); // #FFFF00\n\t\t\t\t$this->color['arc_7'] \t\t\t= @imagecolorallocate($this->img, 153, 153, 153); // #999999\n\t\t\t\t$this->color['arc_1_shadow'] \t= @imagecolorallocate($this->img, 255, 153, 0); // #FF9900\n\t\t\t\t$this->color['arc_2_shadow'] \t= @imagecolorallocate($this->img, 102, 102, 153); // #666699\n\t\t\t\t$this->color['arc_3_shadow'] \t= @imagecolorallocate($this->img, 0, 127, 0); // #007F00\n\t\t\t\t$this->color['arc_4_shadow'] \t= @imagecolorallocate($this->img, 127, 0, 0); // #7F0000\n\t\t\t\t$this->color['arc_5_shadow'] \t= @imagecolorallocate($this->img, 85, 124, 206); // #557CCE\n\t\t\t\t$this->color['arc_6_shadow'] \t= @imagecolorallocate($this->img, 223, 223, 0); // #007F7F\n\t\t\t\t$this->color['arc_7_shadow'] \t= @imagecolorallocate($this->img, 102, 102, 102); // #666666\n\t\t\t} //end if else\n\t\t\t//--\n\t\t\tbreak;\n\t\t\t//--\n\t} //end switch\n\t//--\n}", "title": "" }, { "docid": "ac6cbf7c7d59a3334beed83d5b6c074b", "score": "0.4387261", "text": "function init_template($skinID='', $zone, $theme, $mod, $type)\n\t{\n\t\tstatic $blocktemplates, $zonetemplates;\n\n\t\tif (file_exists(pnConfigGetVar('temp') . '/Xanthia_Config/'. pnVarPrepForOS($theme) . '.' . pnVarPrepForOS($mod) . '.tplconfig.php') && \n\t\t !isset($blocktemplates) && !isset($zonetemplates)) {\n\t\t\tinclude(pnConfigGetVar('temp') . '/Xanthia_Config/'. pnVarPrepForOS($theme) . '.' . pnVarPrepForOS($mod) . '.tplconfig.php');\n\t\t}\n\t\t\n\t\tif($type == 'block'){\n\t\t\tif (!isset($blocktemplates)) {\t\t\n\t\t\t\t// Setup the DB handle\n\t\t\t\t$dbconn =& pnDBGetConn(true);\n\t\t\t\t$pntable =& pnDBGetTables();\n\t\n\t\t\t\t// Checdk our parameters\n\t\t\t\tif (empty($skinID)) {\n\t\t\t\t\t// Assign the active skin\n\t\t\t\t\t// @see xanthia_userapi_getSkinName()\n\t\t\t\t\t$skinID = $this->skins['id'];\n\t\t\t\t}\n\t\t\n\t\t\t\t// Setup the table columns info\n\t\t\t\t$blcontrolcolumn = &$pntable['theme_blcontrol_column'];\n\t\t\t\t// Build the query\n\t\t\t\t$sql = \"SELECT $blcontrolcolumn[blocktemplate] as blocktemplate,\n\t\t\t\t\t\t\t\t$blcontrolcolumn[identi] as identi\n\t\t\t\t\t\t\t\tFROM $pntable[theme_blcontrol]\n\t\t\t\t\t\t\t\tWHERE $blcontrolcolumn[theme]='\".pnVarPrepForStore($theme).\"'\n\t\t\t\t\t\t\t\tAND $blcontrolcolumn[module]='\".pnVarPrepForStore($mod).\"'\n\t\t\t\t\t\t\t\tAND $blcontrolcolumn[blocktemplate] !=''\";\n\t\n\t\t\t\t// Execute the query\n\t\t\t\t$result =& $dbconn->Execute($sql);\n\t\n\t\t\t\t$blocktemplates = array();\n\t\t\t\twhile(!$result->EOF) {\n\t\t\t\t\t$row = $result->GetRowAssoc(false);\n\t\t\t\t\t$blocktemplates[] = $row;\n\t\t\t\t\t$result->MoveNext();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n if (!empty($blocktemplates) && is_array($blocktemplates) && $type == 'block') {\n\t\t\tforeach ($blocktemplates as $blocktemplate) {\n\t\t\t\tif (is_numeric($blocktemplate['identi'])){\n\t\t\t\t\t$btitle = pnBlockGetInfo($blocktemplate['identi']);\n\t\t\t\t\t$blocktitle = strtolower(strip_tags($btitle['title']));\n\t\t\t\t\t$blocktitle = ereg_replace(\"[^0-9a-z_]\",\"\",$blocktitle);\n\t\t\t\t}else{\n\t\t\t\t\t$blocktitle = $blocktemplate['identi'];\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif ($blocktitle == $zone) {\n\t\t\t\t\t$foundtemplate = $blocktemplate['blocktemplate'];\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//echo \"$skinID $zone $theme $mod\";\n\t\tif (!empty($foundtemplate)) {\n\t\t // template found, assign it, close result set\n\t\t\t$template = $foundtemplate;\n\n\t\t\t// Make sure this zone is active\n\t\t\tif (!empty($this->zone[$zone])) {\n\t\t\t\t// Verify a template file was found\n\t\t\t\tif (!empty($template)) {\n\t\t\t\t\t// Assign the template to this zone\n\t\t\t\t\t$this->skins[$zone] = \"$template\";\n\t\t\t\t}\n\t\t\t} \n } else { \n\t\t if (!isset($zonetemplates)) {\n\t\t\t\n\t\t\t\t// Setup the DB handle\n\t\t\t\t$dbconn =& pnDBGetConn(true);\n\t\t\t\t$pntable =& pnDBGetTables();\n \n\t\t\t\t// Setup the table columns info\n\t\t\t\t$column = &$pntable['theme_layout_column'];\n\n\t\t\t\t// Build the query\n\t\t\t\t$query = \"SELECT $column[tpl_file] as template,\n \t\t\t\t\t\t\t\t$column[zone_label] as zone\n\t\t\t\t\t\t FROM $pntable[theme_layout]\n\t\t\t\t\t\t WHERE $column[skin_id]='\".pnVarPrepForStore($skinID).\"'\";\n\t\t\n\t\t\t\t// Execute the query\n\t\t\t\t$result =& $dbconn->Execute($query);\n\t\t\t\t$zonetemplates = array();\n\t\t\t\twhile(!$result->EOF) {\n\t\t\t\t\t$row = $result->GetRowAssoc(false);\n\t\t\t\t\t$zonetemplates[$row['zone']] = $row['template'];\n\t\t\t\t\t$result->MoveNext();\n\t\t\t\t}\n\t\t\t\t$result->Close();\n\t\t\t}\n\t\t\tif (isset($zonetemplates[$zone])) {\n\t\t\t\t// template found, assign it, close result set\n\t\t\t\t$template = $zonetemplates[$zone];\n\t\t\t\t\n\t\t\t\t// Make sure this zone is active\n\t\t\t\tif (!empty($this->zone[$zone])) {\n\t\t\t\t\t// Verify a template file was found\n\t\t\t\t\tif (!empty($template)) {\n\t\t\t\t\t\t// Assign the template to this zone\n\t\t\t\t\t\t$this->skins[$zone] = \"$template\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// No template specified in the dB, try the default filename\n\t\t\t\tif (file_exists($this->skinspath.\"/templates/$zone.tpl\")) {\n\t\t\t\t\t// Template found, use it by default\n\t\t\t\t\t$this->skins[$zone] = \"$zone.tpl\";\n\t\t\t\t} else {\n\t\t\t\t\tif (file_exists($this->skinspath.\"/templates/$zone.htm\")) {\n\t\t\t\t\t\t//FIXME: tpl sempre prima di htm\n\t\t\t\t\t\t$this->skins[$zone] = \"$zone.htm\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// No Template found, turn off the Zone\n\t\t\t\t\t\tpnSessionSetVar('errormsg', _XA_NOZONEFOUND.\": $zone\");\n\t\t\t\t\t\t$this->zone[$zone] = '';\n\t\t\t\t\t\t$this->skins[$zone] = '';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "61f53bec7a4c7275578748a493e1b281", "score": "0.43834287", "text": "function register_sections() {\n\t\t\n\t\tglobal $pl_section_factory;\n\n\t\t$disabled = apply_filters( 'pagelines_section_disabled', array() );\n\n\t\t// load the main array\n\t\t$sections = $this->get_sections();\n\n\t\t// filter main array containing child and parent and any custom sections\n\t\t$sections = apply_filters( 'pagelines_section_admin', $sections );\n\t\t\n\t\t// right here we go...\n\t\tforeach ( $sections as $type ) {\n\t\t\n\t\t\t// if the type is empty move along\n\t\t\tif ( !is_array( $type ) || empty( $type ) )\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\t// now register each section in the type\n\t\t\tforeach ( $type as $section ) {\n\t\t\t\t\n\t\t\t\t// deprecated, loads the less?\n\t\t\t\t$section['loadme'] = true;\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t* Checks to see if we are a child section, if so disable the parent\n\t\t\t\t* Also if a parent section and disabled, skip.\n\t\t\t\t* AND if we are a nested theme disable the parent.\n\t\t\t\t*/\n\t\t\t\tif ( 'parent' != $section['type'] && isset( $sections['parent'][ $section['class'] ] ) ) {\n\t\t\t\t\t$disabled['parent'][ $section['class'] ] = true;\n\t\t\t\t}\n\n\n\t\t\t\t// TODO add inception here if we are nested theme and user adds a child theme, double overide??\t\n\t\t\t\t\n\t\t\t\t// check if section is already disabled.\n\t\t\t\tif ( isset( $disabled[ $section['type'] ][ $section['class'] ] ) && ! $section['persistant'] )\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\t$section_data = array(\n\t\t\t\t\t'base_dir' => $section['base_dir'],\n\t\t\t\t\t'base_url' => $section['base_url'],\n\t\t\t\t\t'base_file' => $section['base_file'],\n\t\t\t\t\t'name'\t\t=> $section['name']\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\tif( isset( $disabled[$section['type']][ $section['class'] ] ) && true == $disabled[$section['type']][ $section['class'] ] )\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\tif ( ! class_exists( $section['class'] ) && is_file( $section['base_file'] ) ) {\n\t\t\t\t\tinclude( $section['base_file'] );\n\t\t\t\t\t$pl_section_factory->register( $section['class'], $section_data );\n\t\t\t\t}\n\t\t\t} // /type\t\t\t\n\t\t} // /register loop\n\t}", "title": "" }, { "docid": "cc2f2cade670c92c5372fbb273f4eccf", "score": "0.4382972", "text": "private function _load_default_page_templates()\n {\n $template_dir = $this->template_dir;\n\n // Reads all templates from the folder\n if (is_dir($template_dir)) {\n if ($dh = opendir($template_dir)) {\n while (($file = readdir($dh)) !== false) {\n\n $full_path = $template_dir . $file;\n\n if (filetype($full_path) == 'dir') {\n continue;\n }\n\n // Gets Template Name from the file\n $filedata = get_file_data($full_path, array(\n 'Template Name' => 'Template Name',\n ));\n\n $template_name = $filedata['Template Name'];\n\n $templates[$full_path] = $template_name;\n }\n closedir($dh);\n }\n }\n\n return $templates;\n }", "title": "" }, { "docid": "56ff09192afc523426fd316628fc5e20", "score": "0.4382352", "text": "function loadstyles() {\n\n\t}", "title": "" }, { "docid": "5aa8e8cad642f6c4ae43bdc374464e6e", "score": "0.4373383", "text": "private function readTemplate($path, $mandatoryNodes = array('key', 'view', 'controller', 'cacheLifetime'))\n {\n $this->tags = array();\n $template = array();\n\n $this->xmlDocument = XmlUtils::loadFile($path, __DIR__ . static::SCHEME_PATH);\n\n if (!empty($mandatoryNodes)) {\n $template = $this->getMandatoryNodes($mandatoryNodes);\n }\n\n $template[$this->propertiesKey] = array();\n $xpath = new \\DOMXPath($this->xmlDocument);\n $xpath->registerNamespace('x', 'http://schemas.sulu.io/template/template');\n\n /** @var \\DOMNodeList $nodes */\n $nodes = $xpath->query($this->pathToProperties);\n\n foreach ($nodes as $node) {\n\n /** @var \\DOMNode $node */\n $attributes = $this->getAllAttributesOfNode($node);\n\n if (in_array($node->tagName, $this->complexNodeTypes)) {\n $attributes['type'] = $node->tagName;\n }\n\n $name = $attributes[$this->nameKey];\n $params = $this->getChildrenOfNode($node, $this->pathToParams, $xpath, $this->paramsKey);\n $tags = $this->getChildrenOfNode($node, $this->pathToTags, $xpath, $this->tagKey);\n $this->tags = array_merge($this->tags, (isset($tags['tags']) ? $tags['tags'] : array()));\n $template[$this->propertiesKey][$name] = array_merge($attributes, $tags, $params);\n\n if (in_array($node->tagName, $this->complexNodeTypes)) {\n $template[$this->propertiesKey][$name][$this->typesKey] = $this->parseSubproperties($xpath, $node);\n }\n }\n\n // check combination of tag and priority of uniqueness\n // check required properties\n // DEEP COPY\n $required = array_merge(array(), $this->requiredTags);\n for ($x = 0; $x < sizeof($this->tags); $x++) {\n // check required properties\n for ($y = 0; $y < sizeof($required); $y++) {\n if ($required[$y] === $this->tags[$x]['name']) {\n break;\n }\n }\n unset($required[$y]);\n\n // extract name and prio\n $xName = $this->tags[$x]['name'];\n $xPriority = isset($this->tags[$x]['priority']) ? $this->tags[$x]['priority'] : 1;\n for ($y = 0; $y < sizeof($this->tags); $y++) {\n // extract name and prio\n $yName = $this->tags[$y]['name'];\n $yPriority = isset($this->tags[$y]['priority']) ? $this->tags[$y]['priority'] : 1;\n // check of uniqueness\n if ($x !== $y && $xName === $yName && $xPriority === $yPriority) {\n throw new InvalidXmlException(sprintf(\n 'Priority %s of tag %s exists duplicated',\n $xPriority,\n $xName\n ));\n }\n }\n }\n\n // throw exception if not all required tags are set\n if (sizeof($required) > 0) {\n throw new InvalidXmlException(sprintf(\n 'Tag(s) %s required but not found',\n join(',', $required)\n ));\n }\n\n return $template;\n }", "title": "" }, { "docid": "5b88eac18479800e1fb8eca475d84172", "score": "0.43668187", "text": "public function generate_class_file_contents()\n {\n \n $trait_class = $this->get_class_name();\n $name = $this->name;\n $pk_name = $this->cfg('pk_name');\n $file_contents = <<<EOF\n<?php defined('SYSPATH') or die('No direct script access.');\n/**\n * FileDescription: {$this->description}\n */\ntrait {$trait_class} {\n\nEOF;\n //set all traits as 'use' statements\n if (isset($this->traits) && is_array($this->traits)) \n {\n foreach ($this->traits as $trait)\n {\n $file_contents .= \" use \".$trait->pk_value().\";\".PHP_EOL;\n } \n\n }\n $quoted_name = Field::generate_php_value($this->name);\n $quoted_label = Field::generate_php_value($this->label);\n $quoted_desc = Field::generate_php_value($this->description);\n $file_contents .= <<<EOF\n public static \\$__{$this->name}__scfg = array (\n 'traits__{$this->name}__name' => {$quoted_name},\n 'traits__{$this->name}__label' => {$quoted_label},\n 'traits__{$this->name}__description' => {$quoted_desc}, \n 'field_keys' => array (\n\nEOF;\n\n //store all fields in trait scfg\n if (isset($this->fields) && is_array($this->fields)) \n {\n foreach ($this->fields as $field)\n {\n $field_class = $field->pk_value();\n $field_obj = $field_class::factory();\n $file_contents .= \" '\".$field_obj->name.\"',\".PHP_EOL;\n } \n }\n\n $file_contents .= \" ),\".PHP_EOL;\n $file_contents .= \" );\".PHP_EOL;\n\n //set all default values for each field on the trait\n if (isset($this->fields) && is_array($this->fields)) \n {\n foreach ($this->fields as $field)\n {\n $field_class = $field->pk_value();\n $field_obj = $field_class::factory();\n //if the default value should not be set to null and defaultvalue is null\n if ($field_obj->defaultvalue() === NULL && $field_obj->nullvalue === FALSE)\n {\n //skip defining this field so it has no default value\n continue;\n }\n else\n {\n $file_contents .= \" public \\$\".$field_obj->name.\" = \".Field::generate_php_value($field_obj->export_value($field_obj->defaultvalue())).\";\".PHP_EOL;\n }\n \n }\n\n }\n\n //loop through all stored methods\n if (isset($this->methods) && is_array($this->methods))\n {\n foreach ($this->methods as $method)\n {\n $file_contents .= PHP_EOL.\" \".$method['comment'];\n $file_contents .= $method['source'].PHP_EOL;\n\n }\n\n }\n\n $file_contents .= \"}\".PHP_EOL;\n\n return $file_contents;\n }", "title": "" }, { "docid": "e6957ead35f1363f3676b8972d37bedc", "score": "0.43641597", "text": "function readCMaps() \n {\n $table_location = $tables[\"cmap\"];\n if ($table_location == NULL)\n throw new DocumentException(\"Table 'cmap' does not exist in \" . $fileName . $style);\n $rf->seek($table_location[0]);\n $rf->skipBytes(2);\n $num_tables = $rf->readUnsignedShort();\n $fontSpecific = FALSE;\n $map10 = 0;\n $map31 = 0;\n $map30 = 0;\n for ($k = 0; $k < $num_tables; ++$k) {\n $platId = $rf->readUnsignedShort();\n $platSpecId = $rf->readUnsignedShort();\n $offset = $rf->readInt();\n if ($platId == 3 && $platSpecId == 0) {\n $fontSpecific = TRUE;\n $map30 = $offset;\n }\n else if ($platId == 3 && $platSpecId == 1) {\n $map31 = $offset;\n }\n if ($platId == 1 && $platSpecId == 0) {\n $map10 = $offset;\n }\n }\n if ($map10 > 0) {\n $rf->seek($table_location[0] + $map10);\n $format = $rf->readUnsignedShort();\n switch ($format) {\n case 0:\n $cmap10 = readFormat0();\n break;\n case 4:\n $cmap10 = readFormat4();\n break;\n case 6:\n $cmap10 = readFormat6();\n break;\n }\n }\n if ($map31 > 0) {\n $rf->seek($table_location[0] + $map31);\n $format = $rf->readUnsignedShort();\n if ($format == 4) {\n $cmap31 = readFormat4();\n }\n }\n if ($map30 > 0) {\n $rf->seek($table_location[0] + $map30);\n $format = $rf->readUnsignedShort();\n if ($format == 4) {\n $cmap10 = readFormat4();\n }\n }\n }", "title": "" }, { "docid": "61e0547f3fd64ff35734d89fa0ee210f", "score": "0.4362716", "text": "function skin_differences_start()\n\t{\n\t\t//-----------------------------------------\n\t\t// Init\n\t\t//-----------------------------------------\n\t\t\n\t\t$content = \"\";\n\t\t$seen = array();\n\t\t\n\t\t//-----------------------------------------\n\t\t// Check...\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( ! $this->ipsclass->input['diff_session_title'] )\n\t\t{\n\t\t\t$this->ipsclass->admin->error( \"You must enter a title\" );\n\t\t}\n\t\t\n\t\t//-----------------------------------------\n\t\t// Get uploaded file\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( $_FILES['FILE_UPLOAD']['name'] == \"\" or ! $_FILES['FILE_UPLOAD']['name'] or ($_FILES['FILE_UPLOAD']['name'] == \"none\") )\n\t\t{\n\t\t\t//-----------------------------------------\n\t\t\t// Ut-oh....\n\t\t\t//-----------------------------------------\n\t\t\t\n\t\t\t$this->ipsclass->admin->error( \"No file was uploaded\" );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//-----------------------------------------\n\t\t\t// Get uploaded schtuff\n\t\t\t//-----------------------------------------\n\t\t\t\n\t\t\t$tmp_name = $_FILES['FILE_UPLOAD']['name'];\n\t\t\t$tmp_name = preg_replace( \"#\\.gz$#\", \"\", $tmp_name );\n\t\t\t\n\t\t\t$content = $this->ipsclass->admin->import_xml( $tmp_name );\n\t\t}\n\t\t\n\t\tif( !$content )\n\t\t{\n\t\t\t$this->ipsclass->admin->error( \"There was no content in the file to process\" );\n\t\t}\n\t\t\n\t\t//-----------------------------------------\n\t\t// Get number missing template bits\n\t\t//-----------------------------------------\n\t\t\n\t\t$total_bits = $this->ipsclass->DB->build_and_exec_query( array( 'select' => 'COUNT(*) as count', 'from' => 'skin_templates', 'where' => 'set_id=1' ) );\n\t\t\n\t\t//-----------------------------------------\n\t\t// Create session\n\t\t//-----------------------------------------\n\t\t\n\t\t$this->ipsclass->DB->allow_sub_select = 1;\n\t\t\n\t\t$this->ipsclass->DB->do_insert( 'template_diff_session', array( 'diff_session_togo' \t\t => intval( $total_bits['count'] ),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'diff_session_done' \t\t => 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'diff_session_title' \t\t => $this->ipsclass->input['diff_session_title'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'diff_session_updated' => time(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'diff_session_ignore_missing' => intval( $this->ipsclass->input['diff_session_ignore_missing'] ) ) );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t$diff_session_id = $this->ipsclass->DB->get_insert_id();\n\t\t\n\t\t//-----------------------------------------\n\t\t// Get xml mah-do-dah\n\t\t//-----------------------------------------\n\t\t\n\t\trequire_once( KERNEL_PATH.'class_xml.php' );\n\t\t$xml = new class_xml();\n\t\t\n\t\t//-----------------------------------------\n\t\t// Check to see if its an archive...\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( preg_match( \"#<xmlarchive generator=\\\"IPB\\\"#si\", $content ) )\n\t\t{\n\t\t\t//-----------------------------------------\n\t\t\t// It is an archive... expand...\n\t\t\t//-----------------------------------------\n\t\t\t\n\t\t\trequire( KERNEL_PATH.'class_xmlarchive.php' );\n\t\t\t$xmlarchive = new class_xmlarchive( KERNEL_PATH );\n\t\t\n\t\t\t$xmlarchive->xml_read_archive_data( $content );\n\t\t\t\n\t\t\t//-----------------------------------------\n\t\t\t// Get the XML documents\n\t\t\t//-----------------------------------------\n\t\t\t\n\t\t\t$import_xml = array();\n\t\t\t\n\t\t\tforeach( $xmlarchive->file_array as $f )\n\t\t\t{\n\t\t\t\t$import_xml[ $f['filename'] ] = $f['content'];\n\t\t\t}\n\t\t\n\t\t\t//-----------------------------------------\n\t\t\t// Import Templates\n\t\t\t//-----------------------------------------\n\t\t\n\t\t\t$content = $import_xml['ipb_templates.xml'];\n\t\t}\n\t\t\n\t\t//-----------------------------------------\n\t\t// Parse document\n\t\t//-----------------------------------------\n\t\t\n\t\t$xml->xml_parse_document( $content );\n\t\t\n\t\t//-----------------------------------------\n\t\t// Import template bits...\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( ! is_array( $xml->xml_array['templateexport']['templategroup']['template'] ) )\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Error with ipb_templates.xml - could not process XML properly\");\n\t\t}\n\t\n\t\tforeach( $xml->xml_array['templateexport']['templategroup']['template'] as $entry )\n\t\t{\n\t\t\t$diff_key = $diff_session_id.':'.$entry[ 'group_name' ]['VALUE'].':'.$entry[ 'func_name' ]['VALUE'];\n\t\t\t\n\t\t\tif ( ! $seen[ $diff_key ] )\n\t\t\t{\n\t\t\t\t$this->ipsclass->DB->allow_sub_select = 1;\n\t\t\t\t\n\t\t\t\t$this->ipsclass->DB->do_insert( 'templates_diff_import', array( 'diff_key' => $diff_session_id.':'.$entry[ 'group_name' ]['VALUE'].':'.$entry[ 'func_name' ]['VALUE'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'diff_func_group' => $entry[ 'group_name' ]['VALUE'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'diff_func_data'\t => $entry[ 'func_data' ]['VALUE'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'diff_func_name' => $entry[ 'func_name' ]['VALUE'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'diff_func_content' => $entry[ 'section_content' ]['VALUE'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'diff_session_id' => $diff_session_id ) );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t$seen[ $diff_key ] = 1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t$this->ipsclass->admin->output_multiple_redirect_init( $this->ipsclass->base_url.'&'.$this->ipsclass->form_code_js.\"&code=skin_diff_process&diff_session_id={$diff_session_id}&pergo=10\" );\n\t}", "title": "" }, { "docid": "ea1c54321f60d3d713e799f21d11efba", "score": "0.43589133", "text": "function themes_init()\n{\n // Get database information\n $dbconn = xarDB::getConn();\n $tables =& xarDB::getTables();\n\n $prefix = xarDB::getPrefix();\n $tables['themes'] = $prefix . '_themes';\n\n // Create tables\n /**\n * Here we create all the tables for the theme system\n *\n * prefix_themes - basic theme info\n */\n // prefix_themes\n /**\n * CREATE TABLE xar_themes (\n * id integer unsigned NOT NULL auto_increment,\n * name varchar(64) NOT NULL,\n * regid int(10) INTEGER unsigned NOT NULL,\n * directory varchar(64) NOT NULL,\n * version varchar(10) NOT NULL,\n * class tinyint INTEGER NOT NULL default '0',\n * state tinyint(3) not null default '1'\n * PRIMARY KEY (id)\n * )\n */\n $charset = xarSystemVars::get(sys::CONFIG, 'DB.Charset');\n $fields = array(\n 'id' => array('type' => 'integer', 'unsigned' => true, 'null' => false, 'increment' => true, 'primary_key' => true),\n 'name' => array('type' => 'varchar', 'size' => 64, 'null' => false, 'charset' => $charset),\n 'regid' => array('type' => 'integer', 'unsigned' => true, 'null' => false),\n 'directory' => array('type' => 'varchar', 'size' => 64, 'null' => false, 'charset' => $charset),\n 'version' => array('type' => 'varchar', 'size' => 10, 'null' => false, 'charset' => $charset),\n 'configuration' => array('type' => 'text', 'size' => 'medium', 'null' => false, 'charset' => $charset),\n 'state' => array('type' => 'integer', 'size' => 'tiny', 'unsigned'=> true, 'null' => false, 'default' => '1'),\n 'class' => array('type' => 'integer', 'size' => 'tiny', 'unsigned'=> true, 'null' => false, 'default' => '0')\n );\n\n $query = xarDBCreateTable($tables['themes'], $fields);\n $result = $dbconn->Execute($query);\n\n // Create the table to hold configurations\n $fields = array(\n 'id' => array('type' => 'integer', 'unsigned' => true, 'null' => false, 'increment' => true, 'primary_key' => true),\n 'theme_id' => array('type' => 'integer', 'unsigned' => true, 'null' => false, 'default' => '0'),\n 'name' => array('type' => 'varchar', 'size' => 64, 'null' => false, 'default' => '', 'charset' => $charset),\n 'description' => array('type' => 'varchar', 'size' => 254, 'null' => false, 'default' => '', 'charset' => $charset),\n 'property_id' => array('type' => 'integer', 'unsigned' => true, 'null' => false, 'default' => '0'),\n 'label' => array('type' => 'varchar', 'size' => 254, 'null' => false, 'default' => '', 'charset' => $charset),\n 'configuration' => array('type' => 'text', 'size' => 'medium', 'null' => false, 'charset' => $charset)\n );\n\n $query = xarDBCreateTable($tables['themes_configurations'], $fields);\n $result = $dbconn->Execute($query);\n\n xarModVars::set('themes', 'default_theme', 'default');\n xarModVars::set('themes', 'selsort', 'nameasc');\n\n // Make sure we dont miss empty variables (which were not passed thru)\n // FIXME: how would these values ever be passed in?\n if (empty($selstyle)) $selstyle = 'plain';\n // TODO: this is themes, not mods\n if (empty($selfilter)) $selfilter = XARMOD_STATE_ANY;\n if (empty($hidecore)) $hidecore = 0;\n\n xarModVars::set('themes', 'hidecore', $hidecore);\n xarModVars::set('themes', 'selstyle', $selstyle);\n xarModVars::set('themes', 'selfilter', $selfilter);\n xarModVars::set('themes', 'selclass', 'all');\n xarModVars::set('themes', 'useicons', false);\n\n xarModVars::set('themes', 'SiteName', 'Your Site Name');\n xarModVars::set('themes', 'SiteSlogan', 'Your Site Slogan');\n xarModVars::set('themes', 'SiteCopyRight', '&copy; Copyright 2013 ');\n xarModVars::set('themes', 'SiteTitleSeparator', ' :: ');\n xarModVars::set('themes', 'SiteTitleOrder', 'default');\n xarModVars::set('themes', 'SiteFooter', '<a href=\"http://www.xaraya.info\"><img src=\"themes/common/images/xaraya.gif\" alt=\"Powered by Xaraya\" class=\"xar-noborder\"/></a>');\n xarModVars::set('themes', 'ShowPHPCommentBlockInTemplates', false);\n xarModVars::set('themes', 'ShowTemplates', false);\n xarModVars::set('themes', 'variable_dump', false);\n xarModVars::set('themes', 'AtomTag', false);\n //Moved here in 1.1.x series\n xarModVars::set('themes', 'usedashboard', false);\n xarModVars::set('themes', 'dashtemplate', 'dashboard');\n xarModVars::set('themes', 'adminpagemenu', true);\n xarModVars::set('themes', 'userpagemenu', true);\n\n xarRegisterMask('ViewThemes','All','themes','All','All','ACCESS_OVERVIEW');\n xarRegisterMask('EditThemes','All','themes','All','All','ACCESS_EDIT');\n xarRegisterMask('AddThemes','All','themes','All','All','ACCESS_ADD');\n xarRegisterMask('ManageThemes','All','themes','All','All','ACCESS_DELETE');\n xarRegisterMask('AdminThemes','All','themes','All','All','ACCESS_ADMIN');\n\n xarModVars::set('themes', 'selclass', 'all');\n xarModVars::set('themes', 'useicons', false);\n xarModVars::set('themes','flushcaches', '');\n\n xarModVars::set('themes', 'templcachepath', sys::varpath().\"/cache/templates\");\n\n // Installation complete; check for upgrades\n return themes_upgrade('2.0.0');\n}", "title": "" }, { "docid": "1c68f7977163b544229960b615dfe6c2", "score": "0.4358852", "text": "function fillTables() \n {\n $table_location = NULL;\n $table_location = $tables[\"head\"];\n if ($table_location == NULL)\n throw new DocumentException(\"Table 'head' does not exist in \" + fileName + style);\n $rf->seek($table_location[0] + 16);\n $head->flags = $rf->readUnsignedShort();\n $head->unitsPerEm = $rf->readUnsignedShort();\n $rf->skipBytes(16);\n $head->xMin = $rf->readShort();\n $head->yMin = $rf->readShort();\n $head->xMax = $rf->readShort();\n $head->yMax = $rf->readShort();\n $head->macStyle = $rf->readUnsignedShort();\n\n $table_location = $tables[\"hhea\"];\n if ($table_location == NULL)\n throw new DocumentException(\"Table 'hhea' does not exist \" . $fileName . $style);\n $rf->seek(table_location[0] + 4);\n $hhea->Ascender = $rf->readShort();\n $hhea->Descender = $rf->readShort();\n $hhea->LineGap = $rf->readShort();\n $hhea->advanceWidthMax = $rf->readUnsignedShort();\n $hhea->minLeftSideBearing = $rf->readShort();\n $hhea->minRightSideBearing = $rf->readShort();\n $hhea->xMaxExtent = $rf->readShort();\n $hhea->caretSlopeRise = $rf->readShort();\n $hhea->caretSlopeRun = $rf->readShort();\n $rf->skipBytes(12);\n $hhea->numberOfHMetrics = $rf->readUnsignedShort();\n\n $table_location = $tables[\"OS/2\"];\n if ($table_location == NULL)\n throw new DocumentException(\"Table 'OS/2' does not exist in \" . $fileName . $style);\n $rf->seek($table_location[0]);\n $version = $rf->readUnsignedShort();\n $os_2->xAvgCharWidth = $rf->readShort();\n $os_2->usWeightClass = $rf->readUnsignedShort();\n $os_2->usWidthClass = $rf->readUnsignedShort();\n $os_2->fsType = $rf->readShort();\n $os_2->ySubscriptXSize = $rf->readShort();\n $os_2->ySubscriptYSize = $rf->readShort();\n $os_2->ySubscriptXOffset = $rf->readShort();\n $os_2->ySubscriptYOffset = $rf->readShort();\n $os_2->ySuperscriptXSize = $rf->readShort();\n $os_2->ySuperscriptYSize = $rf->readShort();\n $os_2->ySuperscriptXOffset = $rf->readShort();\n $os_2->ySuperscriptYOffset = $rf->readShort();\n $os_2->yStrikeoutSize = $rf->readShort();\n $os_2->yStrikeoutPosition = $rf->readShort();\n $os_2->sFamilyClass = $rf->readShort();\n $rf->readFully($os_2->panose);\n $rf->skipBytes(16);\n $rf->readFully($os_2->achVendID);\n $os_2->fsSelection = $rf->readUnsignedShort();\n $os_2->usFirstCharIndex = $rf->readUnsignedShort();\n $os_2->usLastCharIndex = $rf->readUnsignedShort();\n $os_2->sTypoAscender = $rf->readShort();\n $os_2->sTypoDescender = $rf->readShort();\n if ($os_2->sTypoDescender > 0)\n $os_2->sTypoDescender = -$os_2->sTypoDescender;\n $os_2->sTypoLineGap = $rf->readShort();\n $os_2->usWinAscent = $rf->readUnsignedShort();\n $os_2->usWinDescent = $rf->readUnsignedShort();\n $os_2->ulCodePageRange1 = 0;\n $os_2->ulCodePageRange2 = 0;\n if ($version > 0) {\n $os_2->ulCodePageRange1 = $rf->readInt();\n $os_2->ulCodePageRange2 = $rf->readInt();\n }\n if ($version > 1) {\n $rf->skipBytes(2);\n $os_2->sCapHeight = $rf->readShort();\n }\n else\n $os_2->sCapHeight = 0.7 * $head->unitsPerEm;\n\n $table_location = $tables[\"post\"];\n if ($table_location == NULL) {\n $italicAngle = -atan2($hhea->caretSlopeRun, $hhea->caretSlopeRise) * 180 / M_PI;\n return;\n }\n $rf->seek($table_location[0] + 4);\n $mantissa = $rf->readShort();\n $fraction = $rf->readUnsignedShort();\n $italicAngle = (double)$mantissa + (double)$fraction / 16384.0;\n $rf->skipBytes(4);\n $isFixedPitch = $rf->readInt() != 0;\n }", "title": "" }, { "docid": "e9c2d2661af64350fbca8ddf9e84a61d", "score": "0.4352492", "text": "function themeheader() {\r\n global $user, $banners, $sitename, $slogan, $cookie, $prefix, $dbi;\r\n cookiedecode($user);\r\n $username = $cookie[1];\r\n if ($username == \"\") {\r\n $username = \"Anonymous\";\r\n }\r\n //echo \"<body bgcolor=\\\"#DDCCFF\\\" text=\\\"#655D74\\\" leftmargin=\\\"10\\\" topmargin=\\\"10\\\" marginwidth=\\\"10\\\" marginheight=\\\"10\\\">\";\r\n echo \"<body onload=document.getElementById('offerte_detail_1').scrollTop=$_GET[scrolltop];document.getElementById('offerte').scrollTop=$_GET[scrolltop]; text=\\\"#655D74\\\" leftmargin=\\\"10\\\" topmargin=\\\"10\\\" marginwidth=\\\"10\\\" marginheight=\\\"10\\\">\";\r\n\t\r\n $tmpl_file = \"themes/PurpleDaze/header.html\";\r\n $thefile = implode(\"\", file($tmpl_file));\r\n $thefile = addslashes($thefile);\r\n $thefile = \"\\$r_file=\\\"\".$thefile.\"\\\";\";\r\n eval($thefile);\r\n print $r_file;\r\n blocks(left);\r\n $tmpl_file = \"themes/PurpleDaze/left_center.html\";\r\n $thefile = implode(\"\", file($tmpl_file));\r\n $thefile = addslashes($thefile);\r\n $thefile = \"\\$r_file=\\\"\".$thefile.\"\\\";\";\r\n eval($thefile);\r\n print $r_file;\r\n}", "title": "" }, { "docid": "5d8a2573b9e3d7c909108dd62a204ad5", "score": "0.43433225", "text": "function read_template_file ($filename){\n $template_file = DIR_WS_TEMPLATES . $filename;\n\t$this->$template_file = $template_file;\n\n\t// Generate an error if the template file does not exist and return 'false'.\n if (! file_exists($template_file)) {\n print 'Error : Template file does not exist: ['.$template_file.']';\n\t return false;\n }\n\t// We use templates and the template file exists\n\t// Capture the template, this way we can use php code inside templates\n\n\t$this->start_capture (); // Start capture to buffer\n\trequire $template_file; // Includes the template, this way php code can be used in templates\n\t$this->stop_capture ('template_html');\n\t\n\t// Load custom html template located under /includes/sts_custom_html/\n\t$files = dirList(\"includes/sts_custom_html/\");\n \n\tfor($i=0; $i<count($files); $i++){\n\t\t$block_name = str_replace('.php' , '' , $files[$i]);\n\t\t\n\t\t$this->start_capture ();\n\t\trequire \"includes/sts_custom_html/\" . $files[$i]; // Includes the template, this way php code can be used in templates\n\t\t$this->stop_capture ($block_name);\n\t}\n\t\n\treturn true;\n }", "title": "" }, { "docid": "22a67eddb9829e0752523b0b118f191a", "score": "0.43427938", "text": "function setTemplate( $file );", "title": "" }, { "docid": "63f5bd56fdad486637b62a083c7bd222", "score": "0.4339498", "text": "protected function _customizeBaseTemplate()\n\t{\n\t\t$_basePath = FileSystem::makePath( $this->_appPath, $this->_templatePaths['config'] );\n\n\t\ttry\n\t\t{\n\t\t\t$_map = $this->_fillMap( $this->_replacementMap );\n\n\t\t\tif ( !empty( $_map ) )\n\t\t\t{\n\t\t\t\tforeach ( $this->_templateConfigFiles as $_file )\n\t\t\t\t{\n\t\t\t\t\tif ( !file_exists( $_basePath . $_file ) )\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t//\tRead it\n\t\t\t\t\tif ( false === ( $_data = @file_get_contents( $_basePath . $_file ) ) )\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t//\tWrite it\n\t\t\t\t\tfile_put_contents(\n\t\t\t\t\t\t$_basePath . $_file,\n\t\t\t\t\t\tstr_ireplace(\n\t\t\t\t\t\t\tarray_keys( $_map ),\n\t\t\t\t\t\t\tarray_values( $_map ),\n\t\t\t\t\t\t\t$_data\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\tcatch ( \\Exception $_ex )\n\t\t{\n\t\t\techo 'Exception: ' . $_ex->getMessage();\n\t\t\texit( -1 );\n\t\t}\n\t}", "title": "" }, { "docid": "29bf177e2cbb56b3cf90435b24d9b1a3", "score": "0.43271822", "text": "function uplift_spb_templates($prebuilt_templates) {\n\t\t$prebuilt_templates = array();\n\t\t\n\t\t$prebuilt_templates[\"home-simple\"] = array(\n\t\t\"id\" => \"home-simple\",\n\t\t\"name\" => \"Main Demo - Home: Simple\",\n\t\t\"code\" => '[spb_portfolio display_type=\"gallery\" multi_size_ratio=\"1/1\" fullwidth=\"yes\" gutters=\"no\" columns=\"4\" show_title=\"yes\" show_subtitle=\"yes\" show_excerpt=\"yes\" hover_show_excerpt=\"no\" excerpt_length=\"20\" item_count=\"4\" category=\"All\" order_by=\"none\" order=\"DESC\" portfolio_filter=\"no\" pagination=\"none\" button_enabled=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [spb_section spb_section_id=\"15528\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"50px\" width=\"1/1\" el_position=\"first last\"] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#f7f7f7\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_header_style=\"light\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"0px\" bottom_margin=\"60px\" fullwidth=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_recent_posts title=\"Recent Articles\" display_type=\"standard\" carousel=\"yes\" item_columns=\"3\" item_count=\"4\" category=\"All\" offset=\"0\" posts_order=\"DESC\" excerpt_length=\"23\" fullwidth=\"no\" gutters=\"yes\" button_enabled=\"no\" pagination=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_section spb_section_id=\"15472\" width=\"1/1\" el_position=\"first last\"]');\n\t\t\n\t\t$prebuilt_templates[\"home-moderna\"] = array(\n\t\t\"id\" => \"home-moderna\",\n\t\t\"name\" => \"Main Demo - Home: Moderna\",\n\t\t\"code\" => '[spb_row element_name=\"Headline Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"80\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_el_class=\"no-shadow\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"120px\" width=\"1/1\" el_position=\"first last\"] [spb_animated_headline element_name=\"agency anim headline\" before_text=\"Welcome to uplift industries, we are a company the produces high quality\" animated_strings=\"steel,copper,lead\" after_text=\"pipes.\" animation_type=\"clip\" textstyle=\"impact-text\" textalign=\"left\" textcolor=\"#303030\" width=\"1/2\" el_position=\"first\"] [spb_blank_spacer height=\"1px\" width=\"1/2\" el_position=\"last\"] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [spb_button button_text=\"More about us\" button_size=\"standard\" button_colour=\"accent\" button_type=\"bordered\" rounded=\"yes\" button_dropshadow=\"no\" button_icon=\"nucleo-icon-chevron-right\" button_link=\"/pages/about-us-classic/\" button_target=\"_self\" align=\"left\" animation=\"none\" animation_delay=\"0\" width=\"1/2\" el_position=\"first\"] [spb_blank_spacer height=\"1px\" width=\"1/2\" el_position=\"last\"] [spb_blank_spacer height=\"120px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_image image=\"15624\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"yes\" overflow_mode=\"none\" el_class=\"mb0 pb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"140px\" width=\"1/1\" el_position=\"first last\"] [spb_section element_name=\"Icons: 3x2 vertical\" spb_section_id=\"15469\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"140px\" width=\"1/1\" el_position=\"first last\"] [spb_row element_name=\"Row\" wrap_type=\"full-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [spb_image image=\"15249\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" link_target=\"_self\" lightbox=\"yes\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/2\" el_position=\"first\"] [spb_image image=\"15248\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" link_target=\"_self\" lightbox=\"yes\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/2\" el_position=\"last\"] [spb_section spb_section_id=\"15534\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Headline Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_el_class=\"no-shadow\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"139px\" width=\"1/1\" el_position=\"first last\"] [spb_recent_posts title=\"Recent Articles\" display_type=\"standard\" carousel=\"no\" item_columns=\"3\" item_count=\"3\" category=\"All\" offset=\"0\" posts_order=\"DESC\" excerpt_length=\"23\" fullwidth=\"no\" gutters=\"yes\" button_enabled=\"yes\" pagination=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"115px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_section element_name=\"Promo Bar SPB\" spb_section_id=\"15612\" width=\"1/1\" el_position=\"first last\"]');\n\t\t\n\t\t$prebuilt_templates[\"meet-the-team-creative\"] = array(\n\t\t\"id\" => \"meet-the-team-creative\",\n\t\t\"name\" => \"Main Demo - Meet The Team: Creative\",\n\t\t\"code\" => '[spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [spb_team display_type=\"gallery\" carousel=\"no\" item_columns=\"3\" item_count=\"6\" category=\"All\" profile_link=\"no\" ajax_overlay=\"yes\" pagination=\"no\" fullwidth=\"no\" gutters=\"yes\" order_by=\"none\" order=\"DESC\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_section spb_section_id=\"15472\" width=\"1/1\" el_position=\"first last\"]');\n\t\t\n\t\t$prebuilt_templates[\"services-simple\"] = array(\n\t\t\"id\" => \"services-simple\",\n\t\t\"name\" => \"Main Demo - Services: Simple\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"60\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_animated_headline before_text=\"Were an award-winning creating company elegant digital solutions for\" animated_strings=\"charities,agencies,governments\" animation_type=\"slide\" textstyle=\"h1\" textalign=\"left\" textcolor=\"#546e7a\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"thin\" heading_text=\"Services We Offer\" text=\"Go to top\" top_margin=\"60px\" bottom_margin=\"0px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box title=\"Idea Generation\" box_type=\"animated-alt\" box_icon_type=\"svg\" svg_icon=\"health-outline_brain\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#7eced5\" text_color=\"#7eced5\" bg_color=\"#ffffff\" flip_bg_color=\"#7eced5\" flip_text_color=\"#ffffff\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/3\" el_position=\"first\"] [list extraclass=\"\"] [list_item icon=\"sf-icon-menu-chevron-right\"]Ideation[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Brainstorming[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Breakouts[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Meetings[/list_item] [/list] [/spb_icon_box] [spb_icon_box title=\"Colour Creation\" box_type=\"animated-alt\" box_icon_type=\"svg\" svg_icon=\"design-outline_paint-bucket-40\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#78909c\" text_color=\"#78909c\" bg_color=\"#ffffff\" flip_bg_color=\"#78909c\" flip_text_color=\"#ffffff\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/3\"] [list extraclass=\"\"] [list_item icon=\"sf-icon-menu-chevron-right\"]Palette Creation[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Colour Invention[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Colour Mixing[/list_item] [/list] [/spb_icon_box] [spb_icon_box title=\"Data Analysis\" box_type=\"animated-alt\" box_icon_type=\"svg\" svg_icon=\"business-outline_board-29\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#0097a7\" text_color=\"#0097a7\" bg_color=\"#ffffff\" flip_bg_color=\"#0097a7\" flip_text_color=\"#ffffff\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/3\" el_position=\"last\"] [list extraclass=\"\"] [list_item icon=\"sf-icon-menu-chevron-right\"]Data Visualisation[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Data Mining[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Data Presentations[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Data Interpretation[/list_item] [/list] [/spb_icon_box] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box title=\"Human Resources\" box_type=\"animated-alt\" box_icon_type=\"svg\" svg_icon=\"business-outline_badge\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#0277bd\" text_color=\"#0277bd\" bg_color=\"#ffffff\" flip_bg_color=\"#0277bd\" flip_text_color=\"#ffffff\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/3\" el_position=\"first\"] [list extraclass=\"\"] [list_item icon=\"sf-icon-menu-chevron-right\"]HR Planning[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]HR Projects[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]HR Documentation[/list_item] [/list] [/spb_icon_box] [spb_icon_box title=\"Email Marketing\" box_type=\"animated-alt\" box_icon_type=\"svg\" svg_icon=\"holidays-outline_message\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#303f9f\" text_color=\"#303f9f\" bg_color=\"#ffffff\" flip_bg_color=\"#303f9f\" flip_text_color=\"#ffffff\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/3\"] [list extraclass=\"\"] [list_item icon=\"sf-icon-menu-chevron-right\"]Subscriptions[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Email Creation[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Email Planning[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Analysis[/list_item] [/list] [/spb_icon_box] [spb_icon_box title=\"Applied Genetics\" box_type=\"animated-alt\" box_icon_type=\"svg\" svg_icon=\"health-outline_dna-27\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#37474f\" text_color=\"#37474f\" bg_color=\"#ffffff\" flip_bg_color=\"#37474f\" flip_text_color=\"#ffffff\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/3\" el_position=\"last\"] [list extraclass=\"\"] [list_item icon=\"sf-icon-menu-chevron-right\"]Gene Mapping[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Gene Regulation[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Gene Mutation[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]DNA Sequencing[/list_item] [/list] [/spb_icon_box] [/spb_row] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [spb_section spb_section_id=\"15472\" width=\"1/1\" el_position=\"first last\"]');\n\t\t\n\t\t$prebuilt_templates[\"page-not-found\"] = array(\n\t\t\"id\" => \"page-not-found\",\n\t\t\"name\" => \"Main Demo - 404\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#f7f7f7\" color_row_height=\"window-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_el_class=\"no-shadow\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"30px\" width=\"1/4\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"10\" width=\"1/2\" el_position=\"last\"] uplift-404-img \n\t\tOur apologies\n\t\t\n\t\tIt seems we couldnt find the page you are looking for. Please check to make sure youve typed the URL correctly.\n\t\t\n\t\t[sf_button colour=\"white\" type=\"icon\" size=\"large\" link=\"javascript: history.go(-1)\" target=\"_self\" icon=\"nucleo-icon-undo\" dropshadow=\"yes\" rounded=\"yes\" extraclass=\"ml0\"]Return[/sf_button]\n\t\t\n\t\t[/spb_text_block] [/spb_row]');\n\t\t\n\t\t$prebuilt_templates[\"contact-simple\"] = array(\n\t\t\"id\" => \"contact-simple\",\n\t\t\"name\" => \"Main Demo - Contact: Simple\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#f7f7f7\" color_row_height=\"window-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_el_class=\"no-shadow\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"1px\" width=\"1/4\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"0\" simplified_controls=\"yes\" custom_css=\"margin-top: px!important;margin-left: px!important;margin-right: px!important;margin-bottom: px!important;border-top: px default !important;border-left: px default !important;border-right: px default !important;border-bottom: px default !important;padding-top: 0px!important;padding-left: 0px!important;padding-right: 0px!important;padding-bottom: 0px!important;\" border_styling_global=\"default\" width=\"1/2\"]\n\t\tGet in touch with us\n\t\t\n\t\t[contact-form-7 id=\"15387\" title=\"Contact form 1\"] [/spb_text_block] [spb_blank_spacer height=\"1px\" width=\"1/4\" el_position=\"last\"] [spb_blank_spacer height=\"1px\" width=\"1/4\" el_position=\"first\"] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"0px\" bottom_margin=\"60px\" fullwidth=\"no\" width=\"1/2\"] [spb_blank_spacer height=\"1px\" width=\"1/4\" el_position=\"last\"] [spb_blank_spacer height=\"1px\" width=\"1/4\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/2\" el_position=\"last\"] Visit us: No.1 Abbey Road, London, W1 ECH, UK Call: +44 (0) 800 123 4567 | Email: info@uplift.com [social] [/spb_text_block] [/spb_row]');\n\t\t\n\t\t$prebuilt_templates[\"our-process\"] = array(\n\t\t\"id\" => \"our-process\",\n\t\t\"name\" => \"Main Demo - Our Process\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"content-width\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" vertical_center=\"true\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"1px\" width=\"1/4\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"6\" padding_horizontal=\"0\" width=\"1/2\" el_position=\"last\"]\n\t\tLorem ipsum dolor sit met, consectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante pulvinar sed.\n\t\t\n\t\t[/spb_text_block] [/spb_row] [spb_icon_box_grid colour_style=\"dark\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box_grid_element title=\"1: Brainstorming and Ideation\" target=\"\" link=\"\" icon=\"svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item outline-svg health-outline_brain\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"2: Designing and Sketching\" target=\"\" link=\"\" icon=\"svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item outline-svg design-outline_crop\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"3: Development and Testing\" target=\"\" link=\"\" icon=\"svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item outline-svg design-outline_code\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"4: Iteration, iteration and iteration\" target=\"\" link=\"\" icon=\"svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item outline-svg files-outline_single-copies\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"5: Marketing and Launch\" target=\"\" link=\"\" icon=\"svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item outline-svg objects-outline_spaceship\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"6: Evaluate and Celebrate\" target=\"\" link=\"\" icon=\"svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item outline-svg food-outline_beer-95\"][/spb_icon_box_grid_element] [/spb_icon_box_grid] [spb_blank_spacer height=\"90px\" width=\"1/1\" el_position=\"first last\"] [spb_section spb_section_id=\"15472\" width=\"1/1\" el_position=\"first last\"]');\n\t\t\n\t\t$prebuilt_templates[\"about-personal\"] = array(\n\t\t\"id\" => \"about-personal\",\n\t\t\"name\" => \"Main Demo - About: Personal\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"full-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_image image=\"15553\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"yes\" overflow_mode=\"none\" el_class=\"pl0 ml0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/2\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"8\" padding_horizontal=\"17\" width=\"1/2\" el_position=\"last\"]\n\t\tHi, my name is Mike Munari. Im a developer based in London.\n\t\t\n\t\tVestibule convallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt arcu mattis diam, in scelerisque purus lorem eget elit. Sed vitae nunc in mets semper veilt arcu mattis hendrerit.\n\t\t\n\t\t[hr]\n\t\t\n\t\t[sf_button colour=\"accent\" type=\"icon\" size=\"standard\" link=\"#\" target=\"_self\" icon=\"nucleo-icon-cloud-download\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]Download CV[/sf_button]\n\t\t\n\t\t[/spb_text_block] [/spb_row]');\n\t\t\n\t\t$prebuilt_templates[\"full-screen-page\"] = array(\n\t\t\"id\" => \"full-screen-page\",\n\t\t\"name\" => \"Main Demo - Full-Screen Page\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"image\" row_bg_color=\"#111111\" color_row_height=\"content-height\" row_style=\"dark\" bg_image=\"15458\" bg_type=\"cover\" parallax_image_height=\"window-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_mp4=\"http://swiftideasvideos.s3.amazonaws.com/uplift-warp-bkg-h264.mp4\" bg_video_webm=\"http://swiftideasvideos.s3.amazonaws.com/uplift-warp-bkg.webmhd.webm\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"80\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_el_class=\"no-shadow\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"1px\" width=\"1/3\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"4\" width=\"1/3\"] uplift_logo_white@2x\n\t\tThis is a full-screen page. It does exactly what it says on the tin.\n\t\t\n\t\t\n\t\t[sf_button colour=\"white\" type=\"sf-icon-stroke\" size=\"standard\" link=\"javascript: history.go(-1)\" target=\"_self\" icon=\"nucleo-icon-undo\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]Go back[/sf_button]\n\t\t\n\t\t[/spb_text_block] [spb_blank_spacer height=\"1px\" width=\"1/3\" el_position=\"last\"] [/spb_row]');\n\t\t\n\t\t$prebuilt_templates[\"full-width-page\"] = array(\n\t\t\"id\" => \"full-width-page\",\n\t\t\"name\" => \"Main Demo - Full-width Page\",\n\t\t\"code\" => '[spb_image image=\"15251\" image_size=\"full\" frame=\"noframe\" intro_animation=\"none\" animation_delay=\"200\" fullwidth=\"no\" lightbox=\"no\" link_target=\"_self\" caption_pos=\"hover\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"0\" width=\"1/1\" el_position=\"first last\"]\n\t\tLorem ipsum dolor sit met, consectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Ut sum noluisse insolens appellantur, discere epicurei nominati id duo. Id eventi vidisse omnesque qui. Sale decore tamquam eso ne, in pri amet pertinax, vel option nominavi id. Ferri elitra semper ius ad, ea pro dique vivendo repudiandae, delenit asseveri ex ius. Per aliquip liberasse accomodare an, et vim clima deleniti, phaedrum dissentiunt ad has.\n\t\t\n\t\tVix vide fieriest tractates ut. Efficiantur necessitatibus eos ei, magna nemore labores ei pro. Ne sed oratio eigendi, accuaam detracto cu vim, mei oblique bonorum constituam te. Et nec maxime utroque. Sumo adolescent qui ea, no pro vitae dolores maluisset. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Mecenas locus purus, malesuada eu scelerisque ac, commode sed orci.\n\t\t\n\t\tClass patent taciti sociosqu ad litro torquent per connubio nostra, per inceptos himenaeos. Curabitur a torto ut leo mattis cursus. Vestibule laoreet interdum pellentesque. Suspendisse vitae cursus urna. Lorem ipsum dolor sit met, consectetur adipiscing elit. Nulla veilt mets, ornare vitae maleducada in, fermentum ac turpis. Vestibule convallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt arcu mattis diam, in scelerisque purus lorem eget elit. Sed vitae nunc in mets semper hendrerit. Curabitur mets felis, interduo quis sodales at, aliquam eu eros. Prone ac lacks urna, vel pulvinar ante. Integer poser, sapient ut iaculis molestie, justo quad ultrices orci.\n\t\t\n\t\t[/spb_text_block]');\n\t\t\n\t\t$prebuilt_templates[\"privacy-policy\"] = array(\n\t\t\"id\" => \"privacy-policy\",\n\t\t\"name\" => \"Main Demo - Privacy Policy\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"one\" row_name=\"Information we collect\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"10px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block title=\"Information We Collect\" animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"4\" width=\"1/1\" el_position=\"first last\"]\n\t\tConsectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Ut sum noluisse insolens appellantur, discere epicurei nominati id duo. Id eventi vidisse omnesque qui. Sale decore tamquam eso ne, in pri amet pertinax, vel option nominavi id. Ferri elitra semper ius ad, ea pro dique vivendo repudiandae, delenit asseveri ex ius. Per aliquip liberasse accomodare an, et vim clima deleniti, phaedrum dissentiunt ad has.\n\t\t\n\t\tVix vide fieriest tractates ut. Efficiantur necessitatibus eos ei, magna nemore labores ei pro. Ne sed oratio eigendi, accuaam detracto cu vim, mei oblique bonorum constituam te. Et nec maxime utroque. Sumo adolescent qui ea, no pro vitae dolores maluisset. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Mecenas locus purus, malesuada eu scelerisque ac, commode sed orci.\n\t\t\n\t\tconsectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Ut sum noluisse insolens appellantur, discere epicurei nominati id duo. Id eventi vidisse omnesque qui. Sale decore tamquam eso ne, in pri amet pertinax, vel option nominavi id. Ferri elitra semper ius ad, ea pro dique vivendo repudiandae, delenit asseveri ex ius. Per aliquip liberasse accomodare an, et vim clima deleniti, phaedrum dissentiunt ad has.\n\t\t\n\t\tVix vide fieriest tractates ut. Efficiantur necessitatibus eos ei, magna nemore labores ei pro. Ne sed oratio eigendi, accuaam detracto cu vim, mei oblique bonorum constituam te. Et nec maxime utroque. Sumo adolescent qui ea, no pro vitae dolores maluisset. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Mecenas locus purus, malesuada eu scelerisque ac, commode sed orci.\n\t\t\n\t\t[/spb_text_block] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"30px\" bottom_margin=\"60px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"two\" row_name=\"How we use information\" width=\"1/1\" el_position=\"first last\"] [spb_text_block title=\"How we use information\" animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"4\" width=\"1/1\" el_position=\"first last\"]\n\t\tConsectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Ut sum noluisse insolens appellantur, discere epicurei nominati id duo. Id eventi vidisse omnesque qui. Sale decore tamquam eso ne, in pri amet pertinax, vel option nominavi id. Ferri elitra semper ius ad, ea pro dique vivendo repudiandae, delenit asseveri ex ius. Per aliquip liberasse accomodare an, et vim clima deleniti, phaedrum dissentiunt ad has.\n\t\t\n\t\tVix vide fieriest tractates ut. Efficiantur necessitatibus eos ei, magna nemore labores ei pro. Ne sed oratio eigendi, accuaam detracto cu vim, mei oblique bonorum constituam te. Et nec maxime utroque. Sumo adolescent qui ea, no pro vitae dolores maluisset. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Mecenas locus purus, malesuada eu scelerisque ac, commode sed orci.\n\t\t\n\t\tconsectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Ut sum noluisse insolens appellantur, discere epicurei nominati id duo. Id eventi vidisse omnesque qui. Sale decore tamquam eso ne, in pri amet pertinax, vel option nominavi id. Ferri elitra semper ius ad, ea pro dique vivendo repudiandae, delenit asseveri ex ius. Per aliquip liberasse accomodare an, et vim clima deleniti, phaedrum dissentiunt ad has.\n\t\t\n\t\tVix vide fieriest tractates ut. Efficiantur necessitatibus eos ei, magna nemore labores ei pro. Ne sed oratio eigendi, accuaam detracto cu vim, mei oblique bonorum constituam te. Et nec maxime utroque. Sumo adolescent qui ea, no pro vitae dolores maluisset. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Mecenas locus purus, malesuada eu scelerisque ac, commode sed orci.\n\t\t\n\t\t[/spb_text_block] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"30px\" bottom_margin=\"60px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"three\" row_name=\"Transparency and choice\" width=\"1/1\" el_position=\"first last\"] [spb_text_block title=\"Transparency and choice\" animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"4\" width=\"1/1\" el_position=\"first last\"]\n\t\tConsectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Ut sum noluisse insolens appellantur, discere epicurei nominati id duo. Id eventi vidisse omnesque qui. Sale decore tamquam eso ne, in pri amet pertinax, vel option nominavi id. Ferri elitra semper ius ad, ea pro dique vivendo repudiandae, delenit asseveri ex ius. Per aliquip liberasse accomodare an, et vim clima deleniti, phaedrum dissentiunt ad has.\n\t\t\n\t\tVix vide fieriest tractates ut. Efficiantur necessitatibus eos ei, magna nemore labores ei pro. Ne sed oratio eigendi, accuaam detracto cu vim, mei oblique bonorum constituam te. Et nec maxime utroque. Sumo adolescent qui ea, no pro vitae dolores maluisset. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Mecenas locus purus, malesuada eu scelerisque ac, commode sed orci.\n\t\t\n\t\tconsectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Ut sum noluisse insolens appellantur, discere epicurei nominati id duo. Id eventi vidisse omnesque qui. Sale decore tamquam eso ne, in pri amet pertinax, vel option nominavi id. Ferri elitra semper ius ad, ea pro dique vivendo repudiandae, delenit asseveri ex ius. Per aliquip liberasse accomodare an, et vim clima deleniti, phaedrum dissentiunt ad has.\n\t\t\n\t\tVix vide fieriest tractates ut. Efficiantur necessitatibus eos ei, magna nemore labores ei pro. Ne sed oratio eigendi, accuaam detracto cu vim, mei oblique bonorum constituam te. Et nec maxime utroque. Sumo adolescent qui ea, no pro vitae dolores maluisset. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Mecenas locus purus, malesuada eu scelerisque ac, commode sed orci.\n\t\t\n\t\t[/spb_text_block] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"30px\" bottom_margin=\"60px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"four\" row_name=\"Information sharing\" width=\"1/1\" el_position=\"first last\"] [spb_text_block title=\"Information sharing\" animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"4\" width=\"1/1\" el_position=\"first last\"]\n\t\tConsectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Ut sum noluisse insolens appellantur, discere epicurei nominati id duo. Id eventi vidisse omnesque qui. Sale decore tamquam eso ne, in pri amet pertinax, vel option nominavi id. Ferri elitra semper ius ad, ea pro dique vivendo repudiandae, delenit asseveri ex ius. Per aliquip liberasse accomodare an, et vim clima deleniti, phaedrum dissentiunt ad has.\n\t\t\n\t\tVix vide fieriest tractates ut. Efficiantur necessitatibus eos ei, magna nemore labores ei pro. Ne sed oratio eigendi, accuaam detracto cu vim, mei oblique bonorum constituam te. Et nec maxime utroque. Sumo adolescent qui ea, no pro vitae dolores maluisset. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Mecenas locus purus, malesuada eu scelerisque ac, commode sed orci.\n\t\t\n\t\tconsectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Ut sum noluisse insolens appellantur, discere epicurei nominati id duo. Id eventi vidisse omnesque qui. Sale decore tamquam eso ne, in pri amet pertinax, vel option nominavi id. Ferri elitra semper ius ad, ea pro dique vivendo repudiandae, delenit asseveri ex ius. Per aliquip liberasse accomodare an, et vim clima deleniti, phaedrum dissentiunt ad has.\n\t\t\n\t\tVix vide fieriest tractates ut. Efficiantur necessitatibus eos ei, magna nemore labores ei pro. Ne sed oratio eigendi, accuaam detracto cu vim, mei oblique bonorum constituam te. Et nec maxime utroque. Sumo adolescent qui ea, no pro vitae dolores maluisset. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Mecenas locus purus, malesuada eu scelerisque ac, commode sed orci.\n\t\t\n\t\t[/spb_text_block] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"30px\" bottom_margin=\"60px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"five\" row_name=\"When this policy applies\" width=\"1/1\" el_position=\"first last\"] [spb_text_block title=\"When this policy applies\" animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"4\" width=\"1/1\" el_position=\"first last\"]\n\t\tConsectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Ut sum noluisse insolens appellantur, discere epicurei nominati id duo. Id eventi vidisse omnesque qui. Sale decore tamquam eso ne, in pri amet pertinax, vel option nominavi id. Ferri elitra semper ius ad, ea pro dique vivendo repudiandae, delenit asseveri ex ius. Per aliquip liberasse accomodare an, et vim clima deleniti, phaedrum dissentiunt ad has.\n\t\t\n\t\tVix vide fieriest tractates ut. Efficiantur necessitatibus eos ei, magna nemore labores ei pro. Ne sed oratio eigendi, accuaam detracto cu vim, mei oblique bonorum constituam te. Et nec maxime utroque. Sumo adolescent qui ea, no pro vitae dolores maluisset. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Mecenas locus purus, malesuada eu scelerisque ac, commode sed orci.\n\t\t\n\t\tconsectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Ut sum noluisse insolens appellantur, discere epicurei nominati id duo. Id eventi vidisse omnesque qui. Sale decore tamquam eso ne, in pri amet pertinax, vel option nominavi id. Ferri elitra semper ius ad, ea pro dique vivendo repudiandae, delenit asseveri ex ius. Per aliquip liberasse accomodare an, et vim clima deleniti, phaedrum dissentiunt ad has.\n\t\t\n\t\tVix vide fieriest tractates ut. Efficiantur necessitatibus eos ei, magna nemore labores ei pro. Ne sed oratio eigendi, accuaam detracto cu vim, mei oblique bonorum constituam te. Et nec maxime utroque. Sumo adolescent qui ea, no pro vitae dolores maluisset. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Mecenas locus purus, malesuada eu scelerisque ac, commode sed orci.\n\t\t\n\t\t[/spb_text_block] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"30px\" bottom_margin=\"60px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"six\" row_name=\"Compliance and cooperation\" width=\"1/1\" el_position=\"first last\"] [spb_text_block title=\"Compliance and cooperation\" animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"4\" width=\"1/1\" el_position=\"first last\"]\n\t\tConsectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Ut sum noluisse insolens appellantur, discere epicurei nominati id duo. Id eventi vidisse omnesque qui. Sale decore tamquam eso ne, in pri amet pertinax, vel option nominavi id. Ferri elitra semper ius ad, ea pro dique vivendo repudiandae, delenit asseveri ex ius. Per aliquip liberasse accomodare an, et vim clima deleniti, phaedrum dissentiunt ad has.\n\t\t\n\t\tVix vide fieriest tractates ut. Efficiantur necessitatibus eos ei, magna nemore labores ei pro. Ne sed oratio eigendi, accuaam detracto cu vim, mei oblique bonorum constituam te. Et nec maxime utroque. Sumo adolescent qui ea, no pro vitae dolores maluisset. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Mecenas locus purus, malesuada eu scelerisque ac, commode sed orci.\n\t\t\n\t\tconsectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Ut sum noluisse insolens appellantur, discere epicurei nominati id duo. Id eventi vidisse omnesque qui. Sale decore tamquam eso ne, in pri amet pertinax, vel option nominavi id. Ferri elitra semper ius ad, ea pro dique vivendo repudiandae, delenit asseveri ex ius. Per aliquip liberasse accomodare an, et vim clima deleniti, phaedrum dissentiunt ad has.\n\t\t\n\t\tVix vide fieriest tractates ut. Efficiantur necessitatibus eos ei, magna nemore labores ei pro. Ne sed oratio eigendi, accuaam detracto cu vim, mei oblique bonorum constituam te. Et nec maxime utroque. Sumo adolescent qui ea, no pro vitae dolores maluisset. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Mecenas locus purus, malesuada eu scelerisque ac, commode sed orci.\n\t\t\n\t\t[/spb_text_block] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"30px\" bottom_margin=\"60px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"seven\" row_name=\"Policy changes\" width=\"1/1\" el_position=\"first last\"] [spb_text_block title=\"Policy changes\" animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"4\" width=\"1/1\" el_position=\"first last\"]\n\t\tConsectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Ut sum noluisse insolens appellantur, discere epicurei nominati id duo. Id eventi vidisse omnesque qui. Sale decore tamquam eso ne, in pri amet pertinax, vel option nominavi id. Ferri elitra semper ius ad, ea pro dique vivendo repudiandae, delenit asseveri ex ius. Per aliquip liberasse accomodare an, et vim clima deleniti, phaedrum dissentiunt ad has.\n\t\t\n\t\tVix vide fieriest tractates ut. Efficiantur necessitatibus eos ei, magna nemore labores ei pro. Ne sed oratio eigendi, accuaam detracto cu vim, mei oblique bonorum constituam te. Et nec maxime utroque. Sumo adolescent qui ea, no pro vitae dolores maluisset. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Mecenas locus purus, malesuada eu scelerisque ac, commode sed orci.\n\t\t\n\t\tconsectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Ut sum noluisse insolens appellantur, discere epicurei nominati id duo. Id eventi vidisse omnesque qui. Sale decore tamquam eso ne, in pri amet pertinax, vel option nominavi id. Ferri elitra semper ius ad, ea pro dique vivendo repudiandae, delenit asseveri ex ius. Per aliquip liberasse accomodare an, et vim clima deleniti, phaedrum dissentiunt ad has.\n\t\t\n\t\tVix vide fieriest tractates ut. Efficiantur necessitatibus eos ei, magna nemore labores ei pro. Ne sed oratio eigendi, accuaam detracto cu vim, mei oblique bonorum constituam te. Et nec maxime utroque. Sumo adolescent qui ea, no pro vitae dolores maluisset. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Mecenas locus purus, malesuada eu scelerisque ac, commode sed orci.\n\t\t\n\t\t[/spb_text_block] [/spb_row]');\n\t\t\n\t\t$prebuilt_templates[\"our-offices\"] = array(\n\t\t\"id\" => \"our-offices\",\n\t\t\"name\" => \"Main Demo - Our Offices\",\n\t\t\"code\" => '[spb_blank_spacer height=\"90px\" width=\"1/1\" el_position=\"first last\"] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [spb_image image=\"15251\" image_size=\"full\" frame=\"noframe\" intro_animation=\"none\" animation_delay=\"800\" fullwidth=\"no\" lightbox=\"yes\" link_target=\"_self\" caption_pos=\"hover\" remove_rounded=\"no\" width=\"1/2\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"200\" padding_vertical=\"0\" padding_horizontal=\"6\" el_class=\"pb0\" width=\"1/2\" el_position=\"last\"]\n\t\tLorem ipsum dolor\n\t\t\n\t\tLorem ipsum dolor sit amet isse potenti. Vesquam ante aliquet lacusemper elit. Cras neque nulla, convallis non commodo et, euismod nonsese. At vero eos et accus amus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non.\n\t\t\n\t\tLearn more\n\t\t\n\t\t[/spb_text_block] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"30px\" bottom_margin=\"60px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"200\" padding_vertical=\"0\" padding_horizontal=\"6\" el_class=\"pb0\" width=\"1/2\" el_position=\"first\"]\n\t\tLorem ipsum dolor\n\t\t\n\t\tLorem ipsum dolor sit amet isse potenti. Vesquam ante aliquet lacusemper elit. Cras neque nulla, convallis non commodo et, euismod nonsese. At vero eos et accus amus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non.\n\t\t\n\t\tLearn more\n\t\t\n\t\t[/spb_text_block] [spb_image image=\"15250\" image_size=\"full\" frame=\"noframe\" intro_animation=\"none\" animation_delay=\"800\" fullwidth=\"no\" lightbox=\"yes\" link_target=\"_self\" caption_pos=\"hover\" remove_rounded=\"no\" width=\"1/2\" el_position=\"last\"] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"30px\" bottom_margin=\"60px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [spb_image image=\"15249\" image_size=\"full\" frame=\"noframe\" intro_animation=\"none\" animation_delay=\"800\" fullwidth=\"no\" lightbox=\"yes\" link_target=\"_self\" caption_pos=\"hover\" remove_rounded=\"no\" width=\"1/2\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"200\" padding_vertical=\"0\" padding_horizontal=\"6\" el_class=\"pb0\" width=\"1/2\" el_position=\"last\"]\n\t\tLorem ipsum dolor\n\t\t\n\t\tLorem ipsum dolor sit amet isse potenti. Vesquam ante aliquet lacusemper elit. Cras neque nulla, convallis non commodo et, euismod nonsese. At vero eos et accus amus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non.\n\t\t\n\t\tLearn more\n\t\t\n\t\t[/spb_text_block] [/spb_row]');\n\t\t\n\t\t$prebuilt_templates[\"careers\"] = array(\n\t\t\"id\" => \"careers\",\n\t\t\"name\" => \"Main Demo - Careers\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"2\" padding_horizontal=\"0\" width=\"1/1\" el_position=\"first last\"]\n\t\t4 Reasons to work at Uplift.\n\t\t[/spb_text_block] [spb_icon_box title=\"Competitive Salary\" box_type=\"standard-center\" box_icon_type=\"svg\" icon=\"fa-money\" svg_icon=\"business-outline_handout\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#00838f\" text_color=\"#444444\" animated_box_style=\"coloured\" width=\"1/4\" el_position=\"first\"] Vestibule convallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod. [/spb_icon_box] [spb_icon_box title=\"Growth & Learning\" box_type=\"standard-center\" box_icon_type=\"svg\" icon=\"fa-leaf\" svg_icon=\"health-outline_brain\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#546e7a\" text_color=\"#444444\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\"] Vestibule convallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod. [/spb_icon_box] [spb_icon_box title=\"Health Benefits\" box_type=\"standard-center\" box_icon_type=\"svg\" icon=\"fa-heartbeat\" svg_icon=\"media-2_sound-wave\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#00b8d4\" text_color=\"#444444\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\"] Vestibule convallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod. [/spb_icon_box] [spb_icon_box title=\"Flexibility\" box_type=\"standard-center\" box_icon_type=\"svg\" icon=\"fa-exchange\" svg_icon=\"arrows-1_shuffle-98\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#00bfa5\" text_color=\"#444444\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\" el_position=\"last\"] Vestibule convallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod. [/spb_icon_box] [spb_blank_spacer height=\"90px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"0px\" bottom_margin=\"30px\" fullwidth=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"2\" padding_horizontal=\"0\" width=\"1/1\" el_position=\"first last\"]\n\t\tCurrent Job Openings\n\t\t[/spb_text_block] [spb_boxed_content type=\"whitestroke\" box_link_target=\"_self\" padding_vertical=\"10\" padding_horizontal=\"10\" width=\"1/3\" el_position=\"first\"]\n\t\tDesign Lead\n\t\t\n\t\tClass patent taciti sociosqu ad litro torquent per connubio nostra, per inceptos hime naeos. Curabitur a torto ut leo mattis.\n\t\t\n\t\t[sf_modal header=\"Design Lead Job\" btn_colour=\"accent\" btn_type=\"standard\" btn_size=\"standard\" btn_icon=\"ss-star\" btn_text=\"Read more\"]\n\t\t\n\t\t[dropcap4]L[/dropcap4]orem ipsum dolor sit met, consectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Ut sum noluisse insolens appellantur, discere epicurei nominati id duo. Id eventi vidisse omnesque qui. Sale decore tamquam eso ne, in pri amet pertinax, vel option nominavi id. Ferri elitra semper ius ad, ea pro dique vivendo repudiandae, delenit asseveri ex ius. Per aliquip liberasse accomodare an, et vim clima deleniti, phaedrum dissentiunt ad has.\n\t\t\n\t\t[sf_button colour=\"accent\" type=\"standard\" size=\"large\" link=\"#\" target=\"_self\" icon=\"\" dropshadow=\"no\" rounded=\"no\" extraclass=\"\"]Apply for this opening[/sf_button] [/sf_modal] [/spb_boxed_content] [spb_boxed_content type=\"whitestroke\" box_link_target=\"_self\" padding_vertical=\"10\" padding_horizontal=\"10\" width=\"1/3\"]\n\t\tSenior Digital Strategist\n\t\t\n\t\tClass patent taciti sociosqu ad litro torquent per connubio nostra, per inceptos hime naeos. Curabitur a torto ut leo mattis.\n\t\t\n\t\t[sf_modal header=\"Design Lead Job\" btn_colour=\"accent\" btn_type=\"standard\" btn_size=\"standard\" btn_icon=\"ss-star\" btn_text=\"Read more\"]\n\t\t\n\t\t[dropcap4]L[/dropcap4]orem ipsum dolor sit met, consectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Ut sum noluisse insolens appellantur, discere epicurei nominati id duo. Id eventi vidisse omnesque qui. Sale decore tamquam eso ne, in pri amet pertinax, vel option nominavi id. Ferri elitra semper ius ad, ea pro dique vivendo repudiandae, delenit asseveri ex ius. Per aliquip liberasse accomodare an, et vim clima deleniti, phaedrum dissentiunt ad has.\n\t\t\n\t\t[sf_button colour=\"accent\" type=\"standard\" size=\"large\" link=\"#\" target=\"_self\" icon=\"\" dropshadow=\"no\" rounded=\"no\" extraclass=\"\"]Apply for this opening[/sf_button] [/sf_modal] [/spb_boxed_content] [spb_boxed_content type=\"whitestroke\" box_link_target=\"_self\" padding_vertical=\"10\" padding_horizontal=\"10\" width=\"1/3\" el_position=\"last\"]\n\t\tHuman Resources Manager\n\t\t\n\t\tClass patent taciti sociosqu ad litro torquent per connubio nostra, per inceptos hime naeos. Curabitur a torto ut leo mattis.\n\t\t\n\t\t[sf_modal header=\"Design Lead Job\" btn_colour=\"accent\" btn_type=\"standard\" btn_size=\"standard\" btn_icon=\"ss-star\" btn_text=\"Read more\"]\n\t\t\n\t\t[dropcap4]L[/dropcap4]orem ipsum dolor sit met, consectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Ut sum noluisse insolens appellantur, discere epicurei nominati id duo. Id eventi vidisse omnesque qui. Sale decore tamquam eso ne, in pri amet pertinax, vel option nominavi id. Ferri elitra semper ius ad, ea pro dique vivendo repudiandae, delenit asseveri ex ius. Per aliquip liberasse accomodare an, et vim clima deleniti, phaedrum dissentiunt ad has.\n\t\t\n\t\t[sf_button colour=\"accent\" type=\"standard\" size=\"large\" link=\"#\" target=\"_self\" icon=\"\" dropshadow=\"no\" rounded=\"no\" extraclass=\"\"]Apply for this opening[/sf_button] [/sf_modal] [/spb_boxed_content] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_boxed_content type=\"whitestroke\" box_link_target=\"_self\" padding_vertical=\"10\" padding_horizontal=\"10\" width=\"1/3\" el_position=\"first\"]\n\t\tAccount Manager\n\t\t\n\t\tClass patent taciti sociosqu ad litro torquent per connubio nostra, per inceptos hime naeos. Curabitur a torto ut leo mattis.\n\t\t\n\t\t[sf_modal header=\"Design Lead Job\" btn_colour=\"accent\" btn_type=\"standard\" btn_size=\"standard\" btn_icon=\"ss-star\" btn_text=\"Read more\"]\n\t\t\n\t\t[dropcap4]L[/dropcap4]orem ipsum dolor sit met, consectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Ut sum noluisse insolens appellantur, discere epicurei nominati id duo. Id eventi vidisse omnesque qui. Sale decore tamquam eso ne, in pri amet pertinax, vel option nominavi id. Ferri elitra semper ius ad, ea pro dique vivendo repudiandae, delenit asseveri ex ius. Per aliquip liberasse accomodare an, et vim clima deleniti, phaedrum dissentiunt ad has.\n\t\t\n\t\t[sf_button colour=\"accent\" type=\"standard\" size=\"large\" link=\"#\" target=\"_self\" icon=\"\" dropshadow=\"no\" rounded=\"no\" extraclass=\"\"]Apply for this opening[/sf_button] [/sf_modal] [/spb_boxed_content] [spb_boxed_content type=\"whitestroke\" box_link_target=\"_self\" padding_vertical=\"10\" padding_horizontal=\"10\" width=\"1/3\" el_position=\"last\"]\n\t\tJunior Sales Assistant\n\t\t\n\t\tClass patent taciti sociosqu ad litro torquent per connubio nostra, per inceptos hime naeos. Curabitur a torto ut leo mattis.\n\t\t\n\t\t[sf_modal header=\"Design Lead Job\" btn_colour=\"accent\" btn_type=\"standard\" btn_size=\"standard\" btn_icon=\"ss-star\" btn_text=\"Read more\"]\n\t\t\n\t\t[dropcap4]L[/dropcap4]orem ipsum dolor sit met, consectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Ut sum noluisse insolens appellantur, discere epicurei nominati id duo. Id eventi vidisse omnesque qui. Sale decore tamquam eso ne, in pri amet pertinax, vel option nominavi id. Ferri elitra semper ius ad, ea pro dique vivendo repudiandae, delenit asseveri ex ius. Per aliquip liberasse accomodare an, et vim clima deleniti, phaedrum dissentiunt ad has.\n\t\t\n\t\t[sf_button colour=\"accent\" type=\"standard\" size=\"large\" link=\"#\" target=\"_self\" icon=\"\" dropshadow=\"no\" rounded=\"no\" extraclass=\"\"]Apply for this opening[/sf_button] [/sf_modal] [/spb_boxed_content] [spb_blank_spacer height=\"90px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_section spb_section_id=\"15236\" width=\"1/1\" el_position=\"first last\"]');\n\t\t\n\t\t$prebuilt_templates[\"services-creative\"] = array(\n\t\t\"id\" => \"services-creative\",\n\t\t\"name\" => \"Main Demo - Services: Creative\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"full-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_responsive_vis=\"hidden-xs_hidden-sm\" row_el_class=\"mt0 pt0\" minimize_row=\"no\" simplified_controls=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_image image=\"14887\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"yes\" overflow_mode=\"none\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/2\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 20%!important;padding-right: 20%!important;padding-bottom: 0%!important;\" border_styling_global=\"default\" width=\"1/2\" el_position=\"last\"]\n\t\t01\n\t\t\n\t\tDigital Marketing\n\t\t\n\t\tClass patent taciti sociosqu ad litro torquent per connubio nostra, per inceptos himenaeos. Curabitur a torto ut leo mattis cursus. Vestibule laoreet interdum pellentesque. Suspendisse vitae. [sf_button colour=\"accent\" type=\"bordered\" size=\"standard\" link=\"/portfolio/portfolio-two-column-gallery/\" target=\"_self\" icon=\"sf-icon-read-more\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]Case Studies[/sf_button] [/spb_text_block] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 20%!important;padding-right: 20%!important;padding-bottom: 0%!important;\" border_styling_global=\"default\" width=\"1/2\" el_position=\"first\"]\n\t\t02\n\t\t\n\t\tCopywriting\n\t\t\n\t\tClass patent taciti sociosqu ad litro torquent per connubio nostra, per inceptos himenaeos. Curabitur a torto ut leo mattis cursus. Vestibule laoreet interdum pellentesque. Suspendisse vitae. [sf_button colour=\"accent\" type=\"bordered\" size=\"standard\" link=\"#\" target=\"_self\" icon=\"sf-icon-read-more\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]Case Studies[/sf_button] [/spb_text_block] [spb_image image=\"14891\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"yes\" overflow_mode=\"none\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/2\" el_position=\"last\"] [spb_image image=\"14892\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"yes\" overflow_mode=\"none\" el_class=\"mt0 pt0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/2\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 20%!important;padding-right: 20%!important;padding-bottom: 0%!important;\" border_styling_global=\"default\" width=\"1/2\" el_position=\"last\"]\n\t\t03\n\t\t\n\t\tAccounting\n\t\t\n\t\tClass patent taciti sociosqu ad litro torquent per connubio nostra, per inceptos himenaeos. Curabitur a torto ut leo mattis cursus. Vestibule laoreet interdum pellentesque. Suspendisse vitae. [sf_button colour=\"accent\" type=\"bordered\" size=\"standard\" link=\"#\" target=\"_self\" icon=\"sf-icon-read-more\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]Case Studies[/sf_button] [/spb_text_block] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"full-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_responsive_vis=\"hidden-lg_hidden-md\" row_el_class=\"mt0 pt0\" minimize_row=\"no\" simplified_controls=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_image image=\"14887\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"yes\" overflow_mode=\"none\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 10%!important;padding-left: 10%!important;padding-right: 10%!important;padding-bottom: 10%!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\t\t01\n\t\t\n\t\tDigital Marketing\n\t\t\n\t\tClass patent taciti sociosqu ad litro torquent per connubio nostra, per inceptos himenaeos. Curabitur a torto ut leo mattis cursus. Vestibule laoreet interdum pellentesque. Suspendisse vitae. [sf_button colour=\"accent\" type=\"bordered\" size=\"standard\" link=\"/portfolio/portfolio-two-column-gallery/\" target=\"_self\" icon=\"sf-icon-read-more\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]Case Studies[/sf_button] [/spb_text_block] [spb_image image=\"14891\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"yes\" overflow_mode=\"none\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 10%!important;padding-left: 10%!important;padding-right: 10%!important;padding-bottom: 10%!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\t\t02\n\t\t\n\t\tCopywriting\n\t\t\n\t\tClass patent taciti sociosqu ad litro torquent per connubio nostra, per inceptos himenaeos. Curabitur a torto ut leo mattis cursus. Vestibule laoreet interdum pellentesque. Suspendisse vitae. [sf_button colour=\"accent\" type=\"bordered\" size=\"standard\" link=\"#\" target=\"_self\" icon=\"sf-icon-read-more\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]Case Studies[/sf_button] [/spb_text_block] [spb_image image=\"14892\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"yes\" overflow_mode=\"none\" el_class=\"mt0 pt0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 10%!important;padding-left: 10%!important;padding-right: 10%!important;padding-bottom: 10%!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\t\t03\n\t\t\n\t\tAccounting\n\t\t\n\t\tClass patent taciti sociosqu ad litro torquent per connubio nostra, per inceptos himenaeos. Curabitur a torto ut leo mattis cursus. Vestibule laoreet interdum pellentesque. Suspendisse vitae. [sf_button colour=\"accent\" type=\"bordered\" size=\"standard\" link=\"#\" target=\"_self\" icon=\"sf-icon-read-more\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]Case Studies[/sf_button] [/spb_text_block] [/spb_row] [spb_section spb_section_id=\"15534\" width=\"1/1\" el_position=\"first last\"]');\n\t\t\n\t\t$prebuilt_templates[\"meet-the-team\"] = array(\n\t\t\"id\" => \"meet-the-team\",\n\t\t\"name\" => \"Main Demo - Meet the Team\",\n\t\t\"code\" => '[spb_team display_type=\"standard-alt\" carousel=\"no\" item_columns=\"3\" item_count=\"6\" category=\"All\" profile_link=\"yes\" ajax_overlay=\"yes\" pagination=\"no\" fullwidth=\"no\" gutters=\"yes\" order_by=\"none\" order=\"DESC\" width=\"1/1\" el_position=\"first last\"]');\n\t\t\n\t\t$prebuilt_templates[\"size-and-fit\"] = array(\n\t\t\"id\" => \"size-and-fit\",\n\t\t\"name\" => \"Main Demo - Size and Fit\",\n\t\t\"code\" => '[spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"0\" width=\"1/2\" el_position=\"first last\"]\n\t\tIf you would like specific measurements for a product, please dont hesitate to ask us at help@uplift.com\n\t\t\n\t\t[/spb_text_block] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"30px\" bottom_margin=\"60px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_text_block title=\"Menswear Size Guide\" animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"0\" width=\"1/2\" el_position=\"first\"] [table type=\"standard_bordered\"][trow][thcol][/thcol][thcol]Small[/thcol][thcol]Medium[/thcol][thcol]Large[/thcol][/trow][trow][tcol]Neck[/tcol][tcol]15\"[/tcol][tcol]16\"[/tcol][tcol]17\"[/tcol][/trow][trow][tcol]Chest[/tcol][tcol]37\"-38\"[/tcol][tcol]39\"-40\"[/tcol][tcol]41\"-42\"[/tcol][/trow][trow][tcol]Waist[/tcol][tcol]30\"[/tcol][tcol]32\"[/tcol][tcol]34\"[/tcol][/trow][/table] [/spb_text_block] [spb_text_block title=\"Womenswear Size Guide\" animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"0\" width=\"1/2\" el_position=\"last\"] [table type=\"standard_bordered\"][trow][thcol][/thcol][thcol]Small[/thcol][thcol]Medium[/thcol][thcol]Large[/thcol][/trow][trow][tcol]Bust[/tcol][tcol]15\"[/tcol][tcol]16\"[/tcol][tcol]17\"[/tcol][/trow][trow][tcol]Waist[/tcol][tcol]37\"-38\"[/tcol][tcol]39\"-40\"[/tcol][tcol]41\"-42\"[/tcol][/trow][trow][tcol]Hips[/tcol][tcol]30\"[/tcol][tcol]32\"[/tcol][tcol]34\"[/tcol][/trow][/table] [/spb_text_block] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block title=\"Size Conversion Chart\" animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"0\" width=\"1/1\" el_position=\"first last\"] [table type=\"standard_bordered\"][trow][thcol][/thcol][thcol]XS[/thcol][thcol]S[/thcol][thcol]M[/thcol][thcol]L[/thcol][thcol]XL[/thcol][/trow][trow][tcol]Europe[/tcol][tcol]44[/tcol][tcol]46[/tcol][tcol]48[/tcol][tcol]50[/tcol][tcol]52[/tcol][/trow][trow][tcol]France[/tcol][tcol]44[/tcol][tcol]46[/tcol][tcol]48[/tcol][tcol]50[/tcol][tcol]52[/tcol][/trow][trow][tcol]Italy[/tcol][tcol]44[/tcol][tcol]46[/tcol][tcol]48[/tcol][tcol]50[/tcol][tcol]52[/tcol][/trow][trow][tcol]U.K.[/tcol][tcol]34[/tcol][tcol]36[/tcol][tcol]38[/tcol][tcol]40[/tcol][tcol]42[/tcol][/trow][trow][tcol]U.S.[/tcol][tcol]34[/tcol][tcol]36[/tcol][tcol]38[/tcol][tcol]40[/tcol][tcol]42[/tcol][/trow][/table] [/spb_text_block]');\n\t\t\n\t\t$prebuilt_templates[\"f-a-q-s\"] = array(\n\t\t\"id\" => \"f-a-q-s\",\n\t\t\"name\" => \"Main Demo - F.A.Q.'s\",\n\t\t\"code\" => '[spb_faqs category=\"All\" width=\"1/1\" el_position=\"first last\"]');\n\t\t\n\t\t$prebuilt_templates[\"home-agency\"] = array(\n\t\t\"id\" => \"home-agency\",\n\t\t\"name\" => \"Main Demo - Home: Agency\",\n\t\t\"code\" => '[spb_portfolio display_type=\"multi-size-masonry\" multi_size_ratio=\"4/3\" fullwidth=\"yes\" gutters=\"yes\" columns=\"2\" show_title=\"yes\" show_subtitle=\"yes\" show_excerpt=\"no\" hover_show_excerpt=\"no\" excerpt_length=\"20\" item_count=\"4\" category=\"All\" order_by=\"date\" order=\"DESC\" portfolio_filter=\"no\" pagination=\"none\" button_enabled=\"no\" el_class=\"pb0 mb0\" width=\"1/1\" el_position=\"first last\"] [spb_promo_bar display_type=\"promo-text\" promo_bar_text=\"See more of our work\" promo_bar_text_size=\"impact-text\" btn_text=\"Button Text\" btn_color=\"accent\" btn_type=\"standard\" href=\"/portfolio/portfolio-three-column-gallery/\" target=\"_self\" bg_color=\"#61aab0\" text_color=\"#ffffff\" page_align=\"no\" fullwidth=\"yes\" width=\"1/1\" el_position=\"first last\"] Enter your text here [/spb_promo_bar] [spb_row element_name=\"Services Row\" wrap_type=\"full-width\" row_bg_type=\"color\" row_bg_color=\"#f7f7f7\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"2\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"1px\" width=\"1/3\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"4\" padding_horizontal=\"0\" simplified_controls=\"yes\" custom_css=\"margin-top: px!important;margin-left: px!important;margin-right: px!important;margin-bottom: px!important;border-top: px default !important;border-left: px default !important;border-right: px default !important;border-bottom: px default !important;padding-top: 0px!important;padding-left: 0px!important;padding-right: 0px!important;padding-bottom: 0px!important;\" border_styling_global=\"default\" width=\"1/3\"]\n\t\tWhat We Do\n\t\t\n\t\tVestibule corvallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt arcu mattis diam.\n\t\t\n\t\tMore about our services\n\t\t\n\t\t[/spb_text_block] [spb_blank_spacer height=\"1px\" width=\"1/3\" el_position=\"last\"] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box title=\"Digital Planning\" box_type=\"animated-alt\" box_icon_type=\"svg\" svg_icon=\"health-outline_brain\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#ffffff\" text_color=\"#ffffff\" bg_color=\"#7eced5\" flip_bg_color=\"#ffffff\" flip_text_color=\"#7eced5\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\" el_position=\"first\"] [list extraclass=\"\"] [list_item icon=\"sf-icon-menu-chevron-right\"]Ideation[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Brainstorming[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Breakouts[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Meetings[/list_item] [/list] [/spb_icon_box] [spb_icon_box title=\"Interaction Design\" box_type=\"animated-alt\" box_icon_type=\"svg\" svg_icon=\"design-outline_webpage\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#ffffff\" text_color=\"#ffffff\" bg_color=\"#78909c\" flip_bg_color=\"#ffffff\" flip_text_color=\"#78909c\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\"] [list extraclass=\"\"] [list_item icon=\"sf-icon-menu-chevron-right\"]Palette Creation[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Colour Invention[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Colour Mixing[/list_item] [/list] [/spb_icon_box] [spb_icon_box title=\"Mobile Gaming\" box_type=\"animated-alt\" box_icon_type=\"svg\" svg_icon=\"sport-outline_podium-trophy\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#ffffff\" text_color=\"#ffffff\" bg_color=\"#37474f\" flip_bg_color=\"#ffffff\" flip_text_color=\"#37474f\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\"] [list extraclass=\"\"] [list_item icon=\"sf-icon-menu-chevron-right\"]Gene Mapping[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Gene Regulation[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Gene Mutation[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]DNA Sequencing[/list_item] [/list] [/spb_icon_box] [spb_icon_box title=\"Social Marketing\" box_type=\"animated-alt\" box_icon_type=\"svg\" svg_icon=\"envir-outline_save-planet\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#ffffff\" text_color=\"#ffffff\" bg_color=\"#0277bd\" flip_bg_color=\"#ffffff\" flip_text_color=\"#0277bd\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\" el_position=\"last\"] [list extraclass=\"\"] [list_item icon=\"sf-icon-menu-chevron-right\"]HR Planning[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]HR Projects[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]HR Documentation[/list_item] [/list] [/spb_icon_box] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box title=\"Testing & Prototyping\" box_type=\"animated-alt\" box_icon_type=\"svg\" svg_icon=\"design-outline_code-editor\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#ffffff\" text_color=\"#ffffff\" bg_color=\"#00acc1\" flip_bg_color=\"#ffffff\" flip_text_color=\"#00acc1\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\" el_position=\"first\"] [list extraclass=\"\"] [list_item icon=\"sf-icon-menu-chevron-right\"]Testing[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Prototyping[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Planning[/list_item] [/list] [/spb_icon_box] [spb_icon_box title=\"Search Engine Marketing\" box_type=\"animated-alt\" box_icon_type=\"svg\" svg_icon=\"business-outline_connect\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#ffffff\" text_color=\"#ffffff\" bg_color=\"#61aab0\" flip_bg_color=\"#ffffff\" flip_text_color=\"#61aab0\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\"] [list extraclass=\"\"] [list_item icon=\"sf-icon-menu-chevron-right\"]S.E.O. Optimising[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]S.E.M. Optimising[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Media Buying[/list_item] [/list] [/spb_icon_box] [spb_icon_box title=\"Email Marketing\" box_type=\"animated-alt\" box_icon_type=\"svg\" svg_icon=\"holidays-outline_message\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#ffffff\" text_color=\"#ffffff\" bg_color=\"#5c6bc0\" flip_bg_color=\"#ffffff\" flip_text_color=\"#5c6bc0\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\"] [list extraclass=\"\"] [list_item icon=\"sf-icon-menu-chevron-right\"]Email Design[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Mailout Planning[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Visualisation[/list_item] [/list] [/spb_icon_box] [spb_icon_box title=\"User Research\" box_type=\"animated-alt\" box_icon_type=\"svg\" svg_icon=\"ui-2_layers\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#ffffff\" text_color=\"#ffffff\" bg_color=\"#455a64\" flip_bg_color=\"#ffffff\" flip_text_color=\"#455a64\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\" el_position=\"last\"] [list extraclass=\"\"] [list_item icon=\"sf-icon-menu-chevron-right\"]Research Planning[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]User Testing[/list_item] [list_item icon=\"sf-icon-menu-chevron-right\"]Documentation[/list_item] [/list] [/spb_icon_box] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_swift_slider fullscreen=\"false\" maxheight=\"600\" slidecount=\"3\" category=\"blog\" transition=\"slide\" loop=\"true\" nav=\"true\" pagination=\"true\" continue=\"false\" fullwidth=\"yes\" width=\"1/1\" el_position=\"first last\"]');\n\t\t\n\t\t$prebuilt_templates[\"home-start-up\"] = array(\n\t\t\"id\" => \"home-start-up\",\n\t\t\"name\" => \"Main Demo - Home: Start-up\",\n\t\t\"code\" => '[spb_row element_name=\"Intro Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#f7f7f7\" color_row_height=\"content-height\" bg_image=\"14320\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_mp4=\"http://swiftideasvideos.s3.amazonaws.com/agency_work.mp4\" bg_video_webm=\"http://swiftideasvideos.s3.amazonaws.com/agency_work.webmhd.webm\" bg_video_loop=\"yes\" parallax_video_height=\"content-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"90\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"Intro\" row_name=\"Intro\" row_el_class=\"no-shadow\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"140px\" responsive_vis=\"hidden-xs_hidden-sm\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 2%!important;padding-left: 20%!important;padding-right: 20%!important;padding-bottom: 2%!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\t\tDo more, faster and with less effort... welcome to uplift\n\t\t\n\t\t[sf_button colour=\"accent\" type=\"standard\" size=\"standard\" link=\"/home/\" target=\"_self\" icon=\"nucleo-icon-eye\" dropshadow=\"no\" rounded=\"no\" extraclass=\"\"]Live Preview[/sf_button] [sf_button colour=\"accent\" type=\"bordered\" size=\"standard\" link=\"/home/\" target=\"_self\" icon=\"sf-icon-reply\" dropshadow=\"no\" rounded=\"no\" extraclass=\"\"]Create account[/sf_button]\n\t\t\n\t\t[/spb_text_block] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_image image=\"15726\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"3 Icon Boxes Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"window-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"features\" row_name=\"Features\" row_el_class=\"no-shadow\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"40px\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box title=\"Amazing Features\" box_type=\"standard-center\" box_icon_type=\"svg\" svg_icon=\"education-outline_pencil-47\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#7eced5\" text_color=\"#333333\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/3\" el_position=\"first\"] Vestibule convallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt arcu mattis diam, in scelerisque purus. [/spb_icon_box] [spb_icon_box title=\"Stunning Design\" box_type=\"standard-center\" box_icon_type=\"svg\" svg_icon=\"ui-1_settings-gear-65\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#78909c\" text_color=\"#333333\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/3\"] Vestibule convallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt arcu mattis diam, in scelerisque purus. [/spb_icon_box] [spb_icon_box title=\"Performance in its DNA\" box_type=\"standard-center\" box_icon_type=\"svg\" svg_icon=\"health-outline_dna-27\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#546e7a\" text_color=\"#333333\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/3\" el_position=\"last\"] Vestibule convallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt arcu mattis diam, in scelerisque purus. [/spb_icon_box] [spb_blank_spacer height=\"40px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"full-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_gallery gallery_id=\"15080\" display_type=\"slider\" columns=\"5\" fullwidth=\"no\" gutters=\"yes\" image_size=\"full\" slider_transition=\"slide\" show_thumbs=\"no\" autoplay=\"no\" show_captions=\"no\" enable_lightbox=\"no\" el_class=\"pb0 mb0 pt0 mt0\" width=\"1/2\" el_position=\"first\"] [spb_image image=\"15251\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" link_target=\"_self\" lightbox=\"yes\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/2\" el_position=\"last\"] [/spb_row] [spb_row element_name=\"3 ways Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#f7f7f7\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"interaction\" row_name=\"Interaction\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box_grid columns=\"3\" colour_style=\"dark\" width=\"3/4\" el_position=\"first\"] [spb_icon_box_grid_element title=\"Pinch Touch\" target=\"\" link=\"#\" icon=\"svg-icon-picker-item svg-icon-picker-item gestures-color_pinch\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"Swipe Touch\" target=\"\" link=\"#\" icon=\"svg-icon-picker-item svg-icon-picker-item gestures-color_scroll-horitontal\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"Drag Touch\" target=\"\" link=\"#\" icon=\"svg-icon-picker-item svg-icon-picker-item gestures-color_scroll-vertical\"][/spb_icon_box_grid_element] [/spb_icon_box_grid] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 4%!important;padding-right: 4%!important;padding-bottom: 0%!important;\" border_styling_global=\"default\" width=\"1/4\" el_position=\"last\"]\n\t\t3 types of interaction.\n\t\t\n\t\tLorem ipsum dolor sit met, consectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet. [sf_button colour=\"accent\" type=\"bordered\" size=\"standard\" link=\"/pages/about-us-classic/\" target=\"_self\" icon=\"\" dropshadow=\"no\" rounded=\"no\" extraclass=\"\"]Find out more[/sf_button] [/spb_text_block] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"60px\" bottom_margin=\"0px\" fullwidth=\"yes\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_section element_name=\"Fun Facts Counters\" spb_section_id=\"15667\" width=\"1/1\" el_position=\"first last\"] [spb_row element_name=\"Examples Portfolio\" wrap_type=\"full-width\" row_bg_type=\"color\" row_bg_color=\"#f7f7f7\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"examples\" row_name=\"Examples\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_portfolio display_type=\"multi-size-masonry\" multi_size_ratio=\"4/3\" fullwidth=\"yes\" gutters=\"no\" columns=\"5\" show_title=\"yes\" show_subtitle=\"yes\" show_excerpt=\"yes\" hover_show_excerpt=\"no\" excerpt_length=\"20\" item_count=\"4\" category=\"All\" order_by=\"date\" order=\"DESC\" portfolio_filter=\"no\" pagination=\"none\" button_enabled=\"yes\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"FAQs Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#455a64\" color_row_height=\"content-height\" row_style=\"light\" bg_image=\"14055\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"90\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"faqs\" row_name=\"F.A.Q.s\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"120px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\t\tFrequently Asked Questions\n\t\t\n\t\t[/spb_text_block] [spb_icon_box title=\"How do I flag an issue?\" box_type=\"standard-left\" box_icon_type=\"svg\" svg_icon=\"location-outline_flag-complex\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#78909c\" text_color=\"#ffffff\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\" el_position=\"first\"] Vestibule ante ipsum primis in fauci i bus luctus et ultrice posuere cubilia Curae; Inte ger in enim dui. [/spb_icon_box] [spb_icon_box title=\"Wheres my free shirt?\" box_type=\"standard-left\" box_icon_type=\"svg\" svg_icon=\"business-outline_businessman-04\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#78909c\" text_color=\"#ffffff\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\"] Vestibule ante ipsum primis in fauci i bus luctus et ultrice posuere cubilia Curae; Inte ger in enim dui. [/spb_icon_box] [spb_icon_box title=\"Where do I sign up?\" box_type=\"standard-left\" box_icon_type=\"svg\" svg_icon=\"business-outline_sign\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#78909c\" text_color=\"#ffffff\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\"] Vestibule ante ipsum primis in fauci i bus luctus et ultrice posuere cubilia Curae; Inte ger in enim dui. [/spb_icon_box] [spb_icon_box title=\"Can I Subscribe?\" box_type=\"standard-left\" box_icon_type=\"svg\" svg_icon=\"ui-1_email-85\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#78909c\" text_color=\"#ffffff\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\" el_position=\"last\"] Vestibule ante ipsum primis in fauci i bus luctus et ultrice posuere cubilia Curae; Inte ger in enim dui. [/spb_icon_box] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box title=\"Can I upgrade later?\" box_type=\"standard-left\" box_icon_type=\"svg\" svg_icon=\"arrows-1_loop-82\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#78909c\" text_color=\"#ffffff\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\" el_position=\"first\"] Vestibule ante ipsum primis in fauci i bus luctus et ultrice posuere cubilia Curae; Inte ger in enim dui. [/spb_icon_box] [spb_icon_box title=\"Is the agreement binding?\" box_type=\"standard-left\" box_icon_type=\"svg\" svg_icon=\"education-outline_paper\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#78909c\" text_color=\"#ffffff\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\"] Vestibule ante ipsum primis in fauci i bus luctus et ultrice posuere cubilia Curae; Inte ger in enim dui. [/spb_icon_box] [spb_icon_box title=\"How long does it last?\" box_type=\"standard-left\" box_icon_type=\"svg\" svg_icon=\"health-outline_sleep\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#78909c\" text_color=\"#ffffff\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\"] Vestibule ante ipsum primis in fauci i bus luctus et ultrice posuere cubilia Curae; Inte ger in enim dui. [/spb_icon_box] [spb_icon_box title=\"How can I get refunded?\" box_type=\"standard-left\" box_icon_type=\"svg\" svg_icon=\"shopping-outline_credit-locked\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#78909c\" text_color=\"#ffffff\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\" el_position=\"last\"] Vestibule ante ipsum primis in fauci i bus luctus et ultrice posuere cubilia Curae; Inte ger in enim dui. [/spb_icon_box] [spb_blank_spacer height=\"120px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Testimonials Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"reviews\" row_name=\"Reviews\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"120px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\t\tWhat Customers Say\n\t\t\n\t\t[/spb_text_block] [spb_section element_name=\"Testimonials Grid\" spb_section_id=\"15613\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"thin\" heading_text=\"As used by these great people\" text=\"Go to top\" top_margin=\"30px\" bottom_margin=\"90px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_clients title=\"Companies using uplift\" item_count=\"8\" item_columns=\"4\" category=\"All\" carousel=\"no\" pagination=\"no\" el_class=\"pt0 mt0\" width=\"2/3\" el_position=\"first\"] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" width=\"1/3\" el_position=\"last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\t\tUsage by industry\n\t\t\n\t\t[/spb_text_block] [spb_progress_bar percentage=\"100\" text=\"Healthcare\" value=\"30k+ Users\" colour=\"#7eced5\" width=\"1/1\" el_position=\"first last\"] [spb_progress_bar percentage=\"80\" text=\"Publishing\" value=\"18k+ Users\" colour=\"#61aab0\" width=\"1/1\" el_position=\"first last\"] [spb_progress_bar percentage=\"70\" text=\"Catering\" value=\"14k+ Users\" colour=\"#546e7a\" width=\"1/1\" el_position=\"first last\"] [spb_progress_bar percentage=\"90\" text=\"Design\" value=\"23k+ Users\" colour=\"#90a4ae\" width=\"1/1\" el_position=\"first last\"] [/spb_column] [spb_blank_spacer height=\"120px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Team Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#d1eff2\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"team\" row_name=\"Our Team\" minimize_row=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"80px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\t\tOur team is here to help\n\t\t\n\t\t[/spb_text_block] [spb_blank_spacer height=\"40px\" width=\"1/1\" el_position=\"first last\"] [spb_team display_type=\"gallery\" carousel=\"no\" item_columns=\"5\" item_count=\"5\" category=\"All\" profile_link=\"no\" ajax_overlay=\"yes\" pagination=\"no\" fullwidth=\"yes\" gutters=\"no\" order_by=\"none\" order=\"DESC\" el_class=\"pb0 mb0\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_section element_name=\"Sign Up!\" spb_section_id=\"15637\" width=\"1/1\" el_position=\"first last\"]');\n\t\t\n\t\t$prebuilt_templates[\"home-apptastic\"] = array(\n\t\t\"id\" => \"home-apptastic\",\n\t\t\"name\" => \"Main Demo - Home: Apptastic\",\n\t\t\"code\" => '[spb_row element_name=\"Intro: Desktop\" wrap_type=\"content-width\" row_bg_type=\"image\" row_bg_color=\"#61aab0\" color_row_height=\"content-height\" bg_image=\"14894\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"90\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_responsive_vis=\"hidden-xs_hidden-sm\" row_el_class=\"no-shadow\" minimize_row=\"no\" simplified_controls=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"160px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 25%!important;padding-left: 0%!important;padding-right: 20%!important;padding-bottom: 0%!important;\" border_styling_global=\"default\" width=\"1/2\" el_position=\"first\"]\n\t\tThis is the uplift app, it will transform your life for the better.\n\t\t\n\t\tapp-badge-appleapp-badge-google [/spb_text_block] [spb_image image=\"15681\" image_size=\"full\" image_width=\"550\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"mb0 pb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/2\" el_position=\"last\"] [/spb_row] [spb_row element_name=\"Intro: Tablet/Mobile\" wrap_type=\"content-width\" row_bg_type=\"image\" row_bg_color=\"#61aab0\" color_row_height=\"content-height\" bg_image=\"14894\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"90\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_responsive_vis=\"hidden-lg_hidden-md\" row_el_class=\"no-shadow\" minimize_row=\"no\" simplified_controls=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 10%!important;padding-left: 5%!important;padding-right: 0%!important;padding-bottom: 0%!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\t\tThis is the uplift app, it will transform your life for the better.\n\t\t\n\t\tapp-badge-apple app-badge-google [/spb_text_block] [spb_image image=\"15681\" image_size=\"full\" image_width=\"550\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"mb0 pb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"window-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_el_class=\"no-shadow\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box title=\"Amazing Features\" box_type=\"standard-center\" box_icon_type=\"svg\" svg_icon=\"location-color_treasure-map-40\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\" el_position=\"first\"] Vestibule corv allis pulv inar tellus eget ultr icies. Sed sollici tudin, sem vitae elemen tum. [/spb_icon_box] [spb_icon_box title=\"Stunning Design\" box_type=\"standard-center\" box_icon_type=\"svg\" svg_icon=\"objects-color_diamond\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" text_color=\"76b5b5\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\"] Vestibule corv allis pulv inar tellus eget ultr icies. Sed sollici tudin, sem vitae elemen tum. [/spb_icon_box] [spb_icon_box title=\"Unlimited Users\" box_type=\"standard-center\" box_icon_type=\"svg\" svg_icon=\"users-color_badge-13\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" text_color=\"76b5b5\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\"] Vestibule corv allis pulv inar tellus eget ultr icies. Sed sollici tudin, sem vitae elemen tum. [/spb_icon_box] [spb_icon_box title=\"Wireless Syncing\" box_type=\"standard-center\" box_icon_type=\"svg\" svg_icon=\"media-color-2_radio\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" text_color=\"76b5b5\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/4\" el_position=\"last\"] Vestibule corv allis pulv inar tellus eget ultr icies. Sed sollici tudin, sem vitae elemen tum. [/spb_icon_box] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"60px\" bottom_margin=\"0px\" fullwidth=\"yes\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#f7f7f7\" color_row_height=\"content-height\" bg_image=\"14894\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_el_class=\"no-shadow\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"100px\" width=\"1/1\" el_position=\"first last\"] [spb_image image=\"15679\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"mb0 pb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"400\" width=\"1/2\" el_position=\"first\"] [spb_column col_animation=\"none\" col_animation_delay=\"400\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"8\" width=\"1/2\" el_position=\"last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\t\tAmazing features\n\t\t\n\t\tVestibule corvallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt arcu mattis diam, in scelerisque purus. [/spb_text_block] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"10px\" bottom_margin=\"10px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box title=\"Touch control\" box_type=\"standard-left\" box_icon_type=\"svg\" svg_icon=\"media-color-1_shake\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/2\" el_position=\"first\"] Lorem ipsum dolor sit amet, consectetur adipiscing elit. [/spb_icon_box] [spb_icon_box title=\"iWatch Support\" box_type=\"standard-left\" box_icon_type=\"svg\" svg_icon=\"tech-color_watch\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/2\" el_position=\"last\"] Lorem ipsum dolor sit amet, consectetur adipiscing elit. [/spb_icon_box] [/spb_column] [spb_blank_spacer height=\"100px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_image=\"14894\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_el_class=\"no-shadow\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"0px\" bottom_margin=\"60px\" fullwidth=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_column col_animation=\"none\" col_animation_delay=\"400\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"4\" width=\"1/2\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\t\tStunning design\n\t\t\n\t\tMaecenas ultrices viverra ligula, vel lobortis ante pulvinar sed. Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Vivamus pellentesque orci sit met odio dictum eget kommod nulla consequent. Prooien iaculis trirtique nis ut eleifend. Mecenas locus purus, malesuada eu scelerisque ac. [/spb_text_block] [spb_blank_spacer height=\"20px\" width=\"1/1\" el_position=\"first last\"] [spb_button button_text=\"See the iWatch demo\" button_size=\"standard\" button_colour=\"black\" button_type=\"standard\" rounded=\"yes\" button_dropshadow=\"no\" button_icon=\"nucleo-icon-watch\" button_link=\"/portfolio/portfolio-multi-size-masonry-full-width/\" button_target=\"_self\" align=\"left\" animation=\"none\" animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [/spb_column] [spb_image image=\"15683\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"mb0 pb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"400\" width=\"1/2\" el_position=\"last\"] [spb_blank_spacer height=\"70px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#222222\" color_row_height=\"content-height\" row_style=\"light\" bg_image=\"14894\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_el_class=\"no-shadow\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"140px\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"1px\" width=\"1/4\" el_position=\"first\"] [spb_text_block element_name=\"stunning design\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" border_styling_global=\"default\" width=\"1/2\"]\n\t\tStunning Design\n\t\t\n\t\tVestibule corvallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt arcu mattis diam, in sceleri.\n\t\t\n\t\t[/spb_text_block] [spb_blank_spacer height=\"1px\" width=\"1/4\" el_position=\"last\"] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" width=\"1/4\" el_position=\"first\"] [spb_icon_box title=\"Pixel Perfect\" box_type=\"standard-center\" box_icon_type=\"svg\" svg_icon=\"design-outline_vector\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#ffffff\" text_color=\"#ffffff\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/1\" el_position=\"first last\"] Lorem ipsum dolor sit amet, consectetur adipiscing elit. [/spb_icon_box] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box title=\"Packs A Punch\" box_type=\"standard-center\" box_icon_type=\"svg\" svg_icon=\"emoticons-outline_fist\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#ffffff\" text_color=\"#ffffff\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/1\" el_position=\"first last\"] Lorem ipsum dolor sit amet, consectetur adipiscing elit. [/spb_icon_box] [/spb_column] [spb_image image=\"15685\" image_size=\"full\" image_width=\"550\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"mb0 pb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/2\"] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" width=\"1/4\" el_position=\"last\"] [spb_icon_box title=\"Attention To Detail\" box_type=\"standard-center\" box_icon_type=\"svg\" svg_icon=\"ui-1_zoom-split\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#ffffff\" text_color=\"#ffffff\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/1\" el_position=\"first last\"] Lorem ipsum dolor sit amet, consectetur adipiscing elit. [/spb_icon_box] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box title=\"Unlimited Colours\" box_type=\"standard-center\" box_icon_type=\"svg\" svg_icon=\"design-outline_palette\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#ffffff\" text_color=\"#ffffff\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/1\" el_position=\"first last\"] Lorem ipsum dolor sit amet, consectetur adipiscing elit. [/spb_icon_box] [/spb_column] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_button button_text=\"What people are saying\" button_size=\"standard\" button_colour=\"white\" button_type=\"standard\" rounded=\"yes\" button_dropshadow=\"no\" button_icon=\"sf-icon-quote\" button_link=\"/pages/about-us/\" button_target=\"_self\" align=\"center\" animation=\"none\" animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"120px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Download App Row\" wrap_type=\"content-width\" row_bg_type=\"video\" row_bg_color=\"#252525\" color_row_height=\"content-height\" bg_image=\"14320\" bg_type=\"cover\" parallax_image_height=\"window-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_mp4=\"http://swiftideasvideos.s3.amazonaws.com/agency_work.mp4\" bg_video_webm=\"http://swiftideasvideos.s3.amazonaws.com/agency_work.webmhd.webm\" bg_video_loop=\"yes\" parallax_video_height=\"content-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"90\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_el_class=\"no-shadow\" minimize_row=\"no\" simplified_controls=\"yes\" custom_css=\"margin-top: px!important;margin-left: px!important;margin-right: px!important;margin-bottom: px!important;border-top: px default !important;border-left: px default !important;border-right: px default !important;border-bottom: px default !important;padding-top: 0px!important;padding-left: 0px!important;padding-right: 0px!important;padding-bottom: 0px!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"1px\" responsive_vis=\"hidden-xs_hidden-sm\" width=\"1/4\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" custom_css=\"margin-top: px!important;margin-left: px!important;margin-right: px!important;margin-bottom: px!important;border-top: px default !important;border-left: px default !important;border-right: px default !important;border-bottom: px default !important;padding-top: 120px!important;padding-left: 50px!important;padding-right: 50px!important;padding-bottom: 120px!important;\" border_styling_global=\"default\" width=\"1/2\" el_position=\"last\"]\n\t\tDownload the uplift app, it will transform your life for the better\n\t\t\n\t\tapp-badge-apple app-badge-google\n\t\t[/spb_text_block] [/spb_row] [spb_row element_name=\"Pricing Plans\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"window-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_el_class=\"no-shadow\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"0px\" bottom_margin=\"91px\" fullwidth=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"1px\" width=\"1/4\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" border_styling_global=\"default\" width=\"1/2\"]\n\t\tChoose a plan\n\t\t\n\t\tVestibule convallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt arcu mattis diam, in scelerisque purus.\n\t\t\n\t\t[/spb_text_block] [spb_blank_spacer height=\"1px\" width=\"1/4\" el_position=\"last\"] [spb_pricing_table columns=\"3\" width=\"1/1\" el_position=\"first last\"] [spb_pricing_column name=\"Free\" highlight_column=\"no\" price=\"$0\" period=\"/mo\" btn_text=\"Sign up\" href=\"http://uplift.swiftideas.com/purchase\" target=\"_self\" el_class=\"\" ][spb_pricing_column_feature feature_name=\"1 User License\" el_class=\"\"] [/spb_pricing_column_feature][spb_pricing_column_feature feature_name=\"1 Email Account\" el_class=\"\"] [/spb_pricing_column_feature][spb_pricing_column_feature feature_name=\"Feature Name\" el_class=\"\"] [/spb_pricing_column_feature][/spb_pricing_column][spb_pricing_column name=\"STARTER\" highlight_column=\"yes\" price=\"$99\" period=\"/mo\" btn_text=\"Purchase Plan\" href=\"http://uplift.swiftideas.com/purchase\" target=\"_self\" el_class=\"\" ][spb_pricing_column_feature feature_name=\"1 User License\" el_class=\"\"] [/spb_pricing_column_feature][spb_pricing_column_feature feature_name=\"3 Email Accounts\" el_class=\"\"] [/spb_pricing_column_feature][spb_pricing_column_feature feature_name=\"5 Domain Names\" el_class=\"\"] [/spb_pricing_column_feature][/spb_pricing_column][spb_pricing_column name=\"Pro\" highlight_column=\"no\" price=\"$199\" period=\"/mo\" btn_text=\"Purchase Plan\" href=\"http://uplift.swiftideas.com/purchase\" target=\"_self\" el_class=\"\" ][spb_pricing_column_feature feature_name=\"5 User Licenses\" el_class=\"\"] [/spb_pricing_column_feature][spb_pricing_column_feature feature_name=\"10 Email Accounts\" el_class=\"\"] [/spb_pricing_column_feature][spb_pricing_column_feature feature_name=\"10 Domain Names\" el_class=\"\"] [/spb_pricing_column_feature][/spb_pricing_column] [/spb_pricing_table] [spb_blank_spacer height=\"90px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#f7f7f7\" color_row_height=\"content-height\" row_style=\"dark\" bg_image=\"15621\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"60\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_el_class=\"no-shadow\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"0px\" bottom_margin=\"60px\" fullwidth=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_animated_headline before_text=\"Customers say uplift is\" animated_strings=\"quick,simple,stunning\" animation_type=\"letters_rotate-2\" textstyle=\"impact-text\" textalign=\"center\" textcolor=\"#333333\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"45px\" width=\"1/1\" el_position=\"first last\"] [spb_section spb_section_id=\"15611\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_section spb_section_id=\"15534\" width=\"1/1\" el_position=\"first last\"]');\n\t\t\n\t\t$prebuilt_templates[\"home-shop\"] = array(\n\t\t\"id\" => \"home-shop\",\n\t\t\"name\" => \"Main Demo - Home: Shop\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_image_banner image=\"15603\" image_size=\"full\" content_pos=\"left\" content_textalign=\"left\" animation=\"none\" animation_delay=\"200\" image_link=\"/shop/?sidebar=left-sidebar\" link_target=\"_self\" width=\"1/3\" el_position=\"first\"]\n\t\tS/S 16 Lookbook\n\t\t\n\t\t[/spb_image_banner] [spb_image_banner image=\"15600\" image_size=\"full\" content_pos=\"center\" content_textalign=\"left\" animation=\"none\" animation_delay=\"200\" image_link=\"/product-category/sunglasses/\" link_target=\"_self\" width=\"1/3\"]\n\t\tSunglasses Giveaway\n\t\t\n\t\t[/spb_image_banner] [spb_image_banner image=\"15601\" image_size=\"full\" content_pos=\"center\" content_textalign=\"left\" animation=\"none\" animation_delay=\"200\" image_link=\"/pages/about-us/\" link_target=\"_self\" width=\"1/3\" el_position=\"last\"]\n\t\tFind Out About Us\n\t\t\n\t\t[/spb_image_banner] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"30px\" bottom_margin=\"49px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_products title=\"Featured Products\" asset_type=\"latest-products\" category=\"0\" display_type=\"standard\" multi_masonry=\"yes\" carousel=\"no\" fullwidth=\"no\" columns=\"4\" item_count=\"4\" order=\"DESC\" button_enabled=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"20px\" width=\"1/1\" el_position=\"first last\"] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"image\" row_bg_color=\"#222222\" color_row_height=\"content-height\" bg_image=\"15597\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"80\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_el_class=\"no-shadow\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box_grid columns=\"3\" colour_style=\"light\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box_grid_element title=\"Fast & Free International Delivery\" target=\"\" link=\"/pages/about-us-classic/\" icon=\"svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item outline-svg shopping-outline_delivery-time\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"Secure Checkout And Transactions\" target=\"\" link=\"/pages/about-us-classic/\" icon=\"svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item outline-svg shopping-outline_credit-locked\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"Free One-Day No Quibble Returns\" target=\"\" link=\"/pages/about-us-classic/\" icon=\"svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item outline-svg ui-1_send\"][/spb_icon_box_grid_element] [/spb_icon_box_grid] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_supersearch fullwidth=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"50px\" width=\"1/1\" el_position=\"first last\"] [spb_products title=\"Latest Arrivals\" asset_type=\"selected-products\" category=\"0\" products=\"15128,15143,15111, 15115\" display_type=\"standard\" multi_masonry=\"no\" carousel=\"yes\" fullwidth=\"no\" columns=\"3\" item_count=\"4\" order=\"ASC\" button_enabled=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"10px\" bottom_margin=\"49px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_recent_posts title=\"Recent Articles\" display_type=\"standard-row\" carousel=\"no\" item_columns=\"2\" item_count=\"2\" category=\"All\" offset=\"0\" posts_order=\"DESC\" excerpt_length=\"14\" fullwidth=\"no\" gutters=\"yes\" button_enabled=\"no\" pagination=\"yes\" width=\"1/2\" el_position=\"first\"] [spb_products_mini title=\"Top Rated Items\" asset_type=\"top-rated\" item_count=\"4\" width=\"1/4\"] [spb_products_mini title=\"Best Selling Items\" asset_type=\"best-sellers\" item_count=\"4\" width=\"1/4\" el_position=\"last\"] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#f7f7f7\" color_row_height=\"content-height\" row_style=\"dark\" bg_image=\"15621\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"60\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_el_class=\"no-shadow\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"0px\" bottom_margin=\"60px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_animated_headline before_text=\"Our customers say were\" animated_strings=\"quick,easy,safe\" animation_type=\"letters_rotate-2\" textstyle=\"impact-text\" textalign=\"center\" textcolor=\"#7eced5\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"45px\" width=\"1/1\" el_position=\"first last\"] [spb_section spb_section_id=\"15611\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"45px\" width=\"1/1\" el_position=\"first last\"] [spb_button button_text=\"More testimonials\" button_size=\"standard\" button_colour=\"accent\" button_type=\"bordered\" rounded=\"yes\" button_dropshadow=\"no\" button_icon=\"sf-icon-read-more\" button_link=\"/pages/about-us-classic/\" button_target=\"_self\" align=\"center\" animation=\"none\" animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [/spb_row]');\n\t\t\n\t\t$prebuilt_templates[\"home-magazine\"] = array(\n\t\t\"id\" => \"home-magazine\",\n\t\t\"name\" => \"Main Demo - Home: Magazine\",\n\t\t\"code\" => '[spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" width=\"2/3\" el_position=\"first\"] [spb_swift_slider fullscreen=\"false\" maxheight=\"504\" slidecount=\"3\" category=\"blog\" transition=\"slide\" loop=\"true\" nav=\"true\" pagination=\"true\" continue=\"false\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer element_name=\"30px Spacer\" height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_blog blog_type=\"masonry\" gutters=\"yes\" columns=\"2\" fullwidth=\"no\" item_count=\"8\" category=\"All\" offset=\"0\" order_by=\"date\" order=\"DESC\" show_title=\"yes\" show_excerpt=\"yes\" show_details=\"yes\" excerpt_length=\"19\" content_output=\"excerpt\" show_read_more=\"yes\" social_integration=\"no\" blog_filter=\"no\" pagination=\"infinite-scroll\" width=\"1/1\" el_position=\"first last\"] [/spb_column] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" width=\"1/3\" el_position=\"last\"] [spb_recent_posts display_type=\"list\" carousel=\"no\" item_columns=\"1\" item_count=\"4\" category=\"All\" offset=\"0\" posts_order=\"DESC\" excerpt_length=\"6\" fullwidth=\"no\" gutters=\"yes\" button_enabled=\"no\" pagination=\"yes\" el_class=\"mb0 pb0\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"thin\" heading_text=\"Follow Us\" text=\"Go to top\" top_margin=\"0px\" bottom_margin=\"30px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_image image=\"15584\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"no\" fullwidth=\"no\" overflow_mode=\"none\" image_link=\"http://uplift.swiftideas.com/purchase\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" el_class=\"mb0 pb0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\t\t[social size=\"large\"]\n\t\t[/spb_text_block] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"0px\" bottom_margin=\"30px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_widget_area sidebar_id=\"sidebar-6\" width=\"1/1\" el_position=\"first last\"] [/spb_column]');\n\t\t\n\t\t$prebuilt_templates[\"home-bold-move\"] = array(\n\t\t\"id\" => \"home-bold-move\",\n\t\t\"name\" => \"Main Demo - Home: Bold Move\",\n\t\t\"code\" => '[spb_blank_spacer height=\"120px\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"1px\" width=\"1/6\" el_position=\"first\"] [spb_animated_headline before_text=\"Were an award-winning company creating solutions for\" animated_strings=\"charities,agencies,churches\" animation_type=\"slide\" textstyle=\"impact-text\" textalign=\"center\" textcolor=\"#7eced5\" width=\"2/3\" el_position=\"last\"] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_button button_text=\"More about us\" button_size=\"standard\" button_colour=\"accent\" button_type=\"bordered\" rounded=\"no\" button_dropshadow=\"no\" button_icon=\"nucleo-icon-users-circle\" button_link=\"/pages/about-us-classic/\" button_target=\"_self\" align=\"center\" animation=\"none\" animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"120px\" width=\"1/1\" el_position=\"first last\"] [spb_portfolio display_type=\"gallery\" multi_size_ratio=\"1/1\" fullwidth=\"no\" gutters=\"yes\" columns=\"3\" show_title=\"yes\" show_subtitle=\"yes\" show_excerpt=\"no\" hover_show_excerpt=\"no\" excerpt_length=\"20\" item_count=\"6\" category=\"All\" order_by=\"date\" order=\"DESC\" portfolio_filter=\"no\" pagination=\"none\" button_enabled=\"no\" el_class=\"pb0 mb0\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_button button_text=\"See more work\" button_size=\"standard\" button_colour=\"accent\" button_type=\"standard\" rounded=\"no\" button_dropshadow=\"no\" button_icon=\"nucleo-icon-eye\" button_link=\"/portfolio/portfolio-multi-size-masonry-alt/\" button_target=\"_self\" align=\"center\" animation=\"none\" animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"120px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"10\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\t\tOur Capabilities\n\t\t\n\t\t[hr]\n\t\t\n\t\t[/spb_text_block] [spb_section element_name=\"icon grid\" spb_section_id=\"15256\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"140px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"10\" simplified_controls=\"yes\" custom_css=\"margin-top: px!important;margin-left: px!important;margin-right: px!important;margin-bottom: px!important;border-top: px default !important;border-left: px default !important;border-right: px default !important;border-bottom: px default !important;padding-top: 0px!important;padding-left: 0px!important;padding-right: 0px!important;padding-bottom: 0px!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\t\tOur Articles\n\t\t\n\t\t[hr]\n\t\t\n\t\t[/spb_text_block] [spb_recent_posts display_type=\"standard\" carousel=\"no\" item_columns=\"3\" item_count=\"3\" category=\"All\" offset=\"0\" posts_order=\"DESC\" excerpt_length=\"23\" fullwidth=\"no\" gutters=\"yes\" button_enabled=\"no\" pagination=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"35px\" width=\"1/1\" el_position=\"first last\"] [spb_button button_text=\"More articles\" button_size=\"standard\" button_colour=\"accent\" button_type=\"standard\" rounded=\"no\" button_dropshadow=\"no\" button_icon=\"sf-icon-text\" button_link=\"/blog/blog-timeline-full-width/\" button_target=\"_self\" align=\"center\" animation=\"none\" animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"110px\" width=\"1/1\" el_position=\"first last\"] [spb_section spb_section_id=\"15534\" width=\"1/1\" el_position=\"first last\"]');\n\t\t\n\t\t$prebuilt_templates[\"home-classic\"] = array(\n\t\t\"id\" => \"home-classic\",\n\t\t\"name\" => \"Main Demo - Home: Classic\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"fff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_section spb_section_id=\"15469\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#f7f7f7\" color_row_height=\"content-height\" row_style=\"dark\" bg_image=\"15201\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_mp4=\"http://swiftideasvideos.s3.amazonaws.com/ronin.mp4\" bg_video_webm=\"http://swiftideasvideos.s3.amazonaws.com/ronin.webm\" bg_video_loop=\"yes\" parallax_video_height=\"content-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"80\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"0px\" bottom_margin=\"60px\" fullwidth=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_section spb_section_id=\"15471\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"60px\" bottom_margin=\"0px\" fullwidth=\"yes\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" row_style=\"dark\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_section element_name=\"Counters x4\" spb_section_id=\"15667\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"0px\" bottom_margin=\"90px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_tabs tabs_type=\"standard\" center_tabs=\"no\" width=\"1/3\" el_position=\"first\"] [spb_tab title=\"ABOUT US\" icon=\"nucleo-icon-eye\" id=\"ABOUTUS\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"0\" width=\"1/1\" el_position=\"first last\"] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam viverra euismod odio, gravida pellentesque urna varius vitae. Sed dui lorem, adipiscing in adipiscing et, interdum nec metus. Mauris ultricies, justo eu convallis placerat, felis enim ornare nisi, vitae mattis nulla ante id dui.\n\t\tLearn more\n\t\t\n\t\t[/spb_text_block] [/spb_tab] [spb_tab title=\"HOW WE WORK\" icon=\"nucleo-icon-laptop\" id=\"HOWWEWORK\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"0\" width=\"1/1\" el_position=\"first last\"] Mauris ultricies, justo eu convallis placerat, felis enim ornare nisi, vitae mattis nulla ante id dui. Ut lectus purus, commodo et tincidunt vel, interdum sed lectus. Vestibulum adipiscing tempor nisi id elementu sadips ipsums dolores uns fugiats gravida nam elit vols nulla dolores amet. [/spb_text_block] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [/spb_tab] [/spb_tabs] [spb_accordion active_section=\"0\" width=\"1/3\"] [spb_accordion_tab title=\"OUR PROCESS\" accordion_id=\"our-process\" icon=\"nucleo-icon-brush\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"0\" width=\"1/1\" el_position=\"first last\"] Etiam venenatis tristique sapien eu fringilla. Ut tincidunt egestas rhoncus. Praesent elementum tempus vehicula. Quisque sed dui sed dui pellentesque dapibus ac sed ipsum. Nullam fringilla dignissim sem, quis sagittis elit condimentum sed. [/spb_text_block] [/spb_accordion_tab] [spb_accordion_tab title=\"OUR SERVICES\" accordion_id=\"our-services\" icon=\"nucleo-icon-laptop\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"0\" width=\"1/1\" el_position=\"first last\"] Nulla fringilla adipiscing libero id bibendum. Nam porttitor bibendum leo non scelerisque. Sed fringilla consectetur massa, ut pretium ipsum laoreet ac. Fusce eu erat vitae massa pharetra tempor. Nulla hendrerit diam non quam imperdiet ut interdum dui scelerisque. Praesent eu libero sit amet ligula luctus congue id quis diam. Aliquam sodales ligula non mi sodales hendrerit. Mauris vitae erat ut magna rutrum malesuada sed vitae ante. Donec ornare, erat sit amet faucibus placerat, quam magna auctor ipsum, sed euismod ligula lacus ac magna. Maecenas imperdiet risus vitae massa cursus sit amet bibendum nibh adipiscing. Etiam at lacus eget nunc convallis vestibulum iaculis vitae metus. [/spb_text_block] [/spb_accordion_tab] [spb_accordion_tab title=\"CASE STUDIES\" accordion_id=\"case-studies\" icon=\"nucleo-icon-piechart\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"0\" width=\"1/1\" el_position=\"first last\"] Pellentesque tellus lacus, pharetra dignissim laoreet in, fringilla nec nisl. Mauris venenatis sapien et arcu consequat venenatis. Phasellus non enim sapien. Aliquam elementum ornare felis, ut tempus magna sagittis eu. Quisque magna odio, suscipit sed eleifend sit amet, pellentesque suscipit enim. Phasellus enim turpis, pharetra nec laoreet id, pellentesque nec metus. Maecenas vestibulum orci et elit adipiscing vitae lacinia arcu malesuada. Donec in augue in massa ullamcorper mattis. Aliquam fringilla placerat neque, non gravida diam sagittis ut. Mauris malesuada urna eget nisi adipiscing mattis. Nunc eleifend tristique interdum. [/spb_text_block] [/spb_accordion_tab] [/spb_accordion] [spb_testimonial_carousel title=\"What people are saying\" item_count=\"6\" order=\"date\" category=\"All\" page_link=\"no\" showcase=\"no\" width=\"1/3\" el_position=\"last\"] [spb_blank_spacer height=\"59px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_section element_name=\"Animated Promo Bar\" spb_section_id=\"15664\" width=\"1/1\" el_position=\"first last\"] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" row_style=\"dark\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"90px\" width=\"1/1\" el_position=\"first last\"] [spb_recent_posts title=\"News & Thoughts\" display_type=\"standard\" carousel=\"yes\" item_columns=\"3\" item_count=\"4\" category=\"All\" offset=\"0\" posts_order=\"DESC\" excerpt_length=\"24\" fullwidth=\"no\" gutters=\"yes\" button_enabled=\"no\" pagination=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"59px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#f7f7f7\" color_row_height=\"content-height\" row_style=\"dark\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"0px\" bottom_margin=\"90px\" fullwidth=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_text_block title=\"One vision, one goal\" animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"4\" width=\"1/3\" el_position=\"first\"] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam viverra euismod odio, gravida pellentesque urna varius vitae. Sed dui lorem, adipiscing in patent taciti sociosqu ad litro torquent per connubio nostra, per inceptos vestibule laoreet interdum pellentesque. Adipiscing et, interdum nec metus. Mauris ultricies, justo eu convallis placerat, felis enim ornare nisi, vitae mattis nulla ante id dui.\n\t\tMore about the team\n\t\t\n\t\t[/spb_text_block] [spb_team title=\"Meet our team\" display_type=\"standard-alt\" carousel=\"yes\" item_columns=\"3\" item_count=\"4\" category=\"All\" profile_link=\"no\" ajax_overlay=\"yes\" pagination=\"no\" fullwidth=\"no\" gutters=\"yes\" order_by=\"none\" order=\"ASC\" width=\"2/3\" el_position=\"last\"] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"60px\" bottom_margin=\"0px\" fullwidth=\"yes\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"full-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_section spb_section_id=\"15399\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_section element_name=\"Animated Promo Bar\" spb_section_id=\"15472\" width=\"1/1\" el_position=\"first last\"]');\n\t\t\n\t\t$prebuilt_templates[\"about-me\"] = array(\n\t\t\"id\" => \"about-me\",\n\t\t\"name\" => \"Main Demo - About Me\",\n\t\t\"code\" => '[spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block title=\"Hello, my name is John\" animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"0\" width=\"1/2\" el_position=\"first\"]\n\t\tLorem ipsum dolor sit amet isse potenti. Vesquam ante aliquet lacusemper elit. Cras neque nulla, convallis non commodo et, euismod nonsese. At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum.\n\t\t\n\t\tVesquam ante aliquet lacusemper elit. Cras neque nulla, convallis non commodo et, euismod nonsese. At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditi praesentium.\n\t\t\n\t\t[/spb_text_block] [spb_text_block title=\"My Skills\" animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"4\" width=\"1/2\" el_position=\"last\"] [progress_bar percentage=\"100\" name=\"Illustrator\" value=\"100\" type=\"\" colour=\"#00acc1\"] [progress_bar percentage=\"80\" name=\"Photoshop\" value=\"80\" type=\"\" colour=\"#0097a7\"] [progress_bar percentage=\"70\" name=\"After Effects\" value=\"70\" type=\"\" colour=\"#00838f\"] [progress_bar percentage=\"100\" name=\"Aperture\" value=\"100\" type=\"\" colour=\"#00897b\"] [progress_bar percentage=\"100\" name=\"InDesign\" value=\"100\" type=\"\" colour=\"#546e7a\"] [/spb_text_block] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"30px\" bottom_margin=\"60px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_accordion widget_title=\"My Experience\" width=\"1/2\" el_position=\"first\"] [spb_accordion_tab title=\"CREATIVE DIRECTOR\" accordion_id=\"creative-director\" icon=\"\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"0\" width=\"1/1\" el_position=\"first last\"] Vesquam ante aliquet lacusemper elit. Cras neque nulla, convallis non commodo et, euismod nonsese. At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum. [/spb_text_block] [/spb_accordion_tab] [spb_accordion_tab title=\"ART DIRECTOR\" accordion_id=\"art-director\" icon=\"\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"0\" width=\"1/1\" el_position=\"first last\"] Lorem ipsum dolor sit amet isse potenti. Vesquam ante aliquet lacusemper elit. Cras neque nulla, convallis non commodo et, euismod nonsese. At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum. [/spb_text_block] [/spb_accordion_tab] [spb_accordion_tab title=\"LEAD DESIGNER\" accordion_id=\"designer\" icon=\"\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"0\" width=\"1/1\" el_position=\"first last\"] Lorem ipsum dolor sit amet isse potenti. Vesquam ante aliquet lacusemper elit. Cras neque nulla, convallis non commodo et, euismod nonsese. At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum. [/spb_text_block] [/spb_accordion_tab] [spb_accordion_tab title=\"DESIGNER\" accordion_id=\"designer-1\" icon=\"\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"0\" width=\"1/1\" el_position=\"first last\"] Lorem ipsum dolor sit amet isse potenti. Vesquam ante aliquet lacusemper elit. Cras neque nulla, convallis non commodo et, euismod nonsese. At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum. [/spb_text_block] [/spb_accordion_tab] [spb_accordion_tab title=\"INTERNSHIP\" accordion_id=\"internship\" icon=\"\"] [/spb_accordion_tab] [/spb_accordion] [spb_clients title=\"Selected Clients\" item_count=\"6\" item_columns=\"3\" category=\"All\" carousel=\"no\" pagination=\"no\" width=\"1/2\" el_position=\"last\"] [spb_blank_spacer height=\"40px\" width=\"1/1\" el_position=\"first last\"] [spb_section spb_section_id=\"15236\" width=\"1/1\" el_position=\"first last\"]');\n\t\t\n\t\t$prebuilt_templates[\"maintenance-mode\"] = array(\n\t\t\"id\" => \"maintenance-mode\",\n\t\t\"name\" => \"Main Demo - Maintenance Mode\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#f7f7f7\" color_row_height=\"window-height\" bg_type=\"cover\" parallax_image_height=\"window-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_el_class=\"no-shadow\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"1px\" width=\"1/4\" el_position=\"first\"] [spb_text_block animation=\"fadeInUp\" animation_delay=\"400\" padding_vertical=\"0\" padding_horizontal=\"4\" width=\"1/2\"] uplift_logo_admin\n\t\tOur site is currently undergoing scheduled maintenance. Well be back shortly...\n\t\tIn the meantime, drop us a line help@uplift.com\n\t\t\n\t\t[/spb_text_block] [spb_blank_spacer height=\"1px\" width=\"1/4\" el_position=\"last\"] [/spb_row]');\n\t\t\n\t\t$prebuilt_templates[\"coming-soon\"] = array(\n\t\t\"id\" => \"coming-soon\",\n\t\t\"name\" => \"Main Demo - Coming Soon\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#f7f7f7\" color_row_height=\"window-height\" bg_type=\"cover\" parallax_image_height=\"window-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_el_class=\"no-shadow\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"1px\" width=\"1/4\" el_position=\"first\"] [spb_text_block animation=\"fadeInUp\" animation_delay=\"400\" padding_vertical=\"0\" padding_horizontal=\"4\" width=\"1/2\"] uplift_logo_admin\n\t\tOur new site is coming soon.\n\t\t[hr]\n\t\t[sf_countdown year=\"2017\" month=\"1\" day=\"1\" fontsize=\"small\" displaytext=\"\"]\n\t\t\n\t\t[hr]\n\t\t\n\t\tIn the meantime, drop us a line help@uplift.com\n\t\t\n\t\t[/spb_text_block] [spb_blank_spacer height=\"1px\" width=\"1/4\" el_position=\"last\"] [/spb_row]');\n\t\t\n\t\t$prebuilt_templates[\"pricing\"] = array(\n\t\t\"id\" => \"pricing\",\n\t\t\"name\" => \"Main Demo - Pricing\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"content-width\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" vertical_center=\"true\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [spb_pricing_table columns=\"3\" width=\"1/1\" el_position=\"first last\"] [spb_pricing_column name=\"Starter Package\" highlight_column=\"no\" price=\"$200\" period=\"/MO\" btn_text=\"Purchase Plan\" href=\"#\" target=\"_self\" el_class=\"\" ][spb_pricing_column_feature feature_name=\"50GB Storage Space\" el_class=\"\"] [/spb_pricing_column_feature][spb_pricing_column_feature feature_name=\"1 User License\" el_class=\"\"] [/spb_pricing_column_feature][spb_pricing_column_feature feature_name=\"3 Email Accounts\" el_class=\"\"] [/spb_pricing_column_feature][spb_pricing_column_feature feature_name=\"5 Domain Names\" el_class=\"\"] [/spb_pricing_column_feature][spb_pricing_column_feature feature_name=\"Unlimited Bandwidth\" el_class=\"\"] [/spb_pricing_column_feature][spb_pricing_column_feature feature_name=\"24/7 Support\" el_class=\"\"] [/spb_pricing_column_feature][/spb_pricing_column][spb_pricing_column name=\"Team Package\" highlight_column=\"yes\" price=\"$300\" period=\"/MO\" btn_text=\"Purchase Plan\" href=\"#\" target=\"_self\" el_class=\"\" ][spb_pricing_column_feature feature_name=\"100GB Storage Space\" el_class=\"\"] [/spb_pricing_column_feature][spb_pricing_column_feature feature_name=\"5 User Licenses\" el_class=\"\"] [/spb_pricing_column_feature][spb_pricing_column_feature feature_name=\"10 Email Accounts\" el_class=\"\"] [/spb_pricing_column_feature][spb_pricing_column_feature feature_name=\"10 Domain Names\" el_class=\"\"] [/spb_pricing_column_feature][spb_pricing_column_feature feature_name=\"Unlimited Bandwidth\" el_class=\"\"] [/spb_pricing_column_feature][spb_pricing_column_feature feature_name=\"24/7 Support\" el_class=\"\"] [/spb_pricing_column_feature][/spb_pricing_column][spb_pricing_column name=\"Premium Package\" highlight_column=\"no\" price=\"$400\" period=\"/MO\" btn_text=\"Purchase Plan\" href=\"#\" target=\"_self\" el_class=\"\" ][spb_pricing_column_feature feature_name=\"200GB Storage Space\" el_class=\"\"] [/spb_pricing_column_feature][spb_pricing_column_feature feature_name=\"10 User Licenses\" el_class=\"\"] [/spb_pricing_column_feature][spb_pricing_column_feature feature_name=\"Unlimited Email Accounts\" el_class=\"\"] [/spb_pricing_column_feature][spb_pricing_column_feature feature_name=\"Unlimited Domain Names\" el_class=\"\"] [/spb_pricing_column_feature][spb_pricing_column_feature feature_name=\"Unlimited Bandwidth\" el_class=\"\"] [/spb_pricing_column_feature][spb_pricing_column_feature feature_name=\"24/7 Support\" el_class=\"\"] [/spb_pricing_column_feature][/spb_pricing_column] [/spb_pricing_table] [/spb_row] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"30px\" bottom_margin=\"0px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_row element_name=\"FAQs Row\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"2\" padding_horizontal=\"0\" width=\"1/1\" el_position=\"first last\"]\n\t\tFrequently asked questions\n\t\t[/spb_text_block] [spb_icon_box title=\"Am I going to be tied into a contract?\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"business-color_cheque\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/2\" el_position=\"first\"]\n\t\tLorem ipsum dolor sit amet, consectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed.\n\t\t\n\t\t[/spb_icon_box] [spb_icon_box title=\"How can I claim my free hat?\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"media-color-1_kid\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/2\" el_position=\"last\"]\n\t\tLorem ipsum dolor sit amet, consectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed.\n\t\t\n\t\t[/spb_icon_box] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box title=\"Where do I sign up?\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"ui-color-2_favourite-28\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/2\" el_position=\"first\"]\n\t\tLorem ipsum dolor sit amet, consectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed.\n\t\t\n\t\t[/spb_icon_box] [spb_icon_box title=\"Can I upgrade later?\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"arrows-color-2_file-upload-86\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/2\" el_position=\"last\"]\n\t\tLorem ipsum dolor sit amet, consectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed.\n\t\t\n\t\t[/spb_icon_box] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box title=\"How long does it last?\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"ui-color-2_hourglass\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/2\" el_position=\"first\"]\n\t\tLorem ipsum dolor sit amet, consectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed.\n\t\t\n\t\t[/spb_icon_box] [spb_icon_box title=\"Do I have to pay now?\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"business-color_payment\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/2\" el_position=\"last\"]\n\t\tLorem ipsum dolor sit amet, consectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed.\n\t\t\n\t\t[/spb_icon_box] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box title=\"How do I cancel my agreement?\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"business-color_award-49\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/2\" el_position=\"first\"]\n\t\tLorem ipsum dolor sit amet, consectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed.\n\t\t\n\t\t[/spb_icon_box] [spb_icon_box title=\"Can I sign up others?\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"users-color_parent\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/2\" el_position=\"last\"]\n\t\tLorem ipsum dolor sit amet, consectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed.\n\t\t\n\t\t[/spb_icon_box] [/spb_row] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_section spb_section_id=\"15472\" width=\"1/1\" el_position=\"first last\"]');\n\t\t\n\t\t$prebuilt_templates[\"contact-alt\"] = array(\n\t\t\"id\" => \"contact-alt\",\n\t\t\"name\" => \"Main Demo - Contact: Modern\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#f7f7f7\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"20\" padding_horizontal=\"0\" width=\"1/3\" el_position=\"first\"]\n\t\tProject Enquiries\n\t\tCall: +44 (0) 800 123 4568 Email: projects@uplift.com\n\t\t\n\t\t[/spb_text_block] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"20\" padding_horizontal=\"0\" width=\"1/3\"]\n\t\tGeneral Enquiries\n\t\tCall: +44 (0) 800 123 4567 Email: info@uplift.com\n\t\t\n\t\t[/spb_text_block] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"20\" padding_horizontal=\"0\" width=\"1/3\" el_position=\"last\"]\n\t\tStay Social\n\t\t[social size=\"large\"]\n\t\t[/spb_text_block] [/spb_row] [spb_gmaps size=\"600\" type=\"roadmap\" zoom=\"14\" map_controls=\"yes\" advanced_styling=\"yes\" style_array=\"JTVCJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJhbGwlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmxhYmVscy50ZXh0LmZpbGwlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc2F0dXJhdGlvbiUyMiUzQSUyMDM2JTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyY29sb3IlMjIlM0ElMjAlMjIlMjMzMzMzMzMlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJsaWdodG5lc3MlMjIlM0ElMjA0MCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMmFsbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzLnRleHQuc3Ryb2tlJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb2xvciUyMiUzQSUyMCUyMiUyM2ZmZmZmZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxpZ2h0bmVzcyUyMiUzQSUyMDE2JTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJhbGwlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmxhYmVscy5pY29uJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMmFkbWluaXN0cmF0aXZlJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJnZW9tZXRyeSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ2aXNpYmlsaXR5JTIyJTNBJTIwJTIyb2ZmJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJhZG1pbmlzdHJhdGl2ZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIyZ2VvbWV0cnkuZmlsbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb2xvciUyMiUzQSUyMCUyMiUyM2ZmZmZmZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxpZ2h0bmVzcyUyMiUzQSUyMDIwJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIyYWRtaW5pc3RyYXRpdmUlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmdlb21ldHJ5LnN0cm9rZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb2xvciUyMiUzQSUyMCUyMiUyM2ZlZmVmZSUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxpZ2h0bmVzcyUyMiUzQSUyMDE3JTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyd2VpZ2h0JTIyJTNBJTIwMS4yJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIyYWRtaW5pc3RyYXRpdmUlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmxhYmVscyUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ2aXNpYmlsaXR5JTIyJTNBJTIwJTIyb2ZmJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJsYW5kc2NhcGUlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmdlb21ldHJ5JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmNvbG9yJTIyJTNBJTIwJTIyJTIzZjdmN2Y3JTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIybGlnaHRuZXNzJTIyJTNBJTIwMjAlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMmxhbmRzY2FwZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMmxhbmRzY2FwZS5tYW5fbWFkZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMmxhbmRzY2FwZS5uYXR1cmFsJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJsYWJlbHMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycG9pJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJnZW9tZXRyeSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb2xvciUyMiUzQSUyMCUyMiUyM2Y3ZjdmNyUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxpZ2h0bmVzcyUyMiUzQSUyMDIxJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJwb2klMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmxhYmVscyUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ2aXNpYmlsaXR5JTIyJTNBJTIwJTIyb2ZmJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJwb2kucGFyayUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIyZ2VvbWV0cnklMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyY29sb3IlMjIlM0ElMjAlMjIlMjNkZWRlZGUlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJsaWdodG5lc3MlMjIlM0ElMjAyMSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMnBvaS5wYXJrJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJsYWJlbHMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5oaWdod2F5JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJnZW9tZXRyeS5maWxsJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmNvbG9yJTIyJTNBJTIwJTIyJTIzZWNlZmYxJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIybGlnaHRuZXNzJTIyJTNBJTIwMTclMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ2aXNpYmlsaXR5JTIyJTNBJTIwJTIyb2ZmJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJyb2FkLmhpZ2h3YXklMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmdlb21ldHJ5LnN0cm9rZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb2xvciUyMiUzQSUyMCUyMiUyM2ZmZmZmZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxpZ2h0bmVzcyUyMiUzQSUyMDI5JTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyd2VpZ2h0JTIyJTNBJTIwMC4yJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5oaWdod2F5JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJsYWJlbHMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5hcnRlcmlhbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIyZ2VvbWV0cnklMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyY29sb3IlMjIlM0ElMjAlMjIlMjNlY2VmZjElMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJsaWdodG5lc3MlMjIlM0ElMjAxOCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvbiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5hcnRlcmlhbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMnJvYWQuYXJ0ZXJpYWwlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmxhYmVscy50ZXh0JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvbiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmh1ZSUyMiUzQSUyMCUyMiUyM2ZmMDAwMCUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5sb2NhbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIyZ2VvbWV0cnklMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyY29sb3IlMjIlM0ElMjAlMjIlMjNlY2VmZjElMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJsaWdodG5lc3MlMjIlM0ElMjAxNiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5sb2NhbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMnRyYW5zaXQlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmdlb21ldHJ5JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmNvbG9yJTIyJTNBJTIwJTIyJTIzZjJmMmYyJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIybGlnaHRuZXNzJTIyJTNBJTIwMTklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ2aXNpYmlsaXR5JTIyJTNBJTIwJTIyb2ZmJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJ0cmFuc2l0JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJsYWJlbHMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIydHJhbnNpdC5zdGF0aW9uJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJsYWJlbHMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIyd2F0ZXIlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmdlb21ldHJ5JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmNvbG9yJTIyJTNBJTIwJTIyJTIzMjZjNmRhJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIybGlnaHRuZXNzJTIyJTNBJTIwMTclMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ3ZWlnaHQlMjIlM0ElMjAlMjIxJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJ3YXRlciUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMEElNUQ=\" saturation=\"color\" fullscreen=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_map_pin pin_title=\"Our Office\" address=\"New York\" pin_latitude=\"40.7127837\" pin_longitude=\"-74.00594130000002\" pin_image=\"15385\" pin_button_text=\"Our Office\" width=\"1/1\" el_position=\"first last\"]\n\t\tNo.1 Abbey Road, London, W1 ECH UK\n\t\t\n\t\tCall: +44 (0) 800 123 4567 Email: info@swiftideas.net\n\t\t\n\t\t[/spb_map_pin] [/spb_gmaps]');\n\t\t\n\t\t\n\t\t$prebuilt_templates[\"about-us-classic\"] = array(\n\t\t\"id\" => \"about-us-classic\",\n\t\t\"name\" => \"Main Demo - About Us: Classic\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [spb_image image=\"14052\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"no\" fullwidth=\"no\" link_target=\"_self\" lightbox=\"yes\" intro_animation=\"none\" animation_delay=\"800\" width=\"1/2\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"200\" padding_vertical=\"0\" padding_horizontal=\"6\" el_class=\"pb0\" width=\"1/2\" el_position=\"last\"]\n\t\tHello, we are Uplift... and we make nice things.\n\t\t\n\t\tLorem ipsum dolor sit amet isse potenti. Vesquam ante aliquet lacusemper elit. Cras neque nulla, convallis non commodo et, euismod nonsese. At vero eos et accus amus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non.\n\t\t\n\t\tLearn more\n\t\t\n\t\t[/spb_text_block] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"30px\" bottom_margin=\"30px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box title=\"File Management\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"arrows-color-2_file-upload-86\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" text_color=\"#444444\" bg_color=\"#ffffff\" animated_box_style=\"stroke\" animated_box_rounded=\"yes\" width=\"1/3\" el_position=\"first\"] Vestibule corvallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt arcu mattis diam, in scelerisque purus. [/spb_icon_box] [spb_icon_box title=\"Presentations\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"business-color_board-29\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" text_color=\"#444444\" bg_color=\"#ffffff\" animated_box_style=\"stroke\" animated_box_rounded=\"yes\" width=\"1/3\"] Vestibule corvallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt arcu mattis diam, in scelerisque purus. [/spb_icon_box] [spb_icon_box title=\"Human Resources\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"business-color_business-contact-85\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" text_color=\"#444444\" bg_color=\"#ffffff\" animated_box_style=\"stroke\" animated_box_rounded=\"yes\" width=\"1/3\" el_position=\"last\"] Vestibule corvallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt arcu mattis diam, in scelerisque purus. [/spb_icon_box] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box title=\"Marketing & Strategy\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"business-color_goal-64\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" text_color=\"#444444\" bg_color=\"#ffffff\" animated_box_style=\"stroke\" animated_box_rounded=\"yes\" width=\"1/3\" el_position=\"first\"] Vestibule corvallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt arcu mattis diam, in scelerisque purus. [/spb_icon_box] [spb_icon_box title=\"Future Planning\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"location-color_map-pin\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" text_color=\"#444444\" bg_color=\"#ffffff\" animated_box_style=\"stroke\" animated_box_rounded=\"yes\" width=\"1/3\"] Vestibule corvallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt arcu mattis diam, in scelerisque purus. [/spb_icon_box] [spb_icon_box title=\"Copywriting\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"business-color_award-49\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" text_color=\"#444444\" bg_color=\"#ffffff\" animated_box_style=\"stroke\" animated_box_rounded=\"yes\" width=\"1/3\" el_position=\"last\"] Vestibule corvallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt arcu mattis diam, in scelerisque purus. [/spb_icon_box] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#f7f7f7\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"0px\" bottom_margin=\"60px\" fullwidth=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_counter subject=\"Employees\" from=\"0\" to=\"45\" speed=\"2000\" refresh=\"25\" commas=\"true\" textstyle=\"h6\" textcolor=\"#7eced5\" icon=\"nucleo-icon-team\" width=\"1/4\" el_position=\"first\"] [spb_counter subject=\"Page Views\" from=\"0\" to=\"500\" speed=\"2000\" refresh=\"25\" suffix=\"k\" commas=\"true\" textstyle=\"h6\" textcolor=\"#61aab0\" icon=\"nucleo-icon-eye\" width=\"1/4\"] [spb_counter subject=\"Monthly revenue\" from=\"0\" to=\"90\" speed=\"2000\" refresh=\"25\" prefix=\"$\" suffix=\"k\" commas=\"true\" textstyle=\"h6\" textcolor=\"#90a4ae\" icon=\"fa-credit-card-alt\" width=\"1/4\"] [spb_counter subject=\"Offices Globally\" from=\"0\" to=\"12\" speed=\"2000\" refresh=\"25\" commas=\"true\" textstyle=\"h6\" textcolor=\"#78909c\" icon=\"fa-globe\" width=\"1/4\" el_position=\"last\"] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"50px\" bottom_margin=\"0px\" fullwidth=\"yes\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [spb_team title=\"Our Leadership Team\" display_type=\"standard\" carousel=\"yes\" item_columns=\"3\" item_count=\"6\" category=\"All\" profile_link=\"yes\" ajax_overlay=\"yes\" pagination=\"no\" fullwidth=\"no\" gutters=\"yes\" order_by=\"none\" order=\"DESC\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"40px\" bottom_margin=\"60px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blog_grid title=\"Follow us @uplift\" item_count=\"2\" twitter_username=\"swiftideas\" instagram_id=\"1193751843\" instagram_token=\"1193751843.5b9e1e6.c8c5c0a5df0e4d5687e389f24adb8643\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_section spb_section_id=\"15472\" width=\"1/1\" el_position=\"first last\"]');\n\t\t\n\t\t$prebuilt_templates[\"about-us\"] = array(\n\t\t\"id\" => \"about-us\",\n\t\t\"name\" => \"Main Demo - About Us Extended\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"image\" row_bg_color=\"#37474f\" color_row_height=\"content-height\" bg_image=\"14052\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_mp4=\"http://swiftideasvideos.s3.amazonaws.com/agency_work.mp4\" bg_video_webm=\"http://swiftideasvideos.s3.amazonaws.com/agency_work.webmhd.webm\" bg_video_loop=\"yes\" parallax_video_height=\"content-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"80\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"fadeIn\" row_animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"90px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"600\" padding_vertical=\"20\" padding_horizontal=\"0\" el_class=\"pb0\" width=\"1/1\" el_position=\"first last\"]\n\t\tHello, we are Uplift & we make nice things.\n\t\t\n\t\t[/spb_text_block] [spb_blank_spacer height=\"90px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"1px\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"1px\" width=\"1/6\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"200\" padding_vertical=\"12\" padding_horizontal=\"0\" el_class=\"pb0\" width=\"2/3\"]\n\t\tWelcome to uplift,\n\t\t\n\t\tLorem ipsum dolor sit amet, consectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Maecenas ultrices viverra ligula, vel lobortis ante pulvinar sed deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum.\n\t\t\n\t\tLearn more\n\t\t\n\t\t[/spb_text_block] [spb_blank_spacer height=\"1px\" width=\"1/6\" el_position=\"last\"] [spb_blank_spacer height=\"1px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"full-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [spb_image image=\"15251\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" link_target=\"_self\" lightbox=\"yes\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/2\" el_position=\"first\"] [spb_image image=\"15249\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" link_target=\"_self\" lightbox=\"yes\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/2\" el_position=\"last\"] [spb_image image=\"15250\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" link_target=\"_self\" lightbox=\"yes\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/2\" el_position=\"first\"] [spb_image image=\"15248\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" link_target=\"_self\" lightbox=\"yes\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/2\" el_position=\"last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"200\" padding_vertical=\"4\" padding_horizontal=\"0\" el_class=\"pb0\" width=\"1/1\" el_position=\"first last\"]\n\t\tWhat We Do\n\t\t\n\t\t[/spb_text_block] [spb_section spb_section_id=\"15257\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"90px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"0px\" bottom_margin=\"10px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_row element_name=\"Core Values Row\" wrap_type=\"full-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"80\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer element_name=\"Core Values Row\" height=\"1px\" width=\"1/4\" el_position=\"first\"] [spb_text_block element_name=\"Core Values Row\" animation=\"none\" animation_delay=\"200\" padding_vertical=\"6\" padding_horizontal=\"0\" el_class=\"pb0\" width=\"1/2\"]\n\t\tOur Core Values\n\t\t\n\t\t[/spb_text_block] [spb_blank_spacer element_name=\"Core Values Row\" height=\"1px\" width=\"1/4\" el_position=\"last\"] [spb_blank_spacer element_name=\"Core Values Row\" height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_section element_name=\"Core Values Row\" spb_section_id=\"15399\" el_class=\"pb0 mb0\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Video Row\" wrap_type=\"content-width\" row_bg_type=\"video\" row_bg_color=\"#406b6f\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_mp4=\"http://swiftideasvideos.s3.amazonaws.com/agency_work.mp4\" bg_video_webm=\"http://swiftideasvideos.s3.amazonaws.com/agency_work.webmhd.webm\" bg_video_loop=\"yes\" parallax_video_height=\"content-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"60\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"1px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"200\" padding_vertical=\"20\" padding_horizontal=\"0\" el_class=\"pb0\" width=\"1/1\" el_position=\"first last\"]\n\t\tA Day In The Life\n\t\t\n\t\t[sf_fullscreenvideo type=\"icon-button\" btntext=\"\" imageurl=\"#\" videourl=\"\" extraclass=\"\"]\n\t\t\n\t\t[/spb_text_block] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_clients item_count=\"5\" item_columns=\"5\" category=\"All\" carousel=\"no\" pagination=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#f7f7f7\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"team\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"10px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"200\" padding_vertical=\"6\" padding_horizontal=\"0\" el_class=\"pb0\" width=\"1/1\" el_position=\"first last\"]\n\t\tMeet the Team\n\t\t\n\t\t[/spb_text_block] [spb_team display_type=\"standard-alt\" carousel=\"no\" item_columns=\"3\" item_count=\"6\" category=\"All\" profile_link=\"no\" ajax_overlay=\"no\" pagination=\"no\" fullwidth=\"no\" gutters=\"yes\" order_by=\"none\" order=\"DESC\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#263238\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"team\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_blog_grid item_count=\"1\" instagram_id=\"1193751843\" instagram_token=\"1193751843.5b9e1e6.c8c5c0a5df0e4d5687e389f24adb8643\" fullwidth=\"yes\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_section spb_section_id=\"15534\" width=\"1/1\" el_position=\"first last\"]');\n\t\t\n\t\t$prebuilt_templates[\"pages\"] = array(\n\t\t\"id\" => \"pages\",\n\t\t\"name\" => \"Main Demo - Pages\",\n\t\t\"code\" => '');\n\t\t\n\t\t$prebuilt_templates[\"home\"] = array(\n\t\t\"id\" => \"home\",\n\t\t\"name\" => \"Main Demo - Home\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" simplified_controls=\"no\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box_grid columns=\"3\" colour_style=\"dark\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box_grid_element title=\"Simple, Easy-To-Use and Intuitive\" target=\"\" link=\"#\" icon=\"svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item outline-svg emoticons-outline_like\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"Engineered for Accelerated Performance\" target=\"\" link=\"\" icon=\"svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item outline-svg sport-outline_user-run\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"Extensive Options Providing Flexibility\" target=\"\" link=\"\" icon=\"svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item outline-svg ui-1_preferences-circle\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"Fully Responsive and Device Agnostic\" target=\"\" link=\"\" icon=\"svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item outline-svg design-outline_tablet-mobile\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"Beautiful and Intelligent Design\" target=\"\" link=\"\" icon=\"svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item outline-svg health-outline_brain\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"Professional Support and Maintenance\" target=\"\" link=\"\" icon=\"svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item outline-svg objects-outline_support-17\"][/spb_icon_box_grid_element] [/spb_icon_box_grid] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"image\" row_bg_color=\"#222222\" color_row_height=\"content-height\" row_style=\"light\" bg_image=\"14826\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"90\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" simplified_controls=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [spb_portfolio_showcase title=\"Selected Projects\" category=\"All\" item_count=\"12\" pagination=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"40px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_section spb_section_id=\"15472\" width=\"1/1\" el_position=\"first last\"] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_image=\"15251\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" simplified_controls=\"no\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 5%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 20%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_section spb_section_id=\"15469\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"60px\" bottom_margin=\"30px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"no\" custom_css=\"margin-top: -260px!important;margin-left: 0px!important;margin-right: 0px!important;margin-bottom: 0px!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0px!important;padding-left: 15px!important;padding-right: 15px!important;padding-bottom: 0px!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_team title=\"Meet our team\" display_type=\"standard-alt\" carousel=\"yes\" item_columns=\"3\" item_count=\"4\" category=\"All\" profile_link=\"no\" ajax_overlay=\"yes\" pagination=\"no\" fullwidth=\"no\" gutters=\"yes\" order_by=\"date\" order=\"DESC\" width=\"1/1\" el_position=\"first last\"] [/spb_column] [spb_row element_name=\"Row\" wrap_type=\"content-width\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" vertical_center=\"true\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"heading\" heading_text=\"What people are saying\" text=\"Go to top\" top_margin=\"20px\" bottom_margin=\"60px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_section spb_section_id=\"15611\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [/spb_row]');\n\t\t\n\t\t$prebuilt_templates[\"contact\"] = array(\n\t\t\"id\" => \"contact\",\n\t\t\"name\" => \"Main Demo - Contact: Classic\",\n\t\t\"code\" => '[spb_gmaps size=\"500\" type=\"roadmap\" zoom=\"14\" \n\t\tmap_controls=\"yes\" advanced_styling=\"yes\" style_array=\"JTVCJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJhbGwlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmxhYmVscy50ZXh0LmZpbGwlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc2F0dXJhdGlvbiUyMiUzQSUyMDM2JTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyY29sb3IlMjIlM0ElMjAlMjIlMjMzMzMzMzMlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJsaWdodG5lc3MlMjIlM0ElMjA0MCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMmFsbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzLnRleHQuc3Ryb2tlJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb2xvciUyMiUzQSUyMCUyMiUyM2ZmZmZmZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxpZ2h0bmVzcyUyMiUzQSUyMDE2JTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJhbGwlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmxhYmVscy5pY29uJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMmFkbWluaXN0cmF0aXZlJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJnZW9tZXRyeSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ2aXNpYmlsaXR5JTIyJTNBJTIwJTIyb2ZmJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJhZG1pbmlzdHJhdGl2ZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIyZ2VvbWV0cnkuZmlsbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb2xvciUyMiUzQSUyMCUyMiUyM2ZmZmZmZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxpZ2h0bmVzcyUyMiUzQSUyMDIwJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIyYWRtaW5pc3RyYXRpdmUlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmdlb21ldHJ5LnN0cm9rZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb2xvciUyMiUzQSUyMCUyMiUyM2ZlZmVmZSUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxpZ2h0bmVzcyUyMiUzQSUyMDE3JTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyd2VpZ2h0JTIyJTNBJTIwMS4yJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIyYWRtaW5pc3RyYXRpdmUlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmxhYmVscyUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ2aXNpYmlsaXR5JTIyJTNBJTIwJTIyb2ZmJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJsYW5kc2NhcGUlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmdlb21ldHJ5JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmNvbG9yJTIyJTNBJTIwJTIyJTIzZjdmN2Y3JTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIybGlnaHRuZXNzJTIyJTNBJTIwMjAlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMmxhbmRzY2FwZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMmxhbmRzY2FwZS5tYW5fbWFkZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMmxhbmRzY2FwZS5uYXR1cmFsJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJsYWJlbHMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycG9pJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJnZW9tZXRyeSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb2xvciUyMiUzQSUyMCUyMiUyM2Y3ZjdmNyUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxpZ2h0bmVzcyUyMiUzQSUyMDIxJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJwb2klMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmxhYmVscyUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ2aXNpYmlsaXR5JTIyJTNBJTIwJTIyb2ZmJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJwb2kucGFyayUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIyZ2VvbWV0cnklMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyY29sb3IlMjIlM0ElMjAlMjIlMjNkZWRlZGUlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJsaWdodG5lc3MlMjIlM0ElMjAyMSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMnBvaS5wYXJrJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJsYWJlbHMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5oaWdod2F5JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJnZW9tZXRyeS5maWxsJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmNvbG9yJTIyJTNBJTIwJTIyJTIzZWNlZmYxJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIybGlnaHRuZXNzJTIyJTNBJTIwMTclMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ2aXNpYmlsaXR5JTIyJTNBJTIwJTIyb2ZmJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJyb2FkLmhpZ2h3YXklMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmdlb21ldHJ5LnN0cm9rZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb2xvciUyMiUzQSUyMCUyMiUyM2ZmZmZmZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxpZ2h0bmVzcyUyMiUzQSUyMDI5JTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyd2VpZ2h0JTIyJTNBJTIwMC4yJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5oaWdod2F5JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJsYWJlbHMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5hcnRlcmlhbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIyZ2VvbWV0cnklMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyY29sb3IlMjIlM0ElMjAlMjIlMjNlY2VmZjElMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJsaWdodG5lc3MlMjIlM0ElMjAxOCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvbiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5hcnRlcmlhbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMnJvYWQuYXJ0ZXJpYWwlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmxhYmVscy50ZXh0JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvbiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmh1ZSUyMiUzQSUyMCUyMiUyM2ZmMDAwMCUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5sb2NhbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIyZ2VvbWV0cnklMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyY29sb3IlMjIlM0ElMjAlMjIlMjNlY2VmZjElMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJsaWdodG5lc3MlMjIlM0ElMjAxNiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5sb2NhbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMnRyYW5zaXQlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmdlb21ldHJ5JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmNvbG9yJTIyJTNBJTIwJTIyJTIzZjJmMmYyJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIybGlnaHRuZXNzJTIyJTNBJTIwMTklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ2aXNpYmlsaXR5JTIyJTNBJTIwJTIyb2ZmJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJ0cmFuc2l0JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJsYWJlbHMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIydHJhbnNpdC5zdGF0aW9uJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJsYWJlbHMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIyd2F0ZXIlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmdlb21ldHJ5JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmNvbG9yJTIyJTNBJTIwJTIyJTIzMjZjNmRhJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIybGlnaHRuZXNzJTIyJTNBJTIwMTclMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ3ZWlnaHQlMjIlM0ElMjAlMjIxJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJ3YXRlciUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMEElNUQ=\" saturation=\"color\" fullscreen=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_map_pin pin_title=\"Our Office\" address=\"New York\" pin_latitude=\"40.7127837\" pin_longitude=\"-74.00594130000002\" pin_image=\"15385\" pin_button_text=\"Our Office\" width=\"1/1\" el_position=\"first last\"]\n\t\tNo.1 Abbey Road, London, W1 ECH UK\n\t\t\n\t\tCall: +44 (0) 800 123 4567 Email: info@swiftideas.net\n\t\t\n\t\t[/spb_map_pin] [/spb_gmaps] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"0\" width=\"1/2\" el_position=\"first\"] [contact-form-7 id=\"15387\" title=\"Contact form 1\"] [/spb_text_block] [spb_column width=\"1/4\"] [spb_text_block title=\"Information\" animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"0\" width=\"1/1\" el_position=\"first last\"] Lorem ipsum dolor sit amet isse potenti. Vesquam ante aliquet lacusemper elit. Cras neque nulla. [/spb_text_block] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block title=\"Follow us @uplift\" animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"0\" width=\"1/1\" el_position=\"first last\"] [social] [/spb_text_block] [/spb_column] [spb_column width=\"1/4\" el_position=\"last\"] [spb_text_block title=\"Our Address\" animation=\"none\" animation_delay=\"0\" padding_vertical=\"0\" padding_horizontal=\"0\" width=\"1/1\" el_position=\"first last\"] No.1 Abbey Road, London, W1 ECH UK Call: +44 (0) 800 123 4567 Email: info@swiftideas.net [/spb_text_block] [/spb_column]');\n\t\t\n\t\t$prebuilt_templates[\"services-classic\"] = array(\n\t\t\"id\" => \"services-classic\",\n\t\t\"name\" => \"Main Demo - Services: Classic\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"25px\" width=\"1/1\" el_position=\"first last\"] [spb_column width=\"1/3\" el_position=\"first\"] [spb_animated_headline before_text=\"Were an award-winning company elegant creating solutions for\" animated_strings=\"charities,agencies,governments\" animation_type=\"slide\" textstyle=\"h1\" textalign=\"left\" textcolor=\"#7eced5\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\t\tLorem ipsum dolor sit met, consectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim. Mecenas ultraces viverra ligula, vel lobortis ante decore tamquam pulvinar sed iaculis trirtique nis.\n\t\t\n\t\tSee our case studies\n\t\t\n\t\t[/spb_text_block] [/spb_column] [spb_gallery gallery_id=\"15080\" display_type=\"slider\" columns=\"5\" fullwidth=\"no\" gutters=\"yes\" image_size=\"full\" slider_transition=\"slide\" show_thumbs=\"no\" autoplay=\"no\" show_captions=\"no\" enable_lightbox=\"no\" width=\"2/3\" el_position=\"last\"] [spb_blank_spacer height=\"35px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_divider type=\"heading\" heading_text=\"Services we offer\" text=\"Go to top\" top_margin=\"0px\" bottom_margin=\"60px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_section spb_section_id=\"15257\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"90px\" width=\"1/1\" el_position=\"first last\"] [spb_section spb_section_id=\"15534\" width=\"1/1\" el_position=\"first last\"]');\n\n\t\t$prebuilt_templates[\"startup-home\"] = array(\n\t\t\"id\" => \"startup-home\",\n\t\t\"name\" => \"Startup Demo - Home\",\n\t\t\"code\" => '[spb_row element_name=\"Intro: Desktop/Tablet\" wrap_type=\"content-width\" row_bg_type=\"video\" row_bg_color=\"#1a237e\" color_row_height=\"window-height\" bg_image=\"14320\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_mp4=\"http://swiftideasvideos.s3.amazonaws.com/agency_work.mp4\" bg_video_webm=\"http://swiftideasvideos.s3.amazonaws.com/agency_work.webmhd.webm\" bg_video_loop=\"yes\" parallax_video_height=\"content-height\" row_header_style=\"light\" row_top_style=\"none\" row_bottom_style=\"slant-ltr\" parallax_video_overlay=\"color\" row_overlay_opacity=\"80\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_responsive_vis=\"hidden-xs\" row_id=\"intro\" minimize_row=\"no\" simplified_controls=\"no\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 0%;padding-right: 0%;padding-bottom: 0%;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 20%;padding-left: 14%;padding-right: 14%;padding-bottom: 20%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n<p class=\"impact-text-large\" style=\"text-align: center;\"><span style=\"color: #ffffff;\">Introducing Uplift, build better, faster and with less effort.</span></p>\n<p style=\"text-align: center;\">[sf_button colour=\"accent\" type=\"bordered\" size=\"standard\" link=\"#overview\" target=\"_self\" icon=\"nucleo-icon-chevron-down\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]Take the tour[/sf_button]</p>\n[/spb_text_block] [/spb_row] [spb_row element_name=\"Intro: Mobile\" wrap_type=\"content-width\" row_bg_type=\"image\" row_bg_color=\"#1a237e\" color_row_height=\"window-height\" bg_image=\"14320\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_mp4=\"http://swiftideasvideos.s3.amazonaws.com/agency_work.mp4\" bg_video_webm=\"http://swiftideasvideos.s3.amazonaws.com/agency_work.webmhd.webm\" bg_video_loop=\"yes\" parallax_video_height=\"content-height\" row_header_style=\"light\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"80\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_responsive_vis=\"hidden-lg_hidden-md_hidden-sm\" row_id=\"intro\" minimize_row=\"no\" simplified_controls=\"no\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"no\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 14%;padding-left: 2%;padding-right: 2%;padding-bottom: 4%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n<p class=\"impact-text-large\" style=\"text-align: center;\"><span style=\"color: #ffffff;\">Introducing Uplift, build better, faster and with less effort.</span></p>\n<p style=\"text-align: center;\">[sf_button colour=\"accent\" type=\"bordered\" size=\"standard\" link=\"#overview\" target=\"_self\" icon=\"nucleo-icon-chevron-down\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]Take the tour[/sf_button]</p>\n[/spb_text_block] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"no\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\n[sf_fullscreenvideo type=\"image-button\" btntext=\"\" imageurl=\"http://uplift.swiftideas.com/startup-demo/wp-content/uploads/sites/9/2016/01/browser-6.png\" imageheight=\"542\" imagewidth=\"1140\" videourl=\"https://vimeo.com/36176127\" extraclass=\"\"]\n\n[/spb_text_block] [/spb_row] [spb_row element_name=\"Video overlay: Desktop/Tablet\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_responsive_vis=\"hidden-xs\" minimize_row=\"no\" simplified_controls=\"no\" custom_css=\"margin-top: -330px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"no\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\n[sf_fullscreenvideo type=\"image-button\" btntext=\"\" imageurl=\"http://uplift.swiftideas.com/startup-demo/wp-content/uploads/sites/9/2016/01/browser-6.png\" imageheight=\"542\" imagewidth=\"1140\" videourl=\"https://vimeo.com/36176127\" extraclass=\"\"]\n\n[/spb_text_block] [/spb_row] [spb_row element_name=\"Overview\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"overview\" minimize_row=\"no\" simplified_controls=\"no\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 3%;padding-left: 0%;padding-right: 0%;padding-bottom: 7%;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"1px\" responsive_vis=\"hidden-xs_hidden-sm\" width=\"1/4\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 6%;padding-left: 2%;padding-right: 2%;padding-bottom: 6%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/2\" el_position=\"last\"]\n<h5 style=\"text-align: center;\">OVERVIEW</h5>\n<p class=\"impact-text\" style=\"text-align: center;\">Loaded with cutting-edge features and extraordinary attention to detail.</p>\n<p style=\"text-align: center;\">lass patent taciti sociosqu ad litro torquent per connubio nostra, per inceptos himenaeos. Curabitur a torto ut leo mattis cursus. Vestibule laoreet interdum pellentesque.</p>\n[/spb_text_block] [spb_icon_box title=\"Gesture Library\" box_type=\"standard-center\" box_icon_type=\"svg\" svg_icon=\"media-1_shake\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#5c6bc0\" icon_bg_color=\"#ffffff\" text_color=\"#5c6bc0\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/3\" el_position=\"first\"]\n\n<span style=\"color: #333333;\">Vestibule corvallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt.</span>\n\n[/spb_icon_box] [spb_icon_box title=\"Responsive Testing\" box_type=\"standard-center\" box_icon_type=\"svg\" svg_icon=\"design-outline_tablet-mobile\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#64b5f6\" text_color=\"#64b5f6\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/3\"]\n\n<span style=\"color: #333333;\">Vestibule corvallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt.</span>\n\n[/spb_icon_box] [spb_icon_box title=\"Code Repository\" box_type=\"standard-center\" box_icon_type=\"svg\" svg_icon=\"design-outline_paper-dev\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#9575cd\" text_color=\"#9575cd\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/3\" el_position=\"last\"]\n\n<span style=\"color: #333333;\">Vestibule corvallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt.</span>\n\n[/spb_icon_box] [spb_blank_spacer height=\"30px\" responsive_vis=\"hidden-xs\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box title=\"Uplift Labs\" box_type=\"standard-center\" box_icon_type=\"svg\" svg_icon=\"ui-2_lab\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#ba68c8\" icon_bg_color=\"#ffffff\" text_color=\"#ba68c8\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/3\" el_position=\"first\"]\n\n<span style=\"color: #333333;\">Vestibule corvallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt.</span>\n\n[/spb_icon_box] [spb_icon_box title=\"Easy Editing\" box_type=\"standard-center\" box_icon_type=\"svg\" svg_icon=\"design-outline_artboard\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#f06292\" icon_bg_color=\"#ffffff\" text_color=\"#f06292\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/3\"]\n\n<span style=\"color: #333333;\">Vestibule corvallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt.</span>\n\n[/spb_icon_box] [spb_icon_box title=\"Unlimited Layouts\" box_type=\"standard-center\" box_icon_type=\"svg\" svg_icon=\"design-outline_window-paragraph\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#ff8a80\" icon_bg_color=\"#ffffff\" text_color=\"#ff8a80\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/3\" el_position=\"last\"]\n\n<span style=\"color: #333333;\">Vestibule corvallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt.</span>\n\n[/spb_icon_box] [/spb_row] [spb_row element_name=\"Explore\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#f7f7f7\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"explore\" minimize_row=\"no\" simplified_controls=\"no\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 4%;padding-left: 0%;padding-right: 0%;padding-bottom: 0%;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"1px\" responsive_vis=\"hidden-xs_hidden-sm\" width=\"1/4\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 6%;padding-left: 2%;padding-right: 2%;padding-bottom: 10%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/2\" el_position=\"last\"]\n<h5 style=\"text-align: center;\">EXPLORE</h5>\n<p class=\"impact-text\" style=\"text-align: center;\">Create something special, see whats possible with uplift.</p>\n[/spb_text_block] [spb_portfolio_carousel title=\"Showcase Gallery\" item_count=\"5\" item_columns=\"4\" fullwidth=\"yes\" gutters=\"no\" category=\"All\" el_class=\"pb0 mb0\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_promo_bar display_type=\"promo-button\" promo_bar_text=\"You will love creating with Uplift\" promo_bar_text_size=\"impact-text\" btn_text=\"Get started today\" btn_color=\"accent\" btn_type=\"rounded_bordered\" href=\"http://uplift.swiftideas.com/purchase\" target=\"_self\" bg_color=\"#e8eaf6\" text_color=\"#5c6bc0\" page_align=\"yes\" fullwidth=\"yes\" width=\"1/1\" el_position=\"first last\"]\n\nEnter your text here\n\n[/spb_promo_bar] [spb_row element_name=\"Reviews\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"reviews\" minimize_row=\"no\" simplified_controls=\"no\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 2%;padding-left: 0%;padding-right: 0%;padding-bottom: 7%;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"1px\" responsive_vis=\"hidden-xs_hidden-sm\" width=\"1/4\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 12%;padding-left: 2%;padding-right: 2%;padding-bottom: 0%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/2\" el_position=\"last\"]\n<h5 style=\"text-align: center;\">REVIEWS</h5>\n<p class=\"impact-text\" style=\"text-align: center;\">What people are saying</p>\n[/spb_text_block] [spb_blank_spacer height=\"60px\" responsive_vis=\"hidden-xs\" width=\"1/1\" el_position=\"first last\"] [spb_section element_name=\"Testimonials\" spb_section_id=\"15611\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Review Call out: Desktop\" wrap_type=\"full-width\" row_bg_type=\"color\" row_bg_color=\"#5c6bc0\" color_row_height=\"content-height\" bg_image=\"15624\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_responsive_vis=\"hidden-xs_hidden-sm\" minimize_row=\"no\" simplified_controls=\"no\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_image image=\"15559\" image_size=\"large\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/2\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 14%;padding-right: 14%;padding-bottom: 0%;background-color:#5c6bc0;\" border_size=\"0\" border_styling_global=\"default\" back_color_global=\"#5c6bc0\" width=\"1/2\" el_position=\"last\"]\n<h3><span style=\"color: #ffffff;\">\"With Uplift I can build my websites just the way I want them to be. The many options that Uplift provides are magnificent. If you want a good working website with great features then Uplift is a must have. I am a happy customer.\"</span></h3>\n<span style=\"color: #ffffff;\">Happy Customer</span>\n\n[/spb_text_block] [/spb_row] [spb_row element_name=\"Review Call out: Tablet/Mobile\" wrap_type=\"full-width\" row_bg_type=\"color\" row_bg_color=\"#5c6bc0\" color_row_height=\"content-height\" bg_image=\"15624\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_responsive_vis=\"hidden-lg_hidden-md\" minimize_row=\"no\" simplified_controls=\"no\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 0%;padding-right: 0%;padding-bottom: 0%;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_image image=\"15559\" image_size=\"large\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 6%;padding-left: 6%;padding-right: 6%;padding-bottom: 10%;background-color:#5c6bc0;\" border_size=\"0\" border_styling_global=\"default\" back_color_global=\"#5c6bc0\" width=\"1/1\" el_position=\"first last\"]\n<h3><span style=\"color: #ffffff;\">\"With Uplift I can build my websites just the way I want them to be. The many options that Uplift provides are magnificent. If you want a good working website with great features then Uplift is a must have. I am a happy customer.\"</span></h3>\n<span style=\"color: #ffffff;\">Happy Customer</span>\n\n[/spb_text_block] [/spb_row] [spb_row element_name=\"News\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#f7f7f7\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"news\" minimize_row=\"no\" simplified_controls=\"no\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 4%;padding-left: 0%;padding-right: 0%;padding-bottom: 4%;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"1px\" width=\"1/4\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 6%;padding-left: 2%;padding-right: 2%;padding-bottom: 6%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/2\" el_position=\"last\"]\n<h5 style=\"text-align: center;\">NEWS</h5>\n<p class=\"impact-text\" style=\"text-align: center;\">Recent press &amp; articles.</p>\n[/spb_text_block] [spb_blog blog_type=\"masonry\" gutters=\"yes\" columns=\"3\" fullwidth=\"no\" item_count=\"3\" category=\"All\" offset=\"0\" order_by=\"date\" order=\"DESC\" show_title=\"yes\" show_excerpt=\"yes\" show_details=\"yes\" excerpt_length=\"14\" content_output=\"excerpt\" show_read_more=\"yes\" social_integration=\"no\" blog_filter=\"no\" pagination=\"none\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"60px\" responsive_vis=\"hidden-xs\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Contact\" wrap_type=\"full-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"contact\" minimize_row=\"no\" simplified_controls=\"no\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 6%;padding-left: 14%;padding-right: 14%;padding-bottom: 6%;background-color:#ffffff;\" border_size=\"0\" border_styling_global=\"default\" back_color_global=\"#ffffff\" width=\"1/3\" el_position=\"first\"]\n<h5>CONTACT</h5><p class=\"impact-text\">Get in touch</p> [contact-form-7 id=\"15387\" title=\"Contact form 1\"][/spb_text_block][spb_gmaps size=\"650\" type=\"roadmap\" zoom=\"13\" map_controls=\"no\" advanced_styling=\"yes\" saturation=\"color\" fullscreen=\"yes\" width=\"2/3\" el_position=\"last\"] [spb_map_pin pin_title=\"First Pin\" address=\"New York\" pin_image=\"16241\" width=\"1/1\" el_position=\"first last\"] This is a map pin. Click the edit button to change it. [/spb_map_pin] [/spb_gmaps] [/spb_row] [spb_section spb_section_id=\"15637\" width=\"1/1\" el_position=\"first last\"]');\n\n\t$prebuilt_templates[\"agency-about\"] = array(\n\t\"id\" => \"agency-about\",\n\t\"name\" => \"Agency Demo - About\",\n\t\"code\" => '[spb_row row_responsive_vis=\"hidden-xs_hidden-sm\" element_name=\"Desktop\" wrap_type=\"full-width\" row_bg_type=\"image\" color_row_height=\"content-height\" bg_image=\"16276\" bg_type=\"cover\" parallax_image_height=\"window-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-window-height\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" simplified_controls=\"yes\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_color=\"#f7f7f7\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 4%;padding-right: 4%;padding-bottom: 0%;\" border_styling_global=\"default\" width=\"1/2\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"no\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 0%;padding-right: 0%;padding-bottom: 0%;background-color:#f7f7f7;\" border_size=\"0\" border_styling_global=\"default\" back_color_global=\"#f7f7f7\" width=\"1/1\" el_position=\"first last\"]\n<p class=\"impact-text\" style=\"text-align: center;\">Hi, my name is Mike Jones. Im a designer and photographer based in London.</p>\n\n<h5 style=\"text-align: center;\">Vestibule convallis pulvinar tellus eget ultricies. Sed sollic itudin, sem vitae eleme ntum euis mod, veilt arcu mattis diam, in sceler isque purus lorem eget elit. Sed vitae nunc in mets semper veilt arcu mattis hendrerit.</h5>\n[/spb_text_block] [spb_divider type=\"heading\" heading_text=\"Selected Clients\" text=\"Go to top\" top_margin=\"30px\" bottom_margin=\"30px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_clients item_count=\"6\" item_columns=\"3\" category=\"All\" carousel=\"no\" pagination=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"heading\" heading_text=\"Follow Me\" text=\"Go to top\" top_margin=\"60px\" bottom_margin=\"0px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"no\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 0%;padding-right: 0%;padding-bottom: 0%;background-color:#f7f7f7;\" border_size=\"0\" border_styling_global=\"default\" back_color_global=\"#f7f7f7\" width=\"1/1\" el_position=\"first last\"]\n<div style=\"text-align: center;\">[social size=\"large\"]</div>\n[/spb_text_block] [/spb_column] [/spb_row] [spb_row row_responsive_vis=\"hidden-lg_hidden-md\" element_name=\"Tablet / Mobile\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#f7f7f7\" color_row_height=\"content-height\" bg_image=\"16276\" bg_type=\"cover\" parallax_image_height=\"window-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" simplified_controls=\"yes\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_image image=\"16276\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" link_target=\"_self\" lightbox=\"yes\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"no\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 0%;padding-right: 0%;padding-bottom: 0%;background-color:#f7f7f7;\" border_size=\"0\" border_styling_global=\"default\" back_color_global=\"#f7f7f7\" width=\"1/1\" el_position=\"first last\"]\n<p class=\"impact-text\" style=\"text-align: center;\">Hi, my name is Mike Jones. Im a designer and photographer based in London.</p>\n\n<h5 style=\"text-align: center;\">Vestibule convallis pulvinar tellus eget ultricies. Sed sollic itudin, sem vitae eleme ntum euis mod, veilt arcu mattis diam, in sceler isque purus lorem eget elit. Sed vitae nunc in mets semper veilt arcu mattis hendrerit.</h5>\n[/spb_text_block] [spb_divider type=\"heading\" heading_text=\"Selected Clients\" text=\"Go to top\" top_margin=\"30px\" bottom_margin=\"30px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_clients item_count=\"6\" item_columns=\"3\" category=\"All\" carousel=\"no\" pagination=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"heading\" heading_text=\"Follow Me\" text=\"Go to top\" top_margin=\"60px\" bottom_margin=\"0px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"no\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 0%;padding-right: 0%;padding-bottom: 0%;background-color:#f7f7f7;\" border_size=\"0\" border_styling_global=\"default\" back_color_global=\"#f7f7f7\" width=\"1/1\" el_position=\"first last\"]\n<div style=\"text-align: center;\">[social size=\"large\"]</div>\n[/spb_text_block] [/spb_row]');\n\n\t\t$prebuilt_templates[\"agency-contact\"] = array(\n\t\t\"id\" => \"agency-contact\",\n\t\t\"name\" => \"Agency Demo - Contact\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"image\" row_bg_color=\"#222222\" color_row_height=\"window-height\" bg_image=\"16271\" bg_type=\"cover\" parallax_image_height=\"window-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_el_class=\"no-shadow\" minimize_row=\"no\" simplified_controls=\"yes\" custom_css_percentage=\"no\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"1px\" responsive_vis=\"hidden-xs\" width=\"1/3\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"no\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 55px;padding-left: 40px;padding-right: 40px;padding-bottom: 7px;background-color:#ffffff;\" border_size=\"0\" border_styling_global=\"default\" back_color_global=\"#ffffff\" width=\"1/3\" el_position=\"last\"]\n\n[contact-form-7 id=\"15387\" title=\"Contact form 1\"]\n\n[/spb_text_block] [/spb_row]');\n\n\t\t$prebuilt_templates[\"agency-news\"] = array(\n\t\t\"id\" => \"agency-news\",\n\t\t\"name\" => \"Agency Demo - News & Stuff\",\n\t\t\"code\" => '[spb_blank_spacer height=\"50px\" width=\"1/1\" el_position=\"first last\"] [spb_blog blog_type=\"timeline\" gutters=\"yes\" columns=\"4\" fullwidth=\"no\" item_count=\"4\" category=\"All\" offset=\"0\" order_by=\"date\" order=\"DESC\" show_title=\"yes\" show_excerpt=\"yes\" show_details=\"yes\" excerpt_length=\"27\" content_output=\"excerpt\" show_read_more=\"yes\" social_integration=\"no\" blog_filter=\"no\" pagination=\"infinite-scroll\" width=\"1/1\" el_position=\"first last\"]');\n\n\t\t$prebuilt_templates[\"agency-photography\"] = array(\n\t\t\"id\" => \"agency-photography\",\n\t\t\"name\" => \"Agency Demo - Photography\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"full-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" simplified_controls=\"yes\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_gallery gallery_id=\"15080\" display_type=\"masonry\" columns=\"2\" fullwidth=\"no\" gutters=\"no\" image_size=\"full\" slider_transition=\"slide\" show_thumbs=\"yes\" autoplay=\"yes\" show_captions=\"no\" enable_lightbox=\"yes\" el_class=\"mb0\" width=\"1/1\" el_position=\"first last\"] [/spb_row]');\n\n\t\t$prebuilt_templates[\"agency-work\"] = array(\n\t\t\"id\" => \"agency-work\",\n\t\t\"name\" => \"Agency Demo - Work\",\n\t\t\"code\" => '[spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_portfolio display_type=\"multi-size-masonry\" multi_size_ratio=\"1/1\" fullwidth=\"yes\" gutters=\"yes\" columns=\"2\" show_title=\"yes\" show_subtitle=\"yes\" show_excerpt=\"yes\" hover_show_excerpt=\"no\" excerpt_length=\"20\" item_count=\"12\" category=\"All\" order_by=\"date\" order=\"DESC\" portfolio_filter=\"no\" pagination=\"none\" button_enabled=\"yes\" width=\"1/1\" el_position=\"first last\"]');\n\n\t\t$prebuilt_templates[\"goodsdemo-home\"] = array(\n\t\t\"id\" => \"goodsdemo-home\",\n\t\t\"name\" => \"Goods Demo - Home\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_responsive_vis=\"hidden-xs\" minimize_row=\"no\" simplified_controls=\"no\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_image_banner image=\"16051\" image_size=\"full\" content_pos=\"center\" content_textalign=\"center\" animation=\"none\" animation_delay=\"200\" image_link=\"/goods-demo/products/\" link_target=\"_self\" width=\"1/3\" el_position=\"first\"]\n\nShop\nChairs\n[/spb_image_banner] [spb_image_banner image=\"16048\" image_size=\"full\" content_pos=\"center\" content_textalign=\"center\" animation=\"none\" animation_delay=\"200\" image_link=\"/goods-demo/products/\" link_target=\"_self\" width=\"1/3\"]\n\nShop\nStools\n[/spb_image_banner] [spb_image_banner image=\"16049\" image_size=\"full\" content_pos=\"center\" content_textalign=\"center\" animation=\"none\" animation_delay=\"200\" image_link=\"/goods-demo/products/\" link_target=\"_self\" width=\"1/3\" el_position=\"last\"]\n\nShop\nTables\n[/spb_image_banner] [/spb_row] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"heading\" heading_text=\"Latest Arrivals\" text=\"Go to top\" top_margin=\"0px\" bottom_margin=\"30px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_products asset_type=\"latest-products\" category=\"chairs,stools,tables\" display_type=\"standard\" display_layout=\"standard\" multi_masonry=\"no\" carousel=\"no\" fullwidth=\"no\" columns=\"3\" item_count=\"3\" order_by=\"date\" order=\"DESC\" button_enabled=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"20px\" width=\"1/1\" el_position=\"first last\"] [spb_button button_text=\"Shop All Products\" button_size=\"large\" button_colour=\"accent\" button_type=\"standard\" rounded=\"yes\" button_dropshadow=\"no\" button_link=\"/goods-demo/products/\" button_target=\"_self\" align=\"center\" animation=\"none\" animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"image\" row_bg_color=\"#222222\" color_row_height=\"content-height\" bg_image=\"133\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"80\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" simplified_controls=\"yes\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 8%;padding-left: 12%;padding-right: 12%;padding-bottom: 2%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nReasons to shop with us\n[/spb_text_block] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box_grid columns=\"3\" colour_style=\"light\" width=\"1/1\" el_position=\"first last\"]\n\n[spb_icon_box_grid_element title=\"Fast & Free\nInternational Delivery\" target=\"\" link=\"/goods-demo/products/\" icon=\"svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item outline-svg shopping-outline_delivery-time\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"Secure Checkout\nAnd Transactions\" target=\"\" link=\"/goods-demo/products/\" icon=\"svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item outline-svg shopping-outline_credit-locked\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"Free One-Day\nNo Quibble Returns\" target=\"\" link=\"/goods-demo/products/\" icon=\"svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item svg-icon-picker-item outline-svg ui-1_send\"][/spb_icon_box_grid_element]\n\n[/spb_icon_box_grid] [spb_blank_spacer height=\"120px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_blank_spacer height=\"90px\" width=\"1/1\" el_position=\"first last\"] [spb_products title=\"Featured Products\" asset_type=\"featured-products\" category=\"chairs,stools,tables\" display_type=\"standard\" display_layout=\"standard\" multi_masonry=\"yes\" carousel=\"no\" fullwidth=\"no\" columns=\"4\" item_count=\"4\" order=\"DESC\" button_enabled=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"heading\" heading_text=\"Recent Journal Articles\" text=\"Go to top\" top_margin=\"50px\" bottom_margin=\"60px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_recent_posts display_type=\"standard\" carousel=\"no\" item_columns=\"3\" item_count=\"3\" category=\"All\" offset=\"0\" posts_order=\"DESC\" excerpt_length=\"24\" fullwidth=\"no\" gutters=\"yes\" button_enabled=\"no\" pagination=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"50px\" width=\"1/1\" el_position=\"first last\"] [spb_button button_text=\"More Journal Articles\" button_size=\"large\" button_colour=\"accent\" button_type=\"standard\" rounded=\"yes\" button_dropshadow=\"no\" button_link=\"/goods-demo/the-journal/\" button_target=\"_self\" align=\"center\" animation=\"none\" animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"]');\n\n\n\t$prebuilt_templates[\"cafe-about\"] = array(\n\t\t\"id\" => \"cafe-about\",\n\t\t\"name\" => \"Cafe Demo - About\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"200\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"6\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 0%;padding-right: 6%;padding-bottom: 0%;\" border_size=\"0\" border_styling_global=\"default\" el_class=\"pb0\" width=\"1/2\" el_position=\"first\"]\n<h3>Hello, <em>we are</em> Uplift...\nand we cook nice things.</h3>\nLorem ipsum dolor sit amet isse potenti. Vesquam ante aliquet lacu semper elit. Cras neque nulla, convallis non commodo et, euismod nonsese.At vero eos et accus amus et iusto odio dignis simos ducimus qui blanditiis praese ntium volu ptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non. At vero eos et accus amus et iusto odio dignis simos ducimus qui blanditiis praese ntium volu ptatum deleniti atque corrupti quos dolores et quas molestias excepturi.\n\n[/spb_text_block] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 8%;padding-right: 0%;padding-bottom: 0%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/2\" el_position=\"last\"]\n\n[sf_fullscreenvideo type=\"image-button\" btntext=\"\" imageurl=\"http://uplift.swiftideas.com/cafe-demo/wp-content/uploads/sites/4/2016/01/food-med.jpg\" videourl=\"https://vimeo.com/36176127\" extraclass=\"\"]\n\n[/spb_text_block] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"60px\" bottom_margin=\"30px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box title=\"Fine Dining\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"food-outline_cutlery-77\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#f5825e\" text_color=\"#444444\" bg_color=\"#ffffff\" animated_box_style=\"stroke\" animated_box_rounded=\"yes\" width=\"1/3\" el_position=\"first\"]\n<h5>Vestibule corvallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt arcu mattis diam, in scelerisque.</h5>\n[/spb_icon_box] [spb_icon_box title=\"Artisan Coffee\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"food-outline_moka\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#f5825e\" text_color=\"#444444\" bg_color=\"#ffffff\" animated_box_style=\"stroke\" animated_box_rounded=\"yes\" width=\"1/3\"]\n<h5>Vestibule corvallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt arcu mattis diam, in scelerisque.</h5>\n[/spb_icon_box] [spb_icon_box title=\"Huge Tea Selection\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"food-outline_tea\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#f5825e\" text_color=\"#444444\" bg_color=\"#ffffff\" animated_box_style=\"stroke\" animated_box_rounded=\"yes\" width=\"1/3\" el_position=\"last\"]\n<h5>Vestibule corvallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt arcu mattis diam, in scelerisque.</h5>\n[/spb_icon_box] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box title=\"Baked Goods\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"food-outline_donut\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#f5825e\" text_color=\"#444444\" bg_color=\"#ffffff\" animated_box_style=\"stroke\" animated_box_rounded=\"yes\" width=\"1/3\" el_position=\"first\"]\n<h5>Vestibule corvallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt arcu mattis diam, in scelerisque.</h5>\n[/spb_icon_box] [spb_icon_box title=\"Craft Brewery\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"food-outline_beer-95\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#f5825e\" text_color=\"#444444\" bg_color=\"#ffffff\" animated_box_style=\"stroke\" animated_box_rounded=\"yes\" width=\"1/3\"]\n<h5>Vestibule corvallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt arcu mattis diam, in scelerisque.</h5>\n[/spb_icon_box] [spb_icon_box title=\"Ethically Sourced\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"envir-outline_recycling\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#f5825e\" text_color=\"#444444\" bg_color=\"#ffffff\" animated_box_style=\"stroke\" animated_box_rounded=\"yes\" width=\"1/3\" el_position=\"last\"]\n<h5>Vestibule corvallis pulvinar tellus eget ultricies. Sed sollicitudin, sem vitae elementum euismod, veilt arcu mattis diam, in scelerisque.</h5>\n[/spb_icon_box] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" simplified_controls=\"yes\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_image image=\"16244\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"no\" fullwidth=\"no\" overflow_mode=\"none\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_image image=\"16231\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"no\" fullwidth=\"no\" overflow_mode=\"none\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/2\" el_position=\"first\"] [spb_image image=\"16238\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"no\" fullwidth=\"no\" overflow_mode=\"none\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/2\" el_position=\"last\"] [/spb_row]');\n\n\t$prebuilt_templates[\"cafe-getintouch\"] = array(\n\t\t\"id\" => \"cafe-getintouch\",\n\t\t\"name\" => \"Cafe Demo - Get in Touch\",\n\t\t\"code\" => '[spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 6%;padding-left: 0%;padding-right: 0%;padding-bottom: 6%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_text_block title=\"Jobs at Uplift\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 0%;padding-right: 6%;padding-bottom: 0%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/2\" el_position=\"first\"]\n\n<strong>Full / Part Time Barista\n</strong>Ut sum noluisse insolens appellantur, discere epicurei nominati id duo. Id eventi vidisse omnesque qui. Sale decore tamquam eso ne, in pri amet pertinax, vel option nominavi id. Ferri elitra semper ius ad, ea pro dique vivendo repudiandae, delenit asseveri ex ius. Per aliquip liberasse accomodare an, et vim clima deleniti, phaedrum.\n\nCall: +44 (0) 208 19379\nEmail: <a href=\"mailto:info@upliftcafe.com\">jobs@upliftcafe.com</a>\n<div></div>\n[/spb_text_block] [spb_text_block title=\"Opening Hours:\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 0%;padding-right: 0%;padding-bottom: 0%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/4\"]\n\n<strong>Mon-Tue-Wed</strong> 07.00-19.00\n<strong>Thu-Fri</strong> 07.00-20.00\n<strong>Saturday</strong> 08.00-20.00\n<strong>Sunday</strong> 08.00-19.00\nOur kitchen is open until 6pm\n\nJoin us for a drink - it is happy hour from 17.30 till closing time every day!\n\n[/spb_text_block] [spb_text_block title=\"Visit Us\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 0%;padding-right: 0%;padding-bottom: 0%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/4\" el_position=\"last\"]\n\nUplift Cafe,\n290 Fake Street,\nLondon, W1C E78\n\nCall: +44 (0) 208 19378\nEmail: <a href=\"mailto:info@upliftcafe.com\">info@upliftcafe.com</a>\n<div>[sf_button colour=\"black\" type=\"standard\" size=\"standard\" link=\"http://uplift.swiftideas.com/purchase\" target=\"_self\" icon=\"\" dropshadow=\"no\" rounded=\"no\" extraclass=\"\"]Make a booking[/sf_button]</div>\n<div></div>\n[/spb_text_block] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_gmaps size=\"600\" type=\"roadmap\" zoom=\"14\" map_controls=\"no\" advanced_styling=\"yes\" style_array=\"JTVCJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJhbGwlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmxhYmVscy50ZXh0LmZpbGwlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc2F0dXJhdGlvbiUyMiUzQSUyMDM2JTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyY29sb3IlMjIlM0ElMjAlMjIlMjMzMzMzMzMlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJsaWdodG5lc3MlMjIlM0ElMjA0MCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMmFsbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzLnRleHQuc3Ryb2tlJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb2xvciUyMiUzQSUyMCUyMiUyM2ZmZmZmZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxpZ2h0bmVzcyUyMiUzQSUyMDE2JTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJhbGwlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmxhYmVscy5pY29uJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMmFkbWluaXN0cmF0aXZlJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJnZW9tZXRyeSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ2aXNpYmlsaXR5JTIyJTNBJTIwJTIyb2ZmJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJhZG1pbmlzdHJhdGl2ZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIyZ2VvbWV0cnkuZmlsbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb2xvciUyMiUzQSUyMCUyMiUyM2ZmZmZmZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxpZ2h0bmVzcyUyMiUzQSUyMDIwJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIyYWRtaW5pc3RyYXRpdmUlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmdlb21ldHJ5LnN0cm9rZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb2xvciUyMiUzQSUyMCUyMiUyM2ZlZmVmZSUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxpZ2h0bmVzcyUyMiUzQSUyMDE3JTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyd2VpZ2h0JTIyJTNBJTIwMS4yJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIyYWRtaW5pc3RyYXRpdmUlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmxhYmVscyUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ2aXNpYmlsaXR5JTIyJTNBJTIwJTIyb2ZmJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJsYW5kc2NhcGUlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmdlb21ldHJ5JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmNvbG9yJTIyJTNBJTIwJTIyJTIzZjdmN2Y3JTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIybGlnaHRuZXNzJTIyJTNBJTIwMjAlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMmxhbmRzY2FwZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMmxhbmRzY2FwZS5tYW5fbWFkZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMmxhbmRzY2FwZS5uYXR1cmFsJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJsYWJlbHMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycG9pJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJnZW9tZXRyeSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb2xvciUyMiUzQSUyMCUyMiUyM2Y3ZjdmNyUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxpZ2h0bmVzcyUyMiUzQSUyMDIxJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJwb2klMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmxhYmVscyUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ2aXNpYmlsaXR5JTIyJTNBJTIwJTIyb2ZmJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJwb2kucGFyayUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIyZ2VvbWV0cnklMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyY29sb3IlMjIlM0ElMjAlMjIlMjNkZWRlZGUlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJsaWdodG5lc3MlMjIlM0ElMjAyMSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMnBvaS5wYXJrJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJsYWJlbHMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5oaWdod2F5JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJnZW9tZXRyeS5maWxsJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmNvbG9yJTIyJTNBJTIwJTIyJTIzZWNlZmYxJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIybGlnaHRuZXNzJTIyJTNBJTIwMTclMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ2aXNpYmlsaXR5JTIyJTNBJTIwJTIyb2ZmJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJyb2FkLmhpZ2h3YXklMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmdlb21ldHJ5LnN0cm9rZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb2xvciUyMiUzQSUyMCUyMiUyM2ZmZmZmZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxpZ2h0bmVzcyUyMiUzQSUyMDI5JTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyd2VpZ2h0JTIyJTNBJTIwMC4yJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5oaWdod2F5JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJsYWJlbHMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5hcnRlcmlhbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIyZ2VvbWV0cnklMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyY29sb3IlMjIlM0ElMjAlMjIlMjNlY2VmZjElMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJsaWdodG5lc3MlMjIlM0ElMjAxOCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvbiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5hcnRlcmlhbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMnJvYWQuYXJ0ZXJpYWwlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmxhYmVscy50ZXh0JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvbiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmh1ZSUyMiUzQSUyMCUyMiUyM2ZmMDAwMCUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5sb2NhbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIyZ2VvbWV0cnklMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyY29sb3IlMjIlM0ElMjAlMjIlMjNlY2VmZjElMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJsaWdodG5lc3MlMjIlM0ElMjAxNiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5sb2NhbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMnRyYW5zaXQlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmdlb21ldHJ5JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmNvbG9yJTIyJTNBJTIwJTIyJTIzZjJmMmYyJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIybGlnaHRuZXNzJTIyJTNBJTIwMTklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ2aXNpYmlsaXR5JTIyJTNBJTIwJTIyb2ZmJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJ0cmFuc2l0JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJsYWJlbHMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIydHJhbnNpdC5zdGF0aW9uJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJsYWJlbHMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIyd2F0ZXIlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmdlb21ldHJ5JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmNvbG9yJTIyJTNBJTIwJTIyJTIzMzAzMDMwJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIybGlnaHRuZXNzJTIyJTNBJTIwMTclMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ3ZWlnaHQlMjIlM0ElMjAlMjIxJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJ3YXRlciUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMEElNUQ=\" saturation=\"color\" fullscreen=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_map_pin pin_title=\"Our Office\" address=\"New York\" pin_latitude=\"40.7127837\" pin_longitude=\"-74.00594130000002\" pin_image=\"16252\" pin_button_text=\"Our Office\" width=\"1/1\" el_position=\"first last\"]\n<h6>No.1 Abbey Road, London, W1 ECH UK</h6>\n<h6>Call: +44 (0) 800 123 4567 Email: info@swiftideas.net</h6>\n[/spb_map_pin] [/spb_gmaps] [/spb_row]');\n\n\n\n\n\n\t$prebuilt_templates[\"cafe-home\"] = array(\n\t\t\"id\" => \"cafe-home\",\n\t\t\"name\" => \"Cafe Demo - Home\",\n\t\t\"code\" => '[spb_row row_responsive_vis=\"hidden-xs\" element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"image\" row_bg_color=\"#222222\" color_row_height=\"content-height\" row_style=\"light\" bg_image=\"16224\" bg_type=\"cover\" parallax_image_height=\"window-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_header_style=\"light\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"70\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" simplified_controls=\"no\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 10%;padding-left: 0%;padding-right: 0%;padding-bottom: 0%;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer responsive_vis=\"hidden-xs\" height=\"1px\" width=\"1/6\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 16%;padding-left: 10%;padding-right: 10%;padding-bottom: 20%;\" border_size=\"0\" border_styling_global=\"default\" width=\"2/3\" el_position=\"last\"]\n<p class=\"impact-text-large\" style=\"text-align: center;\"><span style=\"color: #ffffff;\">Welcome to the Uplift Cafe</span></p>\n<p class=\"impact-text\" style=\"text-align: center;\"><span style=\"color: #ffffff;\">bringing you the best in local organic &amp; responsibly sourced goodness, since 1982.</span></p>\n<p style=\"text-align: center;\"><a class=\"read-more\" href=\"/cafe-demo/about-the-cafe/\">More about us</a></p>\n[/spb_text_block] [spb_icon_box_grid columns=\"3\" colour_style=\"light\" width=\"1/1\" el_position=\"first last\"]\n\n[spb_icon_box_grid_element title=\"Incredible Drinks\" target=\"\" link=\"/cafe-demo/food-and-drinks/\" icon=\"svg-icon-picker-item outline-svg food-outline_cocktail\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"Local Organic Food\" target=\"\" link=\"/cafe-demo/food-and-drinks/\" icon=\"svg-icon-picker-item outline-svg food-outline_pizza-slice\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"Sustainably Sourced\" target=\"\" link=\"/cafe-demo/about-the-cafe/\" icon=\"svg-icon-picker-item outline-svg envir-outline_save-planet\"][/spb_icon_box_grid_element]\n\n[/spb_icon_box_grid] [/spb_row] [spb_row row_responsive_vis=\"hidden-lg_hidden-md_hidden-sm\" element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"image\" row_bg_color=\"#222222\" color_row_height=\"content-height\" row_style=\"light\" bg_image=\"16224\" bg_type=\"cover\" parallax_image_height=\"window-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_header_style=\"light\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"70\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" simplified_controls=\"no\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 10%;padding-left: 0%;padding-right: 0%;padding-bottom: 0%;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 16%;padding-left: 7%;padding-right: 7%;padding-bottom: 20%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n<p class=\"impact-text-large\" style=\"text-align: center;\"><span style=\"color: #ffffff;\">Welcome to the Uplift Cafe</span></p>\n\n<h3 style=\"text-align: center;\"><span style=\"color: #ffffff;\">bringing you the best in local organic &amp; responsibly sourced goodness, since 1982.</span></h3>\n<p style=\"text-align: center;\"><a class=\"read-more\" href=\"/cafe-demo/about-the-cafe/\">More about us</a></p>\n[/spb_text_block] [spb_icon_box_grid columns=\"3\" colour_style=\"light\" width=\"1/1\" el_position=\"first last\"]\n\n[spb_icon_box_grid_element title=\"Incredible Drinks\" target=\"\" link=\"/cafe-demo/food-and-drinks/\" icon=\"svg-icon-picker-item outline-svg food-outline_cocktail\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"Local Organic Food\" target=\"\" link=\"/cafe-demo/food-and-drinks/\" icon=\"svg-icon-picker-item outline-svg food-outline_pizza-slice\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"Sustainably Sourced\" target=\"\" link=\"/cafe-demo/about-the-cafe/\" icon=\"svg-icon-picker-item outline-svg envir-outline_save-planet\"][/spb_icon_box_grid_element]\n\n[/spb_icon_box_grid] [/spb_row] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#ffffff\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_header_style=\"dark\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"no\" simplified_controls=\"no\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block title=\"Welcome\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"no\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/3\" el_position=\"first\"]\n\n<span style=\"line-height: 1.5;\">Doce erat magna, aliquot vitae semper vitae, accusant vel nis. Viva mus pellen tesque orcisit met odio dictum eget kommod nulla cons equent. Prooien iaculis trirtique nis ut eleifend. Ut sum noluisse insolens appel lantur, discere eget kommod nulla cons equent. </span>\n\n[sf_button colour=\"black\" type=\"standard\" size=\"standard\" link=\"http://uplift.swiftideas.com/purchase\" target=\"_self\" icon=\"sf-icon-reply\" dropshadow=\"no\" rounded=\"no\" extraclass=\"\"]Make a booking[/sf_button]\n\n[/spb_text_block] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 4%;padding-right: 4%;padding-bottom: 0%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/3\"]\n<p class=\"impact-text\" style=\"text-align: center;\"><span style=\"color: #f5825e;\">Get 10% off your first order when you subscribe</span></p>\n<p style=\"text-align: center;\">[hr]</p>\n<p style=\"text-align: center;\">[contact-form-7 id=\"15636\" title=\"Sign up\"]</p>\n[/spb_text_block] [spb_text_block title=\"Opening Hours\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"no\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/3\" el_position=\"last\"]\n\n<strong>Monday-Tuesday-Wednesday</strong> 07.00-19.00\n<strong>Thursday-Friday</strong> 07.00-20.00\n<strong>Saturday</strong> 08.00-20.00\n<strong>Sunday</strong> 08.00-19.00\nOur kitchen is open until 6pm\n\nJoin us for a drink - it is happy hour from 17.30 till closing time every day!\n\n[/spb_text_block] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_gallery title=\"Gallery\" gallery_id=\"15080\" display_type=\"slider\" columns=\"5\" fullwidth=\"no\" gutters=\"yes\" image_size=\"full\" slider_transition=\"slide\" show_thumbs=\"no\" autoplay=\"yes\" show_captions=\"no\" enable_lightbox=\"no\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_blank_spacer height=\"38px\" width=\"1/1\" el_position=\"first last\"] [spb_blog_grid title=\"Follow us @uplift\" item_count=\"2\" twitter_username=\"swiftideas\" instagram_id=\"1193751843\" instagram_token=\"1193751843.5b9e1e6.c8c5c0a5df0e4d5687e389f24adb8643\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"]');\n\n\t$prebuilt_templates[\"cafe-news\"] = array(\n\t\t\"id\" => \"cafe-news\",\n\t\t\"name\" => \"Cafe Demo - News & Events\",\n\t\t\"code\" => '[spb_blog blog_type=\"masonry\" gutters=\"yes\" columns=\"3\" fullwidth=\"no\" item_count=\"12\" category=\"All\" offset=\"0\" order_by=\"date\" order=\"DESC\" show_title=\"yes\" show_excerpt=\"yes\" show_details=\"yes\" excerpt_length=\"17\" content_output=\"excerpt\" show_read_more=\"yes\" social_integration=\"yes\" twitter_username=\"swiftideas\" instagram_id=\"1193751843\" instagram_token=\"1193751843.5b9e1e6.c8c5c0a5df0e4d5687e389f24adb8643\" blog_filter=\"no\" pagination=\"none\" width=\"1/1\" el_position=\"first last\"]');\n\n$prebuilt_templates[\"cafe-menu\"] = array(\n\t\t\"id\" => \"cafe-menu\", \n\t\t\"name\" => \"Cafe Demo - What's on the Menu\",\n\t\t\"code\" => '[spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block title=\"Starters\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 4%;padding-right: 4%;padding-bottom: 0%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/3\" el_position=\"first\"]\n\n[table type=\"standard_minimal\"][trow][thcol][/thcol][thcol][/thcol][/trow][trow][tcol]<strong><span class=\"s1\">Potted Shrimps</span></strong>[/tcol][tcol]$12[/tcol][/trow][trow][tcol]<strong><span class=\"s1\">Goats Cheese Salad</span></strong>[/tcol][tcol]$18[/tcol][/trow][trow][tcol]<strong><span class=\"s1\">Avocado Halloumi Wrap</span></strong>[/tcol][tcol]$8[/tcol][/trow][trow][tcol]<strong>Welsh Rarebit</strong>[/tcol][tcol]$24[/tcol][/trow][trow][tcol]<strong><span class=\"s1\">Miso Soup</span></strong>[/tcol][tcol]$16[/tcol][/trow][trow][tcol]<b>Fried Calamari</b>[/tcol][tcol]$14[/tcol][/trow][/table]\n\n[/spb_text_block] [spb_text_block title=\"Mains\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 4%;padding-right: 4%;padding-bottom: 0%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/3\"]\n\n[table type=\"standard_minimal\"][trow][thcol][/thcol][thcol][/thcol][/trow][trow][tcol]<strong><span class=\"s1\">Club Sandwich</span></strong>[/tcol][tcol]$12[/tcol][/trow][trow][tcol]<b>Wild Mushroom Risotto</b>[/tcol][tcol]$18[/tcol][/trow][trow][tcol]<strong><span class=\"s1\">Chicken Katsu Curry</span></strong>[/tcol][tcol]$8[/tcol][/trow][trow][tcol]<strong>Fish and Chips</strong>[/tcol][tcol]$24[/tcol][/trow][trow][tcol]<strong><span class=\"s1\">Grilled Tuna</span></strong>[/tcol][tcol]$16[/tcol][/trow][trow][tcol]<b>Hanger Steak</b>[/tcol][tcol]$14[/tcol][/trow][/table]\n\n[/spb_text_block] [spb_text_block title=\"Desserts\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 4%;padding-right: 4%;padding-bottom: 0%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/3\" el_position=\"last\"]\n\n[table type=\"standard_minimal\"][trow][thcol][/thcol][thcol][/thcol][/trow][trow][tcol]<strong><span class=\"s1\">Carrot Cake</span></strong>[/tcol][tcol]$12[/tcol][/trow][trow][tcol]<strong><span class=\"s1\">Macaroon Selection</span></strong>[/tcol][tcol]$18[/tcol][/trow][trow][tcol]<strong><span class=\"s1\">Date &amp; Walnut Cake</span></strong>[/tcol][tcol]$8[/tcol][/trow][trow][tcol]<strong>Ice Cream</strong>[/tcol][tcol]$24[/tcol][/trow][trow][tcol]<strong><span class=\"s1\">Afogato</span></strong>[/tcol][tcol]$16[/tcol][/trow][/table]\n\n[/spb_text_block] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"60px\" bottom_margin=\"60px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_text_block title=\"White Wine\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 4%;padding-right: 4%;padding-bottom: 0%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/2\" el_position=\"first\"]\n\n[table type=\"standard_minimal\"][trow][thcol][/thcol][thcol]125ml[/thcol][thcol]250ml[/thcol][thcol]Bottle[/thcol][/trow][trow][tcol]<span class=\"s1\"><b>Wine</b></span>[/tcol][tcol]$20[/tcol][tcol]$40[/tcol][tcol]$120[/tcol][/trow][trow][tcol]<strong>Cloudy Bay Sauvignon</strong>[/tcol][tcol]$22[/tcol][tcol]$48[/tcol][tcol]$145[/tcol][/trow][trow][tcol]<strong>Chablis 1er Cru</strong>[/tcol][tcol]$32[/tcol][tcol]$66[/tcol][tcol]$180[/tcol][/trow][/table]\n\n[/spb_text_block] [spb_text_block title=\"Red Wine\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 4%;padding-right: 4%;padding-bottom: 0%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/2\" el_position=\"last\"]\n\n[table type=\"standard_minimal\"][trow][thcol][/thcol][thcol]125ml[/thcol][thcol]250ml[/thcol][thcol]Bottle[/thcol][/trow][trow][tcol]<strong><span class=\"s1\">Red Wine 1</span></strong>[/tcol][tcol]$20[/tcol][tcol]$40[/tcol][tcol]$120[/tcol][/trow][trow][tcol]<strong><span class=\"s1\">Chateau Margaux</span></strong>[/tcol][tcol]$22[/tcol][tcol]$48[/tcol][tcol]$145[/tcol][/trow][trow][tcol]<strong>Penfolds Grange</strong>[/tcol][tcol]$32[/tcol][tcol]$66[/tcol][tcol]$180[/tcol][/trow][/table]\n\n[/spb_text_block] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"60px\" bottom_margin=\"60px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_text_block title=\"Cocktails\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 4%;padding-right: 4%;padding-bottom: 0%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/3\" el_position=\"first\"]\n\n[table type=\"standard_minimal\"][trow][thcol][/thcol][thcol][/thcol][/trow][trow][tcol]<strong><span class=\"s1\">Pink Gin Fizz</span></strong>[/tcol][tcol]$12[/tcol][/trow][trow][tcol]<strong><span class=\"s1\">Dirty Martini</span></strong>[/tcol][tcol]$18[/tcol][/trow][trow][tcol]<strong><span class=\"s1\">Old Fashioned</span></strong>[/tcol][tcol]$8[/tcol][/trow][trow][tcol]<strong>Mint Julep</strong>[/tcol][tcol]$24[/tcol][/trow][trow][tcol]<strong><span class=\"s1\">Bloody Mary</span></strong>[/tcol][tcol]$16[/tcol][/trow][trow][tcol]<b>Manhattan</b>[/tcol][tcol]$14[/tcol][/trow][/table]\n\n[/spb_text_block] [spb_text_block title=\"Coffee &amp; Tea\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 4%;padding-right: 4%;padding-bottom: 0%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/3\"]\n\n[table type=\"standard_minimal\"][trow][thcol][/thcol][thcol][/thcol][/trow][trow][tcol]<strong><span class=\"s1\">Filter Coffee</span></strong>[/tcol][tcol]$4.50[/tcol][/trow][trow][tcol]<b>Cappuccino</b>[/tcol][tcol]$6[/tcol][/trow][trow][tcol]<strong><span class=\"s1\">Flat White</span></strong>[/tcol][tcol]$6[/tcol][/trow][trow][tcol]<strong>Espresso</strong>[/tcol][tcol]$4[/tcol][/trow][trow][tcol]<strong><span class=\"s1\">Pot of Tea</span></strong>[/tcol][tcol]$16[/tcol][/trow][trow][tcol]<b>Earl Grey</b>[/tcol][tcol]$4[/tcol][/trow][/table]\n\n[/spb_text_block] [spb_text_block title=\"Craft Beers\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 4%;padding-right: 4%;padding-bottom: 0%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/3\" el_position=\"last\"]\n\n[table type=\"standard_minimal\"][trow][thcol][/thcol][thcol][/thcol][/trow][trow][tcol]<strong><span class=\"s1\">Brooklyn Lager</span></strong>[/tcol][tcol]$20[/tcol][/trow][trow][tcol]<strong><span class=\"s1\">Brewdog Punk IPA</span></strong>[/tcol][tcol]$18[/tcol][/trow][trow][tcol]<strong><span class=\"s1\">Camden Pale Ale</span></strong>[/tcol][tcol]$25[/tcol][/trow][trow][tcol]<strong>Anchor Steam</strong>[/tcol][tcol]$24[/tcol][/trow][trow][tcol]<strong><span class=\"s1\">Meantime Pale Ale</span></strong>[/tcol][tcol]$22[/tcol][/trow][trow][tcol]<b>Gamma Ray IPA</b>[/tcol][tcol]$23[/tcol][/trow][/table]\n\n[/spb_text_block] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"60px\" bottom_margin=\"60px\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer responsive_vis=\"hidden-xs_hidden-sm\" height=\"1px\" width=\"1/4\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"no\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/2\" el_position=\"last\"]\n<h3 style=\"text-align: center;\">If you have specific dietary requirements, please dont hesitate to ask us for help at <a href=\"#\">help@uplift.com</a></h3>\n[/spb_text_block]');\n\n\n\n\t$prebuilt_templates[\"goodsdemo-products\"] = array(\n\t\t\"id\" => \"goodsdemo-products\",\n\t\t\"name\" => \"Goods Demo - Products\",\n\t\t\"code\" => '[spb_products asset_type=\"latest-products\" category=\"Chairs\" products=\"0\" display_type=\"standard\" display_layout=\"standard\" multi_masonry=\"no\" carousel=\"no\" fullwidth=\"no\" columns=\"4\" item_count=\"12\" order=\"DESC\" button_enabled=\"no\" width=\"1/1\" el_position=\"first last\"]');\n\n\t$prebuilt_templates[\"goodsdemo-journal\"] = array(\n\t\t\"id\" => \"goodsdemo-journal\",\n\t\t\"name\" => \"Goods Demo - The Journal\",\n\t\t\"code\" => '[spb_recent_posts display_type=\"standard\" carousel=\"no\" item_columns=\"3\" item_count=\"3\" category=\"All\" offset=\"0\" posts_order=\"DESC\" excerpt_length=\"32\" fullwidth=\"no\" gutters=\"yes\" button_enabled=\"no\" pagination=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_recent_posts display_type=\"standard\" carousel=\"no\" item_columns=\"3\" item_count=\"3\" category=\"All\" offset=\"3\" posts_order=\"DESC\" excerpt_length=\"32\" fullwidth=\"no\" gutters=\"yes\" button_enabled=\"no\" pagination=\"yes\" width=\"1/1\" el_position=\"first last\"]');\n\n\n\n\n\n\n\t$prebuilt_templates[\"goodsdemo-about\"] = array(\n\t\t\"id\" => \"goodsdemo-about\",\n\t\t\"name\" => \"Goods Demo - About\",\n\t\t\"code\" => '[spb_image image=\"128\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"no\" fullwidth=\"no\" overflow_mode=\"none\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/2\" el_position=\"first\"] [spb_column width=\"1/2\" el_position=\"last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"no\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nNemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Lorem ipsum dolor sit amet isse potenti. Vesquam ante aliquet lacusemper elit. Cras neque nulla, convallis non.\n\nAt vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum.\n\n[/spb_text_block] [/spb_column] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [spb_row element_name=\"Row\" wrap_type=\"content-width\" row_bg_type=\"image\" row_bg_color=\"#222222\" color_row_height=\"content-height\" bg_image=\"17\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"80\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_el_class=\"no-shadow\" minimize_row=\"no\" simplified_controls=\"yes\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"no\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 10%;padding-left: 14%;padding-right: 14%;padding-bottom: 10%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\n\"Lorem ipsum dolor sit met, consectetur adipiscing elit. Integer imperdiet iaculis ipsum aliquet ultricies. Sed a tincidunt enim.\"\n[/spb_text_block] [/spb_row] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 6%;padding-left: 0%;padding-right: 0%;padding-bottom: 2%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nFollow us @upliftgoods\n\n[/spb_text_block] [spb_blog_grid item_count=\"1\" instagram_id=\"1193751843\" instagram_token=\"1193751843.5b9e1e6.c8c5c0a5df0e4d5687e389f24adb8643\" fullwidth=\"no\" width=\"1/1\" el_position=\"first last\"]');\n\n\t$prebuilt_templates[\"goodsdemo-contact\"] = array(\n\t\t\"id\" => \"goodsdemo-contact\",\n\t\t\"name\" => \"Goods Demo - Contact\",\n\t\t\"code\" => '\n\t\t[spb_gmaps size=\"400\" type=\"roadmap\" zoom=\"14\" map_controls=\"yes\" advanced_styling=\"yes\" style_array=\"JTVCJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJhbGwlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmxhYmVscy50ZXh0LmZpbGwlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc2F0dXJhdGlvbiUyMiUzQSUyMDM2JTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyY29sb3IlMjIlM0ElMjAlMjIlMjMzMzMzMzMlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJsaWdodG5lc3MlMjIlM0ElMjA0MCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMmFsbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzLnRleHQuc3Ryb2tlJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb2xvciUyMiUzQSUyMCUyMiUyM2ZmZmZmZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxpZ2h0bmVzcyUyMiUzQSUyMDE2JTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJhbGwlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmxhYmVscy5pY29uJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMmFkbWluaXN0cmF0aXZlJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJnZW9tZXRyeSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ2aXNpYmlsaXR5JTIyJTNBJTIwJTIyb2ZmJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJhZG1pbmlzdHJhdGl2ZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIyZ2VvbWV0cnkuZmlsbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb2xvciUyMiUzQSUyMCUyMiUyM2ZmZmZmZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxpZ2h0bmVzcyUyMiUzQSUyMDIwJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIyYWRtaW5pc3RyYXRpdmUlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmdlb21ldHJ5LnN0cm9rZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb2xvciUyMiUzQSUyMCUyMiUyM2ZlZmVmZSUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxpZ2h0bmVzcyUyMiUzQSUyMDE3JTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyd2VpZ2h0JTIyJTNBJTIwMS4yJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIyYWRtaW5pc3RyYXRpdmUlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmxhYmVscyUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ2aXNpYmlsaXR5JTIyJTNBJTIwJTIyb2ZmJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJsYW5kc2NhcGUlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmdlb21ldHJ5JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmNvbG9yJTIyJTNBJTIwJTIyJTIzZjNlYmU4JTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIybGlnaHRuZXNzJTIyJTNBJTIwMjAlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMmxhbmRzY2FwZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMmxhbmRzY2FwZS5tYW5fbWFkZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMmxhbmRzY2FwZS5uYXR1cmFsJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJsYWJlbHMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycG9pJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJnZW9tZXRyeSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb2xvciUyMiUzQSUyMCUyMiUyM2YzZWJlOCUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxpZ2h0bmVzcyUyMiUzQSUyMDIxJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJwb2klMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmxhYmVscyUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ2aXNpYmlsaXR5JTIyJTNBJTIwJTIyb2ZmJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJwb2kucGFyayUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIyZ2VvbWV0cnklMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyY29sb3IlMjIlM0ElMjAlMjIlMjNlOGRmZGMlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJsaWdodG5lc3MlMjIlM0ElMjAyMSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMnBvaS5wYXJrJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJsYWJlbHMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5oaWdod2F5JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJnZW9tZXRyeS5maWxsJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmNvbG9yJTIyJTNBJTIwJTIyJTIzZThkZmRjJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIybGlnaHRuZXNzJTIyJTNBJTIwMTclMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ2aXNpYmlsaXR5JTIyJTNBJTIwJTIyb2ZmJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJyb2FkLmhpZ2h3YXklMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmdlb21ldHJ5LnN0cm9rZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnN0eWxlcnMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb2xvciUyMiUzQSUyMCUyMiUyM2ZmZmZmZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxpZ2h0bmVzcyUyMiUzQSUyMDI5JTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyd2VpZ2h0JTIyJTNBJTIwMC4yJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5oaWdod2F5JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJsYWJlbHMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5hcnRlcmlhbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIyZ2VvbWV0cnklMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyY29sb3IlMjIlM0ElMjAlMjIlMjNlOGRmZGMlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJsaWdodG5lc3MlMjIlM0ElMjAxOCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvbiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5hcnRlcmlhbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMnJvYWQuYXJ0ZXJpYWwlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmxhYmVscy50ZXh0JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvbiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmh1ZSUyMiUzQSUyMCUyMiUyM2ZmMDAwMCUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5sb2NhbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIyZ2VvbWV0cnklMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyY29sb3IlMjIlM0ElMjAlMjIlMjNlY2VmZjElMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJsaWdodG5lc3MlMjIlM0ElMjAxNiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIycm9hZC5sb2NhbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJmZWF0dXJlVHlwZSUyMiUzQSUyMCUyMnRyYW5zaXQlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmdlb21ldHJ5JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmNvbG9yJTIyJTNBJTIwJTIyJTIzZjJmMmYyJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIybGlnaHRuZXNzJTIyJTNBJTIwMTklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ2aXNpYmlsaXR5JTIyJTNBJTIwJTIyb2ZmJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJ0cmFuc2l0JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJsYWJlbHMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIydHJhbnNpdC5zdGF0aW9uJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZWxlbWVudFR5cGUlMjIlM0ElMjAlMjJsYWJlbHMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzdHlsZXJzJTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydmlzaWJpbGl0eSUyMiUzQSUyMCUyMm9mZiUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZlYXR1cmVUeXBlJTIyJTNBJTIwJTIyd2F0ZXIlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbGVtZW50VHlwZSUyMiUzQSUyMCUyMmdlb21ldHJ5JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmNvbG9yJTIyJTNBJTIwJTIyJTIzYmNhYWE0JTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIybGlnaHRuZXNzJTIyJTNBJTIwMTclMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ3ZWlnaHQlMjIlM0ElMjAlMjIxJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmVhdHVyZVR5cGUlMjIlM0ElMjAlMjJ3YXRlciUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmVsZW1lbnRUeXBlJTIyJTNBJTIwJTIybGFiZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3R5bGVycyUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnZpc2liaWxpdHklMjIlM0ElMjAlMjJvZmYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMEElNUQ=\" saturation=\"color\" fullscreen=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_map_pin address=\"New York\" pin_image=\"16042\" width=\"1/1\" el_position=\"first last\"] This is a map pin. Click the edit button to change it. [/spb_map_pin] [/spb_gmaps] [spb_blank_spacer height=\"50px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block title=\"Drop us a line\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"no\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/2\" el_position=\"first\"]\n\t\t[contact-form-7 id=\"15387\" title=\"Contact form 1\"]\n\n[/spb_text_block] [spb_text_block title=\"Information\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"no\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/4\"]\n\nLorem ipsum dolor sit amet isse potenti. Vesquam ante aliquet lacusemper elit. Cras neque nulla, convallis non commodo et, euismod nonsese. At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium.\n\n[social]\n\n[/spb_text_block] [spb_text_block title=\"Our address\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"no\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" border_size=\"0\" border_styling_global=\"default\" width=\"1/4\" el_position=\"last\"]\n\nNo.1 Abbey Road,\nLondon,\nW1 ECH\nUK\n\nCall: +44 (0) 800 123 4567\nEmail: info@swiftideas.net\n\n[/spb_text_block]');\n\n\n\n\t$prebuilt_templates[\"landing-home\"] = array(\n\t\"id\" => \"landing-home\",\n\t\"name\" => \"Landing Demo - Home\",\n\t\"code\" => '[spb_row element_name=\"Intro: Hero\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" row_style=\"dark\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_header_style=\"dark\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_responsive_vis=\"hidden-xs_hidden-sm\" row_id=\"hero\" row_name=\"hero\" minimize_row=\"yes\" simplified_controls=\"no\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 11%;padding-left: 0%;padding-right: 0%;padding-bottom: 9%;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"no\" border_styling_global=\"default\" width=\"1/3\" el_position=\"first\"] [spb_animated_headline before_text=\"Introducing uplift. Building your site has never been\" animated_strings=\"better,faster,easier,nicer\" animation_type=\"clip\" textstyle=\"impact-text\" textalign=\"left\" textcolor=\"#546e7a\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"40px\" width=\"1/1\" el_position=\"first last\"] [spb_button button_text=\"View main demo\" button_size=\"standard\" button_colour=\"accent\" button_type=\"standard\" rounded=\"yes\" button_dropshadow=\"no\" button_icon=\"sf-icon-quickview\" button_link=\"http://uplift.swiftideas.com/home/\" button_target=\"_self\" align=\"left\" animation=\"none\" animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [/spb_column] [spb_image image=\"129\" image_size=\"full\" image_width=\"750\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"2/3\" el_position=\"last\"] [/spb_row] [spb_row element_name=\"Intro: Icon Grid x 4\" wrap_type=\"full-width\" row_bg_type=\"color\" color_row_height=\"content-height\" row_style=\"dark\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_header_style=\"dark\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_responsive_vis=\"hidden-xs_hidden-sm\" minimize_row=\"no\" simplified_controls=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_divider type=\"thin\" text=\"Go to top\" top_margin=\"0px\" bottom_margin=\"0px\" fullwidth=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box_grid columns=\"4\" colour_style=\"dark\" el_class=\"pb0 mb0\" width=\"1/1\" el_position=\"first last\"]\n\n[spb_icon_box_grid_element title=\"Easy to use,\nflexible & powerful\" target=\"\" link=\"#main1\" icon=\"svg-icon-picker-item outline-svg design-outline_wand-99\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"Fully Responsive\nwith fluid grid\" target=\"\" link=\"#main2\" icon=\"svg-icon-picker-item outline-svg design-outline_tablet-mobile\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"A Page Builder\nthats fast & simple\" target=\"\" link=\"#main3\" icon=\"svg-icon-picker-item outline-svg business-outline_calculator\"][/spb_icon_box_grid_element][spb_icon_box_grid_element title=\"Cutting edge features\n& attention to detail\" target=\"\" link=\"#features\" icon=\"svg-icon-picker-item outline-svg ui-1_zoom-split\"][/spb_icon_box_grid_element]\n\n[/spb_icon_box_grid] [/spb_row] [spb_row element_name=\"Main 1: Better, faster, less effort\" wrap_type=\"full-width\" row_bg_type=\"color\" row_bg_color=\"#eceff1\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_header_style=\"dark\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"main1\" minimize_row=\"yes\" simplified_controls=\"no\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"120px\" width=\"1/1\" el_position=\"first last\"] [spb_image image=\"121\" image_size=\"full\" image_width=\"1061\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"left\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/2\" el_position=\"first\"] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"18\" simplified_controls=\"no\" border_styling_global=\"default\" width=\"1/2\" el_position=\"last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 0%;padding-right: 0%;padding-bottom: 4%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nA new theme thats as easy to use as it is flexible & powerful.\nWelcome to uplift, our most accomplished theme yet. It has been intelligently engineered with performance in mind, coupled with our legendary attention to detail. The result isa true multi-purpose theme that is [highlight]suitable for all levels of experience.[/highlight] But dont take our word for it...\n\n[/spb_text_block] [spb_button button_text=\"What people are saying\" button_size=\"large\" button_colour=\"accent\" button_type=\"standard\" rounded=\"yes\" button_dropshadow=\"no\" button_icon=\"sf-icon-quote\" button_link=\"#reviews\" button_target=\"_self\" align=\"left\" animation=\"none\" animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [/spb_column] [spb_blank_spacer height=\"120px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Main 2: Mobile\" wrap_type=\"full-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"main2\" minimize_row=\"yes\" simplified_controls=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"120px\" width=\"1/1\" el_position=\"first last\"] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"18\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/2\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 0%;padding-right: 0%;padding-bottom: 4%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nMore than Responsive.\nBuilt using the sleek, intuitive, and powerful Bootstrap framework, [highlight]Uplift will look great on any device.[/highlight] It also comes with the ability to control which devices certain elements are seen on and includes a Responsive Visibility Shortcode for extra control.\n\n[/spb_text_block] [spb_button button_text=\"Responsive Visibility\" button_size=\"large\" button_colour=\"accent\" button_type=\"standard\" rounded=\"yes\" button_dropshadow=\"no\" button_icon=\"nucleo-icon-stretch\" button_link=\"http://uplift.swiftideas.com/elements/responsive-visibility/\" button_target=\"_self\" align=\"left\" animation=\"none\" animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [/spb_column] [spb_image image=\"126\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"right\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/2\" el_position=\"last\"] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_image image=\"128\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"left\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/2\" el_position=\"first\"] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"no\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 10%!important;padding-right: 10%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/2\" el_position=\"last\"] [spb_icon_box title=\"4 Mobile Header Layouts\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"design-outline_mobile-dev\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#7eced5\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/1\" el_position=\"first last\"]\n\nChoose from Left Logo, Right Logo, Centred Logo (menu left, cart right) or Centred Logo (cart right, menu left.)\n\n[/spb_icon_box] [spb_icon_box title=\"2 Mobile Menu Types\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"files-outline_single-copy-04\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#7eced5\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/1\" el_position=\"first last\"]\n\nChoose from Slideout or Overlay. Both can accomodate search box, translate, cart and account options.\n\n[/spb_icon_box] [spb_icon_box title=\"Gesture Compatible\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"gestures-outline_scroll-horitontal\" animate_svg=\"no\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#7eced5\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/1\" el_position=\"first last\"]\n\nUplift can be used intuitively on mobile devices, so users can swipe their way through your content.\n\n[/spb_icon_box] [/spb_column] [spb_blank_spacer height=\"140px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Main 3: Pagebuilder\" wrap_type=\"full-width\" row_bg_type=\"color\" row_bg_color=\"#eceff1\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"main3\" minimize_row=\"yes\" simplified_controls=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"120px\" width=\"1/1\" el_position=\"first last\"] [spb_column col_animation=\"none\" col_animation_delay=\"600\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"20\" simplified_controls=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/2\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 0%;padding-right: 0%;padding-bottom: 0%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nBuilding the easy way.\n[highlight]No coding or design knowledge required![/highlight] Our newly improved Page Builder will save you time and its now even easier to use. It comes loaded with 54 useful elements and the following:\n\n[/spb_text_block] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 2%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\n[one_half] [list extraclass=\"\"] [list_item icon=\"nucleo-icon-check\"]Frequently Used Elements[/list_item] [list_item icon=\"nucleo-icon-check\"]History & Undo functionality[/list_item] [list_item icon=\"nucleo-icon-check\"]Simple & Intuitive to use[/list_item] [/list] [/one_half] [one_half_last] [list extraclass=\"\"] [list_item icon=\"nucleo-icon-check\"] 42 Pre-built pages[/list_item] [list_item icon=\"nucleo-icon-check\"]Save your elements & pages[/list_item] [list_item icon=\"nucleo-icon-check\"]Visual Composer included[/list_item] [/list] [/one_half_last]\n\n[/spb_text_block] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 0%;padding-right: 0%;padding-bottom: 2%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\n[sf_button colour=\"accent\" type=\"standard\" size=\"large\" link=\"http://pagebuilder.swiftideas.com/\" target=\"_blank\" icon=\"sf-icon-reply\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]Take A Test Drive[/sf_button] [sf_button colour=\"accent\" type=\"bordered\" size=\"large\" link=\"#demos\" target=\"_self\" icon=\"sf-icon-quickview\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]See What We Built[/sf_button]\n\n[/spb_text_block] [/spb_column] [spb_image image=\"127\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"right\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"600\" width=\"1/2\" el_position=\"last\"] [spb_blank_spacer height=\"140px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Demos\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#455a64\" color_row_height=\"content-height\" row_style=\"light\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_header_style=\"light\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"demos\" minimize_row=\"yes\" simplified_controls=\"no\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"90px\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 4%;padding-left: 0%;padding-right: 0%;padding-bottom: 4%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nStunning Demos\nIncluded free and easy to setup with our one-click demo install\n\n[/spb_text_block] [spb_portfolio display_type=\"multi-size-masonry\" multi_size_ratio=\"4/3\" fullwidth=\"no\" gutters=\"yes\" columns=\"3\" show_title=\"yes\" show_subtitle=\"yes\" show_excerpt=\"yes\" hover_show_excerpt=\"no\" excerpt_length=\"20\" item_count=\"9\" category=\"All\" order_by=\"none\" order=\"DESC\" portfolio_filter=\"no\" pagination=\"none\" button_enabled=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"no\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nMore coming soon!\n\n[/spb_text_block] [spb_blank_spacer height=\"90px\" width=\"1/1\" el_position=\"first last\"] [spb_promo_bar display_type=\"promo-button\" promo_bar_text=\"Crank your power to the max\" promo_bar_text_size=\"standard\" btn_text=\"Purchase Uplift\" btn_color=\"accent\" btn_type=\"rounded\" href=\"http://uplift.swiftideas.com/purchase\" target=\"_self\" bg_color=\"#37474f\" text_color=\"#7dced4\" page_align=\"no\" fullwidth=\"yes\" width=\"1/1\" el_position=\"first last\"]\n\nEnter your text here\n\n[/spb_promo_bar] [/spb_row] [spb_row element_name=\"Features 1: Pagebuilder, Page Headers, Performance\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#eceff1\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_header_style=\"dark\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"features\" minimize_row=\"yes\" simplified_controls=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 9%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 4%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nFeatures and Details\n[/spb_text_block] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\" el_position=\"first\"] [spb_image element_name=\"pb img\" image=\"107\" image_size=\"full\" image_width=\"360\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"pb\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nPagebuilder with 54 elements\n\nUplift makes it easy to create beautiful pages with our new improved Pagebuilder. Its super easy to use and comes with a host of useful features.\n\n[sf_button colour=\"accent\" type=\"bordered\" size=\"standard\" link=\"#main3\" target=\"_self\" icon=\"sf-icon-up-chevron\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]Find out more[/sf_button]\n\n[/spb_text_block] [/spb_column] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\"] [spb_image element_name=\"page headers img\" image=\"84\" image_size=\"full\" image_width=\"360\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"page headers\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\n3 Page Header Styles\n\nFor added flexibility Uplift comes with 3 different types of page header: Standard, Hero and our new innovative App-style page header.\n\n[sf_button colour=\"accent\" type=\"standard\" size=\"standard\" link=\"http://uplift.swiftideas.com/pages/our-offices/\" target=\"_self\" icon=\"nucleo-icon-link\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]See example[/sf_button]\n\n[/spb_text_block] [/spb_column] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\" el_position=\"last\"] [spb_image element_name=\"performance img\" image=\"106\" image_size=\"full\" image_width=\"360\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"performance\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nAccelerated Performance\n\nUplift is SEO optimised and built with clean, semantic HTML5 code. It performs with optional speed with sacrificing style and features.\n\n[sf_button colour=\"accent\" type=\"standard\" size=\"standard\" link=\"#\" target=\"_self\" icon=\"nucleo-icon-file\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]See report[/sf_button]\n\n[/spb_text_block] [/spb_column] [/spb_row] [spb_row element_name=\"Features 2: Shop: Headers, Pages\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#eceff1\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_header_style=\"dark\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"features2\" minimize_row=\"yes\" simplified_controls=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"50px\" responsive_vis=\"hidden-xs_hidden-sm\" width=\"1/1\" el_position=\"first last\"] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\" el_position=\"first\"] [spb_image element_name=\"Shop img\" image=\"82\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"Shop\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\n3 Shop Styles + 3 Product Posts\n\nSelling has never been easier or looked as good! Choose from Standard, Multi-Masonry or Thumb Slider shop styles. And Standard, Full-screen or Extended product posts.\n\n[sf_button colour=\"accent\" type=\"standard\" size=\"standard\" link=\"http://uplift.swiftideas.com/shop/\" target=\"_self\" icon=\"nucleo-icon-link\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]See example[/sf_button]\n\n[/spb_text_block] [/spb_column] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\"] [spb_image element_name=\"Headers img\" image=\"98\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"Headers\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 2%;padding-right: 2%;padding-bottom: 0%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\n10+ Header Types\n\nGo full-width or site-width, go transparent (light or dark), go vertical. Have a top bar or sticky option, sticky resizing, sticky show/hide. Customise further with our drag-n-drop configurator.\n\n[/spb_text_block] [/spb_column] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\" el_position=\"last\"] [spb_image element_name=\"pre-built pages img\" image=\"80\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"pre-built pages\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\n42+ Pre-built Pages\n\nUplift comes loaded with 42 impressive pre-built pages designed for a wide range of uses. It also includes 20+ stunning standard pages, beautifully crafted and ready to use.\n\n[sf_button colour=\"accent\" type=\"standard\" size=\"standard\" link=\"http://uplift.swiftideas.com/pages/about-us/\" target=\"_self\" icon=\"nucleo-icon-link\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]See example[/sf_button]\n\n[/spb_text_block] [/spb_column] [/spb_row] [spb_row element_name=\"Features 3: Push navs, Team AJAX, Nucleo\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#eceff1\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_header_style=\"dark\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"features3\" minimize_row=\"yes\" simplified_controls=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"50px\" responsive_vis=\"hidden-xs_hidden-sm\" width=\"1/1\" el_position=\"first last\"] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\" el_position=\"first\"] [spb_image element_name=\"Push Navs img\" image=\"78\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"push nav\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\n6 Types of Creative Navigation\n\n3 types of Push navigation (full-page, 1/4 and mini.) Also includes 2 Slideout Menus & the Overlay menu.\n\n[sf_button colour=\"accent\" type=\"standard\" size=\"standard\" link=\"http://uplift.swiftideas.com/\" target=\"_self\" icon=\"nucleo-icon-link\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]See example[/sf_button]\n\n[/spb_text_block] [/spb_column] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\"] [spb_image element_name=\"Team ajax img\" image=\"79\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"team ajax\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nTeam AJAX Slideout\n\nShow off your team members in style with Uplifts ajax team member bio slideout!\n\n[sf_button colour=\"accent\" type=\"standard\" size=\"standard\" link=\"/pages/meet-the-team/\" target=\"_self\" icon=\"nucleo-icon-link\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]See example[/sf_button]\n\n[/spb_text_block] [/spb_column] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\" el_position=\"last\"] [spb_image element_name=\"nucleo img\" image=\"104\" image_size=\"full\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"nucleo icons\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nIncredible Nucleo SVG Icons\n\n400+ incredible Nucleo SVG icons. Available in 2 styles (stroke and full colour) and animated!\n\n[sf_button colour=\"accent\" type=\"standard\" size=\"standard\" link=\"http://uplift.swiftideas.com/elements/icon-boxes/\" target=\"_self\" icon=\"nucleo-icon-link\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]See example[/sf_button]\n\n[/spb_text_block] [/spb_column] [/spb_row] [spb_row element_name=\"Features 4: Blog, One Page, Port\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#eceff1\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_header_style=\"dark\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"features4\" minimize_row=\"yes\" simplified_controls=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"50px\" responsive_vis=\"hidden-xs_hidden-sm\" width=\"1/1\" el_position=\"first last\"] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\" el_position=\"first\"] [spb_image element_name=\"Blog img\" image=\"76\" image_size=\"full\" image_width=\"360\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"Blog\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\n10+ Blog Variations\n\nChoose from Timeline, Masonry or Standard (with alternative styling.) Each available in a variety of options and with or without sidebars.\n\n[sf_button colour=\"accent\" type=\"standard\" size=\"standard\" link=\"/blog/blog-timeline-full-width/\" target=\"_self\" icon=\"nucleo-icon-link\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]See example[/sf_button]\n\n[/spb_text_block] [/spb_column] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\"] [spb_image element_name=\"one page nav img\" image=\"24\" image_size=\"full\" image_width=\"360\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"One Page nav\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\n2 One-Page Navigation Styles\n\nUplift comes with 2 different types of one-page navigation. Standard with text tooltips and Counter with arrows.\n\n[sf_button colour=\"accent\" type=\"standard\" size=\"standard\" link=\"/home/home-start-up/\" target=\"_self\" icon=\"nucleo-icon-link\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]See example[/sf_button]\n\n[/spb_text_block] [/spb_column] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\" el_position=\"last\"] [spb_image element_name=\"Port img\" image=\"77\" image_size=\"full\" image_width=\"360\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"Port\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\n14+ Portfolio Styles\n\nFrom 2, 3 & 4 columns,Standard, Gallery, Masonry, Multi-Size Masonry, Boxed or Full Width, with or without borders.\n\n[sf_button colour=\"accent\" type=\"standard\" size=\"standard\" link=\"/portfolio/portfolio-three-column-gallery/\" target=\"_self\" icon=\"nucleo-icon-link\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]See example[/sf_button]\n\n[/spb_text_block] [/spb_column] [/spb_row] [spb_row element_name=\"Features 5: Fonts, Retina, Translate\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#eceff1\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_header_style=\"dark\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"features5\" minimize_row=\"yes\" simplified_controls=\"no\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 1%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"50px\" responsive_vis=\"hidden-xs_hidden-sm\" width=\"1/1\" el_position=\"first last\"] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"no\" border_styling_global=\"default\" width=\"1/3\" el_position=\"first\"] [spb_image element_name=\"Fonts img\" image=\"71\" image_size=\"full\" image_width=\"360\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"fonts\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\n700+ Free Google Fonts\n\nChoose from a huge selection of FREE Google fonts. Easily preview them and adjust the weight, size, line-height, letter-spacing and colour.\n\n[/spb_text_block] [/spb_column] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"no\" border_styling_global=\"default\" width=\"1/3\"] [spb_image element_name=\"Retina-Ready\" image=\"74\" image_size=\"full\" image_width=\"360\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"Retina-Ready\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nCompletely Retina-Ready\n\nWe have taken great care to ensure that Uplift is fully retina-ready. So now matter what device it is being viewed on, it will always look great.\n\n[/spb_text_block] [/spb_column] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"no\" border_styling_global=\"default\" width=\"1/3\" el_position=\"last\"] [spb_image element_name=\"Translate\" image=\"27\" image_size=\"full\" image_width=\"360\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"translate\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\n100% Translatable\n\nUplift is fully translatable using the WPML plugin and includes RTL Support. So you can truly connect with a global audience!\n\n[/spb_text_block] [/spb_column] [/spb_row] [spb_row element_name=\"Features 6: Sliders, Responsive, Colours\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#eceff1\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_header_style=\"dark\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"features6\" minimize_row=\"yes\" simplified_controls=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"50px\" responsive_vis=\"hidden-xs_hidden-sm\" width=\"1/1\" el_position=\"first last\"] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\" el_position=\"first\"] [spb_image element_name=\"Sliders img\" image=\"73\" image_size=\"full\" image_width=\"360\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"Sliders\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\n2 Awesome Sliders\n\nChoose from the infamous Revolution Slider, and of course our new and improved Swift Slider.\n\n[sf_button colour=\"accent\" type=\"standard\" size=\"standard\" link=\"http://uplift.swiftideas.com/\" target=\"_self\" icon=\"nucleo-icon-link\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]See example[/sf_button]\n\n[/spb_text_block] [/spb_column] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\"] [spb_image element_name=\"respsonsive img\" image=\"109\" image_size=\"full\" image_width=\"360\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"respsonsive\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nFully Responsive\n\nSo your customers will have the same stunning functionality whatever device they are using.\n\n[sf_button colour=\"accent\" type=\"bordered\" size=\"standard\" link=\"#main2\" target=\"_self\" icon=\"sf-icon-up-chevron\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]Find out more[/sf_button]\n\n[/spb_text_block] [/spb_column] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\" el_position=\"last\"] [spb_image element_name=\"colours img\" image=\"68\" image_size=\"full\" image_width=\"360\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"Colours\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nUnlimited Colours\n\nUplift can be completely customised using the Coloriser to create a unique look. Or you can use one of our 7 preset colour schemes.\n\n[/spb_text_block] [/spb_column] [/spb_row] [spb_row element_name=\"Features 7: PSDs, Browsers, Support\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#eceff1\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_header_style=\"dark\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"features7\" minimize_row=\"yes\" simplified_controls=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"50px\" responsive_vis=\"hidden-xs_hidden-sm\" width=\"1/1\" el_position=\"first last\"] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\" el_position=\"first\"] [spb_image element_name=\"PSDs img\" image=\"65\" image_size=\"full\" image_width=\"360\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"PSDs\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\n12 PSDs Included\n\nUplift includes PSDs containing all of Page Builder elements, shortcodes etc. All are well organised and clearly labelled.\n\n[/spb_text_block] [/spb_column] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\"] [spb_image element_name=\"browsers img\" image=\"67\" image_size=\"full\" image_width=\"360\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"Browsers\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nFully Browser Compatible\n\nUplift has been rigorously tried and tested on all major browsers to ensure it is compatible and consistent.\n\n[/spb_text_block] [/spb_column] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\" el_position=\"last\"] [spb_image element_name=\"support img\" image=\"66\" image_size=\"full\" image_width=\"360\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"Support\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nWere here to help\n\nWe pride ourselves on professional and timely support. If you have any pre-sales questions or need any help, do not hesitate to ask.\n\n[/spb_text_block] [/spb_column] [/spb_row] [spb_row element_name=\"Features 8: Mega Menu, Video Tuts, Child Theme\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#eceff1\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_header_style=\"dark\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"features8\" minimize_row=\"yes\" simplified_controls=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"50px\" responsive_vis=\"hidden-xs_hidden-sm\" width=\"1/1\" el_position=\"first last\"] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\" el_position=\"first\"] [spb_image element_name=\"mega menu img\" image=\"124\" image_size=\"full\" image_width=\"360\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"Mega Menu\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nMega Menu\n\nUplift allows you to roll out a super slick and extremely flexible mega menu. It can display menus from 1 to 8 columns, and even show widgets!\n\n[sf_button colour=\"accent\" type=\"standard\" size=\"standard\" link=\"http://uplift.swiftideas.com/\" target=\"_self\" icon=\"nucleo-icon-link\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]See example[/sf_button]\n\n[/spb_text_block] [/spb_column] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\"] [spb_image element_name=\"video tuts img\" image=\"103\" image_size=\"full\" image_width=\"360\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"Video tutorials\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nVideo Tutorials\n\nAs intuitive as Uplift is, we have provided a range of HD narrated tutorial videos. These cover a range of subjects, from basics to advanced tips & tricks.\n\n[sf_button colour=\"accent\" type=\"standard\" size=\"standard\" link=\"https://vimeo.com/swiftideas/videos/\" target=\"_self\" icon=\"nucleo-icon-video\" dropshadow=\"no\" rounded=\"yes\" extraclass=\"\"]See Videos[/sf_button]\n\n[/spb_text_block] [/spb_column] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\" el_position=\"last\"] [spb_image element_name=\"child theme img\" image=\"101\" image_size=\"full\" image_width=\"360\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"Child theme\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nChild Theme\n\nUplift comes with a child theme ready to use out of the box. Highly recommended if you are planning template or large css changes.\n\n[/spb_text_block] [/spb_column] [/spb_row] [spb_row element_name=\"Features 9: Midnight, Admin Panel, BBpress\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#eceff1\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_header_style=\"dark\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"false\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"features9\" minimize_row=\"yes\" simplified_controls=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"50px\" responsive_vis=\"hidden-xs_hidden-sm\" width=\"1/1\" el_position=\"first last\"] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\" el_position=\"first\"] [spb_image element_name=\"midnight img\" image=\"85\" image_size=\"full\" image_width=\"360\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"Retina-Ready\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nMidnight Header\n\nUplifts header can change from light to dark (and vice versa) depending on the colour of the content under it. (see it action on this page!)\n\n[/spb_text_block] [/spb_column] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\"] [spb_image element_name=\"admin panel img\" image=\"69\" image_size=\"full\" image_width=\"360\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"admin panel\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nAdvanced Admin Panel\n\nCustomise Uplift even further with a plethora of advanced options, settings & powerful page meta.\n\n[/spb_text_block] [/spb_column] [spb_column col_animation=\"none\" col_animation_delay=\"0\" col_bg_type=\"cover\" col_parallax_image_movement=\"fixed\" col_parallax_image_speed=\"0.5\" col_padding=\"0\" simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/3\" el_position=\"last\"] [spb_image element_name=\"colours img\" image=\"105\" image_size=\"full\" image_width=\"360\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"Colours\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 2%!important;padding-right: 2%!important;padding-bottom: 0%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nbbpress Compatible\n\nUplift is bbPress compatible so you can setup your forum without any hassle.\n\n[/spb_text_block] [/spb_column] [spb_blank_spacer height=\"90px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Additional Features\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#78909c\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" minimize_row=\"yes\" simplified_controls=\"no\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 2%;padding-left: 0%;padding-right: 0%;padding-bottom: 2%;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_text_block element_name=\"but wait theres more!\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 2%;padding-left: 0%;padding-right: 0%;padding-bottom: 2%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/2\" el_position=\"first\"]\n\nBut wait, theres more!\n\n[/spb_text_block] [spb_text_block element_name=\"modal button\" animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 4%;padding-left: 0%;padding-right: 0%;padding-bottom: 0%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/2\" el_position=\"last\"]\n\n[sf_modal header=\"Additional Features\" btn_colour=\"white\" btn_type=\"standard\" btn_size=\"large\" btn_icon=\"nucleo-icon-copy\" btn_text=\"See additional features\"] [one_half] [list extraclass=\"\"] [list_item icon=\"sf-icon-check\"]Global Banner[/list_item] [list_item icon=\"sf-icon-check\"]Subscribe Bar[/list_item] [list_item icon=\"sf-icon-check\"]iLightbox Included[/list_item] [list_item icon=\"sf-icon-check\"]Total Product Control[/list_item] [list_item icon=\"sf-icon-check\"]Slick Add to cart Process[/list_item] [list_item icon=\"sf-icon-check\"]5 Cart Animations[/list_item] [list_item icon=\"sf-icon-check\"]Loaded with Shortcodes[/list_item] [list_item icon=\"sf-icon-check\"]41 CSS3 Animations[/list_item] [list_item icon=\"sf-icon-check\"]RTL Support[/list_item] [list_item icon=\"sf-icon-check\"]Custom Font Integration[/list_item] [list_item icon=\"sf-icon-check\"]Typographic Control[/list_item] [list_item icon=\"sf-icon-check\"]Social Integration[/list_item] [list_item icon=\"sf-icon-check\"]SEO Optimised[/list_item] [list_item icon=\"sf-icon-check\"]5 Logo Animations[/list_item] [list_item icon=\"sf-icon-check\"]Boxed/Full-width Layout[/list_item] [list_item icon=\"sf-icon-check\"]Mini Header[/list_item] [list_item icon=\"sf-icon-check\"]Inner/Outer Page Backgrounds[/list_item] [list_item icon=\"sf-icon-check\"]Single, Dual or No Sidebars[/list_item] [list_item icon=\"sf-icon-check\"]Advanced Footer[/list_item] [list_item icon=\"sf-icon-check\"]10 Custom Widgets[/list_item] [list_item icon=\"sf-icon-check\"]Custom 404 Pages[/list_item] [list_item icon=\"sf-icon-check\"]LoveIt / Likes support[/list_item] [list_item icon=\"sf-icon-check\"]Gradient Overlays[/list_item] [list_item icon=\"sf-icon-check\"]Custom CSS/JS[/list_item] [list_item icon=\"sf-icon-check\"]2 Types of Search[/list_item] [list_item icon=\"sf-icon-check\"]Header show/hide[/list_item] [list_item icon=\"sf-icon-check\"]Custom Admin Logo support[/list_item] [list_item icon=\"sf-icon-check\"]Preluders + Page Transitions[/list_item] [list_item icon=\"sf-icon-check\"]Pre-minified stylesheets/scripts[/list_item] [list_item icon=\"sf-icon-check\"]Video Background Support (mp4, web, ogg)[/list_item] [/list] [/one_half] [one_half_last] [list extraclass=\"\"] [list_item icon=\"sf-icon-check\"]1-6 Column Support[/list_item] [list_item icon=\"sf-icon-check\"]Custom Parallax Types[/list_item] [list_item icon=\"sf-icon-check\"]Visual Composer Compatible[/list_item] [list_item icon=\"sf-icon-check\"]Detailed Documentation[/list_item] [list_item icon=\"sf-icon-check\"]Contact 7 Forms support[/list_item] [list_item icon=\"sf-icon-check\"]Gravity Forms Support[/list_item] [list_item icon=\"sf-icon-check\"]7 Colour Schemes[/list_item] [list_item icon=\"sf-icon-check\"]Unlimited Custom Menus[/list_item] [list_item icon=\"sf-icon-check\"]Shortcode Generator[/list_item] [list_item icon=\"sf-icon-check\"]Smooth Scroll deep links[/list_item] [list_item icon=\"sf-icon-check\"]Sticky Header [/list_item] [list_item icon=\"sf-icon-check\"]Mobile 2 Click[/list_item] [list_item icon=\"sf-icon-check\"]Back To Top[/list_item] [list_item icon=\"sf-icon-check\"]2 Sidebar Widths[/list_item] [list_item icon=\"sf-icon-check\"]Sticky Sidebars[/list_item] [list_item icon=\"sf-icon-check\"]Breadcrumbs on/off[/list_item] [list_item icon=\"sf-icon-check\"]Custom favicon[/list_item] [list_item icon=\"sf-icon-check\"]Custom iOS Logos[/list_item] [list_item icon=\"sf-icon-check\"]Front End Switcher[/list_item] [list_item icon=\"sf-icon-check\"]2 Maintenance Modes[/list_item] [list_item icon=\"sf-icon-check\"]Full-width Headers[/list_item] [list_item icon=\"sf-icon-check\"]Vertical Headers[/list_item] [list_item icon=\"sf-icon-check\"]Super Search[/list_item] [list_item icon=\"sf-icon-check\"]Custom Font Support[/list_item] [list_item icon=\"sf-icon-check\"]Custom Iconfont Support[/list_item] [list_item icon=\"sf-icon-check\"]Custom Post Types[/list_item] [list_item icon=\"sf-icon-check\"]Custom Self-hosted Audio Player[/list_item] [list_item icon=\"sf-icon-check\"]Custom Self-hosted Video Player[/list_item] [list_item icon=\"sf-icon-check\"]Site Width in pixels or percentage[/list_item] [list_item icon=\"sf-icon-check\"]Full-screen Video Player (Vimeo & YouTube)[/list_item] [/list] [/one_half_last]\n\n[/sf_modal]\n\n[/spb_text_block] [/spb_row] [spb_row element_name=\"Testimonials\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"reviews\" minimize_row=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 9%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 4%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nWhat people are saying\n[/spb_text_block] [spb_testimonial_carousel item_count=\"6\" order=\"date\" category=\"All\" page_link=\"no\" showcase=\"yes\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"120px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_section element_name=\"Purchase\" spb_section_id=\"19\" width=\"1/1\" el_position=\"first last\"] [spb_row element_name=\"F.A.Q.s\" wrap_type=\"content-width\" row_bg_type=\"color\" color_row_height=\"content-height\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"fixed\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"0\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"faqs\" row_name=\"faqs\" minimize_row=\"yes\" simplified_controls=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 9%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 4%!important;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\nFrequently Asked Questions\n[/spb_text_block] [spb_icon_box element_name=\"colour scheme\" title=\"Can I change the theme colour scheme?\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"design-outline_palette\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#7eced5\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/2\" el_position=\"first\"]\n\nYes - we utilise the WordPress Customiser for all our colour controls. We also provide functionality which allows you to export/import and save multiple colour schemes.\n\n[/spb_icon_box] [spb_icon_box element_name=\"child theme?\" title=\"Is a child theme supplied?\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"design-outline_path-exclude\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#7eced5\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/2\" el_position=\"last\"]\n\nYes, a child theme is provided and ready to use out of the box. We highly recommend using a child theme if you are planning on making any template changes or large css changes.\n\n[/spb_icon_box] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box element_name=\"pagebuilder?\" title=\"Is a page builder included?\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"ui-2_tile-56\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#7eced5\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/2\" el_position=\"first\"]\n\nYes, not one - but two! We include our very own Swift Page Builder which we highly recommend due to the tight integration with the theme. We also include Visual Composer for those who prefer it.\n\n[/spb_icon_box] [spb_icon_box element_name=\"translatable?\" title=\"How can the theme be translated?\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"location-outline_world\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#7eced5\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/2\" el_position=\"last\"]\n\nWe provide language files for you to translate, and Uplift is also compatible with WPML, Polylang, and other translation plugins should you wish to use those.\n\n[/spb_icon_box] [spb_blank_spacer height=\"30px\" width=\"1/1\" el_position=\"first last\"] [spb_icon_box element_name=\"one-click demo install?\" title=\"Does it have one-click demo install?\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"media-1_touch\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#7eced5\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/2\" el_position=\"first\"]\n\nA one-click demo content importer plugin is included with the theme, so that you can import any of the demo sites within a few clicks, and then remove the plugin when not needed.\n\n[/spb_icon_box] [spb_icon_box element_name=\"auto-update?\" title=\"Does it have auto-update functionality?\" box_type=\"vertical\" box_icon_type=\"svg\" svg_icon=\"arrows-1_refresh-69\" animate_svg=\"yes\" target=\"_self\" animation=\"none\" animation_delay=\"0\" icon_color=\"#7eced5\" animated_box_style=\"coloured\" animated_box_rounded=\"yes\" width=\"1/2\" el_position=\"last\"]\n\nYes, you never need to manually upload the latest theme updates. All updates are handled in the same manner as plugin updates, within Dashboard > Updates of your WordPress Admin.\n\n[/spb_icon_box] [spb_blank_spacer height=\"60px\" width=\"1/1\" el_position=\"first last\"] [spb_button button_text=\"Got a question? Ask us\" button_size=\"large\" button_colour=\"accent\" button_type=\"standard\" rounded=\"yes\" button_dropshadow=\"no\" button_icon=\"nucleo-icon-speech\" button_link=\"#\" button_target=\"_self\" align=\"center\" animation=\"none\" animation_delay=\"0\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"90px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"About Us\" wrap_type=\"content-width\" row_bg_type=\"image\" row_bg_color=\"#263238\" color_row_height=\"content-height\" bg_image=\"39\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"color\" row_overlay_opacity=\"90\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"no\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"about\" minimize_row=\"yes\" simplified_controls=\"yes\" custom_css=\"margin-top: 0%!important;margin-left: 0%!important;margin-right: 0%!important;margin-bottom: 0%!important;border-top: 0px default !important;border-left: 0px default !important;border-right: 0px default !important;border-bottom: 0px default !important;padding-top: 0%!important;padding-left: 0%!important;padding-right: 0%!important;padding-bottom: 0%!important;background-color:undefined!important;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"90px\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"1px\" width=\"1/3\" el_position=\"first\"] [spb_image image=\"56\" image_size=\"full\" image_width=\"67\" frame=\"noframe\" caption_pos=\"hover\" remove_rounded=\"yes\" fullwidth=\"no\" overflow_mode=\"none\" el_class=\"pb0 mb0\" link_target=\"_self\" lightbox=\"no\" intro_animation=\"none\" animation_delay=\"200\" width=\"1/3\"] [spb_blank_spacer height=\"1px\" width=\"1/3\" el_position=\"last\"] [spb_blank_spacer height=\"1px\" width=\"1/6\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"no\" custom_css_percentage=\"yes\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 0%;padding-right: 0%;padding-bottom: 0%;\" border_size=\"0\" border_styling_global=\"default\" width=\"2/3\" el_position=\"last\"]\n\nUplift is a product by Swift Ideas\n\nOur themes power more than 33,000 websites all over the world\nMore about us\n\n[/spb_text_block] [spb_blank_spacer height=\"110px\" width=\"1/1\" el_position=\"first last\"] [/spb_row] [spb_row element_name=\"Outro\" wrap_type=\"content-width\" row_bg_type=\"color\" row_bg_color=\"#222222\" color_row_height=\"content-height\" row_style=\"light\" bg_image=\"39\" bg_type=\"cover\" parallax_image_height=\"content-height\" parallax_image_movement=\"scroll\" parallax_image_speed=\"0.5\" bg_video_loop=\"yes\" parallax_video_height=\"window-height\" row_top_style=\"none\" row_bottom_style=\"none\" parallax_video_overlay=\"none\" row_overlay_opacity=\"90\" row_padding_vertical=\"0\" row_padding_horizontal=\"0\" row_margin_vertical=\"0\" remove_element_spacing=\"yes\" vertical_center=\"true\" inner_column_height=\"col-natural\" row_expanding=\"no\" row_animation=\"none\" row_animation_delay=\"0\" row_id=\"end\" minimize_row=\"yes\" simplified_controls=\"yes\" custom_css=\"margin-top: 0px;margin-bottom: 0px;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px;\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"] [spb_blank_spacer height=\"70px\" width=\"1/1\" el_position=\"first last\"] [spb_column simplified_controls=\"yes\" border_styling_global=\"default\" width=\"1/2\" el_position=\"first\"] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"no\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" custom_css=\"margin-top: 0%;margin-bottom: 0%;border-top: 0px default ;border-left: 0px default ;border-right: 0px default ;border-bottom: 0px default ;padding-top: 0%;padding-left: 0%;padding-right: 0%;padding-bottom: 0%;\" border_size=\"0\" border_styling_global=\"default\" width=\"1/1\" el_position=\"first last\"]\n\n[one_half]\n\n&copy;[the-year] Uplift - by Swift Ideas\n\n[/one_half] [one_half_last]\n\nMade with Love in the U.K.\n\n[/one_half_last]\n\n[/spb_text_block] [spb_blank_spacer height=\"8px\" width=\"1/1\" el_position=\"first last\"] [/spb_column] [spb_text_block animation=\"none\" animation_delay=\"0\" simplified_controls=\"yes\" custom_css_percentage=\"no\" padding_vertical=\"0\" padding_horizontal=\"0\" margin_vertical=\"0\" border_size=\"0\" border_styling_global=\"default\" width=\"1/4\"]\n\n[social]\n[/spb_text_block] [spb_button button_text=\"Purchase Uplift\" button_size=\"standard\" button_colour=\"lightgrey\" button_type=\"bordered\" rounded=\"yes\" button_dropshadow=\"no\" button_icon=\"sf-icon-cart\" button_link=\"http://uplift.swiftideas.com/purchase\" button_target=\"_self\" align=\"center\" animation=\"none\" animation_delay=\"0\" width=\"1/4\" el_position=\"last\"] [spb_blank_spacer height=\"50px\" width=\"1/1\" el_position=\"first last\"] [/spb_row]');\n\t\t\n\t\treturn $prebuilt_templates;\n\t}", "title": "" }, { "docid": "3980162250043ded1e941ce8788a5406", "score": "0.43257165", "text": "public function templates() {\n\t\t// Archive page\n\t\tif ( is_post_type_archive( 'glossary' ) ) {\n\t\t\tremove_action( 'md_hook_content', 'md_archives_title' );\n\t\t\tremove_action( 'md_hook_content', 'md_loop' );\n\t\t\tremove_action( 'md_hook_content', 'md_comments' );\n\t\t\tremove_action( 'md_hook_content', 'md_pagination' );\n\t\t\tadd_action( 'md_hook_before_content_box', array( $this, 'hero' ) );\n\t\t\tadd_action( 'md_hook_before_content_box', array( $this, 'letters_nav' ) );\n\t\t\tadd_filter( 'md_filter_content_classes', array( $this, 'content_classes' ) );\n\t\t\tadd_action( 'md_hook_content', array( $this, 'loop' ) );\n\t\t\tadd_filter( 'md_filter_loop_type', array( $this, 'loop_type' ) );\n\t\t\tadd_action( 'md_hook_content', array( $this, 'call_to_action' ) );\n\t\t\tif ( md_setting( array( 'glossary', 'archives_layout', 'main_menu' ) ) )\n\t\t\t\tadd_filter( 'md_filter_has_main_menu', '__return_false' );\n\t\t\tif ( md_setting( array( 'glossary', 'archives_layout', 'sidebar' ) ) )\n\t\t\t\tadd_filter( 'md_filter_has_sidebar', '__return_true' );\n\t\t\telse\n\t\t\t\tadd_filter( 'md_filter_has_sidebar', '__return_false' );\n\t\t}\n\n\t\t// Single pages\n\t\tif ( is_singular( 'glossary' ) ) {\n\t\t\tadd_action( 'md_hook_before_headline', array( $this, 'breadcrumbs' ) );\n\t\t\tadd_action( 'md_hook_after_content', array( $this, 'after_post' ), 10 );\n\t\t\tadd_filter( 'md_filter_headline', array( $this, 'title_prefix' ), 10, 2 );\n\t\t\tadd_filter( 'md_filter_has_sidebar', '__return_false' );\n\t\t\tremove_action( 'md_hook_content', 'md_author' );\n\t\t\tremove_action( 'md_hook_content', 'md_post_nav' );\n\t\t}\n\t}", "title": "" }, { "docid": "06bd6b5ee60cea6dc413d7ca2a3a0a1e", "score": "0.43122172", "text": "protected function initializeOutput() {\n\t\t$mode = strtolower($this->settings['mode']);\n\t\t$level = strtolower($this->settings['level']);\n\n\t\t$templateFile = $this->settings['templates.'][$mode . '.'][$level . '.']['standard'];\n\t\t$template = $this->cObj->fileResource($templateFile);\n\n\t\t$this->template = $this->cObj->getSubpart($template, '###' . strtoupper($level) . '_' . strtoupper($mode) . '###');\n\n\t\t$this->subparts = array();\n\n\t\t// Load all labels without a dot in the key as available marker\n\t\t$this->deprecatedMarkers = array();\n\t\t$this->markers = array();\n\t\tforeach ($this->pObj->LOCAL_LANG['default'] as $key => $label) {\n\t\t\tif (strpos($key, '.') === FALSE) {\n\t\t\t\t$this->markers[strtoupper($key)] = $this->pObj->pi_getLL($key);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "491606d36370f1a2bf1f43897050d738", "score": "0.4305937", "text": "private function createIndex()\n {\n $basepath = $this->config[\"basepath\"];\n $pattern = $this->config[\"pattern\"];\n $path = \"$basepath/$pattern\";\n\n $index = [];\n foreach (glob_recursive($path) as $file) {\n $filepath = substr($file, strlen($basepath) + 1);\n\n // Find content files\n $matches = [];\n preg_match($this->filenamePattern, basename($filepath), $matches);\n $dirpart = dirname($filepath) . \"/\";\n if ($dirpart === \"./\") {\n $dirpart = null;\n }\n $key = $dirpart . $matches[2];\n \n // Create level depending on the file id\n // TODO ciamge doc, can be replaced by __toc__ in meta?\n $id = (int) $matches[1];\n $level = 2;\n if ($id % 100 === 0) {\n $level = 0;\n } elseif ($id % 10 === 0) {\n $level = 1;\n }\n\n $index[$key] = [\n \"file\" => $filepath,\n \"section\" => $matches[1],\n \"level\" => $level, // TODO ?\n \"internal\" => $this->isInternalRoute($filepath),\n \"tocable\" => $this->allowInToc($filepath),\n ];\n }\n\n return $index;\n }", "title": "" }, { "docid": "0d4bd87d591349884ce1049f37c9ad29", "score": "0.43012482", "text": "private static function _loadAll() {\n\t\tforeach( static::_getDefinitions() as $intoleranse_data ) {\n\t\t\t$intoleranse = new Allergen( $intoleranse_data );\n\t\t\t\n\t\t\tif( $intoleranse->getKategori() == 'kulturell' ) {\n\t\t\t\tstatic::$kulturelle[ $intoleranse->getId() ] = $intoleranse;\n\t\t\t} else {\n\t\t\t\tstatic::$allergener[ $intoleranse->getId() ] = $intoleranse;\n\t\t\t}\n\t\t\tstatic::$all[ $intoleranse->getId() ] = $intoleranse;\n\t\t}\n\t}", "title": "" }, { "docid": "52f7ad904ff6b5f885207c209a36435d", "score": "0.43006077", "text": "abstract public function getTemplate();", "title": "" }, { "docid": "4459377153a0b1956c863a678fd26be8", "score": "0.4298028", "text": "public function typography()\n {\n $section = self::$panel . '_typography';\n\n new Section(\n $section,\n array(\n 'title' => esc_attr__('Typography', 'stage'),\n 'panel' => 'header',\n 'priority' => 30,\n )\n );\n\n Kirki::add_field(\n self::$config,\n array(\n 'type' => 'typography',\n 'settings' => $section,\n 'label' => esc_html__('Header Typo', 'stage'),\n 'section' => $section,\n 'default' => array(\n 'font-family' => '',\n 'font-weight' => '',\n ),\n 'choices' => array(\n 'fonts' => stage_get_default('global.typo.choices.fonts'),\n ),\n 'priority' => 10,\n 'transport' => 'auto',\n 'input_attrs' => array(\n 'font-family' => array(\n 'data-sync-master' => 'global_typo_copy[font-family]',\n ),\n 'font-weight' => array(\n 'data-sync-master' => 'global_typo_copy[font-weight]',\n ),\n ),\n 'output' => array(\n array(\n 'choice' => 'font-family',\n 'element' => 'header.main-header',\n 'property' => '--copy-font-family',\n ),\n array(\n 'choice' => 'font-weight',\n 'element' => 'header.main-header',\n 'property' => '--heading-font-weight',\n ),\n ),\n )\n );\n }", "title": "" }, { "docid": "f2492327162dded96f99aabfc6ab2fdb", "score": "0.42952192", "text": "public static function getTemplate() {\n $xml = new DOMDocument();\n $xml->loadXML(file_get_contents(\"policy.xml\", FILE_USE_INCLUDE_PATH));\n $policy = new EtdFileXacmlPolicy($xml);\n\n // add the appropriate rules for a new etdfile\n $policy->addRule(\"view\");\n $policy->addRule(\"draft\");\n \n return $policy->saveXML();\n }", "title": "" }, { "docid": "bc29b1e09c986673768992ef75d779c2", "score": "0.42947164", "text": "function init_layout($skinID='', $theme='', $mod='' )\n\t{\n\t\tstatic $themezones;\n\t\tif (file_exists(pnConfigGetVar('temp') . '/Xanthia_Config/'. pnVarPrepForOS($theme) . '.' . pnVarPrepForOS($mod) . '.tplconfig.php')&& \n\t\t !isset($themezones)) {\n\t\t\tinclude(pnConfigGetVar('temp') . '/Xanthia_Config/'. pnVarPrepForOS($theme) . '.' . pnVarPrepForOS($mod) . '.tplconfig.php');\n\t\t}\n\t\tif (!isset($themezones)) {\n\t\t\t// Assign the DB handle\n\t\t\t$dbconn =& pnDBGetConn(true);\n\t\t\t$pntable =& pnDBGetTables();\n\t\n\t\t\t// Define the table columns info\n\t\t\t$column = &$pntable['theme_zones_column'];\n\t\n\t\t\t// Build the query\n\t\t\t$query = \"SELECT $column[label] as label ,\n\t\t\t\t\t\t\t $column[is_active] as active,\n\t\t\t\t\t\t\t $column[skin_type] as type\n\t\t\t\t\t FROM $pntable[theme_zones]\n\t\t\t\t\t WHERE $column[is_active]='1'\n\t\t\t\t\t AND $column[skin_id]='\".pnVarPrepForStore($skinID).\"'\";\n\t\n\t\t\t// Execute the query\n\t\t\t$result =& $dbconn->Execute($query);\n\t\n\t\t\tif ($dbconn->ErrorNo() != 0) {\n\t\t\t\t// Report the DB error\n\t\t\t\t$this->db_error((__FILE__), (__LINE__), 'init_layout',\n\t\t\t\t\t\t$query, $dbconn->ErrorNo(), $dbconn->ErrorMsg());\n\t\t\t} else {\n\t\t\t\tif (!$result->EOF) {\n\t\t\t\t\t// Iterate through the results, assign to zones\n\t\t\t\t\t//modified for Oracle compatibility\n\t\t\t\t\t$themezones = array();\n\t\t\t\t\twhile(!$result->EOF){\n\t\t\t\t\t\t$row = $result->GetRowAssoc(false);\n\t\t\t\t\t\t$themezones[] = $row;\n\t\t\t\t\t\t$result->MoveNext();\n\t\t\t\t\t}\n\t\t\t\t\t// Close the result set\n\t\t\t\t\t$result->Close();\n\t\t\t\t\tif (isset($this->skins['News-index'])) {\n\t\t\t\t\t\t$this->skins['backup'] = $this->skins['News-index'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (!empty($themezones)) {\n\t\t\tforeach ($themezones as $themezone) {\n\t\t\t\t$this->zone[$themezone['label']] = $themezone['active'];\n\t\t\t\t$this->init_template($skinID, $themezone['label'], $theme, $mod, $themezone['type']);\n\t\t\t\t\n\t\t\t\tif (isset($this->skins['News-index'])) {\n\t\t\t\t\t$this->skins['backup'] = $this->skins['News-index'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7d50d14fe0642defb999080229110a0f", "score": "0.4292385", "text": "function template($name1, $name2, $name3, $name4, $add1, $add2, $add3, $add4, $libId1, $libId2, $libId3, $libId4){\n $this->AddPage('L', 'Letter');\n $this->SetFont('Arial','',10);\n $this->Image('images/id_template.jpg', 33.1, 26.75, 101, 76);\n $this->Image('images/id_template.jpg', 144.7, 26.75, 101, 76);\n $this->Image('images/id_template.jpg', 33.1, 112.95, 101, 76);\n $this->Image('images/id_template.jpg', 144.7, 112.95, 101, 76);\n\n //First Row Id\n $this->Cell(40,5,'',0);\n $this->Ln();\n $this->Ln();\n $this->Ln();\n $this->Ln();\n $this->Ln();\n $this->Ln();\n $this->Ln();\n $this->Ln();\n $this->Cell(37.5,4,'',0);\n $this->Ln();\n $this->Cell(37.5,5,'',0);\n $this->Cell(39,5,$name1,0, 0,'C');\n $this->Cell(72.7,5,'',0);\n $this->Cell(39,5,$name2,0, 0,'C');\n $this->Ln();\n $this->Ln();\n $this->Cell(27.5,5,'',0);\n $this->Cell(59.3,5,$add1,0, 0,'C');\n $this->Cell(52.3,5,'',0);\n $this->Cell(59.3,5,$add2,0, 0,'C');\n $this->Ln();\n $this->Ln();\n $this->Cell(37.5, 0.5,'',0);\n $this->Ln();\n $this->Cell(82.6,5,'',0);\n $this->Cell(38 ,5,$libId1,0, 0, 'C');\n $this->Cell(73.6 ,5,'',0);\n $this->Cell(38 ,5,$libId2,0, 0, 'C');\n\n //Second Row Id\n $this->Ln();\n $this->Ln();\n $this->Ln();\n $this->Ln();\n $this->Ln();\n $this->Ln();\n $this->Ln();\n $this->Ln();\n $this->Ln();\n $this->Ln();\n $this->Ln();\n $this->Ln();\n $this->Cell(37.5,2,'',0);\n $this->Ln();\n $this->Cell(37.5,4,'',0);\n $this->Ln();\n $this->Cell(37.5,5,'',0);\n $this->Cell(39,5,$name3,0, 0,'C');\n $this->Cell(72.7,5,'',0);\n $this->Cell(39,5,$name4,0, 0,'C');\n $this->Ln();\n $this->Ln();\n $this->Cell(27.5,5,'',0);\n $this->Cell(59.3,5,$add3,0, 0,'C');\n $this->Cell(52.3,5,'',0);\n $this->Cell(59.3,5,$add4,0, 0,'C');\n $this->Ln();\n $this->Ln();\n $this->Cell(37.5, 0.5,'',0);\n $this->Ln();\n $this->Cell(82.6,5,'',0);\n $this->Cell(38 ,5,$libId3,0, 0, 'C');\n $this->Cell(73.6 ,5,'',0);\n $this->Cell(38 ,5,$libId4,0, 0, 'C');\n\n \n }", "title": "" }, { "docid": "6ae272277f54aa2791f7205f97f35d69", "score": "0.4273997", "text": "private function load()\n\t{\n\t\treturn $this->loadTemplate($this->getTemplate() . $this->config['template_file_ext']);\n\t}", "title": "" }, { "docid": "5218d493c285084d1a87357bb7dd36bf", "score": "0.4272116", "text": "function get_index(){\n # Read in the index XML file and iterate over setups\n $setups = Array();\n $index_xml = simplexml_load_file('index.xml');\n foreach($index_xml as $setup_xml){\n $setups[] = get_index_single_setup($setup_xml);\n }\n return $setups;\n}", "title": "" }, { "docid": "5ca9c901c395870ad78211c8044f736d", "score": "0.42715627", "text": "function init(){\n\t\t$this->_allSkins = array();\n\n\t\tinclude \"../skins/template/skin.template.php\";\n\t\tinclude \"../skins/default/skin.default.php\";\n\t\tinclude \"../skins/buffer/skin.buffer.php\";\n\t\tinclude \"../skins/installer/skin.installer.php\";\n\n\n\t\t$this->_defaultSkin = \"installer\";\n\t\t$this->_currentSkin = $this->_defaultSkin;\n\t}", "title": "" }, { "docid": "2cb174a935918c58db9919c01cdcc35c", "score": "0.42659816", "text": "protected function createThemeVariants()\n {\n if ($variants = $this->option('variants')) {\n $this->files->makeDirectory($this->getThemeLocation() . '/design/variants');\n\n collect($variants)->each(function ($variant) {\n $stylesheet = trim($variant);\n $this->createStylesheet(\"variants/{$stylesheet}.css\");\n });\n }\n }", "title": "" }, { "docid": "f0c48e41616ee3b4a9fbff096e3f006d", "score": "0.42597684", "text": "function d3_tempmap_basic($lakeid) {\n get_waterTemps($lakeid);\n\n $content = array();\n\n //Display a lake name title\n if ($lakeid == 'TR') $lakename = ' Trout Lake';\n if ($lakeid == 'SP') $lakename = ' Sparkling Lake';\n $content['raw_markup'] = array(\n '#type' => 'markup',\n '#markup' => $lakename,\n '#prefix' => '<h4 style=\"margin-left:50px;\">',\n '#suffix' => '</h4>',\n );\n\n //Use a container\n $content['div_container'] = array(\n '#type' => 'container',\n '#attributes' => array(\n 'id' => array('mapDiv'),\n ),\n );\n\n $content['div_container']['css_content'] = array(\n '#type' => 'markup',\n '#attached' => array(\n 'css' => array(\n drupal_get_path('module','d3_tempmap').'/d3_tempmap.css',\n ),\n ), \n );\n\n $content['div_container']['js_content'] = array(\n '#type' => 'markup',\n '#attached' => array(\n 'js' => array(\n drupal_get_path('module','d3_tempmap').'/tempmap.js',\n array(\n \t 'type' => 'setting', \n\t 'data' => array(\n \t 'numdays' => $GLOBALS['numdays'], \n\t 'numdepths' => $GLOBALS['numdepths'],\n 'depths_array' => $GLOBALS['Depths'],\n 'temps_array' => $GLOBALS['Temps'],\n 'dates_array' => $GLOBALS['Dates'],\n )\n ),\n ),\n ),\n );\n\n return $content;\n}", "title": "" }, { "docid": "0434cee540beeab15a9223383794cedc", "score": "0.42567125", "text": "protected function loadFixtures()\n {\n $this->manager = $this->getContainer()->get('sulu_document_manager.document_manager');\n\n $this->hotel1 = $this->createSnippet(\n 'hotel',\n [\n 'en' => [\n 'title' => 'Le grande budapest (en)',\n ],\n 'de' => [\n 'title' => 'Le grande budapest',\n ],\n ]\n );\n\n $this->hotel2 = $this->createSnippet(\n 'hotel',\n [\n 'de' => [\n 'title' => 'L\\'Hôtel New Hampshire',\n ],\n ]\n );\n\n $page = new PageDocument();\n $page->setTitle('Hotels Page');\n $page->setStructureType('hotel_page');\n $page->setResourceSegment('/hotels');\n $page->getStructure()->bind([\n 'hotels' => [\n $this->hotel1->getUuid(),\n $this->hotel2->getUuid(),\n ],\n ]);\n\n $this->manager->persist($page, 'de', [\n 'path' => '/cmf/sulu_io/contents/hotels',\n ]);\n\n $page->setTitle('Hotels');\n $page->setShadowLocaleEnabled(true);\n $page->setShadowLocale('de');\n $page->getStructure()->bind([\n 'hotels' => [],\n ]);\n\n $this->manager->persist($page, 'en', [\n 'path' => '/cmf/sulu_io/contents/hotels',\n ]);\n\n $this->car1 = $this->createSnippet('car', ['de' => ['title' => 'C car']]);\n $this->createSnippet('car', ['de' => ['title' => 'B car']]);\n $this->createSnippet('car', ['de' => ['title' => 'A car']]);\n\n $this->manager->flush();\n }", "title": "" }, { "docid": "91c5b573f3f8b7e18edd9ec305edc031", "score": "0.42526338", "text": "private function uload()\n {\n self::$templates = array();\n self::$variables = array();\n }", "title": "" }, { "docid": "13231c6ff31cae8cd68d34720d40e8f2", "score": "0.4247061", "text": "function parseWizard($ignoreList, $wizardItems, $defVals) {\n\t\tglobal $TCA;\n\n\t\tforeach($TCA['tt_content']['types'] as $k => $v){\n\t\t\tif(!in_array($k,$wizardItems) && !in_array($k,explode(',',$ignoreList))){\n\t\t\t\tif($k){\n\t\t\t\t\tforeach($TCA['tt_content']['columns']['CType']['config']['items'] as $k2 => $v2){\n\t\t\t\t\t\tif($TCA['tt_content']['columns']['CType']['config']['items'][$k2]['1'] == $k){\n\t\t\t\t\t\t\tlist($piTitle, $piDesc)\t=\t$this->getLLValue($TCA['tt_content']['columns']['CType']['config']['items'][$k2]['0'], $k);\n\t\t\t\t\t\t\t$filePath = $TCA['tt_content']['columns']['CType']['config']['items'][$k2]['2'];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$filePath = substr($filePath, 0, strrpos($filePath, '/'));\n\t\t\t\t\t$extType = (is_file(PATH_site . 'fileadmin/'. $filePath . '/wizard.png'))?'png':'gif';\n\n\t\t\t\t\t$add = array(\n\t\t\t\t\t\t\"$k\" => array(\n\t\t\t\t\t\t\t'icon'\t\t\t=>\t$filePath . '/wizard.' . $extType,\n\t\t\t\t\t\t\t'title'\t\t\t=>\t$piTitle,\n\t\t\t\t\t\t\t'description'\t=>\t$piDesc,\n\t\t\t\t\t\t\t'params'\t\t=>\t'&defVals[tt_content][CType]='.$k.$defVals\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t\t$wizardItems = $wizardItems + $add;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $wizardItems;\n\t}", "title": "" }, { "docid": "f3590fd949096ca4b483a5fcc9337c75", "score": "0.42439565", "text": "public function setTemplate()\n {\n/*\n if(!defined('TEMPLATE'))\n {\n $prop = $this->getProperties();\n // page has it's own template\n if(isset($prop['template']) && $prop['template'] != '') {\n if(file_exists(CAT_PATH.'/templates/'.$prop['template'].'/index.php')) {\n CAT_Registry::register('TEMPLATE', $prop['template'], true);\n } else {\n CAT_Registry::register('TEMPLATE', DEFAULT_TEMPLATE, true);\n }\n // use global default\n } else {\n CAT_Registry::register('TEMPLATE', DEFAULT_TEMPLATE, true);\n }\n }\n $dir = '/templates/'.TEMPLATE;\n // Set the template dir (which is, in fact, the URL, but for backward\n // compatibility, we have to keep this irritating name)\n CAT_Registry::register('TEMPLATE_DIR', CAT_URL.$dir, true);\n // This is the REAL dir\n CAT_Registry::register('CAT_TEMPLATE_DIR', CAT_PATH.$dir, true);\n*/\n }", "title": "" }, { "docid": "6364bca57931fe27d52a4ab86d468889", "score": "0.42371053", "text": "function load_template() {\n\t\tglobal $bp, $post;\n\n\t\t// Docs are stored on the root blog\n\t\tif ( !bp_is_root_blog() )\n\t\t\tswitch_to_blog( BP_ROOT_BLOG );\n\n\t\tswitch ( $this->current_view ) {\n\t\t\tcase 'create' :\n\t\t\t\t// Todo: Make sure the user has permission to create\n\n\t\t\t\t/**\n\t\t\t\t * Load the template tags for the edit screen\n\t\t\t\t */\n\t\t\t\tif ( !function_exists( 'wp_tiny_mce' ) ) {\n\t\t\t\t\t$this->define_wp_tiny_mce();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\trequire BP_DOCS_INCLUDES_PATH . 'templatetags-edit.php';\n\t\t\t\t\n\t\t\t\t$template = 'edit-doc.php';\n\t\t\t\tbreak;\n\t\t\tcase 'list' :\n\t\t\t\t$args = $this->build_query();\n\n\t\t\t\t/* Todo: Get this into its own 'tree' view */\n\t\t\t\t/*\n\t\t\t\t$the_docs = get_posts( $args );\n\t\t\t\t$f = walk_page_tree($the_docs, 0, 0, array( 'walker' => new Walker_Page ) );\n\t\t\t\tprint_r( $f );\n\t\t\t\t*/\n\n\t\t\t\tquery_posts( $args );\n\t\t\t\t$template = 'docs-loop.php';\n\t\t\t\tbreak;\n\t\t\tcase 'category' :\n\t\t\t\t// Check to make sure the category exists\n\t\t\t\t// If not, redirect back to list view with error\n\t\t\t\t// Otherwise, get args based on category ID\n\t\t\t\t// Then load the loop template\n\t\t\t\tbreak;\n\t\t\tcase 'single' :\n\t\t\tcase 'edit' :\n\t\t\tcase 'delete' :\n\t\t\tcase 'history' :\n\n\t\t\t\t$args = $this->build_query();\n\n\t\t\t\t// Add a 'name' argument so that we only get the specific post\n\t\t\t\t$args['name'] = $this->doc_slug;\n\n\t\t\t\tquery_posts( $args );\n\n\t\t\t\t// If this is the edit screen, we won't really be able to use a\n\t\t\t\t// regular have_posts() loop in the template, so we'll stash the\n\t\t\t\t// post in the $bp global for the edit-specific template tags\n\t\t\t\tif ( $this->current_view == 'edit' ) {\n\t\t\t\t\tif ( have_posts() ) : while ( have_posts() ) : the_post();\n\t\t\t\t\t\t$bp->bp_docs->current_post = $post;\n\n\t\t\t\t\t\t// Set an edit lock\n\t\t\t\t\t\twp_set_post_lock( $post->ID );\n\t\t\t\t\tendwhile; endif;\n\n\t\t\t\t\t/**\n\t\t\t\t\t * Load the template tags for the edit screen\n\t\t\t\t\t */\n\t\t\t\t\trequire BP_DOCS_INCLUDES_PATH . 'templatetags-edit.php';\n\t\t\t\t}\n\n\t\t\t\tswitch ( $this->current_view ) {\n\t\t\t\t\tcase 'single' :\n\t\t\t\t\t\t$template = 'single/index.php';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'edit' :\n\t\t\t\t\t\t$template = 'single/edit.php';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'history' :\n\t\t\t\t\t\t$template = 'single/history.php';\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t\t// Todo: Maybe some sort of error if there is no edit permission?\n\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// Only register on the root blog\n\t\tif ( !bp_is_root_blog() )\n\t\t\trestore_current_blog();\n\n\t\t$template_path = bp_docs_locate_template( $template );\n\n\t\tif ( !empty( $template ) )\n\t\t\tinclude( apply_filters( 'bp_docs_template', $template_path, $this ) );\n\t}", "title": "" }, { "docid": "6d5c04f2928c63c1e3f69f9bb312fb0a", "score": "0.42369652", "text": "function theme_fusion_apply_ui_admin_skin_infos_fieldset($variables) {\n $form = $variables['form'];\n\n // Individual table headers.\n $rows = array();\n \n // Iterate through all the plugins.\n foreach (element_children($form) as $skin_name) {\n // Stick it into $skinset for easier accessing.\n $skin_info = $form[$skin_name];\n\n $columns = array();\n \n // Enabled.\n // unset($skin_info['enable']['#title']);\n // $columns[] = array(\n // 'class' => array('checkbox'), \n // 'data' => drupal_render($skin_info['enable'])\n // ); \n\n // Skin name.\n $columns[] = theme('fusion_apply_ui_admin_skin_infos_summary', array(\n 'name' => drupal_render($skin_info['name']),\n 'description' => drupal_render($skin_info['description']),\n ));\n\n // Source.\n $columns[] = drupal_render($skin_info['source name']);\n\n // Theme hooks.\n $columns[] = drupal_render($skin_info['theme hooks']);\n\n // Settings.\n $columns[] = array(\n 'class' => array('configure'),\n 'data' => drupal_render($skin_info['links']['configure']),\n );\n\n $rows[] = $columns;\n }\n\n return theme('table', array('header' => $form['#header'], 'rows' => $rows));\n}", "title": "" }, { "docid": "2b1fd52d54c55194b25e6e6e4392bcc9", "score": "0.42349932", "text": "function _dabne_theme_layouts() {\n $info = array();\n\n foreach (dabne_layouts_info() as $layout) {\n $hook = str_replace('-', '_', $layout['template']);\n $info[$hook] = array(\n 'template' => $layout['template'],\n 'path' => $layout['path'],\n );\n }\n\n return $info;\n}", "title": "" }, { "docid": "935a1ee329b9164a5266ecb458235234", "score": "0.42318293", "text": "public static function & GetTemplates ();", "title": "" }, { "docid": "ad9e2c4280a5fe24d14e13c0cfc6971b", "score": "0.42273012", "text": "protected function initLayout(){\r\n // Array init element panel template\r\n $replace = [];\r\n\r\n // If panel template have statistical then call function render statistical\r\n if (strpos($this->layout, '{statistic}') !== false) {\r\n $statisticTemplate = $this->renderStatistic();\r\n $replace['{statistic}'] = $statisticTemplate;\r\n }\r\n\r\n // If panel template have charts then call function render charts.\r\n if (strpos($this->layout, '{charts}') !== false) {\r\n $chartsTemplate = $this->renderCharts();\r\n $replace['{charts}'] = $chartsTemplate;\r\n }\r\n\r\n // If panel template have search then call function render search.\r\n if (strpos($this->layout, '{search}') !== false) {\r\n $searchTemplate = $this->renderSearch();\r\n $replace['{search}'] = $searchTemplate;\r\n }\r\n\r\n // If panel template have items then call function render items.\r\n if (strpos($this->layout, '{items}') !== false) {\r\n $items = $this->renderItems();\r\n $replace['{items}'] = $items;\r\n }\r\n\r\n $this->layout = strtr($this->layout, $replace);\r\n }", "title": "" }, { "docid": "acfd361c0d9cf4bdfc98c8668085dc2e", "score": "0.42251408", "text": "public function designAction()\n {\n $uid = $this->_user->getId();\n\n $this->_viewerId = $uid;\n $this->_ownerId = $uid;\n\n require_once 'Bll/Cache/Board.php';\n $skinInfo = Bll_Cache_Board::getSkinBasicInfo();\n\n $skinInfo = array('1' => array('name' => $skinInfo[0]['skin_name'], 'pic' => $skinInfo[0]['skin_id']), '2' => array('name' => $skinInfo[1]['skin_name'], 'pic' => $skinInfo[1]['skin_id']), '3' => array('name' => $skinInfo[2]['skin_name'], 'pic' => $skinInfo[2]['skin_id']), '4' => array('name' => $skinInfo[3]['skin_name'], 'pic' => $skinInfo[3]['skin_id']), '5' => array('name' => $skinInfo[4]['skin_name'], 'pic' => $skinInfo[4]['skin_id']), '6' => array('name' => $skinInfo[5]['skin_name'], 'pic' => $skinInfo[5]['skin_id']));\n\n $this->view->skinInfo = $skinInfo;\n\n $this->render();\n }", "title": "" }, { "docid": "36f0449b52228369dbcfff3a01f4968d", "score": "0.42241475", "text": "public function clearDefinitions();", "title": "" }, { "docid": "084eda9fcdbf99125363cfd64ce116df", "score": "0.42235288", "text": "public static function load_template_config_files() {\n /* load templates from wp-content/plugins/inbound-email/templates/ */\n\n $core_templates = self::$instance->get_core_templates();\n\n foreach ($core_templates as $name) {\n if ($name != \".svn\") {\n include_once(INBOUND_EMAIL_PATH . \"templates/$name/config.php\");\n }\n }\n\n /* load templates from uploads folder */\n $uploaded_templates = self::$instance->get_uploaded_templates();\n\n foreach ($uploaded_templates as $name) {\n include_once(INBOUND_EMAIL_UPLOADS_PATH . \"$name/config.php\");\n }\n\n /* load templates included by current active WordPress theme */\n $included_templates = self::$instance->get_theme_included_templates();\n\n foreach ($included_templates as $name) {\n include_once(INBOUND_EMAIL_THEME_TEMPLATES_PATH . \"$name/config.php\");\n }\n\n /* load smartbar acf */\n include_once( INBOUND_EMAIL_PATH . 'assets/acf/smartbar.php');\n\n self::$instance->template_definitions = $inbound_email_data;\n }", "title": "" }, { "docid": "3c1a93a249d96bc662f1b44c2a0ea119", "score": "0.42181104", "text": "private function load_from_wp() {\n\t\t$this->wtf_dir= TEMPLATEPATH.\"/fragments/\";\n\t}", "title": "" }, { "docid": "99d7e980e326ff33d6e1c71f0fb7c80e", "score": "0.42112106", "text": "function deasil_ocdi_import_files() {\n\treturn array(\n\t\tarray(\n\t\t\t'import_file_name' \t=> 'All Content',\n\t\t\t'local_import_file' \t=> trailingslashit( get_template_directory() ) . 'demo/deasil.xml',\n\t\t\t'local_import_widget_file' \t=> trailingslashit( get_template_directory() ) . 'demo/deasil.json',\n\t\t\t'local_import_customizer_file' \t=> trailingslashit( get_template_directory() ) . 'demo/deasil.dat',\n\t\t\t'import_preview_image_url' \t=> get_template_directory_uri() . '/demo/home.jpg',\n\t\t\t'import_notice' \t=> esc_html__( 'Import all pages, post, widget, customizer setting.', 'deasil' ),\n\t\t\t'preview_url' \t=> 'http://deasil.moldthemes.com',\n\t\t),\n\t\tarray(\n\t\t\t'import_file_name' => 'HomePage',\n\t\t\t'categories' => array( 'Home Pages' ),\n\t\t\t'local_import_file' => trailingslashit( get_template_directory() ) . '/demo/home.xml',\n\t\t\t'import_preview_image_url' => get_template_directory_uri() . '/demo/home2.jpg',\n\t\t\t'import_notice' => esc_html__( 'Import only home pages.', 'deasil' ),\n\t\t\t'preview_url' => 'http://deasil.moldthemes.com',\n\t\t)\n\t);\n}", "title": "" }, { "docid": "f04a1cda9787688260db12bcfb5133f1", "score": "0.4210551", "text": "function build(){\n\t\t$this->readContentTemplate();\n\t}", "title": "" }, { "docid": "85bb6f293d0739aeda82048d0ca7fa01", "score": "0.42095703", "text": "function initialize_template_admin_styles() {\n\t$stylesheets = apply_filters('template_admin_styles', array('editor'));\n\tif (!empty($stylesheets)) {\n\t\tforeach ($stylesheets as $stylesheet) {\n\t\t\twp_enqueue_style($stylesheet, LUKE_2016_TEMPLATE_URL . \"includes/css/{$stylesheet}.css\");\n\t\t}\n\t}\n}", "title": "" } ]
2d1f320dc01eda420dedcba3892b5170
To get client sceret key
[ { "docid": "24599cf9aa09b0d6114168085d2bbec0", "score": "0.6960145", "text": "public function getClientSecretKey()\n {\n return $this->clientSecretKey;\n }", "title": "" } ]
[ { "docid": "ab2e208c6cbf3a60019407e2826cc4da", "score": "0.7377327", "text": "public static function get_key()\r\n {\r\n // We use php_uname and $_SERVER['HTTP_HOST'] to make a server unique key\r\n return sha1($_SERVER['SERVER_SOFTWARE'] . '-' . $_SERVER['HTTP_HOST'] . \"@\" . php_uname());\r\n }", "title": "" }, { "docid": "3769bd3a2580bc747e54f6a415386293", "score": "0.7366544", "text": "public function key();", "title": "" }, { "docid": "3769bd3a2580bc747e54f6a415386293", "score": "0.7366544", "text": "public function key();", "title": "" }, { "docid": "3769bd3a2580bc747e54f6a415386293", "score": "0.7366544", "text": "public function key();", "title": "" }, { "docid": "3769bd3a2580bc747e54f6a415386293", "score": "0.7366544", "text": "public function key();", "title": "" }, { "docid": "3769bd3a2580bc747e54f6a415386293", "score": "0.7366544", "text": "public function key();", "title": "" }, { "docid": "c06e7f7bad16f0144c4d44b031d4c1c2", "score": "0.73120993", "text": "public function getReceiverKey();", "title": "" }, { "docid": "688eb467d3d14e1d6b8c9cba3dfd52b5", "score": "0.7223348", "text": "public function getCryptKey(): string;", "title": "" }, { "docid": "e7e7e71037eafc167886ef9ad55fea52", "score": "0.7174469", "text": "public function clientKey(): ?string\n {\n return $this->clientKey;\n }", "title": "" }, { "docid": "9a871430167d34f106b6071ad4f039b8", "score": "0.7153801", "text": "public function key() { }", "title": "" }, { "docid": "eee1d0bc05d5d417951bfa65686afe99", "score": "0.7104706", "text": "public function key(): string;", "title": "" }, { "docid": "e52c1ec1142d204d333cce477d93a4f9", "score": "0.7100594", "text": "public function getAuthKey()\n {\n\n }", "title": "" }, { "docid": "43da31d528d0008350321f3121df8a1a", "score": "0.70850617", "text": "public function getAuthKey()\n {\n }", "title": "" }, { "docid": "43da31d528d0008350321f3121df8a1a", "score": "0.70850617", "text": "public function getAuthKey()\n {\n }", "title": "" }, { "docid": "43da31d528d0008350321f3121df8a1a", "score": "0.70850617", "text": "public function getAuthKey()\n {\n }", "title": "" }, { "docid": "43da31d528d0008350321f3121df8a1a", "score": "0.70850617", "text": "public function getAuthKey()\n {\n }", "title": "" }, { "docid": "43da31d528d0008350321f3121df8a1a", "score": "0.70850617", "text": "public function getAuthKey()\n {\n }", "title": "" }, { "docid": "43da31d528d0008350321f3121df8a1a", "score": "0.70850617", "text": "public function getAuthKey()\n {\n }", "title": "" }, { "docid": "672d16532912979ecb37c63a7d59ce60", "score": "0.7066556", "text": "public function get_key() {\n\t\t//return apply_filters( 'wlb_get_key', $this->params['key'] );\n\t}", "title": "" }, { "docid": "5f5b6d84f17ab30273b9bcb1a2b1be11", "score": "0.7021393", "text": "public function key() {}", "title": "" }, { "docid": "5f5b6d84f17ab30273b9bcb1a2b1be11", "score": "0.7021393", "text": "public function key() {}", "title": "" }, { "docid": "e5dc0f63c778593160b307f4a0310093", "score": "0.6967098", "text": "public function getApikey();", "title": "" }, { "docid": "214c63f4c252ff71269ffad316177545", "score": "0.6888602", "text": "public function getSecretKey();", "title": "" }, { "docid": "214c63f4c252ff71269ffad316177545", "score": "0.6888602", "text": "public function getSecretKey();", "title": "" }, { "docid": "214c63f4c252ff71269ffad316177545", "score": "0.6888602", "text": "public function getSecretKey();", "title": "" }, { "docid": "214c63f4c252ff71269ffad316177545", "score": "0.6888602", "text": "public function getSecretKey();", "title": "" }, { "docid": "5b3351b3b7d8bb828cb1756db8428396", "score": "0.6887481", "text": "public function getGatewayKey ();", "title": "" }, { "docid": "e6040a295245fac287fc0449b5990089", "score": "0.68755525", "text": "public function fullKey(): string;", "title": "" }, { "docid": "e08e7b5de5e9c47edf356e6152a603ca", "score": "0.685312", "text": "public function key(): string\n {\n return $this->key;\n }", "title": "" }, { "docid": "e08e7b5de5e9c47edf356e6152a603ca", "score": "0.685312", "text": "public function key(): string\n {\n return $this->key;\n }", "title": "" }, { "docid": "e418748f5a6991d37bf811bab06b0716", "score": "0.6829174", "text": "public function getKey(): string\n {\n return $this->key;\n }", "title": "" }, { "docid": "e418748f5a6991d37bf811bab06b0716", "score": "0.6829174", "text": "public function getKey(): string\n {\n return $this->key;\n }", "title": "" }, { "docid": "e418748f5a6991d37bf811bab06b0716", "score": "0.6829174", "text": "public function getKey(): string\n {\n return $this->key;\n }", "title": "" }, { "docid": "e418748f5a6991d37bf811bab06b0716", "score": "0.6829174", "text": "public function getKey(): string\n {\n return $this->key;\n }", "title": "" }, { "docid": "e418748f5a6991d37bf811bab06b0716", "score": "0.6829174", "text": "public function getKey(): string\n {\n return $this->key;\n }", "title": "" }, { "docid": "e418748f5a6991d37bf811bab06b0716", "score": "0.6829174", "text": "public function getKey(): string\n {\n return $this->key;\n }", "title": "" }, { "docid": "e418748f5a6991d37bf811bab06b0716", "score": "0.6829174", "text": "public function getKey(): string\n {\n return $this->key;\n }", "title": "" }, { "docid": "e418748f5a6991d37bf811bab06b0716", "score": "0.6829174", "text": "public function getKey(): string\n {\n return $this->key;\n }", "title": "" }, { "docid": "e418748f5a6991d37bf811bab06b0716", "score": "0.6829174", "text": "public function getKey(): string\n {\n return $this->key;\n }", "title": "" }, { "docid": "ac5255dc172a3d7b47ec2d27de38292c", "score": "0.6824588", "text": "public static function Key()\n\t{\n\t\treturn static::GetKey();\n\t}", "title": "" }, { "docid": "c59b3e880dd9e236525176b3374bbe56", "score": "0.6817974", "text": "public static function getKey() {\r\n\r\n $key = isset($_SESSION['rsa32_key']) ? $_SESSION['rsa32_key'] : null;\r\n\r\n return $key;\r\n\r\n }", "title": "" }, { "docid": "99ee2d1a8ef178026792534505109b02", "score": "0.6811435", "text": "function get_api_key() {\n\t\treturn $this->get( 'getresponse_key' );\n\t}", "title": "" }, { "docid": "29e0e766933127e9f9e42818dd9b75ca", "score": "0.67890435", "text": "public function getKey(): string;", "title": "" }, { "docid": "29e0e766933127e9f9e42818dd9b75ca", "score": "0.67890435", "text": "public function getKey(): string;", "title": "" }, { "docid": "29e0e766933127e9f9e42818dd9b75ca", "score": "0.67890435", "text": "public function getKey(): string;", "title": "" }, { "docid": "b37d2e04a88f0188bcb2ca55f5adabeb", "score": "0.67704165", "text": "public function getAuthKey(): string\n {\n return $this->robot->authKey;\n }", "title": "" }, { "docid": "0bfc9f85a8f8799eaee7aecf72bf6ba0", "score": "0.67701894", "text": "public function getKey()\n\t{\n\t\t$this->loadPrivateData();\n\t\treturn $this->key;\n\t}", "title": "" }, { "docid": "bc8d5d7955b6642a642305f241a03c78", "score": "0.67597854", "text": "public function key(): string\n {\n return $this->string();\n }", "title": "" }, { "docid": "4bd450aed3aec3793c5bbb3c731f5669", "score": "0.67573017", "text": "function osc_recaptcha_public_key() {\n return (getPreference('recaptchaPubKey'));\n }", "title": "" }, { "docid": "88044e32b8d9ddc4455791a26735887e", "score": "0.67511433", "text": "public function key()\n {\n }", "title": "" }, { "docid": "88044e32b8d9ddc4455791a26735887e", "score": "0.67511433", "text": "public function key()\n {\n }", "title": "" }, { "docid": "88044e32b8d9ddc4455791a26735887e", "score": "0.67511433", "text": "public function key()\n {\n }", "title": "" }, { "docid": "86ece1db68872b1542e9b78c95f848fd", "score": "0.6736906", "text": "public function getAuthKey()\n {\n // TODO: Implement getAuthKey() method.\n }", "title": "" }, { "docid": "86ece1db68872b1542e9b78c95f848fd", "score": "0.6736906", "text": "public function getAuthKey()\n {\n // TODO: Implement getAuthKey() method.\n }", "title": "" }, { "docid": "1aabad44af7f2c8abff1c2a6293bc916", "score": "0.67362857", "text": "public function getKey() : string;", "title": "" }, { "docid": "84859f2ddb9dbab1e4eb603a08762818", "score": "0.6725391", "text": "public function getKey() {\n\n if (config('system.settings_mollie_mode') == 'live') {\n return config('system.settings_mollie_live_api_key');\n } else {\n return config('system.settings_mollie_test_api_key');\n }\n }", "title": "" }, { "docid": "fa0717efb2f42920d66c6e2848897fc2", "score": "0.67246073", "text": "public function fetchGoogleKey()\n {\n return $this->fetchProperty(self::$nameClientLogin);\n }", "title": "" }, { "docid": "89380e0c77f79c5ecb19eb5b3a0d6b32", "score": "0.6706024", "text": "abstract protected function getServiceKey();", "title": "" }, { "docid": "e356da6b22920d93557630216e4da0ad", "score": "0.6697484", "text": "private function getLicenseKey()\n {\n return $this->getValue(self::LICENSE_KEY);\n }", "title": "" }, { "docid": "a0db5d8777d331745bc05b37bbc88615", "score": "0.6692455", "text": "public static function get_key() {\n\t\treturn self::$key;\n\t}", "title": "" }, { "docid": "77769651800a406e2d7f019a4cd0f992", "score": "0.66921556", "text": "public function getKey() :string\n {\n return $this->apiKey;\n }", "title": "" }, { "docid": "31e8197c5b237c9b954e0dfe53a41248", "score": "0.66824526", "text": "public function publickey($sk);", "title": "" }, { "docid": "b011b62270d6a53f17b9131ae8facbf2", "score": "0.6677701", "text": "public function getKey() { return $this->key; }", "title": "" }, { "docid": "9d1fa6934d30991d46bf131963b12c3b", "score": "0.6643404", "text": "public function getKey() {\n\n return $this->key;\n\n }", "title": "" }, { "docid": "a46360f908dd4cf8c3c82fffd699f833", "score": "0.6641994", "text": "function getSecrectKey()\n {\n return $this->SecrectKey;\n }", "title": "" }, { "docid": "7c91fec84f808ab24eb0bf530e034323", "score": "0.6636523", "text": "public function getEncodedKey(): string;", "title": "" }, { "docid": "060e892e20799dd69dd992929ed9afb2", "score": "0.6627944", "text": "public function getLicenseKey()\n {\n return Mage::getStoreConfig('magebridge/settings/license_key');\n }", "title": "" }, { "docid": "42fb1035c6c0f90a9e18c4ddbcc3a9b9", "score": "0.66138136", "text": "public function get_key() {\n\t\treturn $this->key;\n\t}", "title": "" }, { "docid": "4b4178afc84bc5e2400006016ab2ae5b", "score": "0.65949726", "text": "public function getProviderKey ();", "title": "" }, { "docid": "8b1940073317401742de60134f774d35", "score": "0.6585388", "text": "public function getAuthKey() {\r\n return $this->config->get('key');\r\n }", "title": "" }, { "docid": "60a4372fdfb4725bf092e560ec752cf4", "score": "0.6584792", "text": "public function getKey() {\n return $this->_key;\n }", "title": "" }, { "docid": "c40474ed8c2ae50b2c8de0be3332c136", "score": "0.6574157", "text": "protected function getAuthPublicKey(): string\n {\n $stack = HandlerStack::create();\n\n $stack->push(GuzzleRetryMiddleware::factory());\n $stack->push(new CacheMiddleware(\n new GreedyCacheStrategy(\n new DoctrineCacheStorage(\n new FilesystemCache('/tmp/')\n ),\n $this->config['auth']['cacheTtl']\n )\n ), 'cache');\n\n $client = new Client(['handler' => $stack]);\n\n $keys = json_decode($client->get($this->config['auth']['publicKeyUrl'])->getBody(), true);\n return (new JWKConverter())->toPEM($keys['keys'][0]);\n }", "title": "" }, { "docid": "67b4b5fe17a33f4b7c91444fd30b01e0", "score": "0.6558313", "text": "public function getKey(){\n\n return $this->_key;\n }", "title": "" }, { "docid": "923b7b2ea77d00ca9b4ddc3f1485daad", "score": "0.6544319", "text": "public function getPublickey(): string{\n\n\t\t\ttry{\n\n\t\t\t\t$user_id = (new ExtraUserInfo())->getUserId();\n\t\t\t\n\t\t\t\t$pk = (new self())::filter('public_key')->where( ['owned_by', $user_id] )->get()->public_key;\n\t\t\t\n\t\t\t\treturn sodium_hex2bin($pk);\n\t\t\t\n\t\t\t}catch(\\TypeError $t){\n\t\t\t\tnew ErrorTracer($t);\n\t\t\t}catch(\\RangeException $t){\n\t\t\t\tnew ErrorTracer($t);\n\t\t\t}catch(\\Throwable $t){\n\t\t\t\tnew ErrorTracer($t);\n\t\t\t}\t\n\t\t}", "title": "" }, { "docid": "b41a3cb6cfe8ae2d307c9398f1fc5337", "score": "0.65420306", "text": "public static function key() {\n\t\treturn self::$key;\n\t}", "title": "" }, { "docid": "5100e70bf9efbdfa4334fdd7c0d2d8c6", "score": "0.6541336", "text": "public function randomKey();", "title": "" }, { "docid": "49e86d5dec6c70d0c7eb0a2303097c1c", "score": "0.6540804", "text": "function getKey() {\n\t\treturn $this->key;\n\t}", "title": "" }, { "docid": "3222e67abbc4512a4719e8ffa2fe6d61", "score": "0.65391725", "text": "private function get_key() {\n $this->eancrykey = file_get_contents('../config/key.txt');\n }", "title": "" }, { "docid": "7572e9e8370af795cda8c2ede49b7268", "score": "0.6537763", "text": "public function getKey() {\n return $this->key;\n }", "title": "" }, { "docid": "7572e9e8370af795cda8c2ede49b7268", "score": "0.6537763", "text": "public function getKey() {\n return $this->key;\n }", "title": "" }, { "docid": "12300affbb4105500acbfb19dd982c59", "score": "0.6534999", "text": "public function getKey()\n {\n return self::$_key;\n }", "title": "" }, { "docid": "d466d5996df1f46ccbadcbb94d2b7985", "score": "0.6531", "text": "abstract public function key(): string;", "title": "" }, { "docid": "ee670c599df0f86c16b6dc4747e75061", "score": "0.6519208", "text": "public function getCryptoKey()\n {\n return $this->crypto_key;\n }", "title": "" }, { "docid": "b22a74889fe092d73ff138b28298881e", "score": "0.6508035", "text": "function osc_recaptcha_private_key() {\n return (getPreference('recaptchaPrivKey'));\n }", "title": "" }, { "docid": "46a0c9ea12f4a3b21dae87f8b815e6b1", "score": "0.65075535", "text": "public function sitekey()\n {\n return response()->json(['sitekey' => $this->captcha->getSiteKey()]);\n }", "title": "" }, { "docid": "bc9856dc80ce8de721d03eb90648e08a", "score": "0.64986604", "text": "public static function getApiKey() {\n $key_id = \\Drupal::configFactory()\n ->get('hs_bugherd.connection_settings')\n ->get('api_key');\n /** @var \\Drupal\\key\\Entity\\Key $key */\n if ($key_id && $key = Key::load($key_id)) {\n return $key->getKeyValue();\n }\n }", "title": "" }, { "docid": "cba117052f9adebc1ed1e26df9bb008d", "score": "0.64963675", "text": "public function getSiteKey()\n {\n return $this->captcha->getSiteKey();\n }", "title": "" }, { "docid": "391e1e789deb044d4ae4e9472ad08081", "score": "0.64953786", "text": "public function getSocialNetworkKey();", "title": "" }, { "docid": "91346464532c2f7640c9bdcb8d4f92ed", "score": "0.64953345", "text": "public function getKey()\n\t{\n\t\treturn $this->validateKey($this->key);\n\t}", "title": "" }, { "docid": "b7ab76537fb012ba33b5cc690932c02a", "score": "0.64920187", "text": "public function key ()\n {\n return $this->key;\n }", "title": "" }, { "docid": "a4a5108bd3a3eb8ba089215481f1807a", "score": "0.6490039", "text": "function get_crypt_key()\r\n{\r\n srand((double)microtime()*1000000);\r\n return(md5(uniqid(rand(),1)));\r\n}", "title": "" }, { "docid": "5f5a1bcd8be28a7f2ca1f9c1298b04b0", "score": "0.6488539", "text": "public function key()\n {\n return $this->key;\n }", "title": "" }, { "docid": "5f5a1bcd8be28a7f2ca1f9c1298b04b0", "score": "0.6488539", "text": "public function key()\n {\n return $this->key;\n }", "title": "" }, { "docid": "5f5a1bcd8be28a7f2ca1f9c1298b04b0", "score": "0.6488539", "text": "public function key()\n {\n return $this->key;\n }", "title": "" }, { "docid": "5f5a1bcd8be28a7f2ca1f9c1298b04b0", "score": "0.6488539", "text": "public function key()\n {\n return $this->key;\n }", "title": "" }, { "docid": "5f5a1bcd8be28a7f2ca1f9c1298b04b0", "score": "0.6488539", "text": "public function key()\n {\n return $this->key;\n }", "title": "" }, { "docid": "5f5a1bcd8be28a7f2ca1f9c1298b04b0", "score": "0.6488539", "text": "public function key()\n {\n return $this->key;\n }", "title": "" }, { "docid": "83dc60e98a50b9d1e9421e19f8b134ef", "score": "0.64856416", "text": "public function key() {\r\n\t\treturn session_id() ?: null;\r\n\t}", "title": "" }, { "docid": "30c33192f2ddc2e18caf1f9d646254bf", "score": "0.64803666", "text": "public function getKey() {\n\t\treturn $this->_key;\n\t}", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.6480301", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" } ]
471976a74781a448de7a030c06413e98
Deletes the user data of a config key. In order to delete the key itself, use delete()
[ { "docid": "dcf03393846a6c97ddaf540497f46be0", "score": "0.79125583", "text": "public function deleteKey($key, $user = false)\n {\n $config = $this->getConfigModel($key);\n if (!$user) $user = $this->getActiveUser();\n $userConfig = $config->getUserConfig($user);\n if ($userConfig) $userConfig->delete();\n }", "title": "" } ]
[ { "docid": "32ac1ca0bf8cc29fa7df260afb2d62d0", "score": "0.717867", "text": "public function delData($key);", "title": "" }, { "docid": "e53f8ed9c16ec400a3cd9af5f6ac1811", "score": "0.6763832", "text": "public function deleteKey($key);", "title": "" }, { "docid": "3f4f250f2cf1b6cf3ba44f6d0d0ce67c", "score": "0.6753523", "text": "public function del($key);", "title": "" }, { "docid": "7e1d3b942fd10ba7d3a3bb093977ab71", "score": "0.67363715", "text": "public function del($key){ }", "title": "" }, { "docid": "93b625acbb4dc5670a43f764b8652010", "score": "0.65983975", "text": "public function del(string $key);", "title": "" }, { "docid": "015a4ada2c9ce6e530f2965cfc876890", "score": "0.65684867", "text": "function data(){\n User::where('key_id', $this->_key)->delete();\n //DB::table('users')->where('key_id', '=', $this->_key)->delete();\n }", "title": "" }, { "docid": "33d23e6655cb665befee169c1b1341b6", "score": "0.65395904", "text": "public function delete($key): void;", "title": "" }, { "docid": "33d23e6655cb665befee169c1b1341b6", "score": "0.65395904", "text": "public function delete($key): void;", "title": "" }, { "docid": "ad0a7d4148129027c5c18d62072c4f7a", "score": "0.6520618", "text": "public function delete($key);", "title": "" }, { "docid": "ad0a7d4148129027c5c18d62072c4f7a", "score": "0.6520618", "text": "public function delete($key);", "title": "" }, { "docid": "ad0a7d4148129027c5c18d62072c4f7a", "score": "0.6520618", "text": "public function delete($key);", "title": "" }, { "docid": "ad0a7d4148129027c5c18d62072c4f7a", "score": "0.6520618", "text": "public function delete($key);", "title": "" }, { "docid": "ad0a7d4148129027c5c18d62072c4f7a", "score": "0.6520618", "text": "public function delete($key);", "title": "" }, { "docid": "ad0a7d4148129027c5c18d62072c4f7a", "score": "0.6520618", "text": "public function delete($key);", "title": "" }, { "docid": "ad0a7d4148129027c5c18d62072c4f7a", "score": "0.6520618", "text": "public function delete($key);", "title": "" }, { "docid": "ad0a7d4148129027c5c18d62072c4f7a", "score": "0.6520618", "text": "public function delete($key);", "title": "" }, { "docid": "ad0a7d4148129027c5c18d62072c4f7a", "score": "0.6520618", "text": "public function delete($key);", "title": "" }, { "docid": "ad0a7d4148129027c5c18d62072c4f7a", "score": "0.6520618", "text": "public function delete($key);", "title": "" }, { "docid": "ad0a7d4148129027c5c18d62072c4f7a", "score": "0.6520618", "text": "public function delete($key);", "title": "" }, { "docid": "ad0a7d4148129027c5c18d62072c4f7a", "score": "0.6520618", "text": "public function delete($key);", "title": "" }, { "docid": "ad0a7d4148129027c5c18d62072c4f7a", "score": "0.6520618", "text": "public function delete($key);", "title": "" }, { "docid": "ad0a7d4148129027c5c18d62072c4f7a", "score": "0.6520618", "text": "public function delete($key);", "title": "" }, { "docid": "ad0a7d4148129027c5c18d62072c4f7a", "score": "0.6520618", "text": "public function delete($key);", "title": "" }, { "docid": "ad0a7d4148129027c5c18d62072c4f7a", "score": "0.6520618", "text": "public function delete($key);", "title": "" }, { "docid": "84ffd5d41241886a42efaaa6c4cb6c45", "score": "0.65200585", "text": "public function delete()\n {\n self::remove($this->key);\n $this->key = null;\n $this->value = null;\n }", "title": "" }, { "docid": "313af9d76caefbb4374bd8584cf2c117", "score": "0.64811635", "text": "function clear($key=''){\n\t\tif(!$this->is_available()) return false;\n // If a key was specified then delete that key\n if ($key != '') {\n $hashkey = $this->hash($key);\n return apc_delete($hashkey);\n }else{\n\t\t\tapc_clear_cache();\n\t\t\treturn apc_clear_cache('user');\n\t\t}\n }", "title": "" }, { "docid": "f680960d53068a1569c8aec220afd9c3", "score": "0.6472367", "text": "public function deleteUserKey($key) {\n return AlgoliaUtils_request($this->curlHandle, $this->hostsArray, \"DELETE\", \"/1/keys/\" . $key);\n }", "title": "" }, { "docid": "b582c4b7c8366bbf0def73ec4d1ddfa9", "score": "0.6457124", "text": "public function remove() {\n global $db;\n\n $db->Execute( \"delete from \" . TABLE_CONFIGURATION . \" where configuration_key in ('\" . implode( \"', '\", $this->keys() ) . \"')\" );\n }", "title": "" }, { "docid": "26e8c67cb94f7508c0415683baf08dc5", "score": "0.64303297", "text": "protected function delete_data( $key ) {\n\t\t_deprecated_function( __METHOD__, '2.0', 'affiliate_wp()->utils->data->delete()' );\n\n\t\taffiliate_wp()->utils->data->delete( $key );\n\t}", "title": "" }, { "docid": "e773f612b522042e23b01c1c021136e4", "score": "0.64251417", "text": "function delete($key);", "title": "" }, { "docid": "e773f612b522042e23b01c1c021136e4", "score": "0.64251417", "text": "function delete($key);", "title": "" }, { "docid": "fcfd7a77609a190c42d2aa4620d10302", "score": "0.6388128", "text": "public function delete($key, $data = []);", "title": "" }, { "docid": "4f8a1f71c0174c4b22ded85a82b9098c", "score": "0.63812745", "text": "public function delete(string $key);", "title": "" }, { "docid": "7c8b48569151eabf972e4909afb6af78", "score": "0.6355718", "text": "public function delete(string $key): void;", "title": "" }, { "docid": "7c8b48569151eabf972e4909afb6af78", "score": "0.6355718", "text": "public function delete(string $key): void;", "title": "" }, { "docid": "4b3b8bcdbfabc7bd5e497c3a2ae1f6d0", "score": "0.63483655", "text": "public function deleteUserKey($key) {\n return AlgoliaUtils_request($this->curlHandle, $this->hostsArray, \"DELETE\", \"/1/indexes/\" . $this->urlIndexName . \"/keys/\" . $key);\n }", "title": "" }, { "docid": "df284915a7a900d970f7b97c3d39880c", "score": "0.63155925", "text": "private function deleteKeyFromDatabase($Key) {\n\t\tDB::getInstance()->exec('DELETE FROM '.PREFIX.'conf WHERE `accountid`=\"'.$this->userID().'\" AND `category`=\"'.$this->key().'\" AND `key`=\"'.$Key.'\"');\n\t}", "title": "" }, { "docid": "fddc86325a6ed2fb722e4f9cf537457a", "score": "0.6314551", "text": "public function delete($key) {\n }", "title": "" }, { "docid": "0fa8f66df2480b54336c4ae90e75d279", "score": "0.62975836", "text": "function deleteOptionMetaByUserIdAndKey($userid, $key)\n {\n $query = sprintf(\"DELETE FROM %s\n WHERE userid='%s' AND ometakey='%s'\",\n WPST_OPTIONS_META_TABLE, $userid, $key) ;\n\n return $this->deleteOptionMeta($query) ;\n }", "title": "" }, { "docid": "0f2346306028bb02e3ab80a071546627", "score": "0.62971425", "text": "static public function deleteByName($key)\n\t{\n\t \tif (!Validate::isConfigName($key))\n\t \t\tdie(Tools::displayError());\n\n\t\treturn MySQL::getInstance()->query('DELETE FROM `configuration` WHERE `name` = \\''.pSQL($key).'\\'');\n\t}", "title": "" }, { "docid": "23fd79f0cc3bce8b0e1a2998b364ef89", "score": "0.6269545", "text": "public static function delete($key)\n {\n $path = SettingFolder::getPath();\n $src = $path . '/' . $key . '.json';\n\n File::delete($src);\n }", "title": "" }, { "docid": "7900109039e768979c4a12154fbcf5ee", "score": "0.62694585", "text": "public function delete(string $key): void\n {\n if (isset($this->data[$key])) {\n unset($this->data[$key]);\n }\n\n $fileName = sprintf('%s.json', $key);\n if ($this->fileSystem->isFile($fileName)) {\n $this->fileSystem->unlink($fileName);\n }\n }", "title": "" }, { "docid": "4c6f7836344e60305832adc53650b5a5", "score": "0.625887", "text": "public function delete(string $key)\n {\n unset($this->data[$key]);\n }", "title": "" }, { "docid": "366b6ddd9b62435495199b11857e4417", "score": "0.6243968", "text": "public function delete(string $key): void\n {\n unset($this->data[$key]);\n }", "title": "" }, { "docid": "d9118ba747df5eea5c76b1dca8492d67", "score": "0.6225732", "text": "public static function delete ($key) {\n\t\t$file = Config::get('cache').md5($key);\n @unlink($file);\n }", "title": "" }, { "docid": "21a0854d2ba2782ebcb7554858929dd3", "score": "0.62251925", "text": "public function delete($key)\n {\n }", "title": "" }, { "docid": "21a0854d2ba2782ebcb7554858929dd3", "score": "0.62251925", "text": "public function delete($key)\n {\n }", "title": "" }, { "docid": "21a0854d2ba2782ebcb7554858929dd3", "score": "0.62251925", "text": "public function delete($key)\n {\n }", "title": "" }, { "docid": "508ba28798419f784f90497fc6906150", "score": "0.6208324", "text": "public static function del ($key) {\n\t\tself::delete($key);\n\t}", "title": "" }, { "docid": "65eaea5ad08ef15399de224bce7b3df2", "score": "0.6206887", "text": "abstract public function delete($key);", "title": "" }, { "docid": "65eaea5ad08ef15399de224bce7b3df2", "score": "0.6206887", "text": "abstract public function delete($key);", "title": "" }, { "docid": "05521590cffbc984c83160e1e21ac011", "score": "0.61757165", "text": "static function delete_userdata() {\n\t\tunset( $_SESSION['user_data'] );\n\t}", "title": "" }, { "docid": "cc599c4bd8f4cdeec105b3a0fb322e26", "score": "0.6160467", "text": "function game_remove_value($game_user, $key) {\n $sql = 'delete from {user_attributes}\n where `fkey_users_id` = %d and `key` = \"%s\";';\n return db_query($sql, $game_user->id, $key);\n}", "title": "" }, { "docid": "447aef27499d672625a55d70748d195e", "score": "0.615952", "text": "public function destroy($key);", "title": "" }, { "docid": "8297fb007744680dcec801bc9bdc4c0c", "score": "0.61347777", "text": "public function deleteDefault($key)\n\t{\n\t\treturn $this->post('settings/delete_default', array('key' => $key));\n\t}", "title": "" }, { "docid": "b0d5ef09907c908a27ec27fc9ebf7407", "score": "0.6111672", "text": "function DELETE($key){\n if(isPrimaryUser()){\n $this->query = \"delete from \" . $this->table . \" where \" . $this->userKey .\"=\". $this->session->userid;\n if(isset($key)){\n $this->query = $this->query . \" and \" . $this->resourcekey . \"=\" . $key;\n }\n return parent::DELETE(null);\n }\n return \"0\";\n }", "title": "" }, { "docid": "d75b1bd3498b193569b266e178e891b1", "score": "0.6103468", "text": "public function offsetUnset($key)\n {\n $this->config->set($this->key($key), null);\n }", "title": "" }, { "docid": "861a9e841afb0fbcb8b6b90141f7f78b", "score": "0.6099366", "text": "function delete($key)\n {\n if (isset($this->store[$key]))\n unset($this->store[$key]);\n }", "title": "" }, { "docid": "b8cbd9d1b4dd9d77234d3f02940c97a6", "score": "0.6092375", "text": "public function unsetInfo ($key);", "title": "" }, { "docid": "a7940eae75744d83777b95a792c1c606", "score": "0.6079796", "text": "public function resetKey($key, $user = false)\n {\n $config = $this->getConfigModel($key);\n if (!$user) $user = $this->getActiveUser();\n $userConfig = $config->getUserConfig($user);\n if ($userConfig) {\n $userConfig->value = $config->default;\n $userConfig->save();\n }\n }", "title": "" }, { "docid": "ede1a511f0b2d2c0e9991cb32b649710", "score": "0.60329133", "text": "public static function delete($key, $config = 'default')\n {\n $engine = static::engine($config);\n\n return $engine->delete($key);\n }", "title": "" }, { "docid": "d99f866397e410a940d40fdca0ca627f", "score": "0.6014908", "text": "public function delete($keyLike);", "title": "" }, { "docid": "94f047fa09f27cbf9d3f41a2fae91101", "score": "0.60123193", "text": "function del_data($sKey) {\r\n $bRes = false;\r\n apc_fetch($sKey, $bRes);\r\n return ($bRes) ? apc_delete($sKey) : true;\r\n }", "title": "" }, { "docid": "0fb749cbd968be6278ce01d848c25138", "score": "0.60121024", "text": "public function delete($key)\n {\n $this->driver->delete($key);\n }", "title": "" }, { "docid": "bdc629c18d55ba38912d12300a3a7b04", "score": "0.6008866", "text": "public function removeCustom(string $key): void\n {\n $this->config->removeCustom($key);\n }", "title": "" }, { "docid": "d4f1e181c007d38118cae2b382a18da2", "score": "0.60083616", "text": "function lingotek_keystore_delete($entity_type, $id, $key) {\n $query = db_delete('lingotek_entity_metadata');\n $query->condition('entity_type', $entity_type);\n $query->condition('entity_id', $id);\n $query->condition('entity_key', $key);\n return $query->execute();\n}", "title": "" }, { "docid": "1dd90434685c1e219f706c81b7a1f673", "score": "0.59723806", "text": "final public function delete( $key ) {\n\t\t$section = new ProfileSection( get_class( $this ) . '::' . __FUNCTION__ );\n\n\t\treturn $this->doDelete( \"{$this->cacheID}:$key\" );\n\t}", "title": "" }, { "docid": "ed00ecc053a77ded2388c2519b3529c1", "score": "0.5963892", "text": "function remove_by_name($cloudconfig_key) {\n\t$db=htvcenter_get_db_connection();\n\t$rs = $db->Execute(\"delete from \".$this->_db_table.\" where cc_key='$cloudconfig_key'\");\n}", "title": "" }, { "docid": "2710096df8830187842780a8328c094c", "score": "0.5958241", "text": "public function delete($key, $forClientId = null)\n\t{\n\t\t$params = array('key' => $key);\n\n\t\tif ($forClientId) {\n\t\t\t$params['for_client_id'] = $forClientId;\n\t\t}\n\n\t\treturn $this->post('settings/delete', $params);\n\t}", "title": "" }, { "docid": "87278422b8029cd3d6ab02abdb1c94d9", "score": "0.5955515", "text": "public function delete($key)\n {\n $key = $this->prefixKey($key);\n\n // Remove the expiration tracking for this key.\n unset($this->data[static::EXPIRATION_KEY][$key]);\n\n // Remove the value associated to key.\n unset($this->data[$key]);\n }", "title": "" }, { "docid": "57d85c0c97004e598187e54f11349d69", "score": "0.59487253", "text": "function sdel($key){\n if (isset(Yii::app()->session[$key]))\n unset(Yii::app()->session[$key]); \n }", "title": "" }, { "docid": "2b4611add0343b31f5d8535aecdadb43", "score": "0.59329426", "text": "public function deleteData();", "title": "" }, { "docid": "5fa55346baa5f212e5097b9018008abb", "score": "0.5931003", "text": "protected function unsetCachedData($key)\n {\n // try {\n if (is_null($this->MemConnection) === TRUE) {\n $this->library->load->library(\"memlibrary\");\n $this->MemConnection = $this->library->memlibrary;\n $this->MemConnection->Delete($key);\n } else {\n $this->MemConnection->Delete($key);\n }\n }", "title": "" }, { "docid": "8cb77ce6347eb9b6b2d96daca49469f6", "score": "0.59150183", "text": "public function remove( $secretId, $key );", "title": "" }, { "docid": "576afb7126b355fb123ba54de6c6e83a", "score": "0.59061503", "text": "public function deleteUserData()\n {\n $query = DB::query( Database::SELECT, 'SELECT delete_user(:id)');\n $query->parameters( array( \":id\" => ( int ) $this->id ) );\n $query->execute();\n }", "title": "" }, { "docid": "829a9fb733322782a9034dbb0ee7ddb3", "score": "0.5883492", "text": "function delete_option($key)\n\t{\n\t\treturn delete_option($key);\n\t}", "title": "" }, { "docid": "9c22d526ee0158af11eebc4d1bf3c6ba", "score": "0.5874178", "text": "public function delete($key) {\n\t\treturn $this->getDriver()->del($key);\n\t}", "title": "" }, { "docid": "637a0d76398b2ea33d1fcebe5c02127c", "score": "0.58600664", "text": "public function remove($key)\n\t{\n\t\t$this->database->clearByIds([$key]);\n\t}", "title": "" }, { "docid": "0ca381b282a885a1bc7c8523c192da86", "score": "0.58539236", "text": "public function DELETE($key){\n return 0;\n }", "title": "" }, { "docid": "a53d9b675446a258affe93c2d78a4b5c", "score": "0.58532345", "text": "public function delete( $key )\n {\n unset( $this->parameters[$key] );\n }", "title": "" }, { "docid": "da89bfe8bb40ed0b0e35a738e92c3226", "score": "0.58452934", "text": "public function delete(string $key)\n {\n $this->store->delete($key);\n }", "title": "" }, { "docid": "bb03df3412cee9e6e04c3ea860d08dd7", "score": "0.5838749", "text": "protected function deleteValue($key)\n\t{\n $this->deleteRef($key);\n return apc_delete($key);\n\t}", "title": "" }, { "docid": "f626bba281cdf183c686a00a493ad8b4", "score": "0.5829835", "text": "public function deleteModelCache($key) {\n\t\tif ($this->apc_enabled) {\n\t\t\tapcu_delete($key);\n\t\t}\n\n\t\t/* store this value in the memcached servers */\n\t\tif ($this->memcached_enabled) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "441f0c3c697b536f8acbb29b26642c09", "score": "0.58184844", "text": "function delete() {\n $delete = parent::delete();\n if($delete && !is_error($delete)) {\n recursive_rmdir($this->getLocalizationPath(), LOCALIZATION_PATH);\n \n $user_config_options_table = TABLE_PREFIX . 'user_config_options';\n \n $rows = db_execute_all(\"SELECT user_id, value FROM $user_config_options_table WHERE name = ?\", 'language');\n if(is_foreachable($rows)) {\n $used_by_users = array();\n foreach($rows as $row) {\n if(unserialize($row['value']) == $this->getId()) {\n $used_by_users[] = (integer) $row['user_id'];\n } // if\n } // foreach\n \n if(is_foreachable($used_by_users)) {\n db_execute(\"DELETE FROM $user_config_options_table WHERE name = ? AND user_id IN (?)\", 'language', $used_by_users);\n cache_remove_by_pattern('user_config_options_*');\n } // if\n } // if\n } // if\n \n return $delete;\n }", "title": "" }, { "docid": "d1009376e37e3bec333b80af670ad1f3", "score": "0.58104175", "text": "public static function remove($strKey)\n\t{\n\t\t$objConfig = static::getInstance();\n\n\t\tif (strncmp($strKey, '$GLOBALS', 8) !== 0)\n\t\t{\n\t\t\t$strKey = \"\\$GLOBALS['TL_CONFIG']['$strKey']\";\n\t\t}\n\n\t\t$objConfig->delete($strKey);\n\t}", "title": "" }, { "docid": "c72ba9a12a62391f39810702ddc01585", "score": "0.5798632", "text": "public function unsetData($key)\n {\n $session = Mage::getSingleton('core/session');\n \n if ($session->hasData('productPersonalization')) {\n $data = $session->getData('productPersonalization');\n if (isset($data[$key])) {\n unset($data[$key]);\n $session->setData('productPersonalization', $data);\n } \n }\n }", "title": "" }, { "docid": "2d4b8c9de59d55d603bb1423b9dfc7fe", "score": "0.57869565", "text": "public function unset_userdata($aKey=array()) {\n if (is_string($aKey))\n $aKey = array($aKey);\n \n $tArray = $this->session->userdata;\n \n foreach ($aKey as $key) \n unset($tArray[$key]);\n\n $this->session->userdata = $tArray;\n \n $this->write();\n }", "title": "" }, { "docid": "a1f450f6754d82c966f3cf9f5992fc5d", "score": "0.57861495", "text": "public function delete($key){\n\t\tunset($_SESSION[$key]);\n\t}", "title": "" }, { "docid": "3db5b56475c773a44d00df51abd13e10", "score": "0.57828623", "text": "public function deleteValue($key)\r\n {\r\n if(!$this->dbh)\r\n $this->connect();\r\n \r\n $query = \"delete from system_registry where key_name = '$key'\";\r\n $this->Query($query);\r\n \r\n return true;\r\n }", "title": "" }, { "docid": "89b348c4e3903fa50b97fe6f93227b7a", "score": "0.578171", "text": "public function del_file($keydata,$name,$description){\n $yamlContents=Yaml::parseFile($this->filename);\n unset($yamlContents[\"organizations\"][$keydata]);\n return $this->save_file($yamlContents);//after delete call save function\n }", "title": "" }, { "docid": "d590b89eb98ed648a6500e38440e845a", "score": "0.5775066", "text": "public function settingsDelete()\n\t\t{\n\t\t\t$user = AppUser::loadByUsername($_SESSION['username']);\n\t\t\t$user->delete();\n\t\t\t$_SESSION['confirm'] = null;\n\t\t\t$_SESSION['username'] = null;\n\t\t\theader('Location: '.BASE_URL);\n\n\t\t}", "title": "" }, { "docid": "26c1f11715bdfedc96e44d5c237a14b7", "score": "0.5768426", "text": "public function index_delete()\n {\n $key = $this->delete('key');\n\n // Does this key exist?\n if (!$this->_key_exists($key))\n {\n // It doesn't appear the key exists\n $this->response([\n 'status' => FALSE,\n 'message' => 'Invalid API key'\n ], REST_Controller::HTTP_BAD_REQUEST); // BAD_REQUEST (400) being the HTTP response code\n }\n\n // Destroy it\n $this->_delete_key($key);\n\n // Respond that the key was destroyed\n $this->response([\n 'status' => TRUE,\n 'message' => 'API key was deleted'\n ], REST_Controller::HTTP_NO_CONTENT); // NO_CONTENT (204) being the HTTP response code\n }", "title": "" }, { "docid": "86fe063483445eac6e52ae9340ff176c", "score": "0.57638913", "text": "public function delete($key)\n {\n if (! $this->_active) {\n return;\n }\n \n // modify the key to add the prefix\n $key = $this->entry($key);\n \n // remove from apc\n apc_delete($key);\n }", "title": "" }, { "docid": "d25ba65d79ebf19ffd2355a2654cc9b8", "score": "0.57552487", "text": "function settingsDelete($args) {\n $result = false; //Guarantee a result.\n $key = $args['command']->tokens[2];\n $result = $args['AE']->Configs->delConfig($key);\n\n echo ($result ? \"$key deleted\" : \"$key could not be deleted\");\n echo PHP_EOL;\n\n return ['success' => $result];\n }", "title": "" }, { "docid": "8e56e85a6d2cbfd0d417cf535a8ec4d7", "score": "0.5751946", "text": "public function deleteKey( $key ) {\n \n Capsule::table('activations')->where('activationkey', $key)->delete();\n }", "title": "" }, { "docid": "9d5eef71971e9674bffe454981d6c9d0", "score": "0.57450205", "text": "public function deleteData ( $thisKey, $fileUpload=false ) {\n global $snSuperAdmin,$snAdministrator,$snUserKey;\n\n $dbKeys[$this->_key]=$thisKey;\n if (!$snSuperAdmin) {\n if (!$snAdministrator) { $dbKeys['etAuthor']=$snUserKey; }\n else { // need to retrieve to get second delete key\n $dbi=DB::getInstance();\n $query=\"SELECT etAuthor, etAdmin FROM \"._TBL_EZINES_.\" WHERE etKey='\".pSQL($thisKey).\"'\";\n $ttTable=$dbi->getOneRow( $query );\n if ($dbi->_numRows>0) {\n if ($ttTable['etAuthor']==$snUserKey) { $dbKeys['etAuthor']=$snUserKey; }\n else { $dbKeys['etAdmin']=$snUserKey; }\n } else { return false; }\n }\n }\n if (!parent::deleteData ( $dbKeys, $fileUpload )) { return false; }\n return true;\n }", "title": "" }, { "docid": "cba82d1fef79c542d126309a65027045", "score": "0.57411957", "text": "public function delete($key)\n {\n $sessionData = $this->sessionObject->getSessionData($this->storageKey);\n unset($sessionData[$key]);\n $this->sessionObject->setAndSaveSessionData($this->storageKey, $sessionData);\n }", "title": "" }, { "docid": "e15e93edaf0ef020560841dc9227f842", "score": "0.5740725", "text": "public function remove($key)\n {\n\n }", "title": "" }, { "docid": "196b99a17af71bd7176539255e69249a", "score": "0.57375795", "text": "public function deleteSettings()\n {\n $master = new DynaGridStore(\n [\n 'id' => $this->dynaGridId,\n 'moduleId' => $this->moduleId,\n 'category' => DynaGridStore::STORE_GRID,\n 'storage' => $this->storage,\n 'userSpecific' => $this->userSpecific,\n 'dbUpdateNameOnly' => $this->dbUpdateNameOnly,\n ]\n );\n $config = $this->storage == DynaGrid::TYPE_DB ? null : $master->fetch();\n $master->deleteConfig($this->category, $config);\n $this->getStore()->delete();\n }", "title": "" }, { "docid": "6693c213f6513a64a43c8162980afb93", "score": "0.57324994", "text": "private function deinitialiseDataResult($key) {\n $this->state->delete($key);\n }", "title": "" } ]
7623805d99b3059efac2a33dfa0f7144
Get the associative array of the virtual columns in this object
[ { "docid": "7ce5ff6c12260db53d61666b1ca5d5fa", "score": "0.8391602", "text": "public function getVirtualColumns()\n {\n return $this->virtualColumns;\n }", "title": "" } ]
[ { "docid": "991a93ed6ed4abfa3c2678f4608c91c3", "score": "0.84153295", "text": "public function getVirtualColumns();", "title": "" }, { "docid": "8164ee0c858010b99aa7d87b5503dc61", "score": "0.83747435", "text": "public function getVirtualColumns()\r\n {\r\n return $this->_virtualColumns;\r\n }", "title": "" }, { "docid": "bf2dc94ac84910c13b8de250499d9f3b", "score": "0.7968974", "text": "protected function getVirtualColumnNames()\n {\n return array();\n }", "title": "" }, { "docid": "953d687569a2c9531b2c0128e6dcf622", "score": "0.74407625", "text": "public function getColumns():array\n {\n return $this->properties;\n }", "title": "" }, { "docid": "bc223f85931b1722a5811a6524245b0e", "score": "0.72847766", "text": "public function toArray()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "14b0506e3d2a039677e733e482ca5a76", "score": "0.7198954", "text": "function getChangedVirtualColumns()\n {\n return array_intersect($this->_changedColumns, $this->getVirtualColumnNames());\n }", "title": "" }, { "docid": "a350621b7a2d6241871f3eef7a7a6d8f", "score": "0.7181457", "text": "public function getValues(): array\n {\n return $this->virtualModel->getAttributes();\n }", "title": "" }, { "docid": "a21662b75d4df42544bf3c38136accfe", "score": "0.71162504", "text": "public function attributes(): array\n {\n return array_keys($this->getTableSchema()->getColumns());\n }", "title": "" }, { "docid": "3d00b2d7107ac41ffe36227b7713a846", "score": "0.70683116", "text": "public function getModelColumns(){\n return $this -> info(Zend_Db_Table_Abstract::COLS);\n }", "title": "" }, { "docid": "433a2d751e8915bff0909b9a0d690b7e", "score": "0.70604384", "text": "public function toArray(): array\n {\n return array_map(fn(VirtualColumnInterface $item) => $item->toArray(), $this->items);\n }", "title": "" }, { "docid": "12ed390152ff535e044d602be1cf3f01", "score": "0.7042807", "text": "public function getColumns(): array\n { return $this->fields->map(\n function (Field $field) {\n return $field->toArray();\n }\n )->toArray();\n }", "title": "" }, { "docid": "92c1b5427a24835dede3f943336f4eb1", "score": "0.7023257", "text": "protected function getColumns() {\r\n // Create array to hold columns\r\n $columns = [];\r\n // Go through each item in the object map\r\n foreach ($this->map as $property => $column) {\r\n // Add the column to the array\r\n $columns[] = $column;\r\n }\r\n // Return the array\r\n return $columns;\r\n }", "title": "" }, { "docid": "c630aa629d846fea6b78acfce80da4a6", "score": "0.70105654", "text": "public function columns()\n {\n return static::getSchema()->columns;\n }", "title": "" }, { "docid": "ddad86c32f7cd490585d5de787e9e609", "score": "0.69741714", "text": "public function toArray()\n {\n $reflect = new ReflectionObject($this);\n\n $data = new ArrayHash();\n foreach ($reflect->getProperties() as $property) {\n $annotations = $this->annotationReader->getPropertyAnnotations($property);\n $shouldBeExported = false;\n foreach ($annotations as $annotation) {\n if ($annotation instanceof Column ||\n $annotation instanceof Exported\n ) {\n $shouldBeExported = true;\n break;\n }\n }\n\n if ($shouldBeExported) {\n $property->setAccessible(true);\n $data[$property->getName()] = $property->getValue($this);\n }\n }\n\n return $data;\n }", "title": "" }, { "docid": "1cca9f0d14633352b167f781c5a10078", "score": "0.69609153", "text": "public function toArray()\n {\n return parent::toArray() + [\n 'columns' => collect($this->columns)\n ];\n }", "title": "" }, { "docid": "ea7992e6aaf7dc89227dd74e3b41fec1", "score": "0.6928921", "text": "public function getColumns(): array\n {\n return $this->_columns;\n }", "title": "" }, { "docid": "1af58de333c3c7a2cbb746e9c1aed095", "score": "0.69024014", "text": "public function getColumns(): array\n {\n return $this->columns;\n }", "title": "" }, { "docid": "c8022760ce2c3d977e01b9f11c815454", "score": "0.68987334", "text": "public static function get_columns_data(): array\n {\n $called_class = get_called_class();\n return self::$columns_data[$called_class];\n }", "title": "" }, { "docid": "8db047cc24b3d6030969febcf54508d4", "score": "0.6862305", "text": "public function getColumns()\n\t{\n\t\treturn $this->model->getColumns();\n\t}", "title": "" }, { "docid": "5027f52a1519eb43d262e4d3191d10b5", "score": "0.6819913", "text": "public function getColumns(): array\n\t{\n\t\treturn $this->columns;\n\t}", "title": "" }, { "docid": "6db3228a721b5c2731f7bc76d369070e", "score": "0.6808397", "text": "public function getColumns()\n\t{\n\t\treturn $this->dbColumns;\n\t}", "title": "" }, { "docid": "04134235be64e69be3699db1ce6674a0", "score": "0.68037313", "text": "protected function _getColumns() {\n\t\t$model = $this->_getModel();\n\t\t$columns = $model->schema();\n\t\tunset($columns[$model->primaryKey]);\n\t\treturn $columns;\n\t}", "title": "" }, { "docid": "3fa755d724024ba9ecadde795fc98c4f", "score": "0.67863214", "text": "public function columns()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "d89fd7c064712ff4efc52b4c417c76f5", "score": "0.6784061", "text": "public static function getCSVMappableColumns()\n {\n $table = with(new static)->getTable();\n\n return collect(Schema::getColumnListing($table));\n }", "title": "" }, { "docid": "80b6b4677da46b12bc96be838df82bf6", "score": "0.6779325", "text": "public function getColumns(){\n return $this->columns;\n }", "title": "" }, { "docid": "48c2a34141eeae5e4a98b871dc525502", "score": "0.6771308", "text": "public function getPivotColumns(): array\n {\n return $this->pivotColumns;\n }", "title": "" }, { "docid": "d2bc166d571b6b3e56cb14230a67e11b", "score": "0.6770738", "text": "protected function getColumns ()\n\t{\n\t\treturn unserialize($this->loadConf('info.columns'));\n\t}", "title": "" }, { "docid": "1131e2d0bf04caa4d773c33c8e8a0393", "score": "0.6757415", "text": "function getColumns() { return $this->_columns; }", "title": "" }, { "docid": "fa4f9f47923e1c748f44763e2a86bde0", "score": "0.67378026", "text": "public function get_columns()\n {\n if ( !isset($this->session->cache['publisher']['columns_'.$this->field_table]))\n {\n $this->session->cache['publisher']['columns_'.$this->field_table] = ee()->db->select('field_id')->get($this->field_table);\n }\n\n $fields = array();\n\n foreach ($this->session->cache['publisher']['columns_'.$this->field_table]->result() as $row)\n {\n $fields[$row->field_id] = 'field_id_'.$row->field_id;\n }\n\n return $fields;\n }", "title": "" }, { "docid": "7611c22d32d40e905b37aca9af6e1392", "score": "0.6731412", "text": "public function getDataColumns()\r\n {\r\n return $this->_dataColumns;\r\n }", "title": "" }, { "docid": "6f2b92203948553d5be89678adda386c", "score": "0.670904", "text": "public function getColumns(): array;", "title": "" }, { "docid": "d3b6d8bc3309950e4f015555b28af1ef", "score": "0.6694511", "text": "public function columnNames()\r\n {\r\n return $this->object_results ? $this->first()->keys() : array_keys($this->first());\r\n }", "title": "" }, { "docid": "57f55a2f908f8540e5b3af429a43e5ad", "score": "0.6669142", "text": "public static function getColumns()\n {\n return array('username', 'passwordHash', 'email', 'firstName', 'lastName',\n 'affiliation', 'occupation', 'website', 'homeAddress', 'activationStage',\n 'banned', 'rank', 'passwordRestoreToken', 'registrationDate', 'lastActive',\n 'currentBindingId');\n }", "title": "" }, { "docid": "58c477b31d29dc7b19cea13a166e9e6a", "score": "0.66553646", "text": "protected function GetColumns()\r\n\t{\r\n\t\tif (!$this->ModelName)\r\n\t\t{\r\n\t\t\tthrow new Exception(\"ModelName must be defined in \" . get_class($this) . \"::GetColumns\");\r\n\t\t}\r\n\r\n\t\t$counter = 0;\r\n\t\t$props = array();\r\n\t\tforeach (get_class_vars($this->ModelName)as $var => $val)\r\n\t\t{\r\n\t\t\t$props[$counter++] = $var;\r\n\t\t}\r\n\t\treturn $props;\r\n\t}", "title": "" }, { "docid": "15455bf93e67d727501c183afd4b6fdb", "score": "0.6645792", "text": "static function getColumns() {\n\t\t// Expect Override\n\t\treturn array();\n\t}", "title": "" }, { "docid": "dc33561b41f2f4074bbf8057b10f83c9", "score": "0.6639927", "text": "protected function _getColumns()\n {\n if ($this->_columns === null) {\n $this->_columns = array_keys($this->getCollection()->getFirstItem()->getData());\n }\n return $this->_columns;\n }", "title": "" }, { "docid": "2ec8d5502c4b3c7de3deb72e79db53f9", "score": "0.663032", "text": "function getColumns() {\n\t\treturn $this->columns;\n\t}", "title": "" }, { "docid": "4718491f6e439e34b2d8680b504b4161", "score": "0.6625731", "text": "public function attributes()\n {\n $attributes = [];\n foreach (static::$db_columns as $column) {\n if ($column == 'id') {\n continue;\n }\n $attributes[$column] = $this->$column;\n }\n return $attributes;\n }", "title": "" }, { "docid": "ba43b7ce6fc712cbbdde2b464aafc3eb", "score": "0.6621911", "text": "public function attributes() {\n $attributes = [];\n foreach (static::$db_columns as $column) {\n if ($column == 'id') {\n continue;\n }\n $attributes[$column] = $this->$column;\n }\n return $attributes;\n }", "title": "" }, { "docid": "190c47ad51760058d24db3c44f91012b", "score": "0.6619118", "text": "public static function getColumns()\n {\n return self::query()->getModel()->getFillable();\n }", "title": "" }, { "docid": "190c47ad51760058d24db3c44f91012b", "score": "0.6619118", "text": "public static function getColumns()\n {\n return self::query()->getModel()->getFillable();\n }", "title": "" }, { "docid": "190c47ad51760058d24db3c44f91012b", "score": "0.6619118", "text": "public static function getColumns()\n {\n return self::query()->getModel()->getFillable();\n }", "title": "" }, { "docid": "190c47ad51760058d24db3c44f91012b", "score": "0.6619118", "text": "public static function getColumns()\n {\n return self::query()->getModel()->getFillable();\n }", "title": "" }, { "docid": "190c47ad51760058d24db3c44f91012b", "score": "0.6619118", "text": "public static function getColumns()\n {\n return self::query()->getModel()->getFillable();\n }", "title": "" }, { "docid": "1defc36ff1d96c5f1e13a24c9d96d108", "score": "0.65814245", "text": "public static function getColumns()\n {\n return array();\n }", "title": "" }, { "docid": "28744e1c69ad7fb1b78a61384a387c46", "score": "0.6581214", "text": "public function getColumns()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "28744e1c69ad7fb1b78a61384a387c46", "score": "0.6581214", "text": "public function getColumns()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "28744e1c69ad7fb1b78a61384a387c46", "score": "0.6581214", "text": "public function getColumns()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "28744e1c69ad7fb1b78a61384a387c46", "score": "0.6581214", "text": "public function getColumns()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "28744e1c69ad7fb1b78a61384a387c46", "score": "0.6581214", "text": "public function getColumns()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "28744e1c69ad7fb1b78a61384a387c46", "score": "0.6581214", "text": "public function getColumns()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "28744e1c69ad7fb1b78a61384a387c46", "score": "0.6581214", "text": "public function getColumns()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "28744e1c69ad7fb1b78a61384a387c46", "score": "0.6581214", "text": "public function getColumns()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "28744e1c69ad7fb1b78a61384a387c46", "score": "0.6581214", "text": "public function getColumns()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "28744e1c69ad7fb1b78a61384a387c46", "score": "0.6581214", "text": "public function getColumns()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "28744e1c69ad7fb1b78a61384a387c46", "score": "0.6581214", "text": "public function getColumns()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "01dc6a91a9a1b69ae9e6bdbc39bc6dd7", "score": "0.6577572", "text": "public function getColumns()\n {\n $columns = [];\n foreach ($this->schema()->getColumns() as $column) {\n $columns[$column->getName()] = $column->abstractType();\n }\n\n return $columns;\n }", "title": "" }, { "docid": "29c65f1a4076def6d94b68a0b7399d6f", "score": "0.65736014", "text": "public function getColumns() {\n return $this->columns;\n }", "title": "" }, { "docid": "d9132fb1a0bf458b9e2c83462c5553b6", "score": "0.65730125", "text": "public function getColumns()\n {\n return $this->getAdapter()->getColumns($this->getName());\n }", "title": "" }, { "docid": "a7c2b7f1f7daae3683182b2b76038a55", "score": "0.6571216", "text": "public function get_columns()\n\t{\n\t\treturn $this->_columns;\n\t}", "title": "" }, { "docid": "f7869962032d59275c3f909420165763", "score": "0.6559858", "text": "public function getColumns()\n {\n return $this->_columns;\n }", "title": "" }, { "docid": "f7869962032d59275c3f909420165763", "score": "0.6559858", "text": "public function getColumns()\n {\n return $this->_columns;\n }", "title": "" }, { "docid": "f7869962032d59275c3f909420165763", "score": "0.6559858", "text": "public function getColumns()\n {\n return $this->_columns;\n }", "title": "" }, { "docid": "548cdef86cf11a36f467fd1f49476386", "score": "0.6557948", "text": "public function columns(): array;", "title": "" }, { "docid": "fcb7b06fa2d995e77f45a9b05cf00f47", "score": "0.6555344", "text": "public function getColumns() {\n return $this->_columns;\n }", "title": "" }, { "docid": "7d25ff9b995c8b764cd72f5f8d50ae7b", "score": "0.6555223", "text": "public function columns(): array\n { \n return array_diff($this->fillable, $this->hidden);\n }", "title": "" }, { "docid": "a395f49eb3a16453f35aeb312e189f3e", "score": "0.6529658", "text": "public function externalColumns()\n {\n if( !isset( $this->external_table )){\n return [];\n }\n $external_fields = [];\n $external_fields[] = $this->external_key;\n foreach ($this->fields() as $field) {\n if (array_key_exists('external_column', $field->data)\n && !empty($field->data['external_column'])\n && empty($field->data['external_table'])\n ) {\n $external_fields[] = $field->data['external_column'];\n } \n }\n return $external_fields;\n }", "title": "" }, { "docid": "44634a489bcc582486c9976fe66258fc", "score": "0.65284514", "text": "public function getFields(): array\n {\n return $this->tableFields;\n }", "title": "" }, { "docid": "19ce43bb720fdc739c9f82b8e3d36e4e", "score": "0.6514996", "text": "public function columns() : array;", "title": "" }, { "docid": "84790c9ed453bbb3d03f2570cd5ac551", "score": "0.6504019", "text": "public function getNativeColumns() {\n\t\tif(empty($this->nativeColumns)) {\n\t\t\t$query = $this->wire('database')->prepare(\"SELECT * FROM pages WHERE id=:id\");\n\t\t\t$query->bindValue(':id', $this->wire('config')->rootPageID, \\PDO::PARAM_INT);\n\t\t\t$query->execute();\n\t\t\t$row = $query->fetch(\\PDO::FETCH_ASSOC);\n\t\t\tforeach(array_keys($row) as $colName) {\n\t\t\t\t$this->nativeColumns[$colName] = $colName;\n\t\t\t}\n\t\t\t$query->closeCursor();\n\t\t}\n\t\treturn $this->nativeColumns;\t\n\t}", "title": "" }, { "docid": "194007670ddb3ce7d57a8caa6e79eab6", "score": "0.6501421", "text": "public function toArray()\n {\n $returnArray = [];\n foreach ($this->getFieldsList() as $key => $field) {\n $returnArray[$key] = $this->$field;\n }\n\n return $returnArray;\n }", "title": "" }, { "docid": "f2693588e1daec0d2c26b5da8b4dc1fc", "score": "0.6500019", "text": "public static function getColumns()\r\n {\r\n return array('polygon', 'transcriptionEng', 'transcriptionOrig','changedUserId', \n 'revisionCreateTime', 'revisionNumber', 'annotationId'); \r\n }", "title": "" }, { "docid": "8fb574665cf6ab1e8ba5392194cfbd8d", "score": "0.64956564", "text": "public function get_columns() {\n\t\treturn array(\n\t\t\t'group_id' => '%d',\n\t\t\t'owner_id' => '%d',\n\t\t\t'name' => '%s',\n\t\t\t'description' => '%s',\n\t\t\t'member_count' => '%d',\n\t\t\t'seats' => '%d',\n\t\t\t'fixed_billing' => '%d',\n\t\t\t'date_created' => '%s',\n\t\t\t'expiration'\t=> '%s',\n\t\t\t'access_level'\t=> '%d'\n\t\t);\n\t}", "title": "" }, { "docid": "a193ddbd68a90df827fcf813f8b60eee", "score": "0.64953125", "text": "public function getColumns()\n {\n return $this->app['db.utils']->getColumns(self::$table_name);\n }", "title": "" }, { "docid": "fc925b611fc81e2d8df0c0605e976d2f", "score": "0.6487871", "text": "private function getTableColumns()\n {\n return $this->getConnection()->getSchemaBuilder()->getColumnListing($this->getTable());\n }", "title": "" }, { "docid": "7dc1ca955159177b60c3f6ff04074e61", "score": "0.64832324", "text": "public function getAllColumns()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "6585198f796cb1800fb547b309c71ce6", "score": "0.6481747", "text": "public function getModelColumns(): array\n {\n $table = $this->model->getTable();\n $connection = $this->model->getConnection();\n\n if (Cache::has(self::CACHE_PREFIX . $table)) {\n return Cache::get(self::CACHE_PREFIX . $table);\n }\n\n $columns = $connection->getSchemaBuilder()->getColumnListing($table);\n $modelColumns = [];\n\n $this->registerEnumTypeForDoctrine($connection);\n\n try {\n foreach ($columns as $column) {\n $modelColumns[$column] = $connection->getSchemaBuilder()->getColumnType($table, $column);\n }\n } catch (Exception) {\n // leave model columns as an empty array and cache it.\n }\n\n Cache::put(self::CACHE_PREFIX . $table, $modelColumns, self::CACHE_TTL);\n\n return $modelColumns;\n }", "title": "" }, { "docid": "4d1b0a81128b16ee35b53ac797cd4cc8", "score": "0.6474855", "text": "public function getColumns(): array\n {\n return $this->queries->pluck('column')->toArray();\n }", "title": "" }, { "docid": "1c807ca4ccd1997e7cd3d09b0516c22e", "score": "0.6469925", "text": "public function getFieldColumns();", "title": "" }, { "docid": "22cf596714e1119179b042e9ef9116ec", "score": "0.6466843", "text": "public function getTableColumns() {\n return $this->getConnection()->getSchemaBuilder()->getColumnListing($this->getTable());\n }", "title": "" }, { "docid": "9503f7d92e66266b5b0ba4a1d09cc945", "score": "0.6464028", "text": "public function getColumnsList(){\n return $this->_get(2);\n }", "title": "" }, { "docid": "5d26d6c2d9c2d1142cd1bc2dba4fba25", "score": "0.64525896", "text": "public function asArray() {\n\t\t\treturn array_merge( $this->__properties(), $this->__dynamicProperties() );\n\t\t}", "title": "" }, { "docid": "d98dee7f0b1dfc1a553941453dc0465d", "score": "0.64505965", "text": "public function searcheableFields()\n {\n if ($this->searchableColumns) {\n return $this->searchableColumns;\n }\n\n return array_merge(\n $this->fillable,\n [\n $this->getKeyName(),\n $this->getCreatedAtColumn(),\n $this->getUpdatedAtColumn()\n ]\n );\n }", "title": "" }, { "docid": "457abc9172834b0ddbb8a4b98069ba09", "score": "0.6447687", "text": "public function getColumnData()\n\t{\n\t\treturn $this->model->getColumnData();\n\t}", "title": "" }, { "docid": "02e1bc3864072bca27a7cda648f37ca8", "score": "0.6444981", "text": "public function getColumnData()\n\t\t{\n\t\t\t$column_data = parent::getColumnData();\n\t\t\t\n\t\t\treturn $column_data;\n\t\t}", "title": "" }, { "docid": "da50567ff3212b6a459196762b4b814e", "score": "0.6442514", "text": "public function get_columns() {\n\t\treturn array(\n\t\t\t'id' => '%d',\n\t\t\t'popup_id' => '%d',\n\t\t\t'event_type' => '%s',\n\t\t\t'session_id' => '%s',\n\t\t\t'user_id' => '%d',\n\t\t\t'trigger' => '%s',\n\t\t\t'open_event_id' => '%d',\n\t\t\t'url' => '%s',\n\t\t\t'post_id' => '%d',\n\t\t\t'date_created' => '%s',\n\t\t);\n\t}", "title": "" }, { "docid": "4dacbc62d418ba5323eeaf73eb55f530", "score": "0.64258426", "text": "public function columnMap()\n {\n return [\n 'id' => 'id',\n 'user_id' => 'user_id',\n 'name' => 'name',\n 'province_id' => 'province_id',\n 'city_id' => 'city_id',\n 'area_id' => 'area_id',\n 'scope' => 'scope',\n 'address' => 'address',\n 'is_love' => 'is_love',\n 'lng' => 'lng',\n 'lat' => 'lat',\n 'level' => 'level',\n 'carousel' => 'carousel',\n 'parent' => 'parent',\n 'phone' => 'phone',\n 'keyword' => 'keyword',\n 'content' => 'content',\n 'principal' => 'principal',\n 'license' => 'license',\n 'license_pic' => 'license_pic',\n 'principal_phone' => 'principal_phone',\n 'principal_cardno' => 'principal_cardno',\n 'identity_front' => 'identity_front',\n 'identity_back' => 'identity_back',\n 'images' => 'images',\n 'registered_fund' => 'registered_fund',\n 'partner_number' => 'partner_number',\n 'partner_money' => 'partner_money',\n 'has_partner' => 'has_partner',\n 'have_partner' => 'have_partner',\n 'add_at' => 'add_at',\n 'update_at' => 'update_at',\n 'active' => 'active'\n ];\n }", "title": "" }, { "docid": "3c65acf924d4f72b4cda28aa0add2568", "score": "0.6423581", "text": "abstract public function tableColumns(): array;", "title": "" }, { "docid": "21e71f964b2e0f7b676c3932a5e191c4", "score": "0.64231056", "text": "protected function getColumns(): array\n {\n if (is_null(self::$_columns)) {\n self::$_columns = parent::addColumns();\n }\n return self::$_columns;\n }", "title": "" }, { "docid": "91226c22098e8b85818d6d7cf8b2f836", "score": "0.6422145", "text": "public function getAdminColumns()\n {\n return array_merge(\n array_keys($this->getFields()),\n $this->getTaxonomyKeys()\n );\n }", "title": "" } ]
8425b91bb44d95677d4121e355f9f870
To generate markup for showing current default settings preview on admin interface
[ { "docid": "cad7f0db0fd15a1a236690e76ae28603", "score": "0.0", "text": "function dd_spg_current_settings_box() {\n $message = \"Display image information - <b>\" . get_option('dd_spg_is_display_title_and_des') . \"</b>\";\n $message .= \"<br />Size of Photos - <b>\" . get_option('dd_spg_thumb_size') . \"</b>\";\n $message .= \"<br />Photo Maximum Size - <b>\" . get_option('dd_spg_large_size') . \"</b>\";\n $message .= \"<br />Slider Speed - <b>\" . get_option('dd_spg_slide_speed') . \" milliseconds</b>\";\n \n $message .= \"<br />Effect - <b>\" . get_option('dd_spg_effect') . \"</b>\";\n $message .= \"<br />Slices - <b>\" . get_option('dd_spg_slices') . \"</b>\";\n $message .= \"<br />Box Cols - <b>\" . get_option('dd_spg_boxcols') . \"</b>\";\n $message .= \"<br />Box Rows - <b>\" . get_option('dd_spg_boxrows') . \"</b>\";\n $message .= \"<br />Pause Time - <b>\" . get_option('dd_spg_pausetime') . \"</b>\";\n $message .= \"<br />Large Nav Arrow - <b>\" . get_option('dd_spg_largenavarrow') . \"</b>\";\n $message .= \"<br />Large Nav Arrow Default Hidden - <b>\" . get_option('dd_spg_largenavarrowdefaulthidden') . \"</b>\";\n $message .= \"<br />Pause On Hover - <b>\" . get_option('dd_spg_pauseonhover') . \"</b>\";\n $message .= \"<br />Auto Play Off - <b>\" . get_option('dd_spg_manualadvance') . \"</b>\";\n $message .= \"<br />Keyboard Nav - <b>\" . get_option('dd_spg_keyboardnav') . \"</b>\";\n $message .= \"<br />Display Gallery Caption - <b>\" . get_option('dd_spg_displaygallerycaption') . \"</b>\";\n $message .= \"<br />Display Control Nav - <b>\" . get_option('dd_spg_controlnav') . \"</b>\";\n $message .= \"<br />Display Thumb Nav - <b>\" . get_option('controlnavthumbs') . \"</b>\";\n $message .= \"<br />Thumb Opacity - <b>\" . get_option('dd_spg_captionopacity') . \"</b>\";\n $message .= \"<br />Prev Text - <b>\" . get_option('dd_spg_prevtext') . \"</b>\";\n $message .= \"<br />Next Text - <b>\" . get_option('dd_spg_nexttext') . \"</b>\";\n \n return dd_spg_box('Default Settings for Preview', $message);\n}", "title": "" } ]
[ { "docid": "2b2b3dc6e007aeaaa289a7f3931d5ea2", "score": "0.70531195", "text": "public function setting()\n {\n return view('admin.settings',['title'=> _('admin.settings')]);\n }", "title": "" }, { "docid": "fdd59e73c0b2aa5fa0b56715e0425c3d", "score": "0.6900666", "text": "function mt4_settings(){\n\t\t$this->renderPage('contents/mt4_settings');\n\t}", "title": "" }, { "docid": "3ff341c11af84d4c0e1d1c254792244c", "score": "0.68584716", "text": "public function getSettingsHtml()\n {\n return craft()->templates->render('commercing/widgets/settings', array(\n 'settings' => $this->getSettings()\n ));\n }", "title": "" }, { "docid": "fb2ac3a92096dddce62afaffb4a1dc0f", "score": "0.6826594", "text": "public function admin_options() { ?>\n <h3><?php _e( $this->pluginTitle(), 'midtrans-woocommerce' ); ?></h3>\n <p><?php _e($this->getSettingsDescription(), 'midtrans-woocommerce' ); ?></p>\n <table class=\"form-table\">\n <?php\n // Generate the HTML For the settings form. generated from `init_form_fields`\n $this->generate_settings_html();\n ?>\n </table><!--/.form-table-->\n <?php\n }", "title": "" }, { "docid": "82d90e18334f6161e0e0b0e0fc3df717", "score": "0.68098974", "text": "public function admin() {\n\t\t$out = $this->theme->render('admin'.DS.'theme_options');\n\t\techo $out;\n\t}", "title": "" }, { "docid": "1967eb6334be917f5b9d26d7da981c87", "score": "0.6805207", "text": "public function settings() {\n return view(\"admin.settings\");\n }", "title": "" }, { "docid": "beec7a36ce3b706d6c147ce6b73fea12", "score": "0.6790871", "text": "function view() {\n\t\tglobal $wgobd_view_helper,\n\t\t$wgobd_settings;\n\n\t\tif( isset( $_REQUEST['wgobd_save_settings'] ) ) {\n\t\t\t$this->save();\n\t\t}\n\t\t$args = array(\n\t\t\t\t'settings_page' => $wgobd_settings->settings_page\n\t\t);\n\t\t$wgobd_view_helper->display( 'settings.php', $args );\n\t}", "title": "" }, { "docid": "33a4b5bdca301060af00f0c708d4a4cf", "score": "0.67288613", "text": "protected function settingsHtml()\n {\n return Craft::$app->getView()->renderTemplate(\n 'solidrock-api/settings',\n [\n 'settings' => $this->getSettings()\n ]\n );\n }", "title": "" }, { "docid": "2227c7c58ec30b816d0f4c177e978b43", "score": "0.67039794", "text": "function display() {\n\t\t$templateManager =& TemplateManager::getManager();\n\n\t\t// Signals indicating plugin compatibility\n\t\t$templateManager->assign('curlSupport', function_exists('curl_init') ? __('plugins.generic.markup.settings.installed') : __('plugins.generic.markup.settings.notInstalled'));\n\t\t$templateManager->assign('zipSupport', extension_loaded('zlib') ? __('plugins.generic.markup.settings.installed') : __('plugins.generic.markup.settings.notInstalled'));\n\t\t$templateManager->assign('php5Support', checkPhpVersion('5.0.0') ? __('plugins.generic.markup.settings.installed') : __('plugins.generic.markup.settings.notInstalled'));\n\t\t$templateManager->assign('pathInfo', Request::isPathInfoEnabled() ? __('plugins.generic.markup.settings.enabled') : __('plugins.generic.markup.settings.disabled'));\n\n\t\t$templateManager->assign('additionalHeadData', '<link rel=\"stylesheet\" type=\"text/css\" href=\"' . $this->plugin->getCssPath() . 'settingsForm.css\" />');\n\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "9cf150490398db11f3725c19d95f3209", "score": "0.6686177", "text": "public function render_settings_page() {\n\n $post_types = apply_filters( 'wp_locate_it_allowed_post_types', array( 'public' => true ) );\n\n $settings = array(\n 'browser_api_key' => $this->get_api_key('browser'),\n 'server_api_key' => $this->get_api_key('server'),\n 'set_post_types' => $this->get_post_types(),\n 'all_post_types' => get_post_types( $post_types, 'objects' ),\n 'disable_gmaps_script' => get_option('wpli_disable_gmaps_script'),\n 'db_field_prefix' => get_option('wpli_db_field_prefix')\n );\n\n $this->get_view( 'admin-options', array( 'wpli' => $this, 'settings' => $settings ) );\n }", "title": "" }, { "docid": "ac3d18dfaec58b26ad670655a21d09e8", "score": "0.6639941", "text": "public function showSettings()\n {\n $this->toolbar->addButton($this->pl->txt('add_new_custom_setting'), $this->ctrl->getLinkTargetByClass('srcertificatetypegui', 'addCustomSetting'));\n $table = new srCertificateTypeSettingsTableGUI($this, 'showSettings', $this->type);\n $table_custom_settings = new srCertificateTypeCustomSettingsTableGUI($this, 'showSettings', $this->type);\n $spacer = '<div style=\"height: 30px;\"></div>';\n $this->tpl->setContent($table->getHTML() . $spacer . $table_custom_settings->getHTML());\n }", "title": "" }, { "docid": "f8d142740a99a4854079037e8df21da0", "score": "0.6615778", "text": "public function settings_page() {\n\t\t\tUR_Admin_Settings::output();\n\t\t}", "title": "" }, { "docid": "0f58ab3cf79f64132c250ef7739cab9c", "score": "0.6594253", "text": "public function getPropertiesPreview() {\n $translator = $this->getTranslator();\n\n $template =(substr($this->getTemplate('/default'), strrpos($this->getTemplate(), '/') + 1));\n\n if ($this->getSecurityManager()->isPermissionGranted('cms.advanced')) {\n $template = $this->getTemplate(static::TEMPLATE_NAMESPACE . '/default');\n } else {\n $template = $this->getTemplateName($this->getTemplate(static::TEMPLATE_NAMESPACE . '/default'));\n }\n $preview = '<strong>' . $translator->translate('label.template') . '</strong>: ' . $template . '<br>';\n\n return $preview;\n }", "title": "" }, { "docid": "b7684ce0bb156f24f68f64a83d737062", "score": "0.6593881", "text": "function settings()\n {\n global $tpl, $ilTabs;\n\n $ilTabs->activateTab(\"settings\");\n $this->initSettingsForm();\n $this->getSettings();\n $tpl->setContent($this->form->getHTML());\n $a = 'a';\n }", "title": "" }, { "docid": "4a0d70a5f3e8b27a00004873815def3f", "score": "0.6572589", "text": "public function render_editor_settings() {\n\t\techo '';\n\t}", "title": "" }, { "docid": "a1ae04307570e19ff1813f97cfa29ae5", "score": "0.6571989", "text": "function display_setting() {\r\n\t\techo '<input name=\"jb_shorturl\" id=\"jb_shorturl\" type=\"text\" value=\"' . self::get_short_domain() . '\" class=\"code regular-text\"><p class=\"description\">The custom short url for your site</p>';\r\n\t}", "title": "" }, { "docid": "a879e05c4f9489df1ea95b57f7f545f9", "score": "0.6561013", "text": "public function display_settings_page()\n {\n include_once('partials/' . $this->plugin_name . '-admin-settings.php');\n }", "title": "" }, { "docid": "6f25d3f220aa22ea6645643def23a863", "score": "0.65592074", "text": "function settings()\n{\n\tglobal $config, $language;\n\t\n\t// Add language definitions.\n\t$this->esoTalk->addLanguage(\"Show debug information to non-administrators\", \"Show debug information to non-administrators\");\n\n\t// Generate settings panel HTML.\n\t$settingsHTML = \"<ul class='form'>\n \t<li><label for='Debug_showToNonAdmins' class='checkbox'>{$language[\"Show debug information to non-administrators\"]}</label> <input id='Debug_showToNonAdmins' name='Debug[showToNonAdmins]' type='checkbox' class='checkbox' value='1' \" . ($config[\"Debug\"][\"showToNonAdmins\"] ? \"checked='checked'\" : \"\") . \"/></li>\n\t<li><label></label> \" . $this->esoTalk->skin->button(array(\"value\" => $language[\"Save changes\"], \"name\" => \"saveSettings\")) . \"</li>\n\t</ul>\";\n\t\n\treturn $settingsHTML;\n}", "title": "" }, { "docid": "de59a7698fca143ad4d03d4890248e58", "score": "0.6553794", "text": "public function show_settings_page()\n {\n include CE4WP_PLUGIN_DIR . 'src/views/settings.php';\n }", "title": "" }, { "docid": "c35151a758a21a0a848ef65bbaafbcc7", "score": "0.6548661", "text": "public function getSettingsHtml()\n {\n $assetElementType = craft()->elements->getElementType(ElementType::Asset);\n return craft()->templates->render('recipe/fields/RecipeFieldType_Settings', array(\n 'assetSources' => $this->getElementSources($assetElementType),\n 'settings' => $this->getSettings()\n ));\n }", "title": "" }, { "docid": "1994e130202589560289ae1b0b7ef1b8", "score": "0.6539891", "text": "function print_configure_view() {\n\t\tglobal $edit_flow;\n\t\t?>\n\t\t<form class=\"basic-settings\" action=\"<?php echo esc_url( menu_page_url( $this->module->settings_slug, false ) ); ?>\" method=\"post\">\n\t\t\t<?php settings_fields( $this->module->options_group_name ); ?>\n\t\t\t<?php do_settings_sections( $this->module->options_group_name ); ?>\t\n\t\t\t<?php\t\t\t\t\n\t\t\t\techo '<input id=\"edit_flow_module_name\" name=\"edit_flow_module_name\" type=\"hidden\" value=\"' . esc_attr( $this->module->name ) . '\" />';\n\t\t\t?>\n\t\t\t<p class=\"submit\"><?php submit_button( null, 'primary', 'submit', false ); ?><a class=\"cancel-settings-link\" href=\"<?php echo esc_url( EDIT_FLOW_SETTINGS_PAGE ); ?>\"><?php esc_html_e( 'Back to Edit Flow', 'edit-flow' ); ?></a></p>\n\t\t</form>\n\t\t<?php\n\t}", "title": "" }, { "docid": "686af31d185ab738d66d2c481bb33eb4", "score": "0.652981", "text": "public function index()\n {\n $title = 'Generals';\n $this->setTitle(\"Settings - {$title}\");\n $this->addBreadcrumb($title);\n $this->setCurrentPage('foundation-settings-generals');\n\n return $this->view('admin.settings.index');\n }", "title": "" }, { "docid": "01b6a329664fead91f0656daa098671e", "score": "0.65174085", "text": "function getSettingsTemplate() {\n\t\treturn $this->getTemplatePath() . 'settings.tpl';\n\t}", "title": "" }, { "docid": "8f3be4ed7dd217e0fa70984cc2ae2f5c", "score": "0.65070164", "text": "function admin_config(){\n \n if(!acf_current_user_can_admin())\n return;\n \n global $typenow;\n \n if(empty($typenow))\n return;\n \n $post_type_obj = get_post_type_object($typenow);\n \n if(!isset($post_type_obj->acfe_admin_ppp))\n return;\n \n $post = get_page_by_path($typenow, 'OBJECT', $this->post_type);\n \n if(empty($post))\n return;\n \n ?>\n <script type=\"text/html\" id=\"tmpl-acfe-dpt-title-config\">\n <a href=\"<?php echo admin_url(\"post.php?post={$post->ID}&action=edit\"); ?>\" class=\"page-title-action acfe-dpt-admin-config\"><span class=\"dashicons dashicons-admin-generic\"></span></a>\n </script>\n\n <script type=\"text/javascript\">\n (function($){\n $('.wrap .page-title-action').before($('#tmpl-acfe-dpt-title-config').html());\n })(jQuery);\n </script>\n <?php\n \n }", "title": "" }, { "docid": "688dd488dc6c47d41f27dcb9cd7d876d", "score": "0.6487524", "text": "public function admin_options() {\n echo \"<h3>\" . __( \"Omise Payment Gateway\", $this->gateway_name ) . \"</h3>\";\n echo \"<p>\" . __( \"Omise payment gateway. The first PCI 3.0 certified payment gateway in Thailand\" ) . \"</p>\";\n echo '<table class=\"form-table\">';\n $this->generate_settings_html();\n echo \"</table>\";\n }", "title": "" }, { "docid": "1befda545e48001913715c8c3f3bb577", "score": "0.64624053", "text": "public function index() {\n\n // Add page scripts\n XCMS_Page::getInstance()->addScript(array(\n \"assets/scripts/backend/mng_settings.js\"\n ));\n\n // Add page stylesheets\n XCMS_Page::getInstance()->addStylesheet(array(\n \"assets/css/backend/mng_settings.css\"\n ));\n\n // Show template\n $this->load->view(\"settings.tpl\");\n\n }", "title": "" }, { "docid": "af15607a75f7d7cd1a6a25ec1ba5225d", "score": "0.64560795", "text": "function afo_featured_admin_settings() {\n\n\t$options = node_get_types('names');\n\n\t$form['afo_featured_node_types'] = array(\n\t\t'#type' => 'checkboxes',\n\t\t'#title' => t('Choose Node content types'),\n\t\t'#options' => $options,\n\t\t'#default_value' => variable_get('afo_featured_node_types', array()),\n\t\t'#description' => t('These content types will be available to be Featured.'),\n\t);\n\n\t$presets = imagecache_presets();\n\t$preset_names[''] = t('<none>');\n\tforeach($presets as $p) {\n\t\t$preset_names[$p['presetname']] = $p['presetname'];\n\t}\n\n\t$form['afo_featured_slideshow_imagecachepreset'] = array(\n\t\t'#type' => 'select',\n\t\t'#title' => t('Slide show imagecache preset'),\n\t\t'#options' => $preset_names,\n\t\t'#default_value' => variable_get('afo_featured_slideshow_imagecachepreset', ''),\n\t\t'#description' => t('This imagecache preset will be used for featured slide shows.'),\n\t);\n\t\n\treturn system_settings_form($form);\n\n}", "title": "" }, { "docid": "04a082b147529c5bd1fd8c97831b29aa", "score": "0.6418655", "text": "public function profileSettingsAction()\r\n {\r\n return $this->render('YilinkerFrontendBundle:Profile:profile_settings.html.twig');\r\n }", "title": "" }, { "docid": "05553b97de43a5367c184c8aa96292d0", "score": "0.64171344", "text": "protected function settingsHtml(): string\n {\n return Craft::$app->view->renderTemplate(\n 'craft-twitter/settings',\n [\n 'settings' => $this->getSettings()\n ]\n );\n }", "title": "" }, { "docid": "d4b68e1045bb33b735d654e63fb572fb", "score": "0.64086336", "text": "protected function settingsHtml(): string\n {\n return Craft::$app->view->renderTemplate(\n 'craft-status/settings',\n [\n 'settings' => $this->getSettings()\n ]\n );\n }", "title": "" }, { "docid": "1c6c9d3755330d8a0c2566fab78cbaec", "score": "0.64045805", "text": "public function settings_page() { ?>\n\n\t\t<div class=\"wrap\">\n\t\t\t<?php screen_icon(); ?>\n\t\t\t<h2><?php _e( 'Knowledgebase Settings', 'knowledgebase' ); ?></h2>\n\n\t\t\t<?php settings_errors(); ?>\n\n\t\t\t<form method=\"post\" action=\"options.php\">\n\t\t\t\t<?php settings_fields( 'knowledgebase_settings' ); ?>\n\t\t\t\t<?php do_settings_sections( $this->settings_page ); ?>\n\t\t\t\t<?php submit_button( esc_attr__( 'Update Settings', 'knowledgebase' ), 'primary' ); ?>\n\t\t\t</form>\n\n\t\t</div><!-- wrap -->\n\t<?php }", "title": "" }, { "docid": "d043f87b60824306bf66cc1b20249d85", "score": "0.639623", "text": "function render_field_settings( $field ) {\n\t\t\n\t\t// default_value\n\t\tacf_render_field_setting( $field, array(\n\t\t\t'label'\t\t\t=> __('Default Value', 'inline_wysiwyg'),\n\t\t\t'instructions'\t=> __('Appears when creating a new post', 'inline_wysiwyg'),\n\t\t\t'type'\t\t\t=> 'text',\n\t\t\t'name'\t\t\t=> 'default_value',\n\t\t));\n\t\n\t}", "title": "" }, { "docid": "3bf2a50d9b76315ed4cf0cd16b1ed821", "score": "0.63930124", "text": "public function admin_options() {\n ?>\n <h3><?php _e('Fashionpay', 'FirstTeam'); ?></h3>\n <p><?php _e('Fashionpay is one of the most widely used payment method in China, customer can pay with or without an Fashionpay account', 'FirstTeam'); ?></p>\n <table class=\"form-table\">\n <?php\n // Generate the HTML For the settings form.\n $this->generate_settings_html();\n ?>\n </table><!--/.form-table-->\n <?php\n }", "title": "" }, { "docid": "847d4183ab258197be8bf69bf1e2d436", "score": "0.63892686", "text": "function editorconf() {\n $groups = Config::inst()->get(\"silverstripe-frontend-builder\", \"groups\");\n $modules = Config::inst()->get(\"silverstripe-frontend-builder\", \"modules\");\n $base_path = Director::baseFolder();\n $data = array(\n // \"editform\" => [\n // \"title\" => \"Seite bearbeiten\",\n // \"description\" => \"\",\n // \"type\" => \"object\",\n // \"required\" => [\n // \"Title\"\n // ],\n // \"properties\" => [\n // \"Title\" => [\n // \"type\" => \"string\",\n // \"title\"=> \"Titel\"\n // ],\n // \"MenuTitle\" => [\n // \"type\" => \"string\",\n // \"title\"=> \"Menü-Titel\"\n // ],\n // \"URLSegment\" => [\n // \"type\" => \"string\",\n // \"title\"=> \"URL-Segment\"\n // ],\n // \"ShowInMenus\" => [\n // \"type\" => \"boolean\",\n // \"title\"=> \"In Menüs anzeigen\",\n // \"default\" => true\n // ],\n // \"MetaTitle\" => [\n // \"type\" => \"string\",\n // \"title\"=> \"Meta-Titel\",\n // \"default\" => \"\"\n // ],\n // \"MetaDescription\" => [\n // \"type\" => \"string\",\n // \"title\"=> \"Meta-Description\",\n // \"default\" => \"\"\n // ]\n // ]\n // ],\n // \"pagedata\" => [\n // \"Title\" => $this->Title,\n // \"MenuTitle\" => $this->Title,\n // \"ShowInMenus\" => $this->ShowInMenus?true:false,\n // \"URLSegment\" => $this->URLSegment,\n // \"MetaTitle\" => $this->MetaTitle?$this->MetaTitle:\"\",\n // \"MetaDescription\" => $this->MetaDescription?$this->MetaDescription:\"\"\n // ],\n \"groups\" => $groups,\n \"elements\" => array()\n );\n\n foreach($modules as $name => $moduleconf) {\n $section = BaseSection::createabstract($name, $modules);\n $template = $section->getTemplate();\n $formdef = $section->getFormDef();\n $preview = $section->getPreview();\n\n $data[\"elements\"][$name] = array(\n \"name\" => $moduleconf[\"name\"],\n \"template\" => $template,\n \"formdef\" => $formdef,\n \"preview\" => $preview,\n \"size\" => $section->getSize()\n );\n }\n $this->getResponse()->addHeader('Content-Type', 'application/json');\n return json_encode($data);\n }", "title": "" }, { "docid": "7358d39c1764a5e4dbb8eb2f5e62bb9b", "score": "0.6381568", "text": "public function settings_page() {\r\n\t\techo '<div id=\"beehive-ga-admin-app\"></div>';\r\n\r\n\t\t// Enqueue assets.\r\n\t\tAssets::instance()->enqueue_style( 'beehive-ga-admin' );\r\n\t\tAssets::instance()->enqueue_script( 'beehive-ga-admin' );\r\n\t}", "title": "" }, { "docid": "7ffb2ef9ff47d90ab3c6714cbba06489", "score": "0.637609", "text": "public function admin_options() {\n\n \t?>\n \t<h3><?php _e('Cheque Payment', 'cmdeals'); ?></h3>\n \t<p><?php _e('Allows cheque payments. Why would you take cheques in this day and age? Well you probably wouldn\\'t but it does allow you to make test purchases for testing order emails and the \\'success\\' pages etc.', 'cmdeals'); ?></p>\n \t<table class=\"form-table\">\n \t<?php\n \t\t// Generate the HTML For the settings form.\n \t\t$this->generate_settings_html();\n \t?>\n\t\t</table><!--/.form-table-->\n \t<?php\n }", "title": "" }, { "docid": "bac5f54dbd403547c7a3284e033a2f35", "score": "0.6375151", "text": "public function index()\n {\n return view('product::admin.settings.index');\n }", "title": "" }, { "docid": "7d68f0cbffdb8ef1bc5409a7e4953b83", "score": "0.6367947", "text": "public function admin_custom_config()\n {\n $html = 'Settings for _cc_template gateway!';\n\n return $html;\n }", "title": "" }, { "docid": "63d1100d0fa76545ba9883d5ec9db286", "score": "0.63676685", "text": "public function frontPageOptions() {\n\t\tglobal $post;\n\t\t$this->theme->set('data', $this->theme->metaToData($post->ID));\n\t\techo $this->theme->render('admin'.DS.'front_page_options');\n\t}", "title": "" }, { "docid": "4d8299076a9dc882d399beccb1f55a12", "score": "0.6352291", "text": "protected function render() {\n $this->_render_parent();\n \n $settings = $this->get_settings_for_display();\n ?>\n <?php\n }", "title": "" }, { "docid": "410f578d1a2d83d0bc4183f2ee9be60a", "score": "0.6345493", "text": "public function index()\n\t{\n\t\treturn View::make(\"admin.settings.index\");\n\t}", "title": "" }, { "docid": "933c47097cbe5b6dd62ce4d492dbd414", "score": "0.6335235", "text": "public function index()\n {\n return View::make('admin.settings.image', $data = $this->prepare_config())->render();\n }", "title": "" }, { "docid": "383cea12b94bee0b3bb4ee990f745aca", "score": "0.6333887", "text": "public function showSettingsPage() {\r\n\r\n $this->fillOptions();\r\n include 'admin/settings-page.php';\r\n }", "title": "" }, { "docid": "fdaecb363f8bc51bda7272e023d6b4ef", "score": "0.6333781", "text": "public function settings()\n {\n return view('settings-info');\n }", "title": "" }, { "docid": "0ca6126a3cf5f3195236cd9343fb871e", "score": "0.63325596", "text": "public function admin_builder_template() {\n\n\t\t?>\n\t\t<script type=\"text/html\" id=\"tmpl-wpforms-likert-scale-preview\">\n\t\t\t<# var rowCount = 1; #>\n\t\t\t<table cellspacing=\"0\" cellpadding=\"0\" class=\"{{ data.style }} {{ data.singleClass }}\">\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t<# if ( ! data.singleRow ) { #>\n\t\t\t\t\t\t<th style=\"width:20%;\"></th>\n\t\t\t\t\t<# } #>\n\t\t\t\t\t<# _.each( data.columns, function( columnData, key ) { #>\n\t\t\t\t\t\t<th style=\"width:{{ data.width }}%;\">{{ columnData.value }}</th>\n\t\t\t\t\t<# }) #>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t<# _.each( data.rows, function( rowData, key ) { #>\n\t\t\t\t\t\t<# if ( ! data.singleRow || ( data.singleRow && rowCount === 1 ) ) { #>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<# if ( ! data.singleRow ) { #>\n\t\t\t\t\t\t\t\t<th>{{ rowData.value }}</th>\n\t\t\t\t\t\t\t<# } #>\n\t\t\t\t\t\t\t<# _.each( data.columns, function( columnData, key ) { #>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<input type=\"{{ data.inputType }}\" disabled>\n\t\t\t\t\t\t\t\t\t<label></label>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<# }) #>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<# } #>\n\t\t\t\t\t\t<# rowCount++ #>\n\t\t\t\t\t<# }) #>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t</script>\n\t\t<?php\n\t}", "title": "" }, { "docid": "ae7b88ccba61f580fa600d01e436b1f7", "score": "0.63319045", "text": "function vals_soc_timeline_admin_overview_page() {\n\treturn '<p><a href=\"./vals_soc/program_settings\">'.t('Program settings').'</a></p>';\n}", "title": "" }, { "docid": "7782f579fcea460af307030cbcd4058d", "score": "0.6331658", "text": "public function settings(){\r\t\t$data = $this->pub;\r\t\t$data['settings'] = DisplayModel::getAllSettings();\r\t\t$data['page'] = 'System Settings';\r\t\t$data['desc'] = 'Change the System Settings';\r\t\treturn view('admin.settings',$data);\r\t}", "title": "" }, { "docid": "a8bcb8a418becfb6c630fc46b3060b4a", "score": "0.63201135", "text": "public function admin_column($defaults){\n $defaults['palleon_template_preview'] = esc_html__( 'Preview', 'palleon' );\n return $defaults;\n }", "title": "" }, { "docid": "a3854f645137f7168b93ed7e10730e27", "score": "0.6310125", "text": "public function settingsForm()\n {\n // Return the name of the TWIG file to render the settings form\n return 'ETSVideo-form-settings';\n }", "title": "" }, { "docid": "3e9828fac7a0c70ad1ae3597840f3e4d", "score": "0.6308699", "text": "public function content_template() {\n\t\t?>\n\t\t<span class=\"zeen-control zeen-on-off-wrap clearfix\">\n\t\t\t<# if ( data.label ) { #>\n\t\t\t\t<span class=\"customize-control-title\">{{{ data.label }}}<# if ( data.description ) { #>\n\t\t\t\t<span class=\"tipi-tip description customize-control-description dashicons dashicons-editor-help\" data-title=\"{{{ data.description }}}\"></span>\n\t\t\t<# } #></span>\n\t\t\t<# } #>\n\n\t\t\t<span class=\"zeen-on-off\">\n\t\t\t\t<input type=\"checkbox\" id=\"{{ data.id }}\" data-customize-setting-link=\"{{ data.id }}\" value=\"{{ data.value }}\" <# if ( data.value === 1 ) { #>checked=\"checked\"<# } #> name=\"_customize-zeen-on-off-{{ data.id }}\">\n\t\t\t\t<label for=\"{{ data.id }}\">\n\t\t\t\t\t<span class=\"zeen-on-off-ux\"></span>\n\t\t\t\t</label>\n\t\t\t</span>\n\t\t</span>\n\n\t<?php\n\t}", "title": "" }, { "docid": "182aa33cbb6ed89a2a818148b5524d2f", "score": "0.6301573", "text": "public function render() {\n\t\t_wp_admin_html_begin();\n?>\n<title><?php printf( __( '%1$s &lsaquo; %2$s', 'iggogrid' ), __( 'Preview', 'iggogrid' ), 'IggoGrid' ); ?></title>\n<style type=\"text/css\">\nbody {\n\tmargin-top: -6px !important;\n}\n</style>\n<?php echo $this->data['head_html']; ?>\n</head>\n<body>\n<div id=\"iggogrid-page\">\n<p>\n<?php _e( 'This is a preview of your table.', 'iggogrid' ); ?> <?php _e( 'Because of CSS styling in your theme, the table might look different on your page!', 'iggogrid' ); ?> <?php _e( 'The features of the DataTables JavaScript library are also not available or visible in this preview!', 'iggogrid' ); ?><br />\n<?php printf( __( 'To insert the table into a page, post, or text widget, copy the Shortcode %s and paste it into the editor.', 'iggogrid' ), '<input type=\"text\" class=\"table-shortcode table-shortcode-inline\" value=\"' . esc_attr( '[' . IggoGrid::$shortcode . \" id={$this->data['table_id']} /]\" ) . '\" readonly=\"readonly\" />' ); ?>\n</p>\n<?php echo $this->data['body_html']; ?>\n</div>\n</body>\n</html>\n<?php\n\t}", "title": "" }, { "docid": "8ca073a3c23b923f366b0e25d0e95dba", "score": "0.6293439", "text": "function settingsUI(){\t\n\t\treturn array(\n\t\t\t'maxFileSize' => array(\n\t\t\t\t'text' => BASIC_LANGUAGE::init()->get('maxFileSize')\n\t\t\t),\n\t\t\t'allowedTypes' => array(\n\t\t\t\t'text' => BASIC_LANGUAGE::init()->get('allowedTypes')\n\t\t\t),\n\t\t\t'upload_path' => array(\n\t\t\t\t'text' => BASIC_LANGUAGE::init()->get('upload_path')\n\t\t\t),\n\t\t\t'storage' => array(\n\t\t\t\t'text' => BASIC_LANGUAGE::init()->get('storage')\n\t\t\t),\n// \t\t\t'manager' => array(\n// \t\t\t\t'text' => BASIC_LANGUAGE::init()->get('manager'),\n// \t\t\t\t'formtype' => 'browser',\n// \t\t\t\t'attributes' => array(\n// \t\t\t\t\t'resources' => array('plugins'),\n// \t\t\t\t\t'type' => 'folder'\n// \t\t\t\t)\n// \t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "319a2d3c1fc43aab73caa959077320f3", "score": "0.6289448", "text": "public function settings_page()\n {\n ?>\n <div class=\"wrap\">\n <form action=\"options.php\" method=\"post\" enctype=\"multipart/form-data\">\n <?php settings_fields('sk_plugin_options') ?>\n <?php do_settings_sections('sk_options') ?>\n <input type=\"submit\" name=\"submit\" class=\"button-primary\" value=\"Save changes\">\n </form>\n\n </div>\n <?php\n }", "title": "" }, { "docid": "4f87b084c6c109478fe97e3170261469", "score": "0.62804455", "text": "public function admin_options()\n {\n\n ?>\n <h3><?php _e('Paymentwall Gateway', 'woocommerce'); ?></h3>\n <p><?php _e('Enables the Paymentwall Payment Solution. The easiest way to monetize your game or web service globally.', 'woocommerce'); ?></p>\n <table class=\"form-table\">\n <?php $this->generate_settings_html(); ?>\n </table>\n <?php\n }", "title": "" }, { "docid": "36633aeef53e05999f325be6caedc5b3", "score": "0.6279511", "text": "public function admin_options(){\n echo '<h3>'.__('Velocity', 'nab').'</h3>';\n echo '<p>'.__('Redefining Payments, Simplifying Lives! Empowering any business to collect money online within minutes').'</p>';\n echo '<table class=\"form-table\">';\n // Generate the HTML For the settings form.\n $this->generate_settings_html();\n echo '</table>';\n }", "title": "" }, { "docid": "b80587de4afb2e83490fb3e161e52093", "score": "0.62610316", "text": "function settings_page_html() {\n\t// check user capabilities\n\tif ( ! current_user_can( 'manage_options' ) ) {\n\t\treturn;\n\t}\n\n\t// show error/update messages\n\tsettings_errors( 'staff_messages' );\n\t?>\n\t<div class=\"wrap\">\n\t\t<h1><?php echo esc_html( get_admin_page_title() ); ?></h1>\n\n\t\t<form action=\"options.php\" method=\"post\">\n\t\t\t<?php\n\t\t\tdo_settings_sections( 'staff-settings' );\n\t\t\tsettings_fields( 'staff-settings' );\n\n\t\t\tsubmit_button( 'Save Changes' );\n\t\t\t?>\n\t\t</form>\n\n\t</div>\n\t<?php\n}", "title": "" }, { "docid": "620841268c553d4b790d002ea8fa611f", "score": "0.625115", "text": "public function renderEdit()\r\n\t{\r\n\t\t$form = $this['settingsForm'];\r\n\t\tif (!$form->isSubmitted()) {\r\n\t\t\t$settings = $this->settings->findById(1);\r\n\t\t\tif ($settings->config !=\"NULL\") {\r\n\t\t\t\t$config = unserialize($settings->config);\r\n\t\t\t\t$form->setDefaults($config);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "05625e814392d8cfa0e01aa6e6ee0394", "score": "0.6247092", "text": "function pre_launch_checklist_settings_page_markup() {\n\tif ( !current_user_can('manage_options') ) {\n\t\t\treturn;\n\t}\n\tinclude( WPPLUGIN_DIR . 'admin/settings-page.php');\n}", "title": "" }, { "docid": "216b4196f108e8f054ad32d3842afe00", "score": "0.624632", "text": "public function index()\n {\n $settings = $this->m_settings->get_all();\n \n\t\t$site_data = array(\n 'appName' => 'Admin Panel',\n\t\t\t'pageTitle' => 'Settings',\n\t\t\t'contentTitle' => '',\n\t\t\t'authFullname' => $this->currentUserData['username'],\n\t\t\t'contentView' => null,\n\t\t\t'actionUrl' => adminURL('admin/settings/save'),\n\t\t\t'backWardUrl' => '#',\n 'viewScripts' => [],\n 'settings' => (object) array(\n 'site_name' => get_setting($settings, 'site_name'),\n 'site_title' => get_setting($settings, 'site_title'),\n 'site_description' => get_setting($settings, 'site_description'),\n 'site_logo' => get_setting($settings, 'site_logo'),\n 'site_icon' => get_setting($settings, 'site_icon'),\n 'gtag' => get_setting($settings, 'gtag'),\n 'disqus' => get_setting($settings, 'disqus'),\n 'maintenance' => get_setting($settings, 'maintenance'),\n ),\n\t\t);\n\n\t\techo view('App\\\\Views\\\\admin\\\\settings', $site_data);\n }", "title": "" }, { "docid": "9f097873f8a735f2ab4648456adbe224", "score": "0.6243783", "text": "public function show()\n {\n return view('vote::admin.settings', [\n 'topPlayersCount' => setting('vote.top-players-count', 10),\n ]);\n }", "title": "" }, { "docid": "26c9b9b4ff89ad13deffba292cc6a88d", "score": "0.6241633", "text": "public function plugin_settings_page()\n\t\t\t\t{\n\t\t\t\t if(!current_user_can('manage_options'))\n\t\t\t\t {\n\t\t\t\t wp_die(__('You do not have sufficient permissions to access this page.'));\n\t\t\t\t }\n\n\t\t\t\t // Render the settings template\n\t\t\t\t include(sprintf(\"%s/templates/settings.php\", dirname(__FILE__)));\n\t\t\t\t}", "title": "" }, { "docid": "9e63c2a854f54ad044a2a7dc4b2d0144", "score": "0.6236978", "text": "public function display_settings_page() {\n\n include_once 'partials/settings.php';\n\n }", "title": "" }, { "docid": "d9b6c73219023bd762f8d1c7b4ca411a", "score": "0.62342596", "text": "public function actionDesignPreview()\n {\n $this->layout = 'adminlte-moqup-preview';\n return $this->render('design-preview');\n }", "title": "" }, { "docid": "0337554b65f7d2cdd180fabc2025b511", "score": "0.6227752", "text": "function showHtml(){//\t\t$ret .= \"<input type='hidden' name='settingstree_path' value='{$this->path}' /><input type='hidden' name='settingstree_pluginname' value='{$this->_hierarchy->getPluginName()}' />\";\n\t\t$ret .= \"<div class='settingstree_error_area'></div>\";\n\t\t$ret .= \"<div id='config__manager' data-path='{$this->path}'><fieldset><legend>{$this->_getTitle()}</legend><div class='table'><table class='inline'><tbody>\";\n\t\tforeach ($this->_getSettings() as $key => $setting){\n\t\t\t$ret .= $setting->showHtml();\n\t\t}\n\t\t$ret .= \"</tbody></table></div></fieldset></div>\";\n\t\t$ret .= \"<div class='settingstree_error_area'></div>\";\n\t\t$ret .= \"<div class='settingstree_buttons'>{$this->_getButtons()}</div>\";\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "76799b15a84d3bf53480fa3a644e63b4", "score": "0.6225986", "text": "public function menu_page_html() {\n\n\t\t// check user capabilities\n\t\tif ( ! current_user_can( 'manage_options' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// add error/update messages\n\t\t// check if the user have submitted the settings\n\t\t// wordpress will add the \"settings-updated\" $_GET parameter to the url\n\t\tif ( isset( $_GET['settings-updated'] ) ) {\n\t\t\t// add settings saved message with the class of \"updated\"\n\t\t\tadd_settings_error( \"{$this->slug}_messages\", \"{$this->slug}_message\", __( 'Settings Saved', $this->slug ),\n\t\t\t\t'updated' );\n\t\t}\n\n\t\t// show error/update messages\n\t\tsettings_errors( $this->slug );\n\t\t// output save settings button);\n\t\t?>\n <div class=\"wrap\">\n <h1><?= esc_html( get_admin_page_title() ); ?></h1>\n <form action=\"options.php\" method=\"post\">\n\t\t\t<?php\n\t\t\t// output security fields for the registered setting\n\t\t\tsettings_fields( $this->slug );\n\t\t\t// output setting sections and their fields\n\t\t\tdo_settings_sections( $this->slug );\n\t\t\t// output save settings button\n\t\t\tsubmit_button( 'Save Settings' );\n\t\t\t?>\n </form>\n </div><?php\n\t}", "title": "" }, { "docid": "37fcfa07362c0d20acacc284fee1b04c", "score": "0.6223911", "text": "public function settings()\n {\n return view('admin.settings.edit')->with([\n 'user' => Auth::user(),\n 'roles' => ''\n ]);\n }", "title": "" }, { "docid": "a3bb6867c14f875d6101d995b395b9cb", "score": "0.6217364", "text": "public function index()\n {\n $footer = Footer::first();\n $socialIcons = SocialIcon::first();\n return view('admin.settings.general_settings') -> with('socialIcons', $socialIcons) -> with('footer', $footer) -> with('breadCrumb', $this -> breadCrumb);\n }", "title": "" }, { "docid": "c6806b3ca7a57ae84b580e64bbdd72e2", "score": "0.62164176", "text": "public function admin_options() {\n\t\t?>\n\t\t<h3><?php _e('WorldPay Form', 'wpdonations_worldpay'); ?></h3>\n\t\t<p><?php _e('The WorldPay Form gateway works by sending the user to <a href=\"http://www.worldpay.com\">WorldPay</a> to enter their payment information.', 'wpdonations_worldpay'); ?></p>\n\t\t<table class=\"form-table\">\n\t\t<?php\n\t\t\t// Generate the HTML for the settings form.\n\t\t\t$this->generate_settings_html();\n\t\t?>\n\t\t</table><!--/.form-table-->\n\t\t<?php\n\t}", "title": "" }, { "docid": "1c6e83be38fabc7846631b8899e83172", "score": "0.62147546", "text": "public function settings()\n {\n $this->app->set('pm', $this);\n $this->app->set('model', $this->model);\n \n echo $this->theme->render('Shop/PaymentMethods/CCAvenue/Views::settings.php');\n }", "title": "" }, { "docid": "6ffd3ef2c1e69c5dfe18408e791dbce7", "score": "0.6213114", "text": "public function plugin_settings_page() {\n \tif(!current_user_can('manage_options')) {\n \t\twp_die(__('You do not have sufficient permissions to access this page.'));\n \t}\n \t// Render the settings template\n \tinclude(sprintf(\"%s/templates/settings.php\", dirname(__FILE__)));\n }", "title": "" }, { "docid": "e61e2c1be2857467ea7d7b3572ec7455", "score": "0.6204354", "text": "public function default_options() {\n\t\t\n\t\t$settings = new \\stdClass();\n\t\t\n\t\t$admin = get_user_by( 'email', get_option( 'admin_email' ) );\n\t\t\n\t\tif ( ! isset( $admin->user_email ) ) {\n\t\t\t\n\t\t\t// Default object to avoid warning notices\n\t\t\t$admin = new \\stdClass();\n\t\t\t$admin->user_email = 'nobody@example.com';\n\t\t\t$admin->display_name = 'Not Applicable';\n\t\t}\n\t\t\n\t\t$settings->loaded = false;\n\t\t$settings->hideFuture = 0; // 'hidden' (Show them)\n\t\t$settings->showAdmin = true; // 'hidden' (Show them)\n\t\t$settings->includeFeatured = false; // Show featured image for a sequence member in post listing\n\t\t$settings->lengthVisible = 1; //'lengthVisible'\n\t\t$settings->sortOrder = SORT_ASC; // 'sortOrder'\n\t\t$settings->delayType = 'byDays'; // 'delayType'\n\t\t$settings->allowRepeatPosts = false; // Whether to allow a post to be repeated in the sequence (with different delay values)\n\t\t$settings->showDelayAs = E20R_SEQ_AS_DAYNO; // How to display the time until available\n\t\t$settings->previewOffset = 0; // How many days into the future the sequence should allow somebody to see.\n\t\t$settings->startWhen = 0; // startWhen == immediately (in current_time('timestamp') + n seconds)\n\t\t$settings->sendNotice = 1; // sendNotice == Yes\n\t\t$settings->noticeTemplate = 'new_content.html'; // Default plugin template\n\t\t$settings->noticeSendAs = E20R_SEQ_SEND_AS_SINGLE; // Send the alert notice as one notice per message.\n\t\t$settings->noticeTime = '00:00'; // At Midnight (server TZ)\n\t\t$settings->noticeTimestamp = current_time( 'timestamp' ); // The current time (in UTC)\n\t\t$settings->excerptIntro = __( 'A summary of the post follows below:', \"e20r-sequences\" );\n\t\t$settings->replyto = apply_filters( 'e20r-sequence-default-sender-email', $admin->user_email ); // << Update Name\n\t\t$settings->fromname = apply_filters( 'e20r-sequence-default-sender-name', $admin->display_name ); // << Updated Name!\n\t\t$settings->subject = __( 'New Content ', \"e20r-sequences\" );\n\t\t$settings->dateformat = __( 'm-d-Y', \"e20r-sequences\" ); // Using American MM-DD-YYYY format. << Updated name!\n\t\t$settings->trackGoogleAnalytics = false; // Whether to use Google analytics to track message open operations or not\n\t\t$settings->gaTid = null; // The Google Analytics ID to use (TID)\n\t\t\n\t\t$this->options = $settings; // Save as options for this sequence\n\t\t\n\t\treturn $settings;\n\t}", "title": "" }, { "docid": "9caa2f9b4b48225cf01fa0b7e5c56437", "score": "0.6198673", "text": "function settings() {\r\n\t\tadd_settings_field( 'jb_shorturl', __( 'Short URL' ), array( $this, 'display_setting' ), 'general', 'default', array( 'label_for' => 'jb_shorturl' ) );\r\n\t\tregister_setting( 'general', 'jb_shorturl', array( __CLASS__, 'sanitize_url' ) );\r\n\t}", "title": "" }, { "docid": "ce7c945024112998076545759bb4c620", "score": "0.6187692", "text": "public function index()\n {\n return view(av.'.settings.main',['title'=>trans('admin.settings')]);\n }", "title": "" }, { "docid": "734b1236872a7925248acbd757ba12b4", "score": "0.6185387", "text": "public function displaySettingsPage()\n {\n // Display the settings page\n echo '\n <div class=\"wrap\">\n <h2>Einstellungen › Social Buttons</h2>\n <form action=\"options-general.php?page=social-buttons&action=save\" method=\"post\">\n <p>Sie können mit der Checkbox entscheiden, welche Buttons angezeigt werden. Mit der Maus können sie die Buttons durch ziehen sortieren.</p>\n ' . $this->getOrderSetting() . '\n <p>Entscheiden Sie hier, wie und wo die Buttons eingebunden werden.</p>\n ' . $this->getTypeSetting() . '\n <p class=\"submit\">\n <input type=\"submit\" name=\"submit\" id=\"submit\" class=\"button button-primary\" value=\"Speichern\">\n </p>\n </form>\n </div>\n ';\n }", "title": "" }, { "docid": "dd2e7c8962d832530c1f1aa794a909a5", "score": "0.617777", "text": "public function general_content_type_settings_header() {\n print '<p>'. __('Here you can control the specific chart options for this content type.', 'raphael-charts') .'</p>';\n print '<p>'. __('All of these options can be overridden from the shortcode, these are just the defaults.', 'raphael-charts') .'</p>';\n }", "title": "" }, { "docid": "99e64bac3d6365a74a5b7f0d7ea7fe47", "score": "0.61656445", "text": "public function display_options() {\n\n\n add_settings_section(\"woocommerce_addon_settings_section\", \"Settings\", '', \"woocommerce-addon-settings\");\n add_settings_field(\"woo_product_title_prefix\", \"Product Title Prefix\", array($this, 'display_form_field'), \"woocommerce-addon-settings\", \"woocommerce_addon_settings_section\");\n\n register_setting(\"woocommerce_addon_settings_section\", \"woo_product_title_prefix\");\n }", "title": "" }, { "docid": "dc0d87c2627bd6f25978150ebebba7af", "score": "0.6157843", "text": "public function settings()\n {\n $this->app->set('pm', $this);\n $this->app->set('model', $this->model);\n \n echo $this->theme->render('Shop/PaymentMethods/OmnipayPaypalExpress/Views::settings.php');\n }", "title": "" }, { "docid": "9899f82aef72252ce4a0b670cc134e0a", "score": "0.61560905", "text": "public function index()\n {\n $settings = $this->service->get();\n return view('admin.settings.index', compact('settings'));\n }", "title": "" }, { "docid": "d1068306adb280f7cf5aa849afc5a6cb", "score": "0.61509395", "text": "public function settings_html() {\n\t\t//--------------------------------------------------------------------------------------\n\t\t\treturn l10n(\n\t\t\t\t'chart.bar.settings',\n\t\t\t\t$this->page->render_radio($this->ctrlname('direction'), 'horizontal', true),\n\t\t\t\t$this->page->render_radio($this->ctrlname('direction'), 'vertical'),\n\t\t\t\t$this->page->render_select($this->ctrlname('stacking'), 0, array(\n\t\t\t\t\t0 => 'None',\n\t\t\t\t\t'absolute' => 'Absolute values',\n\t\t\t\t\t'percent' => 'Relative values as a percentage of 100%',\n\t\t\t\t\t'relative' => 'Relative values as a fraction of 1'\n\t\t\t\t))\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "2d414d86ac84ec14d06d9c958695f802", "score": "0.61508876", "text": "public function render()\n\t{\n\t\t$tabidx = ( $this->hasTabs ) ? $this->currentTabIdx : $this->defaultTabIdx;\n\t\t$setting = $this->tabs[$tabidx]['setting'];\n\t\t\n\t\t// init the parent template\n\t\t$template = new gdprcTemplate( 'settings', $this->templatePath, self::TEMPL_FILE_NAME_SETTINGS_PAGE );\n\t\t\t\n\t\t// set vars for the template\t\t\n\t\t$template->setVar( 'current_tab', $tabidx );\n\t\t$template->setVar( 'setting', $setting );\n\t\t$template->setVar( 'has_tabs', $this->hasTabs );\n\t\t$template->setVar( 'namespace', $this->nameSpace );\t\t\n\t\t$template->setVar( 'title', $this->pageTitle );\n\t\t\t\t\n\t\t// construct the intructions URI\n\t\t$pluginDirName = $this->globals->get( 'pluginDirName' );\n\t\t$pluginDirName = str_replace( 'wp-' , 'gdprcookies-', $pluginDirName );\t\t\n\t\t$instructionsUri = esc_url( sprintf( \"http://www.gdprcookies-plugins.com/instruction-guide-%s-plugin/?utm_source=%s_plugin&utm_medium=wp_admin&utm_campaign=menu_%s\", $pluginDirName, $this->nameSpace, $tabidx ) );\n\t\t\t\t\n\t\tif( $this->hasTabs ) {\t\t\t\n\t\t\t$template->setVar( 'tabs', $this->tabs );\t\t\t\n\t\t}\t\n\n\t\t$template->setVar( 'instructions_uri', $instructionsUri );\n\t\t\t\n\t\t// create new gdprcTemplate instance\n\t\t$templateTable = new gdprcTemplate( 'table', $this->templatePath, self::TEMPL_FILE_NAME_SETTINGS_PAGE_TABLE );\n\t\t\t\t\n\t\t// setup Template vars\n\t\t$templateTable->setVars( $this->settings[$tabidx]->getstack() );\n\t\t$templateTable->setVar( 'current_templ', $tabidx );\n\t\n\t\t$templateTable->setVar( 'setting', $setting );\n\t\t$templateTable->setVar( 'locale', $this->globals->get('locale') );\n\t\t$templateTable->setVar( 'module_path', $this->globals->get( 'modulePath' ) );\n\t\t$templateTable->setVar( 'form_fields', $this->settings[$tabidx]->getSettings() );\n\t\t$templateTable->setVar( 'do_submit_btn', true );\t\t\n\t\t$templateTable->setVar( 'namespace', $this->nameSpace );\n\t\t\t\t\t\n\t\t/**\n\t\t * This hook let other Modules / Plugins filter the Template vars\n\t\t *\n\t\t * @param array $vars Template vars\n\t\t */\n\t\t$vars = apply_filters( $this->nameSpace . '_templ_vars', $templateTable->getVars(), $tabidx );\n\t\n\t\t// add vars again in case $vars is modified\n\t\t$templateTable->setVars( $vars );\n\t\t\t\n\t\t/**\n\t\t * This hook let other Modules / Plugins alter the $templateTable object\n\t\t *\n\t\t * @param gdprcTemplate $templateTable table Template object, passed by reference\n\t\t */\n\t\tdo_action_ref_array( $this->nameSpace . '_template_vars', array( &$templateTable ) );\n\t\n\t\t// render\n\t\t$table = $templateTable->render( false, true );\n\t\t\t\n\t\t$template->setVar( 'table', $table );\n\t\t\t\n\t\t// render\n\t\techo $template->render();\n\t}", "title": "" }, { "docid": "0e275f128ec5a1729e5d6c39eaec406e", "score": "0.61486846", "text": "public function toolkit_menu_page() \r\n\t {\r\n\t\tif ( ! current_user_can( 'manage_options' ) ) { wp_die( esc_attr__( 'You do not have sufficient permissions to access this page.', 'Twoot_Toolkit' ) ); }\r\n\t\techo ( isset( $_GET[ 'settings-updated' ] ) ) ? '<div class=\"updated fade\"><p><strong>' . esc_attr__( 'Settings Updated.', 'Twoot_Toolkit' ) . '</strong></p></div>' : '';\r\n\t\t?>\r\n\t\t<div class=\"wrap twoot-toolkit-page\">\r\n\t\t<div id=\"icon-options-general\" class=\"icon32\"></div><h2 class=\"twoot-toolkit-page-title\"><?php echo TWOOT_TOOLKIT_NAME; ?><span><?php esc_attr_e('Version: ', 'Twoot_Toolkit'); ?><?php echo TWOOT_TOOLKIT_VERSION; ?></span></h2>\r\n\t\t<form method=\"post\" action=\"<?php echo admin_url( 'options.php' ); ?>\">\r\n\t\t<?php echo settings_fields( TWOOT_TOOLKIT_SLUG ); ?>\r\n\t\t<?php echo do_settings_sections( TWOOT_TOOLKIT_SLUG ); ?>\r\n\t\t<?php submit_button(); ?>\r\n\t\t</form>\r\n\t\t</div>\r\n\t\t<?php\r\n\t }", "title": "" }, { "docid": "09bb2427690d44821201e8dde92004bd", "score": "0.614779", "text": "public function admin_wysiwyg(){\n\n return view('templates/template_inicial_ck')\n ->with(\"titulo\",\"Editor HTML\");\n }", "title": "" }, { "docid": "77c75c19fce7e19d9900e29be8a7b920", "score": "0.6142997", "text": "function settings()\n\t {\n\t\t // This shows the module name user is accessing, as a title in the browser. \n $data['title'] = \"Metrices\";\n\t\t\t// This shows the module name you are accessing, as a header(tab name) in the browser. \n $data['header'] = \"Metrices\";\n\t\t\t// get all the leaves entitle settings\n\t\t\t$data['leaves_entitled'] = $this->MMetrices->allLevesEn();\n\t\t\t // This how Bep load views\n\t $data['page'] = $this->config->item('backendpro_template_admin') . \"admin_metrices_leavesen\";\n\t $data['module'] = 'metrices';\n\t $this->load->view($this->_container,$data);\n\t\t\t\n\t\t }", "title": "" }, { "docid": "8f27a5c25de7bf1609a2faaadc4f3134", "score": "0.61413896", "text": "public function render_cloud_setting(Snippet $snippet)\n {\n if (isset($_REQUEST['preview']) && isset($_REQUEST['cloud_uuid'])) {\n printf(\n '\n <script>\n jQuery(document).ready(function(){\n jQuery(\"#snippet-form :input\").prop(\"disabled\", true);\n jQuery(\"h1\").html(`%s %s`);\n jQuery(\"[for=snippet_code]\").html(`%s`);\n });\n\n </script>',\n esc_html__('Preview', 'code-snippets'),\n sprintf(\n '<span style=\"color:rgb(156 163 175);\">[UUID %s]</span>',\n explode(':', $snippet->cloud_uuid)[0]\n ),\n sprintf(\n 'Code <span style=\"color:rgb(156 163 175);\">(%s)</span>',\n esc_html__('The first few lines of the code for preview purposes', 'code-snippets')\n )\n );\n\n return;\n }\n\n $user = snippets_guru()->getUser();\n\n // section title\n printf(\n '<h2 style=\"margin: 25px 0 10px;\">\n %s\n </h2>',\n esc_html__('Cloud Storage', 'code-snippets')\n );\n\n if (!$user) {\n printf(\n '<p class=\"html-shortcode-options\">\n %s\n </p>',\n sprintf(\n esc_html__('Please activate this feature on your plugin %s settings page %s', 'code-snippets'),\n '<a href=\"' . esc_url(code_snippets()->get_menu_url('settings')) . '\" target=\"_blank\">',\n '</a>'\n )\n );\n } else {\n if ($snippet->id === 0) {\n $push_change = get_setting('cloud', 'push_new_snippet') ? true : false;\n $is_public = false;\n } else {\n $push_change = array_key_exists('push_change', $snippet->cloud_config) ? $snippet->cloud_config['push_change'] : false;\n $is_public = array_key_exists('is_public', $snippet->cloud_config) ? $snippet->cloud_config['is_public'] : false;\n }\n\n // field: push_change\n printf(\n '<p class=\"html-shortcode-options\" style=\"display: flex;flex-direction: column;\">\n <label>\n <input type=\"checkbox\" value=\"1\" name=\"cloud_push_change\" %s %s>\n <span class=\"dashicons dashicons-cloud-upload\"></span> %s\n </label>\n %s\n </p>',\n checked($push_change, true, false),\n !$user ? 'disabled' : '',\n sprintf(\n /* translators: %s: Hyperlink of Snippets Guru cloud */\n esc_html__('Allow this snippet to be saved to the %s cloud', 'code-snippets'),\n '<a href=\"' . snippets_guru()->getUrl() . '\" target=\"_blank\">Snippets Guru</a>'\n ),\n $snippet->cloud_uuid ? sprintf(\n '<a style=\"color:rgb(156 163 175);text-decoration: none;\" href=\"%s\" target=\"_blank\"><span class=\"dashicons dashicons-external\"></span> [UUID %s] </a>',\n snippets_guru()->getUrl(sprintf('/app/snippets/%s', explode(':', $snippet->cloud_uuid)[0])),\n $snippet->cloud_uuid\n ) : ''\n );\n\n // field: is_public\n printf(\n '<p class=\"html-shortcode-options\">\n <label>\n <input type=\"checkbox\" value=\"1\" name=\"cloud_is_public\" %s %s > \n <span class=\"dashicons dashicons-admin-site-alt2\"></span> %s \n </label>',\n checked($is_public, true, false),\n !$user ? 'disabled' : '',\n esc_html__('Make this snippet public', 'code-snippets')\n );\n\n // user info\n printf(\n '<table cellspacing=\"0\" border=\"0\">\n <tbody>\n <tr>\n <th style=\"padding:0px;padding-right:20px;\" scope=\"row\" align=\"left\">%s</th>\n <td style=\"padding:0px;\" align=\"left\">\n <p style=\"margin:0px;\">%s (%s)</p>\n </td>\n </tr>\n <tr>\n <th style=\"padding:0px;padding-right:20px;\" scope=\"row\" align=\"left\">%s</th>\n <td style=\"padding:0px;\" align=\"left\">\n <p style=\"margin:0px;\">%s</p>\n </td>\n </tr>\n <tr>\n <th style=\"padding:0px;padding-right:20px;\" scope=\"row\" align=\"left\">%s</th>\n <td style=\"padding:0px;\" align=\"left\">\n <p style=\"margin:0px;\">%s</p>\n </td>\n </tr>\n </tbody>\n </table>',\n __('Logged in As', 'code-snippets'),\n $user->username,\n $user->email,\n __('Subscription Status', 'code-snippets'),\n $user->billing->isActive ? '<a style=\"color:green;\">' . __('Active', 'code-snippets') . '</a>' : '<a style=\"color:red;\">' . __('Inactive', 'code-snippets') . '</a>',\n __('Subscription Expire Date', 'code-snippets'),\n date('Y-m-d', strtotime($user->billing->expiredAt))\n );\n }\n\n if (isset($_REQUEST['preview']) && isset($_REQUEST['cloud_uuid'])) {\n printf(\n '\n <script>\n jQuery(document).ready(function(){\n jQuery(\"#snippet-form :input\").prop(\"disabled\", true);\n jQuery(\"h1\").text(\"%s\");\n });\n\n </script>',\n esc_html__('Preview', 'code-snippets')\n );\n }\n }", "title": "" }, { "docid": "a167b12d2016190154c3f2b0ef186ae2", "score": "0.6135605", "text": "public function displayContent() {\r\n\t\t$themplateFolder = $this->getTemplateFolder();\r\n\r\n\t\t// DisplayContent\r\n\t\trequire( $themplateFolder.'settings.php' );\r\n\t}", "title": "" }, { "docid": "9dd2ae661cb748b4cc54f6a7e09ecdf1", "score": "0.6131938", "text": "function alfred_admin_setting_callback_main_section() {\n?>\n\n\t\t\t<p><?php _e( 'General options to control certain aspects of the site.', 'alfred' ); ?></p>\n\n<?php\n}", "title": "" }, { "docid": "0d84a23a70bc697828c85f3b0db74273", "score": "0.6128087", "text": "function displaySettingsPage() {\n\n\t\t$this->activeTab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'advanced_wordpress_configuration_plugin_general';\n\n\t\techo '<div class=\"wrap advanced_wordpress_configuration_plugin\">';\n\n\t\tscreen_icon();\n\n\t\techo '<h2>'.__('Advanced Wordpress Configuration Options', 'advanced-wordpress-configuration-plugin-locale').'</h2>';\n\n\t\techo '<form method=\"post\" action=\"options.php\">';\n\n\t\t//tabs wrapper\n\t\techo '<h2 class=\"nav-tab-wrapper\">';\n\t\tforeach( $this->setting_sections as $tab => $name ){\n\t\t\t$class = ( $tab == $this->activeTab ) ? ' nav-tab-active' : '';\n\t\t\techo \"<a class='nav-tab$class' href='?page=\".$this->page_name.\"&tab=$tab'>$name</a>\";\n\t\t}\n\t\techo '</h2>';\n\n\t\t//render settings for active tab\n\t\tsettings_fields($this->activeTab);\n\t\tdo_settings_sections($this->activeTab);\n\n\t\tsubmit_button();\n\n\t\techo '</form>\n\t\t\t\t</div><div class=\"warning\" style=\"font-size: 0.8em;\">* changes in the plugin breaks updatability of this plugin. Be warned.</div>';\n\t}", "title": "" }, { "docid": "c7ec16e541fd2c7e05cfab428878d85f", "score": "0.61148214", "text": "public function index()\n {\n $array_settings = [\n 'avatar' => [\n 'type' => 'image',\n ],\n ];\n foreach ($array_settings as $k => &$v) {\n $m = @Auth::user()->info->where('info_key',$k)->first()->info_value;\n if ($m) {\n $v['value'] = $m;\n } else {\n $v['value'] = isset($v['default'])?$v['default']:\"\";\n }\n }\n unset($v);\n\n View::share('array_settings', $array_settings);\n\n return view('admin.setting');\n }", "title": "" }, { "docid": "733baae0474d3786e9c003b41ee8e13f", "score": "0.6110824", "text": "public function form_settings_page_title() {\r\n\t\treturn '';\r\n\t}", "title": "" }, { "docid": "9f2d3de7b00d523df0b2181e57520f45", "score": "0.6109034", "text": "function uc_store_configuration_page() {\n $menu = menu_get_item('admin/store/settings');\n $content = system_admin_menu_block($menu);\n\n $build['menu'] = array(\n '#theme' => 'admin_block_content',\n '#content' => $content,\n );\n\n return $build;\n}", "title": "" }, { "docid": "af6969d78b67689b59142dfa838a6b54", "score": "0.61022866", "text": "public function displaysSettingsForm() {\n return true;\n }", "title": "" }, { "docid": "5af4df56fa77e4af5cf2ec8036d2334e", "score": "0.6099905", "text": "function jtd_anything_slides_admin_settings() {\n\tregister_setting( 'jtd_anything_slides_options', 'jtd_anything_slides_options', 'jtd_anything_slides_validate_options' );\n\t\n\t// Register a settings section into which we can print all of the options fields\n\tadd_settings_section( 'jtd_anything_slides_option_section', 'Appearance Settings <span class=\"sidebar-name-arrow\"></span>', 'jtd_anything_slides_option_appearance_text', 'anything_slider_appearance' );\n\tadd_settings_section( 'jtd_anything_slides_option_section', '</div><h3>Function Settings <span class=\"sidebar-name-arrow\"></span></h3>', 'jtd_anything_slides_option_function_text', 'anything_slider_function' );\n\tadd_settings_section( 'jtd_anything_slides_option_section', '</div><h3>Navigation Settings <span class=\"sidebar-name-arrow\"></span></h3>', 'jtd_anything_slides_option_navigation_text', 'anything_slider_navigation' );\n\tadd_settings_section( 'jtd_anything_slides_option_section', '</div><h3>Slideshow Options <span class=\"sidebar-name-arrow\"></span></h3>', 'jtd_anything_slides_option_options_text', 'anything_slider_options' );\n\tadd_settings_section( 'jtd_anything_slides_option_section', '</div><h3>Timing Options <span class=\"sidebar-name-arrow\"></span></h3>', 'jtd_anything_slides_option_timing_text', 'anything_slider_timing' );\n\tadd_settings_section( 'jtd_anything_slides_option_section', '</div><h3>Interactivity Settings (advanced and beta)<span class=\"sidebar-name-arrow\"></span></h3>', 'jtd_anything_slides_option_interactivity_text', 'anything_slider_interactivity' );\n\tadd_settings_section( 'jtd_anything_slides_option_section', '</div><h3>Video Settings <span class=\"sidebar-name-arrow\"></span></h3>', 'jtd_anything_slides_option_video_text', 'anything_slider_video' );\n\t\n\t\n\t\n\t\n\t// Register each of the fields that will be displayed on the options page -> set a callback for each setting to spit out the actual form field\n\t// Appearance Settings\n\tadd_settings_field( 'jtd_anything_slides-width', '<label for=\"width\">Width</label>', 'jtd_anything_slides_width_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-height', '<label for=\"height\">Height</label>', 'jtd_anything_slides_height_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-theme', '<label for=\"theme\">Theme</label>', 'jtd_anything_slides_theme_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-expand', '<label for=\"expand\">Expand</label>', 'jtd_anything_slides_expand_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-resizeContents','<label for=\"resizeContents\">Resize</label>', 'jtd_anything_slides_resize_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-vertical', '<label for=\"vertical\">Vertical</label>', 'jtd_anything_slides_vertical_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-showMultiple', '<label for=\"showMultiple\">Show Multiple</label>', 'jtd_anything_slides_showMultiple_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-easing', '<label for=\"easing\">Easing</label>', 'jtd_anything_slides_easing_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' );\n\t\t\n\tadd_settings_field( 'jtd_anything_slides-arrows', '<label for=\"arrows\">Build Arrows</label>', 'jtd_anything_slides_arrows_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-navigation', '<label for=\"navigation\">Build Navigation</label>', 'jtd_anything_slides_navigation_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-startStop', '<label for=\"startStop\">Build Start/Stop</label>', 'jtd_anything_slides_startStop_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' );\n\t\n\tadd_settings_field( 'jtd_anything_slides-toggleArrows', '<label for=\"toggleArrows\">Toggle Arrows</label>', 'jtd_anything_slides_toggleArrows_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-toggleContr', '<label for=\"toggleContr\">Toggle Controls</label>', 'jtd_anything_slides_toggleContr_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' );\t\n\t\n\tadd_settings_field( 'jtd_anything_slides-startText', '<label for=\"startText\">Start Text</label>', 'jtd_anything_slides_startText_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' );\t\n\tadd_settings_field( 'jtd_anything_slides-stopText', '<label for=\"stopText\">Stop Text</label>', 'jtd_anything_slides_stopText_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-forwardText', '<label for=\"forwardText\">Forward Text</label>', 'jtd_anything_slides_forwardText_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' );\t\n\tadd_settings_field( 'jtd_anything_slides-backText', '<label for=\"backText\">Back Text</label>', 'jtd_anything_slides_backText_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-tooltipClass', '<label for=\"tooltipClass\">Tooltip Class</label>', 'jtd_anything_slides_tooltipClass_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' );\n/*\n // ** Appearance **\n theme : \"default\", // Theme name\n expand : false, // If true, the entire slider will expand to fit the parent element\n resizeContents : true, // If true, solitary images/objects in the panel will expand to fit the viewport\n showMultiple : false, // Set this value to a number and it will show that many slides at once\n easing : \"swing\", // Anything other than \"linear\" or \"swing\" requires the easing plugin or jQuery UI\n\n buildArrows : true, // If true, builds the forwards and backwards buttons\n buildNavigation : true, // If true, builds a list of anchor links to link to each panel\n buildStartStop : true, // ** If true, builds the start/stop button\n\n toggleArrows : false, // If true, side navigation arrows will slide out on hovering & hide @ other times\n toggleControls : false, // if true, slide in controls (navigation + play/stop button) on hover and slide change, hide @ other times\n\n startText : \"Start\", // Start button text\n stopText : \"Stop\", // Stop button text\n forwardText : \"&raquo;\", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image)\n backText : \"&laquo;\", // Link text used to move the slider back (hidden by CSS, replace with arrow image)\n tooltipClass : \"tooltip\", // Class added to navigation & start/stop button (text copied to title if it is hidden by a negative text indent)\n*/\n\n\n\t// Function Settings\n\tadd_settings_field( 'jtd_anything_slides-enableArrows', '<label for=\"enableArrows\">Enable Arrows</label>', 'jtd_anything_slides_enableArrows_callback', 'anything_slider_function', 'jtd_anything_slides_option_section' );\t\n\tadd_settings_field( 'jtd_anything_slides-enableNav', '<label for=\"enableNav\">Enable Navigation</label>', 'jtd_anything_slides_enableNav_callback', 'anything_slider_function', 'jtd_anything_slides_option_section' );\t\n\tadd_settings_field( 'jtd_anything_slides-enablePlay', '<label for=\"enablePlay\">Enable Start Stop</label>', 'jtd_anything_slides_enablePlay_callback', 'anything_slider_function', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-keyboard', '<label for=\"keyboard\">Enable Keyboard</label>', 'jtd_anything_slides_keyboard_callback', 'anything_slider_function', 'jtd_anything_slides_option_section' );\n/*\n // Function\n enableArrows : true, // if false, arrows will be visible, but not clickable.\n enableNavigation : true, // if false, navigation links will still be visible, but not clickable.\n enableStartStop : true, // if false, the play/stop button will still be visible, but not clickable. Previously \"enablePlay\"\n enableKeyboard : true, // if false, keyboard arrow keys will not work for this slider.\n*/\n\t\n\t\t\n\t// Navigation Settings\n\tadd_settings_field( 'jtd_anything_slides-startPanel', '<label for=\"startPanel\">Start Panel</label>', 'jtd_anything_slides_startPanel_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-changeBy', '<label for=\"changeBy\">Change Slides By</label>', 'jtd_anything_slides_changeBy_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-hashTags', '<label for=\"hashTags\">Display Hash Tags</label>', 'jtd_anything_slides_hashTags_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-infinite', '<label for=\"infinite\">Infinite Slides</label>', 'jtd_anything_slides_infinite_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' );\n//\tadd_settings_field( 'jtd_anything_slides-navFormatter', '<label for=\"navFormatter\">Navigation Formatter</label>', 'jtd_anything_slides_navFormatter_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' );\t\n/*\n // Navigation\n startPanel : 1, // This sets the initial panel\n changeBy : 1, // Amount to go forward or back when changing panels.\n hashTags : true, // Should links change the hashtag in the URL?\n infiniteSlides : true, // if false, the slider will not wrap & not clone any panels\n navigationFormatter : null, // Details at the top of the file on this use (advanced use)\n*/\n\t\t\t\t\n\t\t\n\t// Slideshow Options\n\tadd_settings_field( 'jtd_anything_slides-autoPlay', '<label for=\"autoPlay\">Auto Play</label>', 'jtd_anything_slides_autoPlay_callback', 'anything_slider_options', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-autoPlayLocked', '<label for=\"autoPlayLocked\">Auto Play Locked</label>', 'jtd_anything_slides_autoPlayLocked_callback', 'anything_slider_options', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-autoPlayDelayed', '<label for=\"autoPlayDelayed\">Auto Play Delayed</label>', 'jtd_anything_slides_autoPlayDelayed_callback', 'anything_slider_options', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-pauseOnHover', '<label for=\"pauseOnHover\">Pause on Hover</label>', 'jtd_anything_slides_pauseOnHover_callback', 'anything_slider_options', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-stopAtEnd', '<label for=\"stopAtEnd\">Stop at end of slides</label>', 'jtd_anything_slides_stopAtEnd_callback', 'anything_slider_options', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-playRtl', '<label for=\"playRtl\">Play Right to Left</label>', 'jtd_anything_slides_playRtl_callback', 'anything_slider_options', 'jtd_anything_slides_option_section' );\n/*\t\n // Slideshow options\n autoPlay : false, // If true, the slideshow will start running; replaces \"startStopped\" option\n autoPlayLocked : false, // If true, user changing slides will not stop the slideshow\n autoPlayDelayed : false, // If true, starting a slideshow will delay advancing slides; if false, the slider will immediately advance to the next slide when slideshow starts\n pauseOnHover : true, // If true & the slideshow is active, the slideshow will pause on hover\n stopAtEnd : false, // If true & the slideshow is active, the slideshow will stop on the last page. This also stops the rewind effect when infiniteSlides is false.\n playRtl : false, // If true, the slideshow will move right-to-left\n*/\n\t\n\t\n\t// Timing Options\n\tadd_settings_field( 'jtd_anything_slides-delay', '<label for=\"delay\">Delay</label>', 'jtd_anything_slides_delay_callback', 'anything_slider_timing', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-resume', '<label for=\"resume\">Resume Delay</label>', 'jtd_anything_slides_resume_callback', 'anything_slider_timing', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-animation', '<label for=\"animation\">Animation Time</label>', 'jtd_anything_slides_animation_callback', 'anything_slider_timing', 'jtd_anything_slides_option_section' );\n/*\n // Times\n delay : 3000, // How long between slideshow transitions in AutoPlay mode (in milliseconds)\n resumeDelay : 15000, // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds).\n animationTime : 600, // How long the slideshow transition takes (in milliseconds)\n*/\t\n\n\n\t// Interactivity Options -- Very Beta\n\tadd_settings_field( 'jtd_anything_slides-clickForwardArrow', '<label for=\"clickForwardArrow\">Forward Arrow Click Event</label>', 'jtd_anything_slides_clickForwardArrow_callback', 'anything_slider_interactivity', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-clickBackArrow', '<label for=\"clickBackArrow\">Back Arrow Click Event</label>', 'jtd_anything_slides_clickBackArrow_callback', 'anything_slider_interactivity', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-clickControls', '<label for=\"clickControls\">Navigation Click Event</label>', 'jtd_anything_slides_clickControls_callback', 'anything_slider_interactivity', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-clickSlideshow', '<label for=\"clickSlideshow\">Slideshow Click Event</label>', 'jtd_anything_slides_clickSlideshow_callback', 'anything_slider_interactivity', 'jtd_anything_slides_option_section' );\n/*\n // Interactivity\n clickForwardArrow : \"click\", // Event used to activate forward arrow functionality (e.g. add jQuery mobile's \"swiperight\")\n clickBackArrow : \"click\", // Event used to activate back arrow functionality (e.g. add jQuery mobile's \"swipeleft\")\n clickControls : \"click focusin\", // Events used to activate navigation control functionality\n clickSlideshow : \"click\", // Event used to activate slideshow play/stop button\n*/\n\t\n\t\n\t// Video Options\n//\tadd_settings_field( 'jtd_anything_slides-resumeOnVideo', '<label for=\"resumeOnVideo\">Resume After Video</label>','jtd_anything_slides_resumeOnVideo_callback', 'anything_slider', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-video', '<label for=\"video\">Video</label>', 'jtd_anything_slides_video_callback', 'anything_slider_video', 'jtd_anything_slides_option_section' );\n\tadd_settings_field( 'jtd_anything_slides-wmode', '<label for=\"wmode\">Wmode</label>', 'jtd_anything_slides_wmode_callback', 'anything_slider_video', 'jtd_anything_slides_option_section' );\t\n/*\t\n\t// Video\n\tresumeOnVideoEnd : true, // If true & the slideshow is active & a supported video is playing, it will pause the autoplay until the video is complete\n\taddWmodeToObject : \"opaque\", // If your slider has an embedded object, the script will automatically add a wmode parameter with this setting\n\tisVideoPlaying : function(base){ return false; } // return true if video is playing or false if not - used by video extension\n*/\n\t\n}", "title": "" }, { "docid": "03e66a3eefa0c56b42d765400a9f9d23", "score": "0.60977435", "text": "public function show(){\n\t\techo $this->prettify($this->settings);\n\t}", "title": "" }, { "docid": "5f4685bb9c14c1333bd64a9cc77239fe", "score": "0.6097484", "text": "public function index()\n {\n return view('admin_dashboard.settings.general_settings.index');\n }", "title": "" }, { "docid": "9e1711cf1c96d42b8832bad5451df5ed", "score": "0.60955656", "text": "public function settingsForm() {\n return \\BonesForms::fields(array(\n array(\n 'title' => 'View',\n 'name' => 'view',\n 'type' => 'text',\n 'value' => $this->view\n )\n ));\n }", "title": "" }, { "docid": "e8085fea49bdf2e01f00bbb5f707c5be", "score": "0.6094752", "text": "public function index()\n {\n $data = $this->settingsService->all();\n return view('admin.settings.index', ['data' => $data->first()]);\n }", "title": "" }, { "docid": "787d3273414f017695359329a47eaa95", "score": "0.60920703", "text": "function print_media_templates() {\n\t\t$default_gallery_type = apply_filters( 'jetpack_default_gallery_type', 'default' );\n\n\t\t?>\n\t\t<script type=\"text/html\" id=\"tmpl-jetpack-gallery-settings\">\n\t\t\t<label class=\"setting\">\n\t\t\t\t<span><?php _e( 'Type', 'jetpack' ); ?></span>\n\t\t\t\t<select class=\"type\" name=\"type\" data-setting=\"type\">\n\t\t\t\t\t<?php foreach ( $this->gallery_types as $value => $caption ) : ?>\n\t\t\t\t\t\t<option value=\"<?php echo esc_attr( $value ); ?>\" <?php selected( $value, $default_gallery_type ); ?>><?php echo esc_html( $caption ); ?></option>\n\t\t\t\t\t<?php endforeach; ?>\n\t\t\t\t</select>\n\t\t\t</label>\n\t\t</script>\n\t\t<?php\n\t}", "title": "" }, { "docid": "17fe6ea13a3fd10f5a0bd4cc69ee5c98", "score": "0.6091159", "text": "public function index()\n {\n $settings = SiteSettings::first();\n return view('admin.site_settings', compact('settings'));\n }", "title": "" }, { "docid": "6e22ad4cab372f014db4f8a6e4240ae0", "score": "0.6086827", "text": "function alfred_admin_settings() {\n?>\n\n\t<div class=\"wrap\">\n\n\t\t<?php screen_icon(); ?>\n\n\t\t<h2><?php _e( 'Alfred Settings', 'alfred' ) ?></h2>\n\n\t\t<form action=\"options.php\" method=\"post\">\n\n\t\t\t<?php \n\t\t\t\tsettings_fields( 'alfred' ); \n\t\t\t\tdo_settings_sections( 'alfred' ); \n\t\t\t\t\n\t\t\t\tsubmit_button( __( 'Save Changes', 'alfred' ) ); \n\t\t\t?>\n\t\t\t\n\t\t</form>\n\t</div>\n\n<?php\n}", "title": "" }, { "docid": "7f5244b040ef7b30eee93c45359ad5d9", "score": "0.60861546", "text": "function t3p_main_options_page_html()\n{\n // check user capabilities\n if (! current_user_can('manage_options')) {\n return;\n }\n\n ?>\n <div class=\"wrap\">\n <h1><?php echo esc_html(get_admin_page_title()); ?></h1>\n <form action=\"options.php\" method=\"post\">\n <?php\n settings_fields('t3p_main');\n do_settings_sections('t3p_main');\n submit_button();\n ?>\n </form>\n </div>\n <?php\n}", "title": "" }, { "docid": "d42b3f8977a99afa40a85ca8256bc44a", "score": "0.6076684", "text": "function settings()\n {\n $data[\"userInfo\"] = $this->user_model->getUserInfoWithRole($this->vendorId);\n \n $this->global['pageTitle'] = PROJECT_NAME . ' : Settings';\n $this->loadViews(\"admin/users/settings\", $this->global, $data, NULL);\n }", "title": "" } ]
51efac304067e48eb1df6f56a2e626f6
Operation getBvnFromNubanAsync Lookup BVN from NUBAN
[ { "docid": "e37bb1139f1ae9b7db0bb6f9e8c59af9", "score": "0.66483474", "text": "public function getBvnFromNubanAsync(\n $bank_code = SENTINEL_VALUE,\n $account_number = SENTINEL_VALUE,\n\n\n string $contentType = self::contentTypes['getBvnFromNuban'][0]\n\n )\n {\n\n return $this->getBvnFromNubanAsyncWithHttpInfo($bank_code, $account_number, $contentType)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "title": "" } ]
[ { "docid": "88379891278486c4734801bf713527df", "score": "0.6450339", "text": "public function getBvnFromNubanRequest($bank_code = SENTINEL_VALUE, $account_number = SENTINEL_VALUE, string $contentType = self::contentTypes['getBvnFromNuban'][0])\n {\n\n\n\n $resourcePath = '/api/v1/kyc/nuban/bvn';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n if ($bank_code !== SENTINEL_VALUE) {\n // query params\n $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(\n $bank_code,\n 'bank_code', // param base name\n 'integer', // openApiType\n 'form', // style\n true, // explode\n false // required\n ) ?? []);\n }\n if ($account_number !== SENTINEL_VALUE) {\n // query params\n $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(\n $account_number,\n 'account_number', // param base name\n 'integer', // openApiType\n 'form', // style\n true, // explode\n false // required\n ) ?? []);\n }\n\n\n\n\n $headers = $this->headerSelector->selectHeaders(\n ['application/json', ],\n $contentType,\n $multipart\n );\n\n // for model (json/xml)\n if (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];\n foreach ($formParamValueItems as $formParamValueItem) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValueItem\n ];\n }\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif (stripos($headers['Content-Type'], 'application/json') !== false) {\n # if Content-Type contains \"application/json\", json_encode the form parameters\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n } else {\n // for HTTP post (form)\n $httpBody = ObjectSerializer::buildQuery($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('Authorization');\n if ($apiKey !== null) {\n $headers['Authorization'] = $apiKey;\n }\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('AppId');\n if ($apiKey !== null) {\n $headers['AppId'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $method = 'GET';\n $this->beforeCreateRequestHook($method, $resourcePath, $queryParams, $headers, $httpBody);\n\n $operationHost = $this->config->getHost();\n $query = ObjectSerializer::buildQuery($queryParams);\n return [\n \"request\" => new Request(\n $method,\n $operationHost . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n ),\n \"serializedBody\" => $httpBody\n ];\n }", "title": "" }, { "docid": "72ef5ec98c6c029e2272cccd62538f09", "score": "0.5941232", "text": "public function getBvnFromNuban(\n $bank_code = SENTINEL_VALUE,\n $account_number = SENTINEL_VALUE,\n\n\n string $contentType = self::contentTypes['getBvnFromNuban'][0]\n\n )\n {\n\n list($response) = $this->getBvnFromNubanWithHttpInfo($bank_code, $account_number, $contentType);\n return $response;\n }", "title": "" }, { "docid": "e90843dc4b762e01c80b6188c575d742", "score": "0.54791874", "text": "public function getBvnFromNubanWithHttpInfo($bank_code = null, $account_number = null, string $contentType = self::contentTypes['getBvnFromNuban'][0], \\Dojah\\RequestOptions $requestOptions = new \\Dojah\\RequestOptions())\n {\n [\"request\" => $request, \"serializedBody\" => $serializedBody] = $this->getBvnFromNubanRequest($bank_code, $account_number, $contentType);\n\n // Customization hook\n $this->beforeSendHook($request, $requestOptions, $this->config);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n if (\n ($e->getCode() == 401 || $e->getCode() == 403) &&\n !empty($this->getConfig()->getAccessToken()) &&\n $requestOptions->shouldRetryOAuth()\n ) {\n return $this->getBvnFromNubanWithHttpInfo(\n $bank_code,\n $account_number,\n $contentType,\n $requestOptions->setRetryOAuth(false)\n );\n }\n\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n (int) $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? (string) $e->getResponse()->getBody() : null\n );\n } catch (ConnectException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n (int) $e->getCode(),\n null,\n null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n (string) $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n (string) $response->getBody()\n );\n }\n\n switch($statusCode) {\n case 200:\n if ('object' === '\\SplFileObject') {\n $content = $response->getBody(); //stream goes to serializer\n } else {\n $content = (string) $response->getBody();\n if ('object' !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, 'object', []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n }\n\n $returnType = 'object';\n if ($returnType === '\\SplFileObject') {\n $content = $response->getBody(); //stream goes to serializer\n } else {\n $content = (string) $response->getBody();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n 'object',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "2a0aadbd30c530c7f41d0d340fd7586d", "score": "0.5419142", "text": "public function get_bank_data($bin = \"\")\r\n {\r\n // Prepare curl options\r\n $curlOptions = array(\r\n CURLOPT_URL => 'https://lookup.binlist.net/'.$bin,\r\n CURLOPT_HTTPHEADER => array(\r\n \"Content-Type: application/json\",\r\n \"Accept-Version: 3\"\r\n ),\r\n CURLOPT_RETURNTRANSFER => true,\r\n // Enable for debugging purposes\r\n CURLOPT_VERBOSE => false\r\n );\r\n\r\n\r\n\r\n $curlOptions[CURLOPT_HTTPGET] = true;\r\n\r\n\r\n $curlHandle = curl_init();\r\n // Set the options in the curl handler\r\n curl_setopt_array($curlHandle, $curlOptions);\r\n\r\n // Execute the http request\r\n $response = curl_exec($curlHandle);\r\n\r\n\r\n return $response;\r\n }", "title": "" }, { "docid": "1e18e9fb1d42a9bf0e78ddde2f725fdc", "score": "0.5376218", "text": "public function getBvnFromNubanAsyncWithHttpInfo($bank_code = null, $account_number = null, string $contentType = self::contentTypes['getBvnFromNuban'][0], \\Dojah\\RequestOptions $requestOptions = new \\Dojah\\RequestOptions())\n {\n $returnType = 'object';\n [\"request\" => $request, \"serializedBody\" => $serializedBody] = $this->getBvnFromNubanRequest($bank_code, $account_number, $contentType);\n\n // Customization hook\n $this->beforeSendHook($request, $requestOptions, $this->config);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n if ($returnType === '\\SplFileObject') {\n $content = $response->getBody(); //stream goes to serializer\n } else {\n $content = (string) $response->getBody();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n (string) $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "8b2883ef940e582009f1c799691c9bbb", "score": "0.53139526", "text": "function getAvailBalanceFromVCB($AccountNo){\r\n\t\t$function_name = 'getAvailBalanceFromVCB';\r\n\t\t$struct = '{urn:'. $this->class_name .'}'. $function_name . 'Struct';\r\n\r\n\t\tif ( authenUser(func_get_args(), $this, $function_name) > 0 )\r\n\t\t\treturn returnXML(func_get_args(), $this->class_name, $function_name, $this->_ERROR_CODE, $this->items, $this );\r\n\r\n\t\tif ( !required($AccountNo) ) {\r\n\t\t\t$this->_ERROR_CODE = 30291;\r\n\r\n\t\t} else {\r\n\t\t\t$query = sprintf(\"SELECT f_searchBankAccount('%s', %u) AS IsExist\", $AccountNo, VCB_ID);\r\n\t\t\t$rs = $this->_MDB2->extended->getRow($query);\r\n\t\t\tif ($rs['isexist'] > 0) {\r\n\t\t\t\t$vcb = &new CVCB();\r\n\t\t\t\t$result = $vcb->getAvailBalance( $AccountNo);\r\n\t\t\t\t$this->items[0] = new SOAP_Value(\r\n\t\t\t\t\t'item',\r\n\t\t\t\t\t$struct,\r\n\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\"Balance\" => new SOAP_Value( \"Balance\", \"string\", $result )\r\n\t\t\t\t\t\t)\r\n\t\t\t\t);\r\n\t\t\t} else {\r\n\t\t\t\t$this->_ERROR_CODE = 30292;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn returnXML(func_get_args(), $this->class_name, $function_name, $this->_ERROR_CODE, $this->items, $this );\r\n\t}", "title": "" }, { "docid": "a1094aa87c266b5cec1b1551eaf7ae31", "score": "0.5261296", "text": "public function club_verify_account_number($nuban){\n $arg = array();\n $arg['userName'] = ZENITH_TEST_USER;\n $arg['Pwd'] = ZENITH_TEST_PASS;\n $soap = new SoapClient(ZENITH_TEST_ENDPOINT);\n $arg['account_number'] = $nuban;\n $fun_resp = $soap->VerifyAccount($arg); //call the soap api to validate\n if($fun_resp->VerifyAccountResult->errorMessage != \"\"){\n return 0; //error occured. could not verify account number\n }\n //for the SOAP not to throw an error. it means the account number is valid.\n //go i need to check the database to know if such account number has not been tied to a user before\n //its fraud if 2 customers uses thesame account number to sign up for club membership\n $result_check_nuban = $this->db->query(\"SELECT nuban FROM users WHERE nuban='\".$arg['account_number'].\"'\");\n if(count($result_check_nuban) > 0){\n return -1 ; //This NUBAN number has been Used by another Customer;\n }\n else{\n return 1; //account number provided is valid and can be used.\n }\n }", "title": "" }, { "docid": "c5aec52f2fef18a6d99f23292b17b211", "score": "0.50596726", "text": "function CallGetBalance($API_Endpoint, $version, $user, $pwd, $signature) \n {\n $ch = curl_init ();\n curl_setopt ( $ch, CURLOPT_URL, $API_Endpoint );\n curl_setopt ( $ch, CURLOPT_VERBOSE, 1 );\n curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, FALSE );\n curl_setopt ( $ch, CURLOPT_SSL_VERIFYHOST, FALSE );\n curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 );\n curl_setopt ( $ch, CURLOPT_POST, 1 );\n\n // NVPRequest for submitting to server\n $nvpreq = \"METHOD=GetBalance\" . \"&RETURNALLCURRENCIES=1\" . \"&VERSION=\" . $version . \"&PWD=\" . $pwd . \"&USER=\" . $user . \"&SIGNATURE=\" . $signature;\n curl_setopt ( $ch, CURLOPT_POSTFIELDS, $nvpreq );\n $response = curl_exec ( $ch );\n\n $nvpResArray = deformatNVP ( $response );\n\n curl_close ( $ch );\n\n return $nvpResArray;\n }", "title": "" }, { "docid": "ce9f2ada66abc50dc59e07288aaa38f8", "score": "0.50574577", "text": "public function Livres($isbn)\n {\n // $isbn = '0061234001';\n $request = 'https://www.googleapis.com/books/v1/volumes?q=isbn:' . $isbn;\n try{\n $response = file_get_contents($request);\n $results = json_decode($response);\n $retour = array();\n // $infos = array();\n // if($results->totalItems > 0){\n // avec de la chance, ce sera le 1er trouvé\n $n = $results->totalItems;\n for ($i=0; $i < $n; $i++) { \n $infos = array();\n $book = $results->items[$i];\n\n if(property_exists($book->volumeInfo,'industryIdentifiers')){\n $infos['isbn'] = $book->volumeInfo->industryIdentifiers[0]->identifier;\n }\n if(property_exists($book->volumeInfo,'title')){\n $infos['titre'] = $book->volumeInfo->title;\n }\n if(property_exists($book->volumeInfo,'authors')){\n $infos['auteur'] = $book->volumeInfo->authors[0];\n }\n // $infos['category'] = $book->volumeInfo->category;\n if(property_exists($book->volumeInfo,'language')){\n $infos['langue'] = $book->volumeInfo->language;\n }\n if(property_exists($book->volumeInfo,'publishedDate')){\n $infos['publication'] = $book->volumeInfo->publishedDate;\n }\n\n if(property_exists($book->volumeInfo,'pageCount')){\n $infos['pages'] = $book->volumeInfo->pageCount;\n }\n\n \n\n if( property_exists($book->volumeInfo,'imageLinks') ){\n $infos['image'] = str_replace('&edge=curl', '', $book->volumeInfo->imageLinks->thumbnail);\n }\n if (count($infos) == 7) {\n $retour[] = $infos;\n }\n \n }\n }catch(\\Exception $e){\n return 'erreur';\n }\n return $retour;\n }", "title": "" }, { "docid": "f3ab22d29be812d32410e9a5283867ed", "score": "0.505351", "text": "public static function getABNDetails(string $abn, string $apikey = '')\n {\n // Initialise some local variables\n $config = Factory::getConfig();\n $result = new \\stdClass();\n $key = $config->get('abnlookup.apikey', $apikey);\n\n // Look up the ABN details using ABR's API\n $url = \"https://abr.business.gov.au/abrxmlsearch/\" .\n \"AbrXmlSearch.asmx/ABRSearchByABN\";\n\n $data = static::sendRequest($url, 'GET', array(\n 'searchString' => $abn,\n 'includeHistoricalDetails' => 'Y',\n 'authenticationGuid' => $key\n ));\n\n\n // Parse the data returned by the API\n $data = new \\SimpleXMLElement($data);\n $data = $data->response;\n\n $exception = (string) $data->exception;\n if (empty($exception)) {\n\n $result->statement = (string) $data->usageStatement;\n $result->abn = (string) $data->businessEntity->ABN->identifierValue;\n $result->current = (string) $data->businessEntity->ABN->isCurrentIndicator;\n $result->asicNo = (string) $data->businessEntity->ASICNumber;\n $entityType = $data->businessEntity->entityType;\n $result->entityType = new \\stdClass;\n $result->entityType->code = (string) $entityType->entityTypeCode;\n $result->entityType->desc = (string) $entityType->entityDescription;\n $legalName = $data->businessEntity->legalName;\n $result->legalName = new \\stdClass;\n $result->legalName->firstname = (string) $legalName->givenName;\n $result->legalName->othername = (string) $legalName->otherGivenName;\n $result->legalName->lastname = (string) $legalName->familyName;\n $mainName = $data->businessEntity->mainName;\n $result->mainName = new \\stdClass;\n $result->mainName->organisation = (string) $mainName->organisationName;\n $result->mainName->effective = (string) $mainName->effectiveFrom;\n $tradeName = $data->businessEntity->mainTradingName;\n $result->tradeName = new \\stdClass;\n $result->tradeName->organisation = (string) $tradeName->organisationName;\n $result->tradeName->effective = (string) $tradeName->effectiveFrom;\n\n } else {\n\n $result->statement = '';\n $result->abn = '';\n $result->current = '';\n $result->asicNo = '';\n $result->entityType = new \\stdClass;\n $result->entityType->code = '';\n $result->entityType->desc = '';\n $result->legalName = new \\stdClass;\n $result->legalName->firstname = '';\n $result->legalName->othername = '';\n $result->legalName->lastname = '';\n $result->mainName = new \\stdClass;\n $result->mainName->organisation = '';\n $result->mainName->effective = '';\n $result->tradeName = new \\stdClass;\n $result->tradeName->organisation = '';\n $result->tradeName->effective = '';\n\n }\n\n // Return the result\n return $result;\n }", "title": "" }, { "docid": "fb7d161331a864aad1fc5a16fc02ce49", "score": "0.50410104", "text": "public function search_bcv()\n {\n $urlToGet ='http://www.bcv.org.ve/tasas-informativas-sistema-bancario';\n $pageDocument = @file_get_contents($urlToGet);\n preg_match_all('|<div class=\"col-sm-6 col-xs-6 centrado\"><strong> (.*?) </strong> </div>|s', $pageDocument, $cap);\n\n if ($cap[0] == array()){ // VALIDAR Concidencia\n $titulo = '0,00';\n }else {\n $titulo = $cap[1][4];\n }\n\n $bcv_con_formato = $titulo;\n $bcv = str_replace(',', '.', str_replace('.', '',$bcv_con_formato));\n\n\n /*-------------------------- */\n return $bcv;\n\n }", "title": "" }, { "docid": "c8018e770527b0a963e598d3a0d43793", "score": "0.48748282", "text": "public function get()\n {\n return $this->apiSearch($this->endpoint, ['class' => 'Nodebalancer', 'parameters' => ['id']]);\n }", "title": "" }, { "docid": "6535a3e3018ca51fcbbd3a44ee46d2d8", "score": "0.4865717", "text": "public function show(Bovino $bovino)\n {\n //\n }", "title": "" }, { "docid": "8608d2ccb929cbeef338092edf89a6a3", "score": "0.48194754", "text": "public function lookup($bin) {\n\t\t$url = $this->_apiUrl.$this->_apiPath.'?format=json&api_key='.urlencode($this->_apiKey).'&bin='.urlencode($bin);\n\n\t\t// if cache is enabled, check the cache first\n\t\tif ($this->_cache && $this->_cache->exists($url)) {\n\t\t\treturn $this->_cache->retrieve($url);\n\t\t}\n\n\t\t// get live data\n\t\ttry {\n\t\t\t$data = $this->request($url);\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\t// bin not found - don't keep trying\n\t\t\tif ($e->getCode()==1007) {\n\t\t\t\t$this->_cache->store($url,null);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tthrow $e;\n\t\t}\n\n\t\t// cache the response\n\t\tif ($this->_cache) {\n\t\t\t$this->_cache->store($url,$data);\n\t\t}\n\n\t\t// return it\n\t\treturn $data;\n\n\t}", "title": "" }, { "docid": "6f4be73caced40a594f0b08fbcbac962", "score": "0.47827247", "text": "public function getVinAsync(\n $vin = SENTINEL_VALUE,\n\n\n string $contentType = self::contentTypes['getVin'][0]\n\n )\n {\n\n return $this->getVinAsyncWithHttpInfo($vin, $contentType)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "title": "" }, { "docid": "c216a81570356843769ba590e36b4d4f", "score": "0.47588345", "text": "function get_nexmo_balance()\n\t{\n\t\t$url=\"https://rest.nexmo.com/account/get-balance/{$this->user}/{$this->password}\";\n\t\t$ch=curl_init($url);\n\t // curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); \n\t curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); \n\t curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); \n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));\n\t\t$response = curl_exec( $ch );\n\t\tcurl_close($ch);\n\t\t$response=json_decode($response,TRUE);\n\t\t$balance=isset($response['value']) ? $response['value']:0;\n\t\treturn $balance;\n\t}", "title": "" }, { "docid": "b4d8067ef35ce662c21fa557afa00330", "score": "0.47584867", "text": "public function byVatnumber(string $vatNumber): CompanyLookupResultInterface;", "title": "" }, { "docid": "7942ee4fced4723835b619c235a2fa94", "score": "0.47177985", "text": "public function ubah($nisn)\r\n {\r\n return $this->db->query(\"SELECT * FROM tb_siswa\r\n JOIN tb_kelas ON tb_kelas.id_kelas = tb_siswa.id_kelas\r\n JOIN tb_spp ON tb_spp.id_spp = tb_siswa.id_spp\r\n WHERE nisn='$nisn'\r\n \")->fetch_assoc();\r\n }", "title": "" }, { "docid": "90c896662390f103376238f3fbdb4677", "score": "0.4684902", "text": "public function ubahBinner($n) {\n\t\t$n = decbin($n);\n\n\t\tif(strlen($n) > 8) {\n\t\t\t// bila nilainya lebih dari 8, maka hapus nilai depannya\n\t\t\t$jum = strlen($n) - 8;\n\t\t\t$n = substr($n, $jum, strlen($n));\n\t\t} else {\n\t\t\t// bila nilainya kurang dari 8, maka tambah dengan 0 di depannya\n\t\t\twhile(strlen($n) % 8 != 0) {\n\t\t\t\t$n = \"0\" . $n;\n\t\t\t}\t\n\t\t}\n\n\t\t// mengembalikan binner dengan jumlah sampai 8 bit\n\t\treturn $n;\n\t}", "title": "" }, { "docid": "af0a2c91e3d230f17f6cfa17f75c0d53", "score": "0.4666237", "text": "function VNetInfo($vid){\n\t\t$result=$this->rpc_send(\"one.vn.info\", array($this->session,$vid));\n\t\tif (($result[0]==true)) {\n\t\t\t$result[1]=str_replace(\"<![CDATA[\", \"\",$result[1]);\n\t\t\t$result[1]=str_replace(\"]]>\", \"\",$result[1]);\t\t\t\n\t\t\t$xml=simplexml_load_string($result[1]);\n\t\t}\t\t\n\t\treturn $xml;\n\t}", "title": "" }, { "docid": "1b2d4180de7141f6ca8079ac3a784347", "score": "0.46649033", "text": "public function Bn(){\n\n\t\t$sqlOp = \"SELECT * FROM pesquisa WHERE Sangue = 'B-' \";\n\n\t\t$buscarBn= Conectar::conectado()->prepare($sqlOp);\n\n\t\t$buscarBn->execute();\n\n\t\t$nun = $buscarBn->rowCount();\n\n\t\t\n\t\treturn $nun;\n\t}", "title": "" }, { "docid": "736aa826ccc3e4e5c0a9eb92a6480d1d", "score": "0.46412855", "text": "function getblockbyno($no)\n\t{\n\t\t$criteria = new CriteriaCompo(new Criteria(\"b.bno\", $no));\n\n\t\treturn $this->getblock($criteria);\n\t}", "title": "" }, { "docid": "5ae85ef7307574c899b2db9f85e06134", "score": "0.46073377", "text": "function isbndb_query( $isbn, $start = 1 ) {\r\n\tif( $this->isbndb_key )\r\n $key = $this->isbndb_key;\r\n else\r\n return;\r\n \r\n // Strip '-'\r\n $isbn = str_replace( '-', '', $isbn );\r\n \r\n // results array\r\n\t$entry = null;\r\n \r\n\t// construct isbndb api request\r\n\t$url = $this->isbndb_uri;\r\n\t$url .= \"books.xml?index1=isbn&value1=\";\r\n\t$url .= urlencode($isbn);\r\n\t$url .= \"&access_key=\".$key;\r\n\t\r\n // load xml\r\n $xml = @file_get_contents( $url );\r\n if( $xml != null ) {\r\n $parser = xml_parser_create();\r\n xml_parse_into_struct( $parser, $xml, $tags );\r\n xml_parser_free( $parser );\r\n } else {\r\n return null;\r\n }\r\n \r\n foreach( $tags as $t ) {\r\n if( strtolower( $t['tag'] ) == 'titlelong' )\r\n $entry['title'] = $t['value'];\r\n if( strtolower( $t['tag'] ) == 'authorstext' )\r\n $entry['author'] = $t['value'];\r\n if( strtolower( $t['tag'] ) == 'publishertext' )\r\n $entry['pub'] = $t['value'];\r\n }\r\n $entry['isbn'] = $isbn;\r\n \r\n return array( $entry );\r\n }", "title": "" }, { "docid": "db0583a680cf661c2841cc0ae5e0a0bd", "score": "0.4603225", "text": "public function getNelsonMandelaBaySubs($municipality_id){\n\t\t\ttry{\n\t\t\t\t$query = \"SELECT s.*, m.municipality_name, m.municipality_code, \n\t\t\t\t\t\t m.municipality_id FROM suburbs s\n\t\t\t\t\t\t LEFT JOIN municipalities m\n\t\t\t\t\t\t ON s.municipality_id = m.municipality_id\n\t\t\t\t\t\t WHERE m.municipality_id = '$municipality_id'\n\t\t\t\t\t\t AND m.municipality_id = '33'\";\n\t\t\t\t$result = $this->conn->query($query);\n\t\t\t\t$suburbs = array();\n\t\t\t\t\tforeach($result as $row){\n\t\t\t\t\t\t//create municipality object\n\t\t\t\t\t\t$municipality = new Municipality();\n\t\t\t\t\t\t$municipality->setMunicipalityID($row['municipality_id']);\n\t\t\t\t\t\t$municipality->setMunicipalityCode($row['municipality_code']);\n\t\t\t\t\t\t$municipality->setMunicipalityName($row['municipality_name']);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//create city object\n\t\t\t\t\t\t$suburb = new Suburb();\n\t\t\t\t\t\t$suburb->setSuburbID($row['suburb_id']);\n\t\t\t\t\t\t$suburb->setMunicipality($municipality);\n\t\t\t\t\t\t$suburb->setSuburbCode($row['suburb_code']);\n\t\t\t\t\t\t$suburb->setSuburbName($row['suburb_name']);\n\t\t\t\t\t\t$suburb->setTotalPropertyForSale($row['total_property_forsale']);\n\t\t\t\t\t\t$suburb->setTotalPropertyToRent($row['total_property_torent']);\n\t\t\t\t\t\t$suburb->setTotalPropertyOnShow($row['total_property_onshow']);\n\t\t\t\t\t\t\n\t\t\t\t\t\tarray_push($suburbs, $suburb);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\treturn $suburbs;\n\t\t\t\t\n\t\t\t}catch(PDOException $e){\n\t\t\t\techo $e->getMessage();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "67ea78c38ab9bbcbdbacf19eabc4400f", "score": "0.4565503", "text": "public function getBvrs()\n {\n return $this->bvrs;\n }", "title": "" }, { "docid": "8f8199b9fb20d541dee427aca9dad051", "score": "0.45294523", "text": "public function getSubscriberBalance() {\n // check if address is set\n if(!isset($this->params['address'])) {\n // throw exception if address is not set\n throw new \\Exception('`address` is required.');\n }\n \n // prepare request url\n $url = sprintf(self::BALANCE_URL, $this->params['token'], $this->params['address']);\n \n // intialize curl\n $curl = new Curl();\n // prepare get request\n $curl->get($url);\n // return curl response\n return $curl->exec();\n }", "title": "" }, { "docid": "96294dd42bd32dffdc55b6c3b9398018", "score": "0.45103982", "text": "public function get_balance() {\n $url = \"https://rest.messagebird.com/balance/\";\n $ch = curl_init($url);\n $headers = array(\n 'Authorization: AccessKey ' . $this->api_key\n );\n \n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n $output = curl_exec($ch);\n curl_close($ch);\n return $output;\n }", "title": "" }, { "docid": "14bee5be1a6b23fb3774b90193f36792", "score": "0.44798225", "text": "public\tfunction abonneVillage($bdd,$village)\n\t\t{\n\t\t$nbr_abonne=0;\n\t\t$req=$bdd->prepare(\"SELECT * FROM abonne WHERE adresse= :village\")\t;\n\t\t$req->execute(array(\n\t\t\t\t\t\t':village' => $village\n\n\t\t\t\t\t\t));\n\t\t\twhile( $donnes=$req->fetch() )\n\t\t\t\t{\n\t\t\t\t $nbr_abonne++; \t\t\t\t\t\n\t\t\t\t}\n\t\t\treturn $nbr_abonne;\t\n\n\t\t}", "title": "" }, { "docid": "5a52c2557ad1efdde019fa8ee5c9f3b1", "score": "0.446381", "text": "function bbcinfo($bbcuri) {\n\t$query = prefix(array_keys($GLOBALS[\"ns\"])) . \"\n\t\tSELECT * WHERE {\n\t\t\tOPTIONAL { <$bbcuri> rdfs:comment ?comment . }\n\t\t\tOPTIONAL { <$bbcuri> foaf:homepage ?homepage . }\n\t\t\tOPTIONAL { <$bbcuri> mo:image ?image . }\n\t\t\tOPTIONAL { <$bbcuri> mo:wikipedia ?wikipedia . }\n\t\t\tOPTIONAL { <$bbcuri> mo:musicbrainz ?musicbrainz . }\n\t\t\tOPTIONAL { <$bbcuri> mo:imdb ?imdb . }\n\t\t\tOPTIONAL { <$bbcuri> mo:myspace ?myspace . }\n\t\t}\n\t\";\n\t$result = sparqlquery(ENDPOINT_BBC, $query);\n\n\tif (empty($result))\n\t\treturn array();\n\treturn $result[0];\n}", "title": "" }, { "docid": "23d7feb212506c52b56370729b1808f1", "score": "0.44636223", "text": "public function fetchBanks(){\n $response = $this->curl($this->apiEndpoint);\n //$data = is_file('banks.json') ? json_decode(file_get_contents('banks.json')) : null;\n //return $data->data;\n return json_decode($response);\n }", "title": "" }, { "docid": "7717e8af5e4ee0b0360313cba06cda71", "score": "0.44559363", "text": "public function nurseryBins()\n\t\t{\n\t\t\t\t$farm_id = Input::get('farm_id');\n\t\t\t\t$bins = Bins::select('bin_id',DB::raw(\"CONCAT(bin_number, ' - ',alias) AS bin_number\"))->orderBy('bin_id')->where('farm_id',$farm_id)->get()->toArray();\n\t\t\t\treturn $bins;\n\t\t}", "title": "" }, { "docid": "d7ae2b8620e5f13ff4568abfa21a7f68", "score": "0.4454472", "text": "public function getBulan($idx=null) {\n if ($idx === null) {\n return $this->Bulan;\n }else{\n return $this->Bulan[$idx];\n }\n }", "title": "" }, { "docid": "3bb52111a782d85e69407e7368318fd8", "score": "0.44196784", "text": "function bionames($canonical)\n{\n\t$url = 'http://bionames.org/api/name/' . rawurlencode($canonical);\n\t\t\n\t$json = get($url);\n\n\t$obj = json_decode($json);\n\t\n\t//print_r($obj);\n\t\n\t$result = new stdclass;\n\t$result->canonical = $canonical;\n\t\n\tif (count($obj->clusters) == 1)\n\t{\n\t\tforeach ($obj->clusters as $cluster)\n\t\t{\n\t\t\tforeach ($cluster->names as $name)\n\t\t\t{\n\t\t\t\t$result->ion = str_replace('urn:lsid:organismnames.com:name:', '', $name->id);\n\t\t\t\t\n\t\t\t\tif (isset($name->publishedInCitation))\n\t\t\t\t{\n\t\t\t\t\t$result->publishedInCitation = $name->publishedInCitation;\t\n\t\t\t\t\t\t\n\t\t\t\t\t$url = 'http://bionames.org/api/api_citeproc.php?id=' . $result->publishedInCitation;\n\t\t\t\t\t$html = get($url);\n\t\t\t\t\t$result->citeproc = $html;\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\n\treturn $result;\n}", "title": "" }, { "docid": "26997415bee516670ff4bf7412a80370", "score": "0.4418066", "text": "public function getUnit($nid)\n {\n $requestManager= new ServerRequestManager();\n $requestManager->setDatabase($requestManager->getDatabasePGRSecure());\n $requestManager->setSecondDatabase($requestManager->getDatabaseOntology());\n $requestManager->setOperation('WS:OP:GetAnnotated');\n $requestManager->setCollection(':_units');\n $requestManager->setQuery(Tags::kTAG_NID, Types::kTYPE_BINARY_STRING, $nid, Operators::kOPERATOR_EQUAL);\n \n return $requestManager->sendRequest();\n }", "title": "" }, { "docid": "6e47bb401558d811db16216655fa7854", "score": "0.44146034", "text": "public function show(jn_buku $jn_buku)\n {\n //\n }", "title": "" }, { "docid": "e8e950a9c1fd543ed38f8545c43de9bb", "score": "0.44144008", "text": "function getAlbum($mbid) {\n\trequire_once 'mb/MusicBrainz/MusicBrainz.php';\n\t\t\n\t$mb = new MusicBrainz();\n\t\n\ttry {\t\n\t $artist = $mb->lookup('artist', $mbid, array('releases')); //bryan adams\n\t $releases = $artist->getReleases();\n\t}\n\tcatch (MusicBrainzException $e) {\n\t echo $e->getMessage();\n\t}\n\treturn $releases;\n/*\n\n// LAST.FM release dates... terrible\n\tif(empty($artist) || empty($album)) {\n\t\treturn false;\n\t}\n\tif(!empty($mbid)) {\n\t\t$mbid = '&mbid='.$mbid;\n\t}\n\tif (!$doc = @file_get_contents('http://ws.audioscrobbler.com/2.0/?method=album.getinfo&api_key='.API_KEY.'&limit=10&period=12month&artist='.$artist.'&album='.$album.$mbid.'&username='.LASTFM_USER.'&format=json'))\n\t\tdie('could not connect to Last.fm API');\n \n\t$output = json_decode($doc);\n\t\n\t//http://ws.audioscrobbler.com/2.0/?method=album.getinfo&api_key=0f7c0c0bd061c53a8ffde348d56e154f&artist=Cher&album=Believe&format=json\n\n\treturn $output;\n*/\n}", "title": "" }, { "docid": "8744a35f9a3475c28bdb773b22ade399", "score": "0.44072083", "text": "public function get_by_biaya_pb($kd_biaya, $kd_pb) {\r\n $table = \"t_tagihan_kontrak\";\r\n $where = \"KD_TAGIHAN='\" . $kd_biaya . \"' AND KD_PB='\" . $kd_pb . \"'\";\r\n $sql = \"SELECT * FROM $table where $where\";\r\n $result = $this->db->select($sql);\r\n //var_dump($result);\r\n $penerima_biaya_kontrak = false;\r\n foreach ($result as $val) {\r\n $penerima_biaya_kontrak = new PenerimaBiayaKontrak();\r\n $penerima_biaya_kontrak->kd_penerima_biaya = $val[\"NO_T_TAGIHAN\"];\r\n $penerima_biaya_kontrak->kd_biaya = $val[\"KD_TAGIHAN\"];\r\n $penerima_biaya_kontrak->kd_penerima_beasiswa = $val[\"KD_PB\"];\r\n }\r\n //var_dump($data);\r\n return $penerima_biaya_kontrak;\r\n }", "title": "" }, { "docid": "d9e70f3e31e7fb397a93394607f706ae", "score": "0.4404569", "text": "function getListOfBanksFromCentralBank(){\r\n $sData = file_get_contents('https://ecuaguia.com/central-bank/api-get-list-of-banks.php?key=1111-2222-3333');\r\n echo $sData;\r\n}", "title": "" }, { "docid": "ca8396e86bd35acc28e5b441d3d9d71c", "score": "0.44024605", "text": "private function getNgsListBinParams(): NgsCmsParamsBin {\n NGS()->args()->ordering = NGS()->args()->ordering ? NGS()->args()->ordering : 'DESC';\n NGS()->args()->sorting = NGS()->args()->sorting ? NGS()->args()->sorting : 'id';\n $joinCondition = $this->getJoinCondition();\n $paramsBin = new NgsCmsParamsBin();\n $paramsBin->setSortBy(NGS()->args()->sorting);\n $paramsBin->setOrderBy(NGS()->args()->ordering);\n $paramsBin->setLimit($this->getLimit());\n $paramsBin->setOffset($this->getOffset());\n $paramsBin->setJoinCondition($joinCondition);\n $paramsBin = $this->modifyNgsListBinParams($paramsBin);\n return $paramsBin;\n }", "title": "" }, { "docid": "e19ac89646800d81e2ea074c1d960d20", "score": "0.43917736", "text": "function nvget($key) {\n\t\tif (!isset($key)) {\n\t\t\terror_log(\"nvget requires that key is passed to it\");\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn $this->xmlapi_query('nvget', array('key' => $key));\n\t}", "title": "" }, { "docid": "0041c8dcf2eaaf5c60350aad62e7b45d", "score": "0.43859962", "text": "function fetch_bus_info() {\n $url = \"http://ronxin.people.si.umich.edu/bus/api_server/query.php\";\n return file_get_contents($url);\n}", "title": "" }, { "docid": "ec71d4a4f725892c633b3da80f237a2c", "score": "0.43663037", "text": "public function getBic(IbanInterface $iban): string ;", "title": "" }, { "docid": "50f48cb919bfc66f4f6b035146ff90f6", "score": "0.43608934", "text": "public function fetch() {\n\t\t$resp = $this->client->streamNext($this->ctx);\n\t\tif ($resp === FALSE) {\n\t\t\treturn FALSE;\n\t\t}\n\t\tVTProto::checkError($resp->reply);\n\t\treturn VTQueryResult::fromBsonP3($resp->reply['Result']);\n\t}", "title": "" }, { "docid": "e012b0d05b0e31048de455eb2ad6a960", "score": "0.43567616", "text": "public static function getBloquesNulos(){\n $sql = 'SELECT *\n FROM bloque';\n $model = Bloque::findBySql($sql)->all();\n return $model;\n }", "title": "" }, { "docid": "75346f3ca91fac1d758f76cababfb665", "score": "0.43494567", "text": "public function getBeyersNaudeSubs($municipality_id){\n\t\t\ttry{\n\t\t\t\t$query = \"SELECT s.*, m.municipality_name, m.municipality_code, \n\t\t\t\t\t\t m.municipality_id FROM suburbs s\n\t\t\t\t\t\t LEFT JOIN municipalities m\n\t\t\t\t\t\t ON s.municipality_id = m.municipality_id\n\t\t\t\t\t\t WHERE m.municipality_id = '$municipality_id'\n\t\t\t\t\t\t AND m.municipality_id = '13'\";\n\t\t\t\t$result = $this->conn->query($query);\n\t\t\t\t$suburbs = array();\n\t\t\t\t\tforeach($result as $row){\n\t\t\t\t\t\t//create municipality object\n\t\t\t\t\t\t$municipality = new Municipality();\n\t\t\t\t\t\t$municipality->setMunicipalityID($row['municipality_id']);\n\t\t\t\t\t\t$municipality->setMunicipalityCode($row['municipality_code']);\n\t\t\t\t\t\t$municipality->setMunicipalityName($row['municipality_name']);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//create city object\n\t\t\t\t\t\t$suburb = new Suburb();\n\t\t\t\t\t\t$suburb->setSuburbID($row['suburb_id']);\n\t\t\t\t\t\t$suburb->setMunicipality($municipality);\n\t\t\t\t\t\t$suburb->setSuburbCode($row['suburb_code']);\n\t\t\t\t\t\t$suburb->setSuburbName($row['suburb_name']);\n\t\t\t\t\t\t$suburb->setTotalPropertyForSale($row['total_property_forsale']);\n\t\t\t\t\t\t$suburb->setTotalPropertyToRent($row['total_property_torent']);\n\t\t\t\t\t\t$suburb->setTotalPropertyOnShow($row['total_property_onshow']);\n\t\t\t\t\t\t\n\t\t\t\t\t\tarray_push($suburbs, $suburb);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\treturn $suburbs;\n\t\t\t\t\n\t\t\t}catch(PDOException $e){\n\t\t\t\techo $e->getMessage();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "f9b892f05d4b22e6ad38aecec213d4bc", "score": "0.4344429", "text": "function get_bev($result) {\n\t$bev_array = \"\";\n\t# Get each row of data and print it out.\n\twhile($row = $result->fetch_assoc()) {\n\t\t$bev_id = $row['ID'];\n\t\t$bev_name = $row['Name'];\n\t\t$bev_array = $bev_array . $bev_id . \": '\" . $bev_name . \"', \";\n\t}\n\t$bev_array = substr($bev_array, 0, -2);\n\treturn $bev_array;\n}", "title": "" }, { "docid": "d282cd086313f53e4d4f3a18bbad6ee5", "score": "0.43356207", "text": "public function getAccountsAsync(\n $bvn = SENTINEL_VALUE,\n\n\n string $contentType = self::contentTypes['getAccounts'][0]\n\n )\n {\n\n return $this->getAccountsAsyncWithHttpInfo($bvn, $contentType)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "title": "" }, { "docid": "9a42586b0e5c507c13ecd4cb5b2b853b", "score": "0.43339044", "text": "public function get_vrienden() {\n\t\t$query = $this->db->get( 'vrienden_van' );\n\n\t\treturn $query->row();\n\t}", "title": "" }, { "docid": "cb272a6d2b93bb760d8b2dda2fa9b070", "score": "0.4329311", "text": "public function ViewVoucherForBooking($bref)\n {\n $response = Http::withHeaders($this->RequestHeader)\n ->get($this->GnrHotelApiEndPoint . \"/api/v3/hotels/bookings/$bref/voucher\");\n\n return $response->json();\n }", "title": "" }, { "docid": "fb61de58f172d123daf47b8cd0fb5863", "score": "0.43167916", "text": "public function show($id)\n {\n $result = Branch::where('BraID',$id)->first();\n return $result;\n }", "title": "" }, { "docid": "d706e38bb69c76c9549721d810af4f05", "score": "0.4314341", "text": "public function show(bulanan $bulanan)\n {\n //\n }", "title": "" }, { "docid": "70e1ac30cdb7fb392f9d38eda9853940", "score": "0.43126056", "text": "public function getBcc(): array;", "title": "" }, { "docid": "52c389178fd6b2a15d44042834694b4e", "score": "0.43119264", "text": "public function getitemsbyvendid($vendid)\n {\n //\n \t// dd(Vendbank_hxold::getDateFormat());\n $vendbanks = Vendbank_hxold::where('vendinfo_id', $vendid)->paginate(10);\n return $vendbanks;\n }", "title": "" }, { "docid": "5ab3a062dea45cacf222df025ad096af", "score": "0.43060556", "text": "public function getByVpn($vpn);", "title": "" }, { "docid": "9bb9db749d7126614ef4fd730729ed05", "score": "0.4297785", "text": "public function getNtabankuluSubs($municipality_id){\n\t\t\ttry{\n\t\t\t\t$query = \"SELECT s.*, m.municipality_name, m.municipality_code, \n\t\t\t\t\t\t m.municipality_id FROM suburbs s\n\t\t\t\t\t\t LEFT JOIN municipalities m\n\t\t\t\t\t\t ON s.municipality_id = m.municipality_id\n\t\t\t\t\t\t WHERE m.municipality_id = '$municipality_id'\n\t\t\t\t\t\t AND m.municipality_id = '35'\";\n\t\t\t\t$result = $this->conn->query($query);\n\t\t\t\t$suburbs = array();\n\t\t\t\t\tforeach($result as $row){\n\t\t\t\t\t\t//create municipality object\n\t\t\t\t\t\t$municipality = new Municipality();\n\t\t\t\t\t\t$municipality->setMunicipalityID($row['municipality_id']);\n\t\t\t\t\t\t$municipality->setMunicipalityCode($row['municipality_code']);\n\t\t\t\t\t\t$municipality->setMunicipalityName($row['municipality_name']);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//create city object\n\t\t\t\t\t\t$suburb = new Suburb();\n\t\t\t\t\t\t$suburb->setSuburbID($row['suburb_id']);\n\t\t\t\t\t\t$suburb->setMunicipality($municipality);\n\t\t\t\t\t\t$suburb->setSuburbCode($row['suburb_code']);\n\t\t\t\t\t\t$suburb->setSuburbName($row['suburb_name']);\n\t\t\t\t\t\t$suburb->setTotalPropertyForSale($row['total_property_forsale']);\n\t\t\t\t\t\t$suburb->setTotalPropertyToRent($row['total_property_torent']);\n\t\t\t\t\t\t$suburb->setTotalPropertyOnShow($row['total_property_onshow']);\n\t\t\t\t\t\t\n\t\t\t\t\t\tarray_push($suburbs, $suburb);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\treturn $suburbs;\n\t\t\t\t\n\t\t\t}catch(PDOException $e){\n\t\t\t\techo $e->getMessage();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ec07dfe45051eb28e62d83c1709bd255", "score": "0.42828733", "text": "public function getBapteme($nId) {\n\t\t// \t\t$aRes = $oMapper->getInscriptionById($nId);\n\t\t$aRet[Form_Bapteme::ID] = $nId;\n\t\treturn $aRet;\n\t}", "title": "" }, { "docid": "258b0d877ceab8b9a7802cb6df77c2cd", "score": "0.4281658", "text": "function get_protein_detail_from_url_NCBI($proteinKey){ \n global $URLS;\n if(!$proteinKey) return 0;\n if(isset($URLS[\"NCBI_PROTEIN_GENPEPT\"])){\n $URL = $URLS[\"NCBI_PROTEIN_GENPEPT\"].$proteinKey;\n }else{\n $URL = \"http://www.ncbi.nlm.nih.gov/sviewer/viewer.fcgi?sendto=on&dopt=genpept&val=$proteinKey\";\n }\n //echo \"$URL\\n\";\n $response = open_url($URL);\n $rt = parse_ncbi_genpept_txt($response);\n \n echo \" \";\n flush();\n return $rt;\n}", "title": "" }, { "docid": "56f151fa38869d7f0262f4e617d3568b", "score": "0.42804906", "text": "public function hash_call($methodName, $nvpStr) {\n //p($nvpStr);\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $this->API_Endpoint);\n curl_setopt($ch, CURLOPT_VERBOSE, 1);\n\n //turning off the server and peer verification(TrustManager Concept).\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);\n\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_POST, 1);\n\n //if USE_PROXY constant set to TRUE in Constants.php, then only proxy will be enabled.\n //Set proxy name to PROXY_HOST and port number to PROXY_PORT in constants.php \n if ($USE_PROXY)\n curl_setopt($ch, CURLOPT_PROXY, $this->PROXY_HOST . \":\" . $this->PROXY_PORT);\n\n //NVPRequest for submitting to server\n $nvpreq = \"METHOD=\" . urlencode($methodName) . \"&VERSION=\" . $this->version . \"&PWD=\" . $this->API_Password . \"&USER=\" . $this->API_UserName . \"&SIGNATURE=\" . $this->API_Signature . $nvpStr . \"&BUTTONSOURCE=\" . urlencode($this->sBNCode);\n\n // var_dump($nvpreq);\n //setting the nvpreq as POST FIELD to curl\n curl_setopt($ch, CURLOPT_POSTFIELDS, $nvpreq);\n\n //getting response from server\n $response = curl_exec($ch);\n p($response);\n //convrting NVPResponse to an Associative Array\n $nvpResArray = deformatNVP($response);\n $nvpReqArray = deformatNVP($nvpreq);\n $_SESSION['nvpReqArray'] = $nvpReqArray;\n\n if (curl_errno($ch)) {\n // moving to display page to display curl errors\n $_SESSION['curl_error_no'] = curl_errno($ch);\n $_SESSION['curl_error_msg'] = curl_error($ch);\n\n //Execute the Error handling module to display errors. \n } else {\n //closing the curl\n curl_close($ch);\n }\n\n return $nvpResArray;\n }", "title": "" }, { "docid": "3bbb6bdea3f1d05c36e960a79f14a5d4", "score": "0.42764252", "text": "public function getBynm($person_nm){\n $res = $this->where('person_nm',$person_nm)\n ->findAll();\n return $res;\n }", "title": "" }, { "docid": "f03fa2dd10ba9ade08d01f81225aa6d5", "score": "0.4271981", "text": "function getReplacedItemsVIN( $s ){\n $url = 'http://b2b.ad.ua/api/catalog/replace?code=' . urlencode( $s );\t\t\n\t\t$data = $this->getWeb( $url );\n\t\t\t\t\t\t\t\t\t\t\t\n return $data; \t\t\n\t}", "title": "" }, { "docid": "c274d72fd2b8717e0cd090b9cf579501", "score": "0.42706692", "text": "function getGroupsVIN( $s ){\n\n $url = 'http://b2b.ad.ua/api/vin/typegroups?type=0&vin=' . $s;\t\t\n\t\t$data = $this->getWeb( $url );\n\t\t\t\t\t\t\t\t\t\n return $data;\n\n\t}", "title": "" }, { "docid": "a0e17328791ae2a24a0b968d9e466283", "score": "0.4267863", "text": "function catalog_get_nid_by_isbn($isbn) { \n $query = db_select('catalog','c');\n $query->condition('c.isbn13', $isbn, '=');\n $query->fields('c',array('isbn13'));\n //dpq($query);\n $nid_reds = $query->execute()->fetchField(); \n return $nid_reds;\n}", "title": "" }, { "docid": "4243a064c6bba182523ff4a7445024da", "score": "0.4260362", "text": "function get_vitrines_gest_nb($etat, $array) \n{\n\tglobal $conn;\n\t\n\t$bdd = $conn;\n\t\n\t$id_compte = (!empty($array['id_compte'])) ? (int) $array['id_compte'] : 0;\n\t$cat = (!empty($array['cat'])) ? (int) $array['cat'] : 0;\n\t$reg = (!empty($array['reg'])) ? (int) $array['reg'] : 0;\n\t\n\t$condition = \"\";\n\t$condition .= (!empty($id_compte)) ? \" WHERE b.id_compte = :id_compte\" : \" WHERE b.id_compte > 0\";\n\t$condition .= (!empty($cat)) ? \" AND c.id_cat = :cat\" : \"\";\n\t$condition .= (!empty($reg)) ? \" AND c.id_reg = :reg\" : \"\";\n\t\n\t$sql = \"SELECT COUNT(*) AS id_boutique \n\tFROM \". PREFIX .\"boutiques b\n\tLEFT JOIN \". PREFIX .\"comptes c ON b.id_compte = c.id_compte \". $condition .\"\";\n\t$req = $bdd->prepare($sql);\n\t\n\tif(!empty($id_compte))\n\t$req->bindValue('id_compte', $id_compte, PDO::PARAM_INT);\n\t\n\tif(!empty($cat))\n\t$req->bindValue('cat', $cat, PDO::PARAM_INT);\n\t\n\tif(!empty($reg))\n\t$req->bindValue('reg', $reg, PDO::PARAM_INT);\n\t\n\t$req->execute();\n\t\n\t$reponse = $req->fetch();\n\t\n\t$req->closeCursor();\n\n\t$result = $reponse['id_boutique'];\n\treturn $result;\t\n}", "title": "" }, { "docid": "00cfece482644849e120c76e6dcaa4ea", "score": "0.42563793", "text": "public function getBien()\n {\n return $this->bien;\n }", "title": "" }, { "docid": "b64ed3540b202220c7267eaddd7442b6", "score": "0.42540267", "text": "function getBbox ()\n{\n\t# Get the data from the query string\n\t$bboxString = (isSet ($_GET['bbox']) ? $_GET['bbox'] : NULL);\n\t\n\t# Check BBOX is Provided\n\tif (!$bboxString) {\n\t\techo 'No bbox was supplied.';\n\t}\n\t\n\t# Ensure four values\n\tif (substr_count ($bboxString, ',') != 3) {\n\t\techo 'An invalid bbox was supplied.';\n\t}\n\t\n\t# Assemble the parameters\n\t$bbox = array ();\n\tlist ($bbox['w'], $bbox['s'], $bbox['e'], $bbox['n']) = explode (',', $bboxString);\n\t\n\t# Ensure valid values\n\tforeach ($bbox as $key => $value) {\n\t\tif (!is_numeric ($value)) {\n\t\t\techo 'An invalid bbox was supplied.';\n\t\t}\n\t}\n\t\n\t# Return the collection\n\treturn $bbox;\n}", "title": "" }, { "docid": "348078c98e02a1aeffa2f1a7867b241b", "score": "0.4253687", "text": "public function getApi()\n {\n return Mage::getSingleton('Bradesco/api_nvp');\n }", "title": "" }, { "docid": "d668baa536a8898a7ade2db836051f6b", "score": "0.4252428", "text": "public function getNkonkobeSubs($municipality_id){\n\t\t\ttry{\n\t\t\t\t$query = \"SELECT s.*, m.municipality_name, m.municipality_code, \n\t\t\t\t\t\t m.municipality_id FROM suburbs s\n\t\t\t\t\t\t LEFT JOIN municipalities m\n\t\t\t\t\t\t ON s.municipality_id = m.municipality_id\n\t\t\t\t\t\t WHERE m.municipality_id = '$municipality_id'\n\t\t\t\t\t\t AND m.municipality_id = '31'\";\n\t\t\t\t$result = $this->conn->query($query);\n\t\t\t\t$suburbs = array();\n\t\t\t\t\tforeach($result as $row){\n\t\t\t\t\t\t//create municipality object\n\t\t\t\t\t\t$municipality = new Municipality();\n\t\t\t\t\t\t$municipality->setMunicipalityID($row['municipality_id']);\n\t\t\t\t\t\t$municipality->setMunicipalityCode($row['municipality_code']);\n\t\t\t\t\t\t$municipality->setMunicipalityName($row['municipality_name']);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//create city object\n\t\t\t\t\t\t$suburb = new Suburb();\n\t\t\t\t\t\t$suburb->setSuburbID($row['suburb_id']);\n\t\t\t\t\t\t$suburb->setMunicipality($municipality);\n\t\t\t\t\t\t$suburb->setSuburbCode($row['suburb_code']);\n\t\t\t\t\t\t$suburb->setSuburbName($row['suburb_name']);\n\t\t\t\t\t\t$suburb->setTotalPropertyForSale($row['total_property_forsale']);\n\t\t\t\t\t\t$suburb->setTotalPropertyToRent($row['total_property_torent']);\n\t\t\t\t\t\t$suburb->setTotalPropertyOnShow($row['total_property_onshow']);\n\t\t\t\t\t\t\n\t\t\t\t\t\tarray_push($suburbs, $suburb);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\treturn $suburbs;\n\t\t\t\t\n\t\t\t}catch(PDOException $e){\n\t\t\t\techo $e->getMessage();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "0ed6ccac5b254fdcf2a9bd9da2bf0f82", "score": "0.42514512", "text": "function getindexbpn5()\n {\n $sql = \"SELECT GROUP_CONCAT(`bunpou`) as `bunpou` FROM `bunpoudb` WHERE `level` = 'n5'\";\n return $this->db->query($sql);\n }", "title": "" }, { "docid": "3ac71778b171e382a2360584d81884e7", "score": "0.42476973", "text": "function getApplicationItemsVIN( $s ){\n $url = 'http://b2b.ad.ua/api/catalog/carapplication?code=' . urlencode( $s );\t\t\n\t\t$data = $this->getWeb( $url );\n\t\t\t\t\t\t\t\t\t\t\t\n return $data; \t\t\n\t}", "title": "" }, { "docid": "23872d3ebaace63fa365ed1287f6b227", "score": "0.42403933", "text": "public function show($cod_bco)\n {\n $bancos = Banco::where('cod_bco', '=', $cod_bco)->get();\n return view('bancos.v_bancos', compact('bancos'));\n\n }", "title": "" }, { "docid": "dad66de48470e4dd2a05e5bc2c644155", "score": "0.42399916", "text": "public function ListarBodegas() {\n try {\n $result = array();\n $stm = $this->pdo->prepare(\"SELECT * FROM V_BODEGA\");\n $stm->execute();\n\n return $stm->fetchAll(PDO::FETCH_OBJ);\n } catch (Exception $e) {\n die($e->getMessage());\n }\n }", "title": "" }, { "docid": "ed9e4fe689d5e0ae392add49d6b12d59", "score": "0.4239542", "text": "public function getBankList()\n {\n $client = $this->init();\n /* la version de laravel me oblica a parsear a object u otro tipo de dato, en este caso se pasa a json */\n\n $result = $client->getBankList(array('auth' => $this->getAuth())) ;\n\n if (isset($result->getBankListResult)) {\n return $result->getBankListResult->item ;\n } else {\n return false ;\n }\n }", "title": "" }, { "docid": "5db8f06752e120e28eed470d8d0c580e", "score": "0.42344537", "text": "public function getBaiViet()\n {\n return $this->hasOne(BaiViet::className(), ['id' => 'BaiViet_id']);\n }", "title": "" }, { "docid": "1daa386db5fad9df0f6bca1509c137db", "score": "0.423382", "text": "public function getVipBox ( $userCourant )\n {\n $sql = $this->createQueryBuilder ( 'b' )\n ->select('v.id')\n ->innerJoin ( 'b.vip' , 'v' )\n ->where ( \"b.membre = :userCourant\" )\n ->andWhere(\"b.enable = :enable\")\n ->andWhere(\"b.typebox LIKE 'user'\")\n ->setParameter ( 'userCourant' , $userCourant )\n ->setParameter ( 'enable' , 1 )\n ->orderBy ( 'b.datecreate' , 'desc' );\n return $sql->getQuery ()->getArrayResult ();\n }", "title": "" }, { "docid": "39e657758cb62e748ebf05d495d0c2bc", "score": "0.4232751", "text": "public function getContentIsbnOrgUnitId($version, $orgUnitId)\n {\n $uri = \"/d2l/api/le/$version/$orgUnitId/content/isbn/\";\n return new Request('GET', $uri);\n }", "title": "" }, { "docid": "019763b6cc213397ceb44873ddd66ac8", "score": "0.42211798", "text": "private function getBarang(){\n\t\t\tif($this->barang == null){\n\t\t\t\t$this->barang = Barang::find($this->idbarang);\n\t\t\t\tif($this->barang == null) return self::CONST_GET_OBJECT_INSIDE_CLASS_GAGAL;\n\t\t\t\telse return self::CONST_GET_OBJECT_INSIDE_CLASS_SUCCESS;\n\t\t\t}else return self::CONST_GET_OBJECT_INSIDE_CLASS_SUCCESS;\n\t\t}", "title": "" }, { "docid": "86713b755455afcb733859b22b603a0f", "score": "0.4218072", "text": "public function getBanks(){\n\n return $this->RequestGetter('/banks', []);\n \n }", "title": "" }, { "docid": "613f1f53c31f0999e38b603358172ea8", "score": "0.42093575", "text": "public function get($dossierNr, $subDossierNr = '0000')\n {\n return $this->clean($this->request('/api/kvk/' . $dossierNr . '/' . $subDossierNr));\n }", "title": "" }, { "docid": "491ec0662076cf95479786f33e9af54c", "score": "0.42087743", "text": "public static function getNombresVentas()\n {\n $objetoAccesoDato = AccesoDatos::dameUnObjetoAcceso(); \n $consulta =$objetoAccesoDato->RetornarConsulta(\"SELECT CONCAT(u.nombre, ' ',u.apellido) AS Usuario, p.nombre AS Producto FROM ventas v JOIN usuarios u ON id_usuario = u.id JOIN productos p ON id_producto = p.id\");\n $consulta->execute();\n return $consulta->fetchAll(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "62ffa289bac654672bc93c832fbeba1e", "score": "0.4202133", "text": "public function show(Barn $barn)\n {\n //\n }", "title": "" }, { "docid": "abd2f76c1854ab1e9996471cd4e83d22", "score": "0.42008764", "text": "function zoobank_fetch_pub($uuid, $lookup_works = true)\n{\n\t$data = null;\n\t\n\t$url = 'http://zoobank.org/References.json/' . $uuid;\n\t\n\t$json = get($url);\n\t\n\tif ($json != '')\n\t{\n\t\t$obj = json_decode($json);\n\t\tif ($obj)\n\t\t{\n\t\t\t$data = new stdclass;\n\t\t\t\n\t\t\t$data->{'message-format'} = 'application/vnd.zoobank+json'; // I made this up\n\t\t\t\n\t\t\t$data->{'message-timestamp'} = date(\"c\", time());\n\t\t\t$data->{'message-modified'} = $data->{'message-timestamp'};\n\t\t\t\n\t\t\t$data->message = $obj[0];\n\t\t\t\n\t\t\t/*\n\t\t\t// Look for DOI\n\t\t\tif ($lookup_works)\n\t\t\t{\n\t\t\t\t$citation = $data->message->label;\n\t\t\t\t\n\t\t\t\techo \"Looking up \\\"$citation\\\"... \";\n\t\t\t\t$result = crossref_search($citation);\n\t\t\t\tif (isset($result->doi))\n\t\t\t\t{\n\t\t\t\t\techo $result->doi;\n\t\t\t\t\t$data->message->doi = $result->doi;\n\t\t\t\t\t\n\t\t\t\t\t$data->links[] = 'http://dx.doi.org/' . $result->doi;\n\t\t\t\t}\n\t\t\t\techo \"\\n\";\n\t\t\t}\n\t\t\t*/\n\t\t\t\n\t\t}\n\t}\n\n\treturn $data;\n}", "title": "" }, { "docid": "81835384ec88cfb5deebf6bdcfdb01d2", "score": "0.4199991", "text": "private function apiCall( $methodName, $nvpStr )\n {\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $this->apiEndpoint);\n curl_setopt($ch, CURLOPT_VERBOSE, 1);\n\n //turning off the server and peer verification(TrustManager Concept).\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);\n\n curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);\n curl_setopt($ch, CURLOPT_POST, 1);\n\n //if USE_PROXY constant set to TRUE in Constants.php, then only proxy will be enabled.\n //Set proxy name to PROXY_HOST and port number to PROXY_PORT in constants.php\n if( $this->useProxy )\n curl_setopt ($ch, CURLOPT_PROXY, $this->proxyHost. \":\" . $this->proxyPort);\n\n //NVPRequest for submitting to server\n $nvpreq=\"METHOD=\" . urlencode( $methodName ) . \"&VERSION=\" . urlencode( $this->version ) .\n \"&PWD=\" . urlencode( $this->password ) . \"&USER=\" . urlencode( $this->user ) .\n \"&SIGNATURE=\" . urlencode( $this->signature ) . $nvpStr . \"&BUTTONSOURCE=\" . urlencode( $this->sBNCode );\n\n //setting the nvpreq as POST FIELD to curl\n curl_setopt($ch, CURLOPT_POSTFIELDS, $nvpreq);\n\n //getting response from server\n $response = curl_exec($ch);\n\n $result = $this->deformatNVP($response);\n\n return $result;\n }", "title": "" }, { "docid": "49789531d68524e8af1c81b081d7eba7", "score": "0.41869307", "text": "public function getContentIsbnOrgUnitIdIsbn($version, $orgUnitId, $isbn)\n {\n $uri = \"/d2l/api/le/$version/$orgUnitId/content/isbn/$isbn\";\n return new Request('GET', $uri);\n }", "title": "" }, { "docid": "e6f2db384ab958669025336e5a4f2515", "score": "0.4181535", "text": "public function getContentIsbnIsbn($version, $isbn)\n {\n $uri = \"/d2l/api/le/$version/content/isbn/$isbn\";\n return new Request('GET', $uri);\n }", "title": "" }, { "docid": "cbf0e42f4ab7035ca2b2db76ece5ecd4", "score": "0.41787437", "text": "public function getByVPN($vpn);", "title": "" }, { "docid": "681f4ecf2ebff9ca1e05c454df74d8cf", "score": "0.4173055", "text": "private function requestVersions()\n {\n $uri = \"{$this->baseUrl}/api/v1/@{$this->packageName}/versions\";\n $response = $this->client->request('get', $uri);\n if ($response->getStatusCode() !== 200) {\n throw new UnreachableRemoteRepositoryException(\"Accessing remote repository endpoint $uri returned status code {$response->getStatusCode()}, the 200 status code expected.\");\n }\n\n try {\n $json = json_decode($response->getBody()->getContents());\n return $json->data;\n } catch (\\Exception $e) {\n $body = $response->getBody()->getContents();\n throw new UnreachableRemoteRepositoryException(\"Cannot parse body '$body' returned by remote repository endpoint $uri.\");\n }\n }", "title": "" }, { "docid": "e59d2b67581ea530d431a4c3e6adc71c", "score": "0.417129", "text": "function check_available_balance($bank_id)\r\n {\r\n $this->load->model('Crud_model');\r\n \r\n //USED TO FETCH BANK TRANSACTION \r\n echo $data['available_balance'] = $this->Crud_model->check_available_balance($bank_id);\r\n }", "title": "" }, { "docid": "ae2ee6619244b27770f1caa6708e6778", "score": "0.41711882", "text": "public function getBanks(){\n\t\treturn $this->sendRequest('get', '/accounts/banks');\n\t}", "title": "" }, { "docid": "c99fbe6499fa709c6798c1477137e0a5", "score": "0.41691974", "text": "public function searchNoreg()\n\t\t{\n\t\t\t$criteria=new CDbCriteria;\n\t\t\t$criteria->addCondition('(invasetlain_noregister is not null or invtanah_noregister is not null or invperalatan_noregister is not null or invgedung_noregister is not null or\n\t\t\t\t\t\tinvjalan_noregister is not null)');\t\t\n\t\t\t$criteria->limit=10;\n\t\t\treturn new CActiveDataProvider('MABarangV', array(\n\t\t\t\t\t\t\t'criteria'=>$criteria,\n\t\t\t\t\t\t\t//'pagination'=>true,\n\t\t\t\t\t));\n\t\t\t}", "title": "" }, { "docid": "66e325166cf25af6ee04c10f10f189f4", "score": "0.4162676", "text": "public function isbns() {\n return $this->data->isbns;\n }", "title": "" }, { "docid": "4e098a26805241ca353497f2783a5973", "score": "0.4160932", "text": "public function getUDN();", "title": "" }, { "docid": "b408742178bfa5c7f1ba6346f510930a", "score": "0.41604796", "text": "function showVendorBillEnt($vbe_id)\n\t{\n\t\t//declare vars\n\t\t$data = array();\n\t\t//statement\n\t\t$select = \"SELECT * FROM vendor_bill_entry\n\t\t\t\t WHERE vbe_id\t= '$vbe_id'\";\n\t\t\t\t \n\t\t//execute query\n\t\t$query\t= mysql_query($select);\n\t\t//echo $select.mysql_error();exit;\n\t\t//holds the data\n\t\twhile($result = mysql_fetch_object($query))\n\t\t{\n\t\t\t$data = array(\n\t\t\t\t\t$result->vbe_id,\t\t//0\n\t\t\t\t\t$result->vid,\t\t\t//1\n\t\t\t\t\t$result->bill_no,\t\t//2\n\t\t\t\t\t$result->balance,\t\t//3\n\t\t\t\t\t$result->sgst_rate,\t\t//4\n\t\t\t\t\t$result->sgst,\t\t\t//5\n\t\t\t\t\t$result->cgst_rate,\t\t//6\n\t\t\t\t\t$result->cgst,\t\t\t//7\n\t\t\t\t\t$result->igst_rate,\t\t//8\n\t\t\t\t\t$result->igst,\t\t\t//9\n\t\t\t\t\t$result->net_balance,\t//10\n\t\t\t\t\t$result->notes,\t\t\t//11\n\t\t\t\t\t$result->added_by,\t\t//12\n\t\t\t\t\t$result->added_on,\t\t//13\n\t\t\t\t\t$result->modified_by,\t//14\n\t\t\t\t\t$result->modified_on,\t//15\n\t\t\t\t\t$result->billing_name,\t//16\n\t\t\t\t\t$result->tds_rate,\t\t//17\n\t\t\t\t\t$result->tds\t\t\t//18\n\t\t\t\t\t);\n\t\t}\n\t\t//return the data\n\t\treturn $data;\n\t\t\n\t}", "title": "" }, { "docid": "ff468eb002b40b67702a743ea403cf90", "score": "0.41580603", "text": "function getV($str)\n\t{\n\t\t$ret = $this->conne->query($str);\n\t\t$aRet = array();\n\t\t$i=1;\n\t\tif(!$ret)\n\t\t\treturn array(false, $str);\n\t\telseif ($ret->num_rows < 1) {\n\t\t\treturn array(false, \"not found\");\n\t\t}\n\t\telse\n\t\t\t{\n $aRet[0] = true;\n\t\t\twhile ($tempRet = $ret->fetch_assoc()) {\n\t\t\t\t$aRet[$i] = $tempRet;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\t//unset($aRet[sizeof($aRet) - 1]);\n\t\t\treturn $aRet;\n\t\t\t}\n\t}", "title": "" }, { "docid": "6be461c03183275ddc1b92ba15935c51", "score": "0.4156521", "text": "public function getBloubergSubs($municipality_id){\n\t\t\ttry{\n\t\t\t\t$query = \"SELECT s.*, m.municipality_name, m.municipality_code, \n\t\t\t\t\t\t m.municipality_id FROM suburbs s\n\t\t\t\t\t\t LEFT JOIN municipalities m\n\t\t\t\t\t\t ON s.municipality_id = m.municipality_id\n\t\t\t\t\t\t WHERE m.municipality_id = '$municipality_id'\n\t\t\t\t\t\t AND m.municipality_id = '121'\";\n\t\t\t\t$result = $this->conn->query($query);\n\t\t\t\t$suburbs = array();\n\t\t\t\t\tforeach($result as $row){\n\t\t\t\t\t\t//create municipality object\n\t\t\t\t\t\t$municipality = new Municipality();\n\t\t\t\t\t\t$municipality->setMunicipalityID($row['municipality_id']);\n\t\t\t\t\t\t$municipality->setMunicipalityCode($row['municipality_code']);\n\t\t\t\t\t\t$municipality->setMunicipalityName($row['municipality_name']);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//create city object\n\t\t\t\t\t\t$suburb = new Suburb();\n\t\t\t\t\t\t$suburb->setSuburbID($row['suburb_id']);\n\t\t\t\t\t\t$suburb->setMunicipality($municipality);\n\t\t\t\t\t\t$suburb->setSuburbCode($row['suburb_code']);\n\t\t\t\t\t\t$suburb->setSuburbName($row['suburb_name']);\n\t\t\t\t\t\t$suburb->setTotalPropertyForSale($row['total_property_forsale']);\n\t\t\t\t\t\t$suburb->setTotalPropertyToRent($row['total_property_torent']);\n\t\t\t\t\t\t$suburb->setTotalPropertyOnShow($row['total_property_onshow']);\n\t\t\t\t\t\t\n\t\t\t\t\t\tarray_push($suburbs, $suburb);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\treturn $suburbs;\n\t\t\t\t\n\t\t\t}catch(PDOException $e){\n\t\t\t\techo $e->getMessage();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "eaee7bd1db5816208a2efbea9ddabf0a", "score": "0.41483384", "text": "function gBooks($isbn){\n\n\tglobal $google_key;\n\n\t//Check for API Key\n\tif(empty($google_key)){\n\t\techo \"No Google API Key Provided\";\n\t}else{\n\t\t//continue with API Call\n\t\t$curl = curl_init();\n\n\t\tcurl_setopt_array($curl, array(\n \t\t\tCURLOPT_URL => \"https://www.googleapis.com/books/v1/volumes?q=isbn:\" . $isbn . \"&country=US&key=\" . $google_key,\n \t\t\tCURLOPT_RETURNTRANSFER => true,\n \t\t\tCURLOPT_ENCODING => \"\",\n \t\t\tCURLOPT_MAXREDIRS => 10,\n \t\t\tCURLOPT_TIMEOUT => 30,\n \t\t\tCURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n \t\t\tCURLOPT_CUSTOMREQUEST => \"GET\",\n \t\t\tCURLOPT_HTTPHEADER => array(\n \t\t\t\"Cache-Control: no-cache\",\n \t\t\t//\"Postman-Token: a57cc39e-c658-dfd5-3ff4-60595555d047\"\n \t\t),\n\t\t));\n\t\n\t\t$response = curl_exec($curl);\n\t\t$err = curl_error($curl);\n\t\n\t\tcurl_close($curl);\n\n\t\t//No more than 100 calls per 100 seconds\n\t\tsleep(1);\n\n\t\tif ($err) {\n \t\t\techo \"cURL Error #:\" . $err;\n\t\t} else {\n \t\t\treturn $response;\n\t\t}\n\t}//end if\n}", "title": "" }, { "docid": "37268c8cfa3dedd929a25b5938286398", "score": "0.41453478", "text": "public function binLabel($bin_id)\n {\n $bin = Bins::where('bin_id',$bin_id)->select('alias')->first();\n return $bin==NULL ? \"No Bins\" : $bin->alias;\n }", "title": "" }, { "docid": "e475b93c4f6533b62d23cacffe9b94fb", "score": "0.41431773", "text": "function getBsnlAccountInfo($question) {\n $response = Unirest\\Request::get(\"https://bsnlaccountinfo.p.mashape.com/index.php?mobileno=\".$question,\n array(\n \"X-Mashape-Key\" => \"anbjVsOIbamshYDqGH29cFF0ujqxp11S6nDjsni6ghNS0Qf2ii\",\n \"Accept\" => \"application/json\"\n )\n );\n $result = $response->body;\n // print_r($response);\n if(($result != NULL) && (isset($result->mobileNumber))) {\n $answer = '<table class=\"u-full-width\">\n <thead>\n <tr>\n <th>Mobile Number</th>\n <th>Current Balance</th>\n <th>Expiry Date</th>\n </tr>\n </thead>\n <tbody>';\n // foreach ($result as $key => $value) {\n // print_r($value); exit();\n $answer .= '\n <tr>\n <td>'.$result->mobileNumber.'</td>\n <td>'.$result->currentBalance.'</td>\n <td>'.$result->expiryDate.'</td>\n </tr>\n ';\n // }\n $answer .= ' </tbody>\n </table>';\n } else {\n return ' ';\n }\n //print_r($result);\n //exit();\n return $answer;\n}", "title": "" }, { "docid": "8b8bbb73c459a43ef341336c3ce4cd38", "score": "0.41409856", "text": "public function generateB($b, $v){\n $n = $this->base2dec($this->n_base64);\n $v = $this->base2dec($v);\n $b = $this->base2dec($b);\n $k = $this->base2dec($this->k);\n \n $B = $this->dec2base(bcadd(bcmul($k, $v), bcpowmod($this->g, $b, $n)));\n \n return $B;\n }", "title": "" }, { "docid": "3aca733d2914974e91656eccf9457177", "score": "0.41403908", "text": "public function compBrunetW($N, $V, $a = 0.172) {\n\t\treturn pow($N, pow($V, -$a));\n\t}", "title": "" }, { "docid": "3d4e16d288508c16a7572b22810063dc", "score": "0.41339648", "text": "function getVINSearch($data){\n\n\t\t$cv = $this->dataCache->getData( $data );\n\t\tif ( $cv ){\n\t\t\t$res = $cv;\n\t\t\t\n\t\t\treturn $res;\n\t\t}\t\t\n\t\n\t\t$searchData = $data['data'];\n\t\t// search vin only for ad partner\n\t\t$searchVINWeb = $this->siteAD->getSearchVIN($searchData);\n\t\t\n\t\t$res = $this->siteAD->parseSearchVIN($searchVINWeb);\n\t\t\n\t\t// set data to cache\n\t\t$this->dataCache->setData( $data, $res );\n\t\t\n\t\treturn $res;\n\t\t\n\t}", "title": "" } ]
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "890b1c0ce0aabb8f57c20642ded385e4", "score": "0.0", "text": "public function edit(Order $order)\n {\n //\n }", "title": "" } ]
[ { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.76944435", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.76944435", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "8f5529ba137277265d5572c380aac566", "score": "0.7691818", "text": "public function editAction()\n {\n $this->view->title .= ' - Edit Resource';\n\n $id = $this->_getParam('id');\n if (empty($id)) {\n throw new RuntimeException('Missing parameter id.');\n }\n\n $resourceResource = $this->_helper->modelResource('Resources');\n $resource = $resourceResource->find($id);\n if (!count($resource)) {\n throw new RuntimeException('Cannot found resource ' . $id);\n }\n $resource = $resource->getIterator()->current();\n\n $form = $this->_helper->form();\n $request = $this->getRequest();\n if ($request->isPost() && $form->isValid($request->getPost())) {\n $data = $form->getValues();\n unset($data['id']); //unset data for zf 1.6\n $resource->populate($data);\n if (!$resource->save()) {\n throw new RuntimeException('Save Resource failure!');\n }\n\n $this->_helper->flashMessenger(\"Save Resource \\\"{$resource->name}\\\" successful!\");\n $this->view->messages = $this->_helper->flashMessenger->getCurrentMessages();\n $this->_helper->flashMessenger->clearCurrentMessages();\n }\n $form->setDefaults($resource->toArray());\n $form->setDefault('id', $resource->id);\n $this->view->form = $form;\n }", "title": "" }, { "docid": "5069ab4d37ad8824f8739ff562d0d370", "score": "0.7443306", "text": "function editForm() {\n render(\"guest/update\");\n }", "title": "" }, { "docid": "6f88bb286afae4ce47ad9810da77dffb", "score": "0.72222894", "text": "public function editAction() {\r\n\t\t$id = $this->getInput('id');\r\n\t\t$info = Super_Service_Resource::get(intval($id));\r\n\t\t\r\n\t\t$this->assign('info', $info);\r\n\t}", "title": "" }, { "docid": "84fa42f4318791adb736d823ce255f40", "score": "0.71163946", "text": "public function edit() {\n \n $partner = $this->partner_model->get_by_id($this->input->get('id'));\n if (!is_null($partner)) {\n echo $this->load->view('partner/edit_form', array(\n 'id' =>$partner->id,\n 'name' => $partner->name\n ), TRUE);\n }\n else {\n echo show_404('The resource you requested was not found');\n } \n }", "title": "" }, { "docid": "7f75b87329616886dbf4cacf219053f8", "score": "0.7071171", "text": "public function editAction()\n {\n $this->formClass = EditForm::class;\n\n return parent::editAction();\n }", "title": "" }, { "docid": "da32ec30ea6b151bdb0d8c95b7fbef49", "score": "0.70638674", "text": "public function edit($id)\n\t{\n\t\t$resource = Resource::find($id);\n\n\t\tif (Auth::id() !== ($resource->user_id))\n\t\t{\n\t\t\treturn Redirect::back()->withFlashMessage('You cannot edit this resource');\n\t\t}\n\n\t\treturn View::make('resources.edit')->with('resource', $resource);\n\t}", "title": "" }, { "docid": "5a02684925f991ee39abcb153d80d058", "score": "0.700911", "text": "public function edit()\r\n {\r\n return view('hr::edit');\r\n }", "title": "" }, { "docid": "06b34b79c3a9b611ad6ef22ee71c20e7", "score": "0.69884276", "text": "public function edit()\n {\n return view('redistask::edit');\n }", "title": "" }, { "docid": "53fbc8894a41287014c5edbb650194bf", "score": "0.696799", "text": "public function editAction() {\r\n\t\t$id = $this->getInput('id');\r\n\t\t$info = Gou_Service_Resource::get(intval($id));\r\n\t\t\r\n\t\tlist(,$resource_imgs) = Gou_Service_ResourceImg::getList(0, 10, array('resource_id'=>intval($id)), array('id'=>'ASC'));\r\n\t\t$this->assign('resource_imgs', $resource_imgs);\r\n\t\t\r\n\t\t$this->assign('info', $info);\r\n\t}", "title": "" }, { "docid": "7e492dbc3c5834bd8dcf322b6e0bebf4", "score": "0.6945861", "text": "public function editAction() {\n $patientID = $this->getParam('id');\n\n $form = new Application_Form_Patient();\n $form->getElement('submit')->setLabel(\"Daten ändern\");\n\n $request = $this->getRequest();\n\n // Wenn das Formular abgesedet wurde, neue Daten Speichern\n // Wenn kein post Request vorliegt => Erster Seitenaufruf, Patient wird anhand der uebergebenen ID ins Formular eingetragen.\n\n if ($this->getRequest()->isPost()) {\n if ($form->isValid($request->getPost())) {\n $patient = new Application_Model_Patient_Patient($form->getValues());\n $mapper = new Application_Model_Patient_PatientMapper();\n $mapper->save($patient);\n return $this->_helper->redirector('list');\n }\n } else {\n $patient = new Application_Model_Patient_Patient();\n $mapper = new Application_Model_Patient_PatientMapper();\n $mapper->find($patientID, $patient);\n\n\n $form->populate($patient->getKeyValueArray());\n }\n\n $this->view->form = $form;\n }", "title": "" }, { "docid": "a5aafcf2a2bbeb05f135b2394c4525d2", "score": "0.69449764", "text": "public function action_edit() {\n\t\tif (empty($this->id)) {\n\t\t\tthrow new Kohana_Exception('No ID received for view');\n\t\t}\n\n\t\t$this->load_model('edit');\n\n\t\tif ( ! empty($_POST)) {\n\t\t\t$this->save_model();\n\t\t}\n\n\t\t$this->template->page_title = 'Edit - ' . $this->page_title_append;\n\t\t$view_title = $this->get_page_title_message('editing_item');\n\t\t$view_content = $this->model->get_form(array(\n\t\t\t'mode' => 'edit',\n\t\t));\n\t\t$this->add_default_view($view_title, $view_content);\n\t}", "title": "" }, { "docid": "5528e9d735a1d9a4a8c37629a76211ee", "score": "0.6944562", "text": "public function show_editform() {\n $this->item_form->display();\n }", "title": "" }, { "docid": "5984290a0d4758b0ead36edab74a7fcb", "score": "0.6938601", "text": "public function edit($id)\n {\n $title = $this->model->getTitle();\n $form_title = $this->name;\n $forms = $this->model->getFormList();\n $data = $this->model->find($id);\n return view('admin.layouts.edit')->with(compact('data','forms', 'title', 'form_title'));\n }", "title": "" }, { "docid": "439b2cee9a4232572f243ce40fe7ff37", "score": "0.6937768", "text": "public function edit($id)\n\t{\n\t\t$resource = Resource::find($id);\n\n\t\t// queries the schools db table, orders by type and lists type and id\n\t \t$school_options = DB::table('schools')->orderBy('type', 'asc')->lists('type','type');\n\t \t$year_options = DB::table('years')->lists('year','year');\n\t \t$unit_options = DB::table('units')->lists('unit','unit');\n\t \t$resourceTypes_options = DB::table('resource_types')->orderBy('type', 'asc')->lists('type','type');\n\n\t \t$options = [\n\n\t \t\t'school_options' => $school_options, \n\t \t\t'year_options' => $year_options, \n\t \t\t'unit_options' => $unit_options,\n\t \t\t'resourceType_options' => $resourceTypes_options\n\t \t];\n\n\t return View::make('resources.edit', array('options' => $options, 'resource' => $resource));\n\n\n\n\t}", "title": "" }, { "docid": "44db8e15fc1352a7c519823621a72cc9", "score": "0.6933916", "text": "public function edit()\n {\n return view('coreplanification::edit');\n }", "title": "" }, { "docid": "6f12de6367ed6b5e724959286c687d98", "score": "0.6925633", "text": "public function edit($id)\n\t{\n\t\t$model = SysDetailFormManager::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysDetailFormManagerForm', [\n \t'method' => 'POST',\n \t'url' => 'detailformmanager/update/'.$id,\n \t'model' => $model,\n \t]);\n\n\t\treturn View::make('dynaflow::detailformmanager.form', compact('form'));\n\t}", "title": "" }, { "docid": "32d0551d54bd22e3701bf40a8c1cbd2e", "score": "0.6905777", "text": "public function edit()\n {\n return view('partnermanagement::edit');\n }", "title": "" }, { "docid": "7b1b04ea22eb307dae4782d1893d684f", "score": "0.68793786", "text": "public function edit()\n {\n return view('app::edit');\n }", "title": "" }, { "docid": "be7762755fcfeef213c7106eb19a722a", "score": "0.68696725", "text": "public function edit()\n {\n return view('frontend::edit');\n }", "title": "" }, { "docid": "bd55c6cca624fddd49faf3e7f8d44ebc", "score": "0.68678737", "text": "public function editAction()\n {\n// \treturn array('form'=>$form);\n }", "title": "" }, { "docid": "311e3f6fa3d20c187430d7b70defb091", "score": "0.6865216", "text": "public function editAction()\n {\n $this->loadLayout();\n $this->renderLayout();\n }", "title": "" }, { "docid": "a093d663f095c2eff827fd56ba3f1c5c", "score": "0.683672", "text": "public function edit()\n {\n return view('taskmanagement::edit');\n }", "title": "" }, { "docid": "96e7a1a8798dd32cbc9d0fff02092958", "score": "0.68356115", "text": "public function edit($id)\n\t{\n\t\t$this->resources = array('driver' => $this->resource\n \t\t\t\t\t\t);\n\t\treturn $this->respondTo(\n\t\t\tarray('html'=> function()\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t $this->layout->nest('content', $this->view, $this->resources);\n\t\t\t\t \t\t\t},\n\t\t\t\t 'js' => function()\n\t\t\t\t \t\t {\n\t\t\t\t \t\t \t $form = View::make($this->form, $this->resources)->render();\n\t\t\t\t \t\t \t return View::make('admin.shared.modal', array('body' => $form))->render();\n\t\t\t\t \t\t }\n\t\t\t\t )\n\t\t\t);\n\t}", "title": "" }, { "docid": "a66e6ee3bd0d4fa614c8f657ecc1c30e", "score": "0.68056434", "text": "public function edit(Form $form)\n {\n //\n }", "title": "" }, { "docid": "9c40deb595ac4a285fa76f490ad8b576", "score": "0.6799441", "text": "public function fieldEditAction() {\n\n parent::fieldEditAction();\n\n //GENERATE FORM\n $form = $this->view->form;\n\n if ($form) {\n $form->setTitle('Edit Form Question');\n $form->removeElement('search');\n $form->removeElement('display');\n $form->removeElement('show');\n $form->addElement('hidden', 'show', array('value' => 0));\n $form->removeElement('error');\n $form->removeElement('style');\n }\n }", "title": "" }, { "docid": "e3fad094d4252fd72e2502d403dfc367", "score": "0.6797067", "text": "public function edit()\n {\n return view('product::edit');\n }", "title": "" }, { "docid": "38b95b158cfbd7d6008eb1313d74dead", "score": "0.6792415", "text": "public function editProduct()\n {\n $this->configureFormRenderer('required');\n\n $this->productForm->addProductId();\n $this->productForm->populateFrom($product = $this->catalog->productOf($id = 1));\n\n echo $this->view->render('examples/edit-information.html.twig', [\n 'form' => $this->productForm->buildView(),\n ]);\n }", "title": "" }, { "docid": "1f3e62c409733532dc3f0f85568bdbb0", "score": "0.67620337", "text": "public function edit($id)\n\t{\n\t\treturn view($this->plural.'.edit', [$this->singular => $this->model->findOrFail($id)]);\n\t}", "title": "" }, { "docid": "2e451cbecb2a4edf2e18ea359a84b198", "score": "0.6759955", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('OffresBundle:Offres')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Offres entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('OffresBundle:Offres:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "1ad8f42c84160b8c6ce6296389de89c9", "score": "0.67583734", "text": "function edit( $resource ){\n\n $brands = allWithoutTrash('product_brands' );\n\n\n $stocks = get('inventory', $resource);\n\n $product = get( 'products', $resource );\n\n return view( 'admin/product/add_product', compact( 'product', 'brands', 'stocks' ));\n}", "title": "" }, { "docid": "c687e229c70d5b2bb3174acd2887d935", "score": "0.6756813", "text": "public function edit($id)\n {\n //Open form in edit mode.\n $product = Product::findOrFail($id);\n return view('admin.Products.edit')->with('product', $product);\n }", "title": "" }, { "docid": "173e18a8d00009c51c3e2b096afa35c6", "score": "0.67506623", "text": "public function edit()\n {\n $rmk = Specialization::find($id);\n return view('specialization.edit', compact('rmk'));\n }", "title": "" }, { "docid": "de59ebe43d3ccd460af8c204a2ce504f", "score": "0.6750046", "text": "public function editAction()\n {\n# $page = $this->_helper->db->findById();\n# $this->view->form = $this->_getForm($page);\n# $this->_processPageForm($page, 'edit');\n }", "title": "" }, { "docid": "aae9d312c6fa709ae12d3c879ef9a3f2", "score": "0.67499477", "text": "public function edit(Form $form)\n {\n $form = Form::find($form->id);\n $data = array(\n 'form' => $form,\n 'types' => $this->getType()\n );\n return view('./form/form', $data);\n }", "title": "" }, { "docid": "7b5265e5c66828f2674f182bfb554b6b", "score": "0.67475176", "text": "public function edit()\n {\n return view('feaccount::edit');\n }", "title": "" }, { "docid": "bcf716390400a7068b7e1c48017f7c0f", "score": "0.6747439", "text": "function edit()\n\t{\n\t\t$id = $this->ci->uri->segment($this->config['uri_segment']+1);\n\t\treturn $this->_form($id);\n\t}", "title": "" }, { "docid": "7e53728fc096714ffa60b9478bd64083", "score": "0.6744403", "text": "function edit()\n {\n JRequest::setVar('view', 'team');\n JRequest::setVar('layout', 'form');\n JRequest::setVar('hidemainmenu', 1);\n\n parent::display();\n }", "title": "" }, { "docid": "668b7d8579ddada4536a4181f3e08041", "score": "0.67385757", "text": "public function edit()\n {\n return view('rekanan::edit');\n }", "title": "" }, { "docid": "7cb2b004357f9ffd5cddc45388789b2a", "score": "0.6737452", "text": "public function edit($id)\n {\n $this->data['obj'] = FormObject::find($id);\n $this->data['title'] = \"Edit \" . $this->data['obj']->name . \" Property\";\n $this->data['url'] = 'system/form-objects/' . $id;\n $this->data['method'] = 'put';\n $this->data['sites'] = Site::whereActive(1)->get()->all();\n\n $this->data['hotels'] = Hotel::all();\n\n return view('system.forms.form-object', $this->data);\n }", "title": "" }, { "docid": "a57bcfb849abf842f54ab142f87778dc", "score": "0.67366284", "text": "public function edit($id)\n {\n $resource = Resource::findOrFail($id);\n return view('admin.portal.edit', compact('resource'));\n }", "title": "" }, { "docid": "ff86c2f46684f81c5fd959adb2807f9e", "score": "0.6726716", "text": "public function edit($id)\n {\n $product = $this->products->findById($id);\n return View::make('products._form', compact('product'));\n }", "title": "" }, { "docid": "e144891e4fdc3366376e396b701fbf99", "score": "0.6712368", "text": "public function edit()\n\t{\n\t\t$jInput = JFactory::getApplication()->input;\n\t\t$jInput->set('view', 'item');\n\t\t$jInput->set('layout', 'default');\n\t\t$jInput->set('hidemainmenu', 1);\n\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "c53a972e2af2970da7bb04372311a3a5", "score": "0.67015153", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('AppBundle:Programas')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Programas entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('AppBundle:Programas:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "aae7f4b0c772355bb99330a14ba29014", "score": "0.669828", "text": "public function edit($id)\n\t{\n return View::make('matrimonials.edit');\n\t}", "title": "" }, { "docid": "883502561745369884d7fc695ef1624e", "score": "0.6692647", "text": "public function edit($id)\n\t{\n return View::make('requirements.edit');\n\t}", "title": "" }, { "docid": "439487f339021f8335c9eeaa79db8fa8", "score": "0.6692411", "text": "public function edit(FormBuilder $formBuilder, $id)\n {\n $data['title'] = $this->title;\n $tbl = $this->table->find($id);\n $data['form'] = $formBuilder->create('App\\Forms\\TypeBookForm', [\n 'method' => 'PUT',\n 'model' => $tbl,\n 'url' => route($this->uri.'.update', $id)\n ]);\n\n $data['url'] = route($this->uri.'.index');\n return view($this->folder.'.create', $data);\n }", "title": "" }, { "docid": "2e96703e3ded22777d115212adcbfa8e", "score": "0.66792446", "text": "public function edit($id)\n {\n return view('manage::edit');\n }", "title": "" }, { "docid": "1507a482b7f295d6473bdf19d6d3da89", "score": "0.66791993", "text": "function edit( $resource ){\n\n $receivables = get( 'receivables', $resource );\n\n return view( 'admin/receivables/add_receivables', compact( 'receivables' ) );\n\n}", "title": "" }, { "docid": "f2990bfbaee0f3cc29d99eb0cccdfc5d", "score": "0.66753644", "text": "public function edit(Entity $entity)\n {\n $this->authorize('update', $entity);\n\n return view('entities.edit', [\n 'entity' => $entity,\n ]);\n }", "title": "" }, { "docid": "b182548861e62c722e9b46c8496db241", "score": "0.6674328", "text": "public function edit($id)\n {\n $this->setOperation('update');\n if ($this->tienePermiso('update')) {\n\n // get entry ID from Request (makes sure its the last ID for nested resources)\n $id = $this->getCurrentEntryId() ?? $id;\n $entry = $this->getEntry($id);\n\n $this->data = array();\n // get the info for that entry\n $this->data['title'] = $this->getTitle() ?? trans('cesi::core.crud.edit') . ' ' . $this->entity_name;\n $this->data['heading'] = $this->getHeading() ?? $this->entity_name_plural;\n $this->data['subheading'] = $this->getSubheading() ?? trans('cesi::core.crud.edit').' '.$this->entity_name;\n $this->data['entry'] = $entry;\n $this->data['contentClass'] = $this->getEditContentClass();\n $this->data['routerAlias'] = $this->getRouterAlias();\n $this->data['resourceAlias'] = $this->getResourceAlias();\n $this->data['hasUploadFields'] = $this->hasUploadFields('update', $entry->getKey());\n\n // TODO ?? $this->data['saveAction'] = $this->getSaveAction();\n // $this->data['fields'] = $this->getCrud()->getUpdateFields($id);\n\n $this->data['id'] = $id;\n\n // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package\n return view($this->getEditView(), $this->filterEditViewData($this->data));\n } else {\n return view('cesi::errors.401');\n }\n }", "title": "" }, { "docid": "23695efbb416dcbac50f5655f76220eb", "score": "0.6671797", "text": "public function edit()\n {\n return view('mpcs::edit');\n }", "title": "" }, { "docid": "9eabaca39cbbc769fdc4d4613662986d", "score": "0.66714936", "text": "public function edit($id)\n {\n $form = Form::find( $id );\n return view('editar', [\n 'item' => $form,\n ]);\n }", "title": "" }, { "docid": "98a687ec9cd21bb18a66914c17a84262", "score": "0.66696584", "text": "function viewedit() {\n $id = Request::read('email');\n $error = Request::read('r'); \n \n if($error == -1){\n $error = 'No se ha editado';\n }\n \n $usuario = $this->getModel()->getUsuario($id);\n $email = $usuario->getEmail();\n \n \n $this->getModel()->addData('email', $email);\n $this->getModel()->addData('error', $error);\n \n $this->getModel()->addFile('form', 'sections/user/formEdit.html');\n }", "title": "" }, { "docid": "8aecb685b024e89667372cb88e6534b5", "score": "0.6667708", "text": "public function edit()\n {\n $product = $this->model('IndexModel')->get($this->getParam()['id']);\n\n $this->template('edit', $product);\n }", "title": "" }, { "docid": "47e15a6904083b2dac82790c56050341", "score": "0.66658723", "text": "public function showEditJobForm($id){\n \t$jobData = Job::find($id);\n \treturn view('employer.employer_edit_job', compact('jobData'));\n }", "title": "" }, { "docid": "897c904da29480933d49a2afe6a447fa", "score": "0.66651845", "text": "public function edit()\n {\n return view('core::edit');\n }", "title": "" }, { "docid": "55bfb83b470d662ff8fb0f9f1f658c98", "score": "0.66535664", "text": "public function edit($id)\n\t{\n\t\t$form = \\View::make('project.form');\n\t\t$form->project = Project::find($id);\n\t\t$form->action = array('action' => array('Toomdrix\\Pm\\ProjectController@update', $form->project->id),'class'=>'form-signup');\n\t\treturn $form;\n\t}", "title": "" }, { "docid": "f7bd52c4216f50ae40e29aa9291a3153", "score": "0.66484654", "text": "public function edit($id) {}", "title": "" }, { "docid": "028c8bc8d418c3bcb062ed6c39f57a64", "score": "0.66441834", "text": "public function edit($id)\n {\n $asociado = Asociado::getPersonaAsociadoSingle($id);\n $asociado->persona;\n $title = 'Editad asociado: '.$asociado->persona->primer_nombre;\n $form_data = ['route' => ['asociado.update',$asociado->id],'method' => 'PUT'];\n $cliente_id_field = '';\n $cliente_id = $asociado->cliente_id;\n\n return view('asociado.form')->with(compact('asociado','title','form_data','cliente_id_field','cliente_id'));\n }", "title": "" }, { "docid": "45821cecfbb5732cd269059f6aad418f", "score": "0.6641441", "text": "function edit()\n\t{\n\t\tJRequest::setVar( 'view', 'editlieux' );\n\t\tJRequest::setVar( 'layout', 'edit_form' );\n\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "e4c3c0cbb7ac2570554ac1a25beb95aa", "score": "0.66392165", "text": "public function edit()\n {\n return view('berita::edit');\n }", "title": "" }, { "docid": "55c0c1d3fd64720346563285fe8ebb07", "score": "0.6629693", "text": "public function edit($id)\n {\n return view('employee.edit_form',['employee' => User::findOrFail($id)]);\n }", "title": "" }, { "docid": "ab2518ea287ee8d0a67051d27dc511a8", "score": "0.66296786", "text": "public function edit($id)\n\t{\n $form_data = ['route' => [self::$prefixRoute . 'update', $this->membership->id], 'method' => 'PUT'];\n\n return view(self::$prefixView . 'form', compact('form_data'))\n \t->with(['membership' => $this->membership]);\n\t}", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.6628306", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "c2183a818e413caf29da395ac5aa45fe", "score": "0.6626632", "text": "public function edit($id)\n\t{\n\t\t$datos['empresa'] = Empresa::find($id);\n\t\t$datos['form'] = array('route'=> array('datos.empresas.update', $id), 'method' => 'PATCH');\n\t\t\n\t\treturn View::make('datos/empresas/list-edit-form')->with('datos', $datos);\n\t}", "title": "" }, { "docid": "4ba8a0764293ed6e4bdc9a47879f5cdb", "score": "0.6625718", "text": "public function edit($id)\n {\n $item = Provider::find($id);\n return View('provider.form', [\"item\" => $item, 'type' => 'edit']);\n }", "title": "" }, { "docid": "5004b89ebea0b269b185830cb2f7e2f7", "score": "0.66225976", "text": "public function edit($id)\n {\n $this->view->guest = $this->model->edit($id);\n $this->view->render($this->_path . '/edit');\n \n }", "title": "" }, { "docid": "1a4ead4c141c44cd189d59dd857cc05f", "score": "0.6621734", "text": "public function edit($field)\n {\n $field = Fields::find($field);\n return view('admin.fields.form',[\n 'active' => 'Fields',\n 'action' => 'Edit',\n 'field' => $field,\n ]);\n }", "title": "" }, { "docid": "4085123883432653825ea3d6eca4c3ba", "score": "0.6620004", "text": "public function edit(Form $form, Event $event)\n {\n return view('form.edit', compact('event', 'form'));\n }", "title": "" }, { "docid": "8310a47ca16507655295572f382e4e29", "score": "0.6617899", "text": "public function edit($id)\n {\n // first : retrieve flower info and show the form to update flower\n }", "title": "" }, { "docid": "8c2bb4ce9efff69262207822b4887159", "score": "0.66127706", "text": "public function edit($id)\n {\n $template = (object) $this->template;\n $form = $this->form();\n $data = Penduduk::findOrFail($id);\n return view('admin.master.edit',compact('template','form','data'));\n }", "title": "" }, { "docid": "9a57ebf3330d38ff3b1cfbadfc9fc69b", "score": "0.66110444", "text": "function edit() {\n\t\t\n\t\tif ($_POST) {\n\t\t\t$this->entity->update($_POST);\n\t\t\t$this->_relative_redirect('view');\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "12e1c226dd6ae426a8e7bea555851773", "score": "0.6608514", "text": "public function edit($id)\n {\n \t$manufacturer = Manufacturer::findOrFail($id);\n return view('backend.module.manufacturer.edit',['manufacturer' => $manufacturer]);\n }", "title": "" }, { "docid": "c6087fca66897a650dc6e75718832e74", "score": "0.6603048", "text": "public function edit($id)\n\t{\n $form_data = ['route' => [self::$prefixRoute . 'update', $this->generic_medication->id], 'method' => 'PUT'];\n \n return view(self::$prefixView . 'formm', compact('form_data'))\n \t->with(['generic_medication' => $this->generic_medication]);\n\t}", "title": "" }, { "docid": "a12dc077ea7b8efef6338c64b0b115cb", "score": "0.66017646", "text": "public function edit($id)\n {\n // get the nerd\n $product = Product::find($id);\n\n // show the edit form and pass the nerd\n return View::make('products.edit')\n ->with('product', $product);\n }", "title": "" }, { "docid": "2b5fb043a3c87778cf2cebbc780df3b7", "score": "0.6599195", "text": "public function edit()\n\t{\n\t\tparent::edit();\n\t}", "title": "" }, { "docid": "2a47ad7ce79b806f24d1a15c7fc9c440", "score": "0.65982515", "text": "public function edit($id)\n {\n return view('frontend::edit');\n }", "title": "" }, { "docid": "203016e427fa0c848cb2dfcb175f5f26", "score": "0.6592268", "text": "public function edit($id)\n\t{\n\t\t//\n\t\treturn \"Se muestra formulario para editar Fabricante con id: $id\";\n\t}", "title": "" }, { "docid": "6d657e63dc93b082619d2f7dcb0b720c", "score": "0.6590654", "text": "public function edit($id)\n {\n //mostrar formulario d edicion\n }", "title": "" }, { "docid": "7b2f75aaedf8589b46dde92aafda12f3", "score": "0.65886664", "text": "public function editAction()\n\t{\n\t\t$accountId = $this->_getParam('id');\n\t\t$accountTable = new AccountTable();\n\t\tif ($accountId) $account = $accountTable->find($accountId);\n\t\telse {\n\t\t\t/* Redirect to some error page */\n\t\t}\n\t\t\n\t\t/* Setup view data */\n\t\t$view = $this->getView();\n\t\t\n\t\t$view->title = \"Edit Account\";\n\t\t$view->account = $account;\n\t\t$view->error = NULL;\n\t\t\n\t\t/* And render it */\t\t\n\t\t$this->render('account/AccountEditView.php');\n\t}", "title": "" }, { "docid": "7f6e393f74ad5b78eb86af1fb59ad0f7", "score": "0.6587048", "text": "public function edit($id)\n {\n $data = User::findOrFail($id);\n $template = (object)$this->template;\n $form = $this->form();\n return view('admin.master.edit',compact('template','form','data'));\n }", "title": "" }, { "docid": "2ca5925eff8fd2c9f2e5fb536e2717b3", "score": "0.6584564", "text": "function edit()\n\t{\n\t\tJRequest::setVar( 'edit', true );\n\t\t$model\t=& $this->getModel( 'Item' );\n\t\t$model->checkout();\n\n\t\t$view =& $this->getView( 'Item' );\n\t\t$view->setModel( $model, true );\n\t\t// Set the layout and display\n\t\t$view->setLayout('form');\n\t\t$view->edit();\n\t}", "title": "" }, { "docid": "df89a714812746e77528c831bc256a8a", "score": "0.6575157", "text": "public function edit($id)\n {\n $this->user->offers()->findOrFail($id);\n\n return view('admin.offer.edit_form', [\n 'route_base_url' => 'offer',\n 'model_name' => '\\App\\Models\\Offer',\n 'model_id' => $id,\n ]);\n }", "title": "" }, { "docid": "568ce94a39ba9f1d0b81cd0579729a5f", "score": "0.6572646", "text": "public function edit()\n {\n $view = $this->getView('election', 'html');\n $view->setModel($this->getModel('election'), true);\n //JRequest::setVar('hidemainmenu', 1);\n\n $view->display();\n }", "title": "" }, { "docid": "87f80527ccf944a69125ffa41418e52d", "score": "0.6570292", "text": "public function edit()\n {\n return view('inventory::edit');\n }", "title": "" }, { "docid": "87f80527ccf944a69125ffa41418e52d", "score": "0.6570292", "text": "public function edit()\n {\n return view('inventory::edit');\n }", "title": "" }, { "docid": "ce4fc37201a9083467febf6f580c94ee", "score": "0.65689", "text": "public function edit($id) {\n $urinalysis = Urinalysis::ConsolidatedId($id)->first();\n $urinalysisRef = UrinalysisRef::all();\n return view('pages.urinalysis.form', [\"urinalysis\" => $urinalysis, 'urinalysisRef' => $urinalysisRef, 'mode' => 'EDIT']);\n }", "title": "" }, { "docid": "df0197e5108b918276674eb05562c1d7", "score": "0.65673035", "text": "public function editAction()\n {\n $page = Pages::findFirst(\n [\n 'conditions' => 'id = :id:',\n 'bind' => ['id' => (int) $this->dispatcher->getParam('id')],\n ]\n );\n if ($page === false) {\n return $this->dispatcher->forward(['action' => 'error404']);\n }\n $this->assets\n ->collection('ace')\n ->addJs('scripts/ace/ace.js');\n $page->content = htmlentities($page->content);\n $this->view->page = $page;\n $this->view->title = $page->title.' – Edit ';\n $editable = new \\stdClass();\n $editable->content = $page->content;\n $editable->id = $page->id;\n $this->view->form = new \\Kolibri\\Forms\\Edit($editable);\n }", "title": "" }, { "docid": "d49dc9860beddbcef1bd1992ac80ce76", "score": "0.65625536", "text": "public function action_edit()\r\n\t{\r\n\t\t$item_id = $this->request->param('params');\r\n\r\n\t\t$element = ORM::Factory($this->_resource, $item_id);\r\n\r\n\t\t$form = Formo::form()->orm('load', $element);\r\n\t\t$form->add('update', 'submit', 'Save');\r\n\r\n\t\tif($form->load($_POST)->validate())\r\n\t\t{\r\n\t\t\tif($this->_update_passed($form, $element))\r\n\t\t\t{\r\n\t\t\t\t$element->save();\r\n\t\t\t\t$form->orm('save_rel', $element);\r\n\r\n\t\t\t\t$this->request->redirect(Route::get($this->_route_name)->uri( array('controller' => $this->controller)));\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->_update_error($form, $element);\r\n\t\t}\r\n\r\n\t\t$view = $this->template->content;\r\n\t\t$view->set(\"formo\", $form);\r\n\t}", "title": "" }, { "docid": "59702db081c964bfd257f5f4ed31ec07", "score": "0.656109", "text": "public function edit($id){\n $entry = Entry::find($id);\n $this->authorize('update', $entry); //Access Controll using policies\n return view('entries.edit',compact('entry'));\n }", "title": "" }, { "docid": "469fc3592be913e351b579a5c9fe18dc", "score": "0.656047", "text": "public function edit()\n {\n $organization = OwnerOrganization::find(0);\n return view('modules.system.OwnerOrganization.form', compact('organization'));\n }", "title": "" }, { "docid": "3cee07ed8f37cad18680bc48310b6842", "score": "0.6559755", "text": "public function edit()\n {\n return view('tenderpurchaserequest::edit');\n }", "title": "" }, { "docid": "531deb797a3602e8ea456bf473e6c600", "score": "0.6545144", "text": "public function edit($id)\n\t{\n\t\t$record = Record::find($id);\n\n\t\treturn View::make('records.edit', compact('record'));\n\t}", "title": "" }, { "docid": "0b8bea11641b000a8cc94135b0aa739a", "score": "0.6544209", "text": "public function edit($id)\n {\n return view('slo::edit');\n }", "title": "" }, { "docid": "0108853fa0d0f8ddd5e30d5bd2f3f67d", "score": "0.65441805", "text": "public function edit($id)\n\t{\n // Get the student\n $student = Student::find($id);\n\n // show the edit form and pass the nerd\n return View::make('students.edit')->with('student', $student);\n\t}", "title": "" }, { "docid": "5c6c8de62974cc03322207e7d02b68d7", "score": "0.65438485", "text": "public function edit($id) {\r\n\t\t$data ['aluno'] = Aluno::findOrFail ( $id );\r\n\t\t$data ['page_title'] = 'Editar aluno';\r\n\t\treturn view ( 'paginas.cadastro.aluno.create-edit' )->with ( $data );\r\n\t}", "title": "" }, { "docid": "3d60dba5b14a240b364d0e8824386a7e", "score": "0.6543634", "text": "public function edit($id)\n {\n $electric = $this->electricService->findById($id);\n return view('electric.update' ,compact('electric'));\n }", "title": "" }, { "docid": "4530461421ee8156467d6dfae72cde9c", "score": "0.65411556", "text": "public function edit($id)\n {\n static::setInstanceModel($model = $this->model()->findOrFail($id));\n $this->renderForm($model);\n $this->renderButton($model);\n return view(static::$baseView.'.edit');\n }", "title": "" }, { "docid": "4ef61011e5ab93c95373e16dd92a5940", "score": "0.6539981", "text": "public function edit()\n {\n return view('usersite::edit');\n }", "title": "" } ]
305ba5f0879e221f2aaafdb6bc025917
Saves report data array
[ { "docid": "db2c12e2338cb6f3500bc2cd3e4077f6", "score": "0.0", "text": "protected function saveReportDataList($data, $depth=0) {\n $insert = db_insert('amcr_report_data_list');\n $insert->fields(array('report_id'));\n $insert->values(array('report_id' => 0));\n $list_id = $insert->execute();\n\n $insert = db_insert('amcr_report_data');\n $insert->fields(array('url', 'year', 'month', 'day', 'hour', 'counts_id',\n 'breakdown_id', 'name', 'list_id', 'element_id'));\n\n foreach($data as $index => $item) {\n\n $counts_id = !empty($item['counts']) ? $this->saveCountList($item['counts']) : null;\n $breakdown_id = !empty($item['breakdown']) ? $this->saveReportDataList($item['breakdown'], $depth+1) : null;\n $insert_data = array(\n 'name' => isset($item['name']) ? $item['name'] : null,\n 'url' => isset($item['url']) ? $item['url'] : null,\n 'year' => isset($item['year']) ? $item['year'] : null,\n 'month' => isset($item['month']) ? $item['month'] : null,\n 'day' => isset($item['day']) ? $item['day'] : null,\n 'hour' => isset($item['hour']) ? $item['hour'] : null,\n 'element_id' => isset($this->report_element_ids[$depth]) ? $this->report_element_ids[$depth] : null,\n 'list_id' => !empty($list_id) ? $list_id : null,\n 'counts_id' => !empty($counts_id) ? $counts_id : null,\n 'breakdown_id' => !empty($breakdown_id) ? $breakdown_id : null,\n );\n $insert->values($insert_data);\n }\n\n $insert->execute();\n\n return $list_id;\n }", "title": "" } ]
[ { "docid": "c813f1df94bb8e5b6e066f6494dd0cc0", "score": "0.7236953", "text": "public function save()\n {\n array_to_file($this->data, $this->file_name);\n }", "title": "" }, { "docid": "ec499a8fbe64534325986e458f5f39d2", "score": "0.66574085", "text": "protected function saveReport($report) {\n $metrics_id = $this->saveMetricList($report['metrics']);\n $elements_id = $this->saveElementList($report['elements']);\n $totals_id = $this->saveCountList($report['totals']);\n $data_id = $this->saveReportDataList($report['data']);\n if (!isset($this->config->id)) {\n $this->config->save();\n }\n $insert_data = array(\n 'report_suite' => isset($report['reportSuite']['id']) ? $report['reportSuite']['id'] : NULL,\n 'period' => isset($report['period']) ? $report['period'] : NULL,\n 'elements_id' => $elements_id,\n 'metrics_id' => $metrics_id,\n 'type' => isset($report['type']) ? $report['type'] : NULL,\n 'data_id' => $data_id,\n 'totals_id' => $totals_id,\n 'rd_id' => $this->config->id,\n );\n\n $insert = db_insert('amcr_report');\n $insert->fields(array('report_suite', 'period', 'elements_id', 'metrics_id',\n 'type', 'data_id', 'totals_id', 'rd_id'));\n $insert->values($insert_data);\n $report_id = $insert->execute();\n\n db_update('amcr_report_element_list')\n ->condition('id', $elements_id)\n ->fields(array('report_id' => $report_id))\n ->execute();\n db_update('amcr_report_metric_list')\n ->condition('id', $metrics_id)\n ->fields(array('report_id' => $report_id))\n ->execute();\n db_update('amcr_report_count_list')\n ->condition('id', $totals_id)\n ->fields(array('report_id' => $report_id))\n ->execute();\n\n return $report_id;\n }", "title": "" }, { "docid": "db4336e0f5494f3759d20144adf576ef", "score": "0.6628832", "text": "public function save() {\n $report_id = $this->saveReport($this->data['report']);\n $insert_data = array(\n 'status' => isset($this->data['status']) ? $this->data['status'] : null,\n 'status_msg' => isset($this->data['statusMsg']) ? $this->data['statusMsg'] : null,\n 'run_seconds' => isset($this->data['runSeconds']) ? $this->data['runSeconds'] : null,\n 'wait_seconds' => isset($this->data['waitSeconds']) ? $this->data['waitSeconds'] : null,\n 'status_desc' => isset($this->data['statusDesc']) ? $this->data['statusDesc'] : null,\n 'report_id' => $report_id,\n );\n\n $insert = db_insert('amcr_report_response');\n $insert->fields(array('status', 'status_msg', 'run_seconds', 'wait_seconds', 'status_desc', 'report_id'));\n $insert->values($insert_data );\n $insert->execute();\n }", "title": "" }, { "docid": "eb6dde1202c62af0fc7db55f59b0364a", "score": "0.65422606", "text": "public function save( array $data );", "title": "" }, { "docid": "26c9129e0654466924f33338dd0664a4", "score": "0.6534848", "text": "public function save(array $data);", "title": "" }, { "docid": "26c9129e0654466924f33338dd0664a4", "score": "0.6534848", "text": "public function save(array $data);", "title": "" }, { "docid": "f7b94d443b975e4034c240389c6a4dcd", "score": "0.651572", "text": "private function save(array $data) {\n\t\t$this->_d = $data;\n\t}", "title": "" }, { "docid": "54703a1a3c7ab33a27073b948f248df8", "score": "0.6496832", "text": "private function saveSurveySubmission(array $data)\n {\n $_SESSION['survey_results'][] = $data;\n }", "title": "" }, { "docid": "532ca9284e346edbfe51e6f85725d9dc", "score": "0.63860446", "text": "function saveReportType(){\n\t\t$db = PearDatabase::getInstance();\n\t\t$data = $this->get('reporttypedata');\n\t\tif(!empty($data)){\n\t\t\t$db->pquery('DELETE FROM vtiger_reporttype WHERE reportid = ?', array($this->getId()));\n\t\t\t$db->pquery(\"INSERT INTO vtiger_reporttype(reportid, data) VALUES (?,?)\",\n\t\t\tarray($this->getId(), $data));\n\t\t}\n\t}", "title": "" }, { "docid": "17725c61e4b84458686e3c7d726c4a52", "score": "0.63455546", "text": "public function Save() {\n logData('entering the save function');\n $this->TaskDataSource = json_encode($this->TaskDataSource);\n file_put_contents('Task_Data.txt', $this->TaskDataSource); // writing to the file.\n }", "title": "" }, { "docid": "84537eb783f9d309e2b2e8fc3c7b2aa4", "score": "0.6328264", "text": "function saveData(){\n\t}", "title": "" }, { "docid": "80120029eeaa91fbdc116047f18e4f0c", "score": "0.6326001", "text": "public function save($dataArray)\n {\n\t\tforeach($dataArray as $row){\n\t\t\t$this->saveRow($row);\n\t\t}\t\n }", "title": "" }, { "docid": "570fd935f2a9925e7018a245485de8a0", "score": "0.62577295", "text": "function save_data(Array $data)\n{\n return file_put_contents(FILE_MANAGEMENT, json_encode($data));\n}", "title": "" }, { "docid": "d611381720808658ed2f81be59ab85c8", "score": "0.625733", "text": "public function store()\n\t{\n Report::create(array(\n \"name\" => Input::get(\"name\"),\n \"value\" => json_encode(Input::all()),\n ));\n\t}", "title": "" }, { "docid": "f52e95cd83eaf183540c0e38f1b2f6f1", "score": "0.6243733", "text": "private function saveData() {\n\t\t\n\t\t$this->persistence->store($this->manager);\n\t\t\n\t}", "title": "" }, { "docid": "cada5e0af1157fc0dfca2cc2cd23270a", "score": "0.6236795", "text": "public function writeRecords(array $data);", "title": "" }, { "docid": "fc45a66c64fcc42951d8b818df8d175b", "score": "0.6232436", "text": "public function save(array $data): void;", "title": "" }, { "docid": "58ae3fb3f79a708093a2d7ac8f1b8d27", "score": "0.619979", "text": "public function save() {\n\t\tfile_put_contents($this->filepath, json_encode($this->data, JSON_PRETTY_PRINT));\n\t}", "title": "" }, { "docid": "8385f05d366dc063c64f9ce7e053dc73", "score": "0.61852324", "text": "public function SaveCartData() {\n\tthrow new exception('What calls this?');\n\t$arMap = $this->MapArray();\n\t$rsData = $this->ValueRecords();\n\n\tforeach ($arMap as $sSfx => $sFld) {\n\t $nIdx = $rsData->IndexFromName($sFld);\t// get the index for this field\n\t $sVal = $this->Value_forName($sFld);\t// get the memory value for it\n\t $rsData->FieldValue_forIndex_nz($nIdx,$sVal);\t// save it to the cart (method writes to disk)\n\t}\n }", "title": "" }, { "docid": "b87ed5c2317d287c2a46594aa94b5f19", "score": "0.6169271", "text": "public function saveResults() {\n\t\t$assn = $this->schedule->getAssigned();\n\t\t$json = json_encode($assn);\n\t\tfile_put_contents('../public/' . JSON_ASSIGNMENTS_FILE, $json);\n\t}", "title": "" }, { "docid": "3927d3884c6b3014a7e30b52a69584ee", "score": "0.61513186", "text": "public function _save_data()\n\t{\n\t\t//pull the data from the event\n\t\t$incident = Event::$data;\n\t\t\n\t\t\n\t\t$data = $incident->as_array();\n\t\t$data['location'] = $incident->location->as_array();\n\t\t$data['incident_person'] = $incident->incident_person->as_array();\n\t\t\n\t\t$data['category'] = array();\n\t\tforeach ($incident->category as $category)\n\t\t{\n\t\t\t$data['category'][] = $category->as_array();\n\t\t}\n\t\t\n\t\t$data['form_response'] = array();\n\t\tforeach ($incident->form_response as $response)\n\t\t{\n\t\t\t$data['form_response'][] = $response->as_array();\n\t\t}\n\t\t\n\t\t$data['media'] = array();\n\t\tforeach ($incident->media as $media)\n\t\t{\n\t\t\t$data['media'][] = $media->as_array();\n\t\t}\n\t\t\n\t\t$revision = ORM::factory('revision_incident');\n\t\t$revision->incident_id = $incident->id;\n\t\t$revision->data = serialize($data);\n\t\tif (Auth::instance()->get_user() instanceof User_Model)\n\t\t{\n\t\t\t$revision->user_id = Auth::instance()->get_user()->id;\n\t\t}\n\t\t\n\t\t// Get previous revision\n\t\t$prev_revision = ORM::factory('revision_incident')->where('incident_id',$incident->id)->orderby('time','DESC')->find();\n\t\t\n\t\t// Save the diff from previous version\n\t\tif ($prev_revision->loaded)\n\t\t{\n\t\t\t$revision->changed_data = serialize($revision->diff($prev_revision));\n\t\t}\n\t\t\n\t\t$revision->save();\n\t}", "title": "" }, { "docid": "df0dedf4fa1ecca5a5b1bc7999d79362", "score": "0.61381984", "text": "public function saveData()\n {\n $scheduledTweets = [];\n\n // Process and convert to array the tweets\n foreach($this->scheduledTweets as $tweet) {\n $scheduledTweets[] = $tweet->toArray();\n }\n\n $this->data->scheduledTweets = $scheduledTweets;\n $this->service->saveAccessTokens();\n }", "title": "" }, { "docid": "34cf0c908cfc32bfb6224de9dd967a61", "score": "0.6109027", "text": "function saveData($filename) {\n\t $started = time() - $this->timer->split();\n\t $store = array(\"started\" => $started, \"plog\" => $this->plog);\n\t file_put_contents($filename, serialize($store));\n\t}", "title": "" }, { "docid": "d9104762987bca9b6fce9e56d0e674bc", "score": "0.60936004", "text": "protected function saveToDb()\n\t{\n\t\t$this->updateProgress(\"Saving Batch record to the database\",10);\n\t\tif ($this->sreport_type == NULL || $this->sreport_data_type == NULL)\n\t\t\tthrow new Exception('You need to have sreport_type and sreport_data_type defined by a child class');\n\n\t\t$sreport = ECash::getFactory()->getModel('Sreport');\t\t\n\n\t\tif ($this->sreport_id != NULL)\n\t\t\t$sreport->loadBy(array('sreport_id' => $this->sreport_id));\n\t\telse\n\t\t\t$sreport->date_created = date('Y-m-d H:i:s');\n\n\t\t$sreport->company_id = ECash::getCompany()->company_id;\n\t\t$sreport->sreport_start_date = date('Y-m-d H:i:s');\n\t\t$sreport->sreport_end_date = date('Y-m-d H:i:s');\n\n\t\t$sreport_ss = ECash::getFactory()->getModel('SreportSendStatus');\n\t\t$sreport_s = ECash::getFactory()->getModel('SreportStatus');\n\t\n\t\t// Created or current?\n\t\t$sreport->sreport_status_id = $sreport_s->getStatusId('current');\n\t\t$sreport->sreport_send_status_id = $sreport_ss->getStatusId('unsent');\n\t\n\t\t$srt = ECash::getFactory()->getModel('SreportType')->getTypeId($this->sreport_type);\n\t\t$sdt = ECash::getFactory()->getModel('SreportDataType')->getTypeId($this->sreport_data_type);\n\n\t\t$sreport->sreport_date = date('Y-m-d');\n\n\t\t$sreport->sreport_type_id = $srt;\n\n\t\t$sreport_data = ECash::getFactory()->getModel('SreportData');\n\t\n\t\tif ($this->sreport_data_id != NULL)\n\t\t\t$sreport_data->loadBy(array('sreport_data_id' => $this->sreport_data_id));\n\t\telse\n\t\t\t$sreport_data->date_created = date('Y-m-d H:i:s');\n\t\n\t\t$sreport_data->filename = $this->filename;\n\t\t$sreport_data->filename_extension = (isset($this->filename_extension)) ? $this->filename_extension : $this->format;\n\t\t$sreport_data->sreport_data = $this->output();\n\t\t$sreport_data->sreport_data_iv\t = md5($this->output());\n\t\t\n\t\t// Make sure the type for this report exists\n\t\t$type = ECash::getFactory()->getModel('SreportType');\n\t\t\n\t\t$sreport_data->sreport_data_type_id = $sdt;\n\n\t\t$sreport->save();\n\t\t$this->sreport_id = $sreport->sreport_id;\n\t\t\n\t\t$sreport_data->sreport_id = $sreport->sreport_id;\n\t\t$sreport_data->save();\t\t\n\t\t$this->sreport_data_ids[] = $sreport_data->sreport_data_id;\n\t\t$this->updateProgress(\"Saved Batch as report ID {$sreport->sreport_id}\",5);\n\t\treturn $sreport->sreport_id;\n\t}", "title": "" }, { "docid": "624b99b9c963403dd4c08e0f0df2e202", "score": "0.60597664", "text": "public function saveReportValues($isFirst, $reportArray, $company_id, $mainYear, $accId = \"\")\n {\n\n $query = AccountsData::where('company_id', $company_id)\n ->where('deleted', 0)\n ->where('year', $mainYear);\n\n if($accId != \"\"){\n $allId = explode(',', $accId);\n\n if(count($allId) > 0)\n $query->whereIn('qbo_id', $allId);\n }\n \n $monthArr = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',\n 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec');\n\n foreach ($reportArray as $key => $value) { \n\n if(isset($value['date_month'])) {\n foreach ($value['date_month'] as $Dkey => $Dvalue) {\n\n /*$accountSave = AccountsData::create([\n 'company_id' => $company_id,\n 'qbo_id' => $value['id'],\n 'year' => $value['year'],\n 'report_type' => $value['report_type'],\n 'values' => $Dvalue,\n 'date' => date('Y-m-d',strtotime($Dkey)),\n 'deleted' => 0,\n ]);*/\n\n $AccData = AccountsData::firstOrNew(array('company_id' => $company_id, 'qbo_id' => $value['id'], 'report_type' => $value['report_type'], 'date' => date('Y-m-d',strtotime($Dkey))));\n $AccData->deleted = 0;\n $AccData->deleted_at = null;\n $AccData->year = $value['year'];\n $AccData->values = $Dvalue;\n $AccData->save(); \n }\n }\n //echo \"DateMonth<pre>\";print_r($AccData);exit();\n }\n }", "title": "" }, { "docid": "1093af5429d46e64d22df7cfce27c0d8", "score": "0.60544455", "text": "public function save(array $data)\n {\n $format = strtolower($data['format']);\n $body = $data['data'];\n $name = $data['name'];\n $this->fileWriter->writeData($body, $format, $name);\n }", "title": "" }, { "docid": "cacbea581ad545c8c30dbe58d46ae6eb", "score": "0.6032074", "text": "public function save()\n\t{\n\t\t$input = $this->getDataArray();\n\t\treturn $this->modify( $input, FALSE );\n\t}", "title": "" }, { "docid": "8dcaf27dcfecb450076c51e34559bfdf", "score": "0.6006534", "text": "public function storeScoreReport($scoreReport );", "title": "" }, { "docid": "bc4dc757aaffb68def61213eae50caad", "score": "0.60025704", "text": "function saveData()\n\t{\n\t\t// Im Falle eines Kampfes wird das ganze Objekt\n\t\t// serialisiert in die Datenbank geschrieben (s. world_pokemon_fight)\n\t}", "title": "" }, { "docid": "75aee85b5c9638a1f95f2daa3ec25e5a", "score": "0.59956473", "text": "public function writeRecord(array $data);", "title": "" }, { "docid": "9c2d2b81f6c2c3e960101af8e71c6530", "score": "0.59643644", "text": "function saveReport($id, $suffix, $report_name) {\n\t\tglobal $conf;\n\t\t//$id = $_GET['saved_report'];\n\t\t//$suffix = $_GET['suffix'];\n\t\t//$report_name = $_SESSION['reports'][$id]['report_name'];\n\t\t$path = $conf['Dir']['FullPath'].\"saved/table\";\n\t\t$dest_dir = $path.\"/\".$id;\n\t\n\t\tif (!is_dir($path)) {\n\t\t\tmkdir($path);\n\t\t}\n\t\t\n\t\tif (!is_dir($dest_dir)) {\n\t\t\tmkdir($dest_dir);\n\t\t}\n\t\t\n\t\tcopy($conf['Dir']['FullPath'].\"tmp/\".$report_name.$suffix.\".xls\", $dest_dir.\"/\".$report_name.$suffix.\".xls\");\n\t\tcopy($conf['Dir']['FullPath'].\"tmp/\".$report_name.$suffix.\".pdf\", $dest_dir.\"/\".$report_name.$suffix.\".pdf\");\n\t\t\n\t\t$this->auditLog(\"table\", \"Saved Report Output; filename(s) like: \".$report_name.\" - \".date(\"Y-m-d\"), $report_name, $id);\n\n\t\t//echo \"Saved report output at \".$dest_dir.\"/\".$report_name.$suffix.\".xls\\n\";\n\t\t\n\t\t//TODO: Test for success here, and notify user by returning false if we failed to save!\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3cdaaaa3d2cd6a1a0a54bb507e6f2a62", "score": "0.59635746", "text": "public function bulkSave(array $data);", "title": "" }, { "docid": "f4c3ac3c97f7c1aa9df0129a8a989918", "score": "0.5951286", "text": "public function save()\n\t{\n\t\tif(LocalConfiguration::get('performance.cache.enable'))\n\t\t{\n\t\t\t$file = File::create($this->getFilePath());\n\t\t\t$cacheContent = \"<?php\\nreturn \";\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$cacheContent .= var_export($this->data, true);\n\t\t\t}\n\t\t\tcatch(Exception $error)\n\t\t\t{\n\t\t\t\tReport::sendError(new Error($error->getMessage(), $error->getCode()));\n\t\t\t}\n\n\t\t\t$cacheContent .= \";\\n?>\";\n\t\t\t$file->write($cacheContent);\n\t\t\t$file->close();\n\t\t}\n\t}", "title": "" }, { "docid": "3db0a07b615290c33b031d5ce7fb0493", "score": "0.59459347", "text": "public function saveData()\n {\n $data = $this->getData();\n $data['time'] = time();\n \n $file = $this->getAbsoluteTempUploadPath() . '/' . self::DATA_FILE;\n return (file_put_contents($file, json_encode($data)) !== FALSE);\n }", "title": "" }, { "docid": "8a221602b6bff8b5fe5d432959cdcbe5", "score": "0.59444916", "text": "function saveReport($id, $suffix, $report_name) {\n\t\tglobal $conf;\n\t\t//$id = $_GET['saved_report'];\n\t\t//$suffix = $_GET['suffix'];\n\t\t//$report_name = $_SESSION['reports'][$id]['report_name'];\n\t\t$path = $conf['Dir']['FullPath'].\"saved/list\";\n\t\t$dest_dir = $path.\"/\".$id;\n\t\t\n\t\tif (!is_dir($path)) {\n\t\t\tmkdir ($path);\n\t\t}\n\t\t\n\t\tif (!is_dir($dest_dir)) {\n\t\t\tmkdir($dest_dir);\n\t\t}\n\t\t\n\t\tcopy($conf['Dir']['FullPath'].\"tmp/\".$report_name.$suffix.\".xls\", $dest_dir.\"/\".$report_name.$suffix.\".xls\");\n\t\tcopy($conf['Dir']['FullPath'].\"tmp/\".$report_name.$suffix.\".pdf\", $dest_dir.\"/\".$report_name.$suffix.\".pdf\");\n\t\t\n\t\t$this->auditLog(\"listing\", \"Saved Report Output; filename(s) like: \".$report_name.\" - \".date(\"Y-m-d\"), $report_name, $id);\n\t\t\n\t\t//echo \"Saved report output at \". $dest_dir.\"/\".$report_name.$suffix.\".xls\\n\";\n\t\t\t\n\t\t//TODO: Test for success here, and notify user by returning false if we failed to save!\n\t\treturn true;\n\t}", "title": "" }, { "docid": "5dc81da8ff46f70aeb9f64e26ac440c5", "score": "0.59376407", "text": "public function getSaveData();", "title": "" }, { "docid": "d607b5217809daccfa7dec297fa365f4", "score": "0.59329265", "text": "function save()\n\t{\n\t\twhile (count($this->_data) > $this->_maxsize) {\n\t\t\tarray_shift($this->_data);\n\t\t}\n\n\t\treturn @file_put_contents($this->_file, implode(\"\\n\", $this->_data));\n\t}", "title": "" }, { "docid": "e90a2d43349250a44a3ad99c517af9dd", "score": "0.5926083", "text": "public function save()\n {\n $data = $this->getData();\n\n $this->_save($data);\n }", "title": "" }, { "docid": "b4d4145bd896c95aaf84e64fe150eb8e", "score": "0.5922769", "text": "public function store()\n {\n $report_id = $_POST['reportid'];\n $report = Report::find($report_id);\n \n $typology = new Typology;\n $typology->report_id = $report->id;\n $success_save = $typology->save();\n\n if($success_save === true)\n {\n $report->step = 2;\n $report->save();\n\n $questionlist = Question::Typology()->lists('id');\n\n foreach ($questionlist as $questionid) \n {\n $typology->questions()->attach($questionid, array('answers' => $_POST['answersid'][$questionid]));\n }\n }\n\n Session::put('flash_message', 'Typology successfully created!');\n return redirect()->action('ReportOverviewController@index', [$report_id]);\n }", "title": "" }, { "docid": "65ed71d6e2e865bfc22f4d4a36c383fa", "score": "0.5890525", "text": "function save() {\n\t\t$db = PearDatabase::getInstance();\n\t\t$currentUser = Users_Record_Model::getCurrentUserModel();\n\n\t\t$reportId = $this->getId();\n\n\t\t//When members variable is not empty, it means record shared with other users, so\n\t\t//sharing type of a report should be private\n\t\t$sharingType = 'Public';\n\t\t$members = $this->get('members',array());\n\t\tif(!empty($members)){\n\t\t\t$sharingType = 'Private';\n\t\t}\n\n\t\tif(empty($reportId)) {\n\t\t\t$reportId = $db->getUniqueID(\"vtiger_selectquery\");\n\t\t\t$this->setId($reportId);\n\n\t\t\t$db->pquery('INSERT INTO vtiger_selectquery(queryid, startindex, numofobjects) VALUES(?,?,?)',\n\t\t\t\t\tarray($reportId, 0, 0));\n\n\t\t\t$reportParams = array($reportId, $this->get('folderid'), $this->get('reportname'), $this->get('description'),\n\t\t\t\t\t$this->get('reporttype', 'tabular'), $reportId, 'CUSTOM', $currentUser->id, $sharingType);\n\t\t\t$db->pquery('INSERT INTO vtiger_report(reportid, folderid, reportname, description,\n\t\t\t\t\t\t\t\treporttype, queryid, state, owner, sharingtype) VALUES(?,?,?,?,?,?,?,?,?)', $reportParams);\n\n\n\t\t\t$secondaryModule = $this->getSecondaryModules();\n\t\t\t$db->pquery('INSERT INTO vtiger_reportmodules(reportmodulesid, primarymodule, secondarymodules) VALUES(?,?,?)',\n\t\t\t\t\tarray($reportId, $this->getPrimaryModule(), $secondaryModule));\n\n\t\t\t$this->saveSelectedFields();\n\n\t\t\t$this->saveSortFields();\n\n\t\t\t$this->saveCalculationFields();\n\n\t\t\t$this->saveStandardFilter();\n\n\t\t\t$this->saveAdvancedFilters();\n\n\t\t\t$this->saveReportType();\n\n\t\t\t$this->saveSharingInformation();\n\t\t} else {\n\n\t\t\t$reportId = $this->getId();\n\t\t\t$db->pquery('DELETE FROM vtiger_selectcolumn WHERE queryid = ?', array($reportId));\n\t\t\t$this->saveSelectedFields();\n\n\t\t\t$db->pquery(\"DELETE FROM vtiger_reportsharing WHERE reportid = ?\", array($reportId));\n\t\t\t$this->saveSharingInformation();\n\n\n\t\t\t$db->pquery('UPDATE vtiger_reportmodules SET primarymodule = ?,secondarymodules = ? WHERE reportmodulesid = ?',\n\t\t\t\t\tarray($this->getPrimaryModule(), $this->getSecondaryModules(), $reportId));\n\n\t\t\t$db->pquery('UPDATE vtiger_report SET reportname = ?, description = ?, reporttype = ?, folderid = ?,sharingtype = ? WHERE\n\t\t\t\treportid = ?', array(decode_html($this->get('reportname')), decode_html($this->get('description')),\n\t\t\t\t\t$this->get('reporttype'), $this->get('folderid'),$sharingType, $reportId));\n\n\n\t\t\t$db->pquery('DELETE FROM vtiger_reportsortcol WHERE reportid = ?', array($reportId));\n\t\t\t$db->pquery('DELETE FROM vtiger_reportgroupbycolumn WHERE reportid = ?',array($reportId));\n\t\t\t$this->saveSortFields();\n\n\t\t\t$db->pquery('DELETE FROM vtiger_reportsummary WHERE reportsummaryid = ?', array($reportId));\n\t\t\t$this->saveCalculationFields();\n\n\t\t\t$db->pquery('DELETE FROM vtiger_reportdatefilter WHERE datefilterid = ?', array($reportId));\n\t\t\t$this->saveStandardFilter();\n\n\t\t\t$this->saveReportType();\n\n\t\t\t$this->saveAdvancedFilters();\n\t\t}\n\t}", "title": "" }, { "docid": "4587770b21fa37068724fbb81bfb4d11", "score": "0.58904386", "text": "function writeData($data)\n {\n for($i=0;$i<count($data);$i++)\n $this->writeArray($data[$i]);\n }", "title": "" }, { "docid": "4defaa8df3652c262d00a31a79b61db0", "score": "0.5865415", "text": "public function saveData()\n {\n if ($this->model instanceof Archive)\n self::setArchiveHeatData($this->data);\n elseif ($this->model instanceof Manga)\n self::setMangaHeatData($this->data);\n\n $this->data = $this->data();\n }", "title": "" }, { "docid": "54460220a52a99946650a9d3e13c11ad", "score": "0.5853035", "text": "public function save($fileName, $data);", "title": "" }, { "docid": "21162d551904edf18074f22682707915", "score": "0.5849864", "text": "public function save(array $data) {\n if (isset($data) && count($data) === $this->recordSize) { // Verify that the expected number of indices are in our data array.\n try {\n // Overwrite a unique file with the latest data, e.g. 12345.txt and append to a file shared between all locations.\n $output = implode(\"|\", $data) . PHP_EOL;\n file_put_contents(\"data/{$data['zip']}.txt\", $output);\n file_put_contents(\"data/weatherlog.txt\", $output, FILE_APPEND | LOCK_EX);\n return true;\n }\n catch (Exception $e) {\n echo \"We were unable to save the data to file.\\n\";\n }\n }\n else {\n echo \"There was a problem with the data array and the record will not be stored.\\n\";\n }\n }", "title": "" }, { "docid": "c600d08d0063876dd77aa12adb2be310", "score": "0.5844812", "text": "function post_save($data)\r\n {\r\n return array();\r\n }", "title": "" }, { "docid": "d4d2f5aad57f550eeff23a51209420d0", "score": "0.58289355", "text": "public function save()\n {\n if ($this->isDirty) {\n file_put_contents($this->path, json_encode($this->data));\n }\n }", "title": "" }, { "docid": "f7c161be2169a1e04948d06db3fcc610", "score": "0.58243203", "text": "function saveAnalytics($data = array()) {\n\t\tif (!isset($_SESSION['user'], $_SESSION['genome'], $_SESSION['page']) || !is_array($data)) return false;\n\t\treturn $this->q(\"INSERT INTO `analytics` SET `time` = \".time().\", `user` = '{$_SESSION['user']}', `genome` = {$_SESSION['genome']}, `page` = (SELECT `ID` FROM `pages` WHERE `name` = '\".mysql_real_escape_string($_SESSION['page']).\"'), `data` = '\".mysql_real_escape_string(json_encode($data)).\"'\");\n\t}", "title": "" }, { "docid": "1cad374726a7ad05e4c8a81f50b5a185", "score": "0.5821535", "text": "protected function saveData()\n {\n if ($this->shouldFlash) {\n parent::saveData();\n }\n }", "title": "" }, { "docid": "88db067d7872c2cfb6e64a67786cfd46", "score": "0.5799068", "text": "public function saveDataInTextFile(){\n }", "title": "" }, { "docid": "0027fcf96e196cbb03f0c5c8f2a734d8", "score": "0.57982874", "text": "public function save() {\n $status = db_merge('amcr_report_description')\n ->key(array('id' => $this->id))\n ->fields(array(\n 'name' => !empty($this->name) ? $this->name : NULL,\n 'description' => !empty($this->description) ? $this->description : NULL,\n 'report_suite_id' => !empty($this->report_suite_id) ? $this->report_suite_id : NULL,\n 'method' => !empty($this->method) ? $this->method : 'ranked',\n 'date_granularity' => !(empty($this->date_granularity) && ($this->date_granularity != 'none')) ? $this->date_granularity : NULL,\n 'date_from' => !empty($this->date_from) ? $this->date_from : NULL,\n 'date_to' => !empty($this->date_to) ? $this->date_to : NULL,\n 'period' => !empty($this->period) ? $this->period : NULL,\n 'sort_by' => !empty($this->sort_by) ? $this->sort_by : NULL,\n 'update_frequency' => !empty($this->update_frequency) ? $this->update_frequency : NULL,\n ))\n ->execute();\n\n if( $status == MergeQuery::STATUS_INSERT ) {\n $this->id = db_query(\"SELECT MAX(id) FROM {amcr_report_description}\")->fetchField();\n }\n\n if(!empty($this->id)) {\n $result = db_query('SELECT * FROM {amcr_report_definition_element} WhERE rd_id = :rd_id ORDER BY weight ASC',\n array(':rd_id' => $this->id));\n foreach ($result as $item) {\n if(empty($this->elements[$item->id])) {\n db_delete('amcr_report_definition_element')->\n condition('id', $item->id)\n ->execute();\n }\n }\n foreach ($this->elements as $element) {\n db_merge('amcr_report_definition_element')\n ->key(array('id' => $element->id))\n ->fields(array(\n 'element_id' => !empty($element->element_id) ? $element->element_id : NULL,\n 'weight' => !empty($element->weight) ? $element->weight : NULL,\n 'top' => !empty($element->top) ? $element->top : NULL,\n 'starting_with' => !empty($element->starting_with) ? $element->starting_with : NULL,\n 'keywords' => !empty($element->keywords) ? $element->keywords : NULL,\n 'search_type' => !empty($element->search_type) ? $element->search_type : NULL,\n 'rd_id' => $this->id,\n ))\n ->execute();\n }\n\n $result = db_query('SELECT * FROM {amcr_report_definition_metric} WhERE rd_id = :rd_id ORDER BY weight ASC',\n array(':rd_id' => $this->id));\n foreach ($result as $item) {\n if(empty($this->metrics[$item->id])) {\n db_delete('amcr_report_definition_metric')->\n condition('id', $item->id)\n ->execute();\n }\n }\n foreach($this->metrics as $metric) {\n db_merge('amcr_report_definition_metric')\n ->key(array('id' => $metric->id))\n ->fields(array(\n 'metric_id' => !empty($metric->metric_id) ? $metric->metric_id : NULL,\n 'weight' => !empty($metric->weight) ? $metric->weight : NULL,\n 'rd_id' => $this->id,\n ))\n ->execute();\n }\n }\n\n if (isset($this->id)){\n watchdog('amcr', 'Report config %report updated. Report Id is: %id',\n array('%report' => $this->name,'%id' => $this->id ));\n }\n else {\n watchdog('amcr', 'Report config %report added. Report id is %id',\n array('%report' => $this->name,\n '%id' => $this->id),\n WATCHDOG_NOTICE, l(t('view'), 'admin/config/services/amcr'));\n }\n }", "title": "" }, { "docid": "d082a60c43d79bb6b239156bf6195c2b", "score": "0.5796211", "text": "protected function saveViewFileData(array $data)\n {\n // This saves the changes to the file\n $this->saveChanges($data['defs'], $data['file'], $data['module'], $data['view'], $data['client']);\n $this->log(\"**** SAVED: $data[client] $data[view] view for the $data[module] module after adding the tag field.\");\n }", "title": "" }, { "docid": "d9466c83c6823c1e09de072b86f80668", "score": "0.57922196", "text": "public function databaseSaveArray() : array;", "title": "" }, { "docid": "394ab96870e4e8f7fa7cb0232b365f2e", "score": "0.5775179", "text": "function writeArray(){\r\n\t\tdie('Not implemented');\r\n\t}", "title": "" }, { "docid": "bc5549c56058c5b119839ebd0e98c3ee", "score": "0.5770666", "text": "public function save($data)\n\t{\n\t\tif (static::$file_name == '.settings')\n\t\t\tstatic::$key_values = array_slice($data, 0, count(static::$key_values));\n\t\telse\n\t\t\tstatic::$key_values = $data;\n\t\tself::save_data();\n\t}", "title": "" }, { "docid": "ebe081d3715b2118198270061890c2b2", "score": "0.57565033", "text": "public function saveRepayReport()\n\t{\n\t\tglobal $session;\n\t\t$date = strtotime($_POST[\"date\"]);\n\t\t$result=$session->saveRepayReport($_POST[\"q\"],$_POST[\"name\"],$_POST[\"number\"],$date,$_POST[\"note\"],$_POST[\"borrowerid\"],$_POST[\"loanid\"],$_POST[\"isedit\"],$_POST[\"mentor\"]);\n\t\techo $result;\n\t}", "title": "" }, { "docid": "b3e725fc24939eb26df5af7c7e16c9ea", "score": "0.57485926", "text": "function grid_save($data)\n\t{\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "792be1622964443230578ed710c2ad98", "score": "0.57465017", "text": "function persistData() {\n\t\t// we sort the array first, useful for doing ris match\n\t\tif (! empty ( $this->userAgentsWithDeviceID )) {\n\t\t\tksort ( $this->userAgentsWithDeviceID );\n\t\t\t$this->persistenceProvider->save ( $this->getPrefix (), $this->userAgentsWithDeviceID );\n\t\t}\n\t}", "title": "" }, { "docid": "3d5f009e8d6e90075249d6016695b4e7", "score": "0.5744067", "text": "function save()\n {\n $tmp = array();\n $tmp['ParentServer'] = $this->ParentServer;\n $tmp['Url'] = $this->Url;\n $tmp['Release'] = $this->Release;\n $tmp['Sections'] = $this->Sections;\n return($tmp);\n }", "title": "" }, { "docid": "6fdaab0ce5d7271510d3e1a5796b8fd9", "score": "0.5741913", "text": "public function save() {\n\n $message = 'failed';\n $updated = FALSE;\n $empNumber = $this->getValue('empNumber');\n $supOrSub = $this->getValue('type_flag');\n $supervisorName = $this->getValue('supervisorName');\n $subordinateName = $this->getValue('subordinateName');\n if ($supervisorName['empId'] != '') {\n $name = $supervisorName['empName'];\n $selectedEmployee = $supervisorName['empId'];\n } else if ($subordinateName['empId'] != '') {\n $name = $subordinateName['empName'];\n $selectedEmployee = $subordinateName['empId'];\n }\n \n $reportingType = $this->getValue('reportingMethodType');\n $reportingMethod = $this->getValue('reportingMethod');\n \n $previousRecord = $this->getValue('previousRecord');\n\n if ($reportingMethod != null) {\n\n $newReportingMethod = new ReportingMethod();\n $newReportingMethod->name = $reportingMethod;\n $savedReportingMethod = $this->getReportingMethodConfigurationService()->saveReportingMethod($newReportingMethod);\n $reportingType = $savedReportingMethod->id;\n }\n\n if ($supOrSub == ReportTo::SUPERVISOR) {\n $existingReportToObject = $this->getEmployeeService()->getReportToObject($selectedEmployee, $empNumber);\n\n if ($existingReportToObject != null) {\n if ($this->getOption('reportToSupervisorPermission')->canUpdate()) {\n $existingReportToObject->setReportingMethodId($reportingType);\n $existingReportToObject->save();\n $updated = TRUE;\n $message = 'updated';\n }\n } else {\n if ($this->getOption('reportToSupervisorPermission')->canCreate()) {\n $newReportToObject = new ReportTo();\n $newReportToObject->setSupervisorId($selectedEmployee);\n $newReportToObject->setSubordinateId($empNumber);\n $newReportToObject->setReportingMethodId($reportingType);\n $newReportToObject->save();\n $updated = TRUE;\n $message = 'saved';\n }\n }\n }\n\n if ($supOrSub == ReportTo::SUBORDINATE) {\n $existingReportToObject = $this->getEmployeeService()->getReportToObject($empNumber, $selectedEmployee);\n\n if ($existingReportToObject != null) {\n if ($this->getOption('reportToSubordinatePermission')->canUpdate()) {\n $existingReportToObject->setReportingMethodId($reportingType);\n $existingReportToObject->save();\n $updated = TRUE;\n $message = 'updated';\n }\n } else {\n if ($this->getOption('reportToSubordinatePermission')->canCreate()) {\n $newReportToObject = new ReportTo();\n $newReportToObject->setSupervisorId($empNumber);\n $newReportToObject->setSubordinateId($selectedEmployee);\n $newReportToObject->setReportingMethodId($reportingType);\n $newReportToObject->save();\n $updated = TRUE;\n $message = 'saved';\n }\n }\n }\n $returnValue = array($supOrSub, $updated, $message);\n return $returnValue;\n }", "title": "" }, { "docid": "01aec3f3fbc90a53194c0a77b2f8c085", "score": "0.573466", "text": "public function savereportAction()\n {\n $model = $this->byId(null, 'ProjectStatus');\n $pid = isset($model->projectid) ? $model->projectid : $this->_getParam('projectid');\n $project = $this->byId($pid);\n\n if ($model == null) {\n \t// see if there's a 'to/from' date structure to pass for the status report generation\n $model = $this->projectService->getProjectStatus($project);\n }\n\n // Save away!\n $model->bind($this->filterParams($this->_getAllParams()));\n \n $this->projectService->saveStatus($model);\n $this->redirect('project', 'editReport', array('id'=>$model->id));\n }", "title": "" }, { "docid": "d6b0484896eff96b0511697ea15d775a", "score": "0.57315135", "text": "function saveCalculationFields() {\n\t\t$db = PearDatabase::getInstance();\n\n\t\t$calculationFields = $this->get('calculationFields');\n\t\tfor ($i=0; $i<count($calculationFields); $i++) {\n\t\t\t$db->pquery('INSERT INTO vtiger_reportsummary (reportsummaryid, summarytype, columnname) VALUES (?,?,?)',\n\t\t\t\t\tarray($this->getId(), $i, $calculationFields[$i]));\n\t\t}\n\t}", "title": "" }, { "docid": "d55c5a6d71a9d410eabaf526f59114d5", "score": "0.5723544", "text": "public function saveToFile(){\n\n $this->consoleMessage(\"Saving Company List To File \\r\\n\");\n $this->consoleMessage($this->fileLocation . \"\\r\\n\");\n\n $fp = fopen($this->fileLocation, 'w');\n\n fwrite( $fp, json_encode($this->exhibitors) );\n fclose($fp);\n }", "title": "" }, { "docid": "8efd54f107c3b164b7e337345a0098e5", "score": "0.57119524", "text": "public function storeData($data) {\n $jsonFile = DRUPAL_ROOT . '/modules/custom/google_sheets_api/data/google_sheets_data.json';\n $fp = fopen($jsonFile, 'w');\n fwrite($fp, json_encode($data));\n fclose($fp);\n }", "title": "" }, { "docid": "7b3a87c1e4eb058b6a8c7ef0ab86847d", "score": "0.57069075", "text": "function saveAll($file) {\n\t\t$packStr = '';\n\t\tforeach ($this->unitDat as $value) {\n\t\t\t$packStr.=pack('i', $value);\n\t\t}\n\t\tfseek($file, $this->unitID*100);\n\t\t$saveLen = fwrite($file, $packStr);\n\t}", "title": "" }, { "docid": "6710f787daa24c5df566c2df0c23b956", "score": "0.568569", "text": "public function save(){\n\t\t$db = new Database();\n\n\t\t$reportInDB = isset($this->id);\n\n\t\tif($reportInDB === false){ //new report\n\t\t\t$sql = \"INSERT INTO `reports`(`description`, `involvementKindID`, `reportKindID`, `locationID`, `personID`, `departmentID`, `reportTime`,`statusID`,`actionTaken`, `photoPath`, `incidentTime`, `ipAddress`, `isIOS`) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?)\";\n\t\t\t$sql = $db->prepareQuery($sql, $this->description, $this->involvementKindID, $this->reportKindID, $this->locationID, $this->personID, $this->departmentID, $this->reportTime, $this->statusID, $this->actionTaken, $this->photoPath, $this->incidentTime, $this->get_ip(), $this->isIOS);\n \t\t\t$db->query($sql);\n\t\t\t$emailParameters = \n\t\t\t[$this->description, //0 \n\t\t\t$this->involvementKindID, // 1\n\t\t\t$this->reportKindID, //2\n\t\t\t$this->locationID, //3\n\t\t\t$this->personID, //4\n\t\t\t$this->departmentID, //5\n\t\t\t$this->reportTime, //6\n\t\t\t$this->statusID, //7\n\t\t\t$this->actionTaken, //8\n\t\t\t$this->photoPath, //9\n\t\t\t$this->incidentTime, //10\n\t\t\t$this->get_ip(), //11\n\t\t\t$this->isIOS]; //12\n\t\t\t\n\t\t\t$this->sendEmail($emailParameters);\n\t\t\t//get id of new Report\n\t\t\t$reportInDB = Report::reportExists($this->personID, $this->reportTime);\n\t\t\t//echo \"The reportID = \" . $reportInDB . \"\\n\";\n\t\t\tif($reportInDB != false){\n\t\t\t\t$this->id = $reportInDB;\n\t\t\t} else return false;\n\t\t} else { //old report\n\t\t\tif(is_null($this->id)){ //old report, new object. no local id yet\n\t\t\t\t$this->id = $reportInDB;\n\t\t\t}\n\n\t\t\t$sql = \"UPDATE reports SET `description`=?, `involvementKindID`=?, `reportKindID`=?, `locationID`=?, `personID`=?, `departmentID`=?, `reportTime`=?, `statusID`=?, `actionTaken`=?, `photoPath`=?, `incidentTime`=?, `ipAddress`=?, `isIOS`=? WHERE id=?\";\n\t\t\t$sql = $db->prepareQuery($sql, $this->description, $this->involvementKindID, $this->reportKindID, $this->locationID, $this->personID, $this->departmentID, $this->reportTime, $this->statusID, $this->actionTaken, $this->photoPath, $this->incidentTime,$this->get_ip(),$this->isIOS, $this->id);\n\t\t\t$db->query($sql);\n\t\t}\n\t}", "title": "" }, { "docid": "29f5e63dc85affcc94c86765781212d3", "score": "0.56799793", "text": "public function store(array $data);", "title": "" }, { "docid": "29f5e63dc85affcc94c86765781212d3", "score": "0.56799793", "text": "public function store(array $data);", "title": "" }, { "docid": "1ec2a567d7ca918e65406d9436459b63", "score": "0.567201", "text": "public function saveToFile() {\n\t\treturn call_user_func_array(array($this, 'save'), func_get_args());\n\t}", "title": "" }, { "docid": "dc4a3695e2e86e8b94381f3380ec4f28", "score": "0.56645405", "text": "public function saveNotices()\r\n {\r\n $notices = array(\r\n 'globalData' => array(\r\n 'uniqueCountId' => self::$uniqueCountId\r\n ),\r\n 'nextStep' => array(),\r\n 'finalReport' => array()\r\n );\r\n\r\n foreach ($this->nextStepNotices as $uniqueId => $notice) {\r\n $notices['nextStep'][$uniqueId] = $notice->toArray();\r\n }\r\n\r\n foreach ($this->finalReporNotices as $uniqueId => $notice) {\r\n $notices['finalReport'][$uniqueId] = $notice->toArray();\r\n }\r\n\r\n file_put_contents($this->persistanceFile, DupLiteSnapJsonU::wp_json_encode_pprint($notices));\r\n }", "title": "" }, { "docid": "ec52b5be51cf8b5e7c87ce073478bbb2", "score": "0.5662701", "text": "public function save()\n {\n $this->serialize();\n }", "title": "" }, { "docid": "1765444e70e5e5dfe34b8c924ddcef39", "score": "0.5660849", "text": "public function store(ReportRequest $request) {\n //dd($request->all());\n $input = $request->all();\n $input['created_by'] = auth()->user()->id;\n $report = Report::create($input);\n\n foreach ($request->all() as $key => $value) {\n $field = strpos($key, 'f_');\n\n if($field>-1 and strlen($value)>-1){\n $pices = explode('_', $key);\n $ivr = ItemValueReport::firstOrCreate([\n 'report_id' => $report->id,\n 'item_rol_id' => $pices[3],\n 'item_col_id' => $pices[2]\n ]);\n $ivr->valore = $value;\n $ivr->save();\n }\n }\n\n return redirect()->route('reportes.create')->with('info', 'Registro creado satisfactoriamente.');\n }", "title": "" }, { "docid": "5e235b5124fb113bc12822de01969c22", "score": "0.5646977", "text": "public function save(array $session_data);", "title": "" }, { "docid": "dbf039c7297ce3c15c7a3c73777d43f7", "score": "0.563644", "text": "private function saveResults($results)\n {\n $current_data = file_get_contents($this->file_path);\n $current_array = json_decode($current_data, true);\n array_push($current_array, $results);\n $jsonData = json_encode($current_array);\n file_put_contents($this->file_path, $jsonData);\n }", "title": "" }, { "docid": "c73c1eb70162d6d09464cfbaab5ad6e0", "score": "0.56348044", "text": "public function saveDbLog() {\n\t\t\tif(count($this->data)) {\n\t\t\t\t\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "1e7bea9be3252a82e1f5c2b6d3f0f39e", "score": "0.5625644", "text": "protected abstract function getDbSaveArray();", "title": "" }, { "docid": "8f7a61a153d8aaaef33fd8c5f928fe40", "score": "0.56240296", "text": "function saveData()\n\t{\n\t\t$userId = self::$USER->getId();\n\t\tforeach($this->_userSettings as $settingName => $value) {\n\t\t\t$setting = $this->getConstSetting($settingName);\n\t\t\t$fields = array('user_id'=>$userId, 'setting_id'=>$setting['setting_id'], 'value' => $value);\n\t\t\tself::$DB->replace(TABLE_USER_SETTINGS, $fields);\n\t\t}\n\t}", "title": "" }, { "docid": "26042028ef9d5679016d864b3da77e6d", "score": "0.5620023", "text": "public function save(){\n\n $rows = count($this->outfile_rows_ar);\n\n if ($rows > 0){\n\n // If the hiring_crit_term is not set, error is handled.\n if (isset($this->outfile_rows_ar[0]['hire_crit_term'])) {\n $hire_crit_term = $this->outfile_rows_ar[1]['hire_crit_term'];\n } else {\n $hire_crit_term = \"No Data\";\n }\n\n // Build Filename for output file\n $fn_parts = explode(\".\", $this->fn);\n $extension = $fn_parts[1];\n $output_fn = $fn_parts[0] . \"_DONE.\" . $extension;\n\n // Open file and output CSV GPA data\n if (($fh = fopen($output_fn, \"w\")) !== FALSE) {\n\n // Add rows count and Hiring Criteria Term\n fputcsv($fh, array(\"GPA Check file\",\"Rows: \" . $rows), \",\", '\"');\n fputcsv($fh, array(\"GPA Check term: \" . $hire_crit_term), \",\", '\"');\n\n fputcsv($fh, $this->header_ar, \",\", '\"');\n\n // Loop over array of arrays placing the row arrays in the new CSV file\n for ($i=0;$i<$rows - 1;$i++) {\n\n fputcsv($fh, $this->outfile_rows_ar[$i], \",\", '\"');\n }\n fclose($fh);\n\n } else { // Filename is not writable\n echo (\"Could not open file for saving!\" . PHP_EOL . PHP_EOL);\n return false;\n }\n\n // All done. All valid rows have been written to disk\n return true;\n\n } else { // No Results. No file saved.\n echo (\"No Result to save to file.\" . PHP_EOL . PHP_EOL);\n return false;\n }\n\n }", "title": "" }, { "docid": "2b7e111ae6b975909c30c12aca784ba7", "score": "0.5618572", "text": "protected function outputReport() {\n $outputFile = $this->getOutputDir() . '/security-report.yml';\n file_put_contents($outputFile, Yaml::dump($this->report, 6, 2));\n $this->report = [];\n }", "title": "" }, { "docid": "1615ef8df6525fafb44b754eb7f165e0", "score": "0.56175077", "text": "public function saveAll(array $logGeneral);", "title": "" }, { "docid": "66b119b3467623ff30cd626e39b656f7", "score": "0.561566", "text": "Public Function save();", "title": "" }, { "docid": "a70ee03d55d3d98e213e3d9522173f2c", "score": "0.5615277", "text": "protected function saveData() {\n $modelClassName = get_class($this->model);\n\n\n if (!empty($this->requestParams['Checkout'])) {\n\n $values = \"'\" . implode(\"','\", array_values($this->requestParams['Checkout'])) . \"'\";\n //$this->Checkout->query(\"INSERT INTO trueo846_2.checkouts VALUES(NULL, {$values})\");\n $this->Checkout->query(\"INSERT INTO checkouts VALUES(NULL, {$values})\");\n $data = $this->model->find('first', array('order' => array('Checkout.id' => 'desc')));\n\n $this->appData = $data;\n } elseif ($this->model->saveAll($this->requestParams)) {\n # save OK...\n\n $data = $this->model->find('first', array('conditions' => array(\"{$modelClassName}.id\" => $this->model->id)));\n $this->appData = array(\n 'status' => $this->crudOperationStatus['save_ok'],\n 'data' => $data\n );\n } else {\n # save NOT OK...\n $this->appData = array(\n 'status' => $this->crudOperationStatus['save_error'],\n 'data' => $this->requestParams\n );\n }\n }", "title": "" }, { "docid": "1209365792e8435e284cfdb36a78d7d8", "score": "0.5615086", "text": "public function save()\n {\n switch ($this->fileType) {\n case self::TYPE_JSON :\n $content = json_encode($this->data);\n break;\n default : $content = '<?php return '. var_export($this->data, true) . ';';\n }\n if (function_exists('apc_clear_cache')) {\n apc_clear_cache();\n }\n if (function_exists('opcache_reset')) {\n opcache_reset();\n }\n return file_put_contents($this->writePath, $content);\n }", "title": "" }, { "docid": "d95723ab24bfae48962f4a4fb28232c3", "score": "0.5611335", "text": "function data_file(){\n //$this->log(__CLASS__ . \".\" . __FUNCTION__ . \"()\", LOG_DEBUG);\n\n /* TODO NEED INTERPRETATION OF CHECKBOX OPTION DIGITS: 1=Yes,2=No - JUST DO IN EXCEL FOR NOW DON\"T NEED SPECIAL LABELLING OF DEMO OPTION COLUMNS\n */\n //Configure::write('debug', 3);\n\n set_time_limit(120);\n\n $id = $this->getDateStringForFilename();\n $filename = $this->labelInstanceID . $this->options['label'] . \".$id.csv\";\n\n if (!file_exists(APP . SECURE_DATA_DIR . DS . $filename)){\n // $this->log(\"data file $filename does not yet exist; will delete old files (keeping the latest) and create a new one next\", LOG_DEBUG);\n\n $this->deleteOldFiles($this->options['label']);\n\n $questions = $this->_get_questions();\n $formattedQuestions = array();\n foreach($questions as $question) {\n array_push($formattedQuestions, \n array(\"id\" => $question[\"Question\"][\"id\"],\n \"options\" => $question[\"Option\"]));\n }\n $questions = $formattedQuestions;\n $numSessionsPerPatientRow = 0;\n\n $patients = $this->_get_patients();\n// $this->log(__CLASS__ . \".\" . __FUNCTION__ . \"(), reporting for \" . sizeof($patients) . \" patients.\", LOG_DEBUG);\n foreach($patients as $patient) {\n $patientData = $this->_patient_fields($patient);\n $sessions = $this->_patient_survey_sessions($patient);\n\n if ($this->options['row_per_session']){\n foreach($sessions as $key => $session){\n if(in_array($session['type'], \n $this->options['type_array'])) {\n $row = array_merge(\n $patientData, \n $this->_patient_session_answers(\n $questions, $session, $key));\n array_push($this->reportTable, $row);\n }\n }\n }\n else { // row per patient\n $row = $patientData;\n if ($numSessionsPerPatientRow < sizeof($sessions)) \n $numSessionsPerPatientRow = sizeof($sessions);\n\n foreach($sessions as $key => $session){\n if(in_array($session['type'], \n $this->options['type_array'])) {\n $row = array_merge(\n $row, \n $this->_patient_session_answers(\n $questions, $session, $key));\n } else {\n # print NO_SESSION for each question and modified \n for($i=0; $i<$this->num_headers_per_session; $i++){\n $row[] = self::NO_SESSION;\n }\n continue;\n }\n }\n array_push($this->reportTable, $row);\n } // row per patient\n }// foreach($patients as $patient) {\n\n array_unshift($this->reportTable, $this->_header_row($questions, $numSessionsPerPatientRow));\n\n $this->createFile($filename);\n }\n else {\n //$this->log(\"data file $filename exists\", LOG_DEBUG);\n }\n return $filename;\n }", "title": "" }, { "docid": "7d36bf1529cc5cee95e4323a77f9308f", "score": "0.56089634", "text": "public function saveAction()\n {\n if ($data = $this->getRequest()->getPost('routine')) {\n try {\n $routine = $this->_initRoutine();\n $routine->addData($data);\n $routine->save();\n $add = '';\n if($this->getRequest()->getParam('popup')){\n $add = '<script>window.opener.'.$this->getJsObjectName().'.reload(); window.close()</script>';\n }\n Mage::getSingleton('adminhtml/session')->addSuccess(\n Mage::helper('bs_routine')->__('Routine Report was successfully saved. %s', $add)\n );\n Mage::getSingleton('adminhtml/session')->setFormData(false);\n if ($this->getRequest()->getParam('back')) {\n $this->_redirect('*/*/edit', ['id' => $routine->getId()]);\n return;\n }\n $this->_redirect('*/*/');\n return;\n } catch (Mage_Core_Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError($e->getMessage());\n Mage::getSingleton('adminhtml/session')->setRoutineData($data);\n $this->_redirect('*/*/edit', ['id' => $this->getRequest()->getParam('id')]);\n return;\n } catch (Exception $e) {\n Mage::logException($e);\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('bs_routine')->__('There was a problem saving the routine report.')\n );\n Mage::getSingleton('adminhtml/session')->setRoutineData($data);\n $this->_redirect('*/*/edit', ['id' => $this->getRequest()->getParam('id')]);\n return;\n }\n }\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('bs_routine')->__('Unable to find routine report to save.')\n );\n $this->_redirect('*/*/');\n }", "title": "" }, { "docid": "f97b52a5bde6e98bc7f28a2dd2a3fd51", "score": "0.56084377", "text": "public function actionSaveAllReport($appintment_id, $principal_id, $est_id, $invoice_num) {\n $model_report = $this->InvoiceGeneration($appintment_id, $principal_id, $est_id, $invoice_num);\n Yii::$app->SetValues->Attributes($model_report);\n if ($model_report->save(false)) {\n $this->UpdateFundAllocation($appintment_id, $principal_id);\n echo \"<script>window.close();</script>\";\n exit;\n }\n }", "title": "" }, { "docid": "3924adbe297129853b4e14775df1f8eb", "score": "0.56051886", "text": "public function export_array(){\r\n\t\treturn $this->data + $this->orig_data;\r\n\t}", "title": "" }, { "docid": "7ef6d96772d948552e05678753537fc8", "score": "0.560071", "text": "function saveAll(array $fixtures);", "title": "" }, { "docid": "58de336b46835552c803922339887a49", "score": "0.5598395", "text": "public function saveDocument(array $document);", "title": "" }, { "docid": "118a18eda8dcc81e858ebfa5bf3390ea", "score": "0.55864686", "text": "function saveData($data){\n\t$data = json_encode($data);\n\tfile_put_contents('data.json', $data);\n}", "title": "" }, { "docid": "6a4e38f3ca6a800ac84ff62ee98ec8f9", "score": "0.5581409", "text": "public function save($data)\n {\n file_put_contents($this->tempFilePath, $data);\n }", "title": "" }, { "docid": "3e5407aa1f34d9c344c5060a61cbcdb2", "score": "0.5577109", "text": "abstract public function buildReport() : array;", "title": "" }, { "docid": "8ec63d5b25eb5c989dffed235b8867c9", "score": "0.55729914", "text": "public function save()\n {\n $file = $this->file();\n if ($file) {\n $file->save($this->items);\n }\n }", "title": "" }, { "docid": "97817927893c50052dec9c12e71a968a", "score": "0.55710655", "text": "function save_data($input, array $form)\n{\n $database = file_to_array(DB_FILE);\n $database[] = $input;\n\n return array_to_file($database, DB_FILE);\n}", "title": "" }, { "docid": "620b9990ce594f6d58822e6ddecc8220", "score": "0.556853", "text": "public function save(): void\n {\n file_put_contents($this->filepath, $this->getSerializedStructure());\n }", "title": "" }, { "docid": "d5ac0441e37552c317f6b9efa1984cb5", "score": "0.55643535", "text": "public function save($dataSet) {\n\t\treturn parent::save($dataSet);\n\t}", "title": "" }, { "docid": "b9751e8846a74771191f2080e749cbca", "score": "0.5561093", "text": "public function saveRecord()\n {\n return [\n 'batch' => $this->batch,\n ];\n }", "title": "" }, { "docid": "c346590bad2ac6a5b55581e8fc4f6b2d", "score": "0.55588293", "text": "public function addReport( $reportData, $fakeInfo = false )\n\t{\n\t\t$reportData = array_map('strtolower', $reportData);\n\t\t$reportData = array_change_key_case($reportData);\n\n\t\tif ( array_key_exists('appname', $reportData) )\n\t\t{\n\t\t\t /*-----------------------*\n\t\t\t Report Information\n\t\t\t *-----------------------*/\n\t\t\tif ( !$fakeInfo )\n\t\t\t{\n\t\t\t\t$report_date = strftime(\"%Y-%m-%d %H:%M:%S\");\n\t\t\t\t$ip_address = $_SERVER[\"REMOTE_ADDR\"];\n\t\t\t\t$app_name = $reportData['appname'];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// $fakeInfo supports our random data generator.\n\t\t\t\t$report_date = $reportData['report_date'];\n\t\t\t\t$ip_address = $reportData['ip_address'];\n\t\t\t\t$app_name = $reportData['appname'];\n\t\t\t\tunset($reportData['report_date']);\n\t\t\t\tunset($reportData['ip_address']);\n\t\t\t}\n\t\t\t// We have array of Key=>Value, but we need to format it\n\t\t\t// into Key=>Key and Value=>Value for each item.\n\t\t\t$innerArray = [ ];\n\t\t\tforeach ( $reportData as $key => $value )\n\t\t\t{\n\t\t\t\t$innerArray[] = compact('key', 'value');\n\t\t\t}\n\n\t\t\tif ( $innerArray )\n\t\t\t{\n\t\t\t\t$savearray = [\n\t\t\t\t\t'JDSparkleReport' => compact('report_date', 'ip_address', 'app_name'),\n\t\t\t\t\t'JDSparkleRecord' => $innerArray,\n\t\t\t\t];\n\n\t\t\t\tif ( !$this->saveAll($savearray) )\n\t\t\t\t{\n\t\t\t\t\tdebug(\"Something went wrong in JDSparkle. I should throw an exception. Maybe version 2.0.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3f1085662a3c88c5b70c48b73867bb06", "score": "0.5553907", "text": "protected function saveContentData()\n {\n $arrContenData = array(\n \"error\" => $this->booError,\n \"error_msg\" => $this->strError,\n \"refresh\" => $this->booRefresh,\n \"finished\" => $this->booFinished,\n \"step\" => $this->intStep,\n \"url\" => $this->strUrl,\n \"goBack\" => $this->strGoBack,\n \"start\" => $this->floStart,\n \"headline\" => $this->strHeadline,\n \"information\" => $this->strInformation,\n \"data\" => $this->objData->getArrValues(),\n \"abort\" => $this->booAbort,\n );\n\n \\Session::getInstance()->set(\"syncCto_Backup_Content\", $arrContenData);\n }", "title": "" }, { "docid": "52e079ebbcac43ed541fb98fc0753e45", "score": "0.5553054", "text": "public function saveData(array $data) {\n $fields = $this->info(Zend_Db_Table_Abstract::COLS);\n foreach ($data as $field => $value) \n {\n if (!in_array($field, $fields)) \n {\n unset($data[$field]);\n }\n }\n\n $data['time_loged'] = date('Y-m-d H:i:s', strtotime($data['time_loged']));\n $data['created'] = date('Y-m-d H:i:s');\n $data['modified'] = date('Y-m-d H:i:s'); \t\t\n return $this->insert($data);\n }", "title": "" }, { "docid": "48444be5a8c92bc4e72c4dbc2b15e68e", "score": "0.5549986", "text": "public function save()\n {\n $data = array();\n $data[] = \"; <?php die; ?>\";\n $data[] = \"; \";\n $data[] = \"; Liquid PHP Application Framework Configuration File\";\n $data[] = \"\";\n\n foreach($this->data as $a => $section)\n {\n $data[] = \"[\" . $a . \"]\";\n foreach($section as $b => $subsection)\n {\n foreach($subsection as $c => $value)\n {\n $data[] = $b . '.' . $c . '=\"' . $value . '\"';\n }\n }\n\n file_put_contents($this->filename, implode(\"\\r\\n\", $data));\n $this->requiresSave = false;\n }\n }", "title": "" }, { "docid": "4ab5bbd1ee50c71b4252c5225f086efb", "score": "0.5539372", "text": "protected function saveToFile($data, $file) {\n }", "title": "" } ]
6ae6aa7703b7a354badfa3c1cbbbf491
return an array format representation of this entity
[ { "docid": "ef7b09f13f4d28f7431bcdac348a2528", "score": "0.0", "text": "public function toArray(){\n return array(\n 'id' => $this->id,\n 'plane_id' => $this->plane_id,\n 'depart' => $this->depart,\n 'depart_time' => $this->depart_time,\n 'arrive' => $this->arrive,\n 'arrive_time' => $this->arrive_time\n );\n }", "title": "" } ]
[ { "docid": "9850dc46c3798c9461af322c4e95b167", "score": "0.76773465", "text": "public function toArray()\n {\n return self::arrayize($this);\n }", "title": "" }, { "docid": "ef29403614a9904a5c2228cfd44684cc", "score": "0.76528996", "text": "public function toArray()\n {\n return [\n 'name' => $this->getName(),\n 'amount' => $this->getAmount()\n ];\n }", "title": "" }, { "docid": "d3a3f469838677054ec19a583746ee4f", "score": "0.763181", "text": "public function toArray(): array\n\t{\n\t\treturn [\n\t\t\t'id' => $this->getId(),\n\t\t\t'entityId' => $this->getEntityId(),\n\t\t\t'typeId' => $this->getTypeId(),\n\t\t\t'epicId' => $this->getEpicId(),\n\t\t\t'active' => $this->getActive(),\n\t\t\t'name' => $this->getName(),\n\t\t\t'description' => $this->getDescription(),\n\t\t\t'sort' => $this->getSort(),\n\t\t\t'createdBy' => $this->getCreatedBy(),\n\t\t\t'modifiedBy' => $this->getModifiedBy(),\n\t\t\t'storyPoints' => $this->getStoryPoints(),\n\t\t\t'sourceId' => $this->getSourceId(),\n\t\t\t'info' => $this->getInfo(),\n\t\t\t'tmpId' => $this->getTmpId(),\n\t\t];\n\t}", "title": "" }, { "docid": "0f4703a504c81be012e2d3e5e7dee424", "score": "0.76266384", "text": "public function toArray()\n {\n return [\n 'id' => $this->getId(),\n 'elements' => $this->elements,\n ];\n }", "title": "" }, { "docid": "952e959720846735a58521341fa047dd", "score": "0.7588006", "text": "public function toArray()\n {\n return [\n 'rowId' => $this->rowId,\n 'id' => $this->id,\n 'name' => $this->name,\n 'quantity' => $this->quantity,\n 'price' => (float)$this->price,\n 'priceTax' => $this->priceTax,\n 'tax' => $this->tax,\n 'options' => $this->options->toArray(),\n 'subtotal' => $this->subtotal,\n 'subItems' => $this->getSubItems()->toArray(),\n 'model' => null === $this->associatedModel ? $this->associatedModel : $this->model->toArray(),\n 'created_at' => $this->created_at->getTimestamp(),\n 'updated_at' => $this->updated_at->getTimestamp(),\n ];\n }", "title": "" }, { "docid": "4732fff870d3f58bdae570aee2e7d981", "score": "0.75855917", "text": "public function toArray()\n {\n return [\n 'type' => get_class($this->object),\n 'id' => $this->id(),\n ];\n }", "title": "" }, { "docid": "e974034d7ac1dba0b4e377deafd71cce", "score": "0.7576002", "text": "public function toArray()\n {\n return [\n 'id' => $this->getId(),\n 'name' => $this->getName(),\n 'begin' => $this->getBegin(),\n 'end' => $this->getEnd(),\n 'color' => $this->getColor()\n ];\n }", "title": "" }, { "docid": "43d30cedef90aa96169ebcb52abc0034", "score": "0.75753736", "text": "public function toArray() {\n\t\treturn $this->getData();\n\t}", "title": "" }, { "docid": "28812e4c18e7dc8ee68b242b0b75d2d5", "score": "0.75470555", "text": "public function toArray()\n {\n return $this->objectToArray($this);\n }", "title": "" }, { "docid": "9e96282d15aa03566a994d82a04ac97b", "score": "0.752645", "text": "public function toArray() {\n return $this->data;\n }", "title": "" }, { "docid": "4e0069879173a797110fdfb04085e6a4", "score": "0.75212806", "text": "public function toArray()\n {\n return (array) $this->toObject();\n }", "title": "" }, { "docid": "32262a5ebcf3d9a3fd7ebbd33b6d16d8", "score": "0.7515935", "text": "public function toArray()\n {\n return json_decode(json_encode($this), true);\n }", "title": "" }, { "docid": "42d08a765661bd03d691516df9749b25", "score": "0.75152814", "text": "public function toArray()\n {\n return [\n 'quantity' => (int)$this->getQty(),\n 'price' => [\n 'amount' => (float)$this->getPrice(),\n ],\n 'currency' => $this->getCurrency(),\n 'tax' => $this->getTax(),\n 'text' => mb_substr($this->getName(), 0, 128),\n ];\n }", "title": "" }, { "docid": "b04868b0a46cb4293cdebfb7d02b985d", "score": "0.7515132", "text": "public function toArray()\n {\n return array(\n 'id' => $this->getID(),\n 'xtype' => $this->getXtype(),\n 'region' => $this->getRegion(),\n 'type' => $this->getType(),\n 'data' => $this->getData(),\n );\n }", "title": "" }, { "docid": "4c65becc7cd4f6d8cd7da2a66ae8ef4c", "score": "0.75124735", "text": "public function toArray()\n {\n return Utility::objectToArray($this);\n }", "title": "" }, { "docid": "306ed2a5e0998effdb505feb98280093", "score": "0.7494097", "text": "public function toArray()\n\t{\n\t\t$output = array();\n\n\t\tforeach ($this->items as $key => $value) {\n\t\t\tarray_push($output, $value->toArray(true));\n\t\t}\n\n\t\treturn array(\n\t\t\t$this->getEntityName() => array(\n\t\t\t\t\t$this->getSingularEntityName() => $output\n\t\t\t\t),\n\t\t);\n\t}", "title": "" }, { "docid": "8330d1cf7eb784f05f58e089ad19caec", "score": "0.74778384", "text": "public function toArray()\n {\n return $this->data;\n }", "title": "" }, { "docid": "8330d1cf7eb784f05f58e089ad19caec", "score": "0.74778384", "text": "public function toArray()\n {\n return $this->data;\n }", "title": "" }, { "docid": "8330d1cf7eb784f05f58e089ad19caec", "score": "0.74778384", "text": "public function toArray()\n {\n return $this->data;\n }", "title": "" }, { "docid": "8330d1cf7eb784f05f58e089ad19caec", "score": "0.74778384", "text": "public function toArray()\n {\n return $this->data;\n }", "title": "" }, { "docid": "8330d1cf7eb784f05f58e089ad19caec", "score": "0.74778384", "text": "public function toArray()\n {\n return $this->data;\n }", "title": "" }, { "docid": "8330d1cf7eb784f05f58e089ad19caec", "score": "0.74778384", "text": "public function toArray()\n {\n return $this->data;\n }", "title": "" }, { "docid": "8330d1cf7eb784f05f58e089ad19caec", "score": "0.74778384", "text": "public function toArray()\n {\n return $this->data;\n }", "title": "" }, { "docid": "8330d1cf7eb784f05f58e089ad19caec", "score": "0.74778384", "text": "public function toArray()\n {\n return $this->data;\n }", "title": "" }, { "docid": "8330d1cf7eb784f05f58e089ad19caec", "score": "0.74778384", "text": "public function toArray()\n {\n return $this->data;\n }", "title": "" }, { "docid": "32fcfc6a810a2e60cd2ff0610e5694d3", "score": "0.746915", "text": "public function toArray()\n {\n return $this->__toArray();\n }", "title": "" }, { "docid": "6717f2c28bc7d5457e64ca3527f3a90a", "score": "0.74606645", "text": "public function toArray() {\n\t\treturn [\n\t\t\t'id' => $this->getId(),\n\t\t\t'content' => $this->getContent(),\n\t\t\t'flag' => $this->getFlag()\n\t\t];\n\t}", "title": "" }, { "docid": "e7dcd7be36ab5c4d2007e8e217ba14aa", "score": "0.7460606", "text": "public function toArray()\n {\n return [\n 'id' => $this->getId(),\n 'attribute' => $this->getDummyAttribute(),\n 'published' => $this->isPublished()\n ];\n }", "title": "" }, { "docid": "db91e284cbc1ef4a403f5c157a063fcd", "score": "0.74499667", "text": "public function toArray()\n {\n return array(\n 'name' => $this->getName(),\n 'price' => $this->getPrice(),\n 'inventory' => $this->getInventory(),\n 'image' => $this->getImage(),\n 'categories' => $this->getCategories()\n );\n }", "title": "" }, { "docid": "f43d571251b9f2e9e5d32c937e8bd6c6", "score": "0.744847", "text": "public function toArray() {\n\t\treturn [\n\t\t\t'id' => $this->getId(),\n\t\t\t'category' => $this->getCategory(),\n\t\t\t'name' => $this->getName(),\n\t\t\t'photoUrls' => $this->getPhotoUrls(),\n\t\t\t'tags' => $this->getTags(),\n\t\t\t'status' => $this->getStatus()\n\t\t];\n\t}", "title": "" }, { "docid": "020ba3e8198be21911b41bee701cd91a", "score": "0.74447757", "text": "public function toArray(): array\n\t{\n\t\treturn [\n\t\t\t'id' => $this->getId(),\n\t\t\t'entityId' => $this->getEntityId(),\n\t\t\t'name' => $this->getName(),\n\t\t\t'sort' => $this->getSort(),\n\t\t\t'dodRequired' => $this->getDodRequired(),\n\t\t\t'participants' => $this->getParticipantsList(),\n\t\t];\n\t}", "title": "" }, { "docid": "2865aaa6b0ae15e39d9ce2fa8f29386d", "score": "0.7444769", "text": "public function toArray() {\n\t\treturn json_decode(json_encode($this), true);\n\t}", "title": "" }, { "docid": "b597fe77de6042bc2ebd055802b380c9", "score": "0.74429524", "text": "public function toArray()\n {\n return [\n 'type' => get_class($this),\n 'id' => $this->id(),\n 'params' => $this->params\n ];\n }", "title": "" }, { "docid": "3390e4bcee7f0c08c62a14f874129655", "score": "0.74387896", "text": "function toArray() {\r\n\t\treturn $this->data;\r\n\t}", "title": "" }, { "docid": "7344a76596dd729b83a68886145c1c4e", "score": "0.7422551", "text": "public function toArray()\n {\n return [\n $this->context=>[\n 'value'=>$this->value,\n 'currency'=>$this->currency\n ]\n ];\n }", "title": "" }, { "docid": "8b1ee39ee6f3954747a33ce6a23a1441", "score": "0.7416183", "text": "public function toArray()\n {\n return [\n 'number'=>$this->number,\n 'securityCode'=>$this->cvv,\n 'expirationDate'=>$this->expiration,\n 'name'=>$this->name\n ];\n }", "title": "" }, { "docid": "622f9ece5e8d1a06641e0eee22b22e3f", "score": "0.7414322", "text": "public function toArray()\n {\n return [\n 'id' => $this->id,\n 'name' => $this->name,\n 'address' => $this->address,\n 'deleted_at' => $this->deleted_at\n ];\n }", "title": "" }, { "docid": "88616d47738eb0d6f06b7dc8fe8db195", "score": "0.74116606", "text": "public function toArray ( )\n {\n return $this -> data;\n }", "title": "" }, { "docid": "977a862c3a2bc9f337c9bd530f2ba9bd", "score": "0.7408784", "text": "public function toArray(): array\n {\n return [\n 'id' => $this->getId(),\n 'name' => $this->getName(),\n 'direction' => $this->getDirection(),\n 'type' => $this->getType()->toArray(),\n ];\n }", "title": "" }, { "docid": "39778fffc40ae7002ebadd72066773a0", "score": "0.7405394", "text": "function toArray()\r\n {\r\n return $this->getValues();\r\n }", "title": "" }, { "docid": "0936a5ac02759bc6e3c1083d6e446bf7", "score": "0.73941576", "text": "public function toArray() {\r\n\t\treturn array(\r\n\t\t\tself::FIELD_IDDATOSSOLICITUDCLASEDIRIGIDA=>$this->getIdDatosSolicitudClaseDirigida(),\r\n\t\t\tself::FIELD_IDSOLICITUD=>$this->getIdSolicitud(),\r\n\t\t\tself::FIELD_TITULAR=>$this->getTitular(),\r\n\t\t\tself::FIELD_IBAN=>$this->getIban(),\r\n\t\t\tself::FIELD_ENTIDAD=>$this->getEntidad(),\r\n\t\t\tself::FIELD_OFICINA=>$this->getOficina(),\r\n\t\t\tself::FIELD_DIGITOCONTROL=>$this->getDigitoControl(),\r\n\t\t\tself::FIELD_CUENTA=>$this->getCuenta());\r\n\t}", "title": "" }, { "docid": "57cea7d06ed4ceeca3dd15d8ea7c4e67", "score": "0.7379666", "text": "public function toArray()\n {\n return $this->_array;\n }", "title": "" }, { "docid": "da4e3e31dbb4735850ea99e0171e26fc", "score": "0.737357", "text": "public function toArray()\n\t{\n\t\treturn $this->data;\n\t}", "title": "" }, { "docid": "8026af74dc7d4be360e86ac9073340e3", "score": "0.736414", "text": "public function toArray()\r\n {\r\n return $this->attributesToArray();\r\n }", "title": "" }, { "docid": "0679737f64cadef3b9298f3b9b5c46a2", "score": "0.73521227", "text": "public function toArray() {\r\n\t\t\r\n\t\t$data = array(\r\n\t\t\t'id'\t\t\t\t\t=> $this->id,\r\n 'firstname'\t \t\t=> $this->firstname,\r\n\t\t\t'lastname'\t \t\t=> $this->lastname,\r\n\t\t\t'telnr' => $this->telnr,\r\n\t\t\t'address'\t \t\t=> $this->address,\r\n\t\t);\r\n\t\t\r\n\t\t$this->data = $data;\r\n\t\t\r\n\t\treturn $data;\r\n\t}", "title": "" }, { "docid": "bafb7288e0b31472b2a8639ec3f7f202", "score": "0.7351369", "text": "public function toArray()\n {\n return $this->data->toArray();\n }", "title": "" }, { "docid": "780e69fdb7d999023d855f4f542667bb", "score": "0.734523", "text": "public function getArray() {\n return array(\n 'id' => $this->getId(),\n 'groupe' => $this->getGroupe(),\n );\n }", "title": "" }, { "docid": "b4a8faaa4dbe739c1ed9065399987a8e", "score": "0.73445183", "text": "public function toArray()\n {\n return $this->attributesToArray();\n }", "title": "" }, { "docid": "b4a8faaa4dbe739c1ed9065399987a8e", "score": "0.73445183", "text": "public function toArray()\n {\n return $this->attributesToArray();\n }", "title": "" }, { "docid": "d6cca676fdb430d5c4238ead6e2de82d", "score": "0.7343153", "text": "public function toArray()\n {\n \t \t\n \n \n \tforeach ($this as $attribute => $value) {\n \t\tif (is_object($value)) {\n \t\t\tif(get_class($value) == 'Doctrine\\\\ORM\\\\PersistentCollection'){\n \t\t\t\t$data[$attribute] = $value->toArray(true);\n \t\t\t\tforeach ($data[$attribute] as $att => $val){\n \t\t\t\t\t$data[$attribute][$att] = $val->toArray();\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\telse{\n \t\t\t $data[$attribute]= $value;\n \t\t}\n \t} \n \t \n \treturn $data;\n }", "title": "" }, { "docid": "64e8b5ed8b1a65c3a738cf6b67ad769f", "score": "0.7342232", "text": "public function toArray()\n {\n $array = array(\n 'id' => $this->_id,\n 'label' => $this->_label\n );\n return $array;\n }", "title": "" }, { "docid": "04cdeb62be40f514a934803fa4fbf431", "score": "0.7341485", "text": "public function toArray(){\n return array(\n \"id\" => $this->getId(),\n \"item\" => $this->getItem(),\n \"type\" => $this->getType(),\n \"version\" => $this->getVersion(),\n \"status\" => $this->getStatus(),\n \"dispatch\" => $this->getDispatch()->getId(),\n \"unit_detail\" => $this->getUnitDetail()->getId(),\n \"quantity\" => $this->getQuantity(),\n \"price\" => $this->getPrice()\n );\n }", "title": "" }, { "docid": "7fb7a3154e398bdd39c048414c14f5a4", "score": "0.7339951", "text": "public function toArray() {\n return [\n 'type' => $this->getType(),\n 'value' => $this->getValue(),\n ];\n }", "title": "" }, { "docid": "39e4678072a4c2ea7a99c4142b1c9fc5", "score": "0.73377824", "text": "public function toArray()\n {\n return array(\n \"Id vin\" => $this->getVin()->getId(),\n \"Note\" => $this->getNote(),\n );\n }", "title": "" }, { "docid": "15c8374b13fd60ac22e59845b0f34cf3", "score": "0.7337467", "text": "public function toArray(): array\n {\n return [\n 'id' => $this->getId(),\n 'type' => 'product',\n 'attributes' => [\n 'name' => $this->getName(),\n 'description' => $this->getDescription(),\n 'domainExtension' => $this->getDomainExtension(),\n ],\n ];\n }", "title": "" }, { "docid": "f9bc7c6a50bbd0d2bdea5ed843910891", "score": "0.73369", "text": "public function toArray() {}", "title": "" }, { "docid": "f9bc7c6a50bbd0d2bdea5ed843910891", "score": "0.73369", "text": "public function toArray() {}", "title": "" }, { "docid": "291f641f2f3edb5c197c395e9fda2ff5", "score": "0.73337805", "text": "public function toArray(): array\n {\n return [\n 'id' => $this->id,\n 'name' => $this->formatName(strtolower($this->name)),\n 'code' => $this->code,\n 'actual' => is_null($this->actual) ? 0 : $this->actual,\n 'budget' => is_null($this->budget) ? 0 : $this->budget,\n 'units' => $this->LedgerController->units,\n 'unitsDisplayText' => $this->LedgerController->unitsDisplayText,\n 'entityName' => $this->LedgerController->entityName,\n 'targetYear' => (int) $this->LedgerController->year,\n 'totalBarUnits' => 'change',\n 'entityOccupancy' => $this->entityOccupancy,\n 'childCount' => isset($this->childCount) ? $this->childCount : 1,\n 'budgetGrossAmount' => $this->budget_gross_amount,\n 'actualGrossAmount' => $this->actual_gross_amount,\n 'area' => $this->area,\n 'rentable_area' => $this->rentable_area,\n 'report_template_account_group_id' => $this->report_template_account_group_id,\n 'native_account_type_id' => $this->native_account_type_id,\n 'native_account_type_coefficient' => $this->native_account_type_coefficient,\n ];\n }", "title": "" }, { "docid": "4ca80bb30231df44400669c6a298a9f6", "score": "0.7333447", "text": "public function toArray()\n {\n return array($this->name => $this->data);\n }", "title": "" }, { "docid": "21f2aa362215e8b869fb4fc026d902e5", "score": "0.7329829", "text": "public function toArray()\n {\n return [\n //\n ];\n }", "title": "" }, { "docid": "a49866bcbe53b98390c76db3f84ba7ba", "score": "0.73274016", "text": "function asArray(){\n\t\t\t$array = $this->toArray( $this );\n\t\t\treturn $array;\n\t\t}", "title": "" }, { "docid": "b0995ca518c9e79377880fa3b0c73554", "score": "0.7327308", "text": "public function toArray()\n {\n $data = array();\n $class = $this->_modelClass;\n if (!$this->raw)\n foreach ($this->_dbResult as $d)\n $data[] = $class::build($d);\n else\n {\n $fields = $class::fields();\n foreach ($this->_dbResult as $d)\n $data[] = $class::datacast($d, $fields);\n }\n return $data;\n }", "title": "" }, { "docid": "25c074b001cfa48684cad8b3d9e3246b", "score": "0.73253274", "text": "public function toArray() {\n return (array) $this->data;\n }", "title": "" }, { "docid": "fcdbf04b1d488e2a5a4ce75efbbb4ed4", "score": "0.7320679", "text": "public function toArray()\r\n\t{\r\n\t\treturn $this->_data;\r\n\t}", "title": "" }, { "docid": "2f813969867d136df77fb939beaf3f5b", "score": "0.73176175", "text": "public function toArray()\n {\n return ['Coordinates' => parent::toArray()];\n }", "title": "" }, { "docid": "7f762b373477f1dfba5611ee9f1258f5", "score": "0.7313683", "text": "public function toArray() {\n\t\treturn array(\n\t\t\tself::FIELD_ID=>$this->getId(),\n\t\t\tself::FIELD_MEMBER_NO=>$this->getMemberNo(),\n\t\t\tself::FIELD_CATEGORY=>$this->getCategory(),\n\t\t\tself::FIELD_SUBJECT=>$this->getSubject(),\n\t\t\tself::FIELD_RESPONSE_DATE=>$this->getResponseDate(),\n\t\t\tself::FIELD_SUBMISSION_DATE=>$this->getSubmissionDate(),\n\t\t\tself::FIELD_RESPONSE=>$this->getResponse(),\n\t\t\tself::FIELD_DESCRIPTION=>$this->getDescription(),\n\t\t\tself::FIELD_RESPONDED_TO=>$this->getRespondedTo(),\n\t\t\tself::FIELD_RESPONDED_BY=>$this->getRespondedBy(),\n\t\t\tself::FIELD_RESPONCEDATE=>$this->getResponcedate(),\n\t\t\tself::FIELD_RESPONCE=>$this->getResponce());\n\t}", "title": "" }, { "docid": "50889d1b2e654d7bfcba6c4dc8db5cc4", "score": "0.73062867", "text": "function toArray()\n {\n return $this->_ary;\n }", "title": "" }, { "docid": "89843a3f377aa96fa84a3cec74441c51", "score": "0.7305867", "text": "public function toArray()\n {\n \n \tforeach ($this as $attribute => $value) {\n \t\tif (is_object($value)) {\n \t\t\tif(get_class($value) == 'Doctrine\\\\ORM\\\\PersistentCollection'){\n \t\t\t\t$data[$attribute] = $value->toArray(true);\n \t\t\t\tforeach ($data[$attribute] as $att => $val){\n \t\t\t\t\t$data[$attribute][$att] = $val->toArray();\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\telse{\n \t\t\t$data[$attribute]= $value;\n \t\t}\n \t}\n \treturn $data;\n }", "title": "" }, { "docid": "2207c9fc955c9939790ea764f1ae6100", "score": "0.73008174", "text": "protected function toArray()\n {\n return [\n 'student_id' => $this->student->id,\n 'name' => $this->student->name,\n 'grades' => $this->student->getGrades(),\n 'avrage' => $this->avrage,\n 'final_result' => $this->finalResult\n ];\n }", "title": "" }, { "docid": "a7ac0f602ddef8d5674828caaed1149e", "score": "0.7297815", "text": "public function toArray(): array\n {\n return [\n \"id\" => $this->id,\n \"client_id\" => $this->client_id,\n \"native_account_type_name\" => $this->native_account_type_name,\n \"native_account_type_description\" => $this->native_account_type_description,\n \"nativeAccountTypeTrailers\" => $this->nativeAccountTypeTrailers->toArray(),\n\n \"created_at\" => $this->perhaps_format_date($this->created_at),\n \"updated_at\" => $this->perhaps_format_date($this->updated_at),\n\n \"model_name\" => self::class,\n ];\n }", "title": "" }, { "docid": "e5ea835cf1f3a889f056d6995f51dacb", "score": "0.72968334", "text": "public function toArray()\n {\n return (array)$this->data;\n }", "title": "" }, { "docid": "398230710fc051b82aa7c8103af8b18b", "score": "0.729563", "text": "public function toArray()\n {\n $array = parent::toArray();\n\n return $array;\n }", "title": "" }, { "docid": "1e6b65ce07dc5c0f9a1480c7748e16b4", "score": "0.72934145", "text": "public function toArray()\n {\n \tforeach ($this as $attribute => $value) {\n \t\tif (is_object($value)) {\n \t\t\tif(get_class($value) == 'Doctrine\\\\ORM\\\\PersistentCollection'){\n \t\t\t\t$data[$attribute] = $value->toArray(true);\n \t\t\t\tforeach ($data[$attribute] as $att => $val){\n \t\t\t\t\t$data[$attribute][$att] = $val->toArray();\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\telse{\n \t\t\t $data[$attribute]= $value;\n \t\t}\n \t} \t \n \treturn $data;\n }", "title": "" }, { "docid": "77e2f824347996579b39d175139f41ab", "score": "0.72781676", "text": "public function toArray(){\n return array();\n }", "title": "" }, { "docid": "b51dfef89423062466e54aaeaa587bdd", "score": "0.7274217", "text": "public function toArray()\n {\n return [\n 'notifiable_ids' => $this->notifiableIds,\n 'content' => $this->content,\n 'data' => $this->data,\n ];\n }", "title": "" }, { "docid": "c55a0078a92176095b520c95dd00257c", "score": "0.7273305", "text": "public function toArray(): array\n {\n return [\n 'id' => $this->id,\n 'name' => $this->name,\n ];\n }", "title": "" }, { "docid": "f97e62acfd52cf63f9ed769fd5f746fa", "score": "0.72664595", "text": "public function getArray()\n {\n return $this->toArray();\n }", "title": "" }, { "docid": "fbd4beab9c67162264244736291bbe23", "score": "0.7263286", "text": "public function toArray()\n {\n return [\n 'id' => $this->id,\n 'name' => $this->name,\n 'street_address' => $this->street_address,\n 'zip' => $this->zip,\n 'city' => $this->city,\n 'country' => $this->country,\n 'opening_times' => $this->opening_times,\n 'opening_times_label' => $this->opening_times_label,\n ];\n }", "title": "" }, { "docid": "b4bff3327eac865ec7370675b54589ca", "score": "0.72623557", "text": "public function toArray()\n {\n return [\n 'id' => $this->id,\n 'first_name' => $this->firstName,\n 'last_name' => $this->lastName,\n 'gender' => $this->gender,\n 'lat' => $this->lat,\n 'lon' => $this->lon,\n ];\n }", "title": "" }, { "docid": "e6b97a15784cfd182204b4c3d446128a", "score": "0.7258218", "text": "public function toArray()\n\t{\n\t\treturn array(\n\t\t\t'field' => $this->field,\n\t\t\t'direction' => $this->direction,\n\t\t);\n\t}", "title": "" }, { "docid": "215ed2a3291546a6b80207e0961843ed", "score": "0.72575694", "text": "public function toArray()\n {\n return [\n 'name' => $this->getName(),\n 'value' => $this->getValue()\n ];\n }", "title": "" }, { "docid": "aa350b5ae4ef8c642a302eb5ac279efc", "score": "0.72555345", "text": "public function toArray() {\n return array(\n 'id' => $this->id,\n 'name' => $this->name,\n 'email' => $this->email,\n 'dateFormat' => $this->dateFormat,\n 'fieldOfActivity' => $this->fieldOfActivity,\n 'phone' => $this->phone,\n );\n }", "title": "" }, { "docid": "08ab086dd00367b243833002b8301d02", "score": "0.72545177", "text": "public function toArray () {}", "title": "" }, { "docid": "65c006f45352d752ca8a474d9d9d012e", "score": "0.7247251", "text": "public function toArray()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "65c006f45352d752ca8a474d9d9d012e", "score": "0.7247251", "text": "public function toArray()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "65c006f45352d752ca8a474d9d9d012e", "score": "0.7247251", "text": "public function toArray()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "65c006f45352d752ca8a474d9d9d012e", "score": "0.7247251", "text": "public function toArray()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "65c006f45352d752ca8a474d9d9d012e", "score": "0.7247251", "text": "public function toArray()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "789bbca0f0135ed47cea68f27cdb69e1", "score": "0.724634", "text": "public function toArray()\n {\n\n return [];\n\n }", "title": "" }, { "docid": "bb9260b88ce1898a3d8d8f08e3c9bc0c", "score": "0.72446245", "text": "public function toArray() {\n\t\treturn [\n\t\t\t'priority' => $this->getPriority(),\n\t\t\t'type' => $this->getType(),\n\t\t];\n\t}", "title": "" }, { "docid": "6aa6fd7940edc579dac80e0bd72b3c5e", "score": "0.72445846", "text": "public function toArray()\n {\n return [\n 'price' => $this->price,\n 'qty' => $this->tierQuantity\n ];\n }", "title": "" }, { "docid": "7663a45d98075eb7a4c4326a6f56e5cc", "score": "0.72372496", "text": "public function toArray()\n {\n return array(\n 'id' => $this->getId(),\n 'customer' => $this->getCustomer()->toArray(),\n 'items' => $this->getItemsAsArray(),\n 'discounts' => $this->getDiscountsAsArray(),\n 'shipments' => $this->getShipmentsAsArray(),\n 'tax_rate' => $this->getTaxRate(),\n 'include_tax' => $this->getIncludeTax(),\n 'discount_taxable_last' => $this->getDiscountTaxableLast(),\n );\n }", "title": "" }, { "docid": "d07b0eb1b1ed09045a935961930114a4", "score": "0.72367096", "text": "public function toArray()\n {\n // TODO: Implement toArray() method.\n }", "title": "" }, { "docid": "f2a9ea38b2041450bfe04b738c90c037", "score": "0.72327983", "text": "public function toArray()\n {\n }", "title": "" }, { "docid": "dfb7769f950e8ea1144a6f87837d4e59", "score": "0.7219809", "text": "public function toArray() {\n return [\n 'id' => $this->id,\n 'name' => $this->name,\n 'nickname' => $this->nickname,\n 'description' => $this->description,\n 'icon' => $this->icon,\n 'createdAt' => $this->createdAt->format(DateTimeInterface::ATOM),\n 'updatedAt' => $this->updatedAt->format(DateTimeInterface::ATOM),\n 'deletedAt' => $this->deletedAt !== null ? $this->deletedAt->format(DateTimeInterface::ATOM) : null\n ];\n }", "title": "" }, { "docid": "c189eacf68b4f754c092118db6cb1c52", "score": "0.7217598", "text": "public function toArray()\n {\n $attributes = $this->getArrayableAttributes();\n\n return $this->attributesToArray($attributes);\n }", "title": "" }, { "docid": "a2aaee53fe21620e8d5e6061ddc9ec18", "score": "0.721588", "text": "public function toArray() // untested\n {\n return $this->_data;\n }", "title": "" }, { "docid": "273ead7a84837139c4b59be9dae17447", "score": "0.7208977", "text": "public function toArray(): array\n {\n return $this->data();\n }", "title": "" }, { "docid": "802735307848acbb851578f096bac82b", "score": "0.71961194", "text": "public function toArray()\n {\n $this->data->id = $this->id;\n\n return json_decode(json_encode($this->data), true);\n }", "title": "" }, { "docid": "8be635dfd53972038bc7fff7d4adc573", "score": "0.7195707", "text": "public function toArray()\n {\n return [\n 'batch_id' => $this->batchId,\n 'first_name' => $this->firstName,\n 'tribe_slug' => $this->tribeSlug,\n 'last_name' => $this->lastName,\n 'email' => $this->email,\n 'role' => $this->role,\n 'about' => $this->about,\n 'avatar' => $this->avatar,\n ];\n }", "title": "" }, { "docid": "8474fba4aa91204cd9bcc7b7d75bf332", "score": "0.7194532", "text": "public function toArray(){\n\t\t\n\t}", "title": "" } ]
dd2e69ce86c57abbfe1b709c55fa61fe
Method used to get the full list of reporters associated with a given list of issues.
[ { "docid": "589c9b0bd00c4dcaf35ff175b6354da9", "score": "0.72410303", "text": "function getReportersByIssues(&$result)\n {\n $ids = array();\n for ($i = 0; $i < count($result); $i++) {\n $ids[] = $result[$i][\"iss_id\"];\n }\n $ids = implode(\", \", $ids);\n $stmt = \"SELECT\n iss_id,\n CONCAT(usr_full_name, ' <', usr_email, '>') AS usr_full_name\n FROM\n \" . APP_DEFAULT_DB . \".\" . APP_TABLE_PREFIX . \"issue,\n \" . APP_DEFAULT_DB . \".\" . APP_TABLE_PREFIX . \"user\n WHERE\n iss_usr_id=usr_id AND\n iss_id IN ($ids)\";\n $res = DB_Helper::getInstance()->getAssoc($stmt);\n if (PEAR::isError($res)) {\n Error_Handler::logError(array($res->getMessage(), $res->getDebugInfo()), __FILE__, __LINE__);\n } else {\n // now populate the $result variable again\n for ($i = 0; $i < count($result); $i++) {\n @$result[$i]['reporter'] = $res[$result[$i]['iss_id']];\n }\n }\n }", "title": "" } ]
[ { "docid": "4c51067e6c64ccfab49ed4b6ec2104cf", "score": "0.6015116", "text": "public function reportedBy()\n {\n return $this->reports()\n ->with('user')\n ->get()\n ->mapWithKeys(function ($item) {\n return [$item['user']];\n });\n }", "title": "" }, { "docid": "0e34798594ee73a579af397fefada246", "score": "0.59813213", "text": "public function getIssues(): array\n {\n return $this->issues;\n }", "title": "" }, { "docid": "92128c0edc3ede6dc097b5441f3f871b", "score": "0.5950696", "text": "public function getForestWorkReporters()\n {\n return $this->hasMany(ForestWorkReporter::className(), ['reporter_branch' => 'branch_id']);\n }", "title": "" }, { "docid": "98c30abaccaaad19cc73a431d900c136", "score": "0.5893287", "text": "public function getReports(): array\n {\n return $this->reports;\n }", "title": "" }, { "docid": "b5b4b3dbfa61572f9fff90c8337a66de", "score": "0.588563", "text": "public function getReports()\n {\n return $this->reports;\n }", "title": "" }, { "docid": "5e13cd178003643b72bd238a9870528a", "score": "0.58211076", "text": "public function getIssuesList()\n {\n $opUrl = $this->constructOpUrl();\n $opUrl .= 'issues/';\n\n $result = CurlWrapper::getResult($opUrl);\n\n if($result != 'Not Found')\n {\n $arrayResult = json_decode($result, true);\n\n $issues = array();\n\n for($i = 0; $i < count($arrayResult['issues']); $i++)\n {\n $issue = $arrayResult['issues'][$i];\n\n $issues[$i]['number'] = $issue['local_id'];\n $issues[$i]['title'] = $issue['title'];\n $issues[$i]['content'] = $issue['content'];\n $issues[$i]['comments'] = $issue['comment_count'];\n $issues[$i]['assignee'] = $issue->assignee;\n $issues[$i]['id'] = $issue->id;\n $issues[$i]['state'] = $issue['status'];\n $issues[$i]['url'] = $issue->url;\n $issues[$i]['created_at'] = $issue['created_on'];\n $issues[$i]['user']['username'] = $issue['reported_by']['username'];\n $issues[$i]['user']['url'] = '#';\n $issues[$i]['user']['first_name'] = $issue['reported_by']['first_name'];\n $issues[$i]['user']['last_name'] = $issue['reported_by']['last_name'];\n }\n } else {\n throw new CException(Yii::t('issues', 'Failed to get issues'));\n }\n\n $dataProvider = new CArrayDataProvider($issues, array('keyField'=>'number'));\n\n return $dataProvider;\n }", "title": "" }, { "docid": "e81c78a296aeb128a7c32e9ec5506340", "score": "0.58047813", "text": "public function getPublishersReport(array $publishers, Params $params);", "title": "" }, { "docid": "8145dad14a9fdff52d44a5306a169268", "score": "0.57977855", "text": "function getAssignedIssuesArray(){\r\n\t\treturn HeadlineIssueQuery::create()->filterByHeadline($this)->select('Issueid')->find()->toArray();\r\n\t}", "title": "" }, { "docid": "1e953f65305b400b16080f30af909f56", "score": "0.5789338", "text": "public function getReportData(array $issues)\n {\n $totals = [\n \"errors\" => 0,\n \"warnings\" => 0,\n \"fixable\" => 0,\n ];\n\n $files = [];\n foreach ($issues as $issue) {\n $filename = $issue->getFile();\n if (!key_exists($filename, $files)) {\n $files[$filename] = (object)[\n \"errors\" => 0,\n \"warnings\" => 0,\n \"fixable\" => 0,\n \"messages\" => [],\n ];\n }\n\n if ($issue->getType() === 'warning') {\n $totals['warnings']++;\n $files[$filename]->warnings++;\n } elseif ($issue->getType() === 'error') {\n $totals['errors']++;\n $files[$filename]->errors++;\n }\n if ($issue->isFixable()) {\n $totals['fixable']++;\n $files[$filename]->fixable++;\n }\n\n $files[$filename]->messages[] = (object)[\n \"message\" => $issue->getMessage(),\n \"source\" => $issue->getSource(),\n \"severity\" => $issue->getSeverity(),\n \"fixable\" => $issue->isFixable(),\n \"type\" => $issue->getType(),\n \"line\" => $issue->getLine(),\n \"column\" => $issue->getColumn(),\n ];\n }\n\n return (object)[\n 'totals' => (object)$totals,\n 'files' => (object)$files,\n ];\n }", "title": "" }, { "docid": "33d8b4ed8118ca280f9fdae08c40cc1a", "score": "0.5756796", "text": "public function getIssues()\n {\n return $this->issues;\n }", "title": "" }, { "docid": "33d8b4ed8118ca280f9fdae08c40cc1a", "score": "0.5756796", "text": "public function getIssues()\n {\n return $this->issues;\n }", "title": "" }, { "docid": "07308867191c4f5a4a7d24efb1eadc76", "score": "0.5685112", "text": "public function getIssues($params)\n {\n return array();\n }", "title": "" }, { "docid": "b5b9afcbd77c8b3dc1333278ee3302a4", "score": "0.56536365", "text": "public function getReports(): array;", "title": "" }, { "docid": "07962748ed917e56ee1a2d811e01df89", "score": "0.5650779", "text": "public function getReports()\n {\n return $this->data['reports'];\n }", "title": "" }, { "docid": "5b6a18211c667c2ed48d616f546d0e9b", "score": "0.5649248", "text": "function getQuarantinedIssueList()\n {\n // XXX: would be nice to restrict the result list to only one project\n $stmt = \"SELECT\n iss_id,\n iss_summary\n FROM\n \" . APP_DEFAULT_DB . \".\" . APP_TABLE_PREFIX . \"issue,\n \" . APP_DEFAULT_DB . \".\" . APP_TABLE_PREFIX . \"issue_quarantine\n WHERE\n iqu_iss_id=iss_id AND\n iqu_expiration >= '\" . Date_Helper::getCurrentDateGMT() . \"' AND\n iqu_expiration IS NOT NULL\";\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 }\n\n self::getAssignedUsersByIssues($res);\n return $res;\n }", "title": "" }, { "docid": "9067b56b1e1b84b96789b831a45361f3", "score": "0.5581036", "text": "public function findAll(): array\n {\n return $this->reports;\n }", "title": "" }, { "docid": "0da8cfaa353e3510d8751f60015cae26", "score": "0.5578123", "text": "public function getReport()\n {\n return $this->_reporter->getReports();\n }", "title": "" }, { "docid": "584121d6af3fcbd6899a79838b12cba5", "score": "0.55525625", "text": "public function getFormattedIssueList() {\n $formattedList = \"\";\n\n // make a copy, the initial issueList may be already sorted on different criteria\n $sortedList = $this->issueList; \n ksort($sortedList, SORT_NUMERIC);\n\n foreach ($sortedList as $bugid => $issue) {\n \n if (\"\" != $formattedList) {\n $formattedList .= ', ';\n }\n\n $titleAttr = array(\n T_('Project') => $issue->getProjectName(),\n T_('Summary') => $issue->getSummary(),\n );\n $extRef = $issue->getTcId();\n if ((!is_null($extRef)) && ('' != $extRef)) {\n $titleAttr[T_('ExtRef')] = $extRef;\n }\n $formattedList .= Tools::issueInfoURL($bugid, $titleAttr);\n }\n return $formattedList;\n }", "title": "" }, { "docid": "7fd87670c4808032cc8fd1e418841a10", "score": "0.5543817", "text": "public function fetchreportees(){\n\t\t\t$resultArr\t=\tarray();\n\t\t\t$resultArr['errorCode']\t\t=\t1;\n\t\t\t$resultArr['errorStatus']\t=\t'Not in use';\n\t\t\treturn json_encode($resultArr);\t\t\t\n\t\t}", "title": "" }, { "docid": "29f19bf5ca6c360a850f50fc084f09ef", "score": "0.55435914", "text": "public function getReportList(array $params = []):WebfleetResponse;", "title": "" }, { "docid": "5ded8f7fce358a773a825bf3fb2a858e", "score": "0.5541306", "text": "public function reports()\n {\n return $this->has_many('Report');\n }", "title": "" }, { "docid": "f509e61bcf528fae519e8aa2f5888a23", "score": "0.55086094", "text": "function listIssues($client) {\n global $userorg, $repo, $output;\n $paginator = new Github\\ResultPager($client);\n\n // get list of labels\n $ghlabels = $client->api('issue')->labels()->all($userorg,$repo);\n $labels = array();\n foreach ( $ghlabels as $ghlabel )\n $labels[] = str_replace(\"\\t\",\" \",$ghlabel['name']);\n\n // get list of issues\n //$ghissues = $client->api('issue')->all($userorg,$repo);\n $params = array($userorg,$repo,array('state'=>'all'));\n $ghissues = $paginator->fetchAll($client->api('issue'), 'all', $params);\n //print_r($ghissues);\n $issues = array();\n foreach ( $ghissues as $ghissue ) {\n if ( isset($ghissue['pull_request']) )\n\t continue;\n $ilabels = array();\n foreach ( $ghissue['labels'] as $l )\n $ilabels[] = $l['name'];\n $issues[] = array('number'=>$ghissue['number'],\n\t\t 'state'=>(($ghissue['closed_at']==\"\")?\"open\":\"closed\"),\n\t\t 'title'=>$ghissue['title'], \n\t\t 'labels'=>$ilabels);\n }\n //print_r($issues);\n\n // CSV output format\n if ( $output )\n $fp = fopen($output,\"w\");\n else\n $fp = fopen(\"php://stdout\", \"w\");\n foreach ( $issues as $issue ) {\n fwrite ($fp, $userorg . \",\" . $repo . \",\" . $issue['number'] . \",\" . $issue['state'] . \",\\\"\" . str_replace(\"\\t\",\" \",str_replace('\"','\\\\\"',$issue['title'])) . \"\\\",\\\"\" . implode(\",\",$issue['labels']) . \"\\\"\\n\");\n }\n fclose($fp);\n}", "title": "" }, { "docid": "ac77432d9dffe1fc8940948fd7207315", "score": "0.5498456", "text": "public function getJiraIssues()\n {\n return $this->jiraIssues;\n }", "title": "" }, { "docid": "ac77432d9dffe1fc8940948fd7207315", "score": "0.5498456", "text": "public function getJiraIssues()\n {\n return $this->jiraIssues;\n }", "title": "" }, { "docid": "978e3c8a7d57c4fe6d351b81f2b378a3", "score": "0.5497576", "text": "public function getOpenReports(): array\n {\n return array_map(function (ReportModel $report): Report {\n return new Report($this, $report);\n }, $this->threads->getOpenReports());\n }", "title": "" }, { "docid": "83e7b642234ec3f657265963ac0141d9", "score": "0.5477549", "text": "public function getAllReporters($uCount)\n {\n $reporters = array();\n $uNames = '';\n $reporterstring = array();\n $userTaskRepository = $this->em\n ->getRepository('VlreleasesUserBundle:UserTask');\n for ($usersId = 1, $i = 1; $usersId <= $uCount; $usersId++, $i++) {\n $result[$i] = $userTaskRepository->getReporter($usersId);\n if (count($result[$i]) > 0) {\n for ($uId = 0; $uId < sizeof($result[$i]); $uId++) {\n\n $uNames.= $result[$i][$uId]['userName'] . ',';\n }\n $uNames = trim($uNames, ',');\n\n $reporters[$usersId] = $uNames;\n $uNames = '';\n } else {\n $reporters[$usersId] = \"empty\";\n }\n }\n\n return $reporters;\n }", "title": "" }, { "docid": "86538b13e46c727834c304670748d46d", "score": "0.53652847", "text": "public static function getAssignedUsersByIssues(&$result)\n {\n $ids = array();\n for ($i = 0; $i < count($result); $i++) {\n $ids[] = $result[$i][\"iss_id\"];\n }\n if (count($ids) < 1) {\n return;\n }\n $ids = implode(\", \", $ids);\n $stmt = \"SELECT\n isu_iss_id,\n usr_full_name\n FROM\n \" . APP_DEFAULT_DB . \".\" . APP_TABLE_PREFIX . \"issue_user,\n \" . APP_DEFAULT_DB . \".\" . APP_TABLE_PREFIX . \"user\n WHERE\n isu_usr_id=usr_id AND\n isu_iss_id IN ($ids)\";\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 } else {\n $t = array();\n for ($i = 0; $i < count($res); $i++) {\n if (!empty($t[$res[$i]['isu_iss_id']])) {\n $t[$res[$i]['isu_iss_id']] .= ', ' . $res[$i]['usr_full_name'];\n } else {\n $t[$res[$i]['isu_iss_id']] = $res[$i]['usr_full_name'];\n }\n }\n // now populate the $result variable again\n for ($i = 0; $i < count($result); $i++) {\n @$result[$i]['assigned_users'] = $t[$result[$i]['iss_id']];\n }\n }\n }", "title": "" }, { "docid": "18b1b50acdc5e9e935841bbf62cfee17", "score": "0.5352567", "text": "public function getMatchReports() {\n\t\tif (!$this->matchReports)\n\t\t\t$this->matchReports = MatchReport::get(null, $this->id);\n\t\treturn $this->matchReports;\n\t}", "title": "" }, { "docid": "17d9d81d953be2a93b6c33695a2f0d2e", "score": "0.5351796", "text": "public function issues()\n {\n return $this->hasMany(Issue::class);\n }", "title": "" }, { "docid": "98f0aab4fb758fa0f6ee0e4864f67ebe", "score": "0.53503585", "text": "public function reports()\n {\n return $this->morphMany(Report::class, 'reportable');\n }", "title": "" }, { "docid": "98f0aab4fb758fa0f6ee0e4864f67ebe", "score": "0.53503585", "text": "public function reports()\n {\n return $this->morphMany(Report::class, 'reportable');\n }", "title": "" }, { "docid": "98f0aab4fb758fa0f6ee0e4864f67ebe", "score": "0.53503585", "text": "public function reports()\n {\n return $this->morphMany(Report::class, 'reportable');\n }", "title": "" }, { "docid": "9557738391e92ab5d1cd27a8772073d3", "score": "0.53390807", "text": "public function searchReporterDetails($userDetails)\n {\n $reporters[] = array();\n $uNames = '';\n $userTaskRepository = $this->em\n ->getRepository('VlreleasesUserBundle:UserTask');\n if (count($userDetails) > 0) {\n for ($i = 0; $i < count($userDetails); $i++) {\n $result[$i] = $userTaskRepository\n ->getReporter($userDetails[$i]['id']);\n if (count($result[$i]) > 0) {\n for ($uId = 0; $uId < sizeof($result[$i]); $uId++) {\n\n $uNames.= $result[$i][$uId]['userName'] . ',';\n }\n $uNames = trim($uNames, ',');\n\n $reporters[$i] = $uNames;\n $uNames = '';\n } else {\n $reporters[$i] = \"empty\";\n }\n }\n }\n\n return $reporters;\n }", "title": "" }, { "docid": "20987a20e4ba801f1e18b446f0f41da3", "score": "0.53004193", "text": "protected function getReports ()\n {\n return Report::where('content_id', '!=', '-1')->orderBy('created_at', 'asc')->get();\n }", "title": "" }, { "docid": "71f51ed0757b5a6d12bcf3fd9804787a", "score": "0.529472", "text": "public function reports()\n {\n return $this->hasMany(Report::class);\n }", "title": "" }, { "docid": "1cd7b754d7044f8058a58aea4d5473b8", "score": "0.5272143", "text": "public function getResponders() {\n\t\t// list of workers who are assigned.\n\t\t$prefs_table = SCHEDULE_PREFS_TABLE;\n\t\t$auth_user_table = AUTH_USER_TABLE;\n\t\t$sql = <<<EOSQL\n\t\t\tSELECT a.id as id, a.username as username\n\t\t\t\tFROM {$auth_user_table} as a, {$prefs_table} as p\n\t\t\t\tWHERE a.id=p.worker_id\n\t\t\t\tGROUP BY p.worker_id;\nEOSQL;\n\t\t$responders = [];\n\t\tforeach ($this->mysql_api->get($sql) as $row) {\n\t\t\t$responders[$row['id']] = $row['username'];\n\t\t}\n\n\t\treturn $responders;\n\t}", "title": "" }, { "docid": "1c7fccaaa199da240427606bf39b7d0e", "score": "0.5270702", "text": "public function reports()\n {\n return $this->morphMany('Swapstr\\Report', 'target');\n }", "title": "" }, { "docid": "02a552ec01cd66d22d7f4801c36b9f7b", "score": "0.52612156", "text": "public function findByIssues($issues, $dates = null)\n {\n $builder = $this->createQueryBuilder('stat');\n\n if ($dates !== null) {\n $builder\n ->andWhere('stat.date IN (:dates)')\n ->setParameter('dates', $dates);\n }\n\n $builder\n ->andWhere('stat.issue IN (:issues)')\n ->orderBy('stat.date', 'DESC')\n ->setParameter('issues', $issues);\n\n return $builder->getQuery()->getResult();\n }", "title": "" }, { "docid": "a3a8dd5f7f02ab3f0134c55b0cbe49f8", "score": "0.5247826", "text": "function appthemes_get_reports( $args = array() ) {\n\treturn APP_Report_Factory::get_reports( $args );\n}", "title": "" }, { "docid": "6d82cf0365d58b4b376f3a111d1d43bb", "score": "0.52151", "text": "public function issues()\n {\n return $this->belongsToMany(Issue::class);\n }", "title": "" }, { "docid": "a47e74ef3b7e7212cd472ebddee37cc0", "score": "0.52110124", "text": "public function getIssuers()\n {\n $issuers = array();\n foreach ($this->data as $issuer) {\n $issuers[] = new Issuer($issuer['issuer'], $issuer['name'], 'ideal');\n }\n\n return $issuers;\n }", "title": "" }, { "docid": "06065b0be99a6904c070ec7bedf3912b", "score": "0.5206616", "text": "public function getIdealIssuers()\n {\n $issuers = array();\n if (!$this->showIdealIssuers()) {\n $this->_skipIdealIssuers = true;\n return $issuers;\n }\n\n try {\n foreach ($this->getMollieAPI()->issuers->all() as $issuer) {\n $issuers[] = $issuer;\n }\n } catch (Exception $e) {\n $this->_skipIdealIssuers = true;\n $this->addLog('getIdealIssuers [ERR]', $e->getMessage());\n }\n\n return $issuers;\n }", "title": "" }, { "docid": "9552da6034e90560bd59f63022fa3132", "score": "0.5162739", "text": "function getAssignedUsers($issue_id)\n {\n $stmt = \"SELECT\n usr_full_name\n FROM\n \" . APP_DEFAULT_DB . \".\" . APP_TABLE_PREFIX . \"issue_user,\n \" . APP_DEFAULT_DB . \".\" . APP_TABLE_PREFIX . \"user\n WHERE\n isu_iss_id=\" . Misc::escapeInteger($issue_id) . \" AND\n isu_usr_id=usr_id\";\n $res = DB_Helper::getInstance()->getCol($stmt);\n if (PEAR::isError($res)) {\n Error_Handler::logError(array($res->getMessage(), $res->getDebugInfo()), __FILE__, __LINE__);\n return array();\n }\n\n return $res;\n }", "title": "" }, { "docid": "b8e90494eb1c83e5fb5acc4959526ddc", "score": "0.5159306", "text": "public function get_reportes()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$sql = \"SELECT * FROM reportes\";\n\n\t\t\t\t$result = $this->db->prepare($sql);\n\n\t\t\t\tif(!$result->execute())\n\t\t\t\t{\n\t\t\t\t\techo \"<h1 class='text-danger bg-danger'>\" . \n\t\t\t\t\t\t \"Falla en la consulta!</h1>\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\twhile($reg = $result->fetch(PDO::FETCH_ASSOC))\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->reportes[] = $reg;\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\treturn $this->reportes;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception $e)\n\t\t\t{\n\t\t\t\tdie(\"Error: {$e->getMessage()}\");\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "241222377403b144a5f16840a91c7230", "score": "0.5159194", "text": "public function getAllReports(){\n\t\t\n\t\t$array_return = array();\n\t\t$mydb = new myDBC();\n\t\t$sql = \"SELECT * FROM Report where domain = '$this->domain' order by creation_date DESC;\";\n\t\t$result = $mydb->runQuery($sql);\n\t\tif(isset($result)){\n\t\t\twhile( $row = mysqli_fetch_assoc($result) ){\n\t\t\t\t\n\t\t\t\t$array_return[] = $row;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn $array_return;\n\t\t\n\t}", "title": "" }, { "docid": "deded02e1f913d6d30d97f3899565e37", "score": "0.5142216", "text": "function getListing($issue_id)\n {\n $issue_id = Misc::escapeInteger($issue_id);\n $stmt = \"SELECT\n not_id,\n not_created_date,\n not_title,\n not_usr_id,\n not_unknown_user,\n not_has_attachment,\n not_is_blocked AS has_blocked_message,\n usr_full_name\n FROM\n \" . APP_DEFAULT_DB . \".\" . APP_TABLE_PREFIX . \"note,\n \" . APP_DEFAULT_DB . \".\" . APP_TABLE_PREFIX . \"user\n WHERE\n not_usr_id=usr_id AND\n not_iss_id=$issue_id AND\n not_removed = 0\n ORDER BY\n not_created_date 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 \"\";\n } else {\n // only show the internal notes for users with the appropriate permission level\n $role_id = Auth::getCurrentRole();\n $t = array();\n for ($i = 0; $i < count($res); $i++) {\n if ($role_id < User::getRoleID('standard user')) {\n continue;\n }\n\n // Display not_unknown_user instead of usr_full_name if not null.\n // This is so the original sender of a blocked email is displayed on the note.\n if (!empty($res[$i][\"not_unknown_user\"])) {\n $res[$i][\"usr_full_name\"] = $res[$i][\"not_unknown_user\"];\n }\n\n $res[$i][\"not_created_date\"] = Date_Helper::getFormattedDate($res[$i][\"not_created_date\"]);\n $t[] = $res[$i];\n }\n return $t;\n }\n }", "title": "" }, { "docid": "d5966e8f7535625b80129d82705a280e", "score": "0.51398385", "text": "function summary_print_by_reporter() {\n\t\t$t_mantis_bug_table = config_get( 'mantis_bug_table' );\n\t\t$t_mantis_user_table = config_get( 'mantis_user_table' );\n\t\t$t_reporter_summary_limit = config_get( 'reporter_summary_limit' );\n\n\t\t$t_project_id = helper_get_current_project();\n\t\t$t_user_id = auth_get_current_user_id();\n\n\t\tif ( ALL_PROJECTS == $t_project_id ) {\n\t\t\t# Only projects to which the user have access\n\t\t\t$t_accessible_projects_array = user_get_accessible_projects( $t_user_id );\n\t\t\tif ( count( $t_accessible_projects_array ) > 0 ) {\n\t\t\t\t$specific_where = ' (project_id='. implode( ' OR project_id=', $t_accessible_projects_array ).')';\n\t\t\t} else {\n\t\t\t\t$specific_where = '1=1';\n\t\t\t}\n\t\t} else {\n\t\t\t$specific_where = \" project_id='$t_project_id'\";\n\t\t}\n\n\t\t$query = \"SELECT reporter_id, COUNT(*) as num\n\t\t\t\tFROM $t_mantis_bug_table\n\t\t\t\tWHERE $specific_where\n\t\t\t\tGROUP BY reporter_id\n\t\t\t\tORDER BY num DESC\";\n\t\t$result = db_query( $query, $t_reporter_summary_limit );\n\n\t\twhile ( $row = db_fetch_array( $result ) ) {\n\t\t\t$v_reporter_id = $row['reporter_id'];\n\t\t\t$query = \"SELECT status FROM $t_mantis_bug_table\n\t\t\t\t\tWHERE reporter_id=$v_reporter_id\n\t\t\t\t\tAND $specific_where\";\n\t\t\t$result2 = db_query( $query );\n\n\t\t\t$last_reporter = -1;\n\t\t\t$t_bugs_open = 0;\n\t\t\t$t_bugs_resolved = 0;\n\t\t\t$t_bugs_closed = 0;\n\t\t\t$t_bugs_total = 0;\n\n\t\t\t$t_resolved_val = RESOLVED;\n\t\t\t$t_closed_val = CLOSED;\n\n\t\t\twhile ( $row2 = db_fetch_array( $result2 ) ) {\n\t\t\t\t$t_bugs_total++;\n\n\t\t\t\tswitch( $row2['status'] ) {\n\t\t\t\t\tcase $t_resolved_val:\t$t_bugs_resolved++;\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase $t_closed_val:\t\t$t_bugs_closed++;\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\t\t\t\t$t_bugs_open++;\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( 0 < $t_bugs_total ) {\n\t\t\t\t$t_user = user_get_name( $v_reporter_id );\n\n\t\t\t\t$result3 = db_query( $query );\n\t\t\t\t$row3 = db_fetch_array( $result3 );\n\n\t\t\t\t$t_bug_link = '<a class=\"subtle\" href=\"' . config_get( 'bug_count_hyperlink_prefix' ) . '&amp;reporter_id=' . $v_reporter_id;\n\t\t\t\tif ( 0 < $t_bugs_open ) {\n\t\t\t\t\t$t_bugs_open = $t_bug_link . '&amp;hide_status=' . RESOLVED . '\">' . $t_bugs_open . '</a>';\n\t\t\t\t}\n\t\t\t\tif ( 0 < $t_bugs_resolved ) {\n\t\t\t\t\t$t_bugs_resolved = $t_bug_link . '&amp;show_status=' . RESOLVED . '&amp;hide_status=' . CLOSED . '\">' . $t_bugs_resolved . '</a>';\n\t\t\t\t}\n\t\t\t\tif ( 0 < $t_bugs_closed ) {\n\t\t\t\t\t$t_bugs_closed = $t_bug_link . '&amp;show_status=' . CLOSED . '&amp;hide_status=\">' . $t_bugs_closed . '</a>';\n\t\t\t\t}\n\t\t\t\tif ( 0 < $t_bugs_total ) {\n\t\t\t\t\t$t_bugs_total = $t_bug_link . '&amp;hide_status=\">' . $t_bugs_total . '</a>';\n\t\t\t\t}\n\n\t\t\t\tsummary_helper_print_row( $t_user, $t_bugs_open, $t_bugs_resolved, $t_bugs_closed, $t_bugs_total );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7d7308ce977c633cb1676f9ffef675d6", "score": "0.5130333", "text": "public function getIssues()\n {\n if (array_key_exists(\"issues\", $this->_propDict)) {\n return $this->_propDict[\"issues\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "698f1fbb3f6ea9948161bb78dea418bd", "score": "0.51030487", "text": "public function getList($username, $repo, $state = 'open')\n {\n //$response = $this->get('issues/list/'.urlencode($username).'/'.urlencode($repo).'/'.urlencode($state));\n\t\t$allIssues=array();\n\t\t$response = $this->get('repos/'.urlencode($username).'/'.urlencode($repo).'/issues?state='.$state.'&per_page=100');\n\t\t$allIssues = array_merge($response,$allIssues);\n\t\t$page=2;\n\t\twhile(sizeof($response)==100){\n\t\t\t$response = $this->get('repos/'.urlencode($username).'/'.urlencode($repo).'/issues?state='.$state.'&per_page=100&page='.$page);\n\t\t\t$allIssues = array_merge($response,$allIssues);\n\t\t\t$page++;\n\t\t}\n return $allIssues;\n }", "title": "" }, { "docid": "485a08c285b63fe735687bae2fd3a323", "score": "0.5100473", "text": "function get_enabledreports($report_ids=null)\t{\n\n $unwantedcourses\t=\t(!empty($report_ids)) ? \" AND id NOT IN (\".implode(',',$report_ids).\")\": \"\";\n\n $sql\t=\t\"SELECT\t\t*\n \t\t\t\t FROM\t\t{block_ilp_report}\n \t\t\t\t WHERE\t\tstatus\t=\t\".ILP_ENABLED.\n $unwantedcourses;\n\n return\t$this->dbc->get_records_sql($sql);\n }", "title": "" }, { "docid": "754b9619c1dde501b764b9cea2924a09", "score": "0.50968814", "text": "public function index()\n {\n $issues = \\App\\Issue::all();\n\n return $issues->toArray();;\n }", "title": "" }, { "docid": "e56799c97cc8316a8dc8c3656e8c94a8", "score": "0.5094852", "text": "public function runReports() {\n $results = array();\n\n foreach ($this->reports as $report) {\n $result = null;\n try {\n $this->logger->addDebug(\"Running report: \", array($report->getName()));\n $result = $report->compute($this->postgres);\n $this->logger->addDebug(\"Finished report: \", array($report->getName()));\n } catch (\\Exception $e) {\n // Right now, ignore any errors\n }\n if ($result !== null) {\n $results[$report->getName()] = array(\n \"title\" => $report->getName(),\n \"type\" => $report->getType(),\n \"description\" => $report->getDescription(),\n \"result\" => $result);\n if ($report->getHeadings() !== null)\n $results[$report->getName()][\"headings\"] = $report->getHeadings();\n }\n }\n\n return $results;\n }", "title": "" }, { "docid": "3042f0640d32988b3865639d5de5d48d", "score": "0.5085251", "text": "public function issueList()\n\t\t{\n\t\t\t// fetch the data\n\t\t\t$url=$this->apiurl.\"issuemaster/fetch\";\n\t\t\t$resopne1=$this->FetchAllDataModel->FetchAllData($url);\n\t\t\tif($resopne1[1]!=200){\n\t\t\t\twarning();\n\t\t\t}\n\t\t\t$data['records']=json_decode($resopne1[0]);\n\t\t\t$this->load->view('setup/issue',$data);\t\n\t\t}", "title": "" }, { "docid": "cfc25ba5e14355b7f844c8641cc0e2b3", "score": "0.5061621", "text": "public function getIssues($ordered = false, $filterLevel = false)\n {\n $issues = $this->issues;\n if ($filterLevel !== false) {\n $issues = $this->filterIssues($filterLevel);\n }\n\n if ($ordered) {\n $arrayIssues = $issues->toArray();\n usort($arrayIssues, array('StaticReview\\Reporter\\Reporter', 'cmpIssues'));\n $issues = new IssueCollection($arrayIssues);\n }\n\n return $issues;\n }", "title": "" }, { "docid": "f96dbe205694ed3a08d1790f667959ee", "score": "0.50615805", "text": "function getAssociatedIssues($issue_id)\n {\n $issues = self::getAssociatedIssuesDetails($issue_id);\n $associated = array();\n for ($i = 0; $i < count($issues); $i++) {\n $associated[] = $issues[$i]['associated_issue'];\n }\n return $associated;\n }", "title": "" }, { "docid": "22ebf282193c0af5459eac1f2893624d", "score": "0.5059804", "text": "function getAssignedUserEmailHandles($issue_id)\n {\n $stmt = \"SELECT\n usr_id,\n SUBSTRING(usr_email, 1, INSTR(usr_email, '@')-1) AS handle\n FROM\n \" . APP_DEFAULT_DB . \".\" . APP_TABLE_PREFIX . \"issue_user,\n \" . APP_DEFAULT_DB . \".\" . APP_TABLE_PREFIX . \"user\n WHERE\n isu_iss_id=\" . Misc::escapeInteger($issue_id) . \" AND\n isu_usr_id=usr_id\";\n $res = DB_Helper::getInstance()->getAssoc($stmt);\n if (PEAR::isError($res)) {\n Error_Handler::logError(array($res->getMessage(), $res->getDebugInfo()), __FILE__, __LINE__);\n return array();\n }\n\n return array_values($res);\n }", "title": "" }, { "docid": "76985e30a7f4c8fd11c47c73993ecfed", "score": "0.504587", "text": "private function getIssuesInDrift() {\n\n $driftedTasks = array();\n\n if (0 != $this->teamid) {\n\n // get all teams except those where i'm Observer\n #$dTeamList = $this->session_user->getDevTeamList();\n #$mTeamList = $this->session_user->getManagedTeamList();\n #$teamList = $dTeamList + $mTeamList; // array_merge does not work ?!\n\n $teamList = array($this->teamid => $this->teamList[$this->teamid]);\n\n // except disabled projects\n $projList = $this->session_user->getProjectList($teamList, true, false);\n\n $allIssueList = $this->session_user->getAssignedIssues($projList);\n $issueList = array();\n\n foreach ($allIssueList as $issue) {\n $driftEE = $issue->getDrift();\n if ($driftEE >= 1) {\n $issueList[] = $issue;\n }\n }\n if (count($issueList) > 0) {\n foreach ($issueList as $issue) {\n // TODO: check if issue in team project list ?\n $driftEE = $issue->getDrift();\n\n $formatedTitle = $issue->getFormattedIds();\n $formatedSummary = str_replace(\"'\", \"\\'\", $issue->getSummary());\n $formatedSummary = str_replace('\"', \"\\'\", $formatedSummary);\n\n $driftedTasks[] = array('issueInfoURL' => Tools::issueInfoURL($issue->getId()),\n 'projectName' => $issue->getProjectName(),\n 'driftEE' => $driftEE,\n 'formatedTitle' => $formatedTitle,\n 'bugId' => $issue->getId(),\n 'backlog' => $issue->getBacklog(),\n 'formatedSummary' => $formatedSummary,\n 'summary' => $issue->getSummary());\n }\n }\n }\n return $driftedTasks;\n }", "title": "" }, { "docid": "9676424627eb30e3a7667e8ed33caee0", "score": "0.5042434", "text": "public function reports()\n {\n return $this->hasMany('App\\Report');\n }", "title": "" }, { "docid": "5d7cd3a15396a09222f387b61281f591", "score": "0.50275105", "text": "public function getIssues( array $params = null )\r\n {\r\n $response = $this->apiCall(\r\n 'get',\r\n $this->api_url . '/issues',\r\n $params\r\n );\r\n return $response->getRawData();\r\n }", "title": "" }, { "docid": "3e2c4b486b54005746eec7a7c44560b4", "score": "0.50244194", "text": "public function getUnassignedTasks() {\n\n\n $issueList = array();\n\n $query_projects = \"SELECT project.id \".\n \"FROM `mantis_project_table` as project \".\n \"JOIN `codev_team_project_table` as team_project ON project.id = team_project.project_id \".\n \"WHERE team_project.team_id = $this->id \".\n \"AND team_project.type NOT IN (\".Project::type_noStatsProject.', '.Project::type_sideTaskProject.') ';\n\n $query = \"SELECT * \".\n \"FROM `mantis_bug_table` \".\n \"WHERE project_id IN ($query_projects) \".\n \"AND handler_id = '0' \".\n \"AND status < get_project_resolved_status_threshold(project_id) \".\n \"ORDER BY project_id ASC, id ASC\";\n\n $result = SqlWrapper::getInstance()->sql_query($query);\n if (!$result) {\n echo \"<span style='color:red'>ERROR: Query FAILED</span>\";\n exit;\n }\n while($row = SqlWrapper::getInstance()->sql_fetch_object($result)) {\n $issueList[$row->id] = IssueCache::getInstance()->getIssue($row->id, $row);\n }\n\n if(self::$logger->isDebugEnabled()) {\n self::$logger->debug(\"getUnassignedTasks(teamid=$this->id) nbIssues=\".count($issueList));\n }\n return $issueList;\n }", "title": "" }, { "docid": "1b89de3fc09429f8baec9859c35db831", "score": "0.50237113", "text": "public function reports() {\n return $this->hasMany('App\\Report');\n }", "title": "" }, { "docid": "e7832ec4b75564c289f1b0f2fff4fc12", "score": "0.5016572", "text": "public function _get_unverified_reports()\n\t{\n\t\tif ($_POST)\n\t\t{\n\t\t\t$where = \"\\nWHERE i.incident_verified = 0 \";\n\n\t\t\t$where .= \"ORDER BY i.id DESC \";\n\n\t\t\t$limit = \"\\nLIMIT 0, $this->list_limit\";\n\n\t\t\treturn $this->_get_reports($where, $limit);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->response(3);\n\t\t}\n\n\t}", "title": "" }, { "docid": "9511e2d3a7498b8fab8d28c2a32c788a", "score": "0.5012581", "text": "public function reports()\n {\n return $this->hasMany('App\\Report', 'class_id');\n }", "title": "" }, { "docid": "135b6f4c40d566fefc8476152127a0b2", "score": "0.5009907", "text": "public function reports(): MorphToMany\n {\n return $this->morphToMany(Report::class, 'reportable');\n }", "title": "" }, { "docid": "f7831e5b55b1b2e20a3b414b83ea071e", "score": "0.50082815", "text": "public function actionGet()\r\n {\r\n $reports = Reports::find();\r\n $id = \\Yii::$app->user->id;\r\n $roles = \\Yii::$app->authManager->getRolesByUser($id);\r\n\r\n if (!isset($roles[Users::ROLE_ADMIN])) {\r\n $reports->where(['leader_id' => $id]);\r\n }\r\n\r\n $reports->orderBy('id DESC');\r\n\r\n return [\r\n 'list' => $reports->all(),\r\n 'statusList' => Reports::statusList\r\n ];\r\n }", "title": "" }, { "docid": "6faf16bdfbf003b90bf6b87e52c363ce", "score": "0.50001746", "text": "public function getUnanalyzedIssues() : array {\n // that uses a for/while loop instead\n return array_filter($this->openIssues, function(array $issue) {\n return $this->highestAnalyzedIssueNumber < $issue[\"number\"];\n });\n }", "title": "" }, { "docid": "50a2f8070f2aaa3ecb77f619151d1159", "score": "0.49915037", "text": "function getChildIssuesCandidates($teamid) {\n\n $issueArray = array();\n\n\n // team projects except externalTasksProject & NoStats projects\n $projects = Team::getProjectList($teamid);\n $extProjId = Config::getInstance()->getValue(Config::id_externalTasksProject);\n unset($projects[$extProjId]);\n\n $formattedProjectList = implode (', ', array_keys($projects));\n\n $query = \"SELECT * FROM `mantis_bug_table` \".\n \"WHERE project_id IN ($formattedProjectList) \".\n \"AND 0 = is_issue_in_team_commands(id, $teamid) \".\n \"ORDER BY id DESC\";\n\n $result = SqlWrapper::getInstance()->sql_query($query);\n if (!$result) {\n echo \"<span style='color:red'>ERROR: Query FAILED</span>\";\n exit;\n }\n\n //\n while($row = SqlWrapper::getInstance()->sql_fetch_object($result)) {\n\n $issue = IssueCache::getInstance()->getIssue($row->id, $row);\n\n $issueInfo = array();\n //$issueInfo[\"mantisLink\"] = mantisIssueURL($issue->bugId, NULL, true);\n $issueInfo[\"bugid\"] = issueInfoURL(sprintf(\"%07d\\n\", $issue->bugId));\n //$issueInfo[\"bugid\"] = $issue->bugId;\n $issueInfo[\"extRef\"] = $issue->getTC();\n $issueInfo[\"project\"] = $issue->getProjectName();\n $issueInfo[\"target\"] = $issue->getTargetVersion();\n $issueInfo[\"status\"] = $issue->getCurrentStatusName();\n $issueInfo[\"summary\"] = $issue->summary;\n\n $issueArray[$row->id] = $issueInfo;\n\n }\n return $issueArray;\n\n}", "title": "" }, { "docid": "f8118fb687048a1703f7566ac8ee8af0", "score": "0.49914977", "text": "protected function _getAll()\n\t{\n\t\treturn $this->call(\"ticket.resolution.getAll\");\n\t}", "title": "" }, { "docid": "691e48a22524750adfd47aaa16c07866", "score": "0.49905846", "text": "public function reports()\n {\n return $this->hasMany('App\\Report', 'template_id');\n }", "title": "" }, { "docid": "0d7ddd1bfef6e7c26e799803ec680ffc", "score": "0.4987563", "text": "public function _get_verified_reports()\n\t{\n\t\tif ($_POST)\n\t\t{\n\t\t\t$where = \"\\nWHERE i.incident_verified = 1 \";\n\n\t\t\t$where .= \"ORDER BY i.id DESC \";\n\n\t\t\t$limit = \"\\nLIMIT 0, $this->list_limit\";\n\n\t\t\treturn $this->_get_reports($where, $limit);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->response(3);\n\t\t}\n\n\t}", "title": "" }, { "docid": "5a158c11974f34522df1214f566fc277", "score": "0.49412072", "text": "public function getReportTypes(): array\n {\n return $this->tags->reportTypeList();\n }", "title": "" }, { "docid": "323586a5da3648c12c7915cc51f9544f", "score": "0.49314854", "text": "public function providerTestGetIssueUri()\n {\n return [\n ['https://github.com/Gizra/message_subscribe/pull/64.diff',\n 'https://github.com/Gizra/message_subscribe/pull/64'],\n ['https://github.com/Gizra/message_subscribe/pull/64.patch',\n 'https://github.com/Gizra/message_subscribe/pull/64'],\n ['https://patch-diff.githubusercontent.com/raw/Gizra/message_subscribe/pull/64.diff',\n 'https://github.com/Gizra/message_subscribe/pull/64'],\n ['https://patch-diff.githubusercontent.com/raw/Gizra/message_subscribe/pull/64.patch',\n 'https://github.com/Gizra/message_subscribe/pull/64'],\n ['https://github.com/pull/file.diff', '', true],\n ];\n }", "title": "" }, { "docid": "1f838236843e878777fdfd7edc8069a3", "score": "0.4930043", "text": "public function getTeamIssueList($addUnassignedIssues = false, $withDisabledProjects = true) {\n\n $issueList = array();\n\n $projectList = $this->getProjects(true, $withDisabledProjects);\n $memberList = $this->getMembers();\n\n $memberIdList = array_keys($memberList);\n\n if (0 == count($memberIdList)) {\n self::$logger->error(\"getTeamIssues(teamid=$this->id) : No members defined in the team !\");\n }\n\n // add unassigned tasks\n if ($addUnassignedIssues) {\n $memberIdList[] = '0';\n }\n\n if (0 == count($memberIdList)) {\n return $issueList;\n }\n\n $formatedProjects = implode( ', ', array_keys($projectList));\n $formatedMembers = implode( ', ', $memberIdList);\n\n\n if(self::$logger->isDebugEnabled()) {\n self::$logger->debug(\"getTeamIssues(teamid=$this->id) projects=$formatedProjects members=$formatedMembers\");\n }\n\n $query = \"SELECT * \".\n \"FROM `mantis_bug_table` \".\n \"WHERE project_id IN ($formatedProjects) \".\n \"AND handler_id IN ($formatedMembers) \";\n\n $result = SqlWrapper::getInstance()->sql_query($query);\n if (!$result) {\n echo \"<span style='color:red'>ERROR: Query FAILED</span>\";\n exit;\n }\n while($row = SqlWrapper::getInstance()->sql_fetch_object($result)) {\n $issueList[$row->id] = IssueCache::getInstance()->getIssue($row->id, $row);\n }\n\n if(self::$logger->isDebugEnabled()) {\n self::$logger->debug(\"getTeamIssues(teamid=$this->id) nbIssues=\".count($issueList));\n }\n return $issueList;\n }", "title": "" }, { "docid": "dfd30b3f0afc38fb9ebddb435ac0b533", "score": "0.4922898", "text": "function &retrieveArticlesByIssue(&$issue) {\n\t\t$articlesByIssue = array();\n\t\t$cache =& $this->getCache();\n\t\t$issueId = $issue->getId();\n\t\tif (!$cache->isCached('articlesByIssue', $issueId)) {\n\t\t\t$articleDao =& DAORegistry::getDAO('PublishedArticleDAO'); /* @var $articleDao PublishedArticleDAO */\n\t\t\t$articles =& $articleDao->getPublishedArticles($issueId);\n\t\t\tif (!empty($articles)) {\n\t\t\t\tforeach ($articles as $article) {\n\t\t\t\t\t$cache->add($article, $nullVar);\n\t\t\t\t\tunset($article);\n\t\t\t\t}\n\t\t\t\t$cache->markComplete('articlesByIssue', $issueId);\n\t\t\t\t$articlesByIssue = $cache->get('articlesByIssue', $issueId);\n\t\t\t}\n\t\t} else {\n\t\t\t$articlesByIssue = $cache->get('articlesByIssue', $issueId);\n\t\t}\n\t\treturn $articlesByIssue;\n\t}", "title": "" }, { "docid": "0262046a4ebbdd4e42d22f0964da26cb", "score": "0.49140114", "text": "public function getReports(array $ids): array\n {\n return array_map(function (ReportModel $report): Report {\n return new Report($this, $report);\n }, $this->threads->getReports(json_encode($ids)));\n }", "title": "" }, { "docid": "67551e842a02db0e8bae81e5662ed81c", "score": "0.48963287", "text": "public function getReport();", "title": "" }, { "docid": "4323cf94573734ce6acb63385c43fdab", "score": "0.48946676", "text": "public function reports() \n {\n // return $this->hasMany('App\\Report');\n return $this->hasMany(Report::class);\n }", "title": "" }, { "docid": "cbfce04045f523a45f4a274b5c0d955c", "score": "0.4866844", "text": "public function reportGetList($apiKey) {\n return $this->__soapCall('reportGetList', array($apiKey), array(\n 'uri' => 'CRS',\n 'soapaction' => ''\n )\n );\n }", "title": "" }, { "docid": "5181a2bd1a332b01195abdc1263ee218", "score": "0.48604167", "text": "static function printBottomReportsList()\n {\n $debug = eZDebug::instance();\n $reportNames = array_keys( $debug->bottomReportsList );\n foreach ( $reportNames as $reportName )\n {\n echo $debug->bottomReportsList[$reportName];\n }\n }", "title": "" }, { "docid": "4a296011bc91801f7493c961118f4491", "score": "0.485718", "text": "public function getIssuers()\n {\n if (isset($this->data['countryOptionList']['NL']['paymentOptionList'][10]['paymentOptionSubList'])) {\n $issuers = array();\n \n foreach ($this->data['countryOptionList']['NL']['paymentOptionList'][10]['paymentOptionSubList'] as $issuer) {\n $issuers[] = new Issuer($issuer['id'], $issuer['visibleName'], 10);\n }\n\n return $issuers;\n }\n }", "title": "" }, { "docid": "13d838de6fdfc95bca411cc103e7b9ac", "score": "0.4853886", "text": "private function queryRenderersList() {\r\n\t\t$moufManager = MoufManager::getMoufManager();\r\n\t\t$renderersNames = $moufManager->findInstances('Mouf\\\\Html\\\\Renderer\\\\ChainableRendererInterface');\r\n\t\t\r\n\t\tforeach ($renderersNames as $name) {\r\n\t\t\t$renderers[$name] = $moufManager->getInstance($name);\r\n\t\t}\r\n\t\t\r\n\t\t$renderersByType = array();\r\n\t\tforeach ($renderers as $name => $renderer) {\r\n\t\t\t/* @var $renderer ChainableRendererInterface */\r\n\t\t\t$renderersByType[$renderer->getRendererType()][] = $name;\r\n\t\t}\r\n\t\t\r\n\t\t// Now, let's sort the renderers by priority (highest first).\r\n\t\t$renderersByType = array_map(function(array $innerArray) use ($renderers) {\r\n\t\t\tusort($innerArray, function($name1, $name2) use ($renderers) {\r\n\t\t\t\t$item1 = $renderers[$name1];\r\n\t\t\t\t$item2 = $renderers[$name2];\r\n\t\t\t\treturn $item2->getPriority() - $item1->getPriority();\r\n\t\t\t});\r\n\t\t\treturn $innerArray;\r\n\t\t}, $renderersByType);\r\n\t\t\r\n\t\treturn $renderersByType;\r\n\t}", "title": "" }, { "docid": "ee7a438da12d923ab9430f5e922c5f18", "score": "0.48416314", "text": "function getOpenIssues($prj_id, $usr_id, $show_all_issues, $status_id)\n {\n $prj_id = Misc::escapeInteger($prj_id);\n $status_id = Misc::escapeInteger($status_id);\n $projects = Project::getRemoteAssocListByUser($usr_id);\n if (@count($projects) == 0) {\n return '';\n }\n\n $stmt = \"SELECT\n iss_id,\n iss_summary,\n sta_title\n FROM\n (\n \" . APP_DEFAULT_DB . \".\" . APP_TABLE_PREFIX . \"issue,\n \" . APP_DEFAULT_DB . \".\" . APP_TABLE_PREFIX . \"status\n )\n LEFT JOIN\n \" . APP_DEFAULT_DB . \".\" . APP_TABLE_PREFIX . \"issue_user\n ON\n isu_iss_id=iss_id\n WHERE \";\n if (!empty($status_id)) {\n $stmt .= \" sta_id=$status_id AND \";\n }\n $stmt .= \"\n iss_prj_id=$prj_id AND\n sta_id=iss_sta_id AND\n sta_is_closed=0\";\n if ($show_all_issues == false) {\n $stmt .= \" AND\n isu_usr_id=$usr_id\";\n }\n $stmt .= \"\\nGROUP BY\n iss_id\";\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 '';\n }\n\n if (count($res) > 0) {\n self::getAssignedUsersByIssues($res);\n }\n return $res;\n }", "title": "" }, { "docid": "df8fbab614f3532d929edf2d36b1ee90", "score": "0.48301077", "text": "public function display_reports_list() {\n if ($this->checkLogin('A') == '') {\n redirect(ADMIN_ENC_URL);\n } else {\n\t\t if ($this->lang->line('admin_reports_list') != '') \n\t\t $this->data['heading']= stripslashes($this->lang->line('admin_reports_list')); \n\t\t else $this->data['heading'] = 'Display Reports/Feedbacks List';\n\t\t\t \t$sortArr = array('created_date' => 'DESC');\n $condition = array();\n $this->data['reportsList'] = $this->user_model->get_all_details(REPORTS, $condition,$sortArr);\n $this->load->view(ADMIN_ENC_URL.'/reports/display_reports_list', $this->data);\n }\n }", "title": "" }, { "docid": "c229a656eb678645e5861e9ad62982b8", "score": "0.48195165", "text": "static function getLabWorkers($related_labs_ids)\n {\n $sqlQuery = \"SELECT rl.id, rl.name, ap.address_id, pt.name as 'workerType' FROM rl_people rl \n JOIN rl_address_people ap ON ap.person_id = rl.id JOIN rl_people_types pt ON rl.type_id = pt.id \n WHERE ap.address_id IN (\" . $related_labs_ids . \")\";\n\n return DB::select(DB::raw($sqlQuery));\n }", "title": "" }, { "docid": "76fe670e11456f1b2db4139a29fff8b8", "score": "0.4811022", "text": "public function reports()\n\t{\n\t\t$base_url = site_url();\n\n\t\tif (!isset($_SERVER['HTTP_REFERER']) || (strripos($_SERVER['HTTP_REFERER'], $base_url) === FALSE))\n\t\t{\n\t\t\t$this->output->set_status_header('401');\n\t\t\texit('Access not allowed');\n\t\t}\n\n\t\tif ($this->input->server('REQUEST_METHOD') !== 'POST')\n\t\t{\n\t\t\t$this->output->set_status_header('401');\n\t\t\texit('Access not allowed');\n\t\t}\n\n\t\t$user_id = $this->input->post('userid');\n\t\t$case_id = $this->input->post('caseid');\n\n\t\tif (!isset($user_id) || $user_id == FALSE) {\n\t\t\t$this->output->set_status_header('400');\n\t\t\texit('User not found.');\n\t\t}\n\n\t\tif (!isset($case_id) || $case_id == FALSE) {\n\t\t\t$this->output->set_status_header('400');\n\t\t\texit('Case not found.');\n\t\t}\n\n\t\t$this->load->model('Report');\n\n\t\t// load available team\n\t\t$db_result = $this->Report->get_reports($user_id,$case_id);\n\n\t\tif ($db_result['result']) {\n\n\t\t\t$this->output->set_status_header('200');\n\t\t\techo \"{\\\"result\\\":\".$db_result['result'].\",\\\"reports\\\":\".json_encode($db_result['reports']).\"}\";\n\n\t\t}else{\n\t\t\t// determine if user error or server error\n\t\t\tif (strlen($db_result['message']) > 0) {\n\t\t\t\t$this->output->set_status_header('400');\n\t\t\t\texit($db_result['message']);\n\t\t\t} else {\n\t\t\t\t$this->output->set_status_header('500');\n\t\t\t\texit('Unable to load reports.');\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "03393e7228e69f0e3ce947e886bae9c6", "score": "0.480194", "text": "public function getDefaultReports();", "title": "" }, { "docid": "b05880fc7a81f4566245e99a4d16c7a5", "score": "0.48011044", "text": "public function report()\n {\n return $this->belongsToMany(Report::class);\n }", "title": "" }, { "docid": "b5747da6b30134619f44d281f44cea64", "score": "0.47926173", "text": "function getReportedDocuments()\n {\n global $base_url;\n $documents=opts($base_url.\"users/reportedDocuments\");\n return $documents;\n }", "title": "" }, { "docid": "c6e257b3fd5dec9219a4eb246069f21f", "score": "0.47828758", "text": "private static function get_system_reports_data() {\n\t\t$reports = Plugin::$instance->system_info->load_reports( System_Info\\Main::get_allowed_reports() );\n\n\t\t$system_reports = [];\n\t\tforeach ( $reports as $report_key => $report_details ) {\n\t\t\t$system_reports[ $report_key ] = [];\n\t\t\tforeach ( $report_details['report'] as $sub_report_key => $sub_report_details ) {\n\t\t\t\t$system_reports[ $report_key ][ $sub_report_key ] = $sub_report_details['value'];\n\t\t\t}\n\t\t}\n\t\treturn $system_reports;\n\t}", "title": "" }, { "docid": "93c225ea02575c4b9aa3cdc13596ebf4", "score": "0.47758484", "text": "public static function report_list($fs_limit) {\n\t\t$field_issues = self::get_db()->fetch_all(\"SELECT DISTINCT psc.stock_id, psc.stock_name FROM products_stock_control psc JOIN products_stock_control_images psci ON psc.stock_id = psci.stock_id WHERE psci.image NOT LIKE CONCAT('p/', psc.stock_name, '%a_sm.jpg') OR psci.image_med NOT LIKE CONCAT('p/', psc.stock_name, '%a_med.jpg') OR psci.image_lrg NOT LIKE CONCAT('p/', psc.stock_name, '%a.jpg') OR psci.image_sm_1 NOT LIKE CONCAT('p/', psc.stock_name, '%b_sm.jpg') OR psci.image_xl_1 NOT LIKE CONCAT('p/', psc.stock_name, '%b.jpg') OR psci.image_sm_2 NOT LIKE CONCAT('p/', psc.stock_name, '%c_sm.jpg') OR psci.image_xl_2 NOT LIKE CONCAT('p/', psc.stock_name, '%c.jpg') OR psci.image_sm_3 NOT LIKE CONCAT('p/', psc.stock_name, '%d_sm.jpg') OR psci.image_xl_3 NOT LIKE CONCAT('p/', psc.stock_name, '%d.jpg') OR psci.image_sm_4 NOT LIKE CONCAT('p/', psc.stock_name, '%e_sm.jpg') OR psci.image_xl_4 NOT LIKE CONCAT('p/', psc.stock_name, '%e.jpg') OR psci.image_sm_5 NOT LIKE CONCAT('p/', psc.stock_name, '%f_sm.jpg') OR psci.image_xl_5 NOT LIKE CONCAT('p/', psc.stock_name, '%f.jpg') OR psci.image_sm_6 NOT LIKE CONCAT('p/', psc.stock_name, '%g_sm.jpg') OR psci.image_xl_6 NOT LIKE CONCAT('p/', psc.stock_name, '%g.jpg')\");\n\n\t\t$matching_issues = self::get_db()->fetch_all('SELECT DISTINCT psc.stock_id, psc.stock_name FROM products_stock_control psc JOIN products p ON psc.stock_id = p.stock_id JOIN products_stock_control_images psci ON psc.stock_id = psci.stock_id WHERE psci.image != p.products_image OR psci.image_med != p.products_image_med OR psci.image_lrg != p.products_image_lrg OR psci.image_sm_1 != p.products_image_sm_1 OR psci.image_xl_1 != p.products_image_xl_1 OR psci.image_sm_2 != p.products_image_sm_2 OR psci.image_xl_2 != p.products_image_xl_2 OR psci.image_sm_3 != p.products_image_sm_3 OR psci.image_xl_3 != p.products_image_xl_3 OR psci.image_sm_4 != p.products_image_sm_4 OR psci.image_xl_4 != p.products_image_xl_4 OR psci.image_sm_5 != p.products_image_sm_5 OR psci.image_xl_5 != p.products_image_xl_5 OR psci.image_sm_6 != p.products_image_sm_6 OR psci.image_xl_6 != p.products_image_xl_6 ORDER BY psc.stock_id');\n\n\t\t$fs_issues = self::get_db()->fetch_all('SELECT DISTINCT psc.stock_id, psc.stock_name FROM products_stock_control psc WHERE psc.pic_problem = TRUE');\n\n\t\t$result = array();\n\n\t\t$fs_counter = 0;\n\n\t\tforeach ($field_issues as $issue) {\n\t\t\t$audit = new picture_audit($issue['stock_id']);\n\t\t\t$nm = $audit->check_naming();\n\n\t\t\t$fs_counter++;\n\t\t\t//echo '<br>';\n\t\t\tif ($fs_counter <= $fs_limit) $fs = $audit->check_filesystem();\n\t\t\telse {\n\t\t\t\t$fs = TRUE;\n\t\t\t\t$audit->problems['broken_reference'] = 0;\n\t\t\t\t$audit->problems['wrong_dimensions'] = 0;\n\t\t\t\t//$audit->problems['missing_300_size'] = 0;\n\t\t\t\t$audit->problems['missing_archive'] = 0;\n\t\t\t}\n\n\t\t\tif ($nm && $fs) continue;\n\t\t\telse $result[$issue['stock_id']] = $audit;\n\t\t}\n\n\t\tforeach ($matching_issues as $issue) {\n\t\t\tif (isset($result[$issue['stock_id']])) continue;\n\n\t\t\t$audit = new picture_audit($issue['stock_id']);\n\t\t\t$nm = $audit->check_naming();\n\n\t\t\t$fs_counter++;\n\t\t\t//echo '<br>';\n\t\t\tif ($fs_counter <= $fs_limit) $fs = $audit->check_filesystem();\n\t\t\telse {\n\t\t\t\t$fs = TRUE;\n\t\t\t\t$audit->problems['broken_reference'] = 0;\n\t\t\t\t$audit->problems['wrong_dimensions'] = 0;\n\t\t\t\t//$audit->problems['missing_300_size'] = 0;\n\t\t\t\t$audit->problems['missing_archive'] = 0;\n\t\t\t}\n\n\t\t\tif ($nm && $fs) continue;\n\t\t\telse $result[$issue['stock_id']] = $audit;\n\t\t}\n\n\t\tforeach ($fs_issues as $issue) {\n\t\t\tif (isset($result[$issue['stock_id']])) continue;\n\n\t\t\t$audit = new picture_audit($issue['stock_id']);\n\t\t\t$nm = $audit->check_naming();\n\n\t\t\t$fs_counter++;\n\t\t\t//echo '<br>';\n\t\t\tif ($fs_counter <= $fs_limit) $fs = $audit->check_filesystem();\n\t\t\telse {\n\t\t\t\t$fs = TRUE;\n\t\t\t\t$audit->problems['broken_reference'] = 0;\n\t\t\t\t$audit->problems['wrong_dimensions'] = 0;\n\t\t\t\t//$audit->problems['missing_300_size'] = 0;\n\t\t\t\t$audit->problems['missing_archive'] = 0;\n\t\t\t}\n\n\t\t\tif ($nm && $fs) continue;\n\t\t\telse $result[$issue['stock_id']] = $audit;\n\t\t}\n\n\t\tusort($result, function($a, $b) { if ($a->ipn == $b->ipn) { return 0; } return ($a->ipn < $b->ipn)?-1:1; });\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "879a43838192e29448399e051dff8556", "score": "0.47414306", "text": "static function printTopReportsList()\n {\n $debug = eZDebug::instance();\n $reportNames = array_keys( $debug->topReportsList );\n foreach ( $reportNames as $reportName )\n {\n echo $debug->topReportsList[$reportName];\n }\n }", "title": "" }, { "docid": "ba85874020d6be8d7a421df67f9bf415", "score": "0.47360897", "text": "abstract public function getAttachments($report, $processedReports, $prettyDate);", "title": "" }, { "docid": "131fa86c823759583920bdea94759659", "score": "0.47219694", "text": "public function getSnapshotReports()\n {\n return $this->snapshot_reports;\n }", "title": "" }, { "docid": "2a0b29a696ad9583c0ca0730f4f4569a", "score": "0.47189867", "text": "function get_entries_by_report_id($report_id){\n $sql = \"SELECT id\n FROM {block_ilp_entry}\n WHERE report_id = :report_id\";\n\n return $this->dbc->get_records_sql($sql,array('report_id'=>$report_id));\n }", "title": "" }, { "docid": "04eb827da3c8d2d1944b12685cfda7a7", "score": "0.47163165", "text": "public function reportableProjects()\n {\n $groups = $this->groups;\n \n $array = [];\n\n foreach ($groups as $group) {\n $array[$group->project->id] = $group->project->name;\n }\n \n return $array;\n }", "title": "" }, { "docid": "ff53673f78eab65533373e7151a7f041", "score": "0.47078875", "text": "function listForwarders() {\n $forwarders = array();\n preg_match_all('/\\?email=' . $this->email . '@' . $this->domain . '=([^\"]*)/', $this->getData('mail/fwds.html'), $forwarders);\n return $forwarders[1];\n }", "title": "" }, { "docid": "b7be0370d14dde428ef3a141a941dbfa", "score": "0.47056714", "text": "public function getRegisteredSendersList() {\n try {\n $method = 'GET';\n $request = $this->createSendersListUrl();\n $response = $this->sendRequest($method, $request);\n\n if (isset($response->error)) {\n return null;\n }\n\n return $response;\n } catch (Exception $exception) {\n return null;\n }\n }", "title": "" }, { "docid": "dfe198b4cd0ba23442f11d1bc293440d", "score": "0.47014922", "text": "public function getReporter()\n\t{\n\t\treturn $this->reporter;\n\t}", "title": "" }, { "docid": "40e6a3b00132574a6f5bf068633e1c5f", "score": "0.47009513", "text": "protected function wrapResults($outputs)\n {\n return new Amazon_Marketplace_Reports_GetReportList_Results($outputs);\n }", "title": "" }, { "docid": "8be933fb775933ec17c93e506573847e", "score": "0.46994606", "text": "function getDescriptionByIssues(&$result)\n {\n if (count($result) == 0) {\n return;\n }\n\n $ids = array();\n for ($i = 0; $i < count($result); $i++) {\n $ids[] = $result[$i][\"iss_id\"];\n }\n $ids = implode(\", \", $ids);\n\n $stmt = \"SELECT\n iss_id,\n iss_description\n FROM\n \" . APP_DEFAULT_DB . \".\" . APP_TABLE_PREFIX . \"issue\n WHERE\n iss_id in ($ids)\";\n $res = DB_Helper::getInstance()->getAssoc($stmt);\n if (PEAR::isError($res)) {\n Error_Handler::logError(array($res->getMessage(), $res->getDebugInfo()), __FILE__, __LINE__);\n return;\n }\n\n for ($i = 0; $i < count($result); $i++) {\n @$result[$i]['iss_description'] = $res[$result[$i]['iss_id']];\n }\n }", "title": "" } ]
d0d2cf77fe0889d159c350eda75ce77b
Parse the nested relationships in a relation.
[ { "docid": "0513dab1aa2d0361dd12fca6a51b838a", "score": "0.0", "text": "protected function addNestedWiths($name, $results)\n {\n $progress = [];\n\n // If the relation has already been set on the result array, we will not set it\n // again, since that would override any constraints that were already placed\n // on the relationships. We will only set the ones that are not specified.\n foreach (explode('.', $name) as $segment) {\n $progress[] = $segment;\n if (! isset($results[$last = implode('.', $progress)])) {\n $results[$last] = function () {\n //\n };\n }\n }\n\n return $results;\n }", "title": "" } ]
[ { "docid": "c845acfcfde6c5e9afc5b4ddba1e8c5d", "score": "0.6651783", "text": "protected function parseRelationships()\n {\n foreach ($this->entityMap->getSingleRelationships() as $relation) {\n $this->parseSingleRelationship($relation);\n }\n\n foreach ($this->entityMap->getManyRelationships() as $relation) {\n $this->parseManyRelationship($relation);\n }\n }", "title": "" }, { "docid": "765f56ed24dca8394f0d3900ab2aacb1", "score": "0.5982464", "text": "public function parse(): array\n {\n $result = [];\n\n foreach ($this->relations as $name => $relation) {\n $processed = [];\n\n $name = (string) $name;\n if (!is_array($relation) || !isset($relation['name']) || !isset($relation['entity'])) {\n throw InvalidEntityException::forInvalidRelationDefinition(\n $name, $this->reflection->getName()\n );\n }\n $processed['name'] = (string) $relation['name'];\n\n $processed['type'] = $relation['type'] ?? Relation::ONE_TO_ONE;\n if (! in_array($processed['type'], self::AVAILABLE_RELATION_TYPE)) {\n throw InvalidEntityException::forInvalidRelationType(\n $name, $this->reflection->getName()\n );\n }\n\n $processed['loading'] = $relation['loading'] ??\n ($processed['type'] === Relation::ONE_TO_ONE ? Relation::EAGER : Relation::LAZY);\n if (! in_array($processed['loading'], self::AVAILABLE_LOADING_TYPE)) {\n throw InvalidEntityException::forInvalidLoadingType(\n $name, $this->reflection->getName()\n );\n }\n\n if ($processed['loading'] === Relation::EAGER) {\n $this->checkInfiniteLoop($name);\n }\n\n $this->checkEntityClass((string) $relation['entity']);\n $processed['entity'] = $relation['entity'];\n\n $processed['foreignKey'] = (string) ($relation['foreignKey'] ?? $processed['name']);\n $processed['bindingKey'] = (string) ($relation['bindingKey'] ?? 'id');\n\n if ($processed['type'] === Relation::MANY_TO_MANY) {\n if (! isset($relation['junctionTable'])) {\n throw InvalidEntityException::forMissingJunctionTable(\n $name, $this->reflection->getName()\n );\n }\n $processed['junctionTable'] = (string) $relation['junctionTable'];\n }\n\n $result[ $processed['name'] ] = new Relation($processed);\n }\n\n return $result;\n }", "title": "" }, { "docid": "9fdea461e08471c28bcded0fdcebbef4", "score": "0.5641663", "text": "public function buildRelations()\n\t{\n\t}", "title": "" }, { "docid": "9fdea461e08471c28bcded0fdcebbef4", "score": "0.5641663", "text": "public function buildRelations()\n\t{\n\t}", "title": "" }, { "docid": "9fdea461e08471c28bcded0fdcebbef4", "score": "0.5641663", "text": "public function buildRelations()\n\t{\n\t}", "title": "" }, { "docid": "5f593fe5951461e8124ab31047203ca0", "score": "0.5637463", "text": "public function buildRelations()\n {\n }", "title": "" }, { "docid": "5f593fe5951461e8124ab31047203ca0", "score": "0.5637463", "text": "public function buildRelations()\n {\n }", "title": "" }, { "docid": "5f593fe5951461e8124ab31047203ca0", "score": "0.5637463", "text": "public function buildRelations()\n {\n }", "title": "" }, { "docid": "5f593fe5951461e8124ab31047203ca0", "score": "0.5637463", "text": "public function buildRelations()\n {\n }", "title": "" }, { "docid": "5f593fe5951461e8124ab31047203ca0", "score": "0.5637463", "text": "public function buildRelations()\n {\n }", "title": "" }, { "docid": "5f593fe5951461e8124ab31047203ca0", "score": "0.5637463", "text": "public function buildRelations()\n {\n }", "title": "" }, { "docid": "5f593fe5951461e8124ab31047203ca0", "score": "0.5637463", "text": "public function buildRelations()\n {\n }", "title": "" }, { "docid": "5f593fe5951461e8124ab31047203ca0", "score": "0.5637463", "text": "public function buildRelations()\n {\n }", "title": "" }, { "docid": "5f593fe5951461e8124ab31047203ca0", "score": "0.5637463", "text": "public function buildRelations()\n {\n }", "title": "" }, { "docid": "5f593fe5951461e8124ab31047203ca0", "score": "0.5637463", "text": "public function buildRelations()\n {\n }", "title": "" }, { "docid": "5f593fe5951461e8124ab31047203ca0", "score": "0.5637463", "text": "public function buildRelations()\n {\n }", "title": "" }, { "docid": "5f593fe5951461e8124ab31047203ca0", "score": "0.5637463", "text": "public function buildRelations()\n {\n }", "title": "" }, { "docid": "5f593fe5951461e8124ab31047203ca0", "score": "0.5637463", "text": "public function buildRelations()\n {\n }", "title": "" }, { "docid": "5f593fe5951461e8124ab31047203ca0", "score": "0.5637463", "text": "public function buildRelations()\n {\n }", "title": "" }, { "docid": "70fb5ed24730f4fb9657d4cf38b3ee7c", "score": "0.5509602", "text": "protected function relationsNestedUnder($relation)\n {\n $nested = [];\n\n // We are basically looking for any relationships that are nested deeper than\n // the given top-level relationship. We will just check for any relations\n // that start with the given top relations and adds them to our arrays.\n foreach ($this->eagerLoad as $name => $constraints) {\n if ($this->isNestedUnder($relation, $name)) {\n $nested[substr($name, strlen($relation.'.'))] = $constraints;\n }\n }\n\n return $nested;\n }", "title": "" }, { "docid": "35867726dc7eb843b4947ed49a7c22bc", "score": "0.545678", "text": "protected function parseManyRelationship(string $relation): bool\n {\n if (!$value = $this->parseForCommonValues($relation)) {\n return true;\n }\n\n if (is_array($value) || (!$value instanceof CollectionProxy && $value instanceof Collection)) {\n $this->needSync[] = $relation;\n }\n\n // If the relation is a proxy, we test is the relation\n // has been lazy loaded, otherwise we'll just treat\n // the subset of newly added items.\n if ($value instanceof CollectionProxy && $value->isProxyInitialized()) {\n $this->needSync[] = $relation;\n //$value = $value->getUnderlyingCollection();\n }\n\n if ($value instanceof CollectionProxy && !$value->isProxyInitialized()) {\n $value = $value->getAddedItems();\n }\n\n // At this point $value should be either an array or an instance\n // of a collection class.\n if (!is_array($value) && !$value instanceof Collection) {\n throw new MappingException(\"'$relation' attribute should be array() or Collection\");\n }\n\n $this->relationships[$relation] = $this->createSubAggregates($value, $relation);\n\n return true;\n }", "title": "" }, { "docid": "32cf6cfba857f30bbc51482a2416cad5", "score": "0.5430841", "text": "protected abstract function getRelations() : array;", "title": "" }, { "docid": "98908d84f5ab2387dcb0f892a4e67efc", "score": "0.53075093", "text": "protected static function buildRelations()\n {\n return [];\n }", "title": "" }, { "docid": "7c592e28f6aa0694031c4f8694f40ab7", "score": "0.53068954", "text": "abstract protected function relations();", "title": "" }, { "docid": "bca56391f3b0a61dbf072ba361fddb2a", "score": "0.5260112", "text": "public function getRelationships();", "title": "" }, { "docid": "bca56391f3b0a61dbf072ba361fddb2a", "score": "0.5260112", "text": "public function getRelationships();", "title": "" }, { "docid": "bca56391f3b0a61dbf072ba361fddb2a", "score": "0.5260112", "text": "public function getRelationships();", "title": "" }, { "docid": "bca56391f3b0a61dbf072ba361fddb2a", "score": "0.5260112", "text": "public function getRelationships();", "title": "" }, { "docid": "b5dc963c0338b6d0e49942c10463652c", "score": "0.51974225", "text": "private function prepareRelationships()\r\n {\r\n $collection = collect(config(\"jsonapi.resources.{$this->type()}.relationships\"))\r\n ->flatMap(function ($related) {\r\n $relatedType = $related['type'];\r\n $relationship = $related['method'];\r\n $routeId = $related['route_id'];\r\n return [\r\n $relatedType => [\r\n 'links' => [\r\n 'self' => route(\r\n \"{$this->type()}.relationships.{$relatedType}\",\r\n [$routeId => $this->id]\r\n ),\r\n 'related' => route(\r\n \"{$this->type()}.{$relatedType}\",\r\n [$routeId => $this->id]\r\n ),\r\n ],\r\n 'data' => $this->prepareRelationshipData($relatedType, $relationship)\r\n ],\r\n ];\r\n });\r\n\r\n return $collection->count() > 0 ? $collection : new MissingValue();\r\n }", "title": "" }, { "docid": "d6edc9adcb1107a33ce32b1708c96bc5", "score": "0.51343536", "text": "public function getToManyRelationship(string $relationship): ToManyRelationship;", "title": "" }, { "docid": "77f6f818d1c59620516ac92bdea2ec39", "score": "0.5117998", "text": "public function getEntityStructureRelationships (\n\t)\t\t\t\t\t// RETURNS <str:str> A list of relationship attributes.\n\t\n\t// $relationshipAttrs = $entity->getEntityStructureRelationships();\n\t{\n\t\t$relationshipAttrs = [];\n\t\t\n\t\t// Loop through structures to identify the related attributes\n\t\tforeach($this->structure as $attr)\n\t\t{\n\t\t\tlist($title, $attrClass, $dataType, $settings, $tags) = $this->getAttributeStructure($attr[0]);\n\t\t\t\n\t\t\tif($attrClass)\n\t\t\t{\n\t\t\t\t$relationshipAttrs[$attr] = $this->structure[$attr];\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $relationshipAttrs;\n\t}", "title": "" }, { "docid": "8856b648d4c3f878e6f8661af17a036a", "score": "0.5083147", "text": "protected function parseWithRelations(array $relations)\n {\n $results = [];\n\n foreach ($relations as $name => $constraints) {\n // If the \"name\" value is a numeric key, we can assume that no\n // constraints have been specified. We'll just put an empty\n // Closure there, so that we can treat them all the same.\n if (is_numeric($name)) {\n $name = $constraints;\n [$name, $constraints] = strpos($name, ':') !== false\n ? $this->createSelectWithConstraint($name)\n : [$name, function () {\n //\n }];\n }\n\n // We need to separate out any nested includes, which allows the developers\n // to load deep relationships using \"dots\" without stating each level of\n // the relationship with its own key in the array of eager-load names.\n $results = $this->addNestedWiths($name, $results);\n $results[$name] = $constraints;\n }\n\n return $results;\n }", "title": "" }, { "docid": "b98a350f61963cf1017d666d7f2a4bda", "score": "0.505933", "text": "protected function getRelations()\n\t{\n\t\treturn [];\n\t}", "title": "" }, { "docid": "4706e90790a5e1d2581b1c45c6f8c0e3", "score": "0.5027398", "text": "protected function parseRelationsFromSchema(array $schema, $path='')\n {\n $results = [];\n\n foreach ($schema as $key => $value) {\n if (! is_numeric($key)) {\n // join relation\n if (substr($key, 0, 3) != '...') {\n $childPath = ($path)\n ? $path.'.'.$key\n : $key;\n $results[$childPath] = (isset($this->constraints[$this->root.'.'.$childPath]))\n ? $this->constraints[$this->root.'.'.$childPath]\n : function () {};\n } else {\n $childPath = $path;\n }\n\n // recursive call\n $results = array_merge($results, $this->parseRelationsFromSchema($value, $childPath));\n }\n }\n\n return $results;\n }", "title": "" }, { "docid": "da7f784f2466cea2c6875c02e2a9eee3", "score": "0.5008235", "text": "public function buildRelations()\n {\n $this->addRelation('Parish', '\\\\Parish', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':parish_id',\n 1 => ':value',\n ),\n), null, null, null, false);\n $this->addRelation('LetterType', '\\\\LetterType', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':type_id',\n 1 => ':value',\n ),\n), null, null, null, false);\n $this->addRelation('JobQueue', '\\\\JobQueue', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':letter_id',\n 1 => ':value',\n ),\n), null, null, 'JobQueues', false);\n }", "title": "" }, { "docid": "00d6d2dd7d5ada7dc41de8ed7a5514d1", "score": "0.49828792", "text": "private function relations()\r\n {\r\n return collect(config(\"jsonapi.resources.{$this->type()}.relationships\"))\r\n ->map(function ($relation) {\r\n $modelOrCollection = $this->whenLoaded($relation['method']);\r\n\r\n if ($modelOrCollection instanceof Model) {\r\n $modelOrCollection = collect([\r\n new JSONAPIResource($modelOrCollection)\r\n ]);\r\n }\r\n\r\n return JSONAPIResource::collection($modelOrCollection);\r\n });\r\n }", "title": "" }, { "docid": "80d2dc07eefecd2f41d1ae7275027027", "score": "0.49425998", "text": "public function getRelation() : array {\n return $this->relation;\n }", "title": "" }, { "docid": "51645772d3f3156f1b0c6f6269f63070", "score": "0.49176598", "text": "public function getRelationsFromArray($data)\n {\n $class = get_class($this->related);\n\n return new $class($data, isset($data[$this->localKey]));\n }", "title": "" }, { "docid": "51645772d3f3156f1b0c6f6269f63070", "score": "0.49176598", "text": "public function getRelationsFromArray($data)\n {\n $class = get_class($this->related);\n\n return new $class($data, isset($data[$this->localKey]));\n }", "title": "" }, { "docid": "38b27b432f61c0985a5630399a9f0068", "score": "0.49138838", "text": "private function buildRelations(iterable $relations): void\n {\n foreach ($relations as $attribute => $relation) {\n // il est possible de déclarer des relations sans attribut sur l'entity (cas de grosse collection)\n if (!empty($relation['detached'])) {\n continue;\n }\n\n if (isset($relation['mode']) && $relation['mode'] === RelationBuilder::MODE_EAGER) {\n $this->eagerRelations[$attribute] = [];\n }\n\n // si l'attribut est déjà définit, car embedded\n if (isset($this->embeddeds[$attribute])) {\n continue;\n }\n\n if (isset($relation['map'])) {\n $this->buildMappedEmbedded($attribute, $relation['map'], $relation['discriminator']);\n continue;\n }\n\n // si entity n'est pas definit\n if (!isset($relation['entity'])) {\n continue;\n }\n\n // Attention: un embedded relation doit appartenir à l'entity.\n // Ne pas pas etre dans un object de entity\n // C'est pour cette raison que le 3eme parametre est à null\n $this->buildEmbedded($attribute, $relation['entity'], null);\n }\n\n // Preformatage des eager relations\n $this->eagerRelations = Relation::sanitizeRelations($this->eagerRelations);\n }", "title": "" }, { "docid": "823121486c6ef8f3043d78e3709e5a74", "score": "0.49014792", "text": "private function _recuperar_relation_fields()\n\t{\n\t\tforeach ($this->model_fields as $nombre_campo => $obj_campo)\n\t\t{\n\t\t\tif($obj_campo->get_tipo() == 'has_one')\n\t\t\t{\n\t\t\t\t// recupera las propiedades de la relacion\n\t\t\t\t$arr_props_relation = $obj_campo->get_relation();\n\n\t\t\t\t$class_relacionado = $arr_props_relation['model'];\n\t\t\t\t$model_relacionado = new $class_relacionado();\n\t\t\t\t$model_relacionado->find_id($this->$nombre_campo, FALSE);\n\n\t\t\t\t$arr_props_relation['data'] = $model_relacionado;\n\t\t\t\t$this->model_fields[$nombre_campo]->set_relation($arr_props_relation);\n\t\t\t\t$this->model_got_relations = TRUE;\n\t\t\t}\n\t\t\telse if ($obj_campo->get_tipo() == 'has_many')\n\t\t\t{\n\t\t\t\t// recupera las propiedades de la relacion\n\t\t\t\t$arr_props_relation = $obj_campo->get_relation();\n\n\t\t\t\t// genera arreglo where con la llave del modelo\n\t\t\t\t$arr_where = array();\n\t\t\t\t$arr_id_one_table = $arr_props_relation['id_one_table'];\n\n\t\t\t\tforeach ($this->model_campo_id as $campo_id)\n\t\t\t\t{\n\t\t\t\t\t$arr_where[array_shift($arr_id_one_table)] = $this->$campo_id;\n\t\t\t\t}\n\n\t\t\t\t// recupera la llave del modelo en tabla de la relacion (n:m)\n\t\t\t\t$rs = $this->CI->db\n\t\t\t\t\t->select($this->_junta_campos_select($arr_props_relation['id_many_table']), FALSE)\n\t\t\t\t\t->get_where($arr_props_relation['join_table'], $arr_where)\n\t\t\t\t\t->result_array();\n\n\t\t\t\t$class_relacionado = $arr_props_relation['model'];\n\t\t\t\t$model_relacionado = new $class_relacionado();\n\n\t\t\t\t// genera arreglo de condiciones de busqueda\n\t\t\t\t$arr_where = array();\n\n\t\t\t\tforeach ($rs as $reg)\n\t\t\t\t{\n\t\t\t\t\tarray_push($arr_where, array_pop($reg));\n\t\t\t\t}\n\n\t\t\t\t$arr_condiciones = array($this->_junta_campos_select($model_relacionado->get_model_campo_id()) => $arr_where);\n\n\t\t\t\t$model_relacionado->find('all', array('conditions' => $arr_condiciones), FALSE);\n\n\t\t\t\t$arr_props_relation['data'] = $model_relacionado;\n\t\t\t\t$this->model_fields[$nombre_campo]->set_relation($arr_props_relation);\n\t\t\t\t$this->$nombre_campo = $arr_where;\n\t\t\t\t$this->model_got_relations = TRUE;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "97425d4e625a610dc7efb076682766fb", "score": "0.48973414", "text": "public static function getRelations()\n {\n return [];\n }", "title": "" }, { "docid": "80c7b3816cda166d185c2782298a10e9", "score": "0.4886992", "text": "public function getRelatedNode();", "title": "" }, { "docid": "d52d1dbb4c84f3b61c1aa049eaa05990", "score": "0.48846957", "text": "public function getRelationship(){\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "c979d366b7ef66d92757c8cd437914cd", "score": "0.48738453", "text": "public function getRelations()\r\n {\r\n return $this->relations;\r\n }", "title": "" }, { "docid": "b0e63fc4c62251cc07b6bc41f58e0a55", "score": "0.48646325", "text": "public function setRelations($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\OSMPBF\\Relation::class);\n $this->relations = $arr;\n\n return $this;\n }", "title": "" }, { "docid": "2a8cd26d0b83de0d4111ea9d87835109", "score": "0.48629412", "text": "public function getRelationsInput()\n {\n $relations = (array) $this->input('relations', []);\n $post_relations = Post::$relationships;\n $result = [];\n foreach ($relations as $value) {\n if (in_array($value, $post_relations)) {\n $result[] = $value;\n }\n }\n return $result;\n }", "title": "" }, { "docid": "77f55d38a10cf44be00443d829505ea7", "score": "0.48626766", "text": "final protected function belongsTo(ModelRelation $relation) {\n $opts = $relation->getOptions();\n if (!isset($opts[\"alias\"])) {\n return;\n }\n\n // build local needed variable\n $field = $relation->getFields();\n\n $reference = $relation->getReferencedFields();\n $modelRelation = $relation->getReferencedModel();\n\n // check if related field exist or not\n if (!isset($this->data[$field])) {\n return;\n }\n\n // build data.links\n $this->data[\"links\"][$reference] = (int) $this->data[$field];\n\n // check if data[related] already populated\n if (in_array($this->data[$field], $this->belongsToIds)) {\n return;\n }\n\n // store to haystack\n $this->belongsToIds[] = $this->data[$field];\n\n $query = new Query();\n $query->addCondition(\n new SimpleCondition($reference, Operator::OP_EQUALS, $this->data[$field])\n );\n\n // fetch model data, otherwise throw an exception\n try {\n $handler = new Crud();\n /** @var $relationModel NgModelBase */\n $relationModel = $handler->read(new $modelRelation, $query, true);\n unset($handler);\n } catch (CrudException $e) {\n throw new Exception($e->getMessage());\n }\n\n // check if the model was an instance of NgModel\n if (!$relationModel instanceof NgModelBase) {\n return;\n }\n\n // envelope relationModel to get relation data\n $relationData = $this->envelope->envelope($relationModel);\n\n // check if linked[reference] already populated\n if (!isset($this->linked[$reference])) {\n $this->linked[$reference] = array();\n }\n\n // put relation data on linked\n $this->linked[$reference][] = $relationData;\n\n // remove data[field]\n unset($this->data[$field]);\n }", "title": "" }, { "docid": "3efe9b3903f95e91c2832ca959451e77", "score": "0.48576927", "text": "private function _setRelationships()\n {\n if(empty($this->_relationships))\n {\n $options = array('has_one','has_many','has_many_pivot');\n foreach($options as $option)\n {\n if(isset($this->{$option}) && !empty($this->{$option}))\n {\n foreach($this->{$option} as $key => $relation)\n {\n if(!is_array($relation))\n {\n $foreign_model = $relation;\n $this->load->model($foreign_model);\n// $foreign_model_name = strtolower($foreign_model);\n $foreign_model_name = (substr($foreign_model,strpos($foreign_model,'/')>0?strpos($foreign_model,'/')+1:0));\n $foreign_table = $this->{$foreign_model_name}->table;\n $foreign_key = $this->{$foreign_model_name}->primary_key;\n $local_key = $this->primary_key;\n $pivot_local_key = $this->table.'_'.$local_key;\n $pivot_foreign_key = $foreign_table.'_'.$foreign_key;\n $get_relate = FALSE;\n\n }\n else\n {\n if($this->_isAssoc($relation))\n {\n $foreign_model = $relation['foreign_model'];\n if(array_key_exists('foreign_table',$relation))\n {\n $foreign_table = $relation['foreign_table'];\n }\n else\n {\n// $foreign_model_name = strtolower($foreign_model);\n $foreign_model_name = (substr($foreign_model,strpos($foreign_model,'/')>0?strpos($foreign_model,'/')+1:0));\n $this->load->model($foreign_model);\n $foreign_table = $this->{$foreign_model_name}->table;\n }\n $foreign_key = $relation['foreign_key'];\n $local_key = $relation['local_key'];\n if($option=='has_many_pivot')\n {\n $pivot_table = $relation['pivot_table'];\n $pivot_local_key = (array_key_exists('pivot_local_key',$relation)) ? $relation['pivot_local_key'] : $this->table.'_'.$this->primary_key;\n $pivot_foreign_key = (array_key_exists('pivot_foreign_key',$relation)) ? $relation['pivot_foreign_key'] : $foreign_table.'_'.$foreign_key;\n $get_relate = (array_key_exists('get_relate',$relation) && ($relation['get_relate']===TRUE)) ? TRUE : FALSE;\n }\n }\n else\n {\n $foreign_model = $relation[0];\n// $foreign_model_name = strtolower($foreign_model);\n $foreign_model_name = (substr($foreign_model,strpos($foreign_model,'/')>0?strpos($foreign_model,'/')+1:0));\n $this->load->model($foreign_model);\n $foreign_table = $this->{$foreign_model_name}->table;\n $foreign_key = $relation[1];\n $local_key = $relation[2];\n if($option=='has_many_pivot')\n {\n $pivot_local_key = $this->table.'_'.$this->primary_key;\n $pivot_foreign_key = $foreign_table.'_'.$foreign_key;\n $get_relate = (isset($relation[3]) && ($relation[3]===TRUE())) ? TRUE : FALSE;\n }\n }\n\n }\n\n if($option=='has_many_pivot' && !isset($pivot_table))\n {\n $tables = array($this->table, $foreign_table);\n sort($tables);\n $pivot_table = $tables[0].'_'.$tables[1];\n }\n\n $this->_relationships[$key] = array('relation' => $option, 'relation_key' => $key, 'foreign_model' => strtolower($foreign_model), 'foreign_table' => $foreign_table, 'foreign_key' => $foreign_key, 'local_key' => $local_key);\n if($option == 'has_many_pivot')\n {\n $this->_relationships[$key]['pivot_table'] = $pivot_table;\n $this->_relationships[$key]['pivot_local_key'] = $pivot_local_key;\n $this->_relationships[$key]['pivot_foreign_key'] = $pivot_foreign_key;\n $this->_relationships[$key]['get_relate'] = $get_relate;\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "bb24a85e27d3389f4157f8318cfc3787", "score": "0.48569375", "text": "public function getRelatedIterators();", "title": "" }, { "docid": "e38a5f898991d3692c8870934d76d33d", "score": "0.48557338", "text": "protected function extractRelation(Model $model)\n {\n // Dot notation may be used to eager load nested relations\n $parts = explode('.', $this->relationName);\n\n // We just return the first level of relations for now. They\n // hold the nested relations in case they are needed.\n $firstRelation = $parts[0];\n\n return $model->getRelation($firstRelation);\n }", "title": "" }, { "docid": "7ece0abb00ea03debb1bba2b4ef938cc", "score": "0.48471245", "text": "public function buildRelations()\n {\n $this->addRelation('Colaborador', 'Colaborador', RelationMap::MANY_TO_ONE, array('co_colaborador' => 'co_colaborador', ), null, null);\n $this->addRelation('Representada', 'Representada', RelationMap::MANY_TO_ONE, array('co_representada' => 'co_representada', ), null, null);\n }", "title": "" }, { "docid": "d379976055f158c5607ce5bcb17cb971", "score": "0.48439473", "text": "protected function processRelationshipLinks(array &$data): void\n {\n foreach ($data['relationships'] as &$rel) {\n if (is_string($rel['links']['self'] ?? null)) {\n $this->appendQueryParameters($rel['links']['self']);\n }\n if (is_string($rel['links']['related'] ?? null)) {\n $this->appendQueryParameters($rel['links']['related']);\n }\n }\n }", "title": "" }, { "docid": "7d8353e21329b0f7ffff0d478b2490dc", "score": "0.48346236", "text": "public function relation($relation);", "title": "" }, { "docid": "4e95460de3516fa736372ba9fde60cc2", "score": "0.48289204", "text": "public function buildRelations()\n {\n $this->addRelation('LnkOperationOption', 'LnkOperationOption', RelationMap::ONE_TO_MANY, array('r_op_option_id' => 'op_opt_id', ), null, null, 'LnkOperationOptions');\n $this->addRelation('ROperationTypeRequiredOptions', 'ROperationTypeRequiredOptions', RelationMap::ONE_TO_MANY, array('r_op_option_id' => 'r_operation_type_required_option_r_operation_option_id', ), null, null, 'ROperationTypeRequiredOptionss');\n $this->addRelation('ROperationStatusRequiredOptions', 'ROperationStatusRequiredOptions', RelationMap::ONE_TO_MANY, array('r_op_option_id' => 'r_operation_status_required_options_r_operation_option_id', ), null, null, 'ROperationStatusRequiredOptionss');\n }", "title": "" }, { "docid": "b0ade5026a9e745bfee95e59484f7492", "score": "0.48228693", "text": "public function getRelations(): array\n {\n return $this->relations;\n }", "title": "" }, { "docid": "b0ade5026a9e745bfee95e59484f7492", "score": "0.48228693", "text": "public function getRelations(): array\n {\n return $this->relations;\n }", "title": "" }, { "docid": "2f0f30ed5af5c3db4e7eb415615b04b7", "score": "0.48225433", "text": "function testGetRelations() {\n // TODO: finalize the following test\n\n // Create a couple of sample posts and entities.\n $post_1 = wl_create_post( '', 'post-1', 'Post 1' );\n $post_2 = wl_create_post( '', 'post-2', 'Post 2' );\n\n $entity_1 = wl_create_post( '', 'entity-1', 'Entity 1', 'draft', 'entity' );\n $entity_2 = wl_create_post( '', 'entity-2', 'Entity 2', 'draft', 'entity' );\n\n // Reference entity 1 and 2 from post 1.\n wl_add_referenced_entities( $post_1, array( $entity_1, $entity_2 ) );\n\n // Reference entity 1 from post 2.\n wl_add_referenced_entities( $post_2, array( $entity_1 ) );\n\n var_dump( wl_shortcode_chord_get_relations( $post_1, 0 ) );\n }", "title": "" }, { "docid": "9d6f6fb491a17d352696b76cbab90076", "score": "0.48139614", "text": "public static function relations()\n {\n return [\n ];\n }", "title": "" }, { "docid": "88d278208ef9632e3ab587b51636a5d9", "score": "0.48043975", "text": "public function getRelations()\n {\n return $this->relations;\n }", "title": "" }, { "docid": "88d278208ef9632e3ab587b51636a5d9", "score": "0.48043975", "text": "public function getRelations()\n {\n return $this->relations;\n }", "title": "" }, { "docid": "88d278208ef9632e3ab587b51636a5d9", "score": "0.48043975", "text": "public function getRelations()\n {\n return $this->relations;\n }", "title": "" }, { "docid": "a083e9b515d3d96269a3382728460fb5", "score": "0.4801803", "text": "public function loadRelationsDataFromModel(){\n\t\t$table = Doctrine::getTable($this->modelClass);\n\n\t\t/**\n\t\t * loading relations\n\t\t */\n\t\t$tableRelations = $table->getRelations();\n\t\tforeach($tableRelations as $relation){\n\t\t\t$assocClass = $relation->getAlias();\n\n\t\t\t/**\n\t\t\t * if field with same name as association exist\n\t\t\t */\n\t\t\tif($this->hasField($assocClass) and $relation->getType() == Doctrine_Relation::MANY){\n\t\t\t\t/**\n\t\t\t\t * if association is of type MANY\n\t\t\t\t */\n\t\t\t\t$field = $this->getField($assocClass)\n\t\t\t\t->addAttribute('DoctrineRelation',$relation);\n\n\t\t\t\t$field->addOptions(AdminForm::fetchItemsForSelectBox($relation->getClass()));\n\n\t\t\t}elseif($relation->getType() == Doctrine_Relation::ONE){\n\t\t\t\t/**\n\t\t\t\t * TODO: ONE-TO-MANY AND ONE-TO-ONE RELATIONS\n\t\t\t\t */\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "736c3aa79d0983c6b13a452fcd36ef95", "score": "0.48016465", "text": "protected function isNested($name, $relation)\r\n {\r\n $dots = Str::contains($name, '.');\r\n\r\n return $dots && Str::startsWith($name, $relation.'.');\r\n }", "title": "" }, { "docid": "9776f6073cdd6dfa8437d5b29d18f2f3", "score": "0.47632137", "text": "public function getRelation()\n {\n return $this->relation;\n }", "title": "" }, { "docid": "a89db4e1bf26f5344111dbef2e164c48", "score": "0.47532374", "text": "public static function relational() {\n\t\treturn array();\n\t}", "title": "" }, { "docid": "24e3ae6adf1d83904c4d0df9a4ad3275", "score": "0.47465944", "text": "public function extractRelations()\n {\n return collect($this->getRelationDefinitions())->flatMap(function ($definition) {\n return array_keys($definition);\n })->toArray();\n }", "title": "" }, { "docid": "2c3266e8e26fe605db379805315dc638", "score": "0.47355753", "text": "function addNesting($items, $relation) {\n\t\tif($relation == 0) {\n\t\t\treturn \"\";\n\t\t}\n\t\tforeach($items[\"id\"] as $key => $value) {\n\t\t\tif($value == $relation) {\n\t\t\t\treturn $this->addNesting($items, $items[\"relation\"][$key]) . \"/\" . $items[\"name\"][$key];\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "16b57e300ce63ba09f5b8e5f3892b807", "score": "0.47306728", "text": "public function testComplexParsedJoins()\n\t{\n\t\tR::nuke();\n\t\t$other = R::dispense('book');\n\t\tR::store( $other );\n\t\t$book = R::dispense('book');\n\t\t$page = R::dispense('page');\n\t\t$paragraph = R::dispense('paragraph');\n\t\t$paragraph->title = 'hello';\n\t\t$book->title = 'book';\n\t\t$book->ownPage[] = $page;\n\t\t$page->ownParagraph[] = $paragraph;\n\t\t$figure = R::dispense('figure');\n\t\t$chart = R::dispense('chart');\n\t\t$chart->title = 'results';\n\t\t$page->ownFigure[] = $figure;\n\t\t$figure->ownChart[] = $chart;\n\t\tR::store($book);\n\t\t$books = R::find('book',' @own.page.own.paragraph.title = ? OR @own.page.own.figure.own.chart.title = ?', array('hello','results'));\n\t\tasrt(count($books),1);\n\t\t$book = reset($books);\n\t\tasrt($book->title, 'book');\n\t\tR::nuke();\n\t\tR::aliases(array( 'author' => 'person' ));\n\t\t$book = R::dispense('book');\n\t\t$author = R::dispense('person');\n\t\t$detail = R::dispense('detail');\n\t\t$shop = R::dispense('shop');\n\t\t$shop->name = 'Books4you';\n\t\t$shop2 = R::dispense('shop');\n\t\t$shop2->name = 'Readers Delight';\n\t\t$author->name = 'Albert';\n\t\t$detail->title = 'Book by Albert';\n\t\t$book->ownDetailList[] = $detail;\n\t\t$book->author = $author;\n\t\t$shop->sharedBookList[] = $book;\n\t\t$book2 = R::dispense('book');\n\t\t$author2 = R::dispense('person');\n\t\t$detail2 = R::dispense('detail');\n\t\t$author2->name = 'Bert';\n\t\t$detail2->title = 'Book by Bert';\n\t\t$book2->ownDetailList[] = $detail2;\n\t\t$book2->author = $author2;\n\t\t$shop->sharedBookList[] = $book2;\n\t\t$shop2->sharedBookList[] = $book2;\n\t\tR::store($shop);\n\t\tR::store($shop2);\n\t\t//joined+own\n\t\t$books = R::find('book', ' @joined.author.name LIKE ? AND @own.detail.title LIKE ? ', array('Albert', 'Book by Albert'));\n\t\tasrt(count($books),1);\n\t\t$books = R::find('book', ' @joined.author.name LIKE ? AND @own.detail.title LIKE ? ', array('%ert%', '%Book by%'));\n\t\tasrt(count($books),2);\n\t\t$books = R::find('book', ' @joined.author.name LIKE ? AND @own.detail.title LIKE ? ', array('%ert%', '%'));\n\t\tasrt(count($books),2);\n\t\t$books = R::find('book', ' @joined.author.name LIKE ? AND @own.detail.title LIKE ? ', array('%ert%', 'Old Bookshop'));\n\t\tasrt(count($books),0);\n\t\t//joined+shared\n\t\t$books = R::find('book', ' @joined.author.name LIKE ? AND @shared.shop.name LIKE ? ', array('%ert%', '%Books%'));\n\t\tasrt(count($books),2);\n\t\t$books = R::find('book', ' @joined.author.name LIKE ? AND @shared.shop.name LIKE ? ', array('%ert%', '%Read%'));\n\t\tasrt(count($books),1);\n\t\t$books = R::find('book', ' @joined.author.name LIKE ? AND @shared.shop.name LIKE ? ', array('%ert%', '%'));\n\t\tasrt(count($books),2);\n\t\t$books = R::find('book', ' @joined.author.name LIKE ? AND @shared.shop.name LIKE ? ', array('%ert%', 'Old Bookshop'));\n\t\tasrt(count($books),0);\n\t\t//own+shared\n\t\t$books = R::find('book', ' @own.detail.title LIKE ? AND @shared.shop.name LIKE ? ', array('%ert%', '%Read%'));\n\t\tasrt(count($books),1);\n\t\t$books = R::find('book', ' @own.detail.title LIKE ? AND @shared.shop.name LIKE ? ', array('%ert%', '%Book%'));\n\t\tasrt(count($books),2);\n\t\t$books = R::find('book', ' @own.detail.title LIKE ? AND @shared.shop.name LIKE ? ', array('%ert%', '%'));\n\t\tasrt(count($books),2);\n\t\t$books = R::find('book', ' @own.detail.title LIKE ? AND @shared.shop.name LIKE ? ', array('%ert%', 'Old Bookshop'));\n\t\tasrt(count($books),0);\n\t\t//joined+own+shared\n\t\t$books = R::find('book', ' @joined.author.name LIKE ? AND @own.detail.title LIKE ? AND @shared.shop.name LIKE ? ', array('%ert%', '%Book by%', 'Books%'));\n\t\tasrt(count($books),2);\n\t\t$books = R::find('book', ' @joined.author.name LIKE ? AND @own.detail.title LIKE ? AND @shared.shop.name LIKE ? ', array('%ert%', '%Book by%', 'Read%'));\n\t\tasrt(count($books),1);\n\t\t$books = R::find('book', ' @joined.author.name LIKE ? AND @own.detail.title LIKE ? AND @shared.shop.name LIKE ? ', array('%ert%', '%Book by%', 'Old'));\n\t\tasrt(count($books),0);\n\t\t$books = R::find('book', ' @joined.author.name LIKE ? AND @own.detail.title LIKE ? AND @shared.shop.name LIKE ? ', array('%ert%', '%Book by%', '%'));\n\t\tasrt(count($books),2);\n\t\t//joined+joined\n\t\t$page = R::dispense('page');\n\t\t$page->text = 'Lorem Ipsum';\n\t\t$category = R::dispense('category');\n\t\t$category->name = 'biography';\n\t\t$publisher = R::dispense('publisher');\n\t\t$publisher->name = 'Good Books';\n\t\t$book->publisher = $publisher;\n\t\t$book->ownPageList[] = $page;\n\t\t$category->sharedBookList[] = $book;\n\t\t$page2 = R::dispense('page');\n\t\t$page2->text = 'Blah Blah';\n\t\t$category2 = R::dispense('category');\n\t\t$category2->name = 'fiction';\n\t\t$publisher2 = R::dispense('publisher');\n\t\t$publisher2->name = 'Gutenberg';\n\t\t$book2->publisher = $publisher2;\n\t\t$book2->ownPageList = array($page2);\n\t\t$category2->sharedBookList[] = $book2;\n\t\tR::store($category);\n\t\tR::store($category2);\n\t\t$books = R::find('book', ' @joined.author.name LIKE ? AND @joined.publisher.name LIKE ?', array('%ert%', 'Good Books'));\n\t\tasrt(count($books),1);\n\t\t$books = R::find('book', ' @joined.author.name LIKE ? AND @joined.publisher.name LIKE ?', array('%ert%', '%'));\n\t\tasrt(count($books),2);\n\t\t$books = R::find('book', ' @joined.author.name LIKE ? AND @joined.publisher.name LIKE ?', array('Unknown', '%'));\n\t\tasrt(count($books),0);\n\t\t$books = R::find('book', ' @joined.author.name LIKE ? AND @joined.publisher.name LIKE ?', array('%', '%'));\n\t\tasrt(count($books),2);\n\t\t//shared+shared\n\t\t$books = R::find('book', ' @shared.shop.name LIKE ? AND @shared.category.name LIKE ?', array('Reader%', 'fiction'));\n\t\tasrt(count($books),1);\n\t\t$books = R::find('book', ' @shared.shop.name LIKE ? AND @shared.category.name LIKE ?', array('Book%', '%'));\n\t\tasrt(count($books),2);\n\t\t$books = R::find('book', ' @shared.shop.name LIKE ? AND @shared.category.name LIKE ?', array('Book%', 'biography'));\n\t\tasrt(count($books),1);\n\t\t$books = R::find('book', ' @shared.shop.name LIKE ? AND @shared.category.name LIKE ?', array('Old Bookshop', '%'));\n\t\tasrt(count($books),0);\n\t\t$books = R::find('book', ' @shared.shop.name LIKE ? AND @shared.category.name LIKE ?', array('%', 'horror'));\n\t\tasrt(count($books),0);\n\t\t//own+own\n\t\t$books = R::find('book', ' @own.detail.title LIKE ? AND @own.page.text LIKE ?', array('Book%', 'Blah%'));\n\t\tasrt(count($books),1);\n\t\t$books = R::find('book', ' @own.detail.title LIKE ? AND @own.page.text LIKE ?', array('Book%', 'Lorem%'));\n\t\tasrt(count($books),1);\n\t\t$books = R::find('book', ' @own.detail.title LIKE ? AND @own.page.text LIKE ?', array('Book%', '%'));\n\t\tasrt(count($books),2);\n\t\t$books = R::find('book', ' @own.detail.title LIKE ? AND @own.page.text LIKE ?', array('%', '%'));\n\t\tasrt(count($books),2);\n\t\t$books = R::find('book', ' @own.detail.title LIKE ? AND @own.page.text LIKE ?', array('%', 'Nah'));\n\t\tasrt(count($books),0);\n\t\t$books = R::find('book', ' @own.detail.title LIKE ? AND @own.page.text LIKE ?', array('Nah', '%'));\n\t\tasrt(count($books),0);\n\t\t//joined+joined+shared+shared+own+own\n\t\t$books = R::find('book', ' @own.detail.title LIKE ? AND @own.page.text LIKE ? \n\t\tAND @joined.publisher.name LIKE ? AND @joined.author.name LIKE ?\n\t\tAND @shared.shop.name LIKE ? AND @shared.category.name LIKE ?', array('Book%', 'Lorem%','Good%','Albert','Books4%','bio%'));\n\t\tasrt(count($books),1);\n\t\t$books = R::find('book', ' @own.detail.title LIKE ? AND @own.page.text LIKE ? \n\t\tAND @joined.publisher.name LIKE ? AND @joined.author.name LIKE ?\n\t\tAND @shared.shop.name LIKE ? AND @shared.category.name LIKE ?', array('%', '%','%','%','%','%'));\n\t\tasrt(count($books),2);\n\t\t//in order clause\n\t\t$book = R::findOne('book', ' ORDER BY @shared.category.name ASC LIMIT 1');\n\t\tasrt($book->author->name, 'Albert');\n\t\t$book = R::findOne('book', ' ORDER BY @shared.category.name DESC LIMIT 1');\n\t\tasrt($book->author->name, 'Bert');\n\t\t$book = R::findOne('book', ' ORDER BY @own.detail.title ASC LIMIT 1');\n\t\tasrt($book->author->name, 'Albert');\n\t\t$book = R::findOne('book', ' ORDER BY @own.detail.title DESC LIMIT 1');\n\t\tasrt($book->author->name, 'Bert');\n\t\t//order+criteria\n\t\t$book = R::findOne('book', ' @joined.publisher.name LIKE ? ORDER BY @shared.category.name ASC LIMIT 1', array('%'));\n\t\tasrt($book->author->name, 'Albert');\n\t\t$book = R::findOne('book', ' @joined.publisher.name LIKE ? ORDER BY @shared.category.name DESC LIMIT 1', array('%'));\n\t\tasrt($book->author->name, 'Bert');\n\t\t$book = R::findOne('book', ' @joined.publisher.name LIKE ? ORDER BY @own.detail.title ASC LIMIT 1', array('%'));\n\t\tasrt($book->author->name, 'Albert');\n\t\t$book = R::findOne('book', ' @joined.publisher.name LIKE ? ORDER BY @own.detail.title DESC LIMIT 1', array('%'));\n\t\tasrt($book->author->name, 'Bert');\n\t\t$books = R::find('book', ' @own.detail.title LIKE ? AND @own.page.text LIKE ?\n\t\tAND @joined.publisher.name LIKE ? AND @joined.author.name LIKE ?\n\t\tAND @shared.shop.name LIKE ? AND @shared.category.name LIKE ?\n\t\tORDER BY @own.detail.title ASC\n\t\t', array('%', '%','%','%','%','%'));\n\t\tasrt(count($books),2);\n\t\t$first = reset($books);\n\t\t$last = end($books);\n\t\tasrt($first->author->name, 'Albert');\n\t\tasrt($last->author->name, 'Bert');\n\t\t$books = R::find('book', ' @own.detail.title LIKE ? AND @own.page.text LIKE ?\n\t\tAND @joined.publisher.name LIKE ? AND @joined.author.name LIKE ?\n\t\tAND @shared.shop.name LIKE ? AND @shared.category.name LIKE ?\n\t\tORDER BY\n\t\t@shared.shop.name DESC,\n\t\t@own.detail.title ASC\n\t\t', array('%', '%','%','%','%','%'));\n\t\tasrt(count($books),2);\n\t\t$first = reset($books);\n\t\t$last = end($books);\n\t\tasrt($first->author->name, 'Bert');\n\t\tasrt($last->author->name, 'Albert');\n\t\t$books = R::find('book', ' @own.detail.title LIKE ? AND @own.page.text LIKE ?\n\t\tAND @joined.publisher.name LIKE ? AND @joined.author.name LIKE ?\n\t\tAND @shared.shop.name LIKE ? AND @shared.category.name LIKE ?\n\t\tORDER BY\n\t\t@joined.publisher.name ASC,\n\t\t@shared.shop.name DESC,\n\t\t@own.detail.title ASC\n\t\t', array('%', '%','%','%','%','%'));\n\t\tasrt(count($books),2);\n\t\t$first = reset($books);\n\t\t$last = end($books);\n\t\tasrt($first->author->name, 'Albert');\n\t\tasrt($last->author->name, 'Bert');\n\t}", "title": "" }, { "docid": "f3d97732064f997d4fd168706beed61f", "score": "0.47230944", "text": "public function matchResultsForDeepRelationship(\n array $models,\n Collection $results,\n string $relation,\n string $type = 'many'\n ): array {\n $dictionary = $this->buildDictionaryForDeepRelationship($results);\n\n $attribute = $this->andSelf ? $this->localKey : $this->getForeignKeyName();\n\n foreach ($models as $model) {\n $key = $model->$attribute;\n\n if (isset($dictionary[$key])) {\n $value = $dictionary[$key];\n\n $value = $type === 'one' ? reset($value) : $this->related->newCollection($value);\n\n $model->setRelation($relation, $value);\n }\n }\n\n return $models;\n }", "title": "" }, { "docid": "10be4cdface74f5567a6f465eb59c028", "score": "0.4713173", "text": "public function buildRelations()\n {\n $this->addRelation('User', 'PGS\\\\CoreDomainBundle\\\\Model\\\\User', RelationMap::MANY_TO_ONE, array('author_id' => 'id', ), 'CASCADE', 'CASCADE');\n $this->addRelation('School', 'PGS\\\\CoreDomainBundle\\\\Model\\\\School\\\\School', RelationMap::MANY_TO_ONE, array('school_id' => 'id', ), 'CASCADE', 'CASCADE');\n $this->addRelation('Topic', 'PGS\\\\CoreDomainBundle\\\\Model\\\\Topic', RelationMap::MANY_TO_ONE, array('topic_id' => 'id', ), 'CASCADE', 'CASCADE');\n $this->addRelation('PageI18n', 'PGS\\\\CoreDomainBundle\\\\Model\\\\PageI18n', RelationMap::ONE_TO_MANY, array('id' => 'id', ), 'CASCADE', null, 'PageI18ns');\n }", "title": "" }, { "docid": "2b597b0bbe70abd1595b3f4b117129ac", "score": "0.47095594", "text": "private function getRelationships()\n {\n return Otter::getRelationalFields($this, $this->resource);\n }", "title": "" }, { "docid": "0d2e98a89f5a5e411f808ffef0bca887", "score": "0.46990418", "text": "public function getRelations()\n {\n $opt = $this->options['relations'];\n if (empty($opt)) {\n return '';\n } else if (is_string($opt)) {\n $relations = $this->parseRelationsOption($opt);\n } else if (is_array($opt)) {\n $relations = $opt;\n }\n\n $result = '';\n foreach ($relations as $relation => $entities) {\n if ($this->isValidSingularType($relation)) {\n $result .= $this->getRelationsMethod($relation, $entities);\n } else if ($this->isValidPluralType($relation)) {\n $result .= $this->getRelationsMethod($relation, $entities, true);\n }\n }\n\n return rtrim($result, PHP_EOL);\n }", "title": "" }, { "docid": "f837cff5406f25a25f9b8a768710948d", "score": "0.4697914", "text": "public static function relations()\n {\n return [];\n }", "title": "" }, { "docid": "4cacf4066b123aaa914a0466f9c04b82", "score": "0.4696277", "text": "protected function set_relation() {}", "title": "" }, { "docid": "3af8d53b0620fca4523e6c1d08e5f7ac", "score": "0.46953923", "text": "protected function _buildRelationships($array)\n {\n // Handle auto detecting relations by the names of columns\n // User.contact_id will automatically create User hasOne Contact local => contact_id, foreign => id\n foreach ($array as $className => $properties) {\n if (isset($properties['columns']) && ! empty($properties['columns']) && isset($properties['detect_relations']) && $properties['detect_relations']) {\n foreach ($properties['columns'] as $column) {\n // Check if the column we are inflecting has a _id on the end of it before trying to inflect it and find\n // the class name for the column\n if (strpos($column['name'], '_id')) {\n $columnClassName = Doctrine_Inflector::classify(str_replace('_id', '', $column['name']));\n if (isset($array[$columnClassName]) && !isset($array[$className]['relations'][$columnClassName])) {\n $array[$className]['relations'][$columnClassName] = array();\n\n // Set the detected foreign key type and length to the same as the primary key\n // of the related table\n $type = isset($array[$columnClassName]['columns']['id']['type']) ? $array[$columnClassName]['columns']['id']['type']:'integer';\n $length = isset($array[$columnClassName]['columns']['id']['length']) ? $array[$columnClassName]['columns']['id']['length']:8;\n $array[$className]['columns'][$column['name']]['type'] = $type;\n $array[$className]['columns'][$column['name']]['length'] = $length;\n }\n }\n }\n }\n }\n\n foreach ($array as $name => $properties) {\n if ( ! isset($properties['relations'])) {\n continue;\n }\n \n $className = $properties['className'];\n $relations = $properties['relations'];\n \n foreach ($relations as $alias => $relation) {\n $class = isset($relation['class']) ? $relation['class']:$alias;\n if ( ! isset($array[$class])) {\n continue;\n }\n $relation['class'] = $class;\n $relation['alias'] = isset($relation['alias']) ? $relation['alias'] : $alias;\n \n // Attempt to guess the local and foreign\n if (isset($relation['refClass'])) {\n $relation['local'] = isset($relation['local']) ? $relation['local']:Doctrine_Inflector::tableize($name) . '_id';\n $relation['foreign'] = isset($relation['foreign']) ? $relation['foreign']:Doctrine_Inflector::tableize($class) . '_id';\n } else {\n $relation['local'] = isset($relation['local']) ? $relation['local']:Doctrine_Inflector::tableize($relation['class']) . '_id';\n $relation['foreign'] = isset($relation['foreign']) ? $relation['foreign']:'id';\n }\n \n if (isset($relation['refClass'])) {\n $relation['type'] = 'many';\n }\n \n if (isset($relation['type']) && $relation['type']) {\n $relation['type'] = $relation['type'] === 'one' ? Doctrine_Relation::ONE:Doctrine_Relation::MANY;\n } else {\n $relation['type'] = Doctrine_Relation::ONE;\n }\n\n if (isset($relation['foreignType']) && $relation['foreignType']) {\n $relation['foreignType'] = $relation['foreignType'] === 'one' ? Doctrine_Relation::ONE:Doctrine_Relation::MANY;\n }\n \n $relation['key'] = $this->_buildUniqueRelationKey($relation);\n \n $this->_validateSchemaElement('relation', array_keys($relation), $className . '->relation->' . $relation['alias']);\n \n $this->_relations[$className][$alias] = $relation;\n }\n }\n \n // Now we auto-complete opposite ends of relationships\n $this->_autoCompleteOppositeRelations();\n \n // Make sure we do not have any duplicate relations\n $this->_fixDuplicateRelations();\n\n // Set the full array of relationships for each class to the final array\n foreach ($this->_relations as $className => $relations) {\n $array[$className]['relations'] = $relations;\n }\n \n return $array;\n }", "title": "" }, { "docid": "9dfa084b13243839086a73f0c8b5c4b8", "score": "0.46554637", "text": "public function buildRelations()\n {\n $this->addRelation('Especialidad', '\\\\Especialidad', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':carg_c_especialidad',\n 1 => ':espe_codigo',\n ),\n), null, 'CASCADE', null, false);\n $this->addRelation('TRelacionFaena', '\\\\TRelacionFaena', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':carg_t_relacion_faena',\n 1 => ':trefa_tipo',\n ),\n), null, 'CASCADE', null, false);\n $this->addRelation('ActividadCargo', '\\\\ActividadCargo', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':acca_c_cargo',\n 1 => ':carg_codigo',\n ),\n), null, 'CASCADE', 'ActividadCargos', false);\n $this->addRelation('CargoGrupoSence', '\\\\CargoGrupoSence', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':cagrse_c_cargo',\n 1 => ':carg_codigo',\n ),\n), null, 'CASCADE', 'CargoGrupoSences', false);\n $this->addRelation('Trabajador', '\\\\Trabajador', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':trab_c_cargo',\n 1 => ':carg_codigo',\n ),\n), null, 'CASCADE', 'Trabajadors', false);\n }", "title": "" }, { "docid": "3ccbbd8313c2692e1c4d48427522ddf7", "score": "0.4652519", "text": "public function getRemoteRelationFields(): array\n {\n $flatDefinition = $this->getFlatFieldDefinition();\n\n return array_filter($flatDefinition, static function ($field) {\n return \\in_array($field['type'], ['HASMANY', 'MANYTOMANY']);\n });\n }", "title": "" }, { "docid": "88989406840f142a6c9224d7e56a06f7", "score": "0.465034", "text": "public function getRelation()\n {\n return $this->_relation;\n }", "title": "" }, { "docid": "36a90e51f21c9111b4396b28c68a13c2", "score": "0.46494576", "text": "private function formatBelongsToMany()\n {\n // Return if there are no relationships of that type\n if (!isset($this->relationships['belongsToMany']) || empty($this->relationships['belongsToMany'])) {\n return $this;\n }\n\n // Iterate relationships\n foreach ($this->relationships['belongsToMany'] as $join) {\n $this->records = array_map(function ($record) use ($join) {\n foreach ($record as $key => $value) {\n if ($key === 'concat_' . $join['alias']) {\n $record[$join['alias']] = ($value)? explode(',', $value) : [];\n unset($record[$key]);\n }\n }\n return $record;\n }, $this->records);\n }\n\n // Return model instance\n return $this;\n }", "title": "" }, { "docid": "2d09c29c03c861ff0a4d0eccddb36b39", "score": "0.46493927", "text": "public function buildRelations()\n {\n $this->addRelation('Empresas', 'Empresas', RelationMap::MANY_TO_ONE, array('empresa_id' => 'empresa_id', ), 'CASCADE', 'CASCADE');\n $this->addRelation('Sepomex', 'Sepomex', RelationMap::MANY_TO_ONE, array('sepomex_id' => 'sepomex_id', ), 'CASCADE', 'CASCADE');\n $this->addRelation('Vacantes', 'Vacantes', RelationMap::ONE_TO_MANY, array('sucursal_id' => 'sucursal_id', ), 'CASCADE', 'CASCADE', 'Vacantess');\n }", "title": "" }, { "docid": "0aa9365196fa3f721da36e0d1348496d", "score": "0.4638219", "text": "public function GetRelationships() {\n $sGetRelations = \"SELECT user_a, type, username \n FROM relationship JOIN user ON user.id = relationship.user_b \n WHERE user_a = :user\";\n \n $aBind = array(':user' => $_SESSION['user']);\n\n $relations = $this->oDb->GetQueryResults( $sGetRelations, $aBind );\n\n return $relations;\n }", "title": "" }, { "docid": "f589d228099d8742b186fae0ac3c7ca9", "score": "0.46339697", "text": "function getRelation() {\n\t\treturn $this->relation;\n\t}", "title": "" }, { "docid": "d43090597db2c46821c7afebb9ee85a9", "score": "0.46333623", "text": "protected function buildDictionaryForDeepRelationship(Collection $results): array\n {\n $pathSeparator = $this->related->getPathSeparator();\n\n return $results->mapToDictionary(function (Model $result) use ($pathSeparator) {\n $key = strtok($result->laravel_through_key, $pathSeparator);\n\n return [$key => $result];\n })->all();\n }", "title": "" }, { "docid": "3ae2d9c57e713d26019f0066f4f6b529", "score": "0.46324167", "text": "public function fixRelations()\n {\n $allRelationNames = self::$generatedRelations;\n $this->attributes = $mergedData = array_merge($this->attributes, $this->relations->toArray());\n $this->relations = new Collection();\n\n foreach ($mergedData as $relation => $value) {\n if (!in_array($relation, $allRelationNames)) {\n continue;\n }\n\n if (in_array($relation, static::$validRelations) || in_array($relation, static::$validWithRelations)) {\n if (in_array($relation, static::$validWithRelations)) {\n $this->withRelations[] = $relation;\n }\n\n $this->relations[$relation] = $value;\n }\n if (isset(static::$modelRelations[$relation])) {\n if (!$value instanceof self) {\n $value = new static::$modelRelations[$relation]($value, static::$endpoint);\n }\n\n $this->relations[$relation] = $value;\n }\n\n unset($this->attributes[$relation]);\n }\n\n return $this;\n }", "title": "" }, { "docid": "91cab9c4e2b96c06980c14985f0820c3", "score": "0.46263763", "text": "final protected function hasMany(\n NgModelBase $model, ModelRelation $relation\n ) {\n $opts = $relation->getOptions();\n if (!isset($opts[\"alias\"])) {\n return;\n }\n\n // build needed variable(s)\n $references = $relation->getReferencedFields();\n $modelRelation = $relation->getReferencedModel();\n\n $query = new Query();\n $query->addCondition(\n new SimpleCondition($references, Operator::OP_EQUALS, $model->getId())\n );\n\n // fetch resultset\n try {\n $handler = new Crud();\n /** @type Resultset $resultSet */\n $resultSet = $handler->read(new $modelRelation, $query, false);\n unset($handler);\n } catch (CrudException $e) {\n throw new Exception($e->getMessage());\n }\n\n // check and prepare data.links\n if (!isset($this->data[\"links\"][$references])) {\n $this->data[\"links\"][$references] = array();\n }\n\n // check and prepare linked\n if (!isset($this->linked[$references])) {\n $this->linked[$references] = array();\n }\n\n foreach ($resultSet as $ngModel) {\n /** @type NgModelBase $ngModel */\n // check if this model already populated\n if (in_array($ngModel->getId(), $this->hasManyIds)) {\n continue;\n }\n\n // check if this model already in our data.links\n if (in_array($ngModel->getId(), $this->data[\"links\"][$references])) {\n continue;\n }\n\n // put relation id on data.links\n $this->data[\"links\"][$references][] = (int) $ngModel->getId();\n\n // envelope model into relation data\n $relationData = $this->envelope->envelope($ngModel);\n\n // check if relationData already in our linked\n if (in_array($relationData, $this->linked[$references])) {\n continue;\n }\n\n // put relation data on our linked\n $this->linked[$references][] = $relationData;\n }\n }", "title": "" }, { "docid": "76f6ab85257de746e726257d66f29738", "score": "0.46040413", "text": "protected function get_relationships() {\n\t\treturn (array) $this->get_config( 'field_relationships' );\n\t}", "title": "" }, { "docid": "7109e8eabca3ace1e0fb6c39915cb713", "score": "0.46039772", "text": "public function getItemRelationships();", "title": "" }, { "docid": "159b605b3c138a9f617d6c78c879ed5b", "score": "0.4581352", "text": "protected function relations()\n {\n return array();\n }", "title": "" }, { "docid": "3f603c050ce637da5792074365fc5b1c", "score": "0.4566224", "text": "private function parseChildren()\n\t{\n\t\t$arrayType = $this->getAttribute(self::ATTR_ARRAY);\n\t\t$space = (string) $this->getAttribute(self::ATTR_SPACE);\n\t\tif ($space !== self::ATTR_SPACE_PRESERVE and ! empty($space)) {\n\t\t\tthrow new Nette\\InvalidStateException(\"Attribute \" . self::ATTR_SPACE . \" has an unknown value '$space'\");\n\t\t}\n\n\t\tif ($arrayType === self::ATTR_ARRAY_STRING) {\n\t\t\t$res = $this->parseStringArray();\n\t\t\t$this->trim($res, $space);\n\t\t\treturn $res;\n\t\t}\n\n\t\tif ($arrayType === NULL && $this->count()) {\n\t\t\t$arrayType = self::ATTR_ARRAY_ASSOCIATIVE;\n\t\t}\n\n\t\tif ($arrayType === NULL) {\n\t\t\t$res = $this->getValue();\n\t\t\t$this->trim($res, $space);\n\t\t\treturn $res;\n\t\t}\n\n\t\t$res = array();\n\t\tswitch ($arrayType) {\n\t\t\tdefault:\n\t\t\tcase self::ATTR_ARRAY_ASSOCIATIVE:\n\t\t\t\tforeach ($this->children() as $key => $child) {\n\t\t\t\t\tif (isset($res[$key])) {\n\t\t\t\t\t\tthrow new Nette\\InvalidStateException(\"Duplicated key '$key'.\");\n\t\t\t\t\t}\n\t\t\t\t\t$res[$key] = $child->parse();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase self::ATTR_ARRAY_NUMERIC:\n\t\t\t\tforeach ($this->children() as $key => $child) {\n\t\t\t\t\t$res[] = $child->parse();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn $res;\n\t}", "title": "" }, { "docid": "3b34226bce741d5d0ea8096deda34747", "score": "0.45657787", "text": "public function relations(){\r\n \treturn array();\r\n }", "title": "" }, { "docid": "13e3b04643aed91e3d592dba5c49e5ec", "score": "0.456302", "text": "protected function splitRelationsFromCollection($collection)\n {\n $collection = static::ensureArray($collection);\n\n foreach ($collection as $model) {\n // Check if the model has eloquent-like relations\n if (!is_callable([$model, 'getRelations'])) {\n continue;\n }\n\n $this->splitRelationsFromModel($model);\n }\n }", "title": "" }, { "docid": "d41be664bcb67fd2391e2971eeb2333b", "score": "0.45611858", "text": "protected function _normalizeAssociations(array|string $associations): array\n {\n $result = [];\n foreach ((array)$associations as $table => $options) {\n $pointer = &$result;\n\n if (is_int($table)) {\n $table = $options;\n $options = [];\n }\n\n if (!str_contains($table, '.')) {\n $result[$table] = $options;\n continue;\n }\n\n $path = explode('.', $table);\n $table = array_pop($path);\n $first = array_shift($path);\n assert(is_string($first));\n\n $pointer += [$first => []];\n $pointer = &$pointer[$first];\n $pointer += ['associated' => []];\n\n foreach ($path as $t) {\n $pointer += ['associated' => []];\n $pointer['associated'] += [$t => []];\n $pointer['associated'][$t] += ['associated' => []];\n $pointer = &$pointer['associated'][$t];\n }\n\n $pointer['associated'] += [$table => []];\n $pointer['associated'][$table] = $options + $pointer['associated'][$table];\n }\n\n return $result['associated'] ?? $result;\n }", "title": "" }, { "docid": "f418432c132cbffa83de7e88dd01ccc1", "score": "0.45596954", "text": "public function getHasManyRelation():? string;", "title": "" }, { "docid": "f9e0e0addaa2d6eb6f05c2c99f720c94", "score": "0.45469573", "text": "protected function parseSingleRelationship(string $relation): bool\n {\n if (!$value = $this->parseForCommonValues($relation)) {\n return true;\n }\n\n if ($value instanceof Collection || is_array($value) || $value instanceof CollectionProxy) {\n throw new MappingException(\"Entity's attribute $relation should not be array, or collection\");\n }\n\n if ($value instanceof LazyLoadingInterface && !$value->isProxyInitialized()) {\n $this->relationships[$relation] = [];\n\n return true;\n }\n\n // If the attribute is a loaded proxy, swap it for its\n // loaded entity.\n if ($value instanceof LazyLoadingInterface && $value->isProxyInitialized()) {\n $value = $value->getWrappedValueHolderValue();\n }\n\n if ($this->isParentOrRoot($value)) {\n $this->relationships[$relation] = [];\n\n return true;\n }\n\n // At this point, we can assume the attribute is an Entity instance\n // so we'll treat it as such.\n $subAggregate = $this->createSubAggregate($value, $relation);\n\n // Even if it's a single entity, we'll store it as an array\n // just for consistency with other relationships\n $this->relationships[$relation] = [$subAggregate];\n\n // We always need to check a loaded relation is in sync\n // with its local key\n $this->needSync[] = $relation;\n\n return true;\n }", "title": "" }, { "docid": "9aca52b3e40510fb74ea514c3825282f", "score": "0.4545726", "text": "protected function decodeRecords()\n {\n $records = [];\n $others = [];\n\n $key = $this->key ? str_replace('->', '.', $this->key) : $this->key;\n\n foreach ((array) $this->child->{$this->path} as $record) {\n if (!is_array($record)) {\n $records[$record] = [];\n\n continue;\n }\n\n $foreignKey = Arr::get($record, $key);\n\n if (!is_null($foreignKey)) {\n $records[$foreignKey] = $record;\n } else {\n $others[] = $record;\n }\n }\n\n return [$records, $others];\n }", "title": "" }, { "docid": "ce12c3b2dd3d0ab0bb7e144a93b37688", "score": "0.45436928", "text": "protected function parseWithRelations(array $relations)\n {\n $results = [];\n\n foreach ($relations as $name => $constraints) {\n\n if (is_numeric($name)) {\n $f = function () {};\n\n list($name, $constraints) = [$constraints, $f];\n }\n\n $results[$name] = $constraints;\n }\n\n return $results;\n }", "title": "" }, { "docid": "30fb478d5c667dfe3b26af6155d85e24", "score": "0.45433164", "text": "public function getRespondentRelationFields() {\n $fields = array();\n $relationFields = $this->getFieldsOfType('relation');\n\n if (!empty($relationFields)) {\n $fieldNames = $this->getFieldNames();\n $fieldPrefix = FieldMaintenanceModel::FIELDS_NAME . FieldsDefinition::FIELD_KEY_SEPARATOR;\n foreach ($this->getFieldsOfType('relation') as $key => $field)\n {\n $id = str_replace($fieldPrefix, '', $key);\n $fields[$id] = $fieldNames[$key];\n }\n }\n\n return $fields;\n }", "title": "" }, { "docid": "5b934b569e973f6bdea98bc027ca2695", "score": "0.45415702", "text": "public function getRelationships()\n {\n return [\"cohort\", \"workplaceLearningPeriod\", \"learningActivityProducing\", \"educationProgram\"];\n }", "title": "" }, { "docid": "f3db4859c7d601cdfd0a2f0146d4b581", "score": "0.45361477", "text": "public function getRelationship($name);", "title": "" }, { "docid": "b478f6ddb2a0f30b10222c205e444ede", "score": "0.45336363", "text": "function extractRelations($cleanCode, $term) {\n $relations = array();\n // for each relation\n\n foreach($cleanCode->relations as &$r){\n\n if($this->isRelationValid($r[\"type\"])){\n $relation = array();\n // si relation pas enregitrée, crée une entrée.\n $relationName = $this->getRelationName($r, $cleanCode->relationTypes);\n\n $relationNameAnsi = convertToAnsi($relationName);\n\n if(!isset($relations[\"id_\".$relationNameAnsi])){\n $relations[\"id_\".$relationNameAnsi] = [];\n\n $relation[\"id\"] = $relationName;\n $relation[\"entries\"] = array();\n\n $relations[\"id_\".$relationNameAnsi] = $relation;\n }\n // ajoute l'entrée dans la bonne catégorie de relation\n\n $entry = array();\n $entry[\"nodeIn\"] = $this->getEntryName($r[\"nodeIn\"], $cleanCode->entries);\n $entry[\"nodeInId\"] = $r[\"nodeIn\"];\n $entry[\"nodeOut\"] = $this->getEntryName($r[\"nodeOut\"], $cleanCode->entries);\n $entry[\"nodeOutId\"] = $r[\"nodeOut\"];\n $entry[\"weight\"] = $r[\"weight\"];\n\n array_push($relations[\"id_\".$relationNameAnsi][\"entries\"], $entry);\n }\n }\n\n //mise en cache spéciale pour les raffinement sémantique.\n $nomCache = 'cache-raffinement-semantique-liste-'.convertToAnsi($term);\n $raffName = convertToAnsi(\"raffinement sémantique\");\n $this->cache->get($nomCache, function (ItemInterface $item) use ($term, $relations,$raffName) {\n $item->expiresAfter($this->cacheDuraction);\n if(isset($relations[\"id_\".$raffName])){\n $resultRaffine = $relations[\"id_\".$raffName];\n }else{\n $resultRaffine = null;\n }\n return $resultRaffine;\n });\n\n return $relations;\n }", "title": "" } ]